1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for libpqtypes 1.5.1. 4# 5# Report bugs to <libpqtypes@esilo.com>. 6# 7# Copyright (C) 2003 Free Software Foundation, Inc. 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10## --------------------- ## 11## M4sh Initialization. ## 12## --------------------- ## 13 14# Be Bourne compatible 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22 set -o posix 23fi 24DUALCASE=1; export DUALCASE # for MKS sh 25 26# Support unset when possible. 27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 test -d ./-p && rmdir ./-p 224 as_mkdir_p=false 225fi 226 227as_executable_p="test -f" 228 229# Sed expression to map a string onto a valid CPP name. 230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 231 232# Sed expression to map a string onto a valid variable name. 233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 234 235 236# IFS 237# We need space, tab and new line, in precisely that order. 238as_nl=' 239' 240IFS=" $as_nl" 241 242# CDPATH. 243$as_unset CDPATH 244 245 246 247# Check that we are running under the correct shell. 248SHELL=${CONFIG_SHELL-/bin/sh} 249 250case X$ECHO in 251X*--fallback-echo) 252 # Remove one level of quotation (which was required for Make). 253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 254 ;; 255esac 256 257echo=${ECHO-echo} 258if test "X$1" = X--no-reexec; then 259 # Discard the --no-reexec flag, and continue. 260 shift 261elif test "X$1" = X--fallback-echo; then 262 # Avoid inline document here, it may be left over 263 : 264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 265 # Yippee, $echo works! 266 : 267else 268 # Restart under the correct shell. 269 exec $SHELL "$0" --no-reexec ${1+"$@"} 270fi 271 272if test "X$1" = X--fallback-echo; then 273 # used as fallback echo 274 shift 275 cat <<EOF 276$* 277EOF 278 exit 0 279fi 280 281# The HP-UX ksh and POSIX shell print the target directory to stdout 282# if CDPATH is set. 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 284 285if test -z "$ECHO"; then 286if test "X${echo_test_string+set}" != Xset; then 287# find a string as large as possible, as long as the shell can cope with it 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 290 if (echo_test_string=`eval $cmd`) 2>/dev/null && 291 echo_test_string=`eval $cmd` && 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 293 then 294 break 295 fi 296 done 297fi 298 299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 301 test "X$echo_testing_string" = "X$echo_test_string"; then 302 : 303else 304 # The Solaris, AIX, and Digital Unix default echo programs unquote 305 # backslashes. This makes it impossible to quote backslashes using 306 # echo "$something" | sed 's/\\/\\\\/g' 307 # 308 # So, first we look for a working echo in the user's PATH. 309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 311 for dir in $PATH /usr/ucb; do 312 IFS="$lt_save_ifs" 313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 316 test "X$echo_testing_string" = "X$echo_test_string"; then 317 echo="$dir/echo" 318 break 319 fi 320 done 321 IFS="$lt_save_ifs" 322 323 if test "X$echo" = Xecho; then 324 # We didn't find a better echo, so look for alternatives. 325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 327 test "X$echo_testing_string" = "X$echo_test_string"; then 328 # This shell has a builtin print -r that does the trick. 329 echo='print -r' 330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 331 test "X$CONFIG_SHELL" != X/bin/ksh; then 332 # If we have ksh, try running configure again with it. 333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 334 export ORIGINAL_CONFIG_SHELL 335 CONFIG_SHELL=/bin/ksh 336 export CONFIG_SHELL 337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 338 else 339 # Try using printf. 340 echo='printf %s\n' 341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 343 test "X$echo_testing_string" = "X$echo_test_string"; then 344 # Cool, printf works 345 : 346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 347 test "X$echo_testing_string" = 'X\t' && 348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 349 test "X$echo_testing_string" = "X$echo_test_string"; then 350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 351 export CONFIG_SHELL 352 SHELL="$CONFIG_SHELL" 353 export SHELL 354 echo="$CONFIG_SHELL $0 --fallback-echo" 355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 356 test "X$echo_testing_string" = 'X\t' && 357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 358 test "X$echo_testing_string" = "X$echo_test_string"; then 359 echo="$CONFIG_SHELL $0 --fallback-echo" 360 else 361 # maybe with a smaller string... 362 prev=: 363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 366 then 367 break 368 fi 369 prev="$cmd" 370 done 371 372 if test "$prev" != 'sed 50q "$0"'; then 373 echo_test_string=`eval $prev` 374 export echo_test_string 375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 376 else 377 # Oops. We lost completely, so just stick with echo. 378 echo=echo 379 fi 380 fi 381 fi 382 fi 383fi 384fi 385 386# Copy echo and quote the copy suitably for passing to libtool from 387# the Makefile, instead of quoting the original, which is used later. 388ECHO=$echo 389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 391fi 392 393 394 395 396tagnames=${tagnames+${tagnames},}CXX 397 398tagnames=${tagnames+${tagnames},}F77 399 400# Name of the host. 401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 402# so uname gets run too. 403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 404 405exec 6>&1 406 407# 408# Initializations. 409# 410ac_default_prefix=/usr/local 411ac_config_libobj_dir=. 412cross_compiling=no 413subdirs= 414MFLAGS= 415MAKEFLAGS= 416SHELL=${CONFIG_SHELL-/bin/sh} 417 418# Maximum number of lines to put in a shell here document. 419# This variable seems obsolete. It should probably be removed, and 420# only ac_max_sed_lines should be used. 421: ${ac_max_here_lines=38} 422 423# Identity of this package. 424PACKAGE_NAME='libpqtypes' 425PACKAGE_TARNAME='libpqtypes' 426PACKAGE_VERSION='1.5.1' 427PACKAGE_STRING='libpqtypes 1.5.1' 428PACKAGE_BUGREPORT='libpqtypes@esilo.com' 429 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_unique_file="src/param.c" 468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE 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 am__leading_dot AMTAR am__tar am__untar LIBPQTYPES_SO_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS POW_LIB LTLIBOBJS' 469ac_subst_files='' 470 471# Initialize some variables set by options. 472ac_init_help= 473ac_init_version=false 474# The variables have the same names as the options, with 475# dashes changed to underlines. 476cache_file=/dev/null 477exec_prefix=NONE 478no_create= 479no_recursion= 480prefix=NONE 481program_prefix=NONE 482program_suffix=NONE 483program_transform_name=s,x,x, 484silent= 485site= 486srcdir= 487verbose= 488x_includes=NONE 489x_libraries=NONE 490 491# Installation directory options. 492# These are left unexpanded so users can "make install exec_prefix=/foo" 493# and all the variables that are supposed to be based on exec_prefix 494# by default will actually change. 495# Use braces instead of parens because sh, perl, etc. also accept them. 496bindir='${exec_prefix}/bin' 497sbindir='${exec_prefix}/sbin' 498libexecdir='${exec_prefix}/libexec' 499datadir='${prefix}/share' 500sysconfdir='${prefix}/etc' 501sharedstatedir='${prefix}/com' 502localstatedir='${prefix}/var' 503libdir='${exec_prefix}/lib' 504includedir='${prefix}/include' 505oldincludedir='/usr/include' 506infodir='${prefix}/info' 507mandir='${prefix}/man' 508 509ac_prev= 510for ac_option 511do 512 # If the previous option needs an argument, assign it. 513 if test -n "$ac_prev"; then 514 eval "$ac_prev=\$ac_option" 515 ac_prev= 516 continue 517 fi 518 519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 520 521 # Accept the important Cygnus configure options, so we can diagnose typos. 522 523 case $ac_option in 524 525 -bindir | --bindir | --bindi | --bind | --bin | --bi) 526 ac_prev=bindir ;; 527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 528 bindir=$ac_optarg ;; 529 530 -build | --build | --buil | --bui | --bu) 531 ac_prev=build_alias ;; 532 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 533 build_alias=$ac_optarg ;; 534 535 -cache-file | --cache-file | --cache-fil | --cache-fi \ 536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 537 ac_prev=cache_file ;; 538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 540 cache_file=$ac_optarg ;; 541 542 --config-cache | -C) 543 cache_file=config.cache ;; 544 545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 546 ac_prev=datadir ;; 547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 548 | --da=*) 549 datadir=$ac_optarg ;; 550 551 -disable-* | --disable-*) 552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 553 # Reject names that are not valid shell variable names. 554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 556 { (exit 1); exit 1; }; } 557 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 558 eval "enable_$ac_feature=no" ;; 559 560 -enable-* | --enable-*) 561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 562 # Reject names that are not valid shell variable names. 563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 565 { (exit 1); exit 1; }; } 566 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 567 case $ac_option in 568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 569 *) ac_optarg=yes ;; 570 esac 571 eval "enable_$ac_feature='$ac_optarg'" ;; 572 573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 575 | --exec | --exe | --ex) 576 ac_prev=exec_prefix ;; 577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 579 | --exec=* | --exe=* | --ex=*) 580 exec_prefix=$ac_optarg ;; 581 582 -gas | --gas | --ga | --g) 583 # Obsolete; use --with-gas. 584 with_gas=yes ;; 585 586 -help | --help | --hel | --he | -h) 587 ac_init_help=long ;; 588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 589 ac_init_help=recursive ;; 590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 591 ac_init_help=short ;; 592 593 -host | --host | --hos | --ho) 594 ac_prev=host_alias ;; 595 -host=* | --host=* | --hos=* | --ho=*) 596 host_alias=$ac_optarg ;; 597 598 -includedir | --includedir | --includedi | --included | --include \ 599 | --includ | --inclu | --incl | --inc) 600 ac_prev=includedir ;; 601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 602 | --includ=* | --inclu=* | --incl=* | --inc=*) 603 includedir=$ac_optarg ;; 604 605 -infodir | --infodir | --infodi | --infod | --info | --inf) 606 ac_prev=infodir ;; 607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 608 infodir=$ac_optarg ;; 609 610 -libdir | --libdir | --libdi | --libd) 611 ac_prev=libdir ;; 612 -libdir=* | --libdir=* | --libdi=* | --libd=*) 613 libdir=$ac_optarg ;; 614 615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 616 | --libexe | --libex | --libe) 617 ac_prev=libexecdir ;; 618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 619 | --libexe=* | --libex=* | --libe=*) 620 libexecdir=$ac_optarg ;; 621 622 -localstatedir | --localstatedir | --localstatedi | --localstated \ 623 | --localstate | --localstat | --localsta | --localst \ 624 | --locals | --local | --loca | --loc | --lo) 625 ac_prev=localstatedir ;; 626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 629 localstatedir=$ac_optarg ;; 630 631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 632 ac_prev=mandir ;; 633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 634 mandir=$ac_optarg ;; 635 636 -nfp | --nfp | --nf) 637 # Obsolete; use --without-fp. 638 with_fp=no ;; 639 640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 641 | --no-cr | --no-c | -n) 642 no_create=yes ;; 643 644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 646 no_recursion=yes ;; 647 648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 650 | --oldin | --oldi | --old | --ol | --o) 651 ac_prev=oldincludedir ;; 652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 655 oldincludedir=$ac_optarg ;; 656 657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 658 ac_prev=prefix ;; 659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 660 prefix=$ac_optarg ;; 661 662 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 663 | --program-pre | --program-pr | --program-p) 664 ac_prev=program_prefix ;; 665 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 667 program_prefix=$ac_optarg ;; 668 669 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 670 | --program-suf | --program-su | --program-s) 671 ac_prev=program_suffix ;; 672 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 674 program_suffix=$ac_optarg ;; 675 676 -program-transform-name | --program-transform-name \ 677 | --program-transform-nam | --program-transform-na \ 678 | --program-transform-n | --program-transform- \ 679 | --program-transform | --program-transfor \ 680 | --program-transfo | --program-transf \ 681 | --program-trans | --program-tran \ 682 | --progr-tra | --program-tr | --program-t) 683 ac_prev=program_transform_name ;; 684 -program-transform-name=* | --program-transform-name=* \ 685 | --program-transform-nam=* | --program-transform-na=* \ 686 | --program-transform-n=* | --program-transform-=* \ 687 | --program-transform=* | --program-transfor=* \ 688 | --program-transfo=* | --program-transf=* \ 689 | --program-trans=* | --program-tran=* \ 690 | --progr-tra=* | --program-tr=* | --program-t=*) 691 program_transform_name=$ac_optarg ;; 692 693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 694 | -silent | --silent | --silen | --sile | --sil) 695 silent=yes ;; 696 697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 698 ac_prev=sbindir ;; 699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 700 | --sbi=* | --sb=*) 701 sbindir=$ac_optarg ;; 702 703 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 705 | --sharedst | --shareds | --shared | --share | --shar \ 706 | --sha | --sh) 707 ac_prev=sharedstatedir ;; 708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 711 | --sha=* | --sh=*) 712 sharedstatedir=$ac_optarg ;; 713 714 -site | --site | --sit) 715 ac_prev=site ;; 716 -site=* | --site=* | --sit=*) 717 site=$ac_optarg ;; 718 719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 720 ac_prev=srcdir ;; 721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 722 srcdir=$ac_optarg ;; 723 724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 725 | --syscon | --sysco | --sysc | --sys | --sy) 726 ac_prev=sysconfdir ;; 727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 729 sysconfdir=$ac_optarg ;; 730 731 -target | --target | --targe | --targ | --tar | --ta | --t) 732 ac_prev=target_alias ;; 733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 734 target_alias=$ac_optarg ;; 735 736 -v | -verbose | --verbose | --verbos | --verbo | --verb) 737 verbose=yes ;; 738 739 -version | --version | --versio | --versi | --vers | -V) 740 ac_init_version=: ;; 741 742 -with-* | --with-*) 743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 744 # Reject names that are not valid shell variable names. 745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 746 { echo "$as_me: error: invalid package name: $ac_package" >&2 747 { (exit 1); exit 1; }; } 748 ac_package=`echo $ac_package| sed 's/-/_/g'` 749 case $ac_option in 750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 751 *) ac_optarg=yes ;; 752 esac 753 eval "with_$ac_package='$ac_optarg'" ;; 754 755 -without-* | --without-*) 756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 757 # Reject names that are not valid shell variable names. 758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 759 { echo "$as_me: error: invalid package name: $ac_package" >&2 760 { (exit 1); exit 1; }; } 761 ac_package=`echo $ac_package | sed 's/-/_/g'` 762 eval "with_$ac_package=no" ;; 763 764 --x) 765 # Obsolete; use --with-x. 766 with_x=yes ;; 767 768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 769 | --x-incl | --x-inc | --x-in | --x-i) 770 ac_prev=x_includes ;; 771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 773 x_includes=$ac_optarg ;; 774 775 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 777 ac_prev=x_libraries ;; 778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 780 x_libraries=$ac_optarg ;; 781 782 -*) { echo "$as_me: error: unrecognized option: $ac_option 783Try \`$0 --help' for more information." >&2 784 { (exit 1); exit 1; }; } 785 ;; 786 787 *=*) 788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 792 { (exit 1); exit 1; }; } 793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 794 eval "$ac_envvar='$ac_optarg'" 795 export $ac_envvar ;; 796 797 *) 798 # FIXME: should be removed in autoconf 3.0. 799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 803 ;; 804 805 esac 806done 807 808if test -n "$ac_prev"; then 809 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 810 { echo "$as_me: error: missing argument to $ac_option" >&2 811 { (exit 1); exit 1; }; } 812fi 813 814# Be sure to have absolute paths. 815for ac_var in exec_prefix prefix 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# Be sure to have absolute paths. 826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 827 localstatedir libdir includedir oldincludedir infodir mandir 828do 829 eval ac_val=$`echo $ac_var` 830 case $ac_val in 831 [\\/$]* | ?:[\\/]* ) ;; 832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 833 { (exit 1); exit 1; }; };; 834 esac 835done 836 837# There might be people who depend on the old broken behavior: `$host' 838# used to hold the argument of --host etc. 839# FIXME: To remove some day. 840build=$build_alias 841host=$host_alias 842target=$target_alias 843 844# FIXME: To remove some day. 845if test "x$host_alias" != x; then 846 if test "x$build_alias" = x; then 847 cross_compiling=maybe 848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 849 If a cross compiler is detected then cross compile mode will be used." >&2 850 elif test "x$build_alias" != "x$host_alias"; then 851 cross_compiling=yes 852 fi 853fi 854 855ac_tool_prefix= 856test -n "$host_alias" && ac_tool_prefix=$host_alias- 857 858test "$silent" = yes && exec 6>/dev/null 859 860 861# Find the source files, if location was not specified. 862if test -z "$srcdir"; then 863 ac_srcdir_defaulted=yes 864 # Try the directory containing this script, then its parent. 865 ac_confdir=`(dirname "$0") 2>/dev/null || 866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 867 X"$0" : 'X\(//\)[^/]' \| \ 868 X"$0" : 'X\(//\)$' \| \ 869 X"$0" : 'X\(/\)' \| \ 870 . : '\(.\)' 2>/dev/null || 871echo X"$0" | 872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 873 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 874 /^X\(\/\/\)$/{ s//\1/; q; } 875 /^X\(\/\).*/{ s//\1/; q; } 876 s/.*/./; q'` 877 srcdir=$ac_confdir 878 if test ! -r $srcdir/$ac_unique_file; then 879 srcdir=.. 880 fi 881else 882 ac_srcdir_defaulted=no 883fi 884if test ! -r $srcdir/$ac_unique_file; then 885 if test "$ac_srcdir_defaulted" = yes; then 886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 887 { (exit 1); exit 1; }; } 888 else 889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 890 { (exit 1); exit 1; }; } 891 fi 892fi 893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 895 { (exit 1); exit 1; }; } 896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 897ac_env_build_alias_set=${build_alias+set} 898ac_env_build_alias_value=$build_alias 899ac_cv_env_build_alias_set=${build_alias+set} 900ac_cv_env_build_alias_value=$build_alias 901ac_env_host_alias_set=${host_alias+set} 902ac_env_host_alias_value=$host_alias 903ac_cv_env_host_alias_set=${host_alias+set} 904ac_cv_env_host_alias_value=$host_alias 905ac_env_target_alias_set=${target_alias+set} 906ac_env_target_alias_value=$target_alias 907ac_cv_env_target_alias_set=${target_alias+set} 908ac_cv_env_target_alias_value=$target_alias 909ac_env_CC_set=${CC+set} 910ac_env_CC_value=$CC 911ac_cv_env_CC_set=${CC+set} 912ac_cv_env_CC_value=$CC 913ac_env_CFLAGS_set=${CFLAGS+set} 914ac_env_CFLAGS_value=$CFLAGS 915ac_cv_env_CFLAGS_set=${CFLAGS+set} 916ac_cv_env_CFLAGS_value=$CFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921ac_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_env_CPPFLAGS_value=$CPPFLAGS 923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_cv_env_CPPFLAGS_value=$CPPFLAGS 925ac_env_CPP_set=${CPP+set} 926ac_env_CPP_value=$CPP 927ac_cv_env_CPP_set=${CPP+set} 928ac_cv_env_CPP_value=$CPP 929ac_env_CXX_set=${CXX+set} 930ac_env_CXX_value=$CXX 931ac_cv_env_CXX_set=${CXX+set} 932ac_cv_env_CXX_value=$CXX 933ac_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_env_CXXFLAGS_value=$CXXFLAGS 935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 936ac_cv_env_CXXFLAGS_value=$CXXFLAGS 937ac_env_CXXCPP_set=${CXXCPP+set} 938ac_env_CXXCPP_value=$CXXCPP 939ac_cv_env_CXXCPP_set=${CXXCPP+set} 940ac_cv_env_CXXCPP_value=$CXXCPP 941ac_env_F77_set=${F77+set} 942ac_env_F77_value=$F77 943ac_cv_env_F77_set=${F77+set} 944ac_cv_env_F77_value=$F77 945ac_env_FFLAGS_set=${FFLAGS+set} 946ac_env_FFLAGS_value=$FFLAGS 947ac_cv_env_FFLAGS_set=${FFLAGS+set} 948ac_cv_env_FFLAGS_value=$FFLAGS 949 950# 951# Report the --help message. 952# 953if test "$ac_init_help" = "long"; then 954 # Omit some internal or obsolete options to make the list less imposing. 955 # This message is too long to be a string in the A/UX 3.1 sh. 956 cat <<_ACEOF 957\`configure' configures libpqtypes 1.5.1 to adapt to many kinds of systems. 958 959Usage: $0 [OPTION]... [VAR=VALUE]... 960 961To assign environment variables (e.g., CC, CFLAGS...), specify them as 962VAR=VALUE. See below for descriptions of some of the useful variables. 963 964Defaults for the options are specified in brackets. 965 966Configuration: 967 -h, --help display this help and exit 968 --help=short display options specific to this package 969 --help=recursive display the short help of all the included packages 970 -V, --version display version information and exit 971 -q, --quiet, --silent do not print \`checking...' messages 972 --cache-file=FILE cache test results in FILE [disabled] 973 -C, --config-cache alias for \`--cache-file=config.cache' 974 -n, --no-create do not create output files 975 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 976 977_ACEOF 978 979 cat <<_ACEOF 980Installation directories: 981 --prefix=PREFIX install architecture-independent files in PREFIX 982 [$ac_default_prefix] 983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 984 [PREFIX] 985 986By default, \`make install' will install all the files in 987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 988an installation prefix other than \`$ac_default_prefix' using \`--prefix', 989for instance \`--prefix=\$HOME'. 990 991For better control, use the options below. 992 993Fine tuning of the installation directories: 994 --bindir=DIR user executables [EPREFIX/bin] 995 --sbindir=DIR system admin executables [EPREFIX/sbin] 996 --libexecdir=DIR program executables [EPREFIX/libexec] 997 --datadir=DIR read-only architecture-independent data [PREFIX/share] 998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1001 --libdir=DIR object code libraries [EPREFIX/lib] 1002 --includedir=DIR C header files [PREFIX/include] 1003 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1004 --infodir=DIR info documentation [PREFIX/info] 1005 --mandir=DIR man documentation [PREFIX/man] 1006_ACEOF 1007 1008 cat <<\_ACEOF 1009 1010Program names: 1011 --program-prefix=PREFIX prepend PREFIX to installed program names 1012 --program-suffix=SUFFIX append SUFFIX to installed program names 1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1014 1015System types: 1016 --build=BUILD configure for building on BUILD [guessed] 1017 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1018 --target=TARGET configure for building compilers for TARGET [HOST] 1019_ACEOF 1020fi 1021 1022if test -n "$ac_init_help"; then 1023 case $ac_init_help in 1024 short | recursive ) echo "Configuration of libpqtypes 1.5.1:";; 1025 esac 1026 cat <<\_ACEOF 1027 1028Optional Features: 1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1031 --enable-static[=PKGS] 1032 build static libraries [default=no] 1033 --enable-shared[=PKGS] 1034 build shared libraries [default=yes] 1035 --enable-fast-install[=PKGS] 1036 optimize for fast installation [default=yes] 1037 --disable-dependency-tracking speeds up one-time build 1038 --enable-dependency-tracking do not reject slow dependency extractors 1039 --disable-libtool-lock avoid locking (might break parallel builds) 1040 --enable-thread-safety Enable threads 1041 1042Optional Packages: 1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1045 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1046 --with-pic try to use only PIC/non-PIC objects [default=use 1047 both] 1048 --with-tags[=TAGS] 1049 include additional configurations [automatic] 1050 1051Some influential environment variables: 1052 CC C compiler command 1053 CFLAGS C compiler flags 1054 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1055 nonstandard directory <lib dir> 1056 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1057 headers in a nonstandard directory <include dir> 1058 CPP C preprocessor 1059 CXX C++ compiler command 1060 CXXFLAGS C++ compiler flags 1061 CXXCPP C++ preprocessor 1062 F77 Fortran 77 compiler command 1063 FFLAGS Fortran 77 compiler flags 1064 1065Use these variables to override the choices made by `configure' or to help 1066it to find libraries and programs with nonstandard names/locations. 1067 1068Report bugs to <libpqtypes@esilo.com>. 1069_ACEOF 1070fi 1071 1072if test "$ac_init_help" = "recursive"; then 1073 # If there are subdirs, report their specific --help. 1074 ac_popdir=`pwd` 1075 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1076 test -d $ac_dir || continue 1077 ac_builddir=. 1078 1079if test "$ac_dir" != .; then 1080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1081 # A "../" for each directory in $ac_dir_suffix. 1082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1083else 1084 ac_dir_suffix= ac_top_builddir= 1085fi 1086 1087case $srcdir in 1088 .) # No --srcdir option. We are building in place. 1089 ac_srcdir=. 1090 if test -z "$ac_top_builddir"; then 1091 ac_top_srcdir=. 1092 else 1093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1094 fi ;; 1095 [\\/]* | ?:[\\/]* ) # Absolute path. 1096 ac_srcdir=$srcdir$ac_dir_suffix; 1097 ac_top_srcdir=$srcdir ;; 1098 *) # Relative path. 1099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1100 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1101esac 1102 1103# Do not use `cd foo && pwd` to compute absolute paths, because 1104# the directories may not exist. 1105case `pwd` in 1106.) ac_abs_builddir="$ac_dir";; 1107*) 1108 case "$ac_dir" in 1109 .) ac_abs_builddir=`pwd`;; 1110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1111 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1112 esac;; 1113esac 1114case $ac_abs_builddir in 1115.) ac_abs_top_builddir=${ac_top_builddir}.;; 1116*) 1117 case ${ac_top_builddir}. in 1118 .) ac_abs_top_builddir=$ac_abs_builddir;; 1119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1121 esac;; 1122esac 1123case $ac_abs_builddir in 1124.) ac_abs_srcdir=$ac_srcdir;; 1125*) 1126 case $ac_srcdir in 1127 .) ac_abs_srcdir=$ac_abs_builddir;; 1128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1130 esac;; 1131esac 1132case $ac_abs_builddir in 1133.) ac_abs_top_srcdir=$ac_top_srcdir;; 1134*) 1135 case $ac_top_srcdir in 1136 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1139 esac;; 1140esac 1141 1142 cd $ac_dir 1143 # Check for guested configure; otherwise get Cygnus style configure. 1144 if test -f $ac_srcdir/configure.gnu; then 1145 echo 1146 $SHELL $ac_srcdir/configure.gnu --help=recursive 1147 elif test -f $ac_srcdir/configure; then 1148 echo 1149 $SHELL $ac_srcdir/configure --help=recursive 1150 elif test -f $ac_srcdir/configure.ac || 1151 test -f $ac_srcdir/configure.in; then 1152 echo 1153 $ac_configure --help 1154 else 1155 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1156 fi 1157 cd $ac_popdir 1158 done 1159fi 1160 1161test -n "$ac_init_help" && exit 0 1162if $ac_init_version; then 1163 cat <<\_ACEOF 1164libpqtypes configure 1.5.1 1165generated by GNU Autoconf 2.59 1166 1167Copyright (C) 2003 Free Software Foundation, Inc. 1168This configure script is free software; the Free Software Foundation 1169gives unlimited permission to copy, distribute and modify it. 1170_ACEOF 1171 exit 0 1172fi 1173exec 5>config.log 1174cat >&5 <<_ACEOF 1175This file contains any messages produced by compilers while 1176running configure, to aid debugging if configure makes a mistake. 1177 1178It was created by libpqtypes $as_me 1.5.1, which was 1179generated by GNU Autoconf 2.59. Invocation command line was 1180 1181 $ $0 $@ 1182 1183_ACEOF 1184{ 1185cat <<_ASUNAME 1186## --------- ## 1187## Platform. ## 1188## --------- ## 1189 1190hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1191uname -m = `(uname -m) 2>/dev/null || echo unknown` 1192uname -r = `(uname -r) 2>/dev/null || echo unknown` 1193uname -s = `(uname -s) 2>/dev/null || echo unknown` 1194uname -v = `(uname -v) 2>/dev/null || echo unknown` 1195 1196/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1197/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1198 1199/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1200/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1201/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1202hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1203/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1204/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1205/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1206 1207_ASUNAME 1208 1209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1210for as_dir in $PATH 1211do 1212 IFS=$as_save_IFS 1213 test -z "$as_dir" && as_dir=. 1214 echo "PATH: $as_dir" 1215done 1216 1217} >&5 1218 1219cat >&5 <<_ACEOF 1220 1221 1222## ----------- ## 1223## Core tests. ## 1224## ----------- ## 1225 1226_ACEOF 1227 1228 1229# Keep a trace of the command line. 1230# Strip out --no-create and --no-recursion so they do not pile up. 1231# Strip out --silent because we don't want to record it for future runs. 1232# Also quote any args containing shell meta-characters. 1233# Make two passes to allow for proper duplicate-argument suppression. 1234ac_configure_args= 1235ac_configure_args0= 1236ac_configure_args1= 1237ac_sep= 1238ac_must_keep_next=false 1239for ac_pass in 1 2 1240do 1241 for ac_arg 1242 do 1243 case $ac_arg in 1244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1246 | -silent | --silent | --silen | --sile | --sil) 1247 continue ;; 1248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1250 esac 1251 case $ac_pass in 1252 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1253 2) 1254 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1255 if test $ac_must_keep_next = true; then 1256 ac_must_keep_next=false # Got value, back to normal. 1257 else 1258 case $ac_arg in 1259 *=* | --config-cache | -C | -disable-* | --disable-* \ 1260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1262 | -with-* | --with-* | -without-* | --without-* | --x) 1263 case "$ac_configure_args0 " in 1264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1265 esac 1266 ;; 1267 -* ) ac_must_keep_next=true ;; 1268 esac 1269 fi 1270 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1271 # Get rid of the leading space. 1272 ac_sep=" " 1273 ;; 1274 esac 1275 done 1276done 1277$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1278$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1279 1280# When interrupted or exit'd, cleanup temporary files, and complete 1281# config.log. We remove comments because anyway the quotes in there 1282# would cause problems or look ugly. 1283# WARNING: Be sure not to use single quotes in there, as some shells, 1284# such as our DU 5.0 friend, will then `close' the trap. 1285trap 'exit_status=$? 1286 # Save into config.log some information that might help in debugging. 1287 { 1288 echo 1289 1290 cat <<\_ASBOX 1291## ---------------- ## 1292## Cache variables. ## 1293## ---------------- ## 1294_ASBOX 1295 echo 1296 # The following way of writing the cache mishandles newlines in values, 1297{ 1298 (set) 2>&1 | 1299 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1300 *ac_space=\ *) 1301 sed -n \ 1302 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1304 ;; 1305 *) 1306 sed -n \ 1307 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1308 ;; 1309 esac; 1310} 1311 echo 1312 1313 cat <<\_ASBOX 1314## ----------------- ## 1315## Output variables. ## 1316## ----------------- ## 1317_ASBOX 1318 echo 1319 for ac_var in $ac_subst_vars 1320 do 1321 eval ac_val=$`echo $ac_var` 1322 echo "$ac_var='"'"'$ac_val'"'"'" 1323 done | sort 1324 echo 1325 1326 if test -n "$ac_subst_files"; then 1327 cat <<\_ASBOX 1328## ------------- ## 1329## Output files. ## 1330## ------------- ## 1331_ASBOX 1332 echo 1333 for ac_var in $ac_subst_files 1334 do 1335 eval ac_val=$`echo $ac_var` 1336 echo "$ac_var='"'"'$ac_val'"'"'" 1337 done | sort 1338 echo 1339 fi 1340 1341 if test -s confdefs.h; then 1342 cat <<\_ASBOX 1343## ----------- ## 1344## confdefs.h. ## 1345## ----------- ## 1346_ASBOX 1347 echo 1348 sed "/^$/d" confdefs.h | sort 1349 echo 1350 fi 1351 test "$ac_signal" != 0 && 1352 echo "$as_me: caught signal $ac_signal" 1353 echo "$as_me: exit $exit_status" 1354 } >&5 1355 rm -f core *.core && 1356 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1357 exit $exit_status 1358 ' 0 1359for ac_signal in 1 2 13 15; do 1360 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1361done 1362ac_signal=0 1363 1364# confdefs.h avoids OS command line length limits that DEFS can exceed. 1365rm -rf conftest* confdefs.h 1366# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1367echo >confdefs.h 1368 1369# Predefined preprocessor variables. 1370 1371cat >>confdefs.h <<_ACEOF 1372#define PACKAGE_NAME "$PACKAGE_NAME" 1373_ACEOF 1374 1375 1376cat >>confdefs.h <<_ACEOF 1377#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1378_ACEOF 1379 1380 1381cat >>confdefs.h <<_ACEOF 1382#define PACKAGE_VERSION "$PACKAGE_VERSION" 1383_ACEOF 1384 1385 1386cat >>confdefs.h <<_ACEOF 1387#define PACKAGE_STRING "$PACKAGE_STRING" 1388_ACEOF 1389 1390 1391cat >>confdefs.h <<_ACEOF 1392#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1393_ACEOF 1394 1395 1396# Let the site file select an alternate cache file if it wants to. 1397# Prefer explicitly selected file to automatically selected ones. 1398if test -z "$CONFIG_SITE"; then 1399 if test "x$prefix" != xNONE; then 1400 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1401 else 1402 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1403 fi 1404fi 1405for ac_site_file in $CONFIG_SITE; do 1406 if test -r "$ac_site_file"; then 1407 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1408echo "$as_me: loading site script $ac_site_file" >&6;} 1409 sed 's/^/| /' "$ac_site_file" >&5 1410 . "$ac_site_file" 1411 fi 1412done 1413 1414if test -r "$cache_file"; then 1415 # Some versions of bash will fail to source /dev/null (special 1416 # files actually), so we avoid doing that. 1417 if test -f "$cache_file"; then 1418 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1419echo "$as_me: loading cache $cache_file" >&6;} 1420 case $cache_file in 1421 [\\/]* | ?:[\\/]* ) . $cache_file;; 1422 *) . ./$cache_file;; 1423 esac 1424 fi 1425else 1426 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1427echo "$as_me: creating cache $cache_file" >&6;} 1428 >$cache_file 1429fi 1430 1431# Check that the precious variables saved in the cache have kept the same 1432# value. 1433ac_cache_corrupted=false 1434for ac_var in `(set) 2>&1 | 1435 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1436 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1437 eval ac_new_set=\$ac_env_${ac_var}_set 1438 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1439 eval ac_new_val="\$ac_env_${ac_var}_value" 1440 case $ac_old_set,$ac_new_set in 1441 set,) 1442 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1443echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1444 ac_cache_corrupted=: ;; 1445 ,set) 1446 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1447echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1448 ac_cache_corrupted=: ;; 1449 ,);; 1450 *) 1451 if test "x$ac_old_val" != "x$ac_new_val"; then 1452 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1453echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1454 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1455echo "$as_me: former value: $ac_old_val" >&2;} 1456 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1457echo "$as_me: current value: $ac_new_val" >&2;} 1458 ac_cache_corrupted=: 1459 fi;; 1460 esac 1461 # Pass precious variables to config.status. 1462 if test "$ac_new_set" = set; then 1463 case $ac_new_val in 1464 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1465 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1466 *) ac_arg=$ac_var=$ac_new_val ;; 1467 esac 1468 case " $ac_configure_args " in 1469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1470 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1471 esac 1472 fi 1473done 1474if $ac_cache_corrupted; then 1475 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1476echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1477 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1478echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1479 { (exit 1); exit 1; }; } 1480fi 1481 1482ac_ext=c 1483ac_cpp='$CPP $CPPFLAGS' 1484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1486ac_compiler_gnu=$ac_cv_c_compiler_gnu 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514ac_aux_dir= 1515for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1516 if test -f $ac_dir/install-sh; then 1517 ac_aux_dir=$ac_dir 1518 ac_install_sh="$ac_aux_dir/install-sh -c" 1519 break 1520 elif test -f $ac_dir/install.sh; then 1521 ac_aux_dir=$ac_dir 1522 ac_install_sh="$ac_aux_dir/install.sh -c" 1523 break 1524 elif test -f $ac_dir/shtool; then 1525 ac_aux_dir=$ac_dir 1526 ac_install_sh="$ac_aux_dir/shtool install -c" 1527 break 1528 fi 1529done 1530if test -z "$ac_aux_dir"; then 1531 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1532echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1533 { (exit 1); exit 1; }; } 1534fi 1535ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1536ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1537ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1538 1539# Make sure we can run config.sub. 1540$ac_config_sub sun4 >/dev/null 2>&1 || 1541 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1542echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1543 { (exit 1); exit 1; }; } 1544 1545echo "$as_me:$LINENO: checking build system type" >&5 1546echo $ECHO_N "checking build system type... $ECHO_C" >&6 1547if test "${ac_cv_build+set}" = set; then 1548 echo $ECHO_N "(cached) $ECHO_C" >&6 1549else 1550 ac_cv_build_alias=$build_alias 1551test -z "$ac_cv_build_alias" && 1552 ac_cv_build_alias=`$ac_config_guess` 1553test -z "$ac_cv_build_alias" && 1554 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1555echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1556 { (exit 1); exit 1; }; } 1557ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1559echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1560 { (exit 1); exit 1; }; } 1561 1562fi 1563echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1564echo "${ECHO_T}$ac_cv_build" >&6 1565build=$ac_cv_build 1566build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1567build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1568build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1569 1570 1571echo "$as_me:$LINENO: checking host system type" >&5 1572echo $ECHO_N "checking host system type... $ECHO_C" >&6 1573if test "${ac_cv_host+set}" = set; then 1574 echo $ECHO_N "(cached) $ECHO_C" >&6 1575else 1576 ac_cv_host_alias=$host_alias 1577test -z "$ac_cv_host_alias" && 1578 ac_cv_host_alias=$ac_cv_build_alias 1579ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1581echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1582 { (exit 1); exit 1; }; } 1583 1584fi 1585echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1586echo "${ECHO_T}$ac_cv_host" >&6 1587host=$ac_cv_host 1588host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1589host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1590host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1591 1592 1593echo "$as_me:$LINENO: checking target system type" >&5 1594echo $ECHO_N "checking target system type... $ECHO_C" >&6 1595if test "${ac_cv_target+set}" = set; then 1596 echo $ECHO_N "(cached) $ECHO_C" >&6 1597else 1598 ac_cv_target_alias=$target_alias 1599test "x$ac_cv_target_alias" = "x" && 1600 ac_cv_target_alias=$ac_cv_host_alias 1601ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1602 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1603echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1604 { (exit 1); exit 1; }; } 1605 1606fi 1607echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1608echo "${ECHO_T}$ac_cv_target" >&6 1609target=$ac_cv_target 1610target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1611target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1612target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1613 1614 1615# The aliases save the names the user supplied, while $host etc. 1616# will get canonicalized. 1617test -n "$target_alias" && 1618 test "$program_prefix$program_suffix$program_transform_name" = \ 1619 NONENONEs,x,x, && 1620 program_prefix=${target_alias}- 1621echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1622echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1623set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1624if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1625 echo $ECHO_N "(cached) $ECHO_C" >&6 1626else 1627 cat >conftest.make <<\_ACEOF 1628all: 1629 @echo 'ac_maketemp="$(MAKE)"' 1630_ACEOF 1631# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1632eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1633if test -n "$ac_maketemp"; then 1634 eval ac_cv_prog_make_${ac_make}_set=yes 1635else 1636 eval ac_cv_prog_make_${ac_make}_set=no 1637fi 1638rm -f conftest.make 1639fi 1640if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1641 echo "$as_me:$LINENO: result: yes" >&5 1642echo "${ECHO_T}yes" >&6 1643 SET_MAKE= 1644else 1645 echo "$as_me:$LINENO: result: no" >&5 1646echo "${ECHO_T}no" >&6 1647 SET_MAKE="MAKE=${MAKE-make}" 1648fi 1649 1650SET_MAKE="MAKE=make --no-print-directory" 1651ac_aux_dir= 1652for ac_dir in . $srcdir/.; do 1653 if test -f $ac_dir/install-sh; then 1654 ac_aux_dir=$ac_dir 1655 ac_install_sh="$ac_aux_dir/install-sh -c" 1656 break 1657 elif test -f $ac_dir/install.sh; then 1658 ac_aux_dir=$ac_dir 1659 ac_install_sh="$ac_aux_dir/install.sh -c" 1660 break 1661 elif test -f $ac_dir/shtool; then 1662 ac_aux_dir=$ac_dir 1663 ac_install_sh="$ac_aux_dir/shtool install -c" 1664 break 1665 fi 1666done 1667if test -z "$ac_aux_dir"; then 1668 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5 1669echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} 1670 { (exit 1); exit 1; }; } 1671fi 1672ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1673ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1674ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1675 1676am__api_version="1.9" 1677# Find a good install program. We prefer a C program (faster), 1678# so one script is as good as another. But avoid the broken or 1679# incompatible versions: 1680# SysV /etc/install, /usr/sbin/install 1681# SunOS /usr/etc/install 1682# IRIX /sbin/install 1683# AIX /bin/install 1684# AmigaOS /C/install, which installs bootblocks on floppy discs 1685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1686# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1688# OS/2's system install, which has a completely different semantic 1689# ./install, which can be erroneously created by make from ./install.sh. 1690echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1691echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1692if test -z "$INSTALL"; then 1693if test "${ac_cv_path_install+set}" = set; then 1694 echo $ECHO_N "(cached) $ECHO_C" >&6 1695else 1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1697for as_dir in $PATH 1698do 1699 IFS=$as_save_IFS 1700 test -z "$as_dir" && as_dir=. 1701 # Account for people who put trailing slashes in PATH elements. 1702case $as_dir/ in 1703 ./ | .// | /cC/* | \ 1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1706 /usr/ucb/* ) ;; 1707 *) 1708 # OSF1 and SCO ODT 3.0 have their own names for install. 1709 # Don't use installbsd from OSF since it installs stuff as root 1710 # by default. 1711 for ac_prog in ginstall scoinst install; do 1712 for ac_exec_ext in '' $ac_executable_extensions; do 1713 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1714 if test $ac_prog = install && 1715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1716 # AIX install. It has an incompatible calling convention. 1717 : 1718 elif test $ac_prog = install && 1719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1720 # program-specific install script used by HP pwplus--don't use. 1721 : 1722 else 1723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1724 break 3 1725 fi 1726 fi 1727 done 1728 done 1729 ;; 1730esac 1731done 1732 1733 1734fi 1735 if test "${ac_cv_path_install+set}" = set; then 1736 INSTALL=$ac_cv_path_install 1737 else 1738 # As a last resort, use the slow shell script. We don't cache a 1739 # path for INSTALL within a source directory, because that will 1740 # break other packages using the cache if that directory is 1741 # removed, or if the path is relative. 1742 INSTALL=$ac_install_sh 1743 fi 1744fi 1745echo "$as_me:$LINENO: result: $INSTALL" >&5 1746echo "${ECHO_T}$INSTALL" >&6 1747 1748# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1749# It thinks the first close brace ends the variable substitution. 1750test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1751 1752test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1753 1754test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1755 1756echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1757echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1758# Just in case 1759sleep 1 1760echo timestamp > conftest.file 1761# Do `set' in a subshell so we don't clobber the current shell's 1762# arguments. Must try -L first in case configure is actually a 1763# symlink; some systems play weird games with the mod time of symlinks 1764# (eg FreeBSD returns the mod time of the symlink's containing 1765# directory). 1766if ( 1767 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1768 if test "$*" = "X"; then 1769 # -L didn't work. 1770 set X `ls -t $srcdir/configure conftest.file` 1771 fi 1772 rm -f conftest.file 1773 if test "$*" != "X $srcdir/configure conftest.file" \ 1774 && test "$*" != "X conftest.file $srcdir/configure"; then 1775 1776 # If neither matched, then we have a broken ls. This can happen 1777 # if, for instance, CONFIG_SHELL is bash and it inherits a 1778 # broken ls alias from the environment. This has actually 1779 # happened. Such a system could not be considered "sane". 1780 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1781alias in your environment" >&5 1782echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1783alias in your environment" >&2;} 1784 { (exit 1); exit 1; }; } 1785 fi 1786 1787 test "$2" = conftest.file 1788 ) 1789then 1790 # Ok. 1791 : 1792else 1793 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1794Check your system clock" >&5 1795echo "$as_me: error: newly created file is older than distributed files! 1796Check your system clock" >&2;} 1797 { (exit 1); exit 1; }; } 1798fi 1799echo "$as_me:$LINENO: result: yes" >&5 1800echo "${ECHO_T}yes" >&6 1801test "$program_prefix" != NONE && 1802 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1803# Use a double $ so make ignores it. 1804test "$program_suffix" != NONE && 1805 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1806# Double any \ or $. echo might interpret backslashes. 1807# By default was `s,x,x', remove it if useless. 1808cat <<\_ACEOF >conftest.sed 1809s/[\\$]/&&/g;s/;s,x,x,$// 1810_ACEOF 1811program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1812rm conftest.sed 1813 1814# expand $ac_aux_dir to an absolute path 1815am_aux_dir=`cd $ac_aux_dir && pwd` 1816 1817test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1818# Use eval to expand $SHELL 1819if eval "$MISSING --run true"; then 1820 am_missing_run="$MISSING --run " 1821else 1822 am_missing_run= 1823 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1824echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1825fi 1826 1827if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1828 # We used to keeping the `.' as first argument, in order to 1829 # allow $(mkdir_p) to be used without argument. As in 1830 # $(mkdir_p) $(somedir) 1831 # where $(somedir) is conditionally defined. However this is wrong 1832 # for two reasons: 1833 # 1. if the package is installed by a user who cannot write `.' 1834 # make install will fail, 1835 # 2. the above comment should most certainly read 1836 # $(mkdir_p) $(DESTDIR)$(somedir) 1837 # so it does not work when $(somedir) is undefined and 1838 # $(DESTDIR) is not. 1839 # To support the latter case, we have to write 1840 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1841 # so the `.' trick is pointless. 1842 mkdir_p='mkdir -p --' 1843else 1844 # On NextStep and OpenStep, the `mkdir' command does not 1845 # recognize any option. It will interpret all options as 1846 # directories to create, and then abort because `.' already 1847 # exists. 1848 for d in ./-p ./--version; 1849 do 1850 test -d $d && rmdir $d 1851 done 1852 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1853 if test -f "$ac_aux_dir/mkinstalldirs"; then 1854 mkdir_p='$(mkinstalldirs)' 1855 else 1856 mkdir_p='$(install_sh) -d' 1857 fi 1858fi 1859 1860for ac_prog in gawk mawk nawk awk 1861do 1862 # Extract the first word of "$ac_prog", so it can be a program name with args. 1863set dummy $ac_prog; ac_word=$2 1864echo "$as_me:$LINENO: checking for $ac_word" >&5 1865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1866if test "${ac_cv_prog_AWK+set}" = set; then 1867 echo $ECHO_N "(cached) $ECHO_C" >&6 1868else 1869 if test -n "$AWK"; then 1870 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1871else 1872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1873for as_dir in $PATH 1874do 1875 IFS=$as_save_IFS 1876 test -z "$as_dir" && as_dir=. 1877 for ac_exec_ext in '' $ac_executable_extensions; do 1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1879 ac_cv_prog_AWK="$ac_prog" 1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1881 break 2 1882 fi 1883done 1884done 1885 1886fi 1887fi 1888AWK=$ac_cv_prog_AWK 1889if test -n "$AWK"; then 1890 echo "$as_me:$LINENO: result: $AWK" >&5 1891echo "${ECHO_T}$AWK" >&6 1892else 1893 echo "$as_me:$LINENO: result: no" >&5 1894echo "${ECHO_T}no" >&6 1895fi 1896 1897 test -n "$AWK" && break 1898done 1899 1900rm -rf .tst 2>/dev/null 1901mkdir .tst 2>/dev/null 1902if test -d .tst; then 1903 am__leading_dot=. 1904else 1905 am__leading_dot=_ 1906fi 1907rmdir .tst 2>/dev/null 1908 1909# test to see if srcdir already configured 1910if test "`cd $srcdir && pwd`" != "`pwd`" && 1911 test -f $srcdir/config.status; then 1912 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1913echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1914 { (exit 1); exit 1; }; } 1915fi 1916 1917# test whether we have cygpath 1918if test -z "$CYGPATH_W"; then 1919 if (cygpath --version) >/dev/null 2>/dev/null; then 1920 CYGPATH_W='cygpath -w' 1921 else 1922 CYGPATH_W=echo 1923 fi 1924fi 1925 1926 1927# Define the identity of the package. 1928 PACKAGE=libpqtypes 1929 VERSION=1.5.1 1930 1931 1932cat >>confdefs.h <<_ACEOF 1933#define PACKAGE "$PACKAGE" 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<_ACEOF 1938#define VERSION "$VERSION" 1939_ACEOF 1940 1941# Some tools Automake needs. 1942 1943ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1944 1945 1946AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1947 1948 1949AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1950 1951 1952AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1953 1954 1955MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1956 1957install_sh=${install_sh-"$am_aux_dir/install-sh"} 1958 1959# Installed binaries are usually stripped using `strip' when the user 1960# run `make install-strip'. However `strip' might not be the right 1961# tool to use in cross-compilation environments, therefore Automake 1962# will honor the `STRIP' environment variable to overrule this program. 1963if test "$cross_compiling" != no; then 1964 if test -n "$ac_tool_prefix"; then 1965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1966set dummy ${ac_tool_prefix}strip; ac_word=$2 1967echo "$as_me:$LINENO: checking for $ac_word" >&5 1968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1969if test "${ac_cv_prog_STRIP+set}" = set; then 1970 echo $ECHO_N "(cached) $ECHO_C" >&6 1971else 1972 if test -n "$STRIP"; then 1973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1974else 1975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1976for as_dir in $PATH 1977do 1978 IFS=$as_save_IFS 1979 test -z "$as_dir" && as_dir=. 1980 for ac_exec_ext in '' $ac_executable_extensions; do 1981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1982 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1984 break 2 1985 fi 1986done 1987done 1988 1989fi 1990fi 1991STRIP=$ac_cv_prog_STRIP 1992if test -n "$STRIP"; then 1993 echo "$as_me:$LINENO: result: $STRIP" >&5 1994echo "${ECHO_T}$STRIP" >&6 1995else 1996 echo "$as_me:$LINENO: result: no" >&5 1997echo "${ECHO_T}no" >&6 1998fi 1999 2000fi 2001if test -z "$ac_cv_prog_STRIP"; then 2002 ac_ct_STRIP=$STRIP 2003 # Extract the first word of "strip", so it can be a program name with args. 2004set dummy strip; ac_word=$2 2005echo "$as_me:$LINENO: checking for $ac_word" >&5 2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2007if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2008 echo $ECHO_N "(cached) $ECHO_C" >&6 2009else 2010 if test -n "$ac_ct_STRIP"; then 2011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2012else 2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2014for as_dir in $PATH 2015do 2016 IFS=$as_save_IFS 2017 test -z "$as_dir" && as_dir=. 2018 for ac_exec_ext in '' $ac_executable_extensions; do 2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2020 ac_cv_prog_ac_ct_STRIP="strip" 2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2022 break 2 2023 fi 2024done 2025done 2026 2027 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2028fi 2029fi 2030ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2031if test -n "$ac_ct_STRIP"; then 2032 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2033echo "${ECHO_T}$ac_ct_STRIP" >&6 2034else 2035 echo "$as_me:$LINENO: result: no" >&5 2036echo "${ECHO_T}no" >&6 2037fi 2038 2039 STRIP=$ac_ct_STRIP 2040else 2041 STRIP="$ac_cv_prog_STRIP" 2042fi 2043 2044fi 2045INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2046 2047# We need awk for the "check" target. The system "awk" is bad on 2048# some platforms. 2049# Always define AMTAR for backward compatibility. 2050 2051AMTAR=${AMTAR-"${am_missing_run}tar"} 2052 2053am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2054 2055 2056 2057 2058 2059LIBPQTYPES_SO_VERSION=1:5:1 2060 2061# Check whether --enable-static or --disable-static was given. 2062if test "${enable_static+set}" = set; then 2063 enableval="$enable_static" 2064 p=${PACKAGE-default} 2065 case $enableval in 2066 yes) enable_static=yes ;; 2067 no) enable_static=no ;; 2068 *) 2069 enable_static=no 2070 # Look at the argument we got. We use all the common list separators. 2071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2072 for pkg in $enableval; do 2073 IFS="$lt_save_ifs" 2074 if test "X$pkg" = "X$p"; then 2075 enable_static=yes 2076 fi 2077 done 2078 IFS="$lt_save_ifs" 2079 ;; 2080 esac 2081else 2082 enable_static=no 2083fi; 2084 2085 2086# Check whether --enable-shared or --disable-shared was given. 2087if test "${enable_shared+set}" = set; then 2088 enableval="$enable_shared" 2089 p=${PACKAGE-default} 2090 case $enableval in 2091 yes) enable_shared=yes ;; 2092 no) enable_shared=no ;; 2093 *) 2094 enable_shared=no 2095 # Look at the argument we got. We use all the common list separators. 2096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2097 for pkg in $enableval; do 2098 IFS="$lt_save_ifs" 2099 if test "X$pkg" = "X$p"; then 2100 enable_shared=yes 2101 fi 2102 done 2103 IFS="$lt_save_ifs" 2104 ;; 2105 esac 2106else 2107 enable_shared=yes 2108fi; 2109 2110# Check whether --enable-fast-install or --disable-fast-install was given. 2111if test "${enable_fast_install+set}" = set; then 2112 enableval="$enable_fast_install" 2113 p=${PACKAGE-default} 2114 case $enableval in 2115 yes) enable_fast_install=yes ;; 2116 no) enable_fast_install=no ;; 2117 *) 2118 enable_fast_install=no 2119 # Look at the argument we got. We use all the common list separators. 2120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2121 for pkg in $enableval; do 2122 IFS="$lt_save_ifs" 2123 if test "X$pkg" = "X$p"; then 2124 enable_fast_install=yes 2125 fi 2126 done 2127 IFS="$lt_save_ifs" 2128 ;; 2129 esac 2130else 2131 enable_fast_install=yes 2132fi; 2133 2134DEPDIR="${am__leading_dot}deps" 2135 2136 ac_config_commands="$ac_config_commands depfiles" 2137 2138 2139am_make=${MAKE-make} 2140cat > confinc << 'END' 2141am__doit: 2142 @echo done 2143.PHONY: am__doit 2144END 2145# If we don't find an include directive, just comment out the code. 2146echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2147echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2148am__include="#" 2149am__quote= 2150_am_result=none 2151# First try GNU make style include. 2152echo "include confinc" > confmf 2153# We grep out `Entering directory' and `Leaving directory' 2154# messages which can occur if `w' ends up in MAKEFLAGS. 2155# In particular we don't look at `^make:' because GNU make might 2156# be invoked under some other name (usually "gmake"), in which 2157# case it prints its new name instead of `make'. 2158if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2159 am__include=include 2160 am__quote= 2161 _am_result=GNU 2162fi 2163# Now try BSD make style include. 2164if test "$am__include" = "#"; then 2165 echo '.include "confinc"' > confmf 2166 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2167 am__include=.include 2168 am__quote="\"" 2169 _am_result=BSD 2170 fi 2171fi 2172 2173 2174echo "$as_me:$LINENO: result: $_am_result" >&5 2175echo "${ECHO_T}$_am_result" >&6 2176rm -f confinc confmf 2177 2178# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2179if test "${enable_dependency_tracking+set}" = set; then 2180 enableval="$enable_dependency_tracking" 2181 2182fi; 2183if test "x$enable_dependency_tracking" != xno; then 2184 am_depcomp="$ac_aux_dir/depcomp" 2185 AMDEPBACKSLASH='\' 2186fi 2187 2188 2189if test "x$enable_dependency_tracking" != xno; then 2190 AMDEP_TRUE= 2191 AMDEP_FALSE='#' 2192else 2193 AMDEP_TRUE='#' 2194 AMDEP_FALSE= 2195fi 2196 2197 2198 2199ac_ext=c 2200ac_cpp='$CPP $CPPFLAGS' 2201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2203ac_compiler_gnu=$ac_cv_c_compiler_gnu 2204if test -n "$ac_tool_prefix"; then 2205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2206set dummy ${ac_tool_prefix}gcc; ac_word=$2 2207echo "$as_me:$LINENO: checking for $ac_word" >&5 2208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2209if test "${ac_cv_prog_CC+set}" = set; then 2210 echo $ECHO_N "(cached) $ECHO_C" >&6 2211else 2212 if test -n "$CC"; then 2213 ac_cv_prog_CC="$CC" # Let the user override the test. 2214else 2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2216for as_dir in $PATH 2217do 2218 IFS=$as_save_IFS 2219 test -z "$as_dir" && as_dir=. 2220 for ac_exec_ext in '' $ac_executable_extensions; do 2221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2222 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2224 break 2 2225 fi 2226done 2227done 2228 2229fi 2230fi 2231CC=$ac_cv_prog_CC 2232if test -n "$CC"; then 2233 echo "$as_me:$LINENO: result: $CC" >&5 2234echo "${ECHO_T}$CC" >&6 2235else 2236 echo "$as_me:$LINENO: result: no" >&5 2237echo "${ECHO_T}no" >&6 2238fi 2239 2240fi 2241if test -z "$ac_cv_prog_CC"; then 2242 ac_ct_CC=$CC 2243 # Extract the first word of "gcc", so it can be a program name with args. 2244set dummy gcc; ac_word=$2 2245echo "$as_me:$LINENO: checking for $ac_word" >&5 2246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2247if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2248 echo $ECHO_N "(cached) $ECHO_C" >&6 2249else 2250 if test -n "$ac_ct_CC"; then 2251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2252else 2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2254for as_dir in $PATH 2255do 2256 IFS=$as_save_IFS 2257 test -z "$as_dir" && as_dir=. 2258 for ac_exec_ext in '' $ac_executable_extensions; do 2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2260 ac_cv_prog_ac_ct_CC="gcc" 2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2262 break 2 2263 fi 2264done 2265done 2266 2267fi 2268fi 2269ac_ct_CC=$ac_cv_prog_ac_ct_CC 2270if test -n "$ac_ct_CC"; then 2271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2272echo "${ECHO_T}$ac_ct_CC" >&6 2273else 2274 echo "$as_me:$LINENO: result: no" >&5 2275echo "${ECHO_T}no" >&6 2276fi 2277 2278 CC=$ac_ct_CC 2279else 2280 CC="$ac_cv_prog_CC" 2281fi 2282 2283if test -z "$CC"; then 2284 if test -n "$ac_tool_prefix"; then 2285 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2286set dummy ${ac_tool_prefix}cc; ac_word=$2 2287echo "$as_me:$LINENO: checking for $ac_word" >&5 2288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2289if test "${ac_cv_prog_CC+set}" = set; then 2290 echo $ECHO_N "(cached) $ECHO_C" >&6 2291else 2292 if test -n "$CC"; then 2293 ac_cv_prog_CC="$CC" # Let the user override the test. 2294else 2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2296for as_dir in $PATH 2297do 2298 IFS=$as_save_IFS 2299 test -z "$as_dir" && as_dir=. 2300 for ac_exec_ext in '' $ac_executable_extensions; do 2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2302 ac_cv_prog_CC="${ac_tool_prefix}cc" 2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2304 break 2 2305 fi 2306done 2307done 2308 2309fi 2310fi 2311CC=$ac_cv_prog_CC 2312if test -n "$CC"; then 2313 echo "$as_me:$LINENO: result: $CC" >&5 2314echo "${ECHO_T}$CC" >&6 2315else 2316 echo "$as_me:$LINENO: result: no" >&5 2317echo "${ECHO_T}no" >&6 2318fi 2319 2320fi 2321if test -z "$ac_cv_prog_CC"; then 2322 ac_ct_CC=$CC 2323 # Extract the first word of "cc", so it can be a program name with args. 2324set dummy cc; ac_word=$2 2325echo "$as_me:$LINENO: checking for $ac_word" >&5 2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2327if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2328 echo $ECHO_N "(cached) $ECHO_C" >&6 2329else 2330 if test -n "$ac_ct_CC"; then 2331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2332else 2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2334for as_dir in $PATH 2335do 2336 IFS=$as_save_IFS 2337 test -z "$as_dir" && as_dir=. 2338 for ac_exec_ext in '' $ac_executable_extensions; do 2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2340 ac_cv_prog_ac_ct_CC="cc" 2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2342 break 2 2343 fi 2344done 2345done 2346 2347fi 2348fi 2349ac_ct_CC=$ac_cv_prog_ac_ct_CC 2350if test -n "$ac_ct_CC"; then 2351 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2352echo "${ECHO_T}$ac_ct_CC" >&6 2353else 2354 echo "$as_me:$LINENO: result: no" >&5 2355echo "${ECHO_T}no" >&6 2356fi 2357 2358 CC=$ac_ct_CC 2359else 2360 CC="$ac_cv_prog_CC" 2361fi 2362 2363fi 2364if test -z "$CC"; then 2365 # Extract the first word of "cc", so it can be a program name with args. 2366set dummy cc; ac_word=$2 2367echo "$as_me:$LINENO: checking for $ac_word" >&5 2368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2369if test "${ac_cv_prog_CC+set}" = set; then 2370 echo $ECHO_N "(cached) $ECHO_C" >&6 2371else 2372 if test -n "$CC"; then 2373 ac_cv_prog_CC="$CC" # Let the user override the test. 2374else 2375 ac_prog_rejected=no 2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2377for as_dir in $PATH 2378do 2379 IFS=$as_save_IFS 2380 test -z "$as_dir" && as_dir=. 2381 for ac_exec_ext in '' $ac_executable_extensions; do 2382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2383 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2384 ac_prog_rejected=yes 2385 continue 2386 fi 2387 ac_cv_prog_CC="cc" 2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2389 break 2 2390 fi 2391done 2392done 2393 2394if test $ac_prog_rejected = yes; then 2395 # We found a bogon in the path, so make sure we never use it. 2396 set dummy $ac_cv_prog_CC 2397 shift 2398 if test $# != 0; then 2399 # We chose a different compiler from the bogus one. 2400 # However, it has the same basename, so the bogon will be chosen 2401 # first if we set CC to just the basename; use the full file name. 2402 shift 2403 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2404 fi 2405fi 2406fi 2407fi 2408CC=$ac_cv_prog_CC 2409if test -n "$CC"; then 2410 echo "$as_me:$LINENO: result: $CC" >&5 2411echo "${ECHO_T}$CC" >&6 2412else 2413 echo "$as_me:$LINENO: result: no" >&5 2414echo "${ECHO_T}no" >&6 2415fi 2416 2417fi 2418if test -z "$CC"; then 2419 if test -n "$ac_tool_prefix"; then 2420 for ac_prog in cl 2421 do 2422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2423set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2424echo "$as_me:$LINENO: checking for $ac_word" >&5 2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2426if test "${ac_cv_prog_CC+set}" = set; then 2427 echo $ECHO_N "(cached) $ECHO_C" >&6 2428else 2429 if test -n "$CC"; then 2430 ac_cv_prog_CC="$CC" # Let the user override the test. 2431else 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2441 break 2 2442 fi 2443done 2444done 2445 2446fi 2447fi 2448CC=$ac_cv_prog_CC 2449if test -n "$CC"; then 2450 echo "$as_me:$LINENO: result: $CC" >&5 2451echo "${ECHO_T}$CC" >&6 2452else 2453 echo "$as_me:$LINENO: result: no" >&5 2454echo "${ECHO_T}no" >&6 2455fi 2456 2457 test -n "$CC" && break 2458 done 2459fi 2460if test -z "$CC"; then 2461 ac_ct_CC=$CC 2462 for ac_prog in cl 2463do 2464 # Extract the first word of "$ac_prog", so it can be a program name with args. 2465set dummy $ac_prog; ac_word=$2 2466echo "$as_me:$LINENO: checking for $ac_word" >&5 2467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2469 echo $ECHO_N "(cached) $ECHO_C" >&6 2470else 2471 if test -n "$ac_ct_CC"; then 2472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2473else 2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2475for as_dir in $PATH 2476do 2477 IFS=$as_save_IFS 2478 test -z "$as_dir" && as_dir=. 2479 for ac_exec_ext in '' $ac_executable_extensions; do 2480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2481 ac_cv_prog_ac_ct_CC="$ac_prog" 2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2483 break 2 2484 fi 2485done 2486done 2487 2488fi 2489fi 2490ac_ct_CC=$ac_cv_prog_ac_ct_CC 2491if test -n "$ac_ct_CC"; then 2492 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2493echo "${ECHO_T}$ac_ct_CC" >&6 2494else 2495 echo "$as_me:$LINENO: result: no" >&5 2496echo "${ECHO_T}no" >&6 2497fi 2498 2499 test -n "$ac_ct_CC" && break 2500done 2501 2502 CC=$ac_ct_CC 2503fi 2504 2505fi 2506 2507 2508test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2509See \`config.log' for more details." >&5 2510echo "$as_me: error: no acceptable C compiler found in \$PATH 2511See \`config.log' for more details." >&2;} 2512 { (exit 1); exit 1; }; } 2513 2514# Provide some information about the compiler. 2515echo "$as_me:$LINENO:" \ 2516 "checking for C compiler version" >&5 2517ac_compiler=`set X $ac_compile; echo $2` 2518{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2519 (eval $ac_compiler --version </dev/null >&5) 2>&5 2520 ac_status=$? 2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2522 (exit $ac_status); } 2523{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2524 (eval $ac_compiler -v </dev/null >&5) 2>&5 2525 ac_status=$? 2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2527 (exit $ac_status); } 2528{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2529 (eval $ac_compiler -V </dev/null >&5) 2>&5 2530 ac_status=$? 2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2532 (exit $ac_status); } 2533 2534cat >conftest.$ac_ext <<_ACEOF 2535/* confdefs.h. */ 2536_ACEOF 2537cat confdefs.h >>conftest.$ac_ext 2538cat >>conftest.$ac_ext <<_ACEOF 2539/* end confdefs.h. */ 2540 2541int 2542main () 2543{ 2544 2545 ; 2546 return 0; 2547} 2548_ACEOF 2549ac_clean_files_save=$ac_clean_files 2550ac_clean_files="$ac_clean_files a.out a.exe b.out" 2551# Try to create an executable without -o first, disregard a.out. 2552# It will help us diagnose broken compilers, and finding out an intuition 2553# of exeext. 2554echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2555echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2556ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2557if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2558 (eval $ac_link_default) 2>&5 2559 ac_status=$? 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); }; then 2562 # Find the output, starting from the most likely. This scheme is 2563# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2564# resort. 2565 2566# Be careful to initialize this variable, since it used to be cached. 2567# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2568ac_cv_exeext= 2569# b.out is created by i960 compilers. 2570for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2571do 2572 test -f "$ac_file" || continue 2573 case $ac_file in 2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2575 ;; 2576 conftest.$ac_ext ) 2577 # This is the source file. 2578 ;; 2579 [ab].out ) 2580 # We found the default executable, but exeext='' is most 2581 # certainly right. 2582 break;; 2583 *.* ) 2584 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2585 # FIXME: I believe we export ac_cv_exeext for Libtool, 2586 # but it would be cool to find out if it's true. Does anybody 2587 # maintain Libtool? --akim. 2588 export ac_cv_exeext 2589 break;; 2590 * ) 2591 break;; 2592 esac 2593done 2594else 2595 echo "$as_me: failed program was:" >&5 2596sed 's/^/| /' conftest.$ac_ext >&5 2597 2598{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2599See \`config.log' for more details." >&5 2600echo "$as_me: error: C compiler cannot create executables 2601See \`config.log' for more details." >&2;} 2602 { (exit 77); exit 77; }; } 2603fi 2604 2605ac_exeext=$ac_cv_exeext 2606echo "$as_me:$LINENO: result: $ac_file" >&5 2607echo "${ECHO_T}$ac_file" >&6 2608 2609# Check the compiler produces executables we can run. If not, either 2610# the compiler is broken, or we cross compile. 2611echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2612echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2613# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2614# If not cross compiling, check that we can run a simple program. 2615if test "$cross_compiling" != yes; then 2616 if { ac_try='./$ac_file' 2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2618 (eval $ac_try) 2>&5 2619 ac_status=$? 2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2621 (exit $ac_status); }; }; then 2622 cross_compiling=no 2623 else 2624 if test "$cross_compiling" = maybe; then 2625 cross_compiling=yes 2626 else 2627 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2628If you meant to cross compile, use \`--host'. 2629See \`config.log' for more details." >&5 2630echo "$as_me: error: cannot run C compiled programs. 2631If you meant to cross compile, use \`--host'. 2632See \`config.log' for more details." >&2;} 2633 { (exit 1); exit 1; }; } 2634 fi 2635 fi 2636fi 2637echo "$as_me:$LINENO: result: yes" >&5 2638echo "${ECHO_T}yes" >&6 2639 2640rm -f a.out a.exe conftest$ac_cv_exeext b.out 2641ac_clean_files=$ac_clean_files_save 2642# Check the compiler produces executables we can run. If not, either 2643# the compiler is broken, or we cross compile. 2644echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2645echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2646echo "$as_me:$LINENO: result: $cross_compiling" >&5 2647echo "${ECHO_T}$cross_compiling" >&6 2648 2649echo "$as_me:$LINENO: checking for suffix of executables" >&5 2650echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2652 (eval $ac_link) 2>&5 2653 ac_status=$? 2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2655 (exit $ac_status); }; then 2656 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2657# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2658# work properly (i.e., refer to `conftest.exe'), while it won't with 2659# `rm'. 2660for ac_file in conftest.exe conftest conftest.*; do 2661 test -f "$ac_file" || continue 2662 case $ac_file in 2663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2664 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2665 export ac_cv_exeext 2666 break;; 2667 * ) break;; 2668 esac 2669done 2670else 2671 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2672See \`config.log' for more details." >&5 2673echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2674See \`config.log' for more details." >&2;} 2675 { (exit 1); exit 1; }; } 2676fi 2677 2678rm -f conftest$ac_cv_exeext 2679echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2680echo "${ECHO_T}$ac_cv_exeext" >&6 2681 2682rm -f conftest.$ac_ext 2683EXEEXT=$ac_cv_exeext 2684ac_exeext=$EXEEXT 2685echo "$as_me:$LINENO: checking for suffix of object files" >&5 2686echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2687if test "${ac_cv_objext+set}" = set; then 2688 echo $ECHO_N "(cached) $ECHO_C" >&6 2689else 2690 cat >conftest.$ac_ext <<_ACEOF 2691/* confdefs.h. */ 2692_ACEOF 2693cat confdefs.h >>conftest.$ac_ext 2694cat >>conftest.$ac_ext <<_ACEOF 2695/* end confdefs.h. */ 2696 2697int 2698main () 2699{ 2700 2701 ; 2702 return 0; 2703} 2704_ACEOF 2705rm -f conftest.o conftest.obj 2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2707 (eval $ac_compile) 2>&5 2708 ac_status=$? 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); }; then 2711 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2712 case $ac_file in 2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2715 break;; 2716 esac 2717done 2718else 2719 echo "$as_me: failed program was:" >&5 2720sed 's/^/| /' conftest.$ac_ext >&5 2721 2722{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2723See \`config.log' for more details." >&5 2724echo "$as_me: error: cannot compute suffix of object files: cannot compile 2725See \`config.log' for more details." >&2;} 2726 { (exit 1); exit 1; }; } 2727fi 2728 2729rm -f conftest.$ac_cv_objext conftest.$ac_ext 2730fi 2731echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2732echo "${ECHO_T}$ac_cv_objext" >&6 2733OBJEXT=$ac_cv_objext 2734ac_objext=$OBJEXT 2735echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2736echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2737if test "${ac_cv_c_compiler_gnu+set}" = set; then 2738 echo $ECHO_N "(cached) $ECHO_C" >&6 2739else 2740 cat >conftest.$ac_ext <<_ACEOF 2741/* confdefs.h. */ 2742_ACEOF 2743cat confdefs.h >>conftest.$ac_ext 2744cat >>conftest.$ac_ext <<_ACEOF 2745/* end confdefs.h. */ 2746 2747int 2748main () 2749{ 2750#ifndef __GNUC__ 2751 choke me 2752#endif 2753 2754 ; 2755 return 0; 2756} 2757_ACEOF 2758rm -f conftest.$ac_objext 2759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2760 (eval $ac_compile) 2>conftest.er1 2761 ac_status=$? 2762 grep -v '^ *+' conftest.er1 >conftest.err 2763 rm -f conftest.er1 2764 cat conftest.err >&5 2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2766 (exit $ac_status); } && 2767 { ac_try='test -z "$ac_c_werror_flag" 2768 || test ! -s conftest.err' 2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2770 (eval $ac_try) 2>&5 2771 ac_status=$? 2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2773 (exit $ac_status); }; } && 2774 { ac_try='test -s conftest.$ac_objext' 2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2776 (eval $ac_try) 2>&5 2777 ac_status=$? 2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2779 (exit $ac_status); }; }; then 2780 ac_compiler_gnu=yes 2781else 2782 echo "$as_me: failed program was:" >&5 2783sed 's/^/| /' conftest.$ac_ext >&5 2784 2785ac_compiler_gnu=no 2786fi 2787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2788ac_cv_c_compiler_gnu=$ac_compiler_gnu 2789 2790fi 2791echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2792echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2793GCC=`test $ac_compiler_gnu = yes && echo yes` 2794ac_test_CFLAGS=${CFLAGS+set} 2795ac_save_CFLAGS=$CFLAGS 2796CFLAGS="-g" 2797echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2798echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2799if test "${ac_cv_prog_cc_g+set}" = set; then 2800 echo $ECHO_N "(cached) $ECHO_C" >&6 2801else 2802 cat >conftest.$ac_ext <<_ACEOF 2803/* confdefs.h. */ 2804_ACEOF 2805cat confdefs.h >>conftest.$ac_ext 2806cat >>conftest.$ac_ext <<_ACEOF 2807/* end confdefs.h. */ 2808 2809int 2810main () 2811{ 2812 2813 ; 2814 return 0; 2815} 2816_ACEOF 2817rm -f conftest.$ac_objext 2818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2819 (eval $ac_compile) 2>conftest.er1 2820 ac_status=$? 2821 grep -v '^ *+' conftest.er1 >conftest.err 2822 rm -f conftest.er1 2823 cat conftest.err >&5 2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2825 (exit $ac_status); } && 2826 { ac_try='test -z "$ac_c_werror_flag" 2827 || test ! -s conftest.err' 2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2829 (eval $ac_try) 2>&5 2830 ac_status=$? 2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2832 (exit $ac_status); }; } && 2833 { ac_try='test -s conftest.$ac_objext' 2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2835 (eval $ac_try) 2>&5 2836 ac_status=$? 2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2838 (exit $ac_status); }; }; then 2839 ac_cv_prog_cc_g=yes 2840else 2841 echo "$as_me: failed program was:" >&5 2842sed 's/^/| /' conftest.$ac_ext >&5 2843 2844ac_cv_prog_cc_g=no 2845fi 2846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2847fi 2848echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2849echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2850if test "$ac_test_CFLAGS" = set; then 2851 CFLAGS=$ac_save_CFLAGS 2852elif test $ac_cv_prog_cc_g = yes; then 2853 if test "$GCC" = yes; then 2854 CFLAGS="-g -O2" 2855 else 2856 CFLAGS="-g" 2857 fi 2858else 2859 if test "$GCC" = yes; then 2860 CFLAGS="-O2" 2861 else 2862 CFLAGS= 2863 fi 2864fi 2865echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2866echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2867if test "${ac_cv_prog_cc_stdc+set}" = set; then 2868 echo $ECHO_N "(cached) $ECHO_C" >&6 2869else 2870 ac_cv_prog_cc_stdc=no 2871ac_save_CC=$CC 2872cat >conftest.$ac_ext <<_ACEOF 2873/* confdefs.h. */ 2874_ACEOF 2875cat confdefs.h >>conftest.$ac_ext 2876cat >>conftest.$ac_ext <<_ACEOF 2877/* end confdefs.h. */ 2878#include <stdarg.h> 2879#include <stdio.h> 2880#include <sys/types.h> 2881#include <sys/stat.h> 2882/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2883struct buf { int x; }; 2884FILE * (*rcsopen) (struct buf *, struct stat *, int); 2885static char *e (p, i) 2886 char **p; 2887 int i; 2888{ 2889 return p[i]; 2890} 2891static char *f (char * (*g) (char **, int), char **p, ...) 2892{ 2893 char *s; 2894 va_list v; 2895 va_start (v,p); 2896 s = g (p, va_arg (v,int)); 2897 va_end (v); 2898 return s; 2899} 2900 2901/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2902 function prototypes and stuff, but not '\xHH' hex character constants. 2903 These don't provoke an error unfortunately, instead are silently treated 2904 as 'x'. The following induces an error, until -std1 is added to get 2905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2906 array size at least. It's necessary to write '\x00'==0 to get something 2907 that's true only with -std1. */ 2908int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2909 2910int test (int i, double x); 2911struct s1 {int (*f) (int a);}; 2912struct s2 {int (*f) (double a);}; 2913int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2914int argc; 2915char **argv; 2916int 2917main () 2918{ 2919return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2920 ; 2921 return 0; 2922} 2923_ACEOF 2924# Don't try gcc -ansi; that turns off useful extensions and 2925# breaks some systems' header files. 2926# AIX -qlanglvl=ansi 2927# Ultrix and OSF/1 -std1 2928# HP-UX 10.20 and later -Ae 2929# HP-UX older versions -Aa -D_HPUX_SOURCE 2930# SVR4 -Xc -D__EXTENSIONS__ 2931for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2932do 2933 CC="$ac_save_CC $ac_arg" 2934 rm -f conftest.$ac_objext 2935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2936 (eval $ac_compile) 2>conftest.er1 2937 ac_status=$? 2938 grep -v '^ *+' conftest.er1 >conftest.err 2939 rm -f conftest.er1 2940 cat conftest.err >&5 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2942 (exit $ac_status); } && 2943 { ac_try='test -z "$ac_c_werror_flag" 2944 || test ! -s conftest.err' 2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2946 (eval $ac_try) 2>&5 2947 ac_status=$? 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); }; } && 2950 { ac_try='test -s conftest.$ac_objext' 2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2952 (eval $ac_try) 2>&5 2953 ac_status=$? 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); }; }; then 2956 ac_cv_prog_cc_stdc=$ac_arg 2957break 2958else 2959 echo "$as_me: failed program was:" >&5 2960sed 's/^/| /' conftest.$ac_ext >&5 2961 2962fi 2963rm -f conftest.err conftest.$ac_objext 2964done 2965rm -f conftest.$ac_ext conftest.$ac_objext 2966CC=$ac_save_CC 2967 2968fi 2969 2970case "x$ac_cv_prog_cc_stdc" in 2971 x|xno) 2972 echo "$as_me:$LINENO: result: none needed" >&5 2973echo "${ECHO_T}none needed" >&6 ;; 2974 *) 2975 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2976echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2977 CC="$CC $ac_cv_prog_cc_stdc" ;; 2978esac 2979 2980# Some people use a C++ compiler to compile C. Since we use `exit', 2981# in C++ we need to declare it. In case someone uses the same compiler 2982# for both compiling C and C++ we need to have the C++ compiler decide 2983# the declaration of exit, since it's the most demanding environment. 2984cat >conftest.$ac_ext <<_ACEOF 2985#ifndef __cplusplus 2986 choke me 2987#endif 2988_ACEOF 2989rm -f conftest.$ac_objext 2990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2991 (eval $ac_compile) 2>conftest.er1 2992 ac_status=$? 2993 grep -v '^ *+' conftest.er1 >conftest.err 2994 rm -f conftest.er1 2995 cat conftest.err >&5 2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2997 (exit $ac_status); } && 2998 { ac_try='test -z "$ac_c_werror_flag" 2999 || test ! -s conftest.err' 3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3001 (eval $ac_try) 2>&5 3002 ac_status=$? 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); }; } && 3005 { ac_try='test -s conftest.$ac_objext' 3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3007 (eval $ac_try) 2>&5 3008 ac_status=$? 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); }; }; then 3011 for ac_declaration in \ 3012 '' \ 3013 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3014 'extern "C" void std::exit (int); using std::exit;' \ 3015 'extern "C" void exit (int) throw ();' \ 3016 'extern "C" void exit (int);' \ 3017 'void exit (int);' 3018do 3019 cat >conftest.$ac_ext <<_ACEOF 3020/* confdefs.h. */ 3021_ACEOF 3022cat confdefs.h >>conftest.$ac_ext 3023cat >>conftest.$ac_ext <<_ACEOF 3024/* end confdefs.h. */ 3025$ac_declaration 3026#include <stdlib.h> 3027int 3028main () 3029{ 3030exit (42); 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.$ac_objext 3036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3037 (eval $ac_compile) 2>conftest.er1 3038 ac_status=$? 3039 grep -v '^ *+' conftest.er1 >conftest.err 3040 rm -f conftest.er1 3041 cat conftest.err >&5 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); } && 3044 { ac_try='test -z "$ac_c_werror_flag" 3045 || test ! -s conftest.err' 3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3047 (eval $ac_try) 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); }; } && 3051 { ac_try='test -s conftest.$ac_objext' 3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3053 (eval $ac_try) 2>&5 3054 ac_status=$? 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); }; }; then 3057 : 3058else 3059 echo "$as_me: failed program was:" >&5 3060sed 's/^/| /' conftest.$ac_ext >&5 3061 3062continue 3063fi 3064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3065 cat >conftest.$ac_ext <<_ACEOF 3066/* confdefs.h. */ 3067_ACEOF 3068cat confdefs.h >>conftest.$ac_ext 3069cat >>conftest.$ac_ext <<_ACEOF 3070/* end confdefs.h. */ 3071$ac_declaration 3072int 3073main () 3074{ 3075exit (42); 3076 ; 3077 return 0; 3078} 3079_ACEOF 3080rm -f conftest.$ac_objext 3081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3082 (eval $ac_compile) 2>conftest.er1 3083 ac_status=$? 3084 grep -v '^ *+' conftest.er1 >conftest.err 3085 rm -f conftest.er1 3086 cat conftest.err >&5 3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 (exit $ac_status); } && 3089 { ac_try='test -z "$ac_c_werror_flag" 3090 || test ! -s conftest.err' 3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3092 (eval $ac_try) 2>&5 3093 ac_status=$? 3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3095 (exit $ac_status); }; } && 3096 { ac_try='test -s conftest.$ac_objext' 3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3098 (eval $ac_try) 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; }; then 3102 break 3103else 3104 echo "$as_me: failed program was:" >&5 3105sed 's/^/| /' conftest.$ac_ext >&5 3106 3107fi 3108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3109done 3110rm -f conftest* 3111if test -n "$ac_declaration"; then 3112 echo '#ifdef __cplusplus' >>confdefs.h 3113 echo $ac_declaration >>confdefs.h 3114 echo '#endif' >>confdefs.h 3115fi 3116 3117else 3118 echo "$as_me: failed program was:" >&5 3119sed 's/^/| /' conftest.$ac_ext >&5 3120 3121fi 3122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3123ac_ext=c 3124ac_cpp='$CPP $CPPFLAGS' 3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3127ac_compiler_gnu=$ac_cv_c_compiler_gnu 3128 3129depcc="$CC" am_compiler_list= 3130 3131echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3132echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3133if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3134 echo $ECHO_N "(cached) $ECHO_C" >&6 3135else 3136 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3137 # We make a subdir and do the tests there. Otherwise we can end up 3138 # making bogus files that we don't know about and never remove. For 3139 # instance it was reported that on HP-UX the gcc test will end up 3140 # making a dummy file named `D' -- because `-MD' means `put the output 3141 # in D'. 3142 mkdir conftest.dir 3143 # Copy depcomp to subdir because otherwise we won't find it if we're 3144 # using a relative directory. 3145 cp "$am_depcomp" conftest.dir 3146 cd conftest.dir 3147 # We will build objects and dependencies in a subdirectory because 3148 # it helps to detect inapplicable dependency modes. For instance 3149 # both Tru64's cc and ICC support -MD to output dependencies as a 3150 # side effect of compilation, but ICC will put the dependencies in 3151 # the current directory while Tru64 will put them in the object 3152 # directory. 3153 mkdir sub 3154 3155 am_cv_CC_dependencies_compiler_type=none 3156 if test "$am_compiler_list" = ""; then 3157 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3158 fi 3159 for depmode in $am_compiler_list; do 3160 # Setup a source with many dependencies, because some compilers 3161 # like to wrap large dependency lists on column 80 (with \), and 3162 # we should not choose a depcomp mode which is confused by this. 3163 # 3164 # We need to recreate these files for each test, as the compiler may 3165 # overwrite some of them when testing with obscure command lines. 3166 # This happens at least with the AIX C compiler. 3167 : > sub/conftest.c 3168 for i in 1 2 3 4 5 6; do 3169 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3170 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3171 # Solaris 8's {/usr,}/bin/sh. 3172 touch sub/conftst$i.h 3173 done 3174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3175 3176 case $depmode in 3177 nosideeffect) 3178 # after this tag, mechanisms are not by side-effect, so they'll 3179 # only be used when explicitly requested 3180 if test "x$enable_dependency_tracking" = xyes; then 3181 continue 3182 else 3183 break 3184 fi 3185 ;; 3186 none) break ;; 3187 esac 3188 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3189 # mode. It turns out that the SunPro C++ compiler does not properly 3190 # handle `-M -o', and we need to detect this. 3191 if depmode=$depmode \ 3192 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3194 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3195 >/dev/null 2>conftest.err && 3196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3197 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3199 # icc doesn't choke on unknown options, it will just issue warnings 3200 # or remarks (even with -Werror). So we grep stderr for any message 3201 # that says an option was ignored or not supported. 3202 # When given -MP, icc 7.0 and 7.1 complain thusly: 3203 # icc: Command line warning: ignoring option '-M'; no argument required 3204 # The diagnosis changed in icc 8.0: 3205 # icc: Command line remark: option '-MP' not supported 3206 if (grep 'ignoring option' conftest.err || 3207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3208 am_cv_CC_dependencies_compiler_type=$depmode 3209 break 3210 fi 3211 fi 3212 done 3213 3214 cd .. 3215 rm -rf conftest.dir 3216else 3217 am_cv_CC_dependencies_compiler_type=none 3218fi 3219 3220fi 3221echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3222echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3223CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3224 3225 3226 3227if 3228 test "x$enable_dependency_tracking" != xno \ 3229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3230 am__fastdepCC_TRUE= 3231 am__fastdepCC_FALSE='#' 3232else 3233 am__fastdepCC_TRUE='#' 3234 am__fastdepCC_FALSE= 3235fi 3236 3237 3238echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3239echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3240if test "${lt_cv_path_SED+set}" = set; then 3241 echo $ECHO_N "(cached) $ECHO_C" >&6 3242else 3243 # Loop through the user's path and test for sed and gsed. 3244# Then use that list of sed's as ones to test for truncation. 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for lt_ac_prog in sed gsed; do 3251 for ac_exec_ext in '' $ac_executable_extensions; do 3252 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3253 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3254 fi 3255 done 3256 done 3257done 3258IFS=$as_save_IFS 3259lt_ac_max=0 3260lt_ac_count=0 3261# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3262# along with /bin/sed that truncates output. 3263for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3264 test ! -f $lt_ac_sed && continue 3265 cat /dev/null > conftest.in 3266 lt_ac_count=0 3267 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3268 # Check for GNU sed and select it if it is found. 3269 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3270 lt_cv_path_SED=$lt_ac_sed 3271 break 3272 fi 3273 while true; do 3274 cat conftest.in conftest.in >conftest.tmp 3275 mv conftest.tmp conftest.in 3276 cp conftest.in conftest.nl 3277 echo >>conftest.nl 3278 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3279 cmp -s conftest.out conftest.nl || break 3280 # 10000 chars as input seems more than enough 3281 test $lt_ac_count -gt 10 && break 3282 lt_ac_count=`expr $lt_ac_count + 1` 3283 if test $lt_ac_count -gt $lt_ac_max; then 3284 lt_ac_max=$lt_ac_count 3285 lt_cv_path_SED=$lt_ac_sed 3286 fi 3287 done 3288done 3289 3290fi 3291 3292SED=$lt_cv_path_SED 3293 3294echo "$as_me:$LINENO: result: $SED" >&5 3295echo "${ECHO_T}$SED" >&6 3296 3297echo "$as_me:$LINENO: checking for egrep" >&5 3298echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3299if test "${ac_cv_prog_egrep+set}" = set; then 3300 echo $ECHO_N "(cached) $ECHO_C" >&6 3301else 3302 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3303 then ac_cv_prog_egrep='grep -E' 3304 else ac_cv_prog_egrep='egrep' 3305 fi 3306fi 3307echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3308echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3309 EGREP=$ac_cv_prog_egrep 3310 3311 3312 3313# Check whether --with-gnu-ld or --without-gnu-ld was given. 3314if test "${with_gnu_ld+set}" = set; then 3315 withval="$with_gnu_ld" 3316 test "$withval" = no || with_gnu_ld=yes 3317else 3318 with_gnu_ld=no 3319fi; 3320ac_prog=ld 3321if test "$GCC" = yes; then 3322 # Check if gcc -print-prog-name=ld gives a path. 3323 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3324echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3325 case $host in 3326 *-*-mingw*) 3327 # gcc leaves a trailing carriage return which upsets mingw 3328 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3329 *) 3330 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3331 esac 3332 case $ac_prog in 3333 # Accept absolute paths. 3334 [\\/]* | ?:[\\/]*) 3335 re_direlt='/[^/][^/]*/\.\./' 3336 # Canonicalize the pathname of ld 3337 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3338 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3339 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3340 done 3341 test -z "$LD" && LD="$ac_prog" 3342 ;; 3343 "") 3344 # If it fails, then pretend we aren't using GCC. 3345 ac_prog=ld 3346 ;; 3347 *) 3348 # If it is relative, then search for the first ld in PATH. 3349 with_gnu_ld=unknown 3350 ;; 3351 esac 3352elif test "$with_gnu_ld" = yes; then 3353 echo "$as_me:$LINENO: checking for GNU ld" >&5 3354echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3355else 3356 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3357echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3358fi 3359if test "${lt_cv_path_LD+set}" = set; then 3360 echo $ECHO_N "(cached) $ECHO_C" >&6 3361else 3362 if test -z "$LD"; then 3363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3364 for ac_dir in $PATH; do 3365 IFS="$lt_save_ifs" 3366 test -z "$ac_dir" && ac_dir=. 3367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3368 lt_cv_path_LD="$ac_dir/$ac_prog" 3369 # Check to see if the program is GNU ld. I'd rather use --version, 3370 # but apparently some variants of GNU ld only accept -v. 3371 # Break only if it was the GNU/non-GNU ld that we prefer. 3372 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3373 *GNU* | *'with BFD'*) 3374 test "$with_gnu_ld" != no && break 3375 ;; 3376 *) 3377 test "$with_gnu_ld" != yes && break 3378 ;; 3379 esac 3380 fi 3381 done 3382 IFS="$lt_save_ifs" 3383else 3384 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3385fi 3386fi 3387 3388LD="$lt_cv_path_LD" 3389if test -n "$LD"; then 3390 echo "$as_me:$LINENO: result: $LD" >&5 3391echo "${ECHO_T}$LD" >&6 3392else 3393 echo "$as_me:$LINENO: result: no" >&5 3394echo "${ECHO_T}no" >&6 3395fi 3396test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3397echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3398 { (exit 1); exit 1; }; } 3399echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3400echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3401if test "${lt_cv_prog_gnu_ld+set}" = set; then 3402 echo $ECHO_N "(cached) $ECHO_C" >&6 3403else 3404 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3405case `$LD -v 2>&1 </dev/null` in 3406*GNU* | *'with BFD'*) 3407 lt_cv_prog_gnu_ld=yes 3408 ;; 3409*) 3410 lt_cv_prog_gnu_ld=no 3411 ;; 3412esac 3413fi 3414echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3415echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3416with_gnu_ld=$lt_cv_prog_gnu_ld 3417 3418 3419echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3420echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3421if test "${lt_cv_ld_reload_flag+set}" = set; then 3422 echo $ECHO_N "(cached) $ECHO_C" >&6 3423else 3424 lt_cv_ld_reload_flag='-r' 3425fi 3426echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3427echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3428reload_flag=$lt_cv_ld_reload_flag 3429case $reload_flag in 3430"" | " "*) ;; 3431*) reload_flag=" $reload_flag" ;; 3432esac 3433reload_cmds='$LD$reload_flag -o $output$reload_objs' 3434case $host_os in 3435 darwin*) 3436 if test "$GCC" = yes; then 3437 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3438 else 3439 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3440 fi 3441 ;; 3442esac 3443 3444echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3445echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3446if test "${lt_cv_path_NM+set}" = set; then 3447 echo $ECHO_N "(cached) $ECHO_C" >&6 3448else 3449 if test -n "$NM"; then 3450 # Let the user override the test. 3451 lt_cv_path_NM="$NM" 3452else 3453 lt_nm_to_check="${ac_tool_prefix}nm" 3454 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3455 lt_nm_to_check="$lt_nm_to_check nm" 3456 fi 3457 for lt_tmp_nm in $lt_nm_to_check; do 3458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3459 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3460 IFS="$lt_save_ifs" 3461 test -z "$ac_dir" && ac_dir=. 3462 tmp_nm="$ac_dir/$lt_tmp_nm" 3463 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3464 # Check to see if the nm accepts a BSD-compat flag. 3465 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3466 # nm: unknown option "B" ignored 3467 # Tru64's nm complains that /dev/null is an invalid object file 3468 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3469 */dev/null* | *'Invalid file or object type'*) 3470 lt_cv_path_NM="$tmp_nm -B" 3471 break 3472 ;; 3473 *) 3474 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3475 */dev/null*) 3476 lt_cv_path_NM="$tmp_nm -p" 3477 break 3478 ;; 3479 *) 3480 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3481 continue # so that we can try to find one that supports BSD flags 3482 ;; 3483 esac 3484 ;; 3485 esac 3486 fi 3487 done 3488 IFS="$lt_save_ifs" 3489 done 3490 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3491fi 3492fi 3493echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3494echo "${ECHO_T}$lt_cv_path_NM" >&6 3495NM="$lt_cv_path_NM" 3496 3497echo "$as_me:$LINENO: checking whether ln -s works" >&5 3498echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3499LN_S=$as_ln_s 3500if test "$LN_S" = "ln -s"; then 3501 echo "$as_me:$LINENO: result: yes" >&5 3502echo "${ECHO_T}yes" >&6 3503else 3504 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3505echo "${ECHO_T}no, using $LN_S" >&6 3506fi 3507 3508echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3509echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3510if test "${lt_cv_deplibs_check_method+set}" = set; then 3511 echo $ECHO_N "(cached) $ECHO_C" >&6 3512else 3513 lt_cv_file_magic_cmd='$MAGIC_CMD' 3514lt_cv_file_magic_test_file= 3515lt_cv_deplibs_check_method='unknown' 3516# Need to set the preceding variable on all platforms that support 3517# interlibrary dependencies. 3518# 'none' -- dependencies not supported. 3519# `unknown' -- same as none, but documents that we really don't know. 3520# 'pass_all' -- all dependencies passed with no checks. 3521# 'test_compile' -- check by making test program. 3522# 'file_magic [[regex]]' -- check by looking for files in library path 3523# which responds to the $file_magic_cmd with a given extended regex. 3524# If you have `file' or equivalent on your system and you're not sure 3525# whether `pass_all' will *always* work, you probably want this one. 3526 3527case $host_os in 3528aix4* | aix5*) 3529 lt_cv_deplibs_check_method=pass_all 3530 ;; 3531 3532beos*) 3533 lt_cv_deplibs_check_method=pass_all 3534 ;; 3535 3536bsdi[45]*) 3537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3538 lt_cv_file_magic_cmd='/usr/bin/file -L' 3539 lt_cv_file_magic_test_file=/shlib/libc.so 3540 ;; 3541 3542cygwin*) 3543 # func_win32_libid is a shell function defined in ltmain.sh 3544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3545 lt_cv_file_magic_cmd='func_win32_libid' 3546 ;; 3547 3548mingw* | pw32*) 3549 # Base MSYS/MinGW do not provide the 'file' command needed by 3550 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3551 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3552 lt_cv_file_magic_cmd='$OBJDUMP -f' 3553 ;; 3554 3555darwin* | rhapsody*) 3556 lt_cv_deplibs_check_method=pass_all 3557 ;; 3558 3559freebsd* | kfreebsd*-gnu | dragonfly*) 3560 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3561 case $host_cpu in 3562 i*86 ) 3563 # Not sure whether the presence of OpenBSD here was a mistake. 3564 # Let's accept both of them until this is cleared up. 3565 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 3566 lt_cv_file_magic_cmd=/usr/bin/file 3567 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3568 ;; 3569 esac 3570 else 3571 lt_cv_deplibs_check_method=pass_all 3572 fi 3573 ;; 3574 3575gnu*) 3576 lt_cv_deplibs_check_method=pass_all 3577 ;; 3578 3579hpux10.20* | hpux11*) 3580 lt_cv_file_magic_cmd=/usr/bin/file 3581 case $host_cpu in 3582 ia64*) 3583 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3584 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3585 ;; 3586 hppa*64*) 3587 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]' 3588 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3589 ;; 3590 *) 3591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3592 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3593 ;; 3594 esac 3595 ;; 3596 3597interix3*) 3598 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 3600 ;; 3601 3602irix5* | irix6* | nonstopux*) 3603 case $LD in 3604 *-32|*"-32 ") libmagic=32-bit;; 3605 *-n32|*"-n32 ") libmagic=N32;; 3606 *-64|*"-64 ") libmagic=64-bit;; 3607 *) libmagic=never-match;; 3608 esac 3609 lt_cv_deplibs_check_method=pass_all 3610 ;; 3611 3612# This must be Linux ELF. 3613linux*) 3614 lt_cv_deplibs_check_method=pass_all 3615 ;; 3616 3617netbsd*) 3618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3620 else 3621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3622 fi 3623 ;; 3624 3625newos6*) 3626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3627 lt_cv_file_magic_cmd=/usr/bin/file 3628 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3629 ;; 3630 3631nto-qnx*) 3632 lt_cv_deplibs_check_method=unknown 3633 ;; 3634 3635openbsd*) 3636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 3638 else 3639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3640 fi 3641 ;; 3642 3643osf3* | osf4* | osf5*) 3644 lt_cv_deplibs_check_method=pass_all 3645 ;; 3646 3647solaris*) 3648 lt_cv_deplibs_check_method=pass_all 3649 ;; 3650 3651sysv4 | sysv4.3*) 3652 case $host_vendor in 3653 motorola) 3654 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]' 3655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3656 ;; 3657 ncr) 3658 lt_cv_deplibs_check_method=pass_all 3659 ;; 3660 sequent) 3661 lt_cv_file_magic_cmd='/bin/file' 3662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3663 ;; 3664 sni) 3665 lt_cv_file_magic_cmd='/bin/file' 3666 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3667 lt_cv_file_magic_test_file=/lib/libc.so 3668 ;; 3669 siemens) 3670 lt_cv_deplibs_check_method=pass_all 3671 ;; 3672 pc) 3673 lt_cv_deplibs_check_method=pass_all 3674 ;; 3675 esac 3676 ;; 3677 3678sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3679 lt_cv_deplibs_check_method=pass_all 3680 ;; 3681esac 3682 3683fi 3684echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3685echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3686file_magic_cmd=$lt_cv_file_magic_cmd 3687deplibs_check_method=$lt_cv_deplibs_check_method 3688test -z "$deplibs_check_method" && deplibs_check_method=unknown 3689 3690 3691 3692 3693# If no C compiler was specified, use CC. 3694LTCC=${LTCC-"$CC"} 3695 3696# If no C compiler flags were specified, use CFLAGS. 3697LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 3698 3699# Allow CC to be a program name with arguments. 3700compiler=$CC 3701 3702 3703# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3704if test "${enable_libtool_lock+set}" = set; then 3705 enableval="$enable_libtool_lock" 3706 3707fi; 3708test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3709 3710# Some flags need to be propagated to the compiler or linker for good 3711# libtool support. 3712case $host in 3713ia64-*-hpux*) 3714 # Find out which ABI we are using. 3715 echo 'int i;' > conftest.$ac_ext 3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3717 (eval $ac_compile) 2>&5 3718 ac_status=$? 3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3720 (exit $ac_status); }; then 3721 case `/usr/bin/file conftest.$ac_objext` in 3722 *ELF-32*) 3723 HPUX_IA64_MODE="32" 3724 ;; 3725 *ELF-64*) 3726 HPUX_IA64_MODE="64" 3727 ;; 3728 esac 3729 fi 3730 rm -rf conftest* 3731 ;; 3732*-*-irix6*) 3733 # Find out which ABI we are using. 3734 echo '#line 3734 "configure"' > conftest.$ac_ext 3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3736 (eval $ac_compile) 2>&5 3737 ac_status=$? 3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); }; then 3740 if test "$lt_cv_prog_gnu_ld" = yes; then 3741 case `/usr/bin/file conftest.$ac_objext` in 3742 *32-bit*) 3743 LD="${LD-ld} -melf32bsmip" 3744 ;; 3745 *N32*) 3746 LD="${LD-ld} -melf32bmipn32" 3747 ;; 3748 *64-bit*) 3749 LD="${LD-ld} -melf64bmip" 3750 ;; 3751 esac 3752 else 3753 case `/usr/bin/file conftest.$ac_objext` in 3754 *32-bit*) 3755 LD="${LD-ld} -32" 3756 ;; 3757 *N32*) 3758 LD="${LD-ld} -n32" 3759 ;; 3760 *64-bit*) 3761 LD="${LD-ld} -64" 3762 ;; 3763 esac 3764 fi 3765 fi 3766 rm -rf conftest* 3767 ;; 3768 3769x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3770 # Find out which ABI we are using. 3771 echo 'int i;' > conftest.$ac_ext 3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3773 (eval $ac_compile) 2>&5 3774 ac_status=$? 3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3776 (exit $ac_status); }; then 3777 case `/usr/bin/file conftest.o` in 3778 *32-bit*) 3779 case $host in 3780 x86_64-*linux*) 3781 LD="${LD-ld} -m elf_i386" 3782 ;; 3783 ppc64-*linux*|powerpc64-*linux*) 3784 LD="${LD-ld} -m elf32ppclinux" 3785 ;; 3786 s390x-*linux*) 3787 LD="${LD-ld} -m elf_s390" 3788 ;; 3789 sparc64-*linux*) 3790 LD="${LD-ld} -m elf32_sparc" 3791 ;; 3792 esac 3793 ;; 3794 *64-bit*) 3795 case $host in 3796 x86_64-*linux*) 3797 LD="${LD-ld} -m elf_x86_64" 3798 ;; 3799 ppc*-*linux*|powerpc*-*linux*) 3800 LD="${LD-ld} -m elf64ppc" 3801 ;; 3802 s390*-*linux*) 3803 LD="${LD-ld} -m elf64_s390" 3804 ;; 3805 sparc*-*linux*) 3806 LD="${LD-ld} -m elf64_sparc" 3807 ;; 3808 esac 3809 ;; 3810 esac 3811 fi 3812 rm -rf conftest* 3813 ;; 3814 3815*-*-sco3.2v5*) 3816 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3817 SAVE_CFLAGS="$CFLAGS" 3818 CFLAGS="$CFLAGS -belf" 3819 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3820echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3821if test "${lt_cv_cc_needs_belf+set}" = set; then 3822 echo $ECHO_N "(cached) $ECHO_C" >&6 3823else 3824 ac_ext=c 3825ac_cpp='$CPP $CPPFLAGS' 3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3828ac_compiler_gnu=$ac_cv_c_compiler_gnu 3829 3830 cat >conftest.$ac_ext <<_ACEOF 3831/* confdefs.h. */ 3832_ACEOF 3833cat confdefs.h >>conftest.$ac_ext 3834cat >>conftest.$ac_ext <<_ACEOF 3835/* end confdefs.h. */ 3836 3837int 3838main () 3839{ 3840 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845rm -f conftest.$ac_objext conftest$ac_exeext 3846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3847 (eval $ac_link) 2>conftest.er1 3848 ac_status=$? 3849 grep -v '^ *+' conftest.er1 >conftest.err 3850 rm -f conftest.er1 3851 cat conftest.err >&5 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); } && 3854 { ac_try='test -z "$ac_c_werror_flag" 3855 || test ! -s conftest.err' 3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3857 (eval $ac_try) 2>&5 3858 ac_status=$? 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); }; } && 3861 { ac_try='test -s conftest$ac_exeext' 3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3863 (eval $ac_try) 2>&5 3864 ac_status=$? 3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3866 (exit $ac_status); }; }; then 3867 lt_cv_cc_needs_belf=yes 3868else 3869 echo "$as_me: failed program was:" >&5 3870sed 's/^/| /' conftest.$ac_ext >&5 3871 3872lt_cv_cc_needs_belf=no 3873fi 3874rm -f conftest.err conftest.$ac_objext \ 3875 conftest$ac_exeext conftest.$ac_ext 3876 ac_ext=c 3877ac_cpp='$CPP $CPPFLAGS' 3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880ac_compiler_gnu=$ac_cv_c_compiler_gnu 3881 3882fi 3883echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3884echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3885 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3886 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3887 CFLAGS="$SAVE_CFLAGS" 3888 fi 3889 ;; 3890sparc*-*solaris*) 3891 # Find out which ABI we are using. 3892 echo 'int i;' > conftest.$ac_ext 3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3894 (eval $ac_compile) 2>&5 3895 ac_status=$? 3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3897 (exit $ac_status); }; then 3898 case `/usr/bin/file conftest.o` in 3899 *64-bit*) 3900 case $lt_cv_prog_gnu_ld in 3901 yes*) LD="${LD-ld} -m elf64_sparc" ;; 3902 *) LD="${LD-ld} -64" ;; 3903 esac 3904 ;; 3905 esac 3906 fi 3907 rm -rf conftest* 3908 ;; 3909 3910 3911esac 3912 3913need_locks="$enable_libtool_lock" 3914 3915 3916ac_ext=c 3917ac_cpp='$CPP $CPPFLAGS' 3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3920ac_compiler_gnu=$ac_cv_c_compiler_gnu 3921echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3922echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3923# On Suns, sometimes $CPP names a directory. 3924if test -n "$CPP" && test -d "$CPP"; then 3925 CPP= 3926fi 3927if test -z "$CPP"; then 3928 if test "${ac_cv_prog_CPP+set}" = set; then 3929 echo $ECHO_N "(cached) $ECHO_C" >&6 3930else 3931 # Double quotes because CPP needs to be expanded 3932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3933 do 3934 ac_preproc_ok=false 3935for ac_c_preproc_warn_flag in '' yes 3936do 3937 # Use a header file that comes with gcc, so configuring glibc 3938 # with a fresh cross-compiler works. 3939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3940 # <limits.h> exists even on freestanding compilers. 3941 # On the NeXT, cc -E runs the code through the compiler's parser, 3942 # not just through cpp. "Syntax error" is here to catch this case. 3943 cat >conftest.$ac_ext <<_ACEOF 3944/* confdefs.h. */ 3945_ACEOF 3946cat confdefs.h >>conftest.$ac_ext 3947cat >>conftest.$ac_ext <<_ACEOF 3948/* end confdefs.h. */ 3949#ifdef __STDC__ 3950# include <limits.h> 3951#else 3952# include <assert.h> 3953#endif 3954 Syntax error 3955_ACEOF 3956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3958 ac_status=$? 3959 grep -v '^ *+' conftest.er1 >conftest.err 3960 rm -f conftest.er1 3961 cat conftest.err >&5 3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3963 (exit $ac_status); } >/dev/null; then 3964 if test -s conftest.err; then 3965 ac_cpp_err=$ac_c_preproc_warn_flag 3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3967 else 3968 ac_cpp_err= 3969 fi 3970else 3971 ac_cpp_err=yes 3972fi 3973if test -z "$ac_cpp_err"; then 3974 : 3975else 3976 echo "$as_me: failed program was:" >&5 3977sed 's/^/| /' conftest.$ac_ext >&5 3978 3979 # Broken: fails on valid input. 3980continue 3981fi 3982rm -f conftest.err conftest.$ac_ext 3983 3984 # OK, works on sane cases. Now check whether non-existent headers 3985 # can be detected and how. 3986 cat >conftest.$ac_ext <<_ACEOF 3987/* confdefs.h. */ 3988_ACEOF 3989cat confdefs.h >>conftest.$ac_ext 3990cat >>conftest.$ac_ext <<_ACEOF 3991/* end confdefs.h. */ 3992#include <ac_nonexistent.h> 3993_ACEOF 3994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3996 ac_status=$? 3997 grep -v '^ *+' conftest.er1 >conftest.err 3998 rm -f conftest.er1 3999 cat conftest.err >&5 4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4001 (exit $ac_status); } >/dev/null; then 4002 if test -s conftest.err; then 4003 ac_cpp_err=$ac_c_preproc_warn_flag 4004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4005 else 4006 ac_cpp_err= 4007 fi 4008else 4009 ac_cpp_err=yes 4010fi 4011if test -z "$ac_cpp_err"; then 4012 # Broken: success on invalid input. 4013continue 4014else 4015 echo "$as_me: failed program was:" >&5 4016sed 's/^/| /' conftest.$ac_ext >&5 4017 4018 # Passes both tests. 4019ac_preproc_ok=: 4020break 4021fi 4022rm -f conftest.err conftest.$ac_ext 4023 4024done 4025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4026rm -f conftest.err conftest.$ac_ext 4027if $ac_preproc_ok; then 4028 break 4029fi 4030 4031 done 4032 ac_cv_prog_CPP=$CPP 4033 4034fi 4035 CPP=$ac_cv_prog_CPP 4036else 4037 ac_cv_prog_CPP=$CPP 4038fi 4039echo "$as_me:$LINENO: result: $CPP" >&5 4040echo "${ECHO_T}$CPP" >&6 4041ac_preproc_ok=false 4042for ac_c_preproc_warn_flag in '' yes 4043do 4044 # Use a header file that comes with gcc, so configuring glibc 4045 # with a fresh cross-compiler works. 4046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4047 # <limits.h> exists even on freestanding compilers. 4048 # On the NeXT, cc -E runs the code through the compiler's parser, 4049 # not just through cpp. "Syntax error" is here to catch this case. 4050 cat >conftest.$ac_ext <<_ACEOF 4051/* confdefs.h. */ 4052_ACEOF 4053cat confdefs.h >>conftest.$ac_ext 4054cat >>conftest.$ac_ext <<_ACEOF 4055/* end confdefs.h. */ 4056#ifdef __STDC__ 4057# include <limits.h> 4058#else 4059# include <assert.h> 4060#endif 4061 Syntax error 4062_ACEOF 4063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4065 ac_status=$? 4066 grep -v '^ *+' conftest.er1 >conftest.err 4067 rm -f conftest.er1 4068 cat conftest.err >&5 4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4070 (exit $ac_status); } >/dev/null; then 4071 if test -s conftest.err; then 4072 ac_cpp_err=$ac_c_preproc_warn_flag 4073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4074 else 4075 ac_cpp_err= 4076 fi 4077else 4078 ac_cpp_err=yes 4079fi 4080if test -z "$ac_cpp_err"; then 4081 : 4082else 4083 echo "$as_me: failed program was:" >&5 4084sed 's/^/| /' conftest.$ac_ext >&5 4085 4086 # Broken: fails on valid input. 4087continue 4088fi 4089rm -f conftest.err conftest.$ac_ext 4090 4091 # OK, works on sane cases. Now check whether non-existent headers 4092 # can be detected and how. 4093 cat >conftest.$ac_ext <<_ACEOF 4094/* confdefs.h. */ 4095_ACEOF 4096cat confdefs.h >>conftest.$ac_ext 4097cat >>conftest.$ac_ext <<_ACEOF 4098/* end confdefs.h. */ 4099#include <ac_nonexistent.h> 4100_ACEOF 4101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4103 ac_status=$? 4104 grep -v '^ *+' conftest.er1 >conftest.err 4105 rm -f conftest.er1 4106 cat conftest.err >&5 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); } >/dev/null; then 4109 if test -s conftest.err; then 4110 ac_cpp_err=$ac_c_preproc_warn_flag 4111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4112 else 4113 ac_cpp_err= 4114 fi 4115else 4116 ac_cpp_err=yes 4117fi 4118if test -z "$ac_cpp_err"; then 4119 # Broken: success on invalid input. 4120continue 4121else 4122 echo "$as_me: failed program was:" >&5 4123sed 's/^/| /' conftest.$ac_ext >&5 4124 4125 # Passes both tests. 4126ac_preproc_ok=: 4127break 4128fi 4129rm -f conftest.err conftest.$ac_ext 4130 4131done 4132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4133rm -f conftest.err conftest.$ac_ext 4134if $ac_preproc_ok; then 4135 : 4136else 4137 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4138See \`config.log' for more details." >&5 4139echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4140See \`config.log' for more details." >&2;} 4141 { (exit 1); exit 1; }; } 4142fi 4143 4144ac_ext=c 4145ac_cpp='$CPP $CPPFLAGS' 4146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4148ac_compiler_gnu=$ac_cv_c_compiler_gnu 4149 4150 4151echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4152echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4153if test "${ac_cv_header_stdc+set}" = set; then 4154 echo $ECHO_N "(cached) $ECHO_C" >&6 4155else 4156 cat >conftest.$ac_ext <<_ACEOF 4157/* confdefs.h. */ 4158_ACEOF 4159cat confdefs.h >>conftest.$ac_ext 4160cat >>conftest.$ac_ext <<_ACEOF 4161/* end confdefs.h. */ 4162#include <stdlib.h> 4163#include <stdarg.h> 4164#include <string.h> 4165#include <float.h> 4166 4167int 4168main () 4169{ 4170 4171 ; 4172 return 0; 4173} 4174_ACEOF 4175rm -f conftest.$ac_objext 4176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4177 (eval $ac_compile) 2>conftest.er1 4178 ac_status=$? 4179 grep -v '^ *+' conftest.er1 >conftest.err 4180 rm -f conftest.er1 4181 cat conftest.err >&5 4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4183 (exit $ac_status); } && 4184 { ac_try='test -z "$ac_c_werror_flag" 4185 || test ! -s conftest.err' 4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4187 (eval $ac_try) 2>&5 4188 ac_status=$? 4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4190 (exit $ac_status); }; } && 4191 { ac_try='test -s conftest.$ac_objext' 4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4193 (eval $ac_try) 2>&5 4194 ac_status=$? 4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4196 (exit $ac_status); }; }; then 4197 ac_cv_header_stdc=yes 4198else 4199 echo "$as_me: failed program was:" >&5 4200sed 's/^/| /' conftest.$ac_ext >&5 4201 4202ac_cv_header_stdc=no 4203fi 4204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4205 4206if test $ac_cv_header_stdc = yes; then 4207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4208 cat >conftest.$ac_ext <<_ACEOF 4209/* confdefs.h. */ 4210_ACEOF 4211cat confdefs.h >>conftest.$ac_ext 4212cat >>conftest.$ac_ext <<_ACEOF 4213/* end confdefs.h. */ 4214#include <string.h> 4215 4216_ACEOF 4217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4218 $EGREP "memchr" >/dev/null 2>&1; then 4219 : 4220else 4221 ac_cv_header_stdc=no 4222fi 4223rm -f conftest* 4224 4225fi 4226 4227if test $ac_cv_header_stdc = yes; then 4228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4229 cat >conftest.$ac_ext <<_ACEOF 4230/* confdefs.h. */ 4231_ACEOF 4232cat confdefs.h >>conftest.$ac_ext 4233cat >>conftest.$ac_ext <<_ACEOF 4234/* end confdefs.h. */ 4235#include <stdlib.h> 4236 4237_ACEOF 4238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4239 $EGREP "free" >/dev/null 2>&1; then 4240 : 4241else 4242 ac_cv_header_stdc=no 4243fi 4244rm -f conftest* 4245 4246fi 4247 4248if test $ac_cv_header_stdc = yes; then 4249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4250 if test "$cross_compiling" = yes; then 4251 : 4252else 4253 cat >conftest.$ac_ext <<_ACEOF 4254/* confdefs.h. */ 4255_ACEOF 4256cat confdefs.h >>conftest.$ac_ext 4257cat >>conftest.$ac_ext <<_ACEOF 4258/* end confdefs.h. */ 4259#include <ctype.h> 4260#if ((' ' & 0x0FF) == 0x020) 4261# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4262# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4263#else 4264# define ISLOWER(c) \ 4265 (('a' <= (c) && (c) <= 'i') \ 4266 || ('j' <= (c) && (c) <= 'r') \ 4267 || ('s' <= (c) && (c) <= 'z')) 4268# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4269#endif 4270 4271#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4272int 4273main () 4274{ 4275 int i; 4276 for (i = 0; i < 256; i++) 4277 if (XOR (islower (i), ISLOWER (i)) 4278 || toupper (i) != TOUPPER (i)) 4279 exit(2); 4280 exit (0); 4281} 4282_ACEOF 4283rm -f conftest$ac_exeext 4284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4285 (eval $ac_link) 2>&5 4286 ac_status=$? 4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4290 (eval $ac_try) 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); }; }; then 4294 : 4295else 4296 echo "$as_me: program exited with status $ac_status" >&5 4297echo "$as_me: failed program was:" >&5 4298sed 's/^/| /' conftest.$ac_ext >&5 4299 4300( exit $ac_status ) 4301ac_cv_header_stdc=no 4302fi 4303rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4304fi 4305fi 4306fi 4307echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4308echo "${ECHO_T}$ac_cv_header_stdc" >&6 4309if test $ac_cv_header_stdc = yes; then 4310 4311cat >>confdefs.h <<\_ACEOF 4312#define STDC_HEADERS 1 4313_ACEOF 4314 4315fi 4316 4317# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4328 inttypes.h stdint.h unistd.h 4329do 4330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4331echo "$as_me:$LINENO: checking for $ac_header" >&5 4332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4333if eval "test \"\${$as_ac_Header+set}\" = set"; then 4334 echo $ECHO_N "(cached) $ECHO_C" >&6 4335else 4336 cat >conftest.$ac_ext <<_ACEOF 4337/* confdefs.h. */ 4338_ACEOF 4339cat confdefs.h >>conftest.$ac_ext 4340cat >>conftest.$ac_ext <<_ACEOF 4341/* end confdefs.h. */ 4342$ac_includes_default 4343 4344#include <$ac_header> 4345_ACEOF 4346rm -f conftest.$ac_objext 4347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4348 (eval $ac_compile) 2>conftest.er1 4349 ac_status=$? 4350 grep -v '^ *+' conftest.er1 >conftest.err 4351 rm -f conftest.er1 4352 cat conftest.err >&5 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); } && 4355 { ac_try='test -z "$ac_c_werror_flag" 4356 || test ! -s conftest.err' 4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4358 (eval $ac_try) 2>&5 4359 ac_status=$? 4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4361 (exit $ac_status); }; } && 4362 { ac_try='test -s conftest.$ac_objext' 4363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4364 (eval $ac_try) 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); }; }; then 4368 eval "$as_ac_Header=yes" 4369else 4370 echo "$as_me: failed program was:" >&5 4371sed 's/^/| /' conftest.$ac_ext >&5 4372 4373eval "$as_ac_Header=no" 4374fi 4375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4376fi 4377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4379if test `eval echo '${'$as_ac_Header'}'` = yes; then 4380 cat >>confdefs.h <<_ACEOF 4381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4382_ACEOF 4383 4384fi 4385 4386done 4387 4388 4389 4390for ac_header in dlfcn.h 4391do 4392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4393if eval "test \"\${$as_ac_Header+set}\" = set"; then 4394 echo "$as_me:$LINENO: checking for $ac_header" >&5 4395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4396if eval "test \"\${$as_ac_Header+set}\" = set"; then 4397 echo $ECHO_N "(cached) $ECHO_C" >&6 4398fi 4399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4401else 4402 # Is the header compilable? 4403echo "$as_me:$LINENO: checking $ac_header usability" >&5 4404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4405cat >conftest.$ac_ext <<_ACEOF 4406/* confdefs.h. */ 4407_ACEOF 4408cat confdefs.h >>conftest.$ac_ext 4409cat >>conftest.$ac_ext <<_ACEOF 4410/* end confdefs.h. */ 4411$ac_includes_default 4412#include <$ac_header> 4413_ACEOF 4414rm -f conftest.$ac_objext 4415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4416 (eval $ac_compile) 2>conftest.er1 4417 ac_status=$? 4418 grep -v '^ *+' conftest.er1 >conftest.err 4419 rm -f conftest.er1 4420 cat conftest.err >&5 4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4422 (exit $ac_status); } && 4423 { ac_try='test -z "$ac_c_werror_flag" 4424 || test ! -s conftest.err' 4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4426 (eval $ac_try) 2>&5 4427 ac_status=$? 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); }; } && 4430 { ac_try='test -s conftest.$ac_objext' 4431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4432 (eval $ac_try) 2>&5 4433 ac_status=$? 4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4435 (exit $ac_status); }; }; then 4436 ac_header_compiler=yes 4437else 4438 echo "$as_me: failed program was:" >&5 4439sed 's/^/| /' conftest.$ac_ext >&5 4440 4441ac_header_compiler=no 4442fi 4443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4445echo "${ECHO_T}$ac_header_compiler" >&6 4446 4447# Is the header present? 4448echo "$as_me:$LINENO: checking $ac_header presence" >&5 4449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4450cat >conftest.$ac_ext <<_ACEOF 4451/* confdefs.h. */ 4452_ACEOF 4453cat confdefs.h >>conftest.$ac_ext 4454cat >>conftest.$ac_ext <<_ACEOF 4455/* end confdefs.h. */ 4456#include <$ac_header> 4457_ACEOF 4458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4460 ac_status=$? 4461 grep -v '^ *+' conftest.er1 >conftest.err 4462 rm -f conftest.er1 4463 cat conftest.err >&5 4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4465 (exit $ac_status); } >/dev/null; then 4466 if test -s conftest.err; then 4467 ac_cpp_err=$ac_c_preproc_warn_flag 4468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4469 else 4470 ac_cpp_err= 4471 fi 4472else 4473 ac_cpp_err=yes 4474fi 4475if test -z "$ac_cpp_err"; then 4476 ac_header_preproc=yes 4477else 4478 echo "$as_me: failed program was:" >&5 4479sed 's/^/| /' conftest.$ac_ext >&5 4480 4481 ac_header_preproc=no 4482fi 4483rm -f conftest.err conftest.$ac_ext 4484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4485echo "${ECHO_T}$ac_header_preproc" >&6 4486 4487# So? What about this header? 4488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4489 yes:no: ) 4490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4494 ac_header_preproc=yes 4495 ;; 4496 no:yes:* ) 4497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4504echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4509 ( 4510 cat <<\_ASBOX 4511## ----------------------------------- ## 4512## Report this to libpqtypes@esilo.com ## 4513## ----------------------------------- ## 4514_ASBOX 4515 ) | 4516 sed "s/^/$as_me: WARNING: /" >&2 4517 ;; 4518esac 4519echo "$as_me:$LINENO: checking for $ac_header" >&5 4520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4521if eval "test \"\${$as_ac_Header+set}\" = set"; then 4522 echo $ECHO_N "(cached) $ECHO_C" >&6 4523else 4524 eval "$as_ac_Header=\$ac_header_preproc" 4525fi 4526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4528 4529fi 4530if test `eval echo '${'$as_ac_Header'}'` = yes; then 4531 cat >>confdefs.h <<_ACEOF 4532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4533_ACEOF 4534 4535fi 4536 4537done 4538 4539ac_ext=cc 4540ac_cpp='$CXXCPP $CPPFLAGS' 4541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4544if test -n "$ac_tool_prefix"; then 4545 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4546 do 4547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4548set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4549echo "$as_me:$LINENO: checking for $ac_word" >&5 4550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4551if test "${ac_cv_prog_CXX+set}" = set; then 4552 echo $ECHO_N "(cached) $ECHO_C" >&6 4553else 4554 if test -n "$CXX"; then 4555 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4556else 4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4558for as_dir in $PATH 4559do 4560 IFS=$as_save_IFS 4561 test -z "$as_dir" && as_dir=. 4562 for ac_exec_ext in '' $ac_executable_extensions; do 4563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4564 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4566 break 2 4567 fi 4568done 4569done 4570 4571fi 4572fi 4573CXX=$ac_cv_prog_CXX 4574if test -n "$CXX"; then 4575 echo "$as_me:$LINENO: result: $CXX" >&5 4576echo "${ECHO_T}$CXX" >&6 4577else 4578 echo "$as_me:$LINENO: result: no" >&5 4579echo "${ECHO_T}no" >&6 4580fi 4581 4582 test -n "$CXX" && break 4583 done 4584fi 4585if test -z "$CXX"; then 4586 ac_ct_CXX=$CXX 4587 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4588do 4589 # Extract the first word of "$ac_prog", so it can be a program name with args. 4590set dummy $ac_prog; ac_word=$2 4591echo "$as_me:$LINENO: checking for $ac_word" >&5 4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4593if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4594 echo $ECHO_N "(cached) $ECHO_C" >&6 4595else 4596 if test -n "$ac_ct_CXX"; then 4597 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4598else 4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4606 ac_cv_prog_ac_ct_CXX="$ac_prog" 4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610done 4611done 4612 4613fi 4614fi 4615ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4616if test -n "$ac_ct_CXX"; then 4617 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4618echo "${ECHO_T}$ac_ct_CXX" >&6 4619else 4620 echo "$as_me:$LINENO: result: no" >&5 4621echo "${ECHO_T}no" >&6 4622fi 4623 4624 test -n "$ac_ct_CXX" && break 4625done 4626test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4627 4628 CXX=$ac_ct_CXX 4629fi 4630 4631 4632# Provide some information about the compiler. 4633echo "$as_me:$LINENO:" \ 4634 "checking for C++ compiler version" >&5 4635ac_compiler=`set X $ac_compile; echo $2` 4636{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4637 (eval $ac_compiler --version </dev/null >&5) 2>&5 4638 ac_status=$? 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4640 (exit $ac_status); } 4641{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4642 (eval $ac_compiler -v </dev/null >&5) 2>&5 4643 ac_status=$? 4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4645 (exit $ac_status); } 4646{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4647 (eval $ac_compiler -V </dev/null >&5) 2>&5 4648 ac_status=$? 4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4650 (exit $ac_status); } 4651 4652echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4653echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4654if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4655 echo $ECHO_N "(cached) $ECHO_C" >&6 4656else 4657 cat >conftest.$ac_ext <<_ACEOF 4658/* confdefs.h. */ 4659_ACEOF 4660cat confdefs.h >>conftest.$ac_ext 4661cat >>conftest.$ac_ext <<_ACEOF 4662/* end confdefs.h. */ 4663 4664int 4665main () 4666{ 4667#ifndef __GNUC__ 4668 choke me 4669#endif 4670 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675rm -f conftest.$ac_objext 4676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4677 (eval $ac_compile) 2>conftest.er1 4678 ac_status=$? 4679 grep -v '^ *+' conftest.er1 >conftest.err 4680 rm -f conftest.er1 4681 cat conftest.err >&5 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); } && 4684 { ac_try='test -z "$ac_cxx_werror_flag" 4685 || test ! -s conftest.err' 4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4687 (eval $ac_try) 2>&5 4688 ac_status=$? 4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4690 (exit $ac_status); }; } && 4691 { ac_try='test -s conftest.$ac_objext' 4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4693 (eval $ac_try) 2>&5 4694 ac_status=$? 4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4696 (exit $ac_status); }; }; then 4697 ac_compiler_gnu=yes 4698else 4699 echo "$as_me: failed program was:" >&5 4700sed 's/^/| /' conftest.$ac_ext >&5 4701 4702ac_compiler_gnu=no 4703fi 4704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4705ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4706 4707fi 4708echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4709echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4710GXX=`test $ac_compiler_gnu = yes && echo yes` 4711ac_test_CXXFLAGS=${CXXFLAGS+set} 4712ac_save_CXXFLAGS=$CXXFLAGS 4713CXXFLAGS="-g" 4714echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4715echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4716if test "${ac_cv_prog_cxx_g+set}" = set; then 4717 echo $ECHO_N "(cached) $ECHO_C" >&6 4718else 4719 cat >conftest.$ac_ext <<_ACEOF 4720/* confdefs.h. */ 4721_ACEOF 4722cat confdefs.h >>conftest.$ac_ext 4723cat >>conftest.$ac_ext <<_ACEOF 4724/* end confdefs.h. */ 4725 4726int 4727main () 4728{ 4729 4730 ; 4731 return 0; 4732} 4733_ACEOF 4734rm -f conftest.$ac_objext 4735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4736 (eval $ac_compile) 2>conftest.er1 4737 ac_status=$? 4738 grep -v '^ *+' conftest.er1 >conftest.err 4739 rm -f conftest.er1 4740 cat conftest.err >&5 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4742 (exit $ac_status); } && 4743 { ac_try='test -z "$ac_cxx_werror_flag" 4744 || test ! -s conftest.err' 4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4746 (eval $ac_try) 2>&5 4747 ac_status=$? 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); }; } && 4750 { ac_try='test -s conftest.$ac_objext' 4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4752 (eval $ac_try) 2>&5 4753 ac_status=$? 4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4755 (exit $ac_status); }; }; then 4756 ac_cv_prog_cxx_g=yes 4757else 4758 echo "$as_me: failed program was:" >&5 4759sed 's/^/| /' conftest.$ac_ext >&5 4760 4761ac_cv_prog_cxx_g=no 4762fi 4763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4764fi 4765echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4766echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4767if test "$ac_test_CXXFLAGS" = set; then 4768 CXXFLAGS=$ac_save_CXXFLAGS 4769elif test $ac_cv_prog_cxx_g = yes; then 4770 if test "$GXX" = yes; then 4771 CXXFLAGS="-g -O2" 4772 else 4773 CXXFLAGS="-g" 4774 fi 4775else 4776 if test "$GXX" = yes; then 4777 CXXFLAGS="-O2" 4778 else 4779 CXXFLAGS= 4780 fi 4781fi 4782for ac_declaration in \ 4783 '' \ 4784 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4785 'extern "C" void std::exit (int); using std::exit;' \ 4786 'extern "C" void exit (int) throw ();' \ 4787 'extern "C" void exit (int);' \ 4788 'void exit (int);' 4789do 4790 cat >conftest.$ac_ext <<_ACEOF 4791/* confdefs.h. */ 4792_ACEOF 4793cat confdefs.h >>conftest.$ac_ext 4794cat >>conftest.$ac_ext <<_ACEOF 4795/* end confdefs.h. */ 4796$ac_declaration 4797#include <stdlib.h> 4798int 4799main () 4800{ 4801exit (42); 4802 ; 4803 return 0; 4804} 4805_ACEOF 4806rm -f conftest.$ac_objext 4807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4808 (eval $ac_compile) 2>conftest.er1 4809 ac_status=$? 4810 grep -v '^ *+' conftest.er1 >conftest.err 4811 rm -f conftest.er1 4812 cat conftest.err >&5 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4814 (exit $ac_status); } && 4815 { ac_try='test -z "$ac_cxx_werror_flag" 4816 || test ! -s conftest.err' 4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4818 (eval $ac_try) 2>&5 4819 ac_status=$? 4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4821 (exit $ac_status); }; } && 4822 { ac_try='test -s conftest.$ac_objext' 4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4824 (eval $ac_try) 2>&5 4825 ac_status=$? 4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4827 (exit $ac_status); }; }; then 4828 : 4829else 4830 echo "$as_me: failed program was:" >&5 4831sed 's/^/| /' conftest.$ac_ext >&5 4832 4833continue 4834fi 4835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4836 cat >conftest.$ac_ext <<_ACEOF 4837/* confdefs.h. */ 4838_ACEOF 4839cat confdefs.h >>conftest.$ac_ext 4840cat >>conftest.$ac_ext <<_ACEOF 4841/* end confdefs.h. */ 4842$ac_declaration 4843int 4844main () 4845{ 4846exit (42); 4847 ; 4848 return 0; 4849} 4850_ACEOF 4851rm -f conftest.$ac_objext 4852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4853 (eval $ac_compile) 2>conftest.er1 4854 ac_status=$? 4855 grep -v '^ *+' conftest.er1 >conftest.err 4856 rm -f conftest.er1 4857 cat conftest.err >&5 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); } && 4860 { ac_try='test -z "$ac_cxx_werror_flag" 4861 || test ! -s conftest.err' 4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4863 (eval $ac_try) 2>&5 4864 ac_status=$? 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4866 (exit $ac_status); }; } && 4867 { ac_try='test -s conftest.$ac_objext' 4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4869 (eval $ac_try) 2>&5 4870 ac_status=$? 4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4872 (exit $ac_status); }; }; then 4873 break 4874else 4875 echo "$as_me: failed program was:" >&5 4876sed 's/^/| /' conftest.$ac_ext >&5 4877 4878fi 4879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4880done 4881rm -f conftest* 4882if test -n "$ac_declaration"; then 4883 echo '#ifdef __cplusplus' >>confdefs.h 4884 echo $ac_declaration >>confdefs.h 4885 echo '#endif' >>confdefs.h 4886fi 4887 4888ac_ext=cc 4889ac_cpp='$CXXCPP $CPPFLAGS' 4890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4893 4894depcc="$CXX" am_compiler_list= 4895 4896echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4897echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4898if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900else 4901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4902 # We make a subdir and do the tests there. Otherwise we can end up 4903 # making bogus files that we don't know about and never remove. For 4904 # instance it was reported that on HP-UX the gcc test will end up 4905 # making a dummy file named `D' -- because `-MD' means `put the output 4906 # in D'. 4907 mkdir conftest.dir 4908 # Copy depcomp to subdir because otherwise we won't find it if we're 4909 # using a relative directory. 4910 cp "$am_depcomp" conftest.dir 4911 cd conftest.dir 4912 # We will build objects and dependencies in a subdirectory because 4913 # it helps to detect inapplicable dependency modes. For instance 4914 # both Tru64's cc and ICC support -MD to output dependencies as a 4915 # side effect of compilation, but ICC will put the dependencies in 4916 # the current directory while Tru64 will put them in the object 4917 # directory. 4918 mkdir sub 4919 4920 am_cv_CXX_dependencies_compiler_type=none 4921 if test "$am_compiler_list" = ""; then 4922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4923 fi 4924 for depmode in $am_compiler_list; do 4925 # Setup a source with many dependencies, because some compilers 4926 # like to wrap large dependency lists on column 80 (with \), and 4927 # we should not choose a depcomp mode which is confused by this. 4928 # 4929 # We need to recreate these files for each test, as the compiler may 4930 # overwrite some of them when testing with obscure command lines. 4931 # This happens at least with the AIX C compiler. 4932 : > sub/conftest.c 4933 for i in 1 2 3 4 5 6; do 4934 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4935 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4936 # Solaris 8's {/usr,}/bin/sh. 4937 touch sub/conftst$i.h 4938 done 4939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4940 4941 case $depmode in 4942 nosideeffect) 4943 # after this tag, mechanisms are not by side-effect, so they'll 4944 # only be used when explicitly requested 4945 if test "x$enable_dependency_tracking" = xyes; then 4946 continue 4947 else 4948 break 4949 fi 4950 ;; 4951 none) break ;; 4952 esac 4953 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4954 # mode. It turns out that the SunPro C++ compiler does not properly 4955 # handle `-M -o', and we need to detect this. 4956 if depmode=$depmode \ 4957 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4959 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4960 >/dev/null 2>conftest.err && 4961 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4962 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4963 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4964 # icc doesn't choke on unknown options, it will just issue warnings 4965 # or remarks (even with -Werror). So we grep stderr for any message 4966 # that says an option was ignored or not supported. 4967 # When given -MP, icc 7.0 and 7.1 complain thusly: 4968 # icc: Command line warning: ignoring option '-M'; no argument required 4969 # The diagnosis changed in icc 8.0: 4970 # icc: Command line remark: option '-MP' not supported 4971 if (grep 'ignoring option' conftest.err || 4972 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4973 am_cv_CXX_dependencies_compiler_type=$depmode 4974 break 4975 fi 4976 fi 4977 done 4978 4979 cd .. 4980 rm -rf conftest.dir 4981else 4982 am_cv_CXX_dependencies_compiler_type=none 4983fi 4984 4985fi 4986echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4987echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4988CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4989 4990 4991 4992if 4993 test "x$enable_dependency_tracking" != xno \ 4994 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4995 am__fastdepCXX_TRUE= 4996 am__fastdepCXX_FALSE='#' 4997else 4998 am__fastdepCXX_TRUE='#' 4999 am__fastdepCXX_FALSE= 5000fi 5001 5002 5003 5004 5005if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5006 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5007 (test "X$CXX" != "Xg++"))) ; then 5008 ac_ext=cc 5009ac_cpp='$CXXCPP $CPPFLAGS' 5010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5013echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5014echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5015if test -z "$CXXCPP"; then 5016 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5017 echo $ECHO_N "(cached) $ECHO_C" >&6 5018else 5019 # Double quotes because CXXCPP needs to be expanded 5020 for CXXCPP in "$CXX -E" "/lib/cpp" 5021 do 5022 ac_preproc_ok=false 5023for ac_cxx_preproc_warn_flag in '' yes 5024do 5025 # Use a header file that comes with gcc, so configuring glibc 5026 # with a fresh cross-compiler works. 5027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5028 # <limits.h> exists even on freestanding compilers. 5029 # On the NeXT, cc -E runs the code through the compiler's parser, 5030 # not just through cpp. "Syntax error" is here to catch this case. 5031 cat >conftest.$ac_ext <<_ACEOF 5032/* confdefs.h. */ 5033_ACEOF 5034cat confdefs.h >>conftest.$ac_ext 5035cat >>conftest.$ac_ext <<_ACEOF 5036/* end confdefs.h. */ 5037#ifdef __STDC__ 5038# include <limits.h> 5039#else 5040# include <assert.h> 5041#endif 5042 Syntax error 5043_ACEOF 5044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5046 ac_status=$? 5047 grep -v '^ *+' conftest.er1 >conftest.err 5048 rm -f conftest.er1 5049 cat conftest.err >&5 5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5051 (exit $ac_status); } >/dev/null; then 5052 if test -s conftest.err; then 5053 ac_cpp_err=$ac_cxx_preproc_warn_flag 5054 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5055 else 5056 ac_cpp_err= 5057 fi 5058else 5059 ac_cpp_err=yes 5060fi 5061if test -z "$ac_cpp_err"; then 5062 : 5063else 5064 echo "$as_me: failed program was:" >&5 5065sed 's/^/| /' conftest.$ac_ext >&5 5066 5067 # Broken: fails on valid input. 5068continue 5069fi 5070rm -f conftest.err conftest.$ac_ext 5071 5072 # OK, works on sane cases. Now check whether non-existent headers 5073 # can be detected and how. 5074 cat >conftest.$ac_ext <<_ACEOF 5075/* confdefs.h. */ 5076_ACEOF 5077cat confdefs.h >>conftest.$ac_ext 5078cat >>conftest.$ac_ext <<_ACEOF 5079/* end confdefs.h. */ 5080#include <ac_nonexistent.h> 5081_ACEOF 5082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5084 ac_status=$? 5085 grep -v '^ *+' conftest.er1 >conftest.err 5086 rm -f conftest.er1 5087 cat conftest.err >&5 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5089 (exit $ac_status); } >/dev/null; then 5090 if test -s conftest.err; then 5091 ac_cpp_err=$ac_cxx_preproc_warn_flag 5092 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5093 else 5094 ac_cpp_err= 5095 fi 5096else 5097 ac_cpp_err=yes 5098fi 5099if test -z "$ac_cpp_err"; then 5100 # Broken: success on invalid input. 5101continue 5102else 5103 echo "$as_me: failed program was:" >&5 5104sed 's/^/| /' conftest.$ac_ext >&5 5105 5106 # Passes both tests. 5107ac_preproc_ok=: 5108break 5109fi 5110rm -f conftest.err conftest.$ac_ext 5111 5112done 5113# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5114rm -f conftest.err conftest.$ac_ext 5115if $ac_preproc_ok; then 5116 break 5117fi 5118 5119 done 5120 ac_cv_prog_CXXCPP=$CXXCPP 5121 5122fi 5123 CXXCPP=$ac_cv_prog_CXXCPP 5124else 5125 ac_cv_prog_CXXCPP=$CXXCPP 5126fi 5127echo "$as_me:$LINENO: result: $CXXCPP" >&5 5128echo "${ECHO_T}$CXXCPP" >&6 5129ac_preproc_ok=false 5130for ac_cxx_preproc_warn_flag in '' yes 5131do 5132 # Use a header file that comes with gcc, so configuring glibc 5133 # with a fresh cross-compiler works. 5134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5135 # <limits.h> exists even on freestanding compilers. 5136 # On the NeXT, cc -E runs the code through the compiler's parser, 5137 # not just through cpp. "Syntax error" is here to catch this case. 5138 cat >conftest.$ac_ext <<_ACEOF 5139/* confdefs.h. */ 5140_ACEOF 5141cat confdefs.h >>conftest.$ac_ext 5142cat >>conftest.$ac_ext <<_ACEOF 5143/* end confdefs.h. */ 5144#ifdef __STDC__ 5145# include <limits.h> 5146#else 5147# include <assert.h> 5148#endif 5149 Syntax error 5150_ACEOF 5151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5153 ac_status=$? 5154 grep -v '^ *+' conftest.er1 >conftest.err 5155 rm -f conftest.er1 5156 cat conftest.err >&5 5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5158 (exit $ac_status); } >/dev/null; then 5159 if test -s conftest.err; then 5160 ac_cpp_err=$ac_cxx_preproc_warn_flag 5161 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5162 else 5163 ac_cpp_err= 5164 fi 5165else 5166 ac_cpp_err=yes 5167fi 5168if test -z "$ac_cpp_err"; then 5169 : 5170else 5171 echo "$as_me: failed program was:" >&5 5172sed 's/^/| /' conftest.$ac_ext >&5 5173 5174 # Broken: fails on valid input. 5175continue 5176fi 5177rm -f conftest.err conftest.$ac_ext 5178 5179 # OK, works on sane cases. Now check whether non-existent headers 5180 # can be detected and how. 5181 cat >conftest.$ac_ext <<_ACEOF 5182/* confdefs.h. */ 5183_ACEOF 5184cat confdefs.h >>conftest.$ac_ext 5185cat >>conftest.$ac_ext <<_ACEOF 5186/* end confdefs.h. */ 5187#include <ac_nonexistent.h> 5188_ACEOF 5189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5191 ac_status=$? 5192 grep -v '^ *+' conftest.er1 >conftest.err 5193 rm -f conftest.er1 5194 cat conftest.err >&5 5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196 (exit $ac_status); } >/dev/null; then 5197 if test -s conftest.err; then 5198 ac_cpp_err=$ac_cxx_preproc_warn_flag 5199 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5200 else 5201 ac_cpp_err= 5202 fi 5203else 5204 ac_cpp_err=yes 5205fi 5206if test -z "$ac_cpp_err"; then 5207 # Broken: success on invalid input. 5208continue 5209else 5210 echo "$as_me: failed program was:" >&5 5211sed 's/^/| /' conftest.$ac_ext >&5 5212 5213 # Passes both tests. 5214ac_preproc_ok=: 5215break 5216fi 5217rm -f conftest.err conftest.$ac_ext 5218 5219done 5220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5221rm -f conftest.err conftest.$ac_ext 5222if $ac_preproc_ok; then 5223 : 5224else 5225 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5226See \`config.log' for more details." >&5 5227echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5228See \`config.log' for more details." >&2;} 5229 { (exit 1); exit 1; }; } 5230fi 5231 5232ac_ext=cc 5233ac_cpp='$CXXCPP $CPPFLAGS' 5234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5237 5238fi 5239 5240 5241ac_ext=f 5242ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5243ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5244ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5245if test -n "$ac_tool_prefix"; then 5246 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5247 do 5248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5249set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5250echo "$as_me:$LINENO: checking for $ac_word" >&5 5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5252if test "${ac_cv_prog_F77+set}" = set; then 5253 echo $ECHO_N "(cached) $ECHO_C" >&6 5254else 5255 if test -n "$F77"; then 5256 ac_cv_prog_F77="$F77" # Let the user override the test. 5257else 5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5259for as_dir in $PATH 5260do 5261 IFS=$as_save_IFS 5262 test -z "$as_dir" && as_dir=. 5263 for ac_exec_ext in '' $ac_executable_extensions; do 5264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5265 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5267 break 2 5268 fi 5269done 5270done 5271 5272fi 5273fi 5274F77=$ac_cv_prog_F77 5275if test -n "$F77"; then 5276 echo "$as_me:$LINENO: result: $F77" >&5 5277echo "${ECHO_T}$F77" >&6 5278else 5279 echo "$as_me:$LINENO: result: no" >&5 5280echo "${ECHO_T}no" >&6 5281fi 5282 5283 test -n "$F77" && break 5284 done 5285fi 5286if test -z "$F77"; then 5287 ac_ct_F77=$F77 5288 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5289do 5290 # Extract the first word of "$ac_prog", so it can be a program name with args. 5291set dummy $ac_prog; ac_word=$2 5292echo "$as_me:$LINENO: checking for $ac_word" >&5 5293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5294if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5295 echo $ECHO_N "(cached) $ECHO_C" >&6 5296else 5297 if test -n "$ac_ct_F77"; then 5298 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5299else 5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5301for as_dir in $PATH 5302do 5303 IFS=$as_save_IFS 5304 test -z "$as_dir" && as_dir=. 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5307 ac_cv_prog_ac_ct_F77="$ac_prog" 5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5309 break 2 5310 fi 5311done 5312done 5313 5314fi 5315fi 5316ac_ct_F77=$ac_cv_prog_ac_ct_F77 5317if test -n "$ac_ct_F77"; then 5318 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5319echo "${ECHO_T}$ac_ct_F77" >&6 5320else 5321 echo "$as_me:$LINENO: result: no" >&5 5322echo "${ECHO_T}no" >&6 5323fi 5324 5325 test -n "$ac_ct_F77" && break 5326done 5327 5328 F77=$ac_ct_F77 5329fi 5330 5331 5332# Provide some information about the compiler. 5333echo "$as_me:5333:" \ 5334 "checking for Fortran 77 compiler version" >&5 5335ac_compiler=`set X $ac_compile; echo $2` 5336{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5337 (eval $ac_compiler --version </dev/null >&5) 2>&5 5338 ac_status=$? 5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5340 (exit $ac_status); } 5341{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5342 (eval $ac_compiler -v </dev/null >&5) 2>&5 5343 ac_status=$? 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 (exit $ac_status); } 5346{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5347 (eval $ac_compiler -V </dev/null >&5) 2>&5 5348 ac_status=$? 5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5350 (exit $ac_status); } 5351rm -f a.out 5352 5353# If we don't use `.F' as extension, the preprocessor is not run on the 5354# input file. (Note that this only needs to work for GNU compilers.) 5355ac_save_ext=$ac_ext 5356ac_ext=F 5357echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5358echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5359if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5360 echo $ECHO_N "(cached) $ECHO_C" >&6 5361else 5362 cat >conftest.$ac_ext <<_ACEOF 5363 program main 5364#ifndef __GNUC__ 5365 choke me 5366#endif 5367 5368 end 5369_ACEOF 5370rm -f conftest.$ac_objext 5371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5372 (eval $ac_compile) 2>conftest.er1 5373 ac_status=$? 5374 grep -v '^ *+' conftest.er1 >conftest.err 5375 rm -f conftest.er1 5376 cat conftest.err >&5 5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5378 (exit $ac_status); } && 5379 { ac_try='test -z "$ac_f77_werror_flag" 5380 || test ! -s conftest.err' 5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5382 (eval $ac_try) 2>&5 5383 ac_status=$? 5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5385 (exit $ac_status); }; } && 5386 { ac_try='test -s conftest.$ac_objext' 5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5388 (eval $ac_try) 2>&5 5389 ac_status=$? 5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5391 (exit $ac_status); }; }; then 5392 ac_compiler_gnu=yes 5393else 5394 echo "$as_me: failed program was:" >&5 5395sed 's/^/| /' conftest.$ac_ext >&5 5396 5397ac_compiler_gnu=no 5398fi 5399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5400ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5401 5402fi 5403echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5404echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5405ac_ext=$ac_save_ext 5406ac_test_FFLAGS=${FFLAGS+set} 5407ac_save_FFLAGS=$FFLAGS 5408FFLAGS= 5409echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5410echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5411if test "${ac_cv_prog_f77_g+set}" = set; then 5412 echo $ECHO_N "(cached) $ECHO_C" >&6 5413else 5414 FFLAGS=-g 5415cat >conftest.$ac_ext <<_ACEOF 5416 program main 5417 5418 end 5419_ACEOF 5420rm -f conftest.$ac_objext 5421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5422 (eval $ac_compile) 2>conftest.er1 5423 ac_status=$? 5424 grep -v '^ *+' conftest.er1 >conftest.err 5425 rm -f conftest.er1 5426 cat conftest.err >&5 5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5428 (exit $ac_status); } && 5429 { ac_try='test -z "$ac_f77_werror_flag" 5430 || test ! -s conftest.err' 5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5432 (eval $ac_try) 2>&5 5433 ac_status=$? 5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5435 (exit $ac_status); }; } && 5436 { ac_try='test -s conftest.$ac_objext' 5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5438 (eval $ac_try) 2>&5 5439 ac_status=$? 5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5441 (exit $ac_status); }; }; then 5442 ac_cv_prog_f77_g=yes 5443else 5444 echo "$as_me: failed program was:" >&5 5445sed 's/^/| /' conftest.$ac_ext >&5 5446 5447ac_cv_prog_f77_g=no 5448fi 5449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5450 5451fi 5452echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5453echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5454if test "$ac_test_FFLAGS" = set; then 5455 FFLAGS=$ac_save_FFLAGS 5456elif test $ac_cv_prog_f77_g = yes; then 5457 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5458 FFLAGS="-g -O2" 5459 else 5460 FFLAGS="-g" 5461 fi 5462else 5463 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5464 FFLAGS="-O2" 5465 else 5466 FFLAGS= 5467 fi 5468fi 5469 5470G77=`test $ac_compiler_gnu = yes && echo yes` 5471ac_ext=c 5472ac_cpp='$CPP $CPPFLAGS' 5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5475ac_compiler_gnu=$ac_cv_c_compiler_gnu 5476 5477 5478 5479# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5480 5481# find the maximum length of command line arguments 5482echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5483echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5484if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5485 echo $ECHO_N "(cached) $ECHO_C" >&6 5486else 5487 i=0 5488 teststring="ABCD" 5489 5490 case $build_os in 5491 msdosdjgpp*) 5492 # On DJGPP, this test can blow up pretty badly due to problems in libc 5493 # (any single argument exceeding 2000 bytes causes a buffer overrun 5494 # during glob expansion). Even if it were fixed, the result of this 5495 # check would be larger than it should be. 5496 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5497 ;; 5498 5499 gnu*) 5500 # Under GNU Hurd, this test is not required because there is 5501 # no limit to the length of command line arguments. 5502 # Libtool will interpret -1 as no limit whatsoever 5503 lt_cv_sys_max_cmd_len=-1; 5504 ;; 5505 5506 cygwin* | mingw*) 5507 # On Win9x/ME, this test blows up -- it succeeds, but takes 5508 # about 5 minutes as the teststring grows exponentially. 5509 # Worse, since 9x/ME are not pre-emptively multitasking, 5510 # you end up with a "frozen" computer, even though with patience 5511 # the test eventually succeeds (with a max line length of 256k). 5512 # Instead, let's just punt: use the minimum linelength reported by 5513 # all of the supported platforms: 8192 (on NT/2K/XP). 5514 lt_cv_sys_max_cmd_len=8192; 5515 ;; 5516 5517 amigaos*) 5518 # On AmigaOS with pdksh, this test takes hours, literally. 5519 # So we just punt and use a minimum line length of 8192. 5520 lt_cv_sys_max_cmd_len=8192; 5521 ;; 5522 5523 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5524 # This has been around since 386BSD, at least. Likely further. 5525 if test -x /sbin/sysctl; then 5526 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5527 elif test -x /usr/sbin/sysctl; then 5528 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5529 else 5530 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5531 fi 5532 # And add a safety zone 5533 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5535 ;; 5536 5537 interix*) 5538 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5539 lt_cv_sys_max_cmd_len=196608 5540 ;; 5541 5542 osf*) 5543 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5544 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5545 # nice to cause kernel panics so lets avoid the loop below. 5546 # First set a reasonable default. 5547 lt_cv_sys_max_cmd_len=16384 5548 # 5549 if test -x /sbin/sysconfig; then 5550 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5551 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5552 esac 5553 fi 5554 ;; 5555 sco3.2v5*) 5556 lt_cv_sys_max_cmd_len=102400 5557 ;; 5558 sysv5* | sco5v6* | sysv4.2uw2*) 5559 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5560 if test -n "$kargmax"; then 5561 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5562 else 5563 lt_cv_sys_max_cmd_len=32768 5564 fi 5565 ;; 5566 *) 5567 # If test is not a shell built-in, we'll probably end up computing a 5568 # maximum length that is only half of the actual maximum length, but 5569 # we can't tell. 5570 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5571 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5572 = "XX$teststring") >/dev/null 2>&1 && 5573 new_result=`expr "X$teststring" : ".*" 2>&1` && 5574 lt_cv_sys_max_cmd_len=$new_result && 5575 test $i != 17 # 1/2 MB should be enough 5576 do 5577 i=`expr $i + 1` 5578 teststring=$teststring$teststring 5579 done 5580 teststring= 5581 # Add a significant safety factor because C++ compilers can tack on massive 5582 # amounts of additional arguments before passing them to the linker. 5583 # It appears as though 1/2 is a usable value. 5584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5585 ;; 5586 esac 5587 5588fi 5589 5590if test -n $lt_cv_sys_max_cmd_len ; then 5591 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5592echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5593else 5594 echo "$as_me:$LINENO: result: none" >&5 5595echo "${ECHO_T}none" >&6 5596fi 5597 5598 5599 5600 5601# Check for command to grab the raw symbol name followed by C symbol from nm. 5602echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5603echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5604if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5605 echo $ECHO_N "(cached) $ECHO_C" >&6 5606else 5607 5608# These are sane defaults that work on at least a few old systems. 5609# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5610 5611# Character class describing NM global symbol codes. 5612symcode='[BCDEGRST]' 5613 5614# Regexp to match symbols that can be accessed directly from C. 5615sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5616 5617# Transform an extracted symbol line into a proper C declaration 5618lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5619 5620# Transform an extracted symbol line into symbol name and symbol address 5621lt_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'" 5622 5623# Define system-specific variables. 5624case $host_os in 5625aix*) 5626 symcode='[BCDT]' 5627 ;; 5628cygwin* | mingw* | pw32*) 5629 symcode='[ABCDGISTW]' 5630 ;; 5631hpux*) # Its linker distinguishes data from code symbols 5632 if test "$host_cpu" = ia64; then 5633 symcode='[ABCDEGRST]' 5634 fi 5635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5636 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'" 5637 ;; 5638linux*) 5639 if test "$host_cpu" = ia64; then 5640 symcode='[ABCDGIRSTW]' 5641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5642 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'" 5643 fi 5644 ;; 5645irix* | nonstopux*) 5646 symcode='[BCDEGRST]' 5647 ;; 5648osf*) 5649 symcode='[BCDEGQRST]' 5650 ;; 5651solaris*) 5652 symcode='[BDRT]' 5653 ;; 5654sco3.2v5*) 5655 symcode='[DT]' 5656 ;; 5657sysv4.2uw2*) 5658 symcode='[DT]' 5659 ;; 5660sysv5* | sco5v6* | unixware* | OpenUNIX*) 5661 symcode='[ABDT]' 5662 ;; 5663sysv4) 5664 symcode='[DFNSTU]' 5665 ;; 5666esac 5667 5668# Handle CRLF in mingw tool chain 5669opt_cr= 5670case $build_os in 5671mingw*) 5672 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5673 ;; 5674esac 5675 5676# If we're using GNU nm, then use its standard symbol codes. 5677case `$NM -V 2>&1` in 5678*GNU* | *'with BFD'*) 5679 symcode='[ABCDGIRSTW]' ;; 5680esac 5681 5682# Try without a prefix undercore, then with it. 5683for ac_symprfx in "" "_"; do 5684 5685 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5686 symxfrm="\\1 $ac_symprfx\\2 \\2" 5687 5688 # Write the raw and C identifiers. 5689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5690 5691 # Check to see that the pipe works correctly. 5692 pipe_works=no 5693 5694 rm -f conftest* 5695 cat > conftest.$ac_ext <<EOF 5696#ifdef __cplusplus 5697extern "C" { 5698#endif 5699char nm_test_var; 5700void nm_test_func(){} 5701#ifdef __cplusplus 5702} 5703#endif 5704int main(){nm_test_var='a';nm_test_func();return(0);} 5705EOF 5706 5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5708 (eval $ac_compile) 2>&5 5709 ac_status=$? 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5711 (exit $ac_status); }; then 5712 # Now try to grab the symbols. 5713 nlist=conftest.nm 5714 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5715 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5716 ac_status=$? 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); } && test -s "$nlist"; then 5719 # Try sorting and uniquifying the output. 5720 if sort "$nlist" | uniq > "$nlist"T; then 5721 mv -f "$nlist"T "$nlist" 5722 else 5723 rm -f "$nlist"T 5724 fi 5725 5726 # Make sure that we snagged all the symbols we need. 5727 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5728 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5729 cat <<EOF > conftest.$ac_ext 5730#ifdef __cplusplus 5731extern "C" { 5732#endif 5733 5734EOF 5735 # Now generate the symbol file. 5736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5737 5738 cat <<EOF >> conftest.$ac_ext 5739#if defined (__STDC__) && __STDC__ 5740# define lt_ptr_t void * 5741#else 5742# define lt_ptr_t char * 5743# define const 5744#endif 5745 5746/* The mapping between symbol names and symbols. */ 5747const struct { 5748 const char *name; 5749 lt_ptr_t address; 5750} 5751lt_preloaded_symbols[] = 5752{ 5753EOF 5754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5755 cat <<\EOF >> conftest.$ac_ext 5756 {0, (lt_ptr_t) 0} 5757}; 5758 5759#ifdef __cplusplus 5760} 5761#endif 5762EOF 5763 # Now try linking the two files. 5764 mv conftest.$ac_objext conftstm.$ac_objext 5765 lt_save_LIBS="$LIBS" 5766 lt_save_CFLAGS="$CFLAGS" 5767 LIBS="conftstm.$ac_objext" 5768 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5770 (eval $ac_link) 2>&5 5771 ac_status=$? 5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5774 pipe_works=yes 5775 fi 5776 LIBS="$lt_save_LIBS" 5777 CFLAGS="$lt_save_CFLAGS" 5778 else 5779 echo "cannot find nm_test_func in $nlist" >&5 5780 fi 5781 else 5782 echo "cannot find nm_test_var in $nlist" >&5 5783 fi 5784 else 5785 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5786 fi 5787 else 5788 echo "$progname: failed program was:" >&5 5789 cat conftest.$ac_ext >&5 5790 fi 5791 rm -f conftest* conftst* 5792 5793 # Do not use the global_symbol_pipe unless it works. 5794 if test "$pipe_works" = yes; then 5795 break 5796 else 5797 lt_cv_sys_global_symbol_pipe= 5798 fi 5799done 5800 5801fi 5802 5803if test -z "$lt_cv_sys_global_symbol_pipe"; then 5804 lt_cv_sys_global_symbol_to_cdecl= 5805fi 5806if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5807 echo "$as_me:$LINENO: result: failed" >&5 5808echo "${ECHO_T}failed" >&6 5809else 5810 echo "$as_me:$LINENO: result: ok" >&5 5811echo "${ECHO_T}ok" >&6 5812fi 5813 5814echo "$as_me:$LINENO: checking for objdir" >&5 5815echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5816if test "${lt_cv_objdir+set}" = set; then 5817 echo $ECHO_N "(cached) $ECHO_C" >&6 5818else 5819 rm -f .libs 2>/dev/null 5820mkdir .libs 2>/dev/null 5821if test -d .libs; then 5822 lt_cv_objdir=.libs 5823else 5824 # MS-DOS does not allow filenames that begin with a dot. 5825 lt_cv_objdir=_libs 5826fi 5827rmdir .libs 2>/dev/null 5828fi 5829echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5830echo "${ECHO_T}$lt_cv_objdir" >&6 5831objdir=$lt_cv_objdir 5832 5833 5834 5835 5836 5837case $host_os in 5838aix3*) 5839 # AIX sometimes has problems with the GCC collect2 program. For some 5840 # reason, if we set the COLLECT_NAMES environment variable, the problems 5841 # vanish in a puff of smoke. 5842 if test "X${COLLECT_NAMES+set}" != Xset; then 5843 COLLECT_NAMES= 5844 export COLLECT_NAMES 5845 fi 5846 ;; 5847esac 5848 5849# Sed substitution that helps us do robust quoting. It backslashifies 5850# metacharacters that are still active within double-quoted strings. 5851Xsed='sed -e 1s/^X//' 5852sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5853 5854# Same as above, but do not quote variable references. 5855double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5856 5857# Sed substitution to delay expansion of an escaped shell variable in a 5858# double_quote_subst'ed string. 5859delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5860 5861# Sed substitution to avoid accidental globbing in evaled expressions 5862no_glob_subst='s/\*/\\\*/g' 5863 5864# Constants: 5865rm="rm -f" 5866 5867# Global variables: 5868default_ofile=libtool 5869can_build_shared=yes 5870 5871# All known linkers require a `.a' archive for static linking (except MSVC, 5872# which needs '.lib'). 5873libext=a 5874ltmain="$ac_aux_dir/ltmain.sh" 5875ofile="$default_ofile" 5876with_gnu_ld="$lt_cv_prog_gnu_ld" 5877 5878if test -n "$ac_tool_prefix"; then 5879 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5880set dummy ${ac_tool_prefix}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_AR+set}" = set; then 5884 echo $ECHO_N "(cached) $ECHO_C" >&6 5885else 5886 if test -n "$AR"; then 5887 ac_cv_prog_AR="$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_AR="${ac_tool_prefix}ar" 5897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5898 break 2 5899 fi 5900done 5901done 5902 5903fi 5904fi 5905AR=$ac_cv_prog_AR 5906if test -n "$AR"; then 5907 echo "$as_me:$LINENO: result: $AR" >&5 5908echo "${ECHO_T}$AR" >&6 5909else 5910 echo "$as_me:$LINENO: result: no" >&5 5911echo "${ECHO_T}no" >&6 5912fi 5913 5914fi 5915if test -z "$ac_cv_prog_AR"; then 5916 ac_ct_AR=$AR 5917 # Extract the first word of "ar", so it can be a program name with args. 5918set dummy ar; ac_word=$2 5919echo "$as_me:$LINENO: checking for $ac_word" >&5 5920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5921if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5922 echo $ECHO_N "(cached) $ECHO_C" >&6 5923else 5924 if test -n "$ac_ct_AR"; then 5925 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5926else 5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5928for as_dir in $PATH 5929do 5930 IFS=$as_save_IFS 5931 test -z "$as_dir" && as_dir=. 5932 for ac_exec_ext in '' $ac_executable_extensions; do 5933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5934 ac_cv_prog_ac_ct_AR="ar" 5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5936 break 2 5937 fi 5938done 5939done 5940 5941 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5942fi 5943fi 5944ac_ct_AR=$ac_cv_prog_ac_ct_AR 5945if test -n "$ac_ct_AR"; then 5946 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5947echo "${ECHO_T}$ac_ct_AR" >&6 5948else 5949 echo "$as_me:$LINENO: result: no" >&5 5950echo "${ECHO_T}no" >&6 5951fi 5952 5953 AR=$ac_ct_AR 5954else 5955 AR="$ac_cv_prog_AR" 5956fi 5957 5958if test -n "$ac_tool_prefix"; then 5959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5960set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then 5964 echo $ECHO_N "(cached) $ECHO_C" >&6 5965else 5966 if test -n "$RANLIB"; then 5967 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}ranlib" 5977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5978 break 2 5979 fi 5980done 5981done 5982 5983fi 5984fi 5985RANLIB=$ac_cv_prog_RANLIB 5986if test -n "$RANLIB"; then 5987 echo "$as_me:$LINENO: result: $RANLIB" >&5 5988echo "${ECHO_T}$RANLIB" >&6 5989else 5990 echo "$as_me:$LINENO: result: no" >&5 5991echo "${ECHO_T}no" >&6 5992fi 5993 5994fi 5995if test -z "$ac_cv_prog_RANLIB"; then 5996 ac_ct_RANLIB=$RANLIB 5997 # Extract the first word of "ranlib", so it can be a program name with args. 5998set dummy ranlib; ac_word=$2 5999echo "$as_me:$LINENO: checking for $ac_word" >&5 6000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6001if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6002 echo $ECHO_N "(cached) $ECHO_C" >&6 6003else 6004 if test -n "$ac_ct_RANLIB"; then 6005 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6006else 6007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6008for as_dir in $PATH 6009do 6010 IFS=$as_save_IFS 6011 test -z "$as_dir" && as_dir=. 6012 for ac_exec_ext in '' $ac_executable_extensions; do 6013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6014 ac_cv_prog_ac_ct_RANLIB="ranlib" 6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6016 break 2 6017 fi 6018done 6019done 6020 6021 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 6022fi 6023fi 6024ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6025if test -n "$ac_ct_RANLIB"; then 6026 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6027echo "${ECHO_T}$ac_ct_RANLIB" >&6 6028else 6029 echo "$as_me:$LINENO: result: no" >&5 6030echo "${ECHO_T}no" >&6 6031fi 6032 6033 RANLIB=$ac_ct_RANLIB 6034else 6035 RANLIB="$ac_cv_prog_RANLIB" 6036fi 6037 6038if test -n "$ac_tool_prefix"; then 6039 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6040set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then 6044 echo $ECHO_N "(cached) $ECHO_C" >&6 6045else 6046 if test -n "$STRIP"; then 6047 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}strip" 6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6058 break 2 6059 fi 6060done 6061done 6062 6063fi 6064fi 6065STRIP=$ac_cv_prog_STRIP 6066if test -n "$STRIP"; then 6067 echo "$as_me:$LINENO: result: $STRIP" >&5 6068echo "${ECHO_T}$STRIP" >&6 6069else 6070 echo "$as_me:$LINENO: result: no" >&5 6071echo "${ECHO_T}no" >&6 6072fi 6073 6074fi 6075if test -z "$ac_cv_prog_STRIP"; then 6076 ac_ct_STRIP=$STRIP 6077 # Extract the first word of "strip", so it can be a program name with args. 6078set dummy strip; ac_word=$2 6079echo "$as_me:$LINENO: checking for $ac_word" >&5 6080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6081if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6082 echo $ECHO_N "(cached) $ECHO_C" >&6 6083else 6084 if test -n "$ac_ct_STRIP"; then 6085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6086else 6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6088for as_dir in $PATH 6089do 6090 IFS=$as_save_IFS 6091 test -z "$as_dir" && as_dir=. 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6094 ac_cv_prog_ac_ct_STRIP="strip" 6095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6096 break 2 6097 fi 6098done 6099done 6100 6101 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6102fi 6103fi 6104ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6105if test -n "$ac_ct_STRIP"; then 6106 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6107echo "${ECHO_T}$ac_ct_STRIP" >&6 6108else 6109 echo "$as_me:$LINENO: result: no" >&5 6110echo "${ECHO_T}no" >&6 6111fi 6112 6113 STRIP=$ac_ct_STRIP 6114else 6115 STRIP="$ac_cv_prog_STRIP" 6116fi 6117 6118 6119old_CC="$CC" 6120old_CFLAGS="$CFLAGS" 6121 6122# Set sane defaults for various variables 6123test -z "$AR" && AR=ar 6124test -z "$AR_FLAGS" && AR_FLAGS=cru 6125test -z "$AS" && AS=as 6126test -z "$CC" && CC=cc 6127test -z "$LTCC" && LTCC=$CC 6128test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6129test -z "$DLLTOOL" && DLLTOOL=dlltool 6130test -z "$LD" && LD=ld 6131test -z "$LN_S" && LN_S="ln -s" 6132test -z "$MAGIC_CMD" && MAGIC_CMD=file 6133test -z "$NM" && NM=nm 6134test -z "$SED" && SED=sed 6135test -z "$OBJDUMP" && OBJDUMP=objdump 6136test -z "$RANLIB" && RANLIB=: 6137test -z "$STRIP" && STRIP=: 6138test -z "$ac_objext" && ac_objext=o 6139 6140# Determine commands to create old-style static archives. 6141old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6142old_postinstall_cmds='chmod 644 $oldlib' 6143old_postuninstall_cmds= 6144 6145if test -n "$RANLIB"; then 6146 case $host_os in 6147 openbsd*) 6148 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6149 ;; 6150 *) 6151 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6152 ;; 6153 esac 6154 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6155fi 6156 6157for cc_temp in $compiler""; do 6158 case $cc_temp in 6159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6161 \-*) ;; 6162 *) break;; 6163 esac 6164done 6165cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6166 6167 6168# Only perform the check for file, if the check method requires it 6169case $deplibs_check_method in 6170file_magic*) 6171 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6172 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6173echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6174if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6175 echo $ECHO_N "(cached) $ECHO_C" >&6 6176else 6177 case $MAGIC_CMD in 6178[\\/*] | ?:[\\/]*) 6179 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6180 ;; 6181*) 6182 lt_save_MAGIC_CMD="$MAGIC_CMD" 6183 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6184 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6185 for ac_dir in $ac_dummy; do 6186 IFS="$lt_save_ifs" 6187 test -z "$ac_dir" && ac_dir=. 6188 if test -f $ac_dir/${ac_tool_prefix}file; then 6189 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6190 if test -n "$file_magic_test_file"; then 6191 case $deplibs_check_method in 6192 "file_magic "*) 6193 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6195 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6196 $EGREP "$file_magic_regex" > /dev/null; then 6197 : 6198 else 6199 cat <<EOF 1>&2 6200 6201*** Warning: the command libtool uses to detect shared libraries, 6202*** $file_magic_cmd, produces output that libtool cannot recognize. 6203*** The result is that libtool may fail to recognize shared libraries 6204*** as such. This will affect the creation of libtool libraries that 6205*** depend on shared libraries, but programs linked with such libtool 6206*** libraries will work regardless of this problem. Nevertheless, you 6207*** may want to report the problem to your system manager and/or to 6208*** bug-libtool@gnu.org 6209 6210EOF 6211 fi ;; 6212 esac 6213 fi 6214 break 6215 fi 6216 done 6217 IFS="$lt_save_ifs" 6218 MAGIC_CMD="$lt_save_MAGIC_CMD" 6219 ;; 6220esac 6221fi 6222 6223MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6224if test -n "$MAGIC_CMD"; then 6225 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6226echo "${ECHO_T}$MAGIC_CMD" >&6 6227else 6228 echo "$as_me:$LINENO: result: no" >&5 6229echo "${ECHO_T}no" >&6 6230fi 6231 6232if test -z "$lt_cv_path_MAGIC_CMD"; then 6233 if test -n "$ac_tool_prefix"; then 6234 echo "$as_me:$LINENO: checking for file" >&5 6235echo $ECHO_N "checking for file... $ECHO_C" >&6 6236if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6237 echo $ECHO_N "(cached) $ECHO_C" >&6 6238else 6239 case $MAGIC_CMD in 6240[\\/*] | ?:[\\/]*) 6241 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6242 ;; 6243*) 6244 lt_save_MAGIC_CMD="$MAGIC_CMD" 6245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6246 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6247 for ac_dir in $ac_dummy; do 6248 IFS="$lt_save_ifs" 6249 test -z "$ac_dir" && ac_dir=. 6250 if test -f $ac_dir/file; then 6251 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6252 if test -n "$file_magic_test_file"; then 6253 case $deplibs_check_method in 6254 "file_magic "*) 6255 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6258 $EGREP "$file_magic_regex" > /dev/null; then 6259 : 6260 else 6261 cat <<EOF 1>&2 6262 6263*** Warning: the command libtool uses to detect shared libraries, 6264*** $file_magic_cmd, produces output that libtool cannot recognize. 6265*** The result is that libtool may fail to recognize shared libraries 6266*** as such. This will affect the creation of libtool libraries that 6267*** depend on shared libraries, but programs linked with such libtool 6268*** libraries will work regardless of this problem. Nevertheless, you 6269*** may want to report the problem to your system manager and/or to 6270*** bug-libtool@gnu.org 6271 6272EOF 6273 fi ;; 6274 esac 6275 fi 6276 break 6277 fi 6278 done 6279 IFS="$lt_save_ifs" 6280 MAGIC_CMD="$lt_save_MAGIC_CMD" 6281 ;; 6282esac 6283fi 6284 6285MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6286if test -n "$MAGIC_CMD"; then 6287 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6288echo "${ECHO_T}$MAGIC_CMD" >&6 6289else 6290 echo "$as_me:$LINENO: result: no" >&5 6291echo "${ECHO_T}no" >&6 6292fi 6293 6294 else 6295 MAGIC_CMD=: 6296 fi 6297fi 6298 6299 fi 6300 ;; 6301esac 6302 6303enable_dlopen=no 6304enable_win32_dll=no 6305 6306# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6307if test "${enable_libtool_lock+set}" = set; then 6308 enableval="$enable_libtool_lock" 6309 6310fi; 6311test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6312 6313 6314# Check whether --with-pic or --without-pic was given. 6315if test "${with_pic+set}" = set; then 6316 withval="$with_pic" 6317 pic_mode="$withval" 6318else 6319 pic_mode=default 6320fi; 6321test -z "$pic_mode" && pic_mode=default 6322 6323# Use C for the default configuration in the libtool script 6324tagname= 6325lt_save_CC="$CC" 6326ac_ext=c 6327ac_cpp='$CPP $CPPFLAGS' 6328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6330ac_compiler_gnu=$ac_cv_c_compiler_gnu 6331 6332 6333# Source file extension for C test sources. 6334ac_ext=c 6335 6336# Object file extension for compiled C test sources. 6337objext=o 6338objext=$objext 6339 6340# Code to be used in simple compile tests 6341lt_simple_compile_test_code="int some_variable = 0;\n" 6342 6343# Code to be used in simple link tests 6344lt_simple_link_test_code='int main(){return(0);}\n' 6345 6346 6347# If no C compiler was specified, use CC. 6348LTCC=${LTCC-"$CC"} 6349 6350# If no C compiler flags were specified, use CFLAGS. 6351LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6352 6353# Allow CC to be a program name with arguments. 6354compiler=$CC 6355 6356 6357# save warnings/boilerplate of simple test code 6358ac_outfile=conftest.$ac_objext 6359printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6360eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6361_lt_compiler_boilerplate=`cat conftest.err` 6362$rm conftest* 6363 6364ac_outfile=conftest.$ac_objext 6365printf "$lt_simple_link_test_code" >conftest.$ac_ext 6366eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6367_lt_linker_boilerplate=`cat conftest.err` 6368$rm conftest* 6369 6370 6371 6372lt_prog_compiler_no_builtin_flag= 6373 6374if test "$GCC" = yes; then 6375 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6376 6377 6378echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6379echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6380if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6381 echo $ECHO_N "(cached) $ECHO_C" >&6 6382else 6383 lt_cv_prog_compiler_rtti_exceptions=no 6384 ac_outfile=conftest.$ac_objext 6385 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6386 lt_compiler_flag="-fno-rtti -fno-exceptions" 6387 # Insert the option either (1) after the last *FLAGS variable, or 6388 # (2) before a word containing "conftest.", or (3) at the end. 6389 # Note that $ac_compile itself does not contain backslashes and begins 6390 # with a dollar sign (not a hyphen), so the echo should work correctly. 6391 # The option is referenced via a variable to avoid confusing sed. 6392 lt_compile=`echo "$ac_compile" | $SED \ 6393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6395 -e 's:$: $lt_compiler_flag:'` 6396 (eval echo "\"\$as_me:6396: $lt_compile\"" >&5) 6397 (eval "$lt_compile" 2>conftest.err) 6398 ac_status=$? 6399 cat conftest.err >&5 6400 echo "$as_me:6400: \$? = $ac_status" >&5 6401 if (exit $ac_status) && test -s "$ac_outfile"; then 6402 # The compiler can only warn and ignore the option if not recognized 6403 # So say no if there are warnings other than the usual output. 6404 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6407 lt_cv_prog_compiler_rtti_exceptions=yes 6408 fi 6409 fi 6410 $rm conftest* 6411 6412fi 6413echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6414echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6415 6416if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6417 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6418else 6419 : 6420fi 6421 6422fi 6423 6424lt_prog_compiler_wl= 6425lt_prog_compiler_pic= 6426lt_prog_compiler_static= 6427 6428echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6429echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6430 6431 if test "$GCC" = yes; then 6432 lt_prog_compiler_wl='-Wl,' 6433 lt_prog_compiler_static='-static' 6434 6435 case $host_os in 6436 aix*) 6437 # All AIX code is PIC. 6438 if test "$host_cpu" = ia64; then 6439 # AIX 5 now supports IA64 processor 6440 lt_prog_compiler_static='-Bstatic' 6441 fi 6442 ;; 6443 6444 amigaos*) 6445 # FIXME: we need at least 68020 code to build shared libraries, but 6446 # adding the `-m68020' flag to GCC prevents building anything better, 6447 # like `-m68040'. 6448 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6449 ;; 6450 6451 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6452 # PIC is the default for these OSes. 6453 ;; 6454 6455 mingw* | pw32* | os2*) 6456 # This hack is so that the source file can tell whether it is being 6457 # built for inclusion in a dll (and should export symbols for example). 6458 lt_prog_compiler_pic='-DDLL_EXPORT' 6459 ;; 6460 6461 darwin* | rhapsody*) 6462 # PIC is the default on this platform 6463 # Common symbols not allowed in MH_DYLIB files 6464 lt_prog_compiler_pic='-fno-common' 6465 ;; 6466 6467 interix3*) 6468 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6469 # Instead, we relocate shared libraries at runtime. 6470 ;; 6471 6472 msdosdjgpp*) 6473 # Just because we use GCC doesn't mean we suddenly get shared libraries 6474 # on systems that don't support them. 6475 lt_prog_compiler_can_build_shared=no 6476 enable_shared=no 6477 ;; 6478 6479 sysv4*MP*) 6480 if test -d /usr/nec; then 6481 lt_prog_compiler_pic=-Kconform_pic 6482 fi 6483 ;; 6484 6485 hpux*) 6486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6487 # not for PA HP-UX. 6488 case $host_cpu in 6489 hppa*64*|ia64*) 6490 # +Z the default 6491 ;; 6492 *) 6493 lt_prog_compiler_pic='-fPIC' 6494 ;; 6495 esac 6496 ;; 6497 6498 *) 6499 lt_prog_compiler_pic='-fPIC' 6500 ;; 6501 esac 6502 else 6503 # PORTME Check for flag to pass linker flags through the system compiler. 6504 case $host_os in 6505 aix*) 6506 lt_prog_compiler_wl='-Wl,' 6507 if test "$host_cpu" = ia64; then 6508 # AIX 5 now supports IA64 processor 6509 lt_prog_compiler_static='-Bstatic' 6510 else 6511 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6512 fi 6513 ;; 6514 darwin*) 6515 # PIC is the default on this platform 6516 # Common symbols not allowed in MH_DYLIB files 6517 case $cc_basename in 6518 xlc*) 6519 lt_prog_compiler_pic='-qnocommon' 6520 lt_prog_compiler_wl='-Wl,' 6521 ;; 6522 esac 6523 ;; 6524 6525 mingw* | pw32* | os2*) 6526 # This hack is so that the source file can tell whether it is being 6527 # built for inclusion in a dll (and should export symbols for example). 6528 lt_prog_compiler_pic='-DDLL_EXPORT' 6529 ;; 6530 6531 hpux9* | hpux10* | hpux11*) 6532 lt_prog_compiler_wl='-Wl,' 6533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6534 # not for PA HP-UX. 6535 case $host_cpu in 6536 hppa*64*|ia64*) 6537 # +Z the default 6538 ;; 6539 *) 6540 lt_prog_compiler_pic='+Z' 6541 ;; 6542 esac 6543 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6544 lt_prog_compiler_static='${wl}-a ${wl}archive' 6545 ;; 6546 6547 irix5* | irix6* | nonstopux*) 6548 lt_prog_compiler_wl='-Wl,' 6549 # PIC (with -KPIC) is the default. 6550 lt_prog_compiler_static='-non_shared' 6551 ;; 6552 6553 newsos6) 6554 lt_prog_compiler_pic='-KPIC' 6555 lt_prog_compiler_static='-Bstatic' 6556 ;; 6557 6558 linux*) 6559 case $cc_basename in 6560 icc* | ecc*) 6561 lt_prog_compiler_wl='-Wl,' 6562 lt_prog_compiler_pic='-KPIC' 6563 lt_prog_compiler_static='-static' 6564 ;; 6565 pgcc* | pgf77* | pgf90* | pgf95*) 6566 # Portland Group compilers (*not* the Pentium gcc compiler, 6567 # which looks to be a dead project) 6568 lt_prog_compiler_wl='-Wl,' 6569 lt_prog_compiler_pic='-fpic' 6570 lt_prog_compiler_static='-Bstatic' 6571 ;; 6572 ccc*) 6573 lt_prog_compiler_wl='-Wl,' 6574 # All Alpha code is PIC. 6575 lt_prog_compiler_static='-non_shared' 6576 ;; 6577 esac 6578 ;; 6579 6580 osf3* | osf4* | osf5*) 6581 lt_prog_compiler_wl='-Wl,' 6582 # All OSF/1 code is PIC. 6583 lt_prog_compiler_static='-non_shared' 6584 ;; 6585 6586 solaris*) 6587 lt_prog_compiler_pic='-KPIC' 6588 lt_prog_compiler_static='-Bstatic' 6589 case $cc_basename in 6590 f77* | f90* | f95*) 6591 lt_prog_compiler_wl='-Qoption ld ';; 6592 *) 6593 lt_prog_compiler_wl='-Wl,';; 6594 esac 6595 ;; 6596 6597 sunos4*) 6598 lt_prog_compiler_wl='-Qoption ld ' 6599 lt_prog_compiler_pic='-PIC' 6600 lt_prog_compiler_static='-Bstatic' 6601 ;; 6602 6603 sysv4 | sysv4.2uw2* | sysv4.3*) 6604 lt_prog_compiler_wl='-Wl,' 6605 lt_prog_compiler_pic='-KPIC' 6606 lt_prog_compiler_static='-Bstatic' 6607 ;; 6608 6609 sysv4*MP*) 6610 if test -d /usr/nec ;then 6611 lt_prog_compiler_pic='-Kconform_pic' 6612 lt_prog_compiler_static='-Bstatic' 6613 fi 6614 ;; 6615 6616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6617 lt_prog_compiler_wl='-Wl,' 6618 lt_prog_compiler_pic='-KPIC' 6619 lt_prog_compiler_static='-Bstatic' 6620 ;; 6621 6622 unicos*) 6623 lt_prog_compiler_wl='-Wl,' 6624 lt_prog_compiler_can_build_shared=no 6625 ;; 6626 6627 uts4*) 6628 lt_prog_compiler_pic='-pic' 6629 lt_prog_compiler_static='-Bstatic' 6630 ;; 6631 6632 *) 6633 lt_prog_compiler_can_build_shared=no 6634 ;; 6635 esac 6636 fi 6637 6638echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6639echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6640 6641# 6642# Check to make sure the PIC flag actually works. 6643# 6644if test -n "$lt_prog_compiler_pic"; then 6645 6646echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6647echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6648if test "${lt_prog_compiler_pic_works+set}" = set; then 6649 echo $ECHO_N "(cached) $ECHO_C" >&6 6650else 6651 lt_prog_compiler_pic_works=no 6652 ac_outfile=conftest.$ac_objext 6653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6654 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6655 # Insert the option either (1) after the last *FLAGS variable, or 6656 # (2) before a word containing "conftest.", or (3) at the end. 6657 # Note that $ac_compile itself does not contain backslashes and begins 6658 # with a dollar sign (not a hyphen), so the echo should work correctly. 6659 # The option is referenced via a variable to avoid confusing sed. 6660 lt_compile=`echo "$ac_compile" | $SED \ 6661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6663 -e 's:$: $lt_compiler_flag:'` 6664 (eval echo "\"\$as_me:6664: $lt_compile\"" >&5) 6665 (eval "$lt_compile" 2>conftest.err) 6666 ac_status=$? 6667 cat conftest.err >&5 6668 echo "$as_me:6668: \$? = $ac_status" >&5 6669 if (exit $ac_status) && test -s "$ac_outfile"; then 6670 # The compiler can only warn and ignore the option if not recognized 6671 # So say no if there are warnings other than the usual output. 6672 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6675 lt_prog_compiler_pic_works=yes 6676 fi 6677 fi 6678 $rm conftest* 6679 6680fi 6681echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6682echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6683 6684if test x"$lt_prog_compiler_pic_works" = xyes; then 6685 case $lt_prog_compiler_pic in 6686 "" | " "*) ;; 6687 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6688 esac 6689else 6690 lt_prog_compiler_pic= 6691 lt_prog_compiler_can_build_shared=no 6692fi 6693 6694fi 6695case $host_os in 6696 # For platforms which do not support PIC, -DPIC is meaningless: 6697 *djgpp*) 6698 lt_prog_compiler_pic= 6699 ;; 6700 *) 6701 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6702 ;; 6703esac 6704 6705# 6706# Check to make sure the static flag actually works. 6707# 6708wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6709echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6710echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6711if test "${lt_prog_compiler_static_works+set}" = set; then 6712 echo $ECHO_N "(cached) $ECHO_C" >&6 6713else 6714 lt_prog_compiler_static_works=no 6715 save_LDFLAGS="$LDFLAGS" 6716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6717 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6719 # The linker can only warn and ignore the option if not recognized 6720 # So say no if there are warnings 6721 if test -s conftest.err; then 6722 # Append any errors to the config.log. 6723 cat conftest.err 1>&5 6724 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6726 if diff conftest.exp conftest.er2 >/dev/null; then 6727 lt_prog_compiler_static_works=yes 6728 fi 6729 else 6730 lt_prog_compiler_static_works=yes 6731 fi 6732 fi 6733 $rm conftest* 6734 LDFLAGS="$save_LDFLAGS" 6735 6736fi 6737echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6738echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6739 6740if test x"$lt_prog_compiler_static_works" = xyes; then 6741 : 6742else 6743 lt_prog_compiler_static= 6744fi 6745 6746 6747echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6748echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6749if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6750 echo $ECHO_N "(cached) $ECHO_C" >&6 6751else 6752 lt_cv_prog_compiler_c_o=no 6753 $rm -r conftest 2>/dev/null 6754 mkdir conftest 6755 cd conftest 6756 mkdir out 6757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6758 6759 lt_compiler_flag="-o out/conftest2.$ac_objext" 6760 # Insert the option either (1) after the last *FLAGS variable, or 6761 # (2) before a word containing "conftest.", or (3) at the end. 6762 # Note that $ac_compile itself does not contain backslashes and begins 6763 # with a dollar sign (not a hyphen), so the echo should work correctly. 6764 lt_compile=`echo "$ac_compile" | $SED \ 6765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6767 -e 's:$: $lt_compiler_flag:'` 6768 (eval echo "\"\$as_me:6768: $lt_compile\"" >&5) 6769 (eval "$lt_compile" 2>out/conftest.err) 6770 ac_status=$? 6771 cat out/conftest.err >&5 6772 echo "$as_me:6772: \$? = $ac_status" >&5 6773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6774 then 6775 # The compiler can only warn and ignore the option if not recognized 6776 # So say no if there are warnings 6777 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6780 lt_cv_prog_compiler_c_o=yes 6781 fi 6782 fi 6783 chmod u+w . 2>&5 6784 $rm conftest* 6785 # SGI C++ compiler will create directory out/ii_files/ for 6786 # template instantiation 6787 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6788 $rm out/* && rmdir out 6789 cd .. 6790 rmdir conftest 6791 $rm conftest* 6792 6793fi 6794echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6795echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6796 6797 6798hard_links="nottested" 6799if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6800 # do not overwrite the value of need_locks provided by the user 6801 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6802echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6803 hard_links=yes 6804 $rm conftest* 6805 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6806 touch conftest.a 6807 ln conftest.a conftest.b 2>&5 || hard_links=no 6808 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6809 echo "$as_me:$LINENO: result: $hard_links" >&5 6810echo "${ECHO_T}$hard_links" >&6 6811 if test "$hard_links" = no; then 6812 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6813echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6814 need_locks=warn 6815 fi 6816else 6817 need_locks=no 6818fi 6819 6820echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6821echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6822 6823 runpath_var= 6824 allow_undefined_flag= 6825 enable_shared_with_static_runtimes=no 6826 archive_cmds= 6827 archive_expsym_cmds= 6828 old_archive_From_new_cmds= 6829 old_archive_from_expsyms_cmds= 6830 export_dynamic_flag_spec= 6831 whole_archive_flag_spec= 6832 thread_safe_flag_spec= 6833 hardcode_libdir_flag_spec= 6834 hardcode_libdir_flag_spec_ld= 6835 hardcode_libdir_separator= 6836 hardcode_direct=no 6837 hardcode_minus_L=no 6838 hardcode_shlibpath_var=unsupported 6839 link_all_deplibs=unknown 6840 hardcode_automatic=no 6841 module_cmds= 6842 module_expsym_cmds= 6843 always_export_symbols=no 6844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6845 # include_expsyms should be a list of space-separated symbols to be *always* 6846 # included in the symbol list 6847 include_expsyms= 6848 # exclude_expsyms can be an extended regexp of symbols to exclude 6849 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6850 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6851 # as well as any symbol that contains `d'. 6852 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6853 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6854 # platforms (ab)use it in PIC code, but their linkers get confused if 6855 # the symbol is explicitly referenced. Since portable code cannot 6856 # rely on this symbol name, it's probably fine to never include it in 6857 # preloaded symbol tables. 6858 extract_expsyms_cmds= 6859 # Just being paranoid about ensuring that cc_basename is set. 6860 for cc_temp in $compiler""; do 6861 case $cc_temp in 6862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6864 \-*) ;; 6865 *) break;; 6866 esac 6867done 6868cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6869 6870 case $host_os in 6871 cygwin* | mingw* | pw32*) 6872 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6873 # When not using gcc, we currently assume that we are using 6874 # Microsoft Visual C++. 6875 if test "$GCC" != yes; then 6876 with_gnu_ld=no 6877 fi 6878 ;; 6879 interix*) 6880 # we just hope/assume this is gcc and not c89 (= MSVC++) 6881 with_gnu_ld=yes 6882 ;; 6883 openbsd*) 6884 with_gnu_ld=no 6885 ;; 6886 esac 6887 6888 ld_shlibs=yes 6889 if test "$with_gnu_ld" = yes; then 6890 # If archive_cmds runs LD, not CC, wlarc should be empty 6891 wlarc='${wl}' 6892 6893 # Set some defaults for GNU ld with shared library support. These 6894 # are reset later if shared libraries are not supported. Putting them 6895 # here allows them to be overridden if necessary. 6896 runpath_var=LD_RUN_PATH 6897 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6898 export_dynamic_flag_spec='${wl}--export-dynamic' 6899 # ancient GNU ld didn't support --whole-archive et. al. 6900 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6901 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6902 else 6903 whole_archive_flag_spec= 6904 fi 6905 supports_anon_versioning=no 6906 case `$LD -v 2>/dev/null` in 6907 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6910 *\ 2.11.*) ;; # other 2.11 versions 6911 *) supports_anon_versioning=yes ;; 6912 esac 6913 6914 # See if GNU ld supports shared libraries. 6915 case $host_os in 6916 aix3* | aix4* | aix5*) 6917 # On AIX/PPC, the GNU linker is very broken 6918 if test "$host_cpu" != ia64; then 6919 ld_shlibs=no 6920 cat <<EOF 1>&2 6921 6922*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6923*** to be unable to reliably create shared libraries on AIX. 6924*** Therefore, libtool is disabling shared libraries support. If you 6925*** really care for shared libraries, you may want to modify your PATH 6926*** so that a non-GNU linker is found, and then restart. 6927 6928EOF 6929 fi 6930 ;; 6931 6932 amigaos*) 6933 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)' 6934 hardcode_libdir_flag_spec='-L$libdir' 6935 hardcode_minus_L=yes 6936 6937 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6938 # that the semantics of dynamic libraries on AmigaOS, at least up 6939 # to version 4, is to share data among multiple programs linked 6940 # with the same dynamic library. Since this doesn't match the 6941 # behavior of shared libraries on other platforms, we can't use 6942 # them. 6943 ld_shlibs=no 6944 ;; 6945 6946 beos*) 6947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6948 allow_undefined_flag=unsupported 6949 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6950 # support --undefined. This deserves some investigation. FIXME 6951 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6952 else 6953 ld_shlibs=no 6954 fi 6955 ;; 6956 6957 cygwin* | mingw* | pw32*) 6958 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6959 # as there is no search path for DLLs. 6960 hardcode_libdir_flag_spec='-L$libdir' 6961 allow_undefined_flag=unsupported 6962 always_export_symbols=no 6963 enable_shared_with_static_runtimes=yes 6964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6965 6966 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6968 # If the export-symbols file already is a .def file (1st line 6969 # is EXPORTS), use it as is; otherwise, prepend... 6970 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6971 cp $export_symbols $output_objdir/$soname.def; 6972 else 6973 echo EXPORTS > $output_objdir/$soname.def; 6974 cat $export_symbols >> $output_objdir/$soname.def; 6975 fi~ 6976 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 6977 else 6978 ld_shlibs=no 6979 fi 6980 ;; 6981 6982 interix3*) 6983 hardcode_direct=no 6984 hardcode_shlibpath_var=no 6985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6986 export_dynamic_flag_spec='${wl}-E' 6987 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6988 # Instead, shared libraries are loaded at an image base (0x10000000 by 6989 # default) and relocated if they conflict, which is a slow very memory 6990 # consuming and fragmenting process. To avoid this, we pick a random, 6991 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6992 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6994 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 6995 ;; 6996 6997 linux*) 6998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6999 tmp_addflag= 7000 case $cc_basename,$host_cpu in 7001 pgcc*) # Portland Group C compiler 7002 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 7003 tmp_addflag=' $pic_flag' 7004 ;; 7005 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7006 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' 7007 tmp_addflag=' $pic_flag -Mnomain' ;; 7008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7009 tmp_addflag=' -i_dynamic' ;; 7010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7011 tmp_addflag=' -i_dynamic -nofor_main' ;; 7012 ifc* | ifort*) # Intel Fortran compiler 7013 tmp_addflag=' -nofor_main' ;; 7014 esac 7015 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7016 7017 if test $supports_anon_versioning = yes; then 7018 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7020 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7021 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7022 fi 7023 else 7024 ld_shlibs=no 7025 fi 7026 ;; 7027 7028 netbsd*) 7029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7030 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7031 wlarc= 7032 else 7033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7035 fi 7036 ;; 7037 7038 solaris*) 7039 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7040 ld_shlibs=no 7041 cat <<EOF 1>&2 7042 7043*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7044*** create shared libraries on Solaris systems. Therefore, libtool 7045*** is disabling shared libraries support. We urge you to upgrade GNU 7046*** binutils to release 2.9.1 or newer. Another option is to modify 7047*** your PATH or compiler configuration so that the native linker is 7048*** used, and then restart. 7049 7050EOF 7051 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7054 else 7055 ld_shlibs=no 7056 fi 7057 ;; 7058 7059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7060 case `$LD -v 2>&1` in 7061 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7062 ld_shlibs=no 7063 cat <<_LT_EOF 1>&2 7064 7065*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7066*** reliably create shared libraries on SCO systems. Therefore, libtool 7067*** is disabling shared libraries support. We urge you to upgrade GNU 7068*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7069*** your PATH or compiler configuration so that the native linker is 7070*** used, and then restart. 7071 7072_LT_EOF 7073 ;; 7074 *) 7075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7076 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7079 else 7080 ld_shlibs=no 7081 fi 7082 ;; 7083 esac 7084 ;; 7085 7086 sunos4*) 7087 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7088 wlarc= 7089 hardcode_direct=yes 7090 hardcode_shlibpath_var=no 7091 ;; 7092 7093 *) 7094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7097 else 7098 ld_shlibs=no 7099 fi 7100 ;; 7101 esac 7102 7103 if test "$ld_shlibs" = no; then 7104 runpath_var= 7105 hardcode_libdir_flag_spec= 7106 export_dynamic_flag_spec= 7107 whole_archive_flag_spec= 7108 fi 7109 else 7110 # PORTME fill in a description of your system's linker (not GNU ld) 7111 case $host_os in 7112 aix3*) 7113 allow_undefined_flag=unsupported 7114 always_export_symbols=yes 7115 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' 7116 # Note: this linker hardcodes the directories in LIBPATH if there 7117 # are no directories specified by -L. 7118 hardcode_minus_L=yes 7119 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7120 # Neither direct hardcoding nor static linking is supported with a 7121 # broken collect2. 7122 hardcode_direct=unsupported 7123 fi 7124 ;; 7125 7126 aix4* | aix5*) 7127 if test "$host_cpu" = ia64; then 7128 # On IA64, the linker does run time linking by default, so we don't 7129 # have to do anything special. 7130 aix_use_runtimelinking=no 7131 exp_sym_flag='-Bexport' 7132 no_entry_flag="" 7133 else 7134 # If we're using GNU nm, then we don't want the "-C" option. 7135 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7136 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7137 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' 7138 else 7139 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' 7140 fi 7141 aix_use_runtimelinking=no 7142 7143 # Test if we are trying to use run time linking or normal 7144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7145 # need to do runtime linking. 7146 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7147 for ld_flag in $LDFLAGS; do 7148 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7149 aix_use_runtimelinking=yes 7150 break 7151 fi 7152 done 7153 ;; 7154 esac 7155 7156 exp_sym_flag='-bexport' 7157 no_entry_flag='-bnoentry' 7158 fi 7159 7160 # When large executables or shared objects are built, AIX ld can 7161 # have problems creating the table of contents. If linking a library 7162 # or program results in "error TOC overflow" add -mminimal-toc to 7163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7165 7166 archive_cmds='' 7167 hardcode_direct=yes 7168 hardcode_libdir_separator=':' 7169 link_all_deplibs=yes 7170 7171 if test "$GCC" = yes; then 7172 case $host_os in aix4.[012]|aix4.[012].*) 7173 # We only want to do this on AIX 4.2 and lower, the check 7174 # below for broken collect2 doesn't work under 4.3+ 7175 collect2name=`${CC} -print-prog-name=collect2` 7176 if test -f "$collect2name" && \ 7177 strings "$collect2name" | grep resolve_lib_name >/dev/null 7178 then 7179 # We have reworked collect2 7180 hardcode_direct=yes 7181 else 7182 # We have old collect2 7183 hardcode_direct=unsupported 7184 # It fails to find uninstalled libraries when the uninstalled 7185 # path is not listed in the libpath. Setting hardcode_minus_L 7186 # to unsupported forces relinking 7187 hardcode_minus_L=yes 7188 hardcode_libdir_flag_spec='-L$libdir' 7189 hardcode_libdir_separator= 7190 fi 7191 ;; 7192 esac 7193 shared_flag='-shared' 7194 if test "$aix_use_runtimelinking" = yes; then 7195 shared_flag="$shared_flag "'${wl}-G' 7196 fi 7197 else 7198 # not using gcc 7199 if test "$host_cpu" = ia64; then 7200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7201 # chokes on -Wl,-G. The following line is correct: 7202 shared_flag='-G' 7203 else 7204 if test "$aix_use_runtimelinking" = yes; then 7205 shared_flag='${wl}-G' 7206 else 7207 shared_flag='${wl}-bM:SRE' 7208 fi 7209 fi 7210 fi 7211 7212 # It seems that -bexpall does not export symbols beginning with 7213 # underscore (_), so it is better to generate a list of symbols to export. 7214 always_export_symbols=yes 7215 if test "$aix_use_runtimelinking" = yes; then 7216 # Warning - without using the other runtime loading flags (-brtl), 7217 # -berok will link without error, but may produce a broken library. 7218 allow_undefined_flag='-berok' 7219 # Determine the default libpath from the value encoded in an empty executable. 7220 cat >conftest.$ac_ext <<_ACEOF 7221/* confdefs.h. */ 7222_ACEOF 7223cat confdefs.h >>conftest.$ac_ext 7224cat >>conftest.$ac_ext <<_ACEOF 7225/* end confdefs.h. */ 7226 7227int 7228main () 7229{ 7230 7231 ; 7232 return 0; 7233} 7234_ACEOF 7235rm -f conftest.$ac_objext conftest$ac_exeext 7236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7237 (eval $ac_link) 2>conftest.er1 7238 ac_status=$? 7239 grep -v '^ *+' conftest.er1 >conftest.err 7240 rm -f conftest.er1 7241 cat conftest.err >&5 7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7243 (exit $ac_status); } && 7244 { ac_try='test -z "$ac_c_werror_flag" 7245 || test ! -s conftest.err' 7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7247 (eval $ac_try) 2>&5 7248 ac_status=$? 7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7250 (exit $ac_status); }; } && 7251 { ac_try='test -s conftest$ac_exeext' 7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7253 (eval $ac_try) 2>&5 7254 ac_status=$? 7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7256 (exit $ac_status); }; }; then 7257 7258aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7259}'` 7260# Check for a 64-bit object if we didn't find anything. 7261if 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; } 7262}'`; fi 7263else 7264 echo "$as_me: failed program was:" >&5 7265sed 's/^/| /' conftest.$ac_ext >&5 7266 7267fi 7268rm -f conftest.err conftest.$ac_objext \ 7269 conftest$ac_exeext conftest.$ac_ext 7270if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7271 7272 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7273 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7274 else 7275 if test "$host_cpu" = ia64; then 7276 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7277 allow_undefined_flag="-z nodefs" 7278 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7279 else 7280 # Determine the default libpath from the value encoded in an empty executable. 7281 cat >conftest.$ac_ext <<_ACEOF 7282/* confdefs.h. */ 7283_ACEOF 7284cat confdefs.h >>conftest.$ac_ext 7285cat >>conftest.$ac_ext <<_ACEOF 7286/* end confdefs.h. */ 7287 7288int 7289main () 7290{ 7291 7292 ; 7293 return 0; 7294} 7295_ACEOF 7296rm -f conftest.$ac_objext conftest$ac_exeext 7297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7298 (eval $ac_link) 2>conftest.er1 7299 ac_status=$? 7300 grep -v '^ *+' conftest.er1 >conftest.err 7301 rm -f conftest.er1 7302 cat conftest.err >&5 7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7304 (exit $ac_status); } && 7305 { ac_try='test -z "$ac_c_werror_flag" 7306 || test ! -s conftest.err' 7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7308 (eval $ac_try) 2>&5 7309 ac_status=$? 7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7311 (exit $ac_status); }; } && 7312 { ac_try='test -s conftest$ac_exeext' 7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7314 (eval $ac_try) 2>&5 7315 ac_status=$? 7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7317 (exit $ac_status); }; }; then 7318 7319aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7320}'` 7321# Check for a 64-bit object if we didn't find anything. 7322if 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; } 7323}'`; fi 7324else 7325 echo "$as_me: failed program was:" >&5 7326sed 's/^/| /' conftest.$ac_ext >&5 7327 7328fi 7329rm -f conftest.err conftest.$ac_objext \ 7330 conftest$ac_exeext conftest.$ac_ext 7331if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7332 7333 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7334 # Warning - without using the other run time loading flags, 7335 # -berok will link without error, but may produce a broken library. 7336 no_undefined_flag=' ${wl}-bernotok' 7337 allow_undefined_flag=' ${wl}-berok' 7338 # Exported symbols can be pulled into shared objects from archives 7339 whole_archive_flag_spec='$convenience' 7340 archive_cmds_need_lc=yes 7341 # This is similar to how AIX traditionally builds its shared libraries. 7342 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7343 fi 7344 fi 7345 ;; 7346 7347 amigaos*) 7348 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)' 7349 hardcode_libdir_flag_spec='-L$libdir' 7350 hardcode_minus_L=yes 7351 # see comment about different semantics on the GNU ld section 7352 ld_shlibs=no 7353 ;; 7354 7355 bsdi[45]*) 7356 export_dynamic_flag_spec=-rdynamic 7357 ;; 7358 7359 cygwin* | mingw* | pw32*) 7360 # When not using gcc, we currently assume that we are using 7361 # Microsoft Visual C++. 7362 # hardcode_libdir_flag_spec is actually meaningless, as there is 7363 # no search path for DLLs. 7364 hardcode_libdir_flag_spec=' ' 7365 allow_undefined_flag=unsupported 7366 # Tell ltmain to make .lib files, not .a files. 7367 libext=lib 7368 # Tell ltmain to make .dll files, not .so files. 7369 shrext_cmds=".dll" 7370 # FIXME: Setting linknames here is a bad hack. 7371 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7372 # The linker will automatically build a .lib file if we build a DLL. 7373 old_archive_From_new_cmds='true' 7374 # FIXME: Should let the user specify the lib program. 7375 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7376 fix_srcfile_path='`cygpath -w "$srcfile"`' 7377 enable_shared_with_static_runtimes=yes 7378 ;; 7379 7380 darwin* | rhapsody*) 7381 case $host_os in 7382 rhapsody* | darwin1.[012]) 7383 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7384 ;; 7385 *) # Darwin 1.3 on 7386 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7387 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7388 else 7389 case ${MACOSX_DEPLOYMENT_TARGET} in 7390 10.[012]) 7391 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7392 ;; 7393 10.*) 7394 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7395 ;; 7396 esac 7397 fi 7398 ;; 7399 esac 7400 archive_cmds_need_lc=no 7401 hardcode_direct=no 7402 hardcode_automatic=yes 7403 hardcode_shlibpath_var=unsupported 7404 whole_archive_flag_spec='' 7405 link_all_deplibs=yes 7406 if test "$GCC" = yes ; then 7407 output_verbose_link_cmd='echo' 7408 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7409 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7410 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7411 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}' 7412 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}' 7413 else 7414 case $cc_basename in 7415 xlc*) 7416 output_verbose_link_cmd='echo' 7417 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7418 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7419 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7420 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}' 7421 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}' 7422 ;; 7423 *) 7424 ld_shlibs=no 7425 ;; 7426 esac 7427 fi 7428 ;; 7429 7430 dgux*) 7431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7432 hardcode_libdir_flag_spec='-L$libdir' 7433 hardcode_shlibpath_var=no 7434 ;; 7435 7436 freebsd1*) 7437 ld_shlibs=no 7438 ;; 7439 7440 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7441 # support. Future versions do this automatically, but an explicit c++rt0.o 7442 # does not break anything, and helps significantly (at the cost of a little 7443 # extra space). 7444 freebsd2.2*) 7445 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7446 hardcode_libdir_flag_spec='-R$libdir' 7447 hardcode_direct=yes 7448 hardcode_shlibpath_var=no 7449 ;; 7450 7451 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7452 freebsd2*) 7453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7454 hardcode_direct=yes 7455 hardcode_minus_L=yes 7456 hardcode_shlibpath_var=no 7457 ;; 7458 7459 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7460 freebsd* | kfreebsd*-gnu | dragonfly*) 7461 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7462 hardcode_libdir_flag_spec='-R$libdir' 7463 hardcode_direct=yes 7464 hardcode_shlibpath_var=no 7465 ;; 7466 7467 hpux9*) 7468 if test "$GCC" = yes; then 7469 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' 7470 else 7471 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' 7472 fi 7473 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7474 hardcode_libdir_separator=: 7475 hardcode_direct=yes 7476 7477 # hardcode_minus_L: Not really in the search PATH, 7478 # but as the default location of the library. 7479 hardcode_minus_L=yes 7480 export_dynamic_flag_spec='${wl}-E' 7481 ;; 7482 7483 hpux10*) 7484 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7485 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7486 else 7487 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7488 fi 7489 if test "$with_gnu_ld" = no; then 7490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7491 hardcode_libdir_separator=: 7492 7493 hardcode_direct=yes 7494 export_dynamic_flag_spec='${wl}-E' 7495 7496 # hardcode_minus_L: Not really in the search PATH, 7497 # but as the default location of the library. 7498 hardcode_minus_L=yes 7499 fi 7500 ;; 7501 7502 hpux11*) 7503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7504 case $host_cpu in 7505 hppa*64*) 7506 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7507 ;; 7508 ia64*) 7509 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7510 ;; 7511 *) 7512 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7513 ;; 7514 esac 7515 else 7516 case $host_cpu in 7517 hppa*64*) 7518 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7519 ;; 7520 ia64*) 7521 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7522 ;; 7523 *) 7524 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7525 ;; 7526 esac 7527 fi 7528 if test "$with_gnu_ld" = no; then 7529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7530 hardcode_libdir_separator=: 7531 7532 case $host_cpu in 7533 hppa*64*|ia64*) 7534 hardcode_libdir_flag_spec_ld='+b $libdir' 7535 hardcode_direct=no 7536 hardcode_shlibpath_var=no 7537 ;; 7538 *) 7539 hardcode_direct=yes 7540 export_dynamic_flag_spec='${wl}-E' 7541 7542 # hardcode_minus_L: Not really in the search PATH, 7543 # but as the default location of the library. 7544 hardcode_minus_L=yes 7545 ;; 7546 esac 7547 fi 7548 ;; 7549 7550 irix5* | irix6* | nonstopux*) 7551 if test "$GCC" = yes; then 7552 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' 7553 else 7554 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' 7555 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7556 fi 7557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7558 hardcode_libdir_separator=: 7559 link_all_deplibs=yes 7560 ;; 7561 7562 netbsd*) 7563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7565 else 7566 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7567 fi 7568 hardcode_libdir_flag_spec='-R$libdir' 7569 hardcode_direct=yes 7570 hardcode_shlibpath_var=no 7571 ;; 7572 7573 newsos6) 7574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7575 hardcode_direct=yes 7576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7577 hardcode_libdir_separator=: 7578 hardcode_shlibpath_var=no 7579 ;; 7580 7581 openbsd*) 7582 hardcode_direct=yes 7583 hardcode_shlibpath_var=no 7584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7586 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7588 export_dynamic_flag_spec='${wl}-E' 7589 else 7590 case $host_os in 7591 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7593 hardcode_libdir_flag_spec='-R$libdir' 7594 ;; 7595 *) 7596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7597 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7598 ;; 7599 esac 7600 fi 7601 ;; 7602 7603 os2*) 7604 hardcode_libdir_flag_spec='-L$libdir' 7605 hardcode_minus_L=yes 7606 allow_undefined_flag=unsupported 7607 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' 7608 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7609 ;; 7610 7611 osf3*) 7612 if test "$GCC" = yes; then 7613 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7614 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' 7615 else 7616 allow_undefined_flag=' -expect_unresolved \*' 7617 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' 7618 fi 7619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7620 hardcode_libdir_separator=: 7621 ;; 7622 7623 osf4* | osf5*) # as osf3* with the addition of -msym flag 7624 if test "$GCC" = yes; then 7625 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7626 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' 7627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7628 else 7629 allow_undefined_flag=' -expect_unresolved \*' 7630 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' 7631 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7632 $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' 7633 7634 # Both c and cxx compiler support -rpath directly 7635 hardcode_libdir_flag_spec='-rpath $libdir' 7636 fi 7637 hardcode_libdir_separator=: 7638 ;; 7639 7640 solaris*) 7641 no_undefined_flag=' -z text' 7642 if test "$GCC" = yes; then 7643 wlarc='${wl}' 7644 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7645 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7646 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7647 else 7648 wlarc='' 7649 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7650 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7652 fi 7653 hardcode_libdir_flag_spec='-R$libdir' 7654 hardcode_shlibpath_var=no 7655 case $host_os in 7656 solaris2.[0-5] | solaris2.[0-5].*) ;; 7657 *) 7658 # The compiler driver will combine linker options so we 7659 # cannot just pass the convience library names through 7660 # without $wl, iff we do not link with $LD. 7661 # Luckily, gcc supports the same syntax we need for Sun Studio. 7662 # Supported since Solaris 2.6 (maybe 2.5.1?) 7663 case $wlarc in 7664 '') 7665 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7666 *) 7667 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' ;; 7668 esac ;; 7669 esac 7670 link_all_deplibs=yes 7671 ;; 7672 7673 sunos4*) 7674 if test "x$host_vendor" = xsequent; then 7675 # Use $CC to link under sequent, because it throws in some extra .o 7676 # files that make .init and .fini sections work. 7677 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7678 else 7679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7680 fi 7681 hardcode_libdir_flag_spec='-L$libdir' 7682 hardcode_direct=yes 7683 hardcode_minus_L=yes 7684 hardcode_shlibpath_var=no 7685 ;; 7686 7687 sysv4) 7688 case $host_vendor in 7689 sni) 7690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7691 hardcode_direct=yes # is this really true??? 7692 ;; 7693 siemens) 7694 ## LD is ld it makes a PLAMLIB 7695 ## CC just makes a GrossModule. 7696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7697 reload_cmds='$CC -r -o $output$reload_objs' 7698 hardcode_direct=no 7699 ;; 7700 motorola) 7701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7703 ;; 7704 esac 7705 runpath_var='LD_RUN_PATH' 7706 hardcode_shlibpath_var=no 7707 ;; 7708 7709 sysv4.3*) 7710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7711 hardcode_shlibpath_var=no 7712 export_dynamic_flag_spec='-Bexport' 7713 ;; 7714 7715 sysv4*MP*) 7716 if test -d /usr/nec; then 7717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7718 hardcode_shlibpath_var=no 7719 runpath_var=LD_RUN_PATH 7720 hardcode_runpath_var=yes 7721 ld_shlibs=yes 7722 fi 7723 ;; 7724 7725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 7726 no_undefined_flag='${wl}-z,text' 7727 archive_cmds_need_lc=no 7728 hardcode_shlibpath_var=no 7729 runpath_var='LD_RUN_PATH' 7730 7731 if test "$GCC" = yes; then 7732 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7733 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7734 else 7735 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7736 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7737 fi 7738 ;; 7739 7740 sysv5* | sco3.2v5* | sco5v6*) 7741 # Note: We can NOT use -z defs as we might desire, because we do not 7742 # link with -lc, and that would cause any symbols used from libc to 7743 # always be unresolved, which means just about no library would 7744 # ever link correctly. If we're not using GNU ld we use -z text 7745 # though, which does catch some bad symbols but isn't as heavy-handed 7746 # as -z defs. 7747 no_undefined_flag='${wl}-z,text' 7748 allow_undefined_flag='${wl}-z,nodefs' 7749 archive_cmds_need_lc=no 7750 hardcode_shlibpath_var=no 7751 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 7752 hardcode_libdir_separator=':' 7753 link_all_deplibs=yes 7754 export_dynamic_flag_spec='${wl}-Bexport' 7755 runpath_var='LD_RUN_PATH' 7756 7757 if test "$GCC" = yes; then 7758 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7759 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7760 else 7761 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7762 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 7763 fi 7764 ;; 7765 7766 uts4*) 7767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7768 hardcode_libdir_flag_spec='-L$libdir' 7769 hardcode_shlibpath_var=no 7770 ;; 7771 7772 *) 7773 ld_shlibs=no 7774 ;; 7775 esac 7776 fi 7777 7778echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7779echo "${ECHO_T}$ld_shlibs" >&6 7780test "$ld_shlibs" = no && can_build_shared=no 7781 7782# 7783# Do we need to explicitly link libc? 7784# 7785case "x$archive_cmds_need_lc" in 7786x|xyes) 7787 # Assume -lc should be added 7788 archive_cmds_need_lc=yes 7789 7790 if test "$enable_shared" = yes && test "$GCC" = yes; then 7791 case $archive_cmds in 7792 *'~'*) 7793 # FIXME: we may have to deal with multi-command sequences. 7794 ;; 7795 '$CC '*) 7796 # Test whether the compiler implicitly links with -lc since on some 7797 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7798 # to ld, don't add -lc before -lgcc. 7799 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7800echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7801 $rm conftest* 7802 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7803 7804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7805 (eval $ac_compile) 2>&5 7806 ac_status=$? 7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7808 (exit $ac_status); } 2>conftest.err; then 7809 soname=conftest 7810 lib=conftest 7811 libobjs=conftest.$ac_objext 7812 deplibs= 7813 wl=$lt_prog_compiler_wl 7814 pic_flag=$lt_prog_compiler_pic 7815 compiler_flags=-v 7816 linker_flags=-v 7817 verstring= 7818 output_objdir=. 7819 libname=conftest 7820 lt_save_allow_undefined_flag=$allow_undefined_flag 7821 allow_undefined_flag= 7822 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7823 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7824 ac_status=$? 7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7826 (exit $ac_status); } 7827 then 7828 archive_cmds_need_lc=no 7829 else 7830 archive_cmds_need_lc=yes 7831 fi 7832 allow_undefined_flag=$lt_save_allow_undefined_flag 7833 else 7834 cat conftest.err 1>&5 7835 fi 7836 $rm conftest* 7837 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7838echo "${ECHO_T}$archive_cmds_need_lc" >&6 7839 ;; 7840 esac 7841 fi 7842 ;; 7843esac 7844 7845echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7846echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7847library_names_spec= 7848libname_spec='lib$name' 7849soname_spec= 7850shrext_cmds=".so" 7851postinstall_cmds= 7852postuninstall_cmds= 7853finish_cmds= 7854finish_eval= 7855shlibpath_var= 7856shlibpath_overrides_runpath=unknown 7857version_type=none 7858dynamic_linker="$host_os ld.so" 7859sys_lib_dlsearch_path_spec="/lib /usr/lib" 7860if test "$GCC" = yes; then 7861 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7862 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7863 # if the path contains ";" then we assume it to be the separator 7864 # otherwise default to the standard path separator (i.e. ":") - it is 7865 # assumed that no part of a normal pathname contains ";" but that should 7866 # okay in the real world where ";" in dirpaths is itself problematic. 7867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7868 else 7869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7870 fi 7871else 7872 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7873fi 7874need_lib_prefix=unknown 7875hardcode_into_libs=no 7876 7877# when you set need_version to no, make sure it does not cause -set_version 7878# flags to be left without arguments 7879need_version=unknown 7880 7881case $host_os in 7882aix3*) 7883 version_type=linux 7884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7885 shlibpath_var=LIBPATH 7886 7887 # AIX 3 has no versioning support, so we append a major version to the name. 7888 soname_spec='${libname}${release}${shared_ext}$major' 7889 ;; 7890 7891aix4* | aix5*) 7892 version_type=linux 7893 need_lib_prefix=no 7894 need_version=no 7895 hardcode_into_libs=yes 7896 if test "$host_cpu" = ia64; then 7897 # AIX 5 supports IA64 7898 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7899 shlibpath_var=LD_LIBRARY_PATH 7900 else 7901 # With GCC up to 2.95.x, collect2 would create an import file 7902 # for dependence libraries. The import file would start with 7903 # the line `#! .'. This would cause the generated library to 7904 # depend on `.', always an invalid library. This was fixed in 7905 # development snapshots of GCC prior to 3.0. 7906 case $host_os in 7907 aix4 | aix4.[01] | aix4.[01].*) 7908 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7909 echo ' yes ' 7910 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7911 : 7912 else 7913 can_build_shared=no 7914 fi 7915 ;; 7916 esac 7917 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7918 # soname into executable. Probably we can add versioning support to 7919 # collect2, so additional links can be useful in future. 7920 if test "$aix_use_runtimelinking" = yes; then 7921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7922 # instead of lib<name>.a to let people know that these are not 7923 # typical AIX shared libraries. 7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7925 else 7926 # We preserve .a as extension for shared libraries through AIX4.2 7927 # and later when we are not doing run time linking. 7928 library_names_spec='${libname}${release}.a $libname.a' 7929 soname_spec='${libname}${release}${shared_ext}$major' 7930 fi 7931 shlibpath_var=LIBPATH 7932 fi 7933 ;; 7934 7935amigaos*) 7936 library_names_spec='$libname.ixlibrary $libname.a' 7937 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7938 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' 7939 ;; 7940 7941beos*) 7942 library_names_spec='${libname}${shared_ext}' 7943 dynamic_linker="$host_os ld.so" 7944 shlibpath_var=LIBRARY_PATH 7945 ;; 7946 7947bsdi[45]*) 7948 version_type=linux 7949 need_version=no 7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7951 soname_spec='${libname}${release}${shared_ext}$major' 7952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7953 shlibpath_var=LD_LIBRARY_PATH 7954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7956 # the default ld.so.conf also contains /usr/contrib/lib and 7957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7958 # libtool to hard-code these into programs 7959 ;; 7960 7961cygwin* | mingw* | pw32*) 7962 version_type=windows 7963 shrext_cmds=".dll" 7964 need_version=no 7965 need_lib_prefix=no 7966 7967 case $GCC,$host_os in 7968 yes,cygwin* | yes,mingw* | yes,pw32*) 7969 library_names_spec='$libname.dll.a' 7970 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7971 postinstall_cmds='base_file=`basename \${file}`~ 7972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7973 dldir=$destdir/`dirname \$dlpath`~ 7974 test -d \$dldir || mkdir -p \$dldir~ 7975 $install_prog $dir/$dlname \$dldir/$dlname~ 7976 chmod a+x \$dldir/$dlname' 7977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7978 dlpath=$dir/\$dldll~ 7979 $rm \$dlpath' 7980 shlibpath_overrides_runpath=yes 7981 7982 case $host_os in 7983 cygwin*) 7984 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7986 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7987 ;; 7988 mingw*) 7989 # MinGW DLLs use traditional 'lib' prefix 7990 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7992 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7993 # It is most probably a Windows format PATH printed by 7994 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7995 # path with ; separators, and with drive letters. We can handle the 7996 # drive letters (cygwin fileutils understands them), so leave them, 7997 # especially as we might pass files found there to a mingw objdump, 7998 # which wouldn't understand a cygwinified path. Ahh. 7999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8000 else 8001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8002 fi 8003 ;; 8004 pw32*) 8005 # pw32 DLLs use 'pw' prefix rather than 'lib' 8006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8007 ;; 8008 esac 8009 ;; 8010 8011 *) 8012 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8013 ;; 8014 esac 8015 dynamic_linker='Win32 ld.exe' 8016 # FIXME: first we should search . and the directory the executable is in 8017 shlibpath_var=PATH 8018 ;; 8019 8020darwin* | rhapsody*) 8021 dynamic_linker="$host_os dyld" 8022 version_type=darwin 8023 need_lib_prefix=no 8024 need_version=no 8025 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8026 soname_spec='${libname}${release}${major}$shared_ext' 8027 shlibpath_overrides_runpath=yes 8028 shlibpath_var=DYLD_LIBRARY_PATH 8029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8030 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8031 if test "$GCC" = yes; then 8032 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"` 8033 else 8034 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8035 fi 8036 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8037 ;; 8038 8039dgux*) 8040 version_type=linux 8041 need_lib_prefix=no 8042 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 8046 ;; 8047 8048freebsd1*) 8049 dynamic_linker=no 8050 ;; 8051 8052kfreebsd*-gnu) 8053 version_type=linux 8054 need_lib_prefix=no 8055 need_version=no 8056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8057 soname_spec='${libname}${release}${shared_ext}$major' 8058 shlibpath_var=LD_LIBRARY_PATH 8059 shlibpath_overrides_runpath=no 8060 hardcode_into_libs=yes 8061 dynamic_linker='GNU ld.so' 8062 ;; 8063 8064freebsd* | dragonfly*) 8065 # DragonFly does not have aout. When/if they implement a new 8066 # versioning mechanism, adjust this. 8067 if test -x /usr/bin/objformat; then 8068 objformat=`/usr/bin/objformat` 8069 else 8070 case $host_os in 8071 freebsd[123]*) objformat=aout ;; 8072 *) objformat=elf ;; 8073 esac 8074 fi 8075 version_type=freebsd-$objformat 8076 case $version_type in 8077 freebsd-elf*) 8078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8079 need_version=no 8080 need_lib_prefix=no 8081 ;; 8082 freebsd-*) 8083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8084 need_version=yes 8085 ;; 8086 esac 8087 shlibpath_var=LD_LIBRARY_PATH 8088 case $host_os in 8089 freebsd2*) 8090 shlibpath_overrides_runpath=yes 8091 ;; 8092 freebsd3.[01]* | freebsdelf3.[01]*) 8093 shlibpath_overrides_runpath=yes 8094 hardcode_into_libs=yes 8095 ;; 8096 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8097 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8098 shlibpath_overrides_runpath=no 8099 hardcode_into_libs=yes 8100 ;; 8101 freebsd*) # from 4.6 on 8102 shlibpath_overrides_runpath=yes 8103 hardcode_into_libs=yes 8104 ;; 8105 esac 8106 ;; 8107 8108gnu*) 8109 version_type=linux 8110 need_lib_prefix=no 8111 need_version=no 8112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8113 soname_spec='${libname}${release}${shared_ext}$major' 8114 shlibpath_var=LD_LIBRARY_PATH 8115 hardcode_into_libs=yes 8116 ;; 8117 8118hpux9* | hpux10* | hpux11*) 8119 # Give a soname corresponding to the major version so that dld.sl refuses to 8120 # link against other versions. 8121 version_type=sunos 8122 need_lib_prefix=no 8123 need_version=no 8124 case $host_cpu in 8125 ia64*) 8126 shrext_cmds='.so' 8127 hardcode_into_libs=yes 8128 dynamic_linker="$host_os dld.so" 8129 shlibpath_var=LD_LIBRARY_PATH 8130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8132 soname_spec='${libname}${release}${shared_ext}$major' 8133 if test "X$HPUX_IA64_MODE" = X32; then 8134 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8135 else 8136 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8137 fi 8138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8139 ;; 8140 hppa*64*) 8141 shrext_cmds='.sl' 8142 hardcode_into_libs=yes 8143 dynamic_linker="$host_os dld.sl" 8144 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8147 soname_spec='${libname}${release}${shared_ext}$major' 8148 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8150 ;; 8151 *) 8152 shrext_cmds='.sl' 8153 dynamic_linker="$host_os dld.sl" 8154 shlibpath_var=SHLIB_PATH 8155 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8157 soname_spec='${libname}${release}${shared_ext}$major' 8158 ;; 8159 esac 8160 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8161 postinstall_cmds='chmod 555 $lib' 8162 ;; 8163 8164interix3*) 8165 version_type=linux 8166 need_lib_prefix=no 8167 need_version=no 8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8169 soname_spec='${libname}${release}${shared_ext}$major' 8170 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8171 shlibpath_var=LD_LIBRARY_PATH 8172 shlibpath_overrides_runpath=no 8173 hardcode_into_libs=yes 8174 ;; 8175 8176irix5* | irix6* | nonstopux*) 8177 case $host_os in 8178 nonstopux*) version_type=nonstopux ;; 8179 *) 8180 if test "$lt_cv_prog_gnu_ld" = yes; then 8181 version_type=linux 8182 else 8183 version_type=irix 8184 fi ;; 8185 esac 8186 need_lib_prefix=no 8187 need_version=no 8188 soname_spec='${libname}${release}${shared_ext}$major' 8189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8190 case $host_os in 8191 irix5* | nonstopux*) 8192 libsuff= shlibsuff= 8193 ;; 8194 *) 8195 case $LD in # libtool.m4 will add one of these switches to LD 8196 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8197 libsuff= shlibsuff= libmagic=32-bit;; 8198 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8199 libsuff=32 shlibsuff=N32 libmagic=N32;; 8200 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8201 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8202 *) libsuff= shlibsuff= libmagic=never-match;; 8203 esac 8204 ;; 8205 esac 8206 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8207 shlibpath_overrides_runpath=no 8208 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8209 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8210 hardcode_into_libs=yes 8211 ;; 8212 8213# No shared lib support for Linux oldld, aout, or coff. 8214linux*oldld* | linux*aout* | linux*coff*) 8215 dynamic_linker=no 8216 ;; 8217 8218# This must be Linux ELF. 8219linux*) 8220 version_type=linux 8221 need_lib_prefix=no 8222 need_version=no 8223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8224 soname_spec='${libname}${release}${shared_ext}$major' 8225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8226 shlibpath_var=LD_LIBRARY_PATH 8227 shlibpath_overrides_runpath=no 8228 # This implies no fast_install, which is unacceptable. 8229 # Some rework will be needed to allow for fast_install 8230 # before this can be enabled. 8231 hardcode_into_libs=yes 8232 8233 # find out which ABI we are using 8234 libsuff= 8235 case "$host_cpu" in 8236 x86_64*|s390x*|powerpc64*) 8237 echo '#line 8237 "configure"' > conftest.$ac_ext 8238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8239 (eval $ac_compile) 2>&5 8240 ac_status=$? 8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8242 (exit $ac_status); }; then 8243 case `/usr/bin/file conftest.$ac_objext` in 8244 *64-bit*) 8245 libsuff=64 8246 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8247 ;; 8248 esac 8249 fi 8250 rm -rf conftest* 8251 ;; 8252 esac 8253 8254 # Append ld.so.conf contents to the search path 8255 if test -f /etc/ld.so.conf; then 8256 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8257 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8258 fi 8259 8260 # We used to test for /lib/ld.so.1 and disable shared libraries on 8261 # powerpc, because MkLinux only supported shared libraries with the 8262 # GNU dynamic linker. Since this was broken with cross compilers, 8263 # most powerpc-linux boxes support dynamic linking these days and 8264 # people can always --disable-shared, the test was removed, and we 8265 # assume the GNU/Linux dynamic linker is in use. 8266 dynamic_linker='GNU/Linux ld.so' 8267 ;; 8268 8269knetbsd*-gnu) 8270 version_type=linux 8271 need_lib_prefix=no 8272 need_version=no 8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8274 soname_spec='${libname}${release}${shared_ext}$major' 8275 shlibpath_var=LD_LIBRARY_PATH 8276 shlibpath_overrides_runpath=no 8277 hardcode_into_libs=yes 8278 dynamic_linker='GNU ld.so' 8279 ;; 8280 8281netbsd*) 8282 version_type=sunos 8283 need_lib_prefix=no 8284 need_version=no 8285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8288 dynamic_linker='NetBSD (a.out) ld.so' 8289 else 8290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8291 soname_spec='${libname}${release}${shared_ext}$major' 8292 dynamic_linker='NetBSD ld.elf_so' 8293 fi 8294 shlibpath_var=LD_LIBRARY_PATH 8295 shlibpath_overrides_runpath=yes 8296 hardcode_into_libs=yes 8297 ;; 8298 8299newsos6) 8300 version_type=linux 8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8302 shlibpath_var=LD_LIBRARY_PATH 8303 shlibpath_overrides_runpath=yes 8304 ;; 8305 8306nto-qnx*) 8307 version_type=linux 8308 need_lib_prefix=no 8309 need_version=no 8310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8311 soname_spec='${libname}${release}${shared_ext}$major' 8312 shlibpath_var=LD_LIBRARY_PATH 8313 shlibpath_overrides_runpath=yes 8314 ;; 8315 8316openbsd*) 8317 version_type=sunos 8318 sys_lib_dlsearch_path_spec="/usr/lib" 8319 need_lib_prefix=no 8320 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8321 case $host_os in 8322 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8323 *) need_version=no ;; 8324 esac 8325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8327 shlibpath_var=LD_LIBRARY_PATH 8328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8329 case $host_os in 8330 openbsd2.[89] | openbsd2.[89].*) 8331 shlibpath_overrides_runpath=no 8332 ;; 8333 *) 8334 shlibpath_overrides_runpath=yes 8335 ;; 8336 esac 8337 else 8338 shlibpath_overrides_runpath=yes 8339 fi 8340 ;; 8341 8342os2*) 8343 libname_spec='$name' 8344 shrext_cmds=".dll" 8345 need_lib_prefix=no 8346 library_names_spec='$libname${shared_ext} $libname.a' 8347 dynamic_linker='OS/2 ld.exe' 8348 shlibpath_var=LIBPATH 8349 ;; 8350 8351osf3* | osf4* | osf5*) 8352 version_type=osf 8353 need_lib_prefix=no 8354 need_version=no 8355 soname_spec='${libname}${release}${shared_ext}$major' 8356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8357 shlibpath_var=LD_LIBRARY_PATH 8358 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8359 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8360 ;; 8361 8362solaris*) 8363 version_type=linux 8364 need_lib_prefix=no 8365 need_version=no 8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8367 soname_spec='${libname}${release}${shared_ext}$major' 8368 shlibpath_var=LD_LIBRARY_PATH 8369 shlibpath_overrides_runpath=yes 8370 hardcode_into_libs=yes 8371 # ldd complains unless libraries are executable 8372 postinstall_cmds='chmod +x $lib' 8373 ;; 8374 8375sunos4*) 8376 version_type=sunos 8377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8379 shlibpath_var=LD_LIBRARY_PATH 8380 shlibpath_overrides_runpath=yes 8381 if test "$with_gnu_ld" = yes; then 8382 need_lib_prefix=no 8383 fi 8384 need_version=yes 8385 ;; 8386 8387sysv4 | sysv4.3*) 8388 version_type=linux 8389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8390 soname_spec='${libname}${release}${shared_ext}$major' 8391 shlibpath_var=LD_LIBRARY_PATH 8392 case $host_vendor in 8393 sni) 8394 shlibpath_overrides_runpath=no 8395 need_lib_prefix=no 8396 export_dynamic_flag_spec='${wl}-Blargedynsym' 8397 runpath_var=LD_RUN_PATH 8398 ;; 8399 siemens) 8400 need_lib_prefix=no 8401 ;; 8402 motorola) 8403 need_lib_prefix=no 8404 need_version=no 8405 shlibpath_overrides_runpath=no 8406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8407 ;; 8408 esac 8409 ;; 8410 8411sysv4*MP*) 8412 if test -d /usr/nec ;then 8413 version_type=linux 8414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8415 soname_spec='$libname${shared_ext}.$major' 8416 shlibpath_var=LD_LIBRARY_PATH 8417 fi 8418 ;; 8419 8420sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8421 version_type=freebsd-elf 8422 need_lib_prefix=no 8423 need_version=no 8424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8425 soname_spec='${libname}${release}${shared_ext}$major' 8426 shlibpath_var=LD_LIBRARY_PATH 8427 hardcode_into_libs=yes 8428 if test "$with_gnu_ld" = yes; then 8429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8430 shlibpath_overrides_runpath=no 8431 else 8432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8433 shlibpath_overrides_runpath=yes 8434 case $host_os in 8435 sco3.2v5*) 8436 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8437 ;; 8438 esac 8439 fi 8440 sys_lib_dlsearch_path_spec='/usr/lib' 8441 ;; 8442 8443uts4*) 8444 version_type=linux 8445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8446 soname_spec='${libname}${release}${shared_ext}$major' 8447 shlibpath_var=LD_LIBRARY_PATH 8448 ;; 8449 8450*) 8451 dynamic_linker=no 8452 ;; 8453esac 8454echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8455echo "${ECHO_T}$dynamic_linker" >&6 8456test "$dynamic_linker" = no && can_build_shared=no 8457 8458variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8459if test "$GCC" = yes; then 8460 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8461fi 8462 8463echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8464echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8465hardcode_action= 8466if test -n "$hardcode_libdir_flag_spec" || \ 8467 test -n "$runpath_var" || \ 8468 test "X$hardcode_automatic" = "Xyes" ; then 8469 8470 # We can hardcode non-existant directories. 8471 if test "$hardcode_direct" != no && 8472 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8473 # have to relink, otherwise we might link with an installed library 8474 # when we should be linking with a yet-to-be-installed one 8475 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8476 test "$hardcode_minus_L" != no; then 8477 # Linking always hardcodes the temporary library directory. 8478 hardcode_action=relink 8479 else 8480 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8481 hardcode_action=immediate 8482 fi 8483else 8484 # We cannot hardcode anything, or else we can only hardcode existing 8485 # directories. 8486 hardcode_action=unsupported 8487fi 8488echo "$as_me:$LINENO: result: $hardcode_action" >&5 8489echo "${ECHO_T}$hardcode_action" >&6 8490 8491if test "$hardcode_action" = relink; then 8492 # Fast installation is not supported 8493 enable_fast_install=no 8494elif test "$shlibpath_overrides_runpath" = yes || 8495 test "$enable_shared" = no; then 8496 # Fast installation is not necessary 8497 enable_fast_install=needless 8498fi 8499 8500striplib= 8501old_striplib= 8502echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8503echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8504if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8506 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8507 echo "$as_me:$LINENO: result: yes" >&5 8508echo "${ECHO_T}yes" >&6 8509else 8510# FIXME - insert some real tests, host_os isn't really good enough 8511 case $host_os in 8512 darwin*) 8513 if test -n "$STRIP" ; then 8514 striplib="$STRIP -x" 8515 echo "$as_me:$LINENO: result: yes" >&5 8516echo "${ECHO_T}yes" >&6 8517 else 8518 echo "$as_me:$LINENO: result: no" >&5 8519echo "${ECHO_T}no" >&6 8520fi 8521 ;; 8522 *) 8523 echo "$as_me:$LINENO: result: no" >&5 8524echo "${ECHO_T}no" >&6 8525 ;; 8526 esac 8527fi 8528 8529if test "x$enable_dlopen" != xyes; then 8530 enable_dlopen=unknown 8531 enable_dlopen_self=unknown 8532 enable_dlopen_self_static=unknown 8533else 8534 lt_cv_dlopen=no 8535 lt_cv_dlopen_libs= 8536 8537 case $host_os in 8538 beos*) 8539 lt_cv_dlopen="load_add_on" 8540 lt_cv_dlopen_libs= 8541 lt_cv_dlopen_self=yes 8542 ;; 8543 8544 mingw* | pw32*) 8545 lt_cv_dlopen="LoadLibrary" 8546 lt_cv_dlopen_libs= 8547 ;; 8548 8549 cygwin*) 8550 lt_cv_dlopen="dlopen" 8551 lt_cv_dlopen_libs= 8552 ;; 8553 8554 darwin*) 8555 # if libdl is installed we need to link against it 8556 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8557echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8558if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8559 echo $ECHO_N "(cached) $ECHO_C" >&6 8560else 8561 ac_check_lib_save_LIBS=$LIBS 8562LIBS="-ldl $LIBS" 8563cat >conftest.$ac_ext <<_ACEOF 8564/* confdefs.h. */ 8565_ACEOF 8566cat confdefs.h >>conftest.$ac_ext 8567cat >>conftest.$ac_ext <<_ACEOF 8568/* end confdefs.h. */ 8569 8570/* Override any gcc2 internal prototype to avoid an error. */ 8571#ifdef __cplusplus 8572extern "C" 8573#endif 8574/* We use char because int might match the return type of a gcc2 8575 builtin and then its argument prototype would still apply. */ 8576char dlopen (); 8577int 8578main () 8579{ 8580dlopen (); 8581 ; 8582 return 0; 8583} 8584_ACEOF 8585rm -f conftest.$ac_objext conftest$ac_exeext 8586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8587 (eval $ac_link) 2>conftest.er1 8588 ac_status=$? 8589 grep -v '^ *+' conftest.er1 >conftest.err 8590 rm -f conftest.er1 8591 cat conftest.err >&5 8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8593 (exit $ac_status); } && 8594 { ac_try='test -z "$ac_c_werror_flag" 8595 || test ! -s conftest.err' 8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8597 (eval $ac_try) 2>&5 8598 ac_status=$? 8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 (exit $ac_status); }; } && 8601 { ac_try='test -s conftest$ac_exeext' 8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8603 (eval $ac_try) 2>&5 8604 ac_status=$? 8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8606 (exit $ac_status); }; }; then 8607 ac_cv_lib_dl_dlopen=yes 8608else 8609 echo "$as_me: failed program was:" >&5 8610sed 's/^/| /' conftest.$ac_ext >&5 8611 8612ac_cv_lib_dl_dlopen=no 8613fi 8614rm -f conftest.err conftest.$ac_objext \ 8615 conftest$ac_exeext conftest.$ac_ext 8616LIBS=$ac_check_lib_save_LIBS 8617fi 8618echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8619echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8620if test $ac_cv_lib_dl_dlopen = yes; then 8621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8622else 8623 8624 lt_cv_dlopen="dyld" 8625 lt_cv_dlopen_libs= 8626 lt_cv_dlopen_self=yes 8627 8628fi 8629 8630 ;; 8631 8632 *) 8633 echo "$as_me:$LINENO: checking for shl_load" >&5 8634echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8635if test "${ac_cv_func_shl_load+set}" = set; then 8636 echo $ECHO_N "(cached) $ECHO_C" >&6 8637else 8638 cat >conftest.$ac_ext <<_ACEOF 8639/* confdefs.h. */ 8640_ACEOF 8641cat confdefs.h >>conftest.$ac_ext 8642cat >>conftest.$ac_ext <<_ACEOF 8643/* end confdefs.h. */ 8644/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8645 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8646#define shl_load innocuous_shl_load 8647 8648/* System header to define __stub macros and hopefully few prototypes, 8649 which can conflict with char shl_load (); below. 8650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8651 <limits.h> exists even on freestanding compilers. */ 8652 8653#ifdef __STDC__ 8654# include <limits.h> 8655#else 8656# include <assert.h> 8657#endif 8658 8659#undef shl_load 8660 8661/* Override any gcc2 internal prototype to avoid an error. */ 8662#ifdef __cplusplus 8663extern "C" 8664{ 8665#endif 8666/* We use char because int might match the return type of a gcc2 8667 builtin and then its argument prototype would still apply. */ 8668char shl_load (); 8669/* The GNU C library defines this for functions which it implements 8670 to always fail with ENOSYS. Some functions are actually named 8671 something starting with __ and the normal name is an alias. */ 8672#if defined (__stub_shl_load) || defined (__stub___shl_load) 8673choke me 8674#else 8675char (*f) () = shl_load; 8676#endif 8677#ifdef __cplusplus 8678} 8679#endif 8680 8681int 8682main () 8683{ 8684return f != shl_load; 8685 ; 8686 return 0; 8687} 8688_ACEOF 8689rm -f conftest.$ac_objext conftest$ac_exeext 8690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8691 (eval $ac_link) 2>conftest.er1 8692 ac_status=$? 8693 grep -v '^ *+' conftest.er1 >conftest.err 8694 rm -f conftest.er1 8695 cat conftest.err >&5 8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8697 (exit $ac_status); } && 8698 { ac_try='test -z "$ac_c_werror_flag" 8699 || test ! -s conftest.err' 8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8701 (eval $ac_try) 2>&5 8702 ac_status=$? 8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 (exit $ac_status); }; } && 8705 { ac_try='test -s conftest$ac_exeext' 8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8707 (eval $ac_try) 2>&5 8708 ac_status=$? 8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8710 (exit $ac_status); }; }; then 8711 ac_cv_func_shl_load=yes 8712else 8713 echo "$as_me: failed program was:" >&5 8714sed 's/^/| /' conftest.$ac_ext >&5 8715 8716ac_cv_func_shl_load=no 8717fi 8718rm -f conftest.err conftest.$ac_objext \ 8719 conftest$ac_exeext conftest.$ac_ext 8720fi 8721echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8722echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8723if test $ac_cv_func_shl_load = yes; then 8724 lt_cv_dlopen="shl_load" 8725else 8726 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8727echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8728if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8729 echo $ECHO_N "(cached) $ECHO_C" >&6 8730else 8731 ac_check_lib_save_LIBS=$LIBS 8732LIBS="-ldld $LIBS" 8733cat >conftest.$ac_ext <<_ACEOF 8734/* confdefs.h. */ 8735_ACEOF 8736cat confdefs.h >>conftest.$ac_ext 8737cat >>conftest.$ac_ext <<_ACEOF 8738/* end confdefs.h. */ 8739 8740/* Override any gcc2 internal prototype to avoid an error. */ 8741#ifdef __cplusplus 8742extern "C" 8743#endif 8744/* We use char because int might match the return type of a gcc2 8745 builtin and then its argument prototype would still apply. */ 8746char shl_load (); 8747int 8748main () 8749{ 8750shl_load (); 8751 ; 8752 return 0; 8753} 8754_ACEOF 8755rm -f conftest.$ac_objext conftest$ac_exeext 8756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8757 (eval $ac_link) 2>conftest.er1 8758 ac_status=$? 8759 grep -v '^ *+' conftest.er1 >conftest.err 8760 rm -f conftest.er1 8761 cat conftest.err >&5 8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8763 (exit $ac_status); } && 8764 { ac_try='test -z "$ac_c_werror_flag" 8765 || test ! -s conftest.err' 8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8767 (eval $ac_try) 2>&5 8768 ac_status=$? 8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8770 (exit $ac_status); }; } && 8771 { ac_try='test -s conftest$ac_exeext' 8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8773 (eval $ac_try) 2>&5 8774 ac_status=$? 8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8776 (exit $ac_status); }; }; then 8777 ac_cv_lib_dld_shl_load=yes 8778else 8779 echo "$as_me: failed program was:" >&5 8780sed 's/^/| /' conftest.$ac_ext >&5 8781 8782ac_cv_lib_dld_shl_load=no 8783fi 8784rm -f conftest.err conftest.$ac_objext \ 8785 conftest$ac_exeext conftest.$ac_ext 8786LIBS=$ac_check_lib_save_LIBS 8787fi 8788echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8789echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8790if test $ac_cv_lib_dld_shl_load = yes; then 8791 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8792else 8793 echo "$as_me:$LINENO: checking for dlopen" >&5 8794echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8795if test "${ac_cv_func_dlopen+set}" = set; then 8796 echo $ECHO_N "(cached) $ECHO_C" >&6 8797else 8798 cat >conftest.$ac_ext <<_ACEOF 8799/* confdefs.h. */ 8800_ACEOF 8801cat confdefs.h >>conftest.$ac_ext 8802cat >>conftest.$ac_ext <<_ACEOF 8803/* end confdefs.h. */ 8804/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8805 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8806#define dlopen innocuous_dlopen 8807 8808/* System header to define __stub macros and hopefully few prototypes, 8809 which can conflict with char dlopen (); below. 8810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8811 <limits.h> exists even on freestanding compilers. */ 8812 8813#ifdef __STDC__ 8814# include <limits.h> 8815#else 8816# include <assert.h> 8817#endif 8818 8819#undef dlopen 8820 8821/* Override any gcc2 internal prototype to avoid an error. */ 8822#ifdef __cplusplus 8823extern "C" 8824{ 8825#endif 8826/* We use char because int might match the return type of a gcc2 8827 builtin and then its argument prototype would still apply. */ 8828char dlopen (); 8829/* The GNU C library defines this for functions which it implements 8830 to always fail with ENOSYS. Some functions are actually named 8831 something starting with __ and the normal name is an alias. */ 8832#if defined (__stub_dlopen) || defined (__stub___dlopen) 8833choke me 8834#else 8835char (*f) () = dlopen; 8836#endif 8837#ifdef __cplusplus 8838} 8839#endif 8840 8841int 8842main () 8843{ 8844return f != dlopen; 8845 ; 8846 return 0; 8847} 8848_ACEOF 8849rm -f conftest.$ac_objext conftest$ac_exeext 8850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8851 (eval $ac_link) 2>conftest.er1 8852 ac_status=$? 8853 grep -v '^ *+' conftest.er1 >conftest.err 8854 rm -f conftest.er1 8855 cat conftest.err >&5 8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); } && 8858 { ac_try='test -z "$ac_c_werror_flag" 8859 || test ! -s conftest.err' 8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8861 (eval $ac_try) 2>&5 8862 ac_status=$? 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); }; } && 8865 { ac_try='test -s conftest$ac_exeext' 8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8867 (eval $ac_try) 2>&5 8868 ac_status=$? 8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8870 (exit $ac_status); }; }; then 8871 ac_cv_func_dlopen=yes 8872else 8873 echo "$as_me: failed program was:" >&5 8874sed 's/^/| /' conftest.$ac_ext >&5 8875 8876ac_cv_func_dlopen=no 8877fi 8878rm -f conftest.err conftest.$ac_objext \ 8879 conftest$ac_exeext conftest.$ac_ext 8880fi 8881echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8882echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8883if test $ac_cv_func_dlopen = yes; then 8884 lt_cv_dlopen="dlopen" 8885else 8886 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8887echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8888if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8889 echo $ECHO_N "(cached) $ECHO_C" >&6 8890else 8891 ac_check_lib_save_LIBS=$LIBS 8892LIBS="-ldl $LIBS" 8893cat >conftest.$ac_ext <<_ACEOF 8894/* confdefs.h. */ 8895_ACEOF 8896cat confdefs.h >>conftest.$ac_ext 8897cat >>conftest.$ac_ext <<_ACEOF 8898/* end confdefs.h. */ 8899 8900/* Override any gcc2 internal prototype to avoid an error. */ 8901#ifdef __cplusplus 8902extern "C" 8903#endif 8904/* We use char because int might match the return type of a gcc2 8905 builtin and then its argument prototype would still apply. */ 8906char dlopen (); 8907int 8908main () 8909{ 8910dlopen (); 8911 ; 8912 return 0; 8913} 8914_ACEOF 8915rm -f conftest.$ac_objext conftest$ac_exeext 8916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8917 (eval $ac_link) 2>conftest.er1 8918 ac_status=$? 8919 grep -v '^ *+' conftest.er1 >conftest.err 8920 rm -f conftest.er1 8921 cat conftest.err >&5 8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8923 (exit $ac_status); } && 8924 { ac_try='test -z "$ac_c_werror_flag" 8925 || test ! -s conftest.err' 8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8927 (eval $ac_try) 2>&5 8928 ac_status=$? 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 (exit $ac_status); }; } && 8931 { ac_try='test -s conftest$ac_exeext' 8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8933 (eval $ac_try) 2>&5 8934 ac_status=$? 8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8936 (exit $ac_status); }; }; then 8937 ac_cv_lib_dl_dlopen=yes 8938else 8939 echo "$as_me: failed program was:" >&5 8940sed 's/^/| /' conftest.$ac_ext >&5 8941 8942ac_cv_lib_dl_dlopen=no 8943fi 8944rm -f conftest.err conftest.$ac_objext \ 8945 conftest$ac_exeext conftest.$ac_ext 8946LIBS=$ac_check_lib_save_LIBS 8947fi 8948echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8949echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8950if test $ac_cv_lib_dl_dlopen = yes; then 8951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8952else 8953 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8954echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8955if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8956 echo $ECHO_N "(cached) $ECHO_C" >&6 8957else 8958 ac_check_lib_save_LIBS=$LIBS 8959LIBS="-lsvld $LIBS" 8960cat >conftest.$ac_ext <<_ACEOF 8961/* confdefs.h. */ 8962_ACEOF 8963cat confdefs.h >>conftest.$ac_ext 8964cat >>conftest.$ac_ext <<_ACEOF 8965/* end confdefs.h. */ 8966 8967/* Override any gcc2 internal prototype to avoid an error. */ 8968#ifdef __cplusplus 8969extern "C" 8970#endif 8971/* We use char because int might match the return type of a gcc2 8972 builtin and then its argument prototype would still apply. */ 8973char dlopen (); 8974int 8975main () 8976{ 8977dlopen (); 8978 ; 8979 return 0; 8980} 8981_ACEOF 8982rm -f conftest.$ac_objext conftest$ac_exeext 8983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8984 (eval $ac_link) 2>conftest.er1 8985 ac_status=$? 8986 grep -v '^ *+' conftest.er1 >conftest.err 8987 rm -f conftest.er1 8988 cat conftest.err >&5 8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8990 (exit $ac_status); } && 8991 { ac_try='test -z "$ac_c_werror_flag" 8992 || test ! -s conftest.err' 8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8994 (eval $ac_try) 2>&5 8995 ac_status=$? 8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8997 (exit $ac_status); }; } && 8998 { ac_try='test -s conftest$ac_exeext' 8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9000 (eval $ac_try) 2>&5 9001 ac_status=$? 9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 (exit $ac_status); }; }; then 9004 ac_cv_lib_svld_dlopen=yes 9005else 9006 echo "$as_me: failed program was:" >&5 9007sed 's/^/| /' conftest.$ac_ext >&5 9008 9009ac_cv_lib_svld_dlopen=no 9010fi 9011rm -f conftest.err conftest.$ac_objext \ 9012 conftest$ac_exeext conftest.$ac_ext 9013LIBS=$ac_check_lib_save_LIBS 9014fi 9015echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9016echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9017if test $ac_cv_lib_svld_dlopen = yes; then 9018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9019else 9020 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9021echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9022if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9023 echo $ECHO_N "(cached) $ECHO_C" >&6 9024else 9025 ac_check_lib_save_LIBS=$LIBS 9026LIBS="-ldld $LIBS" 9027cat >conftest.$ac_ext <<_ACEOF 9028/* confdefs.h. */ 9029_ACEOF 9030cat confdefs.h >>conftest.$ac_ext 9031cat >>conftest.$ac_ext <<_ACEOF 9032/* end confdefs.h. */ 9033 9034/* Override any gcc2 internal prototype to avoid an error. */ 9035#ifdef __cplusplus 9036extern "C" 9037#endif 9038/* We use char because int might match the return type of a gcc2 9039 builtin and then its argument prototype would still apply. */ 9040char dld_link (); 9041int 9042main () 9043{ 9044dld_link (); 9045 ; 9046 return 0; 9047} 9048_ACEOF 9049rm -f conftest.$ac_objext conftest$ac_exeext 9050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9051 (eval $ac_link) 2>conftest.er1 9052 ac_status=$? 9053 grep -v '^ *+' conftest.er1 >conftest.err 9054 rm -f conftest.er1 9055 cat conftest.err >&5 9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9057 (exit $ac_status); } && 9058 { ac_try='test -z "$ac_c_werror_flag" 9059 || test ! -s conftest.err' 9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9061 (eval $ac_try) 2>&5 9062 ac_status=$? 9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9064 (exit $ac_status); }; } && 9065 { ac_try='test -s conftest$ac_exeext' 9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9067 (eval $ac_try) 2>&5 9068 ac_status=$? 9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9070 (exit $ac_status); }; }; then 9071 ac_cv_lib_dld_dld_link=yes 9072else 9073 echo "$as_me: failed program was:" >&5 9074sed 's/^/| /' conftest.$ac_ext >&5 9075 9076ac_cv_lib_dld_dld_link=no 9077fi 9078rm -f conftest.err conftest.$ac_objext \ 9079 conftest$ac_exeext conftest.$ac_ext 9080LIBS=$ac_check_lib_save_LIBS 9081fi 9082echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9083echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9084if test $ac_cv_lib_dld_dld_link = yes; then 9085 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9086fi 9087 9088 9089fi 9090 9091 9092fi 9093 9094 9095fi 9096 9097 9098fi 9099 9100 9101fi 9102 9103 ;; 9104 esac 9105 9106 if test "x$lt_cv_dlopen" != xno; then 9107 enable_dlopen=yes 9108 else 9109 enable_dlopen=no 9110 fi 9111 9112 case $lt_cv_dlopen in 9113 dlopen) 9114 save_CPPFLAGS="$CPPFLAGS" 9115 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9116 9117 save_LDFLAGS="$LDFLAGS" 9118 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9119 9120 save_LIBS="$LIBS" 9121 LIBS="$lt_cv_dlopen_libs $LIBS" 9122 9123 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9124echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9125if test "${lt_cv_dlopen_self+set}" = set; then 9126 echo $ECHO_N "(cached) $ECHO_C" >&6 9127else 9128 if test "$cross_compiling" = yes; then : 9129 lt_cv_dlopen_self=cross 9130else 9131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9132 lt_status=$lt_dlunknown 9133 cat > conftest.$ac_ext <<EOF 9134#line 9134 "configure" 9135#include "confdefs.h" 9136 9137#if HAVE_DLFCN_H 9138#include <dlfcn.h> 9139#endif 9140 9141#include <stdio.h> 9142 9143#ifdef RTLD_GLOBAL 9144# define LT_DLGLOBAL RTLD_GLOBAL 9145#else 9146# ifdef DL_GLOBAL 9147# define LT_DLGLOBAL DL_GLOBAL 9148# else 9149# define LT_DLGLOBAL 0 9150# endif 9151#endif 9152 9153/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9154 find out it does not work in some platform. */ 9155#ifndef LT_DLLAZY_OR_NOW 9156# ifdef RTLD_LAZY 9157# define LT_DLLAZY_OR_NOW RTLD_LAZY 9158# else 9159# ifdef DL_LAZY 9160# define LT_DLLAZY_OR_NOW DL_LAZY 9161# else 9162# ifdef RTLD_NOW 9163# define LT_DLLAZY_OR_NOW RTLD_NOW 9164# else 9165# ifdef DL_NOW 9166# define LT_DLLAZY_OR_NOW DL_NOW 9167# else 9168# define LT_DLLAZY_OR_NOW 0 9169# endif 9170# endif 9171# endif 9172# endif 9173#endif 9174 9175#ifdef __cplusplus 9176extern "C" void exit (int); 9177#endif 9178 9179void fnord() { int i=42;} 9180int main () 9181{ 9182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9183 int status = $lt_dlunknown; 9184 9185 if (self) 9186 { 9187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9188 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9189 /* dlclose (self); */ 9190 } 9191 else 9192 puts (dlerror ()); 9193 9194 exit (status); 9195} 9196EOF 9197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9198 (eval $ac_link) 2>&5 9199 ac_status=$? 9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9201 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9202 (./conftest; exit; ) >&5 2>/dev/null 9203 lt_status=$? 9204 case x$lt_status in 9205 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9206 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9207 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9208 esac 9209 else : 9210 # compilation failed 9211 lt_cv_dlopen_self=no 9212 fi 9213fi 9214rm -fr conftest* 9215 9216 9217fi 9218echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9219echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9220 9221 if test "x$lt_cv_dlopen_self" = xyes; then 9222 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9223 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9224echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9225if test "${lt_cv_dlopen_self_static+set}" = set; then 9226 echo $ECHO_N "(cached) $ECHO_C" >&6 9227else 9228 if test "$cross_compiling" = yes; then : 9229 lt_cv_dlopen_self_static=cross 9230else 9231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9232 lt_status=$lt_dlunknown 9233 cat > conftest.$ac_ext <<EOF 9234#line 9234 "configure" 9235#include "confdefs.h" 9236 9237#if HAVE_DLFCN_H 9238#include <dlfcn.h> 9239#endif 9240 9241#include <stdio.h> 9242 9243#ifdef RTLD_GLOBAL 9244# define LT_DLGLOBAL RTLD_GLOBAL 9245#else 9246# ifdef DL_GLOBAL 9247# define LT_DLGLOBAL DL_GLOBAL 9248# else 9249# define LT_DLGLOBAL 0 9250# endif 9251#endif 9252 9253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9254 find out it does not work in some platform. */ 9255#ifndef LT_DLLAZY_OR_NOW 9256# ifdef RTLD_LAZY 9257# define LT_DLLAZY_OR_NOW RTLD_LAZY 9258# else 9259# ifdef DL_LAZY 9260# define LT_DLLAZY_OR_NOW DL_LAZY 9261# else 9262# ifdef RTLD_NOW 9263# define LT_DLLAZY_OR_NOW RTLD_NOW 9264# else 9265# ifdef DL_NOW 9266# define LT_DLLAZY_OR_NOW DL_NOW 9267# else 9268# define LT_DLLAZY_OR_NOW 0 9269# endif 9270# endif 9271# endif 9272# endif 9273#endif 9274 9275#ifdef __cplusplus 9276extern "C" void exit (int); 9277#endif 9278 9279void fnord() { int i=42;} 9280int main () 9281{ 9282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9283 int status = $lt_dlunknown; 9284 9285 if (self) 9286 { 9287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9288 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9289 /* dlclose (self); */ 9290 } 9291 else 9292 puts (dlerror ()); 9293 9294 exit (status); 9295} 9296EOF 9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9298 (eval $ac_link) 2>&5 9299 ac_status=$? 9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9301 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9302 (./conftest; exit; ) >&5 2>/dev/null 9303 lt_status=$? 9304 case x$lt_status in 9305 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9306 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9307 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9308 esac 9309 else : 9310 # compilation failed 9311 lt_cv_dlopen_self_static=no 9312 fi 9313fi 9314rm -fr conftest* 9315 9316 9317fi 9318echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9319echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9320 fi 9321 9322 CPPFLAGS="$save_CPPFLAGS" 9323 LDFLAGS="$save_LDFLAGS" 9324 LIBS="$save_LIBS" 9325 ;; 9326 esac 9327 9328 case $lt_cv_dlopen_self in 9329 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9330 *) enable_dlopen_self=unknown ;; 9331 esac 9332 9333 case $lt_cv_dlopen_self_static in 9334 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9335 *) enable_dlopen_self_static=unknown ;; 9336 esac 9337fi 9338 9339 9340# Report which library types will actually be built 9341echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9342echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9343echo "$as_me:$LINENO: result: $can_build_shared" >&5 9344echo "${ECHO_T}$can_build_shared" >&6 9345 9346echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9347echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9348test "$can_build_shared" = "no" && enable_shared=no 9349 9350# On AIX, shared libraries and static libraries use the same namespace, and 9351# are all built from PIC. 9352case $host_os in 9353aix3*) 9354 test "$enable_shared" = yes && enable_static=no 9355 if test -n "$RANLIB"; then 9356 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9357 postinstall_cmds='$RANLIB $lib' 9358 fi 9359 ;; 9360 9361aix4* | aix5*) 9362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9363 test "$enable_shared" = yes && enable_static=no 9364 fi 9365 ;; 9366esac 9367echo "$as_me:$LINENO: result: $enable_shared" >&5 9368echo "${ECHO_T}$enable_shared" >&6 9369 9370echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9371echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9372# Make sure either enable_shared or enable_static is yes. 9373test "$enable_shared" = yes || enable_static=yes 9374echo "$as_me:$LINENO: result: $enable_static" >&5 9375echo "${ECHO_T}$enable_static" >&6 9376 9377# The else clause should only fire when bootstrapping the 9378# libtool distribution, otherwise you forgot to ship ltmain.sh 9379# with your package, and you will get complaints that there are 9380# no rules to generate ltmain.sh. 9381if test -f "$ltmain"; then 9382 # See if we are running on zsh, and set the options which allow our commands through 9383 # without removal of \ escapes. 9384 if test -n "${ZSH_VERSION+set}" ; then 9385 setopt NO_GLOB_SUBST 9386 fi 9387 # Now quote all the things that may contain metacharacters while being 9388 # careful not to overquote the AC_SUBSTed values. We take copies of the 9389 # variables and quote the copies for generation of the libtool script. 9390 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 9391 SED SHELL STRIP \ 9392 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9393 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9394 deplibs_check_method reload_flag reload_cmds need_locks \ 9395 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9396 lt_cv_sys_global_symbol_to_c_name_address \ 9397 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9398 old_postinstall_cmds old_postuninstall_cmds \ 9399 compiler \ 9400 CC \ 9401 LD \ 9402 lt_prog_compiler_wl \ 9403 lt_prog_compiler_pic \ 9404 lt_prog_compiler_static \ 9405 lt_prog_compiler_no_builtin_flag \ 9406 export_dynamic_flag_spec \ 9407 thread_safe_flag_spec \ 9408 whole_archive_flag_spec \ 9409 enable_shared_with_static_runtimes \ 9410 old_archive_cmds \ 9411 old_archive_from_new_cmds \ 9412 predep_objects \ 9413 postdep_objects \ 9414 predeps \ 9415 postdeps \ 9416 compiler_lib_search_path \ 9417 archive_cmds \ 9418 archive_expsym_cmds \ 9419 postinstall_cmds \ 9420 postuninstall_cmds \ 9421 old_archive_from_expsyms_cmds \ 9422 allow_undefined_flag \ 9423 no_undefined_flag \ 9424 export_symbols_cmds \ 9425 hardcode_libdir_flag_spec \ 9426 hardcode_libdir_flag_spec_ld \ 9427 hardcode_libdir_separator \ 9428 hardcode_automatic \ 9429 module_cmds \ 9430 module_expsym_cmds \ 9431 lt_cv_prog_compiler_c_o \ 9432 exclude_expsyms \ 9433 include_expsyms; do 9434 9435 case $var in 9436 old_archive_cmds | \ 9437 old_archive_from_new_cmds | \ 9438 archive_cmds | \ 9439 archive_expsym_cmds | \ 9440 module_cmds | \ 9441 module_expsym_cmds | \ 9442 old_archive_from_expsyms_cmds | \ 9443 export_symbols_cmds | \ 9444 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9445 postinstall_cmds | postuninstall_cmds | \ 9446 old_postinstall_cmds | old_postuninstall_cmds | \ 9447 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9448 # Double-quote double-evaled strings. 9449 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9450 ;; 9451 *) 9452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9453 ;; 9454 esac 9455 done 9456 9457 case $lt_echo in 9458 *'\$0 --fallback-echo"') 9459 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9460 ;; 9461 esac 9462 9463cfgfile="${ofile}T" 9464 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9465 $rm -f "$cfgfile" 9466 { echo "$as_me:$LINENO: creating $ofile" >&5 9467echo "$as_me: creating $ofile" >&6;} 9468 9469 cat <<__EOF__ >> "$cfgfile" 9470#! $SHELL 9471 9472# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9473# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9474# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9475# 9476# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9477# Free Software Foundation, Inc. 9478# 9479# This file is part of GNU Libtool: 9480# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9481# 9482# This program is free software; you can redistribute it and/or modify 9483# it under the terms of the GNU General Public License as published by 9484# the Free Software Foundation; either version 2 of the License, or 9485# (at your option) any later version. 9486# 9487# This program is distributed in the hope that it will be useful, but 9488# WITHOUT ANY WARRANTY; without even the implied warranty of 9489# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9490# General Public License for more details. 9491# 9492# You should have received a copy of the GNU General Public License 9493# along with this program; if not, write to the Free Software 9494# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9495# 9496# As a special exception to the GNU General Public License, if you 9497# distribute this file as part of a program that contains a 9498# configuration script generated by Autoconf, you may include it under 9499# the same distribution terms that you use for the rest of that program. 9500 9501# A sed program that does not truncate output. 9502SED=$lt_SED 9503 9504# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9505Xsed="$SED -e 1s/^X//" 9506 9507# The HP-UX ksh and POSIX shell print the target directory to stdout 9508# if CDPATH is set. 9509(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9510 9511# The names of the tagged configurations supported by this script. 9512available_tags= 9513 9514# ### BEGIN LIBTOOL CONFIG 9515 9516# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9517 9518# Shell to use when invoking shell scripts. 9519SHELL=$lt_SHELL 9520 9521# Whether or not to build shared libraries. 9522build_libtool_libs=$enable_shared 9523 9524# Whether or not to build static libraries. 9525build_old_libs=$enable_static 9526 9527# Whether or not to add -lc for building shared libraries. 9528build_libtool_need_lc=$archive_cmds_need_lc 9529 9530# Whether or not to disallow shared libs when runtime libs are static 9531allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9532 9533# Whether or not to optimize for fast installation. 9534fast_install=$enable_fast_install 9535 9536# The host system. 9537host_alias=$host_alias 9538host=$host 9539host_os=$host_os 9540 9541# The build system. 9542build_alias=$build_alias 9543build=$build 9544build_os=$build_os 9545 9546# An echo program that does not interpret backslashes. 9547echo=$lt_echo 9548 9549# The archiver. 9550AR=$lt_AR 9551AR_FLAGS=$lt_AR_FLAGS 9552 9553# A C compiler. 9554LTCC=$lt_LTCC 9555 9556# LTCC compiler flags. 9557LTCFLAGS=$lt_LTCFLAGS 9558 9559# A language-specific compiler. 9560CC=$lt_compiler 9561 9562# Is the compiler the GNU C compiler? 9563with_gcc=$GCC 9564 9565gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 9566gcc_ver=\`gcc -dumpversion\` 9567 9568# An ERE matcher. 9569EGREP=$lt_EGREP 9570 9571# The linker used to build libraries. 9572LD=$lt_LD 9573 9574# Whether we need hard or soft links. 9575LN_S=$lt_LN_S 9576 9577# A BSD-compatible nm program. 9578NM=$lt_NM 9579 9580# A symbol stripping program 9581STRIP=$lt_STRIP 9582 9583# Used to examine libraries when file_magic_cmd begins "file" 9584MAGIC_CMD=$MAGIC_CMD 9585 9586# Used on cygwin: DLL creation program. 9587DLLTOOL="$DLLTOOL" 9588 9589# Used on cygwin: object dumper. 9590OBJDUMP="$OBJDUMP" 9591 9592# Used on cygwin: assembler. 9593AS="$AS" 9594 9595# The name of the directory that contains temporary libtool files. 9596objdir=$objdir 9597 9598# How to create reloadable object files. 9599reload_flag=$lt_reload_flag 9600reload_cmds=$lt_reload_cmds 9601 9602# How to pass a linker flag through the compiler. 9603wl=$lt_lt_prog_compiler_wl 9604 9605# Object file suffix (normally "o"). 9606objext="$ac_objext" 9607 9608# Old archive suffix (normally "a"). 9609libext="$libext" 9610 9611# Shared library suffix (normally ".so"). 9612shrext_cmds='$shrext_cmds' 9613 9614# Executable file suffix (normally ""). 9615exeext="$exeext" 9616 9617# Additional compiler flags for building library objects. 9618pic_flag=$lt_lt_prog_compiler_pic 9619pic_mode=$pic_mode 9620 9621# What is the maximum length of a command? 9622max_cmd_len=$lt_cv_sys_max_cmd_len 9623 9624# Does compiler simultaneously support -c and -o options? 9625compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9626 9627# Must we lock files when doing compilation? 9628need_locks=$lt_need_locks 9629 9630# Do we need the lib prefix for modules? 9631need_lib_prefix=$need_lib_prefix 9632 9633# Do we need a version for libraries? 9634need_version=$need_version 9635 9636# Whether dlopen is supported. 9637dlopen_support=$enable_dlopen 9638 9639# Whether dlopen of programs is supported. 9640dlopen_self=$enable_dlopen_self 9641 9642# Whether dlopen of statically linked programs is supported. 9643dlopen_self_static=$enable_dlopen_self_static 9644 9645# Compiler flag to prevent dynamic linking. 9646link_static_flag=$lt_lt_prog_compiler_static 9647 9648# Compiler flag to turn off builtin functions. 9649no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9650 9651# Compiler flag to allow reflexive dlopens. 9652export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9653 9654# Compiler flag to generate shared objects directly from archives. 9655whole_archive_flag_spec=$lt_whole_archive_flag_spec 9656 9657# Compiler flag to generate thread-safe objects. 9658thread_safe_flag_spec=$lt_thread_safe_flag_spec 9659 9660# Library versioning type. 9661version_type=$version_type 9662 9663# Format of library name prefix. 9664libname_spec=$lt_libname_spec 9665 9666# List of archive names. First name is the real one, the rest are links. 9667# The last name is the one that the linker finds with -lNAME. 9668library_names_spec=$lt_library_names_spec 9669 9670# The coded name of the library, if different from the real name. 9671soname_spec=$lt_soname_spec 9672 9673# Commands used to build and install an old-style archive. 9674RANLIB=$lt_RANLIB 9675old_archive_cmds=$lt_old_archive_cmds 9676old_postinstall_cmds=$lt_old_postinstall_cmds 9677old_postuninstall_cmds=$lt_old_postuninstall_cmds 9678 9679# Create an old-style archive from a shared archive. 9680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9681 9682# Create a temporary old-style archive to link instead of a shared archive. 9683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9684 9685# Commands used to build and install a shared archive. 9686archive_cmds=$lt_archive_cmds 9687archive_expsym_cmds=$lt_archive_expsym_cmds 9688postinstall_cmds=$lt_postinstall_cmds 9689postuninstall_cmds=$lt_postuninstall_cmds 9690 9691# Commands used to build a loadable module (assumed same as above if empty) 9692module_cmds=$lt_module_cmds 9693module_expsym_cmds=$lt_module_expsym_cmds 9694 9695# Commands to strip libraries. 9696old_striplib=$lt_old_striplib 9697striplib=$lt_striplib 9698 9699# Dependencies to place before the objects being linked to create a 9700# shared library. 9701predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9702 9703# Dependencies to place after the objects being linked to create a 9704# shared library. 9705postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9706 9707# Dependencies to place before the objects being linked to create a 9708# shared library. 9709predeps=$lt_predeps 9710 9711# Dependencies to place after the objects being linked to create a 9712# shared library. 9713postdeps=$lt_postdeps 9714 9715# The library search path used internally by the compiler when linking 9716# a shared library. 9717compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9718 9719# Method to check whether dependent libraries are shared objects. 9720deplibs_check_method=$lt_deplibs_check_method 9721 9722# Command to use when deplibs_check_method == file_magic. 9723file_magic_cmd=$lt_file_magic_cmd 9724 9725# Flag that allows shared libraries with undefined symbols to be built. 9726allow_undefined_flag=$lt_allow_undefined_flag 9727 9728# Flag that forces no undefined symbols. 9729no_undefined_flag=$lt_no_undefined_flag 9730 9731# Commands used to finish a libtool library installation in a directory. 9732finish_cmds=$lt_finish_cmds 9733 9734# Same as above, but a single script fragment to be evaled but not shown. 9735finish_eval=$lt_finish_eval 9736 9737# Take the output of nm and produce a listing of raw symbols and C names. 9738global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9739 9740# Transform the output of nm in a proper C declaration 9741global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9742 9743# Transform the output of nm in a C name address pair 9744global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9745 9746# This is the shared library runtime path variable. 9747runpath_var=$runpath_var 9748 9749# This is the shared library path variable. 9750shlibpath_var=$shlibpath_var 9751 9752# Is shlibpath searched before the hard-coded library search path? 9753shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9754 9755# How to hardcode a shared library path into an executable. 9756hardcode_action=$hardcode_action 9757 9758# Whether we should hardcode library paths into libraries. 9759hardcode_into_libs=$hardcode_into_libs 9760 9761# Flag to hardcode \$libdir into a binary during linking. 9762# This must work even if \$libdir does not exist. 9763hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9764 9765# If ld is used when linking, flag to hardcode \$libdir into 9766# a binary during linking. This must work even if \$libdir does 9767# not exist. 9768hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9769 9770# Whether we need a single -rpath flag with a separated argument. 9771hardcode_libdir_separator=$lt_hardcode_libdir_separator 9772 9773# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9774# resulting binary. 9775hardcode_direct=$hardcode_direct 9776 9777# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9778# resulting binary. 9779hardcode_minus_L=$hardcode_minus_L 9780 9781# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9782# the resulting binary. 9783hardcode_shlibpath_var=$hardcode_shlibpath_var 9784 9785# Set to yes if building a shared library automatically hardcodes DIR into the library 9786# and all subsequent libraries and executables linked against it. 9787hardcode_automatic=$hardcode_automatic 9788 9789# Variables whose values should be saved in libtool wrapper scripts and 9790# restored at relink time. 9791variables_saved_for_relink="$variables_saved_for_relink" 9792 9793# Whether libtool must link a program against all its dependency libraries. 9794link_all_deplibs=$link_all_deplibs 9795 9796# Compile-time system search path for libraries 9797sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 9798 9799# Run-time system search path for libraries 9800sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9801 9802# Fix the shell variable \$srcfile for the compiler. 9803fix_srcfile_path="$fix_srcfile_path" 9804 9805# Set to yes if exported symbols are required. 9806always_export_symbols=$always_export_symbols 9807 9808# The commands to list exported symbols. 9809export_symbols_cmds=$lt_export_symbols_cmds 9810 9811# The commands to extract the exported symbol list from a shared archive. 9812extract_expsyms_cmds=$lt_extract_expsyms_cmds 9813 9814# Symbols that should not be listed in the preloaded symbols. 9815exclude_expsyms=$lt_exclude_expsyms 9816 9817# Symbols that must always be exported. 9818include_expsyms=$lt_include_expsyms 9819 9820# ### END LIBTOOL CONFIG 9821 9822__EOF__ 9823 9824 9825 case $host_os in 9826 aix3*) 9827 cat <<\EOF >> "$cfgfile" 9828 9829# AIX sometimes has problems with the GCC collect2 program. For some 9830# reason, if we set the COLLECT_NAMES environment variable, the problems 9831# vanish in a puff of smoke. 9832if test "X${COLLECT_NAMES+set}" != Xset; then 9833 COLLECT_NAMES= 9834 export COLLECT_NAMES 9835fi 9836EOF 9837 ;; 9838 esac 9839 9840 # We use sed instead of cat because bash on DJGPP gets confused if 9841 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9842 # text mode, it properly converts lines to CR/LF. This bash problem 9843 # is reportedly fixed, but why not run on old versions too? 9844 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9845 9846 mv -f "$cfgfile" "$ofile" || \ 9847 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9848 chmod +x "$ofile" 9849 9850else 9851 # If there is no Makefile yet, we rely on a make rule to execute 9852 # `config.status --recheck' to rerun these tests and create the 9853 # libtool script then. 9854 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9855 if test -f "$ltmain_in"; then 9856 test -f Makefile && make "$ltmain" 9857 fi 9858fi 9859 9860 9861ac_ext=c 9862ac_cpp='$CPP $CPPFLAGS' 9863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9865ac_compiler_gnu=$ac_cv_c_compiler_gnu 9866 9867CC="$lt_save_CC" 9868 9869 9870# Check whether --with-tags or --without-tags was given. 9871if test "${with_tags+set}" = set; then 9872 withval="$with_tags" 9873 tagnames="$withval" 9874fi; 9875 9876if test -f "$ltmain" && test -n "$tagnames"; then 9877 if test ! -f "${ofile}"; then 9878 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9879echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9880 fi 9881 9882 if test -z "$LTCC"; then 9883 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9884 if test -z "$LTCC"; then 9885 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9886echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9887 else 9888 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9889echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9890 fi 9891 fi 9892 if test -z "$LTCFLAGS"; then 9893 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 9894 fi 9895 9896 # Extract list of available tagged configurations in $ofile. 9897 # Note that this assumes the entire list is on one line. 9898 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9899 9900 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9901 for tagname in $tagnames; do 9902 IFS="$lt_save_ifs" 9903 # Check whether tagname contains only valid characters 9904 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9905 "") ;; 9906 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9907echo "$as_me: error: invalid tag name: $tagname" >&2;} 9908 { (exit 1); exit 1; }; } 9909 ;; 9910 esac 9911 9912 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9913 then 9914 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9915echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9916 { (exit 1); exit 1; }; } 9917 fi 9918 9919 # Update the list of available tags. 9920 if test -n "$tagname"; then 9921 echo appending configuration tag \"$tagname\" to $ofile 9922 9923 case $tagname in 9924 CXX) 9925 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9926 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9927 (test "X$CXX" != "Xg++"))) ; then 9928 ac_ext=cc 9929ac_cpp='$CXXCPP $CPPFLAGS' 9930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9933 9934 9935 9936 9937archive_cmds_need_lc_CXX=no 9938allow_undefined_flag_CXX= 9939always_export_symbols_CXX=no 9940archive_expsym_cmds_CXX= 9941export_dynamic_flag_spec_CXX= 9942hardcode_direct_CXX=no 9943hardcode_libdir_flag_spec_CXX= 9944hardcode_libdir_flag_spec_ld_CXX= 9945hardcode_libdir_separator_CXX= 9946hardcode_minus_L_CXX=no 9947hardcode_shlibpath_var_CXX=unsupported 9948hardcode_automatic_CXX=no 9949module_cmds_CXX= 9950module_expsym_cmds_CXX= 9951link_all_deplibs_CXX=unknown 9952old_archive_cmds_CXX=$old_archive_cmds 9953no_undefined_flag_CXX= 9954whole_archive_flag_spec_CXX= 9955enable_shared_with_static_runtimes_CXX=no 9956 9957# Dependencies to place before and after the object being linked: 9958predep_objects_CXX= 9959postdep_objects_CXX= 9960predeps_CXX= 9961postdeps_CXX= 9962compiler_lib_search_path_CXX= 9963 9964# Source file extension for C++ test sources. 9965ac_ext=cpp 9966 9967# Object file extension for compiled C++ test sources. 9968objext=o 9969objext_CXX=$objext 9970 9971# Code to be used in simple compile tests 9972lt_simple_compile_test_code="int some_variable = 0;\n" 9973 9974# Code to be used in simple link tests 9975lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 9976 9977# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9978 9979# If no C compiler was specified, use CC. 9980LTCC=${LTCC-"$CC"} 9981 9982# If no C compiler flags were specified, use CFLAGS. 9983LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9984 9985# Allow CC to be a program name with arguments. 9986compiler=$CC 9987 9988 9989# save warnings/boilerplate of simple test code 9990ac_outfile=conftest.$ac_objext 9991printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9992eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9993_lt_compiler_boilerplate=`cat conftest.err` 9994$rm conftest* 9995 9996ac_outfile=conftest.$ac_objext 9997printf "$lt_simple_link_test_code" >conftest.$ac_ext 9998eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9999_lt_linker_boilerplate=`cat conftest.err` 10000$rm conftest* 10001 10002 10003# Allow CC to be a program name with arguments. 10004lt_save_CC=$CC 10005lt_save_LD=$LD 10006lt_save_GCC=$GCC 10007GCC=$GXX 10008lt_save_with_gnu_ld=$with_gnu_ld 10009lt_save_path_LD=$lt_cv_path_LD 10010if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10011 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10012else 10013 $as_unset lt_cv_prog_gnu_ld 10014fi 10015if test -n "${lt_cv_path_LDCXX+set}"; then 10016 lt_cv_path_LD=$lt_cv_path_LDCXX 10017else 10018 $as_unset lt_cv_path_LD 10019fi 10020test -z "${LDCXX+set}" || LD=$LDCXX 10021CC=${CXX-"c++"} 10022compiler=$CC 10023compiler_CXX=$CC 10024for cc_temp in $compiler""; do 10025 case $cc_temp in 10026 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10027 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10028 \-*) ;; 10029 *) break;; 10030 esac 10031done 10032cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10033 10034 10035# We don't want -fno-exception wen compiling C++ code, so set the 10036# no_builtin_flag separately 10037if test "$GXX" = yes; then 10038 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10039else 10040 lt_prog_compiler_no_builtin_flag_CXX= 10041fi 10042 10043if test "$GXX" = yes; then 10044 # Set up default GNU C++ configuration 10045 10046 10047# Check whether --with-gnu-ld or --without-gnu-ld was given. 10048if test "${with_gnu_ld+set}" = set; then 10049 withval="$with_gnu_ld" 10050 test "$withval" = no || with_gnu_ld=yes 10051else 10052 with_gnu_ld=no 10053fi; 10054ac_prog=ld 10055if test "$GCC" = yes; then 10056 # Check if gcc -print-prog-name=ld gives a path. 10057 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10058echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 10059 case $host in 10060 *-*-mingw*) 10061 # gcc leaves a trailing carriage return which upsets mingw 10062 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10063 *) 10064 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10065 esac 10066 case $ac_prog in 10067 # Accept absolute paths. 10068 [\\/]* | ?:[\\/]*) 10069 re_direlt='/[^/][^/]*/\.\./' 10070 # Canonicalize the pathname of ld 10071 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10072 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10073 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10074 done 10075 test -z "$LD" && LD="$ac_prog" 10076 ;; 10077 "") 10078 # If it fails, then pretend we aren't using GCC. 10079 ac_prog=ld 10080 ;; 10081 *) 10082 # If it is relative, then search for the first ld in PATH. 10083 with_gnu_ld=unknown 10084 ;; 10085 esac 10086elif test "$with_gnu_ld" = yes; then 10087 echo "$as_me:$LINENO: checking for GNU ld" >&5 10088echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10089else 10090 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10091echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10092fi 10093if test "${lt_cv_path_LD+set}" = set; then 10094 echo $ECHO_N "(cached) $ECHO_C" >&6 10095else 10096 if test -z "$LD"; then 10097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10098 for ac_dir in $PATH; do 10099 IFS="$lt_save_ifs" 10100 test -z "$ac_dir" && ac_dir=. 10101 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10102 lt_cv_path_LD="$ac_dir/$ac_prog" 10103 # Check to see if the program is GNU ld. I'd rather use --version, 10104 # but apparently some variants of GNU ld only accept -v. 10105 # Break only if it was the GNU/non-GNU ld that we prefer. 10106 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10107 *GNU* | *'with BFD'*) 10108 test "$with_gnu_ld" != no && break 10109 ;; 10110 *) 10111 test "$with_gnu_ld" != yes && break 10112 ;; 10113 esac 10114 fi 10115 done 10116 IFS="$lt_save_ifs" 10117else 10118 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10119fi 10120fi 10121 10122LD="$lt_cv_path_LD" 10123if test -n "$LD"; then 10124 echo "$as_me:$LINENO: result: $LD" >&5 10125echo "${ECHO_T}$LD" >&6 10126else 10127 echo "$as_me:$LINENO: result: no" >&5 10128echo "${ECHO_T}no" >&6 10129fi 10130test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10131echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10132 { (exit 1); exit 1; }; } 10133echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10134echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10135if test "${lt_cv_prog_gnu_ld+set}" = set; then 10136 echo $ECHO_N "(cached) $ECHO_C" >&6 10137else 10138 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10139case `$LD -v 2>&1 </dev/null` in 10140*GNU* | *'with BFD'*) 10141 lt_cv_prog_gnu_ld=yes 10142 ;; 10143*) 10144 lt_cv_prog_gnu_ld=no 10145 ;; 10146esac 10147fi 10148echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10149echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10150with_gnu_ld=$lt_cv_prog_gnu_ld 10151 10152 10153 10154 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10155 # archiving commands below assume that GNU ld is being used. 10156 if test "$with_gnu_ld" = yes; then 10157 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10158 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' 10159 10160 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10161 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10162 10163 # If archive_cmds runs LD, not CC, wlarc should be empty 10164 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10165 # investigate it a little bit more. (MM) 10166 wlarc='${wl}' 10167 10168 # ancient GNU ld didn't support --whole-archive et. al. 10169 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10170 grep 'no-whole-archive' > /dev/null; then 10171 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10172 else 10173 whole_archive_flag_spec_CXX= 10174 fi 10175 else 10176 with_gnu_ld=no 10177 wlarc= 10178 10179 # A generic and very simple default shared library creation 10180 # command for GNU C++ for the case where it uses the native 10181 # linker, instead of GNU ld. If possible, this setting should 10182 # overridden to take advantage of the native linker features on 10183 # the platform it is being used on. 10184 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10185 fi 10186 10187 # Commands to make compiler produce verbose output that lists 10188 # what "hidden" libraries, object files and flags are used when 10189 # linking a shared library. 10190 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10191 10192else 10193 GXX=no 10194 with_gnu_ld=no 10195 wlarc= 10196fi 10197 10198# PORTME: fill in a description of your system's C++ link characteristics 10199echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10200echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10201ld_shlibs_CXX=yes 10202case $host_os in 10203 aix3*) 10204 # FIXME: insert proper C++ library support 10205 ld_shlibs_CXX=no 10206 ;; 10207 aix4* | aix5*) 10208 if test "$host_cpu" = ia64; then 10209 # On IA64, the linker does run time linking by default, so we don't 10210 # have to do anything special. 10211 aix_use_runtimelinking=no 10212 exp_sym_flag='-Bexport' 10213 no_entry_flag="" 10214 else 10215 aix_use_runtimelinking=no 10216 10217 # Test if we are trying to use run time linking or normal 10218 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10219 # need to do runtime linking. 10220 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10221 for ld_flag in $LDFLAGS; do 10222 case $ld_flag in 10223 *-brtl*) 10224 aix_use_runtimelinking=yes 10225 break 10226 ;; 10227 esac 10228 done 10229 ;; 10230 esac 10231 10232 exp_sym_flag='-bexport' 10233 no_entry_flag='-bnoentry' 10234 fi 10235 10236 # When large executables or shared objects are built, AIX ld can 10237 # have problems creating the table of contents. If linking a library 10238 # or program results in "error TOC overflow" add -mminimal-toc to 10239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10241 10242 archive_cmds_CXX='' 10243 hardcode_direct_CXX=yes 10244 hardcode_libdir_separator_CXX=':' 10245 link_all_deplibs_CXX=yes 10246 10247 if test "$GXX" = yes; then 10248 case $host_os in aix4.[012]|aix4.[012].*) 10249 # We only want to do this on AIX 4.2 and lower, the check 10250 # below for broken collect2 doesn't work under 4.3+ 10251 collect2name=`${CC} -print-prog-name=collect2` 10252 if test -f "$collect2name" && \ 10253 strings "$collect2name" | grep resolve_lib_name >/dev/null 10254 then 10255 # We have reworked collect2 10256 hardcode_direct_CXX=yes 10257 else 10258 # We have old collect2 10259 hardcode_direct_CXX=unsupported 10260 # It fails to find uninstalled libraries when the uninstalled 10261 # path is not listed in the libpath. Setting hardcode_minus_L 10262 # to unsupported forces relinking 10263 hardcode_minus_L_CXX=yes 10264 hardcode_libdir_flag_spec_CXX='-L$libdir' 10265 hardcode_libdir_separator_CXX= 10266 fi 10267 ;; 10268 esac 10269 shared_flag='-shared' 10270 if test "$aix_use_runtimelinking" = yes; then 10271 shared_flag="$shared_flag "'${wl}-G' 10272 fi 10273 else 10274 # not using gcc 10275 if test "$host_cpu" = ia64; then 10276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10277 # chokes on -Wl,-G. The following line is correct: 10278 shared_flag='-G' 10279 else 10280 if test "$aix_use_runtimelinking" = yes; then 10281 shared_flag='${wl}-G' 10282 else 10283 shared_flag='${wl}-bM:SRE' 10284 fi 10285 fi 10286 fi 10287 10288 # It seems that -bexpall does not export symbols beginning with 10289 # underscore (_), so it is better to generate a list of symbols to export. 10290 always_export_symbols_CXX=yes 10291 if test "$aix_use_runtimelinking" = yes; then 10292 # Warning - without using the other runtime loading flags (-brtl), 10293 # -berok will link without error, but may produce a broken library. 10294 allow_undefined_flag_CXX='-berok' 10295 # Determine the default libpath from the value encoded in an empty executable. 10296 cat >conftest.$ac_ext <<_ACEOF 10297/* confdefs.h. */ 10298_ACEOF 10299cat confdefs.h >>conftest.$ac_ext 10300cat >>conftest.$ac_ext <<_ACEOF 10301/* end confdefs.h. */ 10302 10303int 10304main () 10305{ 10306 10307 ; 10308 return 0; 10309} 10310_ACEOF 10311rm -f conftest.$ac_objext conftest$ac_exeext 10312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10313 (eval $ac_link) 2>conftest.er1 10314 ac_status=$? 10315 grep -v '^ *+' conftest.er1 >conftest.err 10316 rm -f conftest.er1 10317 cat conftest.err >&5 10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10319 (exit $ac_status); } && 10320 { ac_try='test -z "$ac_cxx_werror_flag" 10321 || test ! -s conftest.err' 10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10323 (eval $ac_try) 2>&5 10324 ac_status=$? 10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10326 (exit $ac_status); }; } && 10327 { ac_try='test -s conftest$ac_exeext' 10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10329 (eval $ac_try) 2>&5 10330 ac_status=$? 10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10332 (exit $ac_status); }; }; then 10333 10334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10335}'` 10336# Check for a 64-bit object if we didn't find anything. 10337if 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; } 10338}'`; fi 10339else 10340 echo "$as_me: failed program was:" >&5 10341sed 's/^/| /' conftest.$ac_ext >&5 10342 10343fi 10344rm -f conftest.err conftest.$ac_objext \ 10345 conftest$ac_exeext conftest.$ac_ext 10346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10347 10348 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10349 10350 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10351 else 10352 if test "$host_cpu" = ia64; then 10353 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10354 allow_undefined_flag_CXX="-z nodefs" 10355 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10356 else 10357 # Determine the default libpath from the value encoded in an empty executable. 10358 cat >conftest.$ac_ext <<_ACEOF 10359/* confdefs.h. */ 10360_ACEOF 10361cat confdefs.h >>conftest.$ac_ext 10362cat >>conftest.$ac_ext <<_ACEOF 10363/* end confdefs.h. */ 10364 10365int 10366main () 10367{ 10368 10369 ; 10370 return 0; 10371} 10372_ACEOF 10373rm -f conftest.$ac_objext conftest$ac_exeext 10374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10375 (eval $ac_link) 2>conftest.er1 10376 ac_status=$? 10377 grep -v '^ *+' conftest.er1 >conftest.err 10378 rm -f conftest.er1 10379 cat conftest.err >&5 10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10381 (exit $ac_status); } && 10382 { ac_try='test -z "$ac_cxx_werror_flag" 10383 || test ! -s conftest.err' 10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10385 (eval $ac_try) 2>&5 10386 ac_status=$? 10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10388 (exit $ac_status); }; } && 10389 { ac_try='test -s conftest$ac_exeext' 10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10391 (eval $ac_try) 2>&5 10392 ac_status=$? 10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10394 (exit $ac_status); }; }; then 10395 10396aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10397}'` 10398# Check for a 64-bit object if we didn't find anything. 10399if 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; } 10400}'`; fi 10401else 10402 echo "$as_me: failed program was:" >&5 10403sed 's/^/| /' conftest.$ac_ext >&5 10404 10405fi 10406rm -f conftest.err conftest.$ac_objext \ 10407 conftest$ac_exeext conftest.$ac_ext 10408if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10409 10410 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10411 # Warning - without using the other run time loading flags, 10412 # -berok will link without error, but may produce a broken library. 10413 no_undefined_flag_CXX=' ${wl}-bernotok' 10414 allow_undefined_flag_CXX=' ${wl}-berok' 10415 # Exported symbols can be pulled into shared objects from archives 10416 whole_archive_flag_spec_CXX='$convenience' 10417 archive_cmds_need_lc_CXX=yes 10418 # This is similar to how AIX traditionally builds its shared libraries. 10419 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10420 fi 10421 fi 10422 ;; 10423 10424 beos*) 10425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10426 allow_undefined_flag_CXX=unsupported 10427 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10428 # support --undefined. This deserves some investigation. FIXME 10429 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10430 else 10431 ld_shlibs_CXX=no 10432 fi 10433 ;; 10434 10435 chorus*) 10436 case $cc_basename in 10437 *) 10438 # FIXME: insert proper C++ library support 10439 ld_shlibs_CXX=no 10440 ;; 10441 esac 10442 ;; 10443 10444 cygwin* | mingw* | pw32*) 10445 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10446 # as there is no search path for DLLs. 10447 hardcode_libdir_flag_spec_CXX='-L$libdir' 10448 allow_undefined_flag_CXX=unsupported 10449 always_export_symbols_CXX=no 10450 enable_shared_with_static_runtimes_CXX=yes 10451 10452 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10453 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10454 # If the export-symbols file already is a .def file (1st line 10455 # is EXPORTS), use it as is; otherwise, prepend... 10456 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10457 cp $export_symbols $output_objdir/$soname.def; 10458 else 10459 echo EXPORTS > $output_objdir/$soname.def; 10460 cat $export_symbols >> $output_objdir/$soname.def; 10461 fi~ 10462 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10463 else 10464 ld_shlibs_CXX=no 10465 fi 10466 ;; 10467 darwin* | rhapsody*) 10468 case $host_os in 10469 rhapsody* | darwin1.[012]) 10470 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10471 ;; 10472 *) # Darwin 1.3 on 10473 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10474 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10475 else 10476 case ${MACOSX_DEPLOYMENT_TARGET} in 10477 10.[012]) 10478 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10479 ;; 10480 10.*) 10481 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10482 ;; 10483 esac 10484 fi 10485 ;; 10486 esac 10487 archive_cmds_need_lc_CXX=no 10488 hardcode_direct_CXX=no 10489 hardcode_automatic_CXX=yes 10490 hardcode_shlibpath_var_CXX=unsupported 10491 whole_archive_flag_spec_CXX='' 10492 link_all_deplibs_CXX=yes 10493 10494 if test "$GXX" = yes ; then 10495 lt_int_apple_cc_single_mod=no 10496 output_verbose_link_cmd='echo' 10497 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10498 lt_int_apple_cc_single_mod=yes 10499 fi 10500 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10501 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10502 else 10503 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' 10504 fi 10505 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10507 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10508 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}' 10509 else 10510 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}' 10511 fi 10512 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}' 10513 else 10514 case $cc_basename in 10515 xlc*) 10516 output_verbose_link_cmd='echo' 10517 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' 10518 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10520 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}' 10521 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}' 10522 ;; 10523 *) 10524 ld_shlibs_CXX=no 10525 ;; 10526 esac 10527 fi 10528 ;; 10529 10530 dgux*) 10531 case $cc_basename in 10532 ec++*) 10533 # FIXME: insert proper C++ library support 10534 ld_shlibs_CXX=no 10535 ;; 10536 ghcx*) 10537 # Green Hills C++ Compiler 10538 # FIXME: insert proper C++ library support 10539 ld_shlibs_CXX=no 10540 ;; 10541 *) 10542 # FIXME: insert proper C++ library support 10543 ld_shlibs_CXX=no 10544 ;; 10545 esac 10546 ;; 10547 freebsd[12]*) 10548 # C++ shared libraries reported to be fairly broken before switch to ELF 10549 ld_shlibs_CXX=no 10550 ;; 10551 freebsd-elf*) 10552 archive_cmds_need_lc_CXX=no 10553 ;; 10554 freebsd* | kfreebsd*-gnu | dragonfly*) 10555 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10556 # conventions 10557 ld_shlibs_CXX=yes 10558 ;; 10559 gnu*) 10560 ;; 10561 hpux9*) 10562 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10563 hardcode_libdir_separator_CXX=: 10564 export_dynamic_flag_spec_CXX='${wl}-E' 10565 hardcode_direct_CXX=yes 10566 hardcode_minus_L_CXX=yes # Not in the search PATH, 10567 # but as the default 10568 # location of the library. 10569 10570 case $cc_basename in 10571 CC*) 10572 # FIXME: insert proper C++ library support 10573 ld_shlibs_CXX=no 10574 ;; 10575 aCC*) 10576 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' 10577 # Commands to make compiler produce verbose output that lists 10578 # what "hidden" libraries, object files and flags are used when 10579 # linking a shared library. 10580 # 10581 # There doesn't appear to be a way to prevent this compiler from 10582 # explicitly linking system object files so we need to strip them 10583 # from the output so that they don't get included in the library 10584 # dependencies. 10585 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' 10586 ;; 10587 *) 10588 if test "$GXX" = yes; then 10589 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' 10590 else 10591 # FIXME: insert proper C++ library support 10592 ld_shlibs_CXX=no 10593 fi 10594 ;; 10595 esac 10596 ;; 10597 hpux10*|hpux11*) 10598 if test $with_gnu_ld = no; then 10599 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10600 hardcode_libdir_separator_CXX=: 10601 10602 case $host_cpu in 10603 hppa*64*|ia64*) 10604 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10605 ;; 10606 *) 10607 export_dynamic_flag_spec_CXX='${wl}-E' 10608 ;; 10609 esac 10610 fi 10611 case $host_cpu in 10612 hppa*64*|ia64*) 10613 hardcode_direct_CXX=no 10614 hardcode_shlibpath_var_CXX=no 10615 ;; 10616 *) 10617 hardcode_direct_CXX=yes 10618 hardcode_minus_L_CXX=yes # Not in the search PATH, 10619 # but as the default 10620 # location of the library. 10621 ;; 10622 esac 10623 10624 case $cc_basename in 10625 CC*) 10626 # FIXME: insert proper C++ library support 10627 ld_shlibs_CXX=no 10628 ;; 10629 aCC*) 10630 case $host_cpu in 10631 hppa*64*) 10632 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10633 ;; 10634 ia64*) 10635 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10636 ;; 10637 *) 10638 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10639 ;; 10640 esac 10641 # Commands to make compiler produce verbose output that lists 10642 # what "hidden" libraries, object files and flags are used when 10643 # linking a shared library. 10644 # 10645 # There doesn't appear to be a way to prevent this compiler from 10646 # explicitly linking system object files so we need to strip them 10647 # from the output so that they don't get included in the library 10648 # dependencies. 10649 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' 10650 ;; 10651 *) 10652 if test "$GXX" = yes; then 10653 if test $with_gnu_ld = no; then 10654 case $host_cpu in 10655 hppa*64*) 10656 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10657 ;; 10658 ia64*) 10659 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10660 ;; 10661 *) 10662 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' 10663 ;; 10664 esac 10665 fi 10666 else 10667 # FIXME: insert proper C++ library support 10668 ld_shlibs_CXX=no 10669 fi 10670 ;; 10671 esac 10672 ;; 10673 interix3*) 10674 hardcode_direct_CXX=no 10675 hardcode_shlibpath_var_CXX=no 10676 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10677 export_dynamic_flag_spec_CXX='${wl}-E' 10678 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10679 # Instead, shared libraries are loaded at an image base (0x10000000 by 10680 # default) and relocated if they conflict, which is a slow very memory 10681 # consuming and fragmenting process. To avoid this, we pick a random, 10682 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10683 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10684 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10685 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10686 ;; 10687 irix5* | irix6*) 10688 case $cc_basename in 10689 CC*) 10690 # SGI C++ 10691 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' 10692 10693 # Archives containing C++ object files must be created using 10694 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10695 # necessary to make sure instantiated templates are included 10696 # in the archive. 10697 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10698 ;; 10699 *) 10700 if test "$GXX" = yes; then 10701 if test "$with_gnu_ld" = no; then 10702 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' 10703 else 10704 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' 10705 fi 10706 fi 10707 link_all_deplibs_CXX=yes 10708 ;; 10709 esac 10710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10711 hardcode_libdir_separator_CXX=: 10712 ;; 10713 linux*) 10714 case $cc_basename in 10715 KCC*) 10716 # Kuck and Associates, Inc. (KAI) C++ Compiler 10717 10718 # KCC will only create a shared library if the output file 10719 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10720 # to its proper name (with version) after linking. 10721 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' 10722 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' 10723 # Commands to make compiler produce verbose output that lists 10724 # what "hidden" libraries, object files and flags are used when 10725 # linking a shared library. 10726 # 10727 # There doesn't appear to be a way to prevent this compiler from 10728 # explicitly linking system object files so we need to strip them 10729 # from the output so that they don't get included in the library 10730 # dependencies. 10731 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' 10732 10733 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10735 10736 # Archives containing C++ object files must be created using 10737 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10738 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10739 ;; 10740 icpc*) 10741 # Intel C++ 10742 with_gnu_ld=yes 10743 # version 8.0 and above of icpc choke on multiply defined symbols 10744 # if we add $predep_objects and $postdep_objects, however 7.1 and 10745 # earlier do not add the objects themselves. 10746 case `$CC -V 2>&1` in 10747 *"Version 7."*) 10748 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10749 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' 10750 ;; 10751 *) # Version 8.0 or newer 10752 tmp_idyn= 10753 case $host_cpu in 10754 ia64*) tmp_idyn=' -i_dynamic';; 10755 esac 10756 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10757 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' 10758 ;; 10759 esac 10760 archive_cmds_need_lc_CXX=no 10761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10763 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10764 ;; 10765 pgCC*) 10766 # Portland Group C++ compiler 10767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10768 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' 10769 10770 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10772 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' 10773 ;; 10774 cxx*) 10775 # Compaq C++ 10776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10777 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' 10778 10779 runpath_var=LD_RUN_PATH 10780 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10781 hardcode_libdir_separator_CXX=: 10782 10783 # Commands to make compiler produce verbose output that lists 10784 # what "hidden" libraries, object files and flags are used when 10785 # linking a shared library. 10786 # 10787 # There doesn't appear to be a way to prevent this compiler from 10788 # explicitly linking system object files so we need to strip them 10789 # from the output so that they don't get included in the library 10790 # dependencies. 10791 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' 10792 ;; 10793 esac 10794 ;; 10795 lynxos*) 10796 # FIXME: insert proper C++ library support 10797 ld_shlibs_CXX=no 10798 ;; 10799 m88k*) 10800 # FIXME: insert proper C++ library support 10801 ld_shlibs_CXX=no 10802 ;; 10803 mvs*) 10804 case $cc_basename in 10805 cxx*) 10806 # FIXME: insert proper C++ library support 10807 ld_shlibs_CXX=no 10808 ;; 10809 *) 10810 # FIXME: insert proper C++ library support 10811 ld_shlibs_CXX=no 10812 ;; 10813 esac 10814 ;; 10815 netbsd*) 10816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10817 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10818 wlarc= 10819 hardcode_libdir_flag_spec_CXX='-R$libdir' 10820 hardcode_direct_CXX=yes 10821 hardcode_shlibpath_var_CXX=no 10822 fi 10823 # Workaround some broken pre-1.5 toolchains 10824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10825 ;; 10826 openbsd2*) 10827 # C++ shared libraries are fairly broken 10828 ld_shlibs_CXX=no 10829 ;; 10830 openbsd*) 10831 hardcode_direct_CXX=yes 10832 hardcode_shlibpath_var_CXX=no 10833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10834 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10835 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10836 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10837 export_dynamic_flag_spec_CXX='${wl}-E' 10838 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10839 fi 10840 output_verbose_link_cmd='echo' 10841 ;; 10842 osf3*) 10843 case $cc_basename in 10844 KCC*) 10845 # Kuck and Associates, Inc. (KAI) C++ Compiler 10846 10847 # KCC will only create a shared library if the output file 10848 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10849 # to its proper name (with version) after linking. 10850 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' 10851 10852 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10853 hardcode_libdir_separator_CXX=: 10854 10855 # Archives containing C++ object files must be created using 10856 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10857 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10858 10859 ;; 10860 RCC*) 10861 # Rational C++ 2.4.1 10862 # FIXME: insert proper C++ library support 10863 ld_shlibs_CXX=no 10864 ;; 10865 cxx*) 10866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10867 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' 10868 10869 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10870 hardcode_libdir_separator_CXX=: 10871 10872 # Commands to make compiler produce verbose output that lists 10873 # what "hidden" libraries, object files and flags are used when 10874 # linking a shared library. 10875 # 10876 # There doesn't appear to be a way to prevent this compiler from 10877 # explicitly linking system object files so we need to strip them 10878 # from the output so that they don't get included in the library 10879 # dependencies. 10880 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' 10881 ;; 10882 *) 10883 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10884 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10885 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' 10886 10887 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10888 hardcode_libdir_separator_CXX=: 10889 10890 # Commands to make compiler produce verbose output that lists 10891 # what "hidden" libraries, object files and flags are used when 10892 # linking a shared library. 10893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10894 10895 else 10896 # FIXME: insert proper C++ library support 10897 ld_shlibs_CXX=no 10898 fi 10899 ;; 10900 esac 10901 ;; 10902 osf4* | osf5*) 10903 case $cc_basename in 10904 KCC*) 10905 # Kuck and Associates, Inc. (KAI) C++ Compiler 10906 10907 # KCC will only create a shared library if the output file 10908 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10909 # to its proper name (with version) after linking. 10910 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' 10911 10912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10913 hardcode_libdir_separator_CXX=: 10914 10915 # Archives containing C++ object files must be created using 10916 # the KAI C++ compiler. 10917 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10918 ;; 10919 RCC*) 10920 # Rational C++ 2.4.1 10921 # FIXME: insert proper C++ library support 10922 ld_shlibs_CXX=no 10923 ;; 10924 cxx*) 10925 allow_undefined_flag_CXX=' -expect_unresolved \*' 10926 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' 10927 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10928 echo "-hidden">> $lib.exp~ 10929 $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~ 10930 $rm $lib.exp' 10931 10932 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10933 hardcode_libdir_separator_CXX=: 10934 10935 # Commands to make compiler produce verbose output that lists 10936 # what "hidden" libraries, object files and flags are used when 10937 # linking a shared library. 10938 # 10939 # There doesn't appear to be a way to prevent this compiler from 10940 # explicitly linking system object files so we need to strip them 10941 # from the output so that they don't get included in the library 10942 # dependencies. 10943 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' 10944 ;; 10945 *) 10946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10947 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10948 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' 10949 10950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10951 hardcode_libdir_separator_CXX=: 10952 10953 # Commands to make compiler produce verbose output that lists 10954 # what "hidden" libraries, object files and flags are used when 10955 # linking a shared library. 10956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10957 10958 else 10959 # FIXME: insert proper C++ library support 10960 ld_shlibs_CXX=no 10961 fi 10962 ;; 10963 esac 10964 ;; 10965 psos*) 10966 # FIXME: insert proper C++ library support 10967 ld_shlibs_CXX=no 10968 ;; 10969 sunos4*) 10970 case $cc_basename in 10971 CC*) 10972 # Sun C++ 4.x 10973 # FIXME: insert proper C++ library support 10974 ld_shlibs_CXX=no 10975 ;; 10976 lcc*) 10977 # Lucid 10978 # FIXME: insert proper C++ library support 10979 ld_shlibs_CXX=no 10980 ;; 10981 *) 10982 # FIXME: insert proper C++ library support 10983 ld_shlibs_CXX=no 10984 ;; 10985 esac 10986 ;; 10987 solaris*) 10988 case $cc_basename in 10989 CC*) 10990 # Sun C++ 4.2, 5.x and Centerline C++ 10991 archive_cmds_need_lc_CXX=yes 10992 no_undefined_flag_CXX=' -zdefs' 10993 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10994 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10995 $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' 10996 10997 hardcode_libdir_flag_spec_CXX='-R$libdir' 10998 hardcode_shlibpath_var_CXX=no 10999 case $host_os in 11000 solaris2.[0-5] | solaris2.[0-5].*) ;; 11001 *) 11002 # The C++ compiler is used as linker so we must use $wl 11003 # flag to pass the commands to the underlying system 11004 # linker. We must also pass each convience library through 11005 # to the system linker between allextract/defaultextract. 11006 # The C++ compiler will combine linker options so we 11007 # cannot just pass the convience library names through 11008 # without $wl. 11009 # Supported since Solaris 2.6 (maybe 2.5.1?) 11010 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' 11011 ;; 11012 esac 11013 link_all_deplibs_CXX=yes 11014 11015 output_verbose_link_cmd='echo' 11016 11017 # Archives containing C++ object files must be created using 11018 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11019 # necessary to make sure instantiated templates are included 11020 # in the archive. 11021 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11022 ;; 11023 gcx*) 11024 # Green Hills C++ Compiler 11025 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11026 11027 # The C++ compiler must be used to create the archive. 11028 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11029 ;; 11030 *) 11031 # GNU C++ compiler with Solaris linker 11032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11033 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11034 if $CC --version | grep -v '^2\.7' > /dev/null; then 11035 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11036 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11037 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11038 11039 # Commands to make compiler produce verbose output that lists 11040 # what "hidden" libraries, object files and flags are used when 11041 # linking a shared library. 11042 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11043 else 11044 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11045 # platform. 11046 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11047 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11048 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11049 11050 # Commands to make compiler produce verbose output that lists 11051 # what "hidden" libraries, object files and flags are used when 11052 # linking a shared library. 11053 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11054 fi 11055 11056 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11057 fi 11058 ;; 11059 esac 11060 ;; 11061 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11062 no_undefined_flag_CXX='${wl}-z,text' 11063 archive_cmds_need_lc_CXX=no 11064 hardcode_shlibpath_var_CXX=no 11065 runpath_var='LD_RUN_PATH' 11066 11067 case $cc_basename in 11068 CC*) 11069 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11070 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11071 ;; 11072 *) 11073 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11074 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11075 ;; 11076 esac 11077 ;; 11078 sysv5* | sco3.2v5* | sco5v6*) 11079 # Note: We can NOT use -z defs as we might desire, because we do not 11080 # link with -lc, and that would cause any symbols used from libc to 11081 # always be unresolved, which means just about no library would 11082 # ever link correctly. If we're not using GNU ld we use -z text 11083 # though, which does catch some bad symbols but isn't as heavy-handed 11084 # as -z defs. 11085 # For security reasons, it is highly recommended that you always 11086 # use absolute paths for naming shared libraries, and exclude the 11087 # DT_RUNPATH tag from executables and libraries. But doing so 11088 # requires that you compile everything twice, which is a pain. 11089 # So that behaviour is only enabled if SCOABSPATH is set to a 11090 # non-empty value in the environment. Most likely only useful for 11091 # creating official distributions of packages. 11092 # This is a hack until libtool officially supports absolute path 11093 # names for shared libraries. 11094 no_undefined_flag_CXX='${wl}-z,text' 11095 allow_undefined_flag_CXX='${wl}-z,nodefs' 11096 archive_cmds_need_lc_CXX=no 11097 hardcode_shlibpath_var_CXX=no 11098 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11099 hardcode_libdir_separator_CXX=':' 11100 link_all_deplibs_CXX=yes 11101 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11102 runpath_var='LD_RUN_PATH' 11103 11104 case $cc_basename in 11105 CC*) 11106 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11107 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11108 ;; 11109 *) 11110 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11111 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11112 ;; 11113 esac 11114 ;; 11115 tandem*) 11116 case $cc_basename in 11117 NCC*) 11118 # NonStop-UX NCC 3.20 11119 # FIXME: insert proper C++ library support 11120 ld_shlibs_CXX=no 11121 ;; 11122 *) 11123 # FIXME: insert proper C++ library support 11124 ld_shlibs_CXX=no 11125 ;; 11126 esac 11127 ;; 11128 vxworks*) 11129 # FIXME: insert proper C++ library support 11130 ld_shlibs_CXX=no 11131 ;; 11132 *) 11133 # FIXME: insert proper C++ library support 11134 ld_shlibs_CXX=no 11135 ;; 11136esac 11137echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11138echo "${ECHO_T}$ld_shlibs_CXX" >&6 11139test "$ld_shlibs_CXX" = no && can_build_shared=no 11140 11141GCC_CXX="$GXX" 11142LD_CXX="$LD" 11143 11144 11145cat > conftest.$ac_ext <<EOF 11146class Foo 11147{ 11148public: 11149 Foo (void) { a = 0; } 11150private: 11151 int a; 11152}; 11153EOF 11154 11155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11156 (eval $ac_compile) 2>&5 11157 ac_status=$? 11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11159 (exit $ac_status); }; then 11160 # Parse the compiler output and extract the necessary 11161 # objects, libraries and library flags. 11162 11163 # Sentinel used to keep track of whether or not we are before 11164 # the conftest object file. 11165 pre_test_object_deps_done=no 11166 11167 # The `*' in the case matches for architectures that use `case' in 11168 # $output_verbose_cmd can trigger glob expansion during the loop 11169 # eval without this substitution. 11170 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11171 11172 for p in `eval $output_verbose_link_cmd`; do 11173 case $p in 11174 11175 -L* | -R* | -l*) 11176 # Some compilers place space between "-{L,R}" and the path. 11177 # Remove the space. 11178 if test $p = "-L" \ 11179 || test $p = "-R"; then 11180 prev=$p 11181 continue 11182 else 11183 prev= 11184 fi 11185 11186 if test "$pre_test_object_deps_done" = no; then 11187 case $p in 11188 -L* | -R*) 11189 # Internal compiler library paths should come after those 11190 # provided the user. The postdeps already come after the 11191 # user supplied libs so there is no need to process them. 11192 if test -z "$compiler_lib_search_path_CXX"; then 11193 compiler_lib_search_path_CXX="${prev}${p}" 11194 else 11195 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11196 fi 11197 ;; 11198 # The "-l" case would never come before the object being 11199 # linked, so don't bother handling this case. 11200 esac 11201 else 11202 if test -z "$postdeps_CXX"; then 11203 postdeps_CXX="${prev}${p}" 11204 else 11205 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11206 fi 11207 fi 11208 ;; 11209 11210 *.$objext) 11211 # This assumes that the test object file only shows up 11212 # once in the compiler output. 11213 if test "$p" = "conftest.$objext"; then 11214 pre_test_object_deps_done=yes 11215 continue 11216 fi 11217 11218 if test "$pre_test_object_deps_done" = no; then 11219 if test -z "$predep_objects_CXX"; then 11220 predep_objects_CXX="$p" 11221 else 11222 predep_objects_CXX="$predep_objects_CXX $p" 11223 fi 11224 else 11225 if test -z "$postdep_objects_CXX"; then 11226 postdep_objects_CXX="$p" 11227 else 11228 postdep_objects_CXX="$postdep_objects_CXX $p" 11229 fi 11230 fi 11231 ;; 11232 11233 *) ;; # Ignore the rest. 11234 11235 esac 11236 done 11237 11238 # Clean up. 11239 rm -f a.out a.exe 11240else 11241 echo "libtool.m4: error: problem compiling CXX test program" 11242fi 11243 11244$rm -f confest.$objext 11245 11246# PORTME: override above test on systems where it is broken 11247case $host_os in 11248interix3*) 11249 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11250 # hack all around it, let's just trust "g++" to DTRT. 11251 predep_objects_CXX= 11252 postdep_objects_CXX= 11253 postdeps_CXX= 11254 ;; 11255 11256solaris*) 11257 case $cc_basename in 11258 CC*) 11259 # Adding this requires a known-good setup of shared libraries for 11260 # Sun compiler versions before 5.6, else PIC objects from an old 11261 # archive will be linked into the output, leading to subtle bugs. 11262 postdeps_CXX='-lCstd -lCrun' 11263 ;; 11264 esac 11265 ;; 11266esac 11267 11268 11269case " $postdeps_CXX " in 11270*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11271esac 11272 11273lt_prog_compiler_wl_CXX= 11274lt_prog_compiler_pic_CXX= 11275lt_prog_compiler_static_CXX= 11276 11277echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11278echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11279 11280 # C++ specific cases for pic, static, wl, etc. 11281 if test "$GXX" = yes; then 11282 lt_prog_compiler_wl_CXX='-Wl,' 11283 lt_prog_compiler_static_CXX='-static' 11284 11285 case $host_os in 11286 aix*) 11287 # All AIX code is PIC. 11288 if test "$host_cpu" = ia64; then 11289 # AIX 5 now supports IA64 processor 11290 lt_prog_compiler_static_CXX='-Bstatic' 11291 fi 11292 ;; 11293 amigaos*) 11294 # FIXME: we need at least 68020 code to build shared libraries, but 11295 # adding the `-m68020' flag to GCC prevents building anything better, 11296 # like `-m68040'. 11297 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11298 ;; 11299 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11300 # PIC is the default for these OSes. 11301 ;; 11302 mingw* | os2* | pw32*) 11303 # This hack is so that the source file can tell whether it is being 11304 # built for inclusion in a dll (and should export symbols for example). 11305 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11306 ;; 11307 darwin* | rhapsody*) 11308 # PIC is the default on this platform 11309 # Common symbols not allowed in MH_DYLIB files 11310 lt_prog_compiler_pic_CXX='-fno-common' 11311 ;; 11312 *djgpp*) 11313 # DJGPP does not support shared libraries at all 11314 lt_prog_compiler_pic_CXX= 11315 ;; 11316 interix3*) 11317 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11318 # Instead, we relocate shared libraries at runtime. 11319 ;; 11320 sysv4*MP*) 11321 if test -d /usr/nec; then 11322 lt_prog_compiler_pic_CXX=-Kconform_pic 11323 fi 11324 ;; 11325 hpux*) 11326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11327 # not for PA HP-UX. 11328 case $host_cpu in 11329 hppa*64*|ia64*) 11330 ;; 11331 *) 11332 lt_prog_compiler_pic_CXX='-fPIC' 11333 ;; 11334 esac 11335 ;; 11336 *) 11337 lt_prog_compiler_pic_CXX='-fPIC' 11338 ;; 11339 esac 11340 else 11341 case $host_os in 11342 aix4* | aix5*) 11343 # All AIX code is PIC. 11344 if test "$host_cpu" = ia64; then 11345 # AIX 5 now supports IA64 processor 11346 lt_prog_compiler_static_CXX='-Bstatic' 11347 else 11348 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11349 fi 11350 ;; 11351 chorus*) 11352 case $cc_basename in 11353 cxch68*) 11354 # Green Hills C++ Compiler 11355 # _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" 11356 ;; 11357 esac 11358 ;; 11359 darwin*) 11360 # PIC is the default on this platform 11361 # Common symbols not allowed in MH_DYLIB files 11362 case $cc_basename in 11363 xlc*) 11364 lt_prog_compiler_pic_CXX='-qnocommon' 11365 lt_prog_compiler_wl_CXX='-Wl,' 11366 ;; 11367 esac 11368 ;; 11369 dgux*) 11370 case $cc_basename in 11371 ec++*) 11372 lt_prog_compiler_pic_CXX='-KPIC' 11373 ;; 11374 ghcx*) 11375 # Green Hills C++ Compiler 11376 lt_prog_compiler_pic_CXX='-pic' 11377 ;; 11378 *) 11379 ;; 11380 esac 11381 ;; 11382 freebsd* | kfreebsd*-gnu | dragonfly*) 11383 # FreeBSD uses GNU C++ 11384 ;; 11385 hpux9* | hpux10* | hpux11*) 11386 case $cc_basename in 11387 CC*) 11388 lt_prog_compiler_wl_CXX='-Wl,' 11389 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11390 if test "$host_cpu" != ia64; then 11391 lt_prog_compiler_pic_CXX='+Z' 11392 fi 11393 ;; 11394 aCC*) 11395 lt_prog_compiler_wl_CXX='-Wl,' 11396 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 11397 case $host_cpu in 11398 hppa*64*|ia64*) 11399 # +Z the default 11400 ;; 11401 *) 11402 lt_prog_compiler_pic_CXX='+Z' 11403 ;; 11404 esac 11405 ;; 11406 *) 11407 ;; 11408 esac 11409 ;; 11410 interix*) 11411 # This is c89, which is MS Visual C++ (no shared libs) 11412 # Anyone wants to do a port? 11413 ;; 11414 irix5* | irix6* | nonstopux*) 11415 case $cc_basename in 11416 CC*) 11417 lt_prog_compiler_wl_CXX='-Wl,' 11418 lt_prog_compiler_static_CXX='-non_shared' 11419 # CC pic flag -KPIC is the default. 11420 ;; 11421 *) 11422 ;; 11423 esac 11424 ;; 11425 linux*) 11426 case $cc_basename in 11427 KCC*) 11428 # KAI C++ Compiler 11429 lt_prog_compiler_wl_CXX='--backend -Wl,' 11430 lt_prog_compiler_pic_CXX='-fPIC' 11431 ;; 11432 icpc* | ecpc*) 11433 # Intel C++ 11434 lt_prog_compiler_wl_CXX='-Wl,' 11435 lt_prog_compiler_pic_CXX='-KPIC' 11436 lt_prog_compiler_static_CXX='-static' 11437 ;; 11438 pgCC*) 11439 # Portland Group C++ compiler. 11440 lt_prog_compiler_wl_CXX='-Wl,' 11441 lt_prog_compiler_pic_CXX='-fpic' 11442 lt_prog_compiler_static_CXX='-Bstatic' 11443 ;; 11444 cxx*) 11445 # Compaq C++ 11446 # Make sure the PIC flag is empty. It appears that all Alpha 11447 # Linux and Compaq Tru64 Unix objects are PIC. 11448 lt_prog_compiler_pic_CXX= 11449 lt_prog_compiler_static_CXX='-non_shared' 11450 ;; 11451 *) 11452 ;; 11453 esac 11454 ;; 11455 lynxos*) 11456 ;; 11457 m88k*) 11458 ;; 11459 mvs*) 11460 case $cc_basename in 11461 cxx*) 11462 lt_prog_compiler_pic_CXX='-W c,exportall' 11463 ;; 11464 *) 11465 ;; 11466 esac 11467 ;; 11468 netbsd*) 11469 ;; 11470 osf3* | osf4* | osf5*) 11471 case $cc_basename in 11472 KCC*) 11473 lt_prog_compiler_wl_CXX='--backend -Wl,' 11474 ;; 11475 RCC*) 11476 # Rational C++ 2.4.1 11477 lt_prog_compiler_pic_CXX='-pic' 11478 ;; 11479 cxx*) 11480 # Digital/Compaq C++ 11481 lt_prog_compiler_wl_CXX='-Wl,' 11482 # Make sure the PIC flag is empty. It appears that all Alpha 11483 # Linux and Compaq Tru64 Unix objects are PIC. 11484 lt_prog_compiler_pic_CXX= 11485 lt_prog_compiler_static_CXX='-non_shared' 11486 ;; 11487 *) 11488 ;; 11489 esac 11490 ;; 11491 psos*) 11492 ;; 11493 solaris*) 11494 case $cc_basename in 11495 CC*) 11496 # Sun C++ 4.2, 5.x and Centerline C++ 11497 lt_prog_compiler_pic_CXX='-KPIC' 11498 lt_prog_compiler_static_CXX='-Bstatic' 11499 lt_prog_compiler_wl_CXX='-Qoption ld ' 11500 ;; 11501 gcx*) 11502 # Green Hills C++ Compiler 11503 lt_prog_compiler_pic_CXX='-PIC' 11504 ;; 11505 *) 11506 ;; 11507 esac 11508 ;; 11509 sunos4*) 11510 case $cc_basename in 11511 CC*) 11512 # Sun C++ 4.x 11513 lt_prog_compiler_pic_CXX='-pic' 11514 lt_prog_compiler_static_CXX='-Bstatic' 11515 ;; 11516 lcc*) 11517 # Lucid 11518 lt_prog_compiler_pic_CXX='-pic' 11519 ;; 11520 *) 11521 ;; 11522 esac 11523 ;; 11524 tandem*) 11525 case $cc_basename in 11526 NCC*) 11527 # NonStop-UX NCC 3.20 11528 lt_prog_compiler_pic_CXX='-KPIC' 11529 ;; 11530 *) 11531 ;; 11532 esac 11533 ;; 11534 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11535 case $cc_basename in 11536 CC*) 11537 lt_prog_compiler_wl_CXX='-Wl,' 11538 lt_prog_compiler_pic_CXX='-KPIC' 11539 lt_prog_compiler_static_CXX='-Bstatic' 11540 ;; 11541 esac 11542 ;; 11543 vxworks*) 11544 ;; 11545 *) 11546 lt_prog_compiler_can_build_shared_CXX=no 11547 ;; 11548 esac 11549 fi 11550 11551echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11552echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11553 11554# 11555# Check to make sure the PIC flag actually works. 11556# 11557if test -n "$lt_prog_compiler_pic_CXX"; then 11558 11559echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11560echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11561if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11562 echo $ECHO_N "(cached) $ECHO_C" >&6 11563else 11564 lt_prog_compiler_pic_works_CXX=no 11565 ac_outfile=conftest.$ac_objext 11566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11567 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11568 # Insert the option either (1) after the last *FLAGS variable, or 11569 # (2) before a word containing "conftest.", or (3) at the end. 11570 # Note that $ac_compile itself does not contain backslashes and begins 11571 # with a dollar sign (not a hyphen), so the echo should work correctly. 11572 # The option is referenced via a variable to avoid confusing sed. 11573 lt_compile=`echo "$ac_compile" | $SED \ 11574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11576 -e 's:$: $lt_compiler_flag:'` 11577 (eval echo "\"\$as_me:11577: $lt_compile\"" >&5) 11578 (eval "$lt_compile" 2>conftest.err) 11579 ac_status=$? 11580 cat conftest.err >&5 11581 echo "$as_me:11581: \$? = $ac_status" >&5 11582 if (exit $ac_status) && test -s "$ac_outfile"; then 11583 # The compiler can only warn and ignore the option if not recognized 11584 # So say no if there are warnings other than the usual output. 11585 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11588 lt_prog_compiler_pic_works_CXX=yes 11589 fi 11590 fi 11591 $rm conftest* 11592 11593fi 11594echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11595echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11596 11597if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11598 case $lt_prog_compiler_pic_CXX in 11599 "" | " "*) ;; 11600 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11601 esac 11602else 11603 lt_prog_compiler_pic_CXX= 11604 lt_prog_compiler_can_build_shared_CXX=no 11605fi 11606 11607fi 11608case $host_os in 11609 # For platforms which do not support PIC, -DPIC is meaningless: 11610 *djgpp*) 11611 lt_prog_compiler_pic_CXX= 11612 ;; 11613 *) 11614 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11615 ;; 11616esac 11617 11618# 11619# Check to make sure the static flag actually works. 11620# 11621wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 11622echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11623echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11624if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 11625 echo $ECHO_N "(cached) $ECHO_C" >&6 11626else 11627 lt_prog_compiler_static_works_CXX=no 11628 save_LDFLAGS="$LDFLAGS" 11629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11630 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11632 # The linker can only warn and ignore the option if not recognized 11633 # So say no if there are warnings 11634 if test -s conftest.err; then 11635 # Append any errors to the config.log. 11636 cat conftest.err 1>&5 11637 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11639 if diff conftest.exp conftest.er2 >/dev/null; then 11640 lt_prog_compiler_static_works_CXX=yes 11641 fi 11642 else 11643 lt_prog_compiler_static_works_CXX=yes 11644 fi 11645 fi 11646 $rm conftest* 11647 LDFLAGS="$save_LDFLAGS" 11648 11649fi 11650echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 11651echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 11652 11653if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 11654 : 11655else 11656 lt_prog_compiler_static_CXX= 11657fi 11658 11659 11660echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11661echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11662if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11663 echo $ECHO_N "(cached) $ECHO_C" >&6 11664else 11665 lt_cv_prog_compiler_c_o_CXX=no 11666 $rm -r conftest 2>/dev/null 11667 mkdir conftest 11668 cd conftest 11669 mkdir out 11670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11671 11672 lt_compiler_flag="-o out/conftest2.$ac_objext" 11673 # Insert the option either (1) after the last *FLAGS variable, or 11674 # (2) before a word containing "conftest.", or (3) at the end. 11675 # Note that $ac_compile itself does not contain backslashes and begins 11676 # with a dollar sign (not a hyphen), so the echo should work correctly. 11677 lt_compile=`echo "$ac_compile" | $SED \ 11678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11680 -e 's:$: $lt_compiler_flag:'` 11681 (eval echo "\"\$as_me:11681: $lt_compile\"" >&5) 11682 (eval "$lt_compile" 2>out/conftest.err) 11683 ac_status=$? 11684 cat out/conftest.err >&5 11685 echo "$as_me:11685: \$? = $ac_status" >&5 11686 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11687 then 11688 # The compiler can only warn and ignore the option if not recognized 11689 # So say no if there are warnings 11690 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11691 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11692 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11693 lt_cv_prog_compiler_c_o_CXX=yes 11694 fi 11695 fi 11696 chmod u+w . 2>&5 11697 $rm conftest* 11698 # SGI C++ compiler will create directory out/ii_files/ for 11699 # template instantiation 11700 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11701 $rm out/* && rmdir out 11702 cd .. 11703 rmdir conftest 11704 $rm conftest* 11705 11706fi 11707echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11708echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11709 11710 11711hard_links="nottested" 11712if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11713 # do not overwrite the value of need_locks provided by the user 11714 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11715echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11716 hard_links=yes 11717 $rm conftest* 11718 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11719 touch conftest.a 11720 ln conftest.a conftest.b 2>&5 || hard_links=no 11721 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11722 echo "$as_me:$LINENO: result: $hard_links" >&5 11723echo "${ECHO_T}$hard_links" >&6 11724 if test "$hard_links" = no; then 11725 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11726echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11727 need_locks=warn 11728 fi 11729else 11730 need_locks=no 11731fi 11732 11733echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11734echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11735 11736 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11737 case $host_os in 11738 aix4* | aix5*) 11739 # If we're using GNU nm, then we don't want the "-C" option. 11740 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11741 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11742 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' 11743 else 11744 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' 11745 fi 11746 ;; 11747 pw32*) 11748 export_symbols_cmds_CXX="$ltdll_cmds" 11749 ;; 11750 cygwin* | mingw*) 11751 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' 11752 ;; 11753 *) 11754 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11755 ;; 11756 esac 11757 11758echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11759echo "${ECHO_T}$ld_shlibs_CXX" >&6 11760test "$ld_shlibs_CXX" = no && can_build_shared=no 11761 11762# 11763# Do we need to explicitly link libc? 11764# 11765case "x$archive_cmds_need_lc_CXX" in 11766x|xyes) 11767 # Assume -lc should be added 11768 archive_cmds_need_lc_CXX=yes 11769 11770 if test "$enable_shared" = yes && test "$GCC" = yes; then 11771 case $archive_cmds_CXX in 11772 *'~'*) 11773 # FIXME: we may have to deal with multi-command sequences. 11774 ;; 11775 '$CC '*) 11776 # Test whether the compiler implicitly links with -lc since on some 11777 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11778 # to ld, don't add -lc before -lgcc. 11779 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11781 $rm conftest* 11782 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11783 11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11785 (eval $ac_compile) 2>&5 11786 ac_status=$? 11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11788 (exit $ac_status); } 2>conftest.err; then 11789 soname=conftest 11790 lib=conftest 11791 libobjs=conftest.$ac_objext 11792 deplibs= 11793 wl=$lt_prog_compiler_wl_CXX 11794 pic_flag=$lt_prog_compiler_pic_CXX 11795 compiler_flags=-v 11796 linker_flags=-v 11797 verstring= 11798 output_objdir=. 11799 libname=conftest 11800 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11801 allow_undefined_flag_CXX= 11802 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11803 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11804 ac_status=$? 11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11806 (exit $ac_status); } 11807 then 11808 archive_cmds_need_lc_CXX=no 11809 else 11810 archive_cmds_need_lc_CXX=yes 11811 fi 11812 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11813 else 11814 cat conftest.err 1>&5 11815 fi 11816 $rm conftest* 11817 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11818echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11819 ;; 11820 esac 11821 fi 11822 ;; 11823esac 11824 11825echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11826echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11827library_names_spec= 11828libname_spec='lib$name' 11829soname_spec= 11830shrext_cmds=".so" 11831postinstall_cmds= 11832postuninstall_cmds= 11833finish_cmds= 11834finish_eval= 11835shlibpath_var= 11836shlibpath_overrides_runpath=unknown 11837version_type=none 11838dynamic_linker="$host_os ld.so" 11839sys_lib_dlsearch_path_spec="/lib /usr/lib" 11840if test "$GCC" = yes; then 11841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11842 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11843 # if the path contains ";" then we assume it to be the separator 11844 # otherwise default to the standard path separator (i.e. ":") - it is 11845 # assumed that no part of a normal pathname contains ";" but that should 11846 # okay in the real world where ";" in dirpaths is itself problematic. 11847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11848 else 11849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11850 fi 11851else 11852 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11853fi 11854need_lib_prefix=unknown 11855hardcode_into_libs=no 11856 11857# when you set need_version to no, make sure it does not cause -set_version 11858# flags to be left without arguments 11859need_version=unknown 11860 11861case $host_os in 11862aix3*) 11863 version_type=linux 11864 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11865 shlibpath_var=LIBPATH 11866 11867 # AIX 3 has no versioning support, so we append a major version to the name. 11868 soname_spec='${libname}${release}${shared_ext}$major' 11869 ;; 11870 11871aix4* | aix5*) 11872 version_type=linux 11873 need_lib_prefix=no 11874 need_version=no 11875 hardcode_into_libs=yes 11876 if test "$host_cpu" = ia64; then 11877 # AIX 5 supports IA64 11878 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11879 shlibpath_var=LD_LIBRARY_PATH 11880 else 11881 # With GCC up to 2.95.x, collect2 would create an import file 11882 # for dependence libraries. The import file would start with 11883 # the line `#! .'. This would cause the generated library to 11884 # depend on `.', always an invalid library. This was fixed in 11885 # development snapshots of GCC prior to 3.0. 11886 case $host_os in 11887 aix4 | aix4.[01] | aix4.[01].*) 11888 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11889 echo ' yes ' 11890 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11891 : 11892 else 11893 can_build_shared=no 11894 fi 11895 ;; 11896 esac 11897 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11898 # soname into executable. Probably we can add versioning support to 11899 # collect2, so additional links can be useful in future. 11900 if test "$aix_use_runtimelinking" = yes; then 11901 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11902 # instead of lib<name>.a to let people know that these are not 11903 # typical AIX shared libraries. 11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11905 else 11906 # We preserve .a as extension for shared libraries through AIX4.2 11907 # and later when we are not doing run time linking. 11908 library_names_spec='${libname}${release}.a $libname.a' 11909 soname_spec='${libname}${release}${shared_ext}$major' 11910 fi 11911 shlibpath_var=LIBPATH 11912 fi 11913 ;; 11914 11915amigaos*) 11916 library_names_spec='$libname.ixlibrary $libname.a' 11917 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11918 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' 11919 ;; 11920 11921beos*) 11922 library_names_spec='${libname}${shared_ext}' 11923 dynamic_linker="$host_os ld.so" 11924 shlibpath_var=LIBRARY_PATH 11925 ;; 11926 11927bsdi[45]*) 11928 version_type=linux 11929 need_version=no 11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11931 soname_spec='${libname}${release}${shared_ext}$major' 11932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11933 shlibpath_var=LD_LIBRARY_PATH 11934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11936 # the default ld.so.conf also contains /usr/contrib/lib and 11937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11938 # libtool to hard-code these into programs 11939 ;; 11940 11941cygwin* | mingw* | pw32*) 11942 version_type=windows 11943 shrext_cmds=".dll" 11944 need_version=no 11945 need_lib_prefix=no 11946 11947 case $GCC,$host_os in 11948 yes,cygwin* | yes,mingw* | yes,pw32*) 11949 library_names_spec='$libname.dll.a' 11950 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11951 postinstall_cmds='base_file=`basename \${file}`~ 11952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11953 dldir=$destdir/`dirname \$dlpath`~ 11954 test -d \$dldir || mkdir -p \$dldir~ 11955 $install_prog $dir/$dlname \$dldir/$dlname~ 11956 chmod a+x \$dldir/$dlname' 11957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11958 dlpath=$dir/\$dldll~ 11959 $rm \$dlpath' 11960 shlibpath_overrides_runpath=yes 11961 11962 case $host_os in 11963 cygwin*) 11964 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11966 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11967 ;; 11968 mingw*) 11969 # MinGW DLLs use traditional 'lib' prefix 11970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11971 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11972 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11973 # It is most probably a Windows format PATH printed by 11974 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11975 # path with ; separators, and with drive letters. We can handle the 11976 # drive letters (cygwin fileutils understands them), so leave them, 11977 # especially as we might pass files found there to a mingw objdump, 11978 # which wouldn't understand a cygwinified path. Ahh. 11979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11980 else 11981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11982 fi 11983 ;; 11984 pw32*) 11985 # pw32 DLLs use 'pw' prefix rather than 'lib' 11986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11987 ;; 11988 esac 11989 ;; 11990 11991 *) 11992 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11993 ;; 11994 esac 11995 dynamic_linker='Win32 ld.exe' 11996 # FIXME: first we should search . and the directory the executable is in 11997 shlibpath_var=PATH 11998 ;; 11999 12000darwin* | rhapsody*) 12001 dynamic_linker="$host_os dyld" 12002 version_type=darwin 12003 need_lib_prefix=no 12004 need_version=no 12005 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12006 soname_spec='${libname}${release}${major}$shared_ext' 12007 shlibpath_overrides_runpath=yes 12008 shlibpath_var=DYLD_LIBRARY_PATH 12009 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12010 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12011 if test "$GCC" = yes; then 12012 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"` 12013 else 12014 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12015 fi 12016 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12017 ;; 12018 12019dgux*) 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 ;; 12027 12028freebsd1*) 12029 dynamic_linker=no 12030 ;; 12031 12032kfreebsd*-gnu) 12033 version_type=linux 12034 need_lib_prefix=no 12035 need_version=no 12036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12037 soname_spec='${libname}${release}${shared_ext}$major' 12038 shlibpath_var=LD_LIBRARY_PATH 12039 shlibpath_overrides_runpath=no 12040 hardcode_into_libs=yes 12041 dynamic_linker='GNU ld.so' 12042 ;; 12043 12044freebsd* | dragonfly*) 12045 # DragonFly does not have aout. When/if they implement a new 12046 # versioning mechanism, adjust this. 12047 if test -x /usr/bin/objformat; then 12048 objformat=`/usr/bin/objformat` 12049 else 12050 case $host_os in 12051 freebsd[123]*) objformat=aout ;; 12052 *) objformat=elf ;; 12053 esac 12054 fi 12055 version_type=freebsd-$objformat 12056 case $version_type in 12057 freebsd-elf*) 12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12059 need_version=no 12060 need_lib_prefix=no 12061 ;; 12062 freebsd-*) 12063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12064 need_version=yes 12065 ;; 12066 esac 12067 shlibpath_var=LD_LIBRARY_PATH 12068 case $host_os in 12069 freebsd2*) 12070 shlibpath_overrides_runpath=yes 12071 ;; 12072 freebsd3.[01]* | freebsdelf3.[01]*) 12073 shlibpath_overrides_runpath=yes 12074 hardcode_into_libs=yes 12075 ;; 12076 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12077 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12078 shlibpath_overrides_runpath=no 12079 hardcode_into_libs=yes 12080 ;; 12081 freebsd*) # from 4.6 on 12082 shlibpath_overrides_runpath=yes 12083 hardcode_into_libs=yes 12084 ;; 12085 esac 12086 ;; 12087 12088gnu*) 12089 version_type=linux 12090 need_lib_prefix=no 12091 need_version=no 12092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12093 soname_spec='${libname}${release}${shared_ext}$major' 12094 shlibpath_var=LD_LIBRARY_PATH 12095 hardcode_into_libs=yes 12096 ;; 12097 12098hpux9* | hpux10* | hpux11*) 12099 # Give a soname corresponding to the major version so that dld.sl refuses to 12100 # link against other versions. 12101 version_type=sunos 12102 need_lib_prefix=no 12103 need_version=no 12104 case $host_cpu in 12105 ia64*) 12106 shrext_cmds='.so' 12107 hardcode_into_libs=yes 12108 dynamic_linker="$host_os dld.so" 12109 shlibpath_var=LD_LIBRARY_PATH 12110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12112 soname_spec='${libname}${release}${shared_ext}$major' 12113 if test "X$HPUX_IA64_MODE" = X32; then 12114 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12115 else 12116 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12117 fi 12118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12119 ;; 12120 hppa*64*) 12121 shrext_cmds='.sl' 12122 hardcode_into_libs=yes 12123 dynamic_linker="$host_os dld.sl" 12124 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12127 soname_spec='${libname}${release}${shared_ext}$major' 12128 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12130 ;; 12131 *) 12132 shrext_cmds='.sl' 12133 dynamic_linker="$host_os dld.sl" 12134 shlibpath_var=SHLIB_PATH 12135 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12137 soname_spec='${libname}${release}${shared_ext}$major' 12138 ;; 12139 esac 12140 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12141 postinstall_cmds='chmod 555 $lib' 12142 ;; 12143 12144interix3*) 12145 version_type=linux 12146 need_lib_prefix=no 12147 need_version=no 12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12149 soname_spec='${libname}${release}${shared_ext}$major' 12150 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12151 shlibpath_var=LD_LIBRARY_PATH 12152 shlibpath_overrides_runpath=no 12153 hardcode_into_libs=yes 12154 ;; 12155 12156irix5* | irix6* | nonstopux*) 12157 case $host_os in 12158 nonstopux*) version_type=nonstopux ;; 12159 *) 12160 if test "$lt_cv_prog_gnu_ld" = yes; then 12161 version_type=linux 12162 else 12163 version_type=irix 12164 fi ;; 12165 esac 12166 need_lib_prefix=no 12167 need_version=no 12168 soname_spec='${libname}${release}${shared_ext}$major' 12169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12170 case $host_os in 12171 irix5* | nonstopux*) 12172 libsuff= shlibsuff= 12173 ;; 12174 *) 12175 case $LD in # libtool.m4 will add one of these switches to LD 12176 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12177 libsuff= shlibsuff= libmagic=32-bit;; 12178 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12179 libsuff=32 shlibsuff=N32 libmagic=N32;; 12180 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12181 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12182 *) libsuff= shlibsuff= libmagic=never-match;; 12183 esac 12184 ;; 12185 esac 12186 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12187 shlibpath_overrides_runpath=no 12188 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12189 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12190 hardcode_into_libs=yes 12191 ;; 12192 12193# No shared lib support for Linux oldld, aout, or coff. 12194linux*oldld* | linux*aout* | linux*coff*) 12195 dynamic_linker=no 12196 ;; 12197 12198# This must be Linux ELF. 12199linux*) 12200 version_type=linux 12201 need_lib_prefix=no 12202 need_version=no 12203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12204 soname_spec='${libname}${release}${shared_ext}$major' 12205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12206 shlibpath_var=LD_LIBRARY_PATH 12207 shlibpath_overrides_runpath=no 12208 # This implies no fast_install, which is unacceptable. 12209 # Some rework will be needed to allow for fast_install 12210 # before this can be enabled. 12211 hardcode_into_libs=yes 12212 12213 # find out which ABI we are using 12214 libsuff= 12215 case "$host_cpu" in 12216 x86_64*|s390x*|powerpc64*) 12217 echo '#line 12217 "configure"' > conftest.$ac_ext 12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12219 (eval $ac_compile) 2>&5 12220 ac_status=$? 12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12222 (exit $ac_status); }; then 12223 case `/usr/bin/file conftest.$ac_objext` in 12224 *64-bit*) 12225 libsuff=64 12226 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12227 ;; 12228 esac 12229 fi 12230 rm -rf conftest* 12231 ;; 12232 esac 12233 12234 # Append ld.so.conf contents to the search path 12235 if test -f /etc/ld.so.conf; then 12236 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12237 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 12238 fi 12239 12240 # We used to test for /lib/ld.so.1 and disable shared libraries on 12241 # powerpc, because MkLinux only supported shared libraries with the 12242 # GNU dynamic linker. Since this was broken with cross compilers, 12243 # most powerpc-linux boxes support dynamic linking these days and 12244 # people can always --disable-shared, the test was removed, and we 12245 # assume the GNU/Linux dynamic linker is in use. 12246 dynamic_linker='GNU/Linux ld.so' 12247 ;; 12248 12249knetbsd*-gnu) 12250 version_type=linux 12251 need_lib_prefix=no 12252 need_version=no 12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12254 soname_spec='${libname}${release}${shared_ext}$major' 12255 shlibpath_var=LD_LIBRARY_PATH 12256 shlibpath_overrides_runpath=no 12257 hardcode_into_libs=yes 12258 dynamic_linker='GNU ld.so' 12259 ;; 12260 12261netbsd*) 12262 version_type=sunos 12263 need_lib_prefix=no 12264 need_version=no 12265 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12268 dynamic_linker='NetBSD (a.out) ld.so' 12269 else 12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12271 soname_spec='${libname}${release}${shared_ext}$major' 12272 dynamic_linker='NetBSD ld.elf_so' 12273 fi 12274 shlibpath_var=LD_LIBRARY_PATH 12275 shlibpath_overrides_runpath=yes 12276 hardcode_into_libs=yes 12277 ;; 12278 12279newsos6) 12280 version_type=linux 12281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12282 shlibpath_var=LD_LIBRARY_PATH 12283 shlibpath_overrides_runpath=yes 12284 ;; 12285 12286nto-qnx*) 12287 version_type=linux 12288 need_lib_prefix=no 12289 need_version=no 12290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12291 soname_spec='${libname}${release}${shared_ext}$major' 12292 shlibpath_var=LD_LIBRARY_PATH 12293 shlibpath_overrides_runpath=yes 12294 ;; 12295 12296openbsd*) 12297 version_type=sunos 12298 sys_lib_dlsearch_path_spec="/usr/lib" 12299 need_lib_prefix=no 12300 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12301 case $host_os in 12302 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12303 *) need_version=no ;; 12304 esac 12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12307 shlibpath_var=LD_LIBRARY_PATH 12308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12309 case $host_os in 12310 openbsd2.[89] | openbsd2.[89].*) 12311 shlibpath_overrides_runpath=no 12312 ;; 12313 *) 12314 shlibpath_overrides_runpath=yes 12315 ;; 12316 esac 12317 else 12318 shlibpath_overrides_runpath=yes 12319 fi 12320 ;; 12321 12322os2*) 12323 libname_spec='$name' 12324 shrext_cmds=".dll" 12325 need_lib_prefix=no 12326 library_names_spec='$libname${shared_ext} $libname.a' 12327 dynamic_linker='OS/2 ld.exe' 12328 shlibpath_var=LIBPATH 12329 ;; 12330 12331osf3* | osf4* | osf5*) 12332 version_type=osf 12333 need_lib_prefix=no 12334 need_version=no 12335 soname_spec='${libname}${release}${shared_ext}$major' 12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12337 shlibpath_var=LD_LIBRARY_PATH 12338 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12339 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12340 ;; 12341 12342solaris*) 12343 version_type=linux 12344 need_lib_prefix=no 12345 need_version=no 12346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12347 soname_spec='${libname}${release}${shared_ext}$major' 12348 shlibpath_var=LD_LIBRARY_PATH 12349 shlibpath_overrides_runpath=yes 12350 hardcode_into_libs=yes 12351 # ldd complains unless libraries are executable 12352 postinstall_cmds='chmod +x $lib' 12353 ;; 12354 12355sunos4*) 12356 version_type=sunos 12357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12358 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12359 shlibpath_var=LD_LIBRARY_PATH 12360 shlibpath_overrides_runpath=yes 12361 if test "$with_gnu_ld" = yes; then 12362 need_lib_prefix=no 12363 fi 12364 need_version=yes 12365 ;; 12366 12367sysv4 | sysv4.3*) 12368 version_type=linux 12369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12370 soname_spec='${libname}${release}${shared_ext}$major' 12371 shlibpath_var=LD_LIBRARY_PATH 12372 case $host_vendor in 12373 sni) 12374 shlibpath_overrides_runpath=no 12375 need_lib_prefix=no 12376 export_dynamic_flag_spec='${wl}-Blargedynsym' 12377 runpath_var=LD_RUN_PATH 12378 ;; 12379 siemens) 12380 need_lib_prefix=no 12381 ;; 12382 motorola) 12383 need_lib_prefix=no 12384 need_version=no 12385 shlibpath_overrides_runpath=no 12386 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12387 ;; 12388 esac 12389 ;; 12390 12391sysv4*MP*) 12392 if test -d /usr/nec ;then 12393 version_type=linux 12394 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12395 soname_spec='$libname${shared_ext}.$major' 12396 shlibpath_var=LD_LIBRARY_PATH 12397 fi 12398 ;; 12399 12400sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12401 version_type=freebsd-elf 12402 need_lib_prefix=no 12403 need_version=no 12404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12405 soname_spec='${libname}${release}${shared_ext}$major' 12406 shlibpath_var=LD_LIBRARY_PATH 12407 hardcode_into_libs=yes 12408 if test "$with_gnu_ld" = yes; then 12409 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12410 shlibpath_overrides_runpath=no 12411 else 12412 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12413 shlibpath_overrides_runpath=yes 12414 case $host_os in 12415 sco3.2v5*) 12416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12417 ;; 12418 esac 12419 fi 12420 sys_lib_dlsearch_path_spec='/usr/lib' 12421 ;; 12422 12423uts4*) 12424 version_type=linux 12425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12426 soname_spec='${libname}${release}${shared_ext}$major' 12427 shlibpath_var=LD_LIBRARY_PATH 12428 ;; 12429 12430*) 12431 dynamic_linker=no 12432 ;; 12433esac 12434echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12435echo "${ECHO_T}$dynamic_linker" >&6 12436test "$dynamic_linker" = no && can_build_shared=no 12437 12438variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12439if test "$GCC" = yes; then 12440 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12441fi 12442 12443echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12444echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12445hardcode_action_CXX= 12446if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12447 test -n "$runpath_var_CXX" || \ 12448 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12449 12450 # We can hardcode non-existant directories. 12451 if test "$hardcode_direct_CXX" != no && 12452 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12453 # have to relink, otherwise we might link with an installed library 12454 # when we should be linking with a yet-to-be-installed one 12455 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12456 test "$hardcode_minus_L_CXX" != no; then 12457 # Linking always hardcodes the temporary library directory. 12458 hardcode_action_CXX=relink 12459 else 12460 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12461 hardcode_action_CXX=immediate 12462 fi 12463else 12464 # We cannot hardcode anything, or else we can only hardcode existing 12465 # directories. 12466 hardcode_action_CXX=unsupported 12467fi 12468echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12469echo "${ECHO_T}$hardcode_action_CXX" >&6 12470 12471if test "$hardcode_action_CXX" = relink; then 12472 # Fast installation is not supported 12473 enable_fast_install=no 12474elif test "$shlibpath_overrides_runpath" = yes || 12475 test "$enable_shared" = no; then 12476 # Fast installation is not necessary 12477 enable_fast_install=needless 12478fi 12479 12480 12481# The else clause should only fire when bootstrapping the 12482# libtool distribution, otherwise you forgot to ship ltmain.sh 12483# with your package, and you will get complaints that there are 12484# no rules to generate ltmain.sh. 12485if test -f "$ltmain"; then 12486 # See if we are running on zsh, and set the options which allow our commands through 12487 # without removal of \ escapes. 12488 if test -n "${ZSH_VERSION+set}" ; then 12489 setopt NO_GLOB_SUBST 12490 fi 12491 # Now quote all the things that may contain metacharacters while being 12492 # careful not to overquote the AC_SUBSTed values. We take copies of the 12493 # variables and quote the copies for generation of the libtool script. 12494 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12495 SED SHELL STRIP \ 12496 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12497 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12498 deplibs_check_method reload_flag reload_cmds need_locks \ 12499 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12500 lt_cv_sys_global_symbol_to_c_name_address \ 12501 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12502 old_postinstall_cmds old_postuninstall_cmds \ 12503 compiler_CXX \ 12504 CC_CXX \ 12505 LD_CXX \ 12506 lt_prog_compiler_wl_CXX \ 12507 lt_prog_compiler_pic_CXX \ 12508 lt_prog_compiler_static_CXX \ 12509 lt_prog_compiler_no_builtin_flag_CXX \ 12510 export_dynamic_flag_spec_CXX \ 12511 thread_safe_flag_spec_CXX \ 12512 whole_archive_flag_spec_CXX \ 12513 enable_shared_with_static_runtimes_CXX \ 12514 old_archive_cmds_CXX \ 12515 old_archive_from_new_cmds_CXX \ 12516 predep_objects_CXX \ 12517 postdep_objects_CXX \ 12518 predeps_CXX \ 12519 postdeps_CXX \ 12520 compiler_lib_search_path_CXX \ 12521 archive_cmds_CXX \ 12522 archive_expsym_cmds_CXX \ 12523 postinstall_cmds_CXX \ 12524 postuninstall_cmds_CXX \ 12525 old_archive_from_expsyms_cmds_CXX \ 12526 allow_undefined_flag_CXX \ 12527 no_undefined_flag_CXX \ 12528 export_symbols_cmds_CXX \ 12529 hardcode_libdir_flag_spec_CXX \ 12530 hardcode_libdir_flag_spec_ld_CXX \ 12531 hardcode_libdir_separator_CXX \ 12532 hardcode_automatic_CXX \ 12533 module_cmds_CXX \ 12534 module_expsym_cmds_CXX \ 12535 lt_cv_prog_compiler_c_o_CXX \ 12536 exclude_expsyms_CXX \ 12537 include_expsyms_CXX; do 12538 12539 case $var in 12540 old_archive_cmds_CXX | \ 12541 old_archive_from_new_cmds_CXX | \ 12542 archive_cmds_CXX | \ 12543 archive_expsym_cmds_CXX | \ 12544 module_cmds_CXX | \ 12545 module_expsym_cmds_CXX | \ 12546 old_archive_from_expsyms_cmds_CXX | \ 12547 export_symbols_cmds_CXX | \ 12548 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12549 postinstall_cmds | postuninstall_cmds | \ 12550 old_postinstall_cmds | old_postuninstall_cmds | \ 12551 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12552 # Double-quote double-evaled strings. 12553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12554 ;; 12555 *) 12556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12557 ;; 12558 esac 12559 done 12560 12561 case $lt_echo in 12562 *'\$0 --fallback-echo"') 12563 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12564 ;; 12565 esac 12566 12567cfgfile="$ofile" 12568 12569 cat <<__EOF__ >> "$cfgfile" 12570# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12571 12572# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12573 12574# Shell to use when invoking shell scripts. 12575SHELL=$lt_SHELL 12576 12577# Whether or not to build shared libraries. 12578build_libtool_libs=$enable_shared 12579 12580# Whether or not to build static libraries. 12581build_old_libs=$enable_static 12582 12583# Whether or not to add -lc for building shared libraries. 12584build_libtool_need_lc=$archive_cmds_need_lc_CXX 12585 12586# Whether or not to disallow shared libs when runtime libs are static 12587allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12588 12589# Whether or not to optimize for fast installation. 12590fast_install=$enable_fast_install 12591 12592# The host system. 12593host_alias=$host_alias 12594host=$host 12595host_os=$host_os 12596 12597# The build system. 12598build_alias=$build_alias 12599build=$build 12600build_os=$build_os 12601 12602# An echo program that does not interpret backslashes. 12603echo=$lt_echo 12604 12605# The archiver. 12606AR=$lt_AR 12607AR_FLAGS=$lt_AR_FLAGS 12608 12609# A C compiler. 12610LTCC=$lt_LTCC 12611 12612# LTCC compiler flags. 12613LTCFLAGS=$lt_LTCFLAGS 12614 12615# A language-specific compiler. 12616CC=$lt_compiler_CXX 12617 12618# Is the compiler the GNU C compiler? 12619with_gcc=$GCC_CXX 12620 12621gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 12622gcc_ver=\`gcc -dumpversion\` 12623 12624# An ERE matcher. 12625EGREP=$lt_EGREP 12626 12627# The linker used to build libraries. 12628LD=$lt_LD_CXX 12629 12630# Whether we need hard or soft links. 12631LN_S=$lt_LN_S 12632 12633# A BSD-compatible nm program. 12634NM=$lt_NM 12635 12636# A symbol stripping program 12637STRIP=$lt_STRIP 12638 12639# Used to examine libraries when file_magic_cmd begins "file" 12640MAGIC_CMD=$MAGIC_CMD 12641 12642# Used on cygwin: DLL creation program. 12643DLLTOOL="$DLLTOOL" 12644 12645# Used on cygwin: object dumper. 12646OBJDUMP="$OBJDUMP" 12647 12648# Used on cygwin: assembler. 12649AS="$AS" 12650 12651# The name of the directory that contains temporary libtool files. 12652objdir=$objdir 12653 12654# How to create reloadable object files. 12655reload_flag=$lt_reload_flag 12656reload_cmds=$lt_reload_cmds 12657 12658# How to pass a linker flag through the compiler. 12659wl=$lt_lt_prog_compiler_wl_CXX 12660 12661# Object file suffix (normally "o"). 12662objext="$ac_objext" 12663 12664# Old archive suffix (normally "a"). 12665libext="$libext" 12666 12667# Shared library suffix (normally ".so"). 12668shrext_cmds='$shrext_cmds' 12669 12670# Executable file suffix (normally ""). 12671exeext="$exeext" 12672 12673# Additional compiler flags for building library objects. 12674pic_flag=$lt_lt_prog_compiler_pic_CXX 12675pic_mode=$pic_mode 12676 12677# What is the maximum length of a command? 12678max_cmd_len=$lt_cv_sys_max_cmd_len 12679 12680# Does compiler simultaneously support -c and -o options? 12681compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12682 12683# Must we lock files when doing compilation? 12684need_locks=$lt_need_locks 12685 12686# Do we need the lib prefix for modules? 12687need_lib_prefix=$need_lib_prefix 12688 12689# Do we need a version for libraries? 12690need_version=$need_version 12691 12692# Whether dlopen is supported. 12693dlopen_support=$enable_dlopen 12694 12695# Whether dlopen of programs is supported. 12696dlopen_self=$enable_dlopen_self 12697 12698# Whether dlopen of statically linked programs is supported. 12699dlopen_self_static=$enable_dlopen_self_static 12700 12701# Compiler flag to prevent dynamic linking. 12702link_static_flag=$lt_lt_prog_compiler_static_CXX 12703 12704# Compiler flag to turn off builtin functions. 12705no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12706 12707# Compiler flag to allow reflexive dlopens. 12708export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12709 12710# Compiler flag to generate shared objects directly from archives. 12711whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12712 12713# Compiler flag to generate thread-safe objects. 12714thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12715 12716# Library versioning type. 12717version_type=$version_type 12718 12719# Format of library name prefix. 12720libname_spec=$lt_libname_spec 12721 12722# List of archive names. First name is the real one, the rest are links. 12723# The last name is the one that the linker finds with -lNAME. 12724library_names_spec=$lt_library_names_spec 12725 12726# The coded name of the library, if different from the real name. 12727soname_spec=$lt_soname_spec 12728 12729# Commands used to build and install an old-style archive. 12730RANLIB=$lt_RANLIB 12731old_archive_cmds=$lt_old_archive_cmds_CXX 12732old_postinstall_cmds=$lt_old_postinstall_cmds 12733old_postuninstall_cmds=$lt_old_postuninstall_cmds 12734 12735# Create an old-style archive from a shared archive. 12736old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12737 12738# Create a temporary old-style archive to link instead of a shared archive. 12739old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12740 12741# Commands used to build and install a shared archive. 12742archive_cmds=$lt_archive_cmds_CXX 12743archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12744postinstall_cmds=$lt_postinstall_cmds 12745postuninstall_cmds=$lt_postuninstall_cmds 12746 12747# Commands used to build a loadable module (assumed same as above if empty) 12748module_cmds=$lt_module_cmds_CXX 12749module_expsym_cmds=$lt_module_expsym_cmds_CXX 12750 12751# Commands to strip libraries. 12752old_striplib=$lt_old_striplib 12753striplib=$lt_striplib 12754 12755# Dependencies to place before the objects being linked to create a 12756# shared library. 12757predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12758 12759# Dependencies to place after the objects being linked to create a 12760# shared library. 12761postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12762 12763# Dependencies to place before the objects being linked to create a 12764# shared library. 12765predeps=$lt_predeps_CXX 12766 12767# Dependencies to place after the objects being linked to create a 12768# shared library. 12769postdeps=$lt_postdeps_CXX 12770 12771# The library search path used internally by the compiler when linking 12772# a shared library. 12773compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12774 12775# Method to check whether dependent libraries are shared objects. 12776deplibs_check_method=$lt_deplibs_check_method 12777 12778# Command to use when deplibs_check_method == file_magic. 12779file_magic_cmd=$lt_file_magic_cmd 12780 12781# Flag that allows shared libraries with undefined symbols to be built. 12782allow_undefined_flag=$lt_allow_undefined_flag_CXX 12783 12784# Flag that forces no undefined symbols. 12785no_undefined_flag=$lt_no_undefined_flag_CXX 12786 12787# Commands used to finish a libtool library installation in a directory. 12788finish_cmds=$lt_finish_cmds 12789 12790# Same as above, but a single script fragment to be evaled but not shown. 12791finish_eval=$lt_finish_eval 12792 12793# Take the output of nm and produce a listing of raw symbols and C names. 12794global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12795 12796# Transform the output of nm in a proper C declaration 12797global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12798 12799# Transform the output of nm in a C name address pair 12800global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12801 12802# This is the shared library runtime path variable. 12803runpath_var=$runpath_var 12804 12805# This is the shared library path variable. 12806shlibpath_var=$shlibpath_var 12807 12808# Is shlibpath searched before the hard-coded library search path? 12809shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12810 12811# How to hardcode a shared library path into an executable. 12812hardcode_action=$hardcode_action_CXX 12813 12814# Whether we should hardcode library paths into libraries. 12815hardcode_into_libs=$hardcode_into_libs 12816 12817# Flag to hardcode \$libdir into a binary during linking. 12818# This must work even if \$libdir does not exist. 12819hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12820 12821# If ld is used when linking, flag to hardcode \$libdir into 12822# a binary during linking. This must work even if \$libdir does 12823# not exist. 12824hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12825 12826# Whether we need a single -rpath flag with a separated argument. 12827hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12828 12829# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12830# resulting binary. 12831hardcode_direct=$hardcode_direct_CXX 12832 12833# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12834# resulting binary. 12835hardcode_minus_L=$hardcode_minus_L_CXX 12836 12837# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12838# the resulting binary. 12839hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12840 12841# Set to yes if building a shared library automatically hardcodes DIR into the library 12842# and all subsequent libraries and executables linked against it. 12843hardcode_automatic=$hardcode_automatic_CXX 12844 12845# Variables whose values should be saved in libtool wrapper scripts and 12846# restored at relink time. 12847variables_saved_for_relink="$variables_saved_for_relink" 12848 12849# Whether libtool must link a program against all its dependency libraries. 12850link_all_deplibs=$link_all_deplibs_CXX 12851 12852# Compile-time system search path for libraries 12853sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 12854 12855# Run-time system search path for libraries 12856sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12857 12858# Fix the shell variable \$srcfile for the compiler. 12859fix_srcfile_path="$fix_srcfile_path_CXX" 12860 12861# Set to yes if exported symbols are required. 12862always_export_symbols=$always_export_symbols_CXX 12863 12864# The commands to list exported symbols. 12865export_symbols_cmds=$lt_export_symbols_cmds_CXX 12866 12867# The commands to extract the exported symbol list from a shared archive. 12868extract_expsyms_cmds=$lt_extract_expsyms_cmds 12869 12870# Symbols that should not be listed in the preloaded symbols. 12871exclude_expsyms=$lt_exclude_expsyms_CXX 12872 12873# Symbols that must always be exported. 12874include_expsyms=$lt_include_expsyms_CXX 12875 12876# ### END LIBTOOL TAG CONFIG: $tagname 12877 12878__EOF__ 12879 12880 12881else 12882 # If there is no Makefile yet, we rely on a make rule to execute 12883 # `config.status --recheck' to rerun these tests and create the 12884 # libtool script then. 12885 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12886 if test -f "$ltmain_in"; then 12887 test -f Makefile && make "$ltmain" 12888 fi 12889fi 12890 12891 12892ac_ext=c 12893ac_cpp='$CPP $CPPFLAGS' 12894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12896ac_compiler_gnu=$ac_cv_c_compiler_gnu 12897 12898CC=$lt_save_CC 12899LDCXX=$LD 12900LD=$lt_save_LD 12901GCC=$lt_save_GCC 12902with_gnu_ldcxx=$with_gnu_ld 12903with_gnu_ld=$lt_save_with_gnu_ld 12904lt_cv_path_LDCXX=$lt_cv_path_LD 12905lt_cv_path_LD=$lt_save_path_LD 12906lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12907lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12908 12909 else 12910 tagname="" 12911 fi 12912 ;; 12913 12914 F77) 12915 if test -n "$F77" && test "X$F77" != "Xno"; then 12916 12917ac_ext=f 12918ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12919ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12920ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12921 12922 12923archive_cmds_need_lc_F77=no 12924allow_undefined_flag_F77= 12925always_export_symbols_F77=no 12926archive_expsym_cmds_F77= 12927export_dynamic_flag_spec_F77= 12928hardcode_direct_F77=no 12929hardcode_libdir_flag_spec_F77= 12930hardcode_libdir_flag_spec_ld_F77= 12931hardcode_libdir_separator_F77= 12932hardcode_minus_L_F77=no 12933hardcode_automatic_F77=no 12934module_cmds_F77= 12935module_expsym_cmds_F77= 12936link_all_deplibs_F77=unknown 12937old_archive_cmds_F77=$old_archive_cmds 12938no_undefined_flag_F77= 12939whole_archive_flag_spec_F77= 12940enable_shared_with_static_runtimes_F77=no 12941 12942# Source file extension for f77 test sources. 12943ac_ext=f 12944 12945# Object file extension for compiled f77 test sources. 12946objext=o 12947objext_F77=$objext 12948 12949# Code to be used in simple compile tests 12950lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12951 12952# Code to be used in simple link tests 12953lt_simple_link_test_code=" program t\n end\n" 12954 12955# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12956 12957# If no C compiler was specified, use CC. 12958LTCC=${LTCC-"$CC"} 12959 12960# If no C compiler flags were specified, use CFLAGS. 12961LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12962 12963# Allow CC to be a program name with arguments. 12964compiler=$CC 12965 12966 12967# save warnings/boilerplate of simple test code 12968ac_outfile=conftest.$ac_objext 12969printf "$lt_simple_compile_test_code" >conftest.$ac_ext 12970eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12971_lt_compiler_boilerplate=`cat conftest.err` 12972$rm conftest* 12973 12974ac_outfile=conftest.$ac_objext 12975printf "$lt_simple_link_test_code" >conftest.$ac_ext 12976eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12977_lt_linker_boilerplate=`cat conftest.err` 12978$rm conftest* 12979 12980 12981# Allow CC to be a program name with arguments. 12982lt_save_CC="$CC" 12983CC=${F77-"f77"} 12984compiler=$CC 12985compiler_F77=$CC 12986for cc_temp in $compiler""; do 12987 case $cc_temp in 12988 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12989 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12990 \-*) ;; 12991 *) break;; 12992 esac 12993done 12994cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12995 12996 12997echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12998echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12999echo "$as_me:$LINENO: result: $can_build_shared" >&5 13000echo "${ECHO_T}$can_build_shared" >&6 13001 13002echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13003echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13004test "$can_build_shared" = "no" && enable_shared=no 13005 13006# On AIX, shared libraries and static libraries use the same namespace, and 13007# are all built from PIC. 13008case $host_os in 13009aix3*) 13010 test "$enable_shared" = yes && enable_static=no 13011 if test -n "$RANLIB"; then 13012 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13013 postinstall_cmds='$RANLIB $lib' 13014 fi 13015 ;; 13016aix4* | aix5*) 13017 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13018 test "$enable_shared" = yes && enable_static=no 13019 fi 13020 ;; 13021esac 13022echo "$as_me:$LINENO: result: $enable_shared" >&5 13023echo "${ECHO_T}$enable_shared" >&6 13024 13025echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13026echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13027# Make sure either enable_shared or enable_static is yes. 13028test "$enable_shared" = yes || enable_static=yes 13029echo "$as_me:$LINENO: result: $enable_static" >&5 13030echo "${ECHO_T}$enable_static" >&6 13031 13032GCC_F77="$G77" 13033LD_F77="$LD" 13034 13035lt_prog_compiler_wl_F77= 13036lt_prog_compiler_pic_F77= 13037lt_prog_compiler_static_F77= 13038 13039echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13040echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13041 13042 if test "$GCC" = yes; then 13043 lt_prog_compiler_wl_F77='-Wl,' 13044 lt_prog_compiler_static_F77='-static' 13045 13046 case $host_os in 13047 aix*) 13048 # All AIX code is PIC. 13049 if test "$host_cpu" = ia64; then 13050 # AIX 5 now supports IA64 processor 13051 lt_prog_compiler_static_F77='-Bstatic' 13052 fi 13053 ;; 13054 13055 amigaos*) 13056 # FIXME: we need at least 68020 code to build shared libraries, but 13057 # adding the `-m68020' flag to GCC prevents building anything better, 13058 # like `-m68040'. 13059 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13060 ;; 13061 13062 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13063 # PIC is the default for these OSes. 13064 ;; 13065 13066 mingw* | pw32* | os2*) 13067 # This hack is so that the source file can tell whether it is being 13068 # built for inclusion in a dll (and should export symbols for example). 13069 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13070 ;; 13071 13072 darwin* | rhapsody*) 13073 # PIC is the default on this platform 13074 # Common symbols not allowed in MH_DYLIB files 13075 lt_prog_compiler_pic_F77='-fno-common' 13076 ;; 13077 13078 interix3*) 13079 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13080 # Instead, we relocate shared libraries at runtime. 13081 ;; 13082 13083 msdosdjgpp*) 13084 # Just because we use GCC doesn't mean we suddenly get shared libraries 13085 # on systems that don't support them. 13086 lt_prog_compiler_can_build_shared_F77=no 13087 enable_shared=no 13088 ;; 13089 13090 sysv4*MP*) 13091 if test -d /usr/nec; then 13092 lt_prog_compiler_pic_F77=-Kconform_pic 13093 fi 13094 ;; 13095 13096 hpux*) 13097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13098 # not for PA HP-UX. 13099 case $host_cpu in 13100 hppa*64*|ia64*) 13101 # +Z the default 13102 ;; 13103 *) 13104 lt_prog_compiler_pic_F77='-fPIC' 13105 ;; 13106 esac 13107 ;; 13108 13109 *) 13110 lt_prog_compiler_pic_F77='-fPIC' 13111 ;; 13112 esac 13113 else 13114 # PORTME Check for flag to pass linker flags through the system compiler. 13115 case $host_os in 13116 aix*) 13117 lt_prog_compiler_wl_F77='-Wl,' 13118 if test "$host_cpu" = ia64; then 13119 # AIX 5 now supports IA64 processor 13120 lt_prog_compiler_static_F77='-Bstatic' 13121 else 13122 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13123 fi 13124 ;; 13125 darwin*) 13126 # PIC is the default on this platform 13127 # Common symbols not allowed in MH_DYLIB files 13128 case $cc_basename in 13129 xlc*) 13130 lt_prog_compiler_pic_F77='-qnocommon' 13131 lt_prog_compiler_wl_F77='-Wl,' 13132 ;; 13133 esac 13134 ;; 13135 13136 mingw* | pw32* | os2*) 13137 # This hack is so that the source file can tell whether it is being 13138 # built for inclusion in a dll (and should export symbols for example). 13139 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13140 ;; 13141 13142 hpux9* | hpux10* | hpux11*) 13143 lt_prog_compiler_wl_F77='-Wl,' 13144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13145 # not for PA HP-UX. 13146 case $host_cpu in 13147 hppa*64*|ia64*) 13148 # +Z the default 13149 ;; 13150 *) 13151 lt_prog_compiler_pic_F77='+Z' 13152 ;; 13153 esac 13154 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13155 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13156 ;; 13157 13158 irix5* | irix6* | nonstopux*) 13159 lt_prog_compiler_wl_F77='-Wl,' 13160 # PIC (with -KPIC) is the default. 13161 lt_prog_compiler_static_F77='-non_shared' 13162 ;; 13163 13164 newsos6) 13165 lt_prog_compiler_pic_F77='-KPIC' 13166 lt_prog_compiler_static_F77='-Bstatic' 13167 ;; 13168 13169 linux*) 13170 case $cc_basename in 13171 icc* | ecc*) 13172 lt_prog_compiler_wl_F77='-Wl,' 13173 lt_prog_compiler_pic_F77='-KPIC' 13174 lt_prog_compiler_static_F77='-static' 13175 ;; 13176 pgcc* | pgf77* | pgf90* | pgf95*) 13177 # Portland Group compilers (*not* the Pentium gcc compiler, 13178 # which looks to be a dead project) 13179 lt_prog_compiler_wl_F77='-Wl,' 13180 lt_prog_compiler_pic_F77='-fpic' 13181 lt_prog_compiler_static_F77='-Bstatic' 13182 ;; 13183 ccc*) 13184 lt_prog_compiler_wl_F77='-Wl,' 13185 # All Alpha code is PIC. 13186 lt_prog_compiler_static_F77='-non_shared' 13187 ;; 13188 esac 13189 ;; 13190 13191 osf3* | osf4* | osf5*) 13192 lt_prog_compiler_wl_F77='-Wl,' 13193 # All OSF/1 code is PIC. 13194 lt_prog_compiler_static_F77='-non_shared' 13195 ;; 13196 13197 solaris*) 13198 lt_prog_compiler_pic_F77='-KPIC' 13199 lt_prog_compiler_static_F77='-Bstatic' 13200 case $cc_basename in 13201 f77* | f90* | f95*) 13202 lt_prog_compiler_wl_F77='-Qoption ld ';; 13203 *) 13204 lt_prog_compiler_wl_F77='-Wl,';; 13205 esac 13206 ;; 13207 13208 sunos4*) 13209 lt_prog_compiler_wl_F77='-Qoption ld ' 13210 lt_prog_compiler_pic_F77='-PIC' 13211 lt_prog_compiler_static_F77='-Bstatic' 13212 ;; 13213 13214 sysv4 | sysv4.2uw2* | sysv4.3*) 13215 lt_prog_compiler_wl_F77='-Wl,' 13216 lt_prog_compiler_pic_F77='-KPIC' 13217 lt_prog_compiler_static_F77='-Bstatic' 13218 ;; 13219 13220 sysv4*MP*) 13221 if test -d /usr/nec ;then 13222 lt_prog_compiler_pic_F77='-Kconform_pic' 13223 lt_prog_compiler_static_F77='-Bstatic' 13224 fi 13225 ;; 13226 13227 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13228 lt_prog_compiler_wl_F77='-Wl,' 13229 lt_prog_compiler_pic_F77='-KPIC' 13230 lt_prog_compiler_static_F77='-Bstatic' 13231 ;; 13232 13233 unicos*) 13234 lt_prog_compiler_wl_F77='-Wl,' 13235 lt_prog_compiler_can_build_shared_F77=no 13236 ;; 13237 13238 uts4*) 13239 lt_prog_compiler_pic_F77='-pic' 13240 lt_prog_compiler_static_F77='-Bstatic' 13241 ;; 13242 13243 *) 13244 lt_prog_compiler_can_build_shared_F77=no 13245 ;; 13246 esac 13247 fi 13248 13249echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13250echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13251 13252# 13253# Check to make sure the PIC flag actually works. 13254# 13255if test -n "$lt_prog_compiler_pic_F77"; then 13256 13257echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13258echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13259if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13260 echo $ECHO_N "(cached) $ECHO_C" >&6 13261else 13262 lt_prog_compiler_pic_works_F77=no 13263 ac_outfile=conftest.$ac_objext 13264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13265 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13266 # Insert the option either (1) after the last *FLAGS variable, or 13267 # (2) before a word containing "conftest.", or (3) at the end. 13268 # Note that $ac_compile itself does not contain backslashes and begins 13269 # with a dollar sign (not a hyphen), so the echo should work correctly. 13270 # The option is referenced via a variable to avoid confusing sed. 13271 lt_compile=`echo "$ac_compile" | $SED \ 13272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13274 -e 's:$: $lt_compiler_flag:'` 13275 (eval echo "\"\$as_me:13275: $lt_compile\"" >&5) 13276 (eval "$lt_compile" 2>conftest.err) 13277 ac_status=$? 13278 cat conftest.err >&5 13279 echo "$as_me:13279: \$? = $ac_status" >&5 13280 if (exit $ac_status) && test -s "$ac_outfile"; then 13281 # The compiler can only warn and ignore the option if not recognized 13282 # So say no if there are warnings other than the usual output. 13283 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13285 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13286 lt_prog_compiler_pic_works_F77=yes 13287 fi 13288 fi 13289 $rm conftest* 13290 13291fi 13292echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13293echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13294 13295if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13296 case $lt_prog_compiler_pic_F77 in 13297 "" | " "*) ;; 13298 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13299 esac 13300else 13301 lt_prog_compiler_pic_F77= 13302 lt_prog_compiler_can_build_shared_F77=no 13303fi 13304 13305fi 13306case $host_os in 13307 # For platforms which do not support PIC, -DPIC is meaningless: 13308 *djgpp*) 13309 lt_prog_compiler_pic_F77= 13310 ;; 13311 *) 13312 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13313 ;; 13314esac 13315 13316# 13317# Check to make sure the static flag actually works. 13318# 13319wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13320echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13321echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 13322if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13323 echo $ECHO_N "(cached) $ECHO_C" >&6 13324else 13325 lt_prog_compiler_static_works_F77=no 13326 save_LDFLAGS="$LDFLAGS" 13327 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13328 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13330 # The linker can only warn and ignore the option if not recognized 13331 # So say no if there are warnings 13332 if test -s conftest.err; then 13333 # Append any errors to the config.log. 13334 cat conftest.err 1>&5 13335 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13337 if diff conftest.exp conftest.er2 >/dev/null; then 13338 lt_prog_compiler_static_works_F77=yes 13339 fi 13340 else 13341 lt_prog_compiler_static_works_F77=yes 13342 fi 13343 fi 13344 $rm conftest* 13345 LDFLAGS="$save_LDFLAGS" 13346 13347fi 13348echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13349echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 13350 13351if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13352 : 13353else 13354 lt_prog_compiler_static_F77= 13355fi 13356 13357 13358echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13359echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13360if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13361 echo $ECHO_N "(cached) $ECHO_C" >&6 13362else 13363 lt_cv_prog_compiler_c_o_F77=no 13364 $rm -r conftest 2>/dev/null 13365 mkdir conftest 13366 cd conftest 13367 mkdir out 13368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13369 13370 lt_compiler_flag="-o out/conftest2.$ac_objext" 13371 # Insert the option either (1) after the last *FLAGS variable, or 13372 # (2) before a word containing "conftest.", or (3) at the end. 13373 # Note that $ac_compile itself does not contain backslashes and begins 13374 # with a dollar sign (not a hyphen), so the echo should work correctly. 13375 lt_compile=`echo "$ac_compile" | $SED \ 13376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13378 -e 's:$: $lt_compiler_flag:'` 13379 (eval echo "\"\$as_me:13379: $lt_compile\"" >&5) 13380 (eval "$lt_compile" 2>out/conftest.err) 13381 ac_status=$? 13382 cat out/conftest.err >&5 13383 echo "$as_me:13383: \$? = $ac_status" >&5 13384 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13385 then 13386 # The compiler can only warn and ignore the option if not recognized 13387 # So say no if there are warnings 13388 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13391 lt_cv_prog_compiler_c_o_F77=yes 13392 fi 13393 fi 13394 chmod u+w . 2>&5 13395 $rm conftest* 13396 # SGI C++ compiler will create directory out/ii_files/ for 13397 # template instantiation 13398 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13399 $rm out/* && rmdir out 13400 cd .. 13401 rmdir conftest 13402 $rm conftest* 13403 13404fi 13405echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13406echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13407 13408 13409hard_links="nottested" 13410if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13411 # do not overwrite the value of need_locks provided by the user 13412 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13413echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13414 hard_links=yes 13415 $rm conftest* 13416 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13417 touch conftest.a 13418 ln conftest.a conftest.b 2>&5 || hard_links=no 13419 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13420 echo "$as_me:$LINENO: result: $hard_links" >&5 13421echo "${ECHO_T}$hard_links" >&6 13422 if test "$hard_links" = no; then 13423 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13424echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13425 need_locks=warn 13426 fi 13427else 13428 need_locks=no 13429fi 13430 13431echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13432echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13433 13434 runpath_var= 13435 allow_undefined_flag_F77= 13436 enable_shared_with_static_runtimes_F77=no 13437 archive_cmds_F77= 13438 archive_expsym_cmds_F77= 13439 old_archive_From_new_cmds_F77= 13440 old_archive_from_expsyms_cmds_F77= 13441 export_dynamic_flag_spec_F77= 13442 whole_archive_flag_spec_F77= 13443 thread_safe_flag_spec_F77= 13444 hardcode_libdir_flag_spec_F77= 13445 hardcode_libdir_flag_spec_ld_F77= 13446 hardcode_libdir_separator_F77= 13447 hardcode_direct_F77=no 13448 hardcode_minus_L_F77=no 13449 hardcode_shlibpath_var_F77=unsupported 13450 link_all_deplibs_F77=unknown 13451 hardcode_automatic_F77=no 13452 module_cmds_F77= 13453 module_expsym_cmds_F77= 13454 always_export_symbols_F77=no 13455 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13456 # include_expsyms should be a list of space-separated symbols to be *always* 13457 # included in the symbol list 13458 include_expsyms_F77= 13459 # exclude_expsyms can be an extended regexp of symbols to exclude 13460 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13461 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13462 # as well as any symbol that contains `d'. 13463 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13464 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13465 # platforms (ab)use it in PIC code, but their linkers get confused if 13466 # the symbol is explicitly referenced. Since portable code cannot 13467 # rely on this symbol name, it's probably fine to never include it in 13468 # preloaded symbol tables. 13469 extract_expsyms_cmds= 13470 # Just being paranoid about ensuring that cc_basename is set. 13471 for cc_temp in $compiler""; do 13472 case $cc_temp in 13473 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13474 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13475 \-*) ;; 13476 *) break;; 13477 esac 13478done 13479cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13480 13481 case $host_os in 13482 cygwin* | mingw* | pw32*) 13483 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13484 # When not using gcc, we currently assume that we are using 13485 # Microsoft Visual C++. 13486 if test "$GCC" != yes; then 13487 with_gnu_ld=no 13488 fi 13489 ;; 13490 interix*) 13491 # we just hope/assume this is gcc and not c89 (= MSVC++) 13492 with_gnu_ld=yes 13493 ;; 13494 openbsd*) 13495 with_gnu_ld=no 13496 ;; 13497 esac 13498 13499 ld_shlibs_F77=yes 13500 if test "$with_gnu_ld" = yes; then 13501 # If archive_cmds runs LD, not CC, wlarc should be empty 13502 wlarc='${wl}' 13503 13504 # Set some defaults for GNU ld with shared library support. These 13505 # are reset later if shared libraries are not supported. Putting them 13506 # here allows them to be overridden if necessary. 13507 runpath_var=LD_RUN_PATH 13508 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13509 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13510 # ancient GNU ld didn't support --whole-archive et. al. 13511 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13512 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13513 else 13514 whole_archive_flag_spec_F77= 13515 fi 13516 supports_anon_versioning=no 13517 case `$LD -v 2>/dev/null` in 13518 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13519 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13520 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13521 *\ 2.11.*) ;; # other 2.11 versions 13522 *) supports_anon_versioning=yes ;; 13523 esac 13524 13525 # See if GNU ld supports shared libraries. 13526 case $host_os in 13527 aix3* | aix4* | aix5*) 13528 # On AIX/PPC, the GNU linker is very broken 13529 if test "$host_cpu" != ia64; then 13530 ld_shlibs_F77=no 13531 cat <<EOF 1>&2 13532 13533*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13534*** to be unable to reliably create shared libraries on AIX. 13535*** Therefore, libtool is disabling shared libraries support. If you 13536*** really care for shared libraries, you may want to modify your PATH 13537*** so that a non-GNU linker is found, and then restart. 13538 13539EOF 13540 fi 13541 ;; 13542 13543 amigaos*) 13544 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)' 13545 hardcode_libdir_flag_spec_F77='-L$libdir' 13546 hardcode_minus_L_F77=yes 13547 13548 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13549 # that the semantics of dynamic libraries on AmigaOS, at least up 13550 # to version 4, is to share data among multiple programs linked 13551 # with the same dynamic library. Since this doesn't match the 13552 # behavior of shared libraries on other platforms, we can't use 13553 # them. 13554 ld_shlibs_F77=no 13555 ;; 13556 13557 beos*) 13558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13559 allow_undefined_flag_F77=unsupported 13560 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13561 # support --undefined. This deserves some investigation. FIXME 13562 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13563 else 13564 ld_shlibs_F77=no 13565 fi 13566 ;; 13567 13568 cygwin* | mingw* | pw32*) 13569 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13570 # as there is no search path for DLLs. 13571 hardcode_libdir_flag_spec_F77='-L$libdir' 13572 allow_undefined_flag_F77=unsupported 13573 always_export_symbols_F77=no 13574 enable_shared_with_static_runtimes_F77=yes 13575 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13576 13577 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13578 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13579 # If the export-symbols file already is a .def file (1st line 13580 # is EXPORTS), use it as is; otherwise, prepend... 13581 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13582 cp $export_symbols $output_objdir/$soname.def; 13583 else 13584 echo EXPORTS > $output_objdir/$soname.def; 13585 cat $export_symbols >> $output_objdir/$soname.def; 13586 fi~ 13587 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13588 else 13589 ld_shlibs_F77=no 13590 fi 13591 ;; 13592 13593 interix3*) 13594 hardcode_direct_F77=no 13595 hardcode_shlibpath_var_F77=no 13596 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13597 export_dynamic_flag_spec_F77='${wl}-E' 13598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13599 # Instead, shared libraries are loaded at an image base (0x10000000 by 13600 # default) and relocated if they conflict, which is a slow very memory 13601 # consuming and fragmenting process. To avoid this, we pick a random, 13602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13603 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13604 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13605 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13606 ;; 13607 13608 linux*) 13609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13610 tmp_addflag= 13611 case $cc_basename,$host_cpu in 13612 pgcc*) # Portland Group C compiler 13613 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13614 tmp_addflag=' $pic_flag' 13615 ;; 13616 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 13617 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' 13618 tmp_addflag=' $pic_flag -Mnomain' ;; 13619 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13620 tmp_addflag=' -i_dynamic' ;; 13621 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13622 tmp_addflag=' -i_dynamic -nofor_main' ;; 13623 ifc* | ifort*) # Intel Fortran compiler 13624 tmp_addflag=' -nofor_main' ;; 13625 esac 13626 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13627 13628 if test $supports_anon_versioning = yes; then 13629 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13631 $echo "local: *; };" >> $output_objdir/$libname.ver~ 13632 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13633 fi 13634 else 13635 ld_shlibs_F77=no 13636 fi 13637 ;; 13638 13639 netbsd*) 13640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13641 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13642 wlarc= 13643 else 13644 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13645 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13646 fi 13647 ;; 13648 13649 solaris*) 13650 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13651 ld_shlibs_F77=no 13652 cat <<EOF 1>&2 13653 13654*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13655*** create shared libraries on Solaris systems. Therefore, libtool 13656*** is disabling shared libraries support. We urge you to upgrade GNU 13657*** binutils to release 2.9.1 or newer. Another option is to modify 13658*** your PATH or compiler configuration so that the native linker is 13659*** used, and then restart. 13660 13661EOF 13662 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13663 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13664 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13665 else 13666 ld_shlibs_F77=no 13667 fi 13668 ;; 13669 13670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13671 case `$LD -v 2>&1` in 13672 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13673 ld_shlibs_F77=no 13674 cat <<_LT_EOF 1>&2 13675 13676*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13677*** reliably create shared libraries on SCO systems. Therefore, libtool 13678*** is disabling shared libraries support. We urge you to upgrade GNU 13679*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13680*** your PATH or compiler configuration so that the native linker is 13681*** used, and then restart. 13682 13683_LT_EOF 13684 ;; 13685 *) 13686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13687 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 13688 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 13689 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 13690 else 13691 ld_shlibs_F77=no 13692 fi 13693 ;; 13694 esac 13695 ;; 13696 13697 sunos4*) 13698 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13699 wlarc= 13700 hardcode_direct_F77=yes 13701 hardcode_shlibpath_var_F77=no 13702 ;; 13703 13704 *) 13705 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13706 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13707 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13708 else 13709 ld_shlibs_F77=no 13710 fi 13711 ;; 13712 esac 13713 13714 if test "$ld_shlibs_F77" = no; then 13715 runpath_var= 13716 hardcode_libdir_flag_spec_F77= 13717 export_dynamic_flag_spec_F77= 13718 whole_archive_flag_spec_F77= 13719 fi 13720 else 13721 # PORTME fill in a description of your system's linker (not GNU ld) 13722 case $host_os in 13723 aix3*) 13724 allow_undefined_flag_F77=unsupported 13725 always_export_symbols_F77=yes 13726 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' 13727 # Note: this linker hardcodes the directories in LIBPATH if there 13728 # are no directories specified by -L. 13729 hardcode_minus_L_F77=yes 13730 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13731 # Neither direct hardcoding nor static linking is supported with a 13732 # broken collect2. 13733 hardcode_direct_F77=unsupported 13734 fi 13735 ;; 13736 13737 aix4* | aix5*) 13738 if test "$host_cpu" = ia64; then 13739 # On IA64, the linker does run time linking by default, so we don't 13740 # have to do anything special. 13741 aix_use_runtimelinking=no 13742 exp_sym_flag='-Bexport' 13743 no_entry_flag="" 13744 else 13745 # If we're using GNU nm, then we don't want the "-C" option. 13746 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13747 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13748 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' 13749 else 13750 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' 13751 fi 13752 aix_use_runtimelinking=no 13753 13754 # Test if we are trying to use run time linking or normal 13755 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13756 # need to do runtime linking. 13757 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13758 for ld_flag in $LDFLAGS; do 13759 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13760 aix_use_runtimelinking=yes 13761 break 13762 fi 13763 done 13764 ;; 13765 esac 13766 13767 exp_sym_flag='-bexport' 13768 no_entry_flag='-bnoentry' 13769 fi 13770 13771 # When large executables or shared objects are built, AIX ld can 13772 # have problems creating the table of contents. If linking a library 13773 # or program results in "error TOC overflow" add -mminimal-toc to 13774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13776 13777 archive_cmds_F77='' 13778 hardcode_direct_F77=yes 13779 hardcode_libdir_separator_F77=':' 13780 link_all_deplibs_F77=yes 13781 13782 if test "$GCC" = yes; then 13783 case $host_os in aix4.[012]|aix4.[012].*) 13784 # We only want to do this on AIX 4.2 and lower, the check 13785 # below for broken collect2 doesn't work under 4.3+ 13786 collect2name=`${CC} -print-prog-name=collect2` 13787 if test -f "$collect2name" && \ 13788 strings "$collect2name" | grep resolve_lib_name >/dev/null 13789 then 13790 # We have reworked collect2 13791 hardcode_direct_F77=yes 13792 else 13793 # We have old collect2 13794 hardcode_direct_F77=unsupported 13795 # It fails to find uninstalled libraries when the uninstalled 13796 # path is not listed in the libpath. Setting hardcode_minus_L 13797 # to unsupported forces relinking 13798 hardcode_minus_L_F77=yes 13799 hardcode_libdir_flag_spec_F77='-L$libdir' 13800 hardcode_libdir_separator_F77= 13801 fi 13802 ;; 13803 esac 13804 shared_flag='-shared' 13805 if test "$aix_use_runtimelinking" = yes; then 13806 shared_flag="$shared_flag "'${wl}-G' 13807 fi 13808 else 13809 # not using gcc 13810 if test "$host_cpu" = ia64; then 13811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13812 # chokes on -Wl,-G. The following line is correct: 13813 shared_flag='-G' 13814 else 13815 if test "$aix_use_runtimelinking" = yes; then 13816 shared_flag='${wl}-G' 13817 else 13818 shared_flag='${wl}-bM:SRE' 13819 fi 13820 fi 13821 fi 13822 13823 # It seems that -bexpall does not export symbols beginning with 13824 # underscore (_), so it is better to generate a list of symbols to export. 13825 always_export_symbols_F77=yes 13826 if test "$aix_use_runtimelinking" = yes; then 13827 # Warning - without using the other runtime loading flags (-brtl), 13828 # -berok will link without error, but may produce a broken library. 13829 allow_undefined_flag_F77='-berok' 13830 # Determine the default libpath from the value encoded in an empty executable. 13831 cat >conftest.$ac_ext <<_ACEOF 13832 program main 13833 13834 end 13835_ACEOF 13836rm -f conftest.$ac_objext conftest$ac_exeext 13837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13838 (eval $ac_link) 2>conftest.er1 13839 ac_status=$? 13840 grep -v '^ *+' conftest.er1 >conftest.err 13841 rm -f conftest.er1 13842 cat conftest.err >&5 13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13844 (exit $ac_status); } && 13845 { ac_try='test -z "$ac_f77_werror_flag" 13846 || test ! -s conftest.err' 13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13848 (eval $ac_try) 2>&5 13849 ac_status=$? 13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13851 (exit $ac_status); }; } && 13852 { ac_try='test -s conftest$ac_exeext' 13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13854 (eval $ac_try) 2>&5 13855 ac_status=$? 13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13857 (exit $ac_status); }; }; then 13858 13859aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13860}'` 13861# Check for a 64-bit object if we didn't find anything. 13862if 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; } 13863}'`; fi 13864else 13865 echo "$as_me: failed program was:" >&5 13866sed 's/^/| /' conftest.$ac_ext >&5 13867 13868fi 13869rm -f conftest.err conftest.$ac_objext \ 13870 conftest$ac_exeext conftest.$ac_ext 13871if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13872 13873 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13874 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13875 else 13876 if test "$host_cpu" = ia64; then 13877 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13878 allow_undefined_flag_F77="-z nodefs" 13879 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13880 else 13881 # Determine the default libpath from the value encoded in an empty executable. 13882 cat >conftest.$ac_ext <<_ACEOF 13883 program main 13884 13885 end 13886_ACEOF 13887rm -f conftest.$ac_objext conftest$ac_exeext 13888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13889 (eval $ac_link) 2>conftest.er1 13890 ac_status=$? 13891 grep -v '^ *+' conftest.er1 >conftest.err 13892 rm -f conftest.er1 13893 cat conftest.err >&5 13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13895 (exit $ac_status); } && 13896 { ac_try='test -z "$ac_f77_werror_flag" 13897 || test ! -s conftest.err' 13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13899 (eval $ac_try) 2>&5 13900 ac_status=$? 13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13902 (exit $ac_status); }; } && 13903 { ac_try='test -s conftest$ac_exeext' 13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13905 (eval $ac_try) 2>&5 13906 ac_status=$? 13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13908 (exit $ac_status); }; }; then 13909 13910aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13911}'` 13912# Check for a 64-bit object if we didn't find anything. 13913if 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; } 13914}'`; fi 13915else 13916 echo "$as_me: failed program was:" >&5 13917sed 's/^/| /' conftest.$ac_ext >&5 13918 13919fi 13920rm -f conftest.err conftest.$ac_objext \ 13921 conftest$ac_exeext conftest.$ac_ext 13922if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13923 13924 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13925 # Warning - without using the other run time loading flags, 13926 # -berok will link without error, but may produce a broken library. 13927 no_undefined_flag_F77=' ${wl}-bernotok' 13928 allow_undefined_flag_F77=' ${wl}-berok' 13929 # Exported symbols can be pulled into shared objects from archives 13930 whole_archive_flag_spec_F77='$convenience' 13931 archive_cmds_need_lc_F77=yes 13932 # This is similar to how AIX traditionally builds its shared libraries. 13933 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13934 fi 13935 fi 13936 ;; 13937 13938 amigaos*) 13939 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)' 13940 hardcode_libdir_flag_spec_F77='-L$libdir' 13941 hardcode_minus_L_F77=yes 13942 # see comment about different semantics on the GNU ld section 13943 ld_shlibs_F77=no 13944 ;; 13945 13946 bsdi[45]*) 13947 export_dynamic_flag_spec_F77=-rdynamic 13948 ;; 13949 13950 cygwin* | mingw* | pw32*) 13951 # When not using gcc, we currently assume that we are using 13952 # Microsoft Visual C++. 13953 # hardcode_libdir_flag_spec is actually meaningless, as there is 13954 # no search path for DLLs. 13955 hardcode_libdir_flag_spec_F77=' ' 13956 allow_undefined_flag_F77=unsupported 13957 # Tell ltmain to make .lib files, not .a files. 13958 libext=lib 13959 # Tell ltmain to make .dll files, not .so files. 13960 shrext_cmds=".dll" 13961 # FIXME: Setting linknames here is a bad hack. 13962 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13963 # The linker will automatically build a .lib file if we build a DLL. 13964 old_archive_From_new_cmds_F77='true' 13965 # FIXME: Should let the user specify the lib program. 13966 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13967 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 13968 enable_shared_with_static_runtimes_F77=yes 13969 ;; 13970 13971 darwin* | rhapsody*) 13972 case $host_os in 13973 rhapsody* | darwin1.[012]) 13974 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 13975 ;; 13976 *) # Darwin 1.3 on 13977 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13978 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13979 else 13980 case ${MACOSX_DEPLOYMENT_TARGET} in 13981 10.[012]) 13982 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 13983 ;; 13984 10.*) 13985 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 13986 ;; 13987 esac 13988 fi 13989 ;; 13990 esac 13991 archive_cmds_need_lc_F77=no 13992 hardcode_direct_F77=no 13993 hardcode_automatic_F77=yes 13994 hardcode_shlibpath_var_F77=unsupported 13995 whole_archive_flag_spec_F77='' 13996 link_all_deplibs_F77=yes 13997 if test "$GCC" = yes ; then 13998 output_verbose_link_cmd='echo' 13999 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14000 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14002 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}' 14003 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}' 14004 else 14005 case $cc_basename in 14006 xlc*) 14007 output_verbose_link_cmd='echo' 14008 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14009 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14010 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14011 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}' 14012 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}' 14013 ;; 14014 *) 14015 ld_shlibs_F77=no 14016 ;; 14017 esac 14018 fi 14019 ;; 14020 14021 dgux*) 14022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14023 hardcode_libdir_flag_spec_F77='-L$libdir' 14024 hardcode_shlibpath_var_F77=no 14025 ;; 14026 14027 freebsd1*) 14028 ld_shlibs_F77=no 14029 ;; 14030 14031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14032 # support. Future versions do this automatically, but an explicit c++rt0.o 14033 # does not break anything, and helps significantly (at the cost of a little 14034 # extra space). 14035 freebsd2.2*) 14036 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14037 hardcode_libdir_flag_spec_F77='-R$libdir' 14038 hardcode_direct_F77=yes 14039 hardcode_shlibpath_var_F77=no 14040 ;; 14041 14042 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14043 freebsd2*) 14044 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14045 hardcode_direct_F77=yes 14046 hardcode_minus_L_F77=yes 14047 hardcode_shlibpath_var_F77=no 14048 ;; 14049 14050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14051 freebsd* | kfreebsd*-gnu | dragonfly*) 14052 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14053 hardcode_libdir_flag_spec_F77='-R$libdir' 14054 hardcode_direct_F77=yes 14055 hardcode_shlibpath_var_F77=no 14056 ;; 14057 14058 hpux9*) 14059 if test "$GCC" = yes; then 14060 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' 14061 else 14062 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' 14063 fi 14064 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14065 hardcode_libdir_separator_F77=: 14066 hardcode_direct_F77=yes 14067 14068 # hardcode_minus_L: Not really in the search PATH, 14069 # but as the default location of the library. 14070 hardcode_minus_L_F77=yes 14071 export_dynamic_flag_spec_F77='${wl}-E' 14072 ;; 14073 14074 hpux10*) 14075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14076 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14077 else 14078 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14079 fi 14080 if test "$with_gnu_ld" = no; then 14081 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14082 hardcode_libdir_separator_F77=: 14083 14084 hardcode_direct_F77=yes 14085 export_dynamic_flag_spec_F77='${wl}-E' 14086 14087 # hardcode_minus_L: Not really in the search PATH, 14088 # but as the default location of the library. 14089 hardcode_minus_L_F77=yes 14090 fi 14091 ;; 14092 14093 hpux11*) 14094 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14095 case $host_cpu in 14096 hppa*64*) 14097 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14098 ;; 14099 ia64*) 14100 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14101 ;; 14102 *) 14103 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14104 ;; 14105 esac 14106 else 14107 case $host_cpu in 14108 hppa*64*) 14109 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14110 ;; 14111 ia64*) 14112 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14113 ;; 14114 *) 14115 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14116 ;; 14117 esac 14118 fi 14119 if test "$with_gnu_ld" = no; then 14120 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14121 hardcode_libdir_separator_F77=: 14122 14123 case $host_cpu in 14124 hppa*64*|ia64*) 14125 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14126 hardcode_direct_F77=no 14127 hardcode_shlibpath_var_F77=no 14128 ;; 14129 *) 14130 hardcode_direct_F77=yes 14131 export_dynamic_flag_spec_F77='${wl}-E' 14132 14133 # hardcode_minus_L: Not really in the search PATH, 14134 # but as the default location of the library. 14135 hardcode_minus_L_F77=yes 14136 ;; 14137 esac 14138 fi 14139 ;; 14140 14141 irix5* | irix6* | nonstopux*) 14142 if test "$GCC" = yes; then 14143 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' 14144 else 14145 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' 14146 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14147 fi 14148 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14149 hardcode_libdir_separator_F77=: 14150 link_all_deplibs_F77=yes 14151 ;; 14152 14153 netbsd*) 14154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14155 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14156 else 14157 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14158 fi 14159 hardcode_libdir_flag_spec_F77='-R$libdir' 14160 hardcode_direct_F77=yes 14161 hardcode_shlibpath_var_F77=no 14162 ;; 14163 14164 newsos6) 14165 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14166 hardcode_direct_F77=yes 14167 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14168 hardcode_libdir_separator_F77=: 14169 hardcode_shlibpath_var_F77=no 14170 ;; 14171 14172 openbsd*) 14173 hardcode_direct_F77=yes 14174 hardcode_shlibpath_var_F77=no 14175 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14176 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14177 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14178 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14179 export_dynamic_flag_spec_F77='${wl}-E' 14180 else 14181 case $host_os in 14182 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14183 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14184 hardcode_libdir_flag_spec_F77='-R$libdir' 14185 ;; 14186 *) 14187 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14188 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14189 ;; 14190 esac 14191 fi 14192 ;; 14193 14194 os2*) 14195 hardcode_libdir_flag_spec_F77='-L$libdir' 14196 hardcode_minus_L_F77=yes 14197 allow_undefined_flag_F77=unsupported 14198 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' 14199 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14200 ;; 14201 14202 osf3*) 14203 if test "$GCC" = yes; then 14204 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14205 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' 14206 else 14207 allow_undefined_flag_F77=' -expect_unresolved \*' 14208 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' 14209 fi 14210 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14211 hardcode_libdir_separator_F77=: 14212 ;; 14213 14214 osf4* | osf5*) # as osf3* with the addition of -msym flag 14215 if test "$GCC" = yes; then 14216 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14217 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' 14218 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14219 else 14220 allow_undefined_flag_F77=' -expect_unresolved \*' 14221 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' 14222 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~ 14223 $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' 14224 14225 # Both c and cxx compiler support -rpath directly 14226 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14227 fi 14228 hardcode_libdir_separator_F77=: 14229 ;; 14230 14231 solaris*) 14232 no_undefined_flag_F77=' -z text' 14233 if test "$GCC" = yes; then 14234 wlarc='${wl}' 14235 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14236 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14237 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14238 else 14239 wlarc='' 14240 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14241 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14242 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14243 fi 14244 hardcode_libdir_flag_spec_F77='-R$libdir' 14245 hardcode_shlibpath_var_F77=no 14246 case $host_os in 14247 solaris2.[0-5] | solaris2.[0-5].*) ;; 14248 *) 14249 # The compiler driver will combine linker options so we 14250 # cannot just pass the convience library names through 14251 # without $wl, iff we do not link with $LD. 14252 # Luckily, gcc supports the same syntax we need for Sun Studio. 14253 # Supported since Solaris 2.6 (maybe 2.5.1?) 14254 case $wlarc in 14255 '') 14256 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14257 *) 14258 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' ;; 14259 esac ;; 14260 esac 14261 link_all_deplibs_F77=yes 14262 ;; 14263 14264 sunos4*) 14265 if test "x$host_vendor" = xsequent; then 14266 # Use $CC to link under sequent, because it throws in some extra .o 14267 # files that make .init and .fini sections work. 14268 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14269 else 14270 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14271 fi 14272 hardcode_libdir_flag_spec_F77='-L$libdir' 14273 hardcode_direct_F77=yes 14274 hardcode_minus_L_F77=yes 14275 hardcode_shlibpath_var_F77=no 14276 ;; 14277 14278 sysv4) 14279 case $host_vendor in 14280 sni) 14281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14282 hardcode_direct_F77=yes # is this really true??? 14283 ;; 14284 siemens) 14285 ## LD is ld it makes a PLAMLIB 14286 ## CC just makes a GrossModule. 14287 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14288 reload_cmds_F77='$CC -r -o $output$reload_objs' 14289 hardcode_direct_F77=no 14290 ;; 14291 motorola) 14292 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14293 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14294 ;; 14295 esac 14296 runpath_var='LD_RUN_PATH' 14297 hardcode_shlibpath_var_F77=no 14298 ;; 14299 14300 sysv4.3*) 14301 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14302 hardcode_shlibpath_var_F77=no 14303 export_dynamic_flag_spec_F77='-Bexport' 14304 ;; 14305 14306 sysv4*MP*) 14307 if test -d /usr/nec; then 14308 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14309 hardcode_shlibpath_var_F77=no 14310 runpath_var=LD_RUN_PATH 14311 hardcode_runpath_var=yes 14312 ld_shlibs_F77=yes 14313 fi 14314 ;; 14315 14316 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14317 no_undefined_flag_F77='${wl}-z,text' 14318 archive_cmds_need_lc_F77=no 14319 hardcode_shlibpath_var_F77=no 14320 runpath_var='LD_RUN_PATH' 14321 14322 if test "$GCC" = yes; then 14323 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14324 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14325 else 14326 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14327 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14328 fi 14329 ;; 14330 14331 sysv5* | sco3.2v5* | sco5v6*) 14332 # Note: We can NOT use -z defs as we might desire, because we do not 14333 # link with -lc, and that would cause any symbols used from libc to 14334 # always be unresolved, which means just about no library would 14335 # ever link correctly. If we're not using GNU ld we use -z text 14336 # though, which does catch some bad symbols but isn't as heavy-handed 14337 # as -z defs. 14338 no_undefined_flag_F77='${wl}-z,text' 14339 allow_undefined_flag_F77='${wl}-z,nodefs' 14340 archive_cmds_need_lc_F77=no 14341 hardcode_shlibpath_var_F77=no 14342 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14343 hardcode_libdir_separator_F77=':' 14344 link_all_deplibs_F77=yes 14345 export_dynamic_flag_spec_F77='${wl}-Bexport' 14346 runpath_var='LD_RUN_PATH' 14347 14348 if test "$GCC" = yes; then 14349 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14350 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14351 else 14352 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14353 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14354 fi 14355 ;; 14356 14357 uts4*) 14358 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14359 hardcode_libdir_flag_spec_F77='-L$libdir' 14360 hardcode_shlibpath_var_F77=no 14361 ;; 14362 14363 *) 14364 ld_shlibs_F77=no 14365 ;; 14366 esac 14367 fi 14368 14369echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14370echo "${ECHO_T}$ld_shlibs_F77" >&6 14371test "$ld_shlibs_F77" = no && can_build_shared=no 14372 14373# 14374# Do we need to explicitly link libc? 14375# 14376case "x$archive_cmds_need_lc_F77" in 14377x|xyes) 14378 # Assume -lc should be added 14379 archive_cmds_need_lc_F77=yes 14380 14381 if test "$enable_shared" = yes && test "$GCC" = yes; then 14382 case $archive_cmds_F77 in 14383 *'~'*) 14384 # FIXME: we may have to deal with multi-command sequences. 14385 ;; 14386 '$CC '*) 14387 # Test whether the compiler implicitly links with -lc since on some 14388 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14389 # to ld, don't add -lc before -lgcc. 14390 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14391echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14392 $rm conftest* 14393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14394 14395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14396 (eval $ac_compile) 2>&5 14397 ac_status=$? 14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14399 (exit $ac_status); } 2>conftest.err; then 14400 soname=conftest 14401 lib=conftest 14402 libobjs=conftest.$ac_objext 14403 deplibs= 14404 wl=$lt_prog_compiler_wl_F77 14405 pic_flag=$lt_prog_compiler_pic_F77 14406 compiler_flags=-v 14407 linker_flags=-v 14408 verstring= 14409 output_objdir=. 14410 libname=conftest 14411 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14412 allow_undefined_flag_F77= 14413 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14414 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14415 ac_status=$? 14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14417 (exit $ac_status); } 14418 then 14419 archive_cmds_need_lc_F77=no 14420 else 14421 archive_cmds_need_lc_F77=yes 14422 fi 14423 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14424 else 14425 cat conftest.err 1>&5 14426 fi 14427 $rm conftest* 14428 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14429echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14430 ;; 14431 esac 14432 fi 14433 ;; 14434esac 14435 14436echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14437echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14438library_names_spec= 14439libname_spec='lib$name' 14440soname_spec= 14441shrext_cmds=".so" 14442postinstall_cmds= 14443postuninstall_cmds= 14444finish_cmds= 14445finish_eval= 14446shlibpath_var= 14447shlibpath_overrides_runpath=unknown 14448version_type=none 14449dynamic_linker="$host_os ld.so" 14450sys_lib_dlsearch_path_spec="/lib /usr/lib" 14451if test "$GCC" = yes; then 14452 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14453 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14454 # if the path contains ";" then we assume it to be the separator 14455 # otherwise default to the standard path separator (i.e. ":") - it is 14456 # assumed that no part of a normal pathname contains ";" but that should 14457 # okay in the real world where ";" in dirpaths is itself problematic. 14458 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14459 else 14460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14461 fi 14462else 14463 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14464fi 14465need_lib_prefix=unknown 14466hardcode_into_libs=no 14467 14468# when you set need_version to no, make sure it does not cause -set_version 14469# flags to be left without arguments 14470need_version=unknown 14471 14472case $host_os in 14473aix3*) 14474 version_type=linux 14475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14476 shlibpath_var=LIBPATH 14477 14478 # AIX 3 has no versioning support, so we append a major version to the name. 14479 soname_spec='${libname}${release}${shared_ext}$major' 14480 ;; 14481 14482aix4* | aix5*) 14483 version_type=linux 14484 need_lib_prefix=no 14485 need_version=no 14486 hardcode_into_libs=yes 14487 if test "$host_cpu" = ia64; then 14488 # AIX 5 supports IA64 14489 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14490 shlibpath_var=LD_LIBRARY_PATH 14491 else 14492 # With GCC up to 2.95.x, collect2 would create an import file 14493 # for dependence libraries. The import file would start with 14494 # the line `#! .'. This would cause the generated library to 14495 # depend on `.', always an invalid library. This was fixed in 14496 # development snapshots of GCC prior to 3.0. 14497 case $host_os in 14498 aix4 | aix4.[01] | aix4.[01].*) 14499 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14500 echo ' yes ' 14501 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14502 : 14503 else 14504 can_build_shared=no 14505 fi 14506 ;; 14507 esac 14508 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14509 # soname into executable. Probably we can add versioning support to 14510 # collect2, so additional links can be useful in future. 14511 if test "$aix_use_runtimelinking" = yes; then 14512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14513 # instead of lib<name>.a to let people know that these are not 14514 # typical AIX shared libraries. 14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14516 else 14517 # We preserve .a as extension for shared libraries through AIX4.2 14518 # and later when we are not doing run time linking. 14519 library_names_spec='${libname}${release}.a $libname.a' 14520 soname_spec='${libname}${release}${shared_ext}$major' 14521 fi 14522 shlibpath_var=LIBPATH 14523 fi 14524 ;; 14525 14526amigaos*) 14527 library_names_spec='$libname.ixlibrary $libname.a' 14528 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14529 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' 14530 ;; 14531 14532beos*) 14533 library_names_spec='${libname}${shared_ext}' 14534 dynamic_linker="$host_os ld.so" 14535 shlibpath_var=LIBRARY_PATH 14536 ;; 14537 14538bsdi[45]*) 14539 version_type=linux 14540 need_version=no 14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14542 soname_spec='${libname}${release}${shared_ext}$major' 14543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14544 shlibpath_var=LD_LIBRARY_PATH 14545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14547 # the default ld.so.conf also contains /usr/contrib/lib and 14548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14549 # libtool to hard-code these into programs 14550 ;; 14551 14552cygwin* | mingw* | pw32*) 14553 version_type=windows 14554 shrext_cmds=".dll" 14555 need_version=no 14556 need_lib_prefix=no 14557 14558 case $GCC,$host_os in 14559 yes,cygwin* | yes,mingw* | yes,pw32*) 14560 library_names_spec='$libname.dll.a' 14561 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14562 postinstall_cmds='base_file=`basename \${file}`~ 14563 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14564 dldir=$destdir/`dirname \$dlpath`~ 14565 test -d \$dldir || mkdir -p \$dldir~ 14566 $install_prog $dir/$dlname \$dldir/$dlname~ 14567 chmod a+x \$dldir/$dlname' 14568 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14569 dlpath=$dir/\$dldll~ 14570 $rm \$dlpath' 14571 shlibpath_overrides_runpath=yes 14572 14573 case $host_os in 14574 cygwin*) 14575 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14576 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14577 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14578 ;; 14579 mingw*) 14580 # MinGW DLLs use traditional 'lib' prefix 14581 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14582 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14583 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14584 # It is most probably a Windows format PATH printed by 14585 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14586 # path with ; separators, and with drive letters. We can handle the 14587 # drive letters (cygwin fileutils understands them), so leave them, 14588 # especially as we might pass files found there to a mingw objdump, 14589 # which wouldn't understand a cygwinified path. Ahh. 14590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14591 else 14592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14593 fi 14594 ;; 14595 pw32*) 14596 # pw32 DLLs use 'pw' prefix rather than 'lib' 14597 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14598 ;; 14599 esac 14600 ;; 14601 14602 *) 14603 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14604 ;; 14605 esac 14606 dynamic_linker='Win32 ld.exe' 14607 # FIXME: first we should search . and the directory the executable is in 14608 shlibpath_var=PATH 14609 ;; 14610 14611darwin* | rhapsody*) 14612 dynamic_linker="$host_os dyld" 14613 version_type=darwin 14614 need_lib_prefix=no 14615 need_version=no 14616 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14617 soname_spec='${libname}${release}${major}$shared_ext' 14618 shlibpath_overrides_runpath=yes 14619 shlibpath_var=DYLD_LIBRARY_PATH 14620 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14621 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14622 if test "$GCC" = yes; then 14623 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"` 14624 else 14625 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14626 fi 14627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14628 ;; 14629 14630dgux*) 14631 version_type=linux 14632 need_lib_prefix=no 14633 need_version=no 14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14635 soname_spec='${libname}${release}${shared_ext}$major' 14636 shlibpath_var=LD_LIBRARY_PATH 14637 ;; 14638 14639freebsd1*) 14640 dynamic_linker=no 14641 ;; 14642 14643kfreebsd*-gnu) 14644 version_type=linux 14645 need_lib_prefix=no 14646 need_version=no 14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14648 soname_spec='${libname}${release}${shared_ext}$major' 14649 shlibpath_var=LD_LIBRARY_PATH 14650 shlibpath_overrides_runpath=no 14651 hardcode_into_libs=yes 14652 dynamic_linker='GNU ld.so' 14653 ;; 14654 14655freebsd* | dragonfly*) 14656 # DragonFly does not have aout. When/if they implement a new 14657 # versioning mechanism, adjust this. 14658 if test -x /usr/bin/objformat; then 14659 objformat=`/usr/bin/objformat` 14660 else 14661 case $host_os in 14662 freebsd[123]*) objformat=aout ;; 14663 *) objformat=elf ;; 14664 esac 14665 fi 14666 version_type=freebsd-$objformat 14667 case $version_type in 14668 freebsd-elf*) 14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14670 need_version=no 14671 need_lib_prefix=no 14672 ;; 14673 freebsd-*) 14674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14675 need_version=yes 14676 ;; 14677 esac 14678 shlibpath_var=LD_LIBRARY_PATH 14679 case $host_os in 14680 freebsd2*) 14681 shlibpath_overrides_runpath=yes 14682 ;; 14683 freebsd3.[01]* | freebsdelf3.[01]*) 14684 shlibpath_overrides_runpath=yes 14685 hardcode_into_libs=yes 14686 ;; 14687 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14688 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14689 shlibpath_overrides_runpath=no 14690 hardcode_into_libs=yes 14691 ;; 14692 freebsd*) # from 4.6 on 14693 shlibpath_overrides_runpath=yes 14694 hardcode_into_libs=yes 14695 ;; 14696 esac 14697 ;; 14698 14699gnu*) 14700 version_type=linux 14701 need_lib_prefix=no 14702 need_version=no 14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14704 soname_spec='${libname}${release}${shared_ext}$major' 14705 shlibpath_var=LD_LIBRARY_PATH 14706 hardcode_into_libs=yes 14707 ;; 14708 14709hpux9* | hpux10* | hpux11*) 14710 # Give a soname corresponding to the major version so that dld.sl refuses to 14711 # link against other versions. 14712 version_type=sunos 14713 need_lib_prefix=no 14714 need_version=no 14715 case $host_cpu in 14716 ia64*) 14717 shrext_cmds='.so' 14718 hardcode_into_libs=yes 14719 dynamic_linker="$host_os dld.so" 14720 shlibpath_var=LD_LIBRARY_PATH 14721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14723 soname_spec='${libname}${release}${shared_ext}$major' 14724 if test "X$HPUX_IA64_MODE" = X32; then 14725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14726 else 14727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14728 fi 14729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14730 ;; 14731 hppa*64*) 14732 shrext_cmds='.sl' 14733 hardcode_into_libs=yes 14734 dynamic_linker="$host_os dld.sl" 14735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14738 soname_spec='${libname}${release}${shared_ext}$major' 14739 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14741 ;; 14742 *) 14743 shrext_cmds='.sl' 14744 dynamic_linker="$host_os dld.sl" 14745 shlibpath_var=SHLIB_PATH 14746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14748 soname_spec='${libname}${release}${shared_ext}$major' 14749 ;; 14750 esac 14751 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14752 postinstall_cmds='chmod 555 $lib' 14753 ;; 14754 14755interix3*) 14756 version_type=linux 14757 need_lib_prefix=no 14758 need_version=no 14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14760 soname_spec='${libname}${release}${shared_ext}$major' 14761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14762 shlibpath_var=LD_LIBRARY_PATH 14763 shlibpath_overrides_runpath=no 14764 hardcode_into_libs=yes 14765 ;; 14766 14767irix5* | irix6* | nonstopux*) 14768 case $host_os in 14769 nonstopux*) version_type=nonstopux ;; 14770 *) 14771 if test "$lt_cv_prog_gnu_ld" = yes; then 14772 version_type=linux 14773 else 14774 version_type=irix 14775 fi ;; 14776 esac 14777 need_lib_prefix=no 14778 need_version=no 14779 soname_spec='${libname}${release}${shared_ext}$major' 14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14781 case $host_os in 14782 irix5* | nonstopux*) 14783 libsuff= shlibsuff= 14784 ;; 14785 *) 14786 case $LD in # libtool.m4 will add one of these switches to LD 14787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14788 libsuff= shlibsuff= libmagic=32-bit;; 14789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14790 libsuff=32 shlibsuff=N32 libmagic=N32;; 14791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14792 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14793 *) libsuff= shlibsuff= libmagic=never-match;; 14794 esac 14795 ;; 14796 esac 14797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14798 shlibpath_overrides_runpath=no 14799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14801 hardcode_into_libs=yes 14802 ;; 14803 14804# No shared lib support for Linux oldld, aout, or coff. 14805linux*oldld* | linux*aout* | linux*coff*) 14806 dynamic_linker=no 14807 ;; 14808 14809# This must be Linux ELF. 14810linux*) 14811 version_type=linux 14812 need_lib_prefix=no 14813 need_version=no 14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14815 soname_spec='${libname}${release}${shared_ext}$major' 14816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14817 shlibpath_var=LD_LIBRARY_PATH 14818 shlibpath_overrides_runpath=no 14819 # This implies no fast_install, which is unacceptable. 14820 # Some rework will be needed to allow for fast_install 14821 # before this can be enabled. 14822 hardcode_into_libs=yes 14823 14824 # find out which ABI we are using 14825 libsuff= 14826 case "$host_cpu" in 14827 x86_64*|s390x*|powerpc64*) 14828 echo '#line 14828 "configure"' > conftest.$ac_ext 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); }; then 14834 case `/usr/bin/file conftest.$ac_objext` in 14835 *64-bit*) 14836 libsuff=64 14837 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14838 ;; 14839 esac 14840 fi 14841 rm -rf conftest* 14842 ;; 14843 esac 14844 14845 # Append ld.so.conf contents to the search path 14846 if test -f /etc/ld.so.conf; then 14847 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14848 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14849 fi 14850 14851 # We used to test for /lib/ld.so.1 and disable shared libraries on 14852 # powerpc, because MkLinux only supported shared libraries with the 14853 # GNU dynamic linker. Since this was broken with cross compilers, 14854 # most powerpc-linux boxes support dynamic linking these days and 14855 # people can always --disable-shared, the test was removed, and we 14856 # assume the GNU/Linux dynamic linker is in use. 14857 dynamic_linker='GNU/Linux ld.so' 14858 ;; 14859 14860knetbsd*-gnu) 14861 version_type=linux 14862 need_lib_prefix=no 14863 need_version=no 14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14865 soname_spec='${libname}${release}${shared_ext}$major' 14866 shlibpath_var=LD_LIBRARY_PATH 14867 shlibpath_overrides_runpath=no 14868 hardcode_into_libs=yes 14869 dynamic_linker='GNU ld.so' 14870 ;; 14871 14872netbsd*) 14873 version_type=sunos 14874 need_lib_prefix=no 14875 need_version=no 14876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14879 dynamic_linker='NetBSD (a.out) ld.so' 14880 else 14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14882 soname_spec='${libname}${release}${shared_ext}$major' 14883 dynamic_linker='NetBSD ld.elf_so' 14884 fi 14885 shlibpath_var=LD_LIBRARY_PATH 14886 shlibpath_overrides_runpath=yes 14887 hardcode_into_libs=yes 14888 ;; 14889 14890newsos6) 14891 version_type=linux 14892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14893 shlibpath_var=LD_LIBRARY_PATH 14894 shlibpath_overrides_runpath=yes 14895 ;; 14896 14897nto-qnx*) 14898 version_type=linux 14899 need_lib_prefix=no 14900 need_version=no 14901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14902 soname_spec='${libname}${release}${shared_ext}$major' 14903 shlibpath_var=LD_LIBRARY_PATH 14904 shlibpath_overrides_runpath=yes 14905 ;; 14906 14907openbsd*) 14908 version_type=sunos 14909 sys_lib_dlsearch_path_spec="/usr/lib" 14910 need_lib_prefix=no 14911 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14912 case $host_os in 14913 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14914 *) need_version=no ;; 14915 esac 14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14918 shlibpath_var=LD_LIBRARY_PATH 14919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14920 case $host_os in 14921 openbsd2.[89] | openbsd2.[89].*) 14922 shlibpath_overrides_runpath=no 14923 ;; 14924 *) 14925 shlibpath_overrides_runpath=yes 14926 ;; 14927 esac 14928 else 14929 shlibpath_overrides_runpath=yes 14930 fi 14931 ;; 14932 14933os2*) 14934 libname_spec='$name' 14935 shrext_cmds=".dll" 14936 need_lib_prefix=no 14937 library_names_spec='$libname${shared_ext} $libname.a' 14938 dynamic_linker='OS/2 ld.exe' 14939 shlibpath_var=LIBPATH 14940 ;; 14941 14942osf3* | osf4* | osf5*) 14943 version_type=osf 14944 need_lib_prefix=no 14945 need_version=no 14946 soname_spec='${libname}${release}${shared_ext}$major' 14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14948 shlibpath_var=LD_LIBRARY_PATH 14949 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14950 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14951 ;; 14952 14953solaris*) 14954 version_type=linux 14955 need_lib_prefix=no 14956 need_version=no 14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14958 soname_spec='${libname}${release}${shared_ext}$major' 14959 shlibpath_var=LD_LIBRARY_PATH 14960 shlibpath_overrides_runpath=yes 14961 hardcode_into_libs=yes 14962 # ldd complains unless libraries are executable 14963 postinstall_cmds='chmod +x $lib' 14964 ;; 14965 14966sunos4*) 14967 version_type=sunos 14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14970 shlibpath_var=LD_LIBRARY_PATH 14971 shlibpath_overrides_runpath=yes 14972 if test "$with_gnu_ld" = yes; then 14973 need_lib_prefix=no 14974 fi 14975 need_version=yes 14976 ;; 14977 14978sysv4 | sysv4.3*) 14979 version_type=linux 14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14981 soname_spec='${libname}${release}${shared_ext}$major' 14982 shlibpath_var=LD_LIBRARY_PATH 14983 case $host_vendor in 14984 sni) 14985 shlibpath_overrides_runpath=no 14986 need_lib_prefix=no 14987 export_dynamic_flag_spec='${wl}-Blargedynsym' 14988 runpath_var=LD_RUN_PATH 14989 ;; 14990 siemens) 14991 need_lib_prefix=no 14992 ;; 14993 motorola) 14994 need_lib_prefix=no 14995 need_version=no 14996 shlibpath_overrides_runpath=no 14997 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14998 ;; 14999 esac 15000 ;; 15001 15002sysv4*MP*) 15003 if test -d /usr/nec ;then 15004 version_type=linux 15005 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15006 soname_spec='$libname${shared_ext}.$major' 15007 shlibpath_var=LD_LIBRARY_PATH 15008 fi 15009 ;; 15010 15011sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15012 version_type=freebsd-elf 15013 need_lib_prefix=no 15014 need_version=no 15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15016 soname_spec='${libname}${release}${shared_ext}$major' 15017 shlibpath_var=LD_LIBRARY_PATH 15018 hardcode_into_libs=yes 15019 if test "$with_gnu_ld" = yes; then 15020 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15021 shlibpath_overrides_runpath=no 15022 else 15023 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15024 shlibpath_overrides_runpath=yes 15025 case $host_os in 15026 sco3.2v5*) 15027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15028 ;; 15029 esac 15030 fi 15031 sys_lib_dlsearch_path_spec='/usr/lib' 15032 ;; 15033 15034uts4*) 15035 version_type=linux 15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15037 soname_spec='${libname}${release}${shared_ext}$major' 15038 shlibpath_var=LD_LIBRARY_PATH 15039 ;; 15040 15041*) 15042 dynamic_linker=no 15043 ;; 15044esac 15045echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15046echo "${ECHO_T}$dynamic_linker" >&6 15047test "$dynamic_linker" = no && can_build_shared=no 15048 15049variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15050if test "$GCC" = yes; then 15051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15052fi 15053 15054echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15055echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15056hardcode_action_F77= 15057if test -n "$hardcode_libdir_flag_spec_F77" || \ 15058 test -n "$runpath_var_F77" || \ 15059 test "X$hardcode_automatic_F77" = "Xyes" ; then 15060 15061 # We can hardcode non-existant directories. 15062 if test "$hardcode_direct_F77" != no && 15063 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15064 # have to relink, otherwise we might link with an installed library 15065 # when we should be linking with a yet-to-be-installed one 15066 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15067 test "$hardcode_minus_L_F77" != no; then 15068 # Linking always hardcodes the temporary library directory. 15069 hardcode_action_F77=relink 15070 else 15071 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15072 hardcode_action_F77=immediate 15073 fi 15074else 15075 # We cannot hardcode anything, or else we can only hardcode existing 15076 # directories. 15077 hardcode_action_F77=unsupported 15078fi 15079echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15080echo "${ECHO_T}$hardcode_action_F77" >&6 15081 15082if test "$hardcode_action_F77" = relink; then 15083 # Fast installation is not supported 15084 enable_fast_install=no 15085elif test "$shlibpath_overrides_runpath" = yes || 15086 test "$enable_shared" = no; then 15087 # Fast installation is not necessary 15088 enable_fast_install=needless 15089fi 15090 15091 15092# The else clause should only fire when bootstrapping the 15093# libtool distribution, otherwise you forgot to ship ltmain.sh 15094# with your package, and you will get complaints that there are 15095# no rules to generate ltmain.sh. 15096if test -f "$ltmain"; then 15097 # See if we are running on zsh, and set the options which allow our commands through 15098 # without removal of \ escapes. 15099 if test -n "${ZSH_VERSION+set}" ; then 15100 setopt NO_GLOB_SUBST 15101 fi 15102 # Now quote all the things that may contain metacharacters while being 15103 # careful not to overquote the AC_SUBSTed values. We take copies of the 15104 # variables and quote the copies for generation of the libtool script. 15105 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15106 SED SHELL STRIP \ 15107 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15108 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15109 deplibs_check_method reload_flag reload_cmds need_locks \ 15110 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15111 lt_cv_sys_global_symbol_to_c_name_address \ 15112 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15113 old_postinstall_cmds old_postuninstall_cmds \ 15114 compiler_F77 \ 15115 CC_F77 \ 15116 LD_F77 \ 15117 lt_prog_compiler_wl_F77 \ 15118 lt_prog_compiler_pic_F77 \ 15119 lt_prog_compiler_static_F77 \ 15120 lt_prog_compiler_no_builtin_flag_F77 \ 15121 export_dynamic_flag_spec_F77 \ 15122 thread_safe_flag_spec_F77 \ 15123 whole_archive_flag_spec_F77 \ 15124 enable_shared_with_static_runtimes_F77 \ 15125 old_archive_cmds_F77 \ 15126 old_archive_from_new_cmds_F77 \ 15127 predep_objects_F77 \ 15128 postdep_objects_F77 \ 15129 predeps_F77 \ 15130 postdeps_F77 \ 15131 compiler_lib_search_path_F77 \ 15132 archive_cmds_F77 \ 15133 archive_expsym_cmds_F77 \ 15134 postinstall_cmds_F77 \ 15135 postuninstall_cmds_F77 \ 15136 old_archive_from_expsyms_cmds_F77 \ 15137 allow_undefined_flag_F77 \ 15138 no_undefined_flag_F77 \ 15139 export_symbols_cmds_F77 \ 15140 hardcode_libdir_flag_spec_F77 \ 15141 hardcode_libdir_flag_spec_ld_F77 \ 15142 hardcode_libdir_separator_F77 \ 15143 hardcode_automatic_F77 \ 15144 module_cmds_F77 \ 15145 module_expsym_cmds_F77 \ 15146 lt_cv_prog_compiler_c_o_F77 \ 15147 exclude_expsyms_F77 \ 15148 include_expsyms_F77; do 15149 15150 case $var in 15151 old_archive_cmds_F77 | \ 15152 old_archive_from_new_cmds_F77 | \ 15153 archive_cmds_F77 | \ 15154 archive_expsym_cmds_F77 | \ 15155 module_cmds_F77 | \ 15156 module_expsym_cmds_F77 | \ 15157 old_archive_from_expsyms_cmds_F77 | \ 15158 export_symbols_cmds_F77 | \ 15159 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15160 postinstall_cmds | postuninstall_cmds | \ 15161 old_postinstall_cmds | old_postuninstall_cmds | \ 15162 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15163 # Double-quote double-evaled strings. 15164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15165 ;; 15166 *) 15167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15168 ;; 15169 esac 15170 done 15171 15172 case $lt_echo in 15173 *'\$0 --fallback-echo"') 15174 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15175 ;; 15176 esac 15177 15178cfgfile="$ofile" 15179 15180 cat <<__EOF__ >> "$cfgfile" 15181# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15182 15183# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15184 15185# Shell to use when invoking shell scripts. 15186SHELL=$lt_SHELL 15187 15188# Whether or not to build shared libraries. 15189build_libtool_libs=$enable_shared 15190 15191# Whether or not to build static libraries. 15192build_old_libs=$enable_static 15193 15194# Whether or not to add -lc for building shared libraries. 15195build_libtool_need_lc=$archive_cmds_need_lc_F77 15196 15197# Whether or not to disallow shared libs when runtime libs are static 15198allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15199 15200# Whether or not to optimize for fast installation. 15201fast_install=$enable_fast_install 15202 15203# The host system. 15204host_alias=$host_alias 15205host=$host 15206host_os=$host_os 15207 15208# The build system. 15209build_alias=$build_alias 15210build=$build 15211build_os=$build_os 15212 15213# An echo program that does not interpret backslashes. 15214echo=$lt_echo 15215 15216# The archiver. 15217AR=$lt_AR 15218AR_FLAGS=$lt_AR_FLAGS 15219 15220# A C compiler. 15221LTCC=$lt_LTCC 15222 15223# LTCC compiler flags. 15224LTCFLAGS=$lt_LTCFLAGS 15225 15226# A language-specific compiler. 15227CC=$lt_compiler_F77 15228 15229# Is the compiler the GNU C compiler? 15230with_gcc=$GCC_F77 15231 15232gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 15233gcc_ver=\`gcc -dumpversion\` 15234 15235# An ERE matcher. 15236EGREP=$lt_EGREP 15237 15238# The linker used to build libraries. 15239LD=$lt_LD_F77 15240 15241# Whether we need hard or soft links. 15242LN_S=$lt_LN_S 15243 15244# A BSD-compatible nm program. 15245NM=$lt_NM 15246 15247# A symbol stripping program 15248STRIP=$lt_STRIP 15249 15250# Used to examine libraries when file_magic_cmd begins "file" 15251MAGIC_CMD=$MAGIC_CMD 15252 15253# Used on cygwin: DLL creation program. 15254DLLTOOL="$DLLTOOL" 15255 15256# Used on cygwin: object dumper. 15257OBJDUMP="$OBJDUMP" 15258 15259# Used on cygwin: assembler. 15260AS="$AS" 15261 15262# The name of the directory that contains temporary libtool files. 15263objdir=$objdir 15264 15265# How to create reloadable object files. 15266reload_flag=$lt_reload_flag 15267reload_cmds=$lt_reload_cmds 15268 15269# How to pass a linker flag through the compiler. 15270wl=$lt_lt_prog_compiler_wl_F77 15271 15272# Object file suffix (normally "o"). 15273objext="$ac_objext" 15274 15275# Old archive suffix (normally "a"). 15276libext="$libext" 15277 15278# Shared library suffix (normally ".so"). 15279shrext_cmds='$shrext_cmds' 15280 15281# Executable file suffix (normally ""). 15282exeext="$exeext" 15283 15284# Additional compiler flags for building library objects. 15285pic_flag=$lt_lt_prog_compiler_pic_F77 15286pic_mode=$pic_mode 15287 15288# What is the maximum length of a command? 15289max_cmd_len=$lt_cv_sys_max_cmd_len 15290 15291# Does compiler simultaneously support -c and -o options? 15292compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15293 15294# Must we lock files when doing compilation? 15295need_locks=$lt_need_locks 15296 15297# Do we need the lib prefix for modules? 15298need_lib_prefix=$need_lib_prefix 15299 15300# Do we need a version for libraries? 15301need_version=$need_version 15302 15303# Whether dlopen is supported. 15304dlopen_support=$enable_dlopen 15305 15306# Whether dlopen of programs is supported. 15307dlopen_self=$enable_dlopen_self 15308 15309# Whether dlopen of statically linked programs is supported. 15310dlopen_self_static=$enable_dlopen_self_static 15311 15312# Compiler flag to prevent dynamic linking. 15313link_static_flag=$lt_lt_prog_compiler_static_F77 15314 15315# Compiler flag to turn off builtin functions. 15316no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15317 15318# Compiler flag to allow reflexive dlopens. 15319export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15320 15321# Compiler flag to generate shared objects directly from archives. 15322whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15323 15324# Compiler flag to generate thread-safe objects. 15325thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15326 15327# Library versioning type. 15328version_type=$version_type 15329 15330# Format of library name prefix. 15331libname_spec=$lt_libname_spec 15332 15333# List of archive names. First name is the real one, the rest are links. 15334# The last name is the one that the linker finds with -lNAME. 15335library_names_spec=$lt_library_names_spec 15336 15337# The coded name of the library, if different from the real name. 15338soname_spec=$lt_soname_spec 15339 15340# Commands used to build and install an old-style archive. 15341RANLIB=$lt_RANLIB 15342old_archive_cmds=$lt_old_archive_cmds_F77 15343old_postinstall_cmds=$lt_old_postinstall_cmds 15344old_postuninstall_cmds=$lt_old_postuninstall_cmds 15345 15346# Create an old-style archive from a shared archive. 15347old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15348 15349# Create a temporary old-style archive to link instead of a shared archive. 15350old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15351 15352# Commands used to build and install a shared archive. 15353archive_cmds=$lt_archive_cmds_F77 15354archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15355postinstall_cmds=$lt_postinstall_cmds 15356postuninstall_cmds=$lt_postuninstall_cmds 15357 15358# Commands used to build a loadable module (assumed same as above if empty) 15359module_cmds=$lt_module_cmds_F77 15360module_expsym_cmds=$lt_module_expsym_cmds_F77 15361 15362# Commands to strip libraries. 15363old_striplib=$lt_old_striplib 15364striplib=$lt_striplib 15365 15366# Dependencies to place before the objects being linked to create a 15367# shared library. 15368predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15369 15370# Dependencies to place after the objects being linked to create a 15371# shared library. 15372postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15373 15374# Dependencies to place before the objects being linked to create a 15375# shared library. 15376predeps=$lt_predeps_F77 15377 15378# Dependencies to place after the objects being linked to create a 15379# shared library. 15380postdeps=$lt_postdeps_F77 15381 15382# The library search path used internally by the compiler when linking 15383# a shared library. 15384compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15385 15386# Method to check whether dependent libraries are shared objects. 15387deplibs_check_method=$lt_deplibs_check_method 15388 15389# Command to use when deplibs_check_method == file_magic. 15390file_magic_cmd=$lt_file_magic_cmd 15391 15392# Flag that allows shared libraries with undefined symbols to be built. 15393allow_undefined_flag=$lt_allow_undefined_flag_F77 15394 15395# Flag that forces no undefined symbols. 15396no_undefined_flag=$lt_no_undefined_flag_F77 15397 15398# Commands used to finish a libtool library installation in a directory. 15399finish_cmds=$lt_finish_cmds 15400 15401# Same as above, but a single script fragment to be evaled but not shown. 15402finish_eval=$lt_finish_eval 15403 15404# Take the output of nm and produce a listing of raw symbols and C names. 15405global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15406 15407# Transform the output of nm in a proper C declaration 15408global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15409 15410# Transform the output of nm in a C name address pair 15411global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15412 15413# This is the shared library runtime path variable. 15414runpath_var=$runpath_var 15415 15416# This is the shared library path variable. 15417shlibpath_var=$shlibpath_var 15418 15419# Is shlibpath searched before the hard-coded library search path? 15420shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15421 15422# How to hardcode a shared library path into an executable. 15423hardcode_action=$hardcode_action_F77 15424 15425# Whether we should hardcode library paths into libraries. 15426hardcode_into_libs=$hardcode_into_libs 15427 15428# Flag to hardcode \$libdir into a binary during linking. 15429# This must work even if \$libdir does not exist. 15430hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15431 15432# If ld is used when linking, flag to hardcode \$libdir into 15433# a binary during linking. This must work even if \$libdir does 15434# not exist. 15435hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15436 15437# Whether we need a single -rpath flag with a separated argument. 15438hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15439 15440# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15441# resulting binary. 15442hardcode_direct=$hardcode_direct_F77 15443 15444# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15445# resulting binary. 15446hardcode_minus_L=$hardcode_minus_L_F77 15447 15448# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15449# the resulting binary. 15450hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15451 15452# Set to yes if building a shared library automatically hardcodes DIR into the library 15453# and all subsequent libraries and executables linked against it. 15454hardcode_automatic=$hardcode_automatic_F77 15455 15456# Variables whose values should be saved in libtool wrapper scripts and 15457# restored at relink time. 15458variables_saved_for_relink="$variables_saved_for_relink" 15459 15460# Whether libtool must link a program against all its dependency libraries. 15461link_all_deplibs=$link_all_deplibs_F77 15462 15463# Compile-time system search path for libraries 15464sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 15465 15466# Run-time system search path for libraries 15467sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15468 15469# Fix the shell variable \$srcfile for the compiler. 15470fix_srcfile_path="$fix_srcfile_path_F77" 15471 15472# Set to yes if exported symbols are required. 15473always_export_symbols=$always_export_symbols_F77 15474 15475# The commands to list exported symbols. 15476export_symbols_cmds=$lt_export_symbols_cmds_F77 15477 15478# The commands to extract the exported symbol list from a shared archive. 15479extract_expsyms_cmds=$lt_extract_expsyms_cmds 15480 15481# Symbols that should not be listed in the preloaded symbols. 15482exclude_expsyms=$lt_exclude_expsyms_F77 15483 15484# Symbols that must always be exported. 15485include_expsyms=$lt_include_expsyms_F77 15486 15487# ### END LIBTOOL TAG CONFIG: $tagname 15488 15489__EOF__ 15490 15491 15492else 15493 # If there is no Makefile yet, we rely on a make rule to execute 15494 # `config.status --recheck' to rerun these tests and create the 15495 # libtool script then. 15496 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15497 if test -f "$ltmain_in"; then 15498 test -f Makefile && make "$ltmain" 15499 fi 15500fi 15501 15502 15503ac_ext=c 15504ac_cpp='$CPP $CPPFLAGS' 15505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15507ac_compiler_gnu=$ac_cv_c_compiler_gnu 15508 15509CC="$lt_save_CC" 15510 15511 else 15512 tagname="" 15513 fi 15514 ;; 15515 15516 GCJ) 15517 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15518 15519 15520 15521# Source file extension for Java test sources. 15522ac_ext=java 15523 15524# Object file extension for compiled Java test sources. 15525objext=o 15526objext_GCJ=$objext 15527 15528# Code to be used in simple compile tests 15529lt_simple_compile_test_code="class foo {}\n" 15530 15531# Code to be used in simple link tests 15532lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 15533 15534# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15535 15536# If no C compiler was specified, use CC. 15537LTCC=${LTCC-"$CC"} 15538 15539# If no C compiler flags were specified, use CFLAGS. 15540LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15541 15542# Allow CC to be a program name with arguments. 15543compiler=$CC 15544 15545 15546# save warnings/boilerplate of simple test code 15547ac_outfile=conftest.$ac_objext 15548printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15549eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15550_lt_compiler_boilerplate=`cat conftest.err` 15551$rm conftest* 15552 15553ac_outfile=conftest.$ac_objext 15554printf "$lt_simple_link_test_code" >conftest.$ac_ext 15555eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15556_lt_linker_boilerplate=`cat conftest.err` 15557$rm conftest* 15558 15559 15560# Allow CC to be a program name with arguments. 15561lt_save_CC="$CC" 15562CC=${GCJ-"gcj"} 15563compiler=$CC 15564compiler_GCJ=$CC 15565for cc_temp in $compiler""; do 15566 case $cc_temp in 15567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15569 \-*) ;; 15570 *) break;; 15571 esac 15572done 15573cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15574 15575 15576# GCJ did not exist at the time GCC didn't implicitly link libc in. 15577archive_cmds_need_lc_GCJ=no 15578 15579old_archive_cmds_GCJ=$old_archive_cmds 15580 15581 15582lt_prog_compiler_no_builtin_flag_GCJ= 15583 15584if test "$GCC" = yes; then 15585 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15586 15587 15588echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15589echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15590if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15591 echo $ECHO_N "(cached) $ECHO_C" >&6 15592else 15593 lt_cv_prog_compiler_rtti_exceptions=no 15594 ac_outfile=conftest.$ac_objext 15595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15596 lt_compiler_flag="-fno-rtti -fno-exceptions" 15597 # Insert the option either (1) after the last *FLAGS variable, or 15598 # (2) before a word containing "conftest.", or (3) at the end. 15599 # Note that $ac_compile itself does not contain backslashes and begins 15600 # with a dollar sign (not a hyphen), so the echo should work correctly. 15601 # The option is referenced via a variable to avoid confusing sed. 15602 lt_compile=`echo "$ac_compile" | $SED \ 15603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15605 -e 's:$: $lt_compiler_flag:'` 15606 (eval echo "\"\$as_me:15606: $lt_compile\"" >&5) 15607 (eval "$lt_compile" 2>conftest.err) 15608 ac_status=$? 15609 cat conftest.err >&5 15610 echo "$as_me:15610: \$? = $ac_status" >&5 15611 if (exit $ac_status) && test -s "$ac_outfile"; then 15612 # The compiler can only warn and ignore the option if not recognized 15613 # So say no if there are warnings other than the usual output. 15614 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15617 lt_cv_prog_compiler_rtti_exceptions=yes 15618 fi 15619 fi 15620 $rm conftest* 15621 15622fi 15623echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15624echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15625 15626if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15627 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15628else 15629 : 15630fi 15631 15632fi 15633 15634lt_prog_compiler_wl_GCJ= 15635lt_prog_compiler_pic_GCJ= 15636lt_prog_compiler_static_GCJ= 15637 15638echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15639echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15640 15641 if test "$GCC" = yes; then 15642 lt_prog_compiler_wl_GCJ='-Wl,' 15643 lt_prog_compiler_static_GCJ='-static' 15644 15645 case $host_os in 15646 aix*) 15647 # All AIX code is PIC. 15648 if test "$host_cpu" = ia64; then 15649 # AIX 5 now supports IA64 processor 15650 lt_prog_compiler_static_GCJ='-Bstatic' 15651 fi 15652 ;; 15653 15654 amigaos*) 15655 # FIXME: we need at least 68020 code to build shared libraries, but 15656 # adding the `-m68020' flag to GCC prevents building anything better, 15657 # like `-m68040'. 15658 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15659 ;; 15660 15661 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15662 # PIC is the default for these OSes. 15663 ;; 15664 15665 mingw* | pw32* | os2*) 15666 # This hack is so that the source file can tell whether it is being 15667 # built for inclusion in a dll (and should export symbols for example). 15668 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15669 ;; 15670 15671 darwin* | rhapsody*) 15672 # PIC is the default on this platform 15673 # Common symbols not allowed in MH_DYLIB files 15674 lt_prog_compiler_pic_GCJ='-fno-common' 15675 ;; 15676 15677 interix3*) 15678 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15679 # Instead, we relocate shared libraries at runtime. 15680 ;; 15681 15682 msdosdjgpp*) 15683 # Just because we use GCC doesn't mean we suddenly get shared libraries 15684 # on systems that don't support them. 15685 lt_prog_compiler_can_build_shared_GCJ=no 15686 enable_shared=no 15687 ;; 15688 15689 sysv4*MP*) 15690 if test -d /usr/nec; then 15691 lt_prog_compiler_pic_GCJ=-Kconform_pic 15692 fi 15693 ;; 15694 15695 hpux*) 15696 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15697 # not for PA HP-UX. 15698 case $host_cpu in 15699 hppa*64*|ia64*) 15700 # +Z the default 15701 ;; 15702 *) 15703 lt_prog_compiler_pic_GCJ='-fPIC' 15704 ;; 15705 esac 15706 ;; 15707 15708 *) 15709 lt_prog_compiler_pic_GCJ='-fPIC' 15710 ;; 15711 esac 15712 else 15713 # PORTME Check for flag to pass linker flags through the system compiler. 15714 case $host_os in 15715 aix*) 15716 lt_prog_compiler_wl_GCJ='-Wl,' 15717 if test "$host_cpu" = ia64; then 15718 # AIX 5 now supports IA64 processor 15719 lt_prog_compiler_static_GCJ='-Bstatic' 15720 else 15721 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15722 fi 15723 ;; 15724 darwin*) 15725 # PIC is the default on this platform 15726 # Common symbols not allowed in MH_DYLIB files 15727 case $cc_basename in 15728 xlc*) 15729 lt_prog_compiler_pic_GCJ='-qnocommon' 15730 lt_prog_compiler_wl_GCJ='-Wl,' 15731 ;; 15732 esac 15733 ;; 15734 15735 mingw* | pw32* | os2*) 15736 # This hack is so that the source file can tell whether it is being 15737 # built for inclusion in a dll (and should export symbols for example). 15738 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15739 ;; 15740 15741 hpux9* | hpux10* | hpux11*) 15742 lt_prog_compiler_wl_GCJ='-Wl,' 15743 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15744 # not for PA HP-UX. 15745 case $host_cpu in 15746 hppa*64*|ia64*) 15747 # +Z the default 15748 ;; 15749 *) 15750 lt_prog_compiler_pic_GCJ='+Z' 15751 ;; 15752 esac 15753 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15754 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15755 ;; 15756 15757 irix5* | irix6* | nonstopux*) 15758 lt_prog_compiler_wl_GCJ='-Wl,' 15759 # PIC (with -KPIC) is the default. 15760 lt_prog_compiler_static_GCJ='-non_shared' 15761 ;; 15762 15763 newsos6) 15764 lt_prog_compiler_pic_GCJ='-KPIC' 15765 lt_prog_compiler_static_GCJ='-Bstatic' 15766 ;; 15767 15768 linux*) 15769 case $cc_basename in 15770 icc* | ecc*) 15771 lt_prog_compiler_wl_GCJ='-Wl,' 15772 lt_prog_compiler_pic_GCJ='-KPIC' 15773 lt_prog_compiler_static_GCJ='-static' 15774 ;; 15775 pgcc* | pgf77* | pgf90* | pgf95*) 15776 # Portland Group compilers (*not* the Pentium gcc compiler, 15777 # which looks to be a dead project) 15778 lt_prog_compiler_wl_GCJ='-Wl,' 15779 lt_prog_compiler_pic_GCJ='-fpic' 15780 lt_prog_compiler_static_GCJ='-Bstatic' 15781 ;; 15782 ccc*) 15783 lt_prog_compiler_wl_GCJ='-Wl,' 15784 # All Alpha code is PIC. 15785 lt_prog_compiler_static_GCJ='-non_shared' 15786 ;; 15787 esac 15788 ;; 15789 15790 osf3* | osf4* | osf5*) 15791 lt_prog_compiler_wl_GCJ='-Wl,' 15792 # All OSF/1 code is PIC. 15793 lt_prog_compiler_static_GCJ='-non_shared' 15794 ;; 15795 15796 solaris*) 15797 lt_prog_compiler_pic_GCJ='-KPIC' 15798 lt_prog_compiler_static_GCJ='-Bstatic' 15799 case $cc_basename in 15800 f77* | f90* | f95*) 15801 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 15802 *) 15803 lt_prog_compiler_wl_GCJ='-Wl,';; 15804 esac 15805 ;; 15806 15807 sunos4*) 15808 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15809 lt_prog_compiler_pic_GCJ='-PIC' 15810 lt_prog_compiler_static_GCJ='-Bstatic' 15811 ;; 15812 15813 sysv4 | sysv4.2uw2* | sysv4.3*) 15814 lt_prog_compiler_wl_GCJ='-Wl,' 15815 lt_prog_compiler_pic_GCJ='-KPIC' 15816 lt_prog_compiler_static_GCJ='-Bstatic' 15817 ;; 15818 15819 sysv4*MP*) 15820 if test -d /usr/nec ;then 15821 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15822 lt_prog_compiler_static_GCJ='-Bstatic' 15823 fi 15824 ;; 15825 15826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15827 lt_prog_compiler_wl_GCJ='-Wl,' 15828 lt_prog_compiler_pic_GCJ='-KPIC' 15829 lt_prog_compiler_static_GCJ='-Bstatic' 15830 ;; 15831 15832 unicos*) 15833 lt_prog_compiler_wl_GCJ='-Wl,' 15834 lt_prog_compiler_can_build_shared_GCJ=no 15835 ;; 15836 15837 uts4*) 15838 lt_prog_compiler_pic_GCJ='-pic' 15839 lt_prog_compiler_static_GCJ='-Bstatic' 15840 ;; 15841 15842 *) 15843 lt_prog_compiler_can_build_shared_GCJ=no 15844 ;; 15845 esac 15846 fi 15847 15848echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15849echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15850 15851# 15852# Check to make sure the PIC flag actually works. 15853# 15854if test -n "$lt_prog_compiler_pic_GCJ"; then 15855 15856echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15857echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15858if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15859 echo $ECHO_N "(cached) $ECHO_C" >&6 15860else 15861 lt_prog_compiler_pic_works_GCJ=no 15862 ac_outfile=conftest.$ac_objext 15863 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15864 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15865 # Insert the option either (1) after the last *FLAGS variable, or 15866 # (2) before a word containing "conftest.", or (3) at the end. 15867 # Note that $ac_compile itself does not contain backslashes and begins 15868 # with a dollar sign (not a hyphen), so the echo should work correctly. 15869 # The option is referenced via a variable to avoid confusing sed. 15870 lt_compile=`echo "$ac_compile" | $SED \ 15871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15873 -e 's:$: $lt_compiler_flag:'` 15874 (eval echo "\"\$as_me:15874: $lt_compile\"" >&5) 15875 (eval "$lt_compile" 2>conftest.err) 15876 ac_status=$? 15877 cat conftest.err >&5 15878 echo "$as_me:15878: \$? = $ac_status" >&5 15879 if (exit $ac_status) && test -s "$ac_outfile"; then 15880 # The compiler can only warn and ignore the option if not recognized 15881 # So say no if there are warnings other than the usual output. 15882 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15885 lt_prog_compiler_pic_works_GCJ=yes 15886 fi 15887 fi 15888 $rm conftest* 15889 15890fi 15891echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15892echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15893 15894if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15895 case $lt_prog_compiler_pic_GCJ in 15896 "" | " "*) ;; 15897 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15898 esac 15899else 15900 lt_prog_compiler_pic_GCJ= 15901 lt_prog_compiler_can_build_shared_GCJ=no 15902fi 15903 15904fi 15905case $host_os in 15906 # For platforms which do not support PIC, -DPIC is meaningless: 15907 *djgpp*) 15908 lt_prog_compiler_pic_GCJ= 15909 ;; 15910 *) 15911 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15912 ;; 15913esac 15914 15915# 15916# Check to make sure the static flag actually works. 15917# 15918wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 15919echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15920echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 15921if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 15922 echo $ECHO_N "(cached) $ECHO_C" >&6 15923else 15924 lt_prog_compiler_static_works_GCJ=no 15925 save_LDFLAGS="$LDFLAGS" 15926 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15927 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15928 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15929 # The linker can only warn and ignore the option if not recognized 15930 # So say no if there are warnings 15931 if test -s conftest.err; then 15932 # Append any errors to the config.log. 15933 cat conftest.err 1>&5 15934 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15936 if diff conftest.exp conftest.er2 >/dev/null; then 15937 lt_prog_compiler_static_works_GCJ=yes 15938 fi 15939 else 15940 lt_prog_compiler_static_works_GCJ=yes 15941 fi 15942 fi 15943 $rm conftest* 15944 LDFLAGS="$save_LDFLAGS" 15945 15946fi 15947echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 15948echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 15949 15950if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 15951 : 15952else 15953 lt_prog_compiler_static_GCJ= 15954fi 15955 15956 15957echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15958echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15959if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15960 echo $ECHO_N "(cached) $ECHO_C" >&6 15961else 15962 lt_cv_prog_compiler_c_o_GCJ=no 15963 $rm -r conftest 2>/dev/null 15964 mkdir conftest 15965 cd conftest 15966 mkdir out 15967 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15968 15969 lt_compiler_flag="-o out/conftest2.$ac_objext" 15970 # Insert the option either (1) after the last *FLAGS variable, or 15971 # (2) before a word containing "conftest.", or (3) at the end. 15972 # Note that $ac_compile itself does not contain backslashes and begins 15973 # with a dollar sign (not a hyphen), so the echo should work correctly. 15974 lt_compile=`echo "$ac_compile" | $SED \ 15975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15977 -e 's:$: $lt_compiler_flag:'` 15978 (eval echo "\"\$as_me:15978: $lt_compile\"" >&5) 15979 (eval "$lt_compile" 2>out/conftest.err) 15980 ac_status=$? 15981 cat out/conftest.err >&5 15982 echo "$as_me:15982: \$? = $ac_status" >&5 15983 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15984 then 15985 # The compiler can only warn and ignore the option if not recognized 15986 # So say no if there are warnings 15987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15990 lt_cv_prog_compiler_c_o_GCJ=yes 15991 fi 15992 fi 15993 chmod u+w . 2>&5 15994 $rm conftest* 15995 # SGI C++ compiler will create directory out/ii_files/ for 15996 # template instantiation 15997 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15998 $rm out/* && rmdir out 15999 cd .. 16000 rmdir conftest 16001 $rm conftest* 16002 16003fi 16004echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16005echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16006 16007 16008hard_links="nottested" 16009if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16010 # do not overwrite the value of need_locks provided by the user 16011 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16012echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16013 hard_links=yes 16014 $rm conftest* 16015 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16016 touch conftest.a 16017 ln conftest.a conftest.b 2>&5 || hard_links=no 16018 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16019 echo "$as_me:$LINENO: result: $hard_links" >&5 16020echo "${ECHO_T}$hard_links" >&6 16021 if test "$hard_links" = no; then 16022 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16023echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16024 need_locks=warn 16025 fi 16026else 16027 need_locks=no 16028fi 16029 16030echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16031echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16032 16033 runpath_var= 16034 allow_undefined_flag_GCJ= 16035 enable_shared_with_static_runtimes_GCJ=no 16036 archive_cmds_GCJ= 16037 archive_expsym_cmds_GCJ= 16038 old_archive_From_new_cmds_GCJ= 16039 old_archive_from_expsyms_cmds_GCJ= 16040 export_dynamic_flag_spec_GCJ= 16041 whole_archive_flag_spec_GCJ= 16042 thread_safe_flag_spec_GCJ= 16043 hardcode_libdir_flag_spec_GCJ= 16044 hardcode_libdir_flag_spec_ld_GCJ= 16045 hardcode_libdir_separator_GCJ= 16046 hardcode_direct_GCJ=no 16047 hardcode_minus_L_GCJ=no 16048 hardcode_shlibpath_var_GCJ=unsupported 16049 link_all_deplibs_GCJ=unknown 16050 hardcode_automatic_GCJ=no 16051 module_cmds_GCJ= 16052 module_expsym_cmds_GCJ= 16053 always_export_symbols_GCJ=no 16054 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16055 # include_expsyms should be a list of space-separated symbols to be *always* 16056 # included in the symbol list 16057 include_expsyms_GCJ= 16058 # exclude_expsyms can be an extended regexp of symbols to exclude 16059 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16060 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16061 # as well as any symbol that contains `d'. 16062 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16063 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16064 # platforms (ab)use it in PIC code, but their linkers get confused if 16065 # the symbol is explicitly referenced. Since portable code cannot 16066 # rely on this symbol name, it's probably fine to never include it in 16067 # preloaded symbol tables. 16068 extract_expsyms_cmds= 16069 # Just being paranoid about ensuring that cc_basename is set. 16070 for cc_temp in $compiler""; do 16071 case $cc_temp in 16072 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16073 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16074 \-*) ;; 16075 *) break;; 16076 esac 16077done 16078cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16079 16080 case $host_os in 16081 cygwin* | mingw* | pw32*) 16082 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16083 # When not using gcc, we currently assume that we are using 16084 # Microsoft Visual C++. 16085 if test "$GCC" != yes; then 16086 with_gnu_ld=no 16087 fi 16088 ;; 16089 interix*) 16090 # we just hope/assume this is gcc and not c89 (= MSVC++) 16091 with_gnu_ld=yes 16092 ;; 16093 openbsd*) 16094 with_gnu_ld=no 16095 ;; 16096 esac 16097 16098 ld_shlibs_GCJ=yes 16099 if test "$with_gnu_ld" = yes; then 16100 # If archive_cmds runs LD, not CC, wlarc should be empty 16101 wlarc='${wl}' 16102 16103 # Set some defaults for GNU ld with shared library support. These 16104 # are reset later if shared libraries are not supported. Putting them 16105 # here allows them to be overridden if necessary. 16106 runpath_var=LD_RUN_PATH 16107 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16108 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16109 # ancient GNU ld didn't support --whole-archive et. al. 16110 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16111 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16112 else 16113 whole_archive_flag_spec_GCJ= 16114 fi 16115 supports_anon_versioning=no 16116 case `$LD -v 2>/dev/null` in 16117 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16118 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16119 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16120 *\ 2.11.*) ;; # other 2.11 versions 16121 *) supports_anon_versioning=yes ;; 16122 esac 16123 16124 # See if GNU ld supports shared libraries. 16125 case $host_os in 16126 aix3* | aix4* | aix5*) 16127 # On AIX/PPC, the GNU linker is very broken 16128 if test "$host_cpu" != ia64; then 16129 ld_shlibs_GCJ=no 16130 cat <<EOF 1>&2 16131 16132*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16133*** to be unable to reliably create shared libraries on AIX. 16134*** Therefore, libtool is disabling shared libraries support. If you 16135*** really care for shared libraries, you may want to modify your PATH 16136*** so that a non-GNU linker is found, and then restart. 16137 16138EOF 16139 fi 16140 ;; 16141 16142 amigaos*) 16143 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)' 16144 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16145 hardcode_minus_L_GCJ=yes 16146 16147 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16148 # that the semantics of dynamic libraries on AmigaOS, at least up 16149 # to version 4, is to share data among multiple programs linked 16150 # with the same dynamic library. Since this doesn't match the 16151 # behavior of shared libraries on other platforms, we can't use 16152 # them. 16153 ld_shlibs_GCJ=no 16154 ;; 16155 16156 beos*) 16157 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16158 allow_undefined_flag_GCJ=unsupported 16159 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16160 # support --undefined. This deserves some investigation. FIXME 16161 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16162 else 16163 ld_shlibs_GCJ=no 16164 fi 16165 ;; 16166 16167 cygwin* | mingw* | pw32*) 16168 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16169 # as there is no search path for DLLs. 16170 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16171 allow_undefined_flag_GCJ=unsupported 16172 always_export_symbols_GCJ=no 16173 enable_shared_with_static_runtimes_GCJ=yes 16174 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16175 16176 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16177 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16178 # If the export-symbols file already is a .def file (1st line 16179 # is EXPORTS), use it as is; otherwise, prepend... 16180 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16181 cp $export_symbols $output_objdir/$soname.def; 16182 else 16183 echo EXPORTS > $output_objdir/$soname.def; 16184 cat $export_symbols >> $output_objdir/$soname.def; 16185 fi~ 16186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16187 else 16188 ld_shlibs_GCJ=no 16189 fi 16190 ;; 16191 16192 interix3*) 16193 hardcode_direct_GCJ=no 16194 hardcode_shlibpath_var_GCJ=no 16195 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16196 export_dynamic_flag_spec_GCJ='${wl}-E' 16197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16198 # Instead, shared libraries are loaded at an image base (0x10000000 by 16199 # default) and relocated if they conflict, which is a slow very memory 16200 # consuming and fragmenting process. To avoid this, we pick a random, 16201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16202 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16203 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16204 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16205 ;; 16206 16207 linux*) 16208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16209 tmp_addflag= 16210 case $cc_basename,$host_cpu in 16211 pgcc*) # Portland Group C compiler 16212 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16213 tmp_addflag=' $pic_flag' 16214 ;; 16215 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16216 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' 16217 tmp_addflag=' $pic_flag -Mnomain' ;; 16218 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16219 tmp_addflag=' -i_dynamic' ;; 16220 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16221 tmp_addflag=' -i_dynamic -nofor_main' ;; 16222 ifc* | ifort*) # Intel Fortran compiler 16223 tmp_addflag=' -nofor_main' ;; 16224 esac 16225 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16226 16227 if test $supports_anon_versioning = yes; then 16228 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16230 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16231 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16232 fi 16233 else 16234 ld_shlibs_GCJ=no 16235 fi 16236 ;; 16237 16238 netbsd*) 16239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16240 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16241 wlarc= 16242 else 16243 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16244 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16245 fi 16246 ;; 16247 16248 solaris*) 16249 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16250 ld_shlibs_GCJ=no 16251 cat <<EOF 1>&2 16252 16253*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16254*** create shared libraries on Solaris systems. Therefore, libtool 16255*** is disabling shared libraries support. We urge you to upgrade GNU 16256*** binutils to release 2.9.1 or newer. Another option is to modify 16257*** your PATH or compiler configuration so that the native linker is 16258*** used, and then restart. 16259 16260EOF 16261 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16262 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16263 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16264 else 16265 ld_shlibs_GCJ=no 16266 fi 16267 ;; 16268 16269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16270 case `$LD -v 2>&1` in 16271 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16272 ld_shlibs_GCJ=no 16273 cat <<_LT_EOF 1>&2 16274 16275*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16276*** reliably create shared libraries on SCO systems. Therefore, libtool 16277*** is disabling shared libraries support. We urge you to upgrade GNU 16278*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16279*** your PATH or compiler configuration so that the native linker is 16280*** used, and then restart. 16281 16282_LT_EOF 16283 ;; 16284 *) 16285 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16286 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16287 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16288 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16289 else 16290 ld_shlibs_GCJ=no 16291 fi 16292 ;; 16293 esac 16294 ;; 16295 16296 sunos4*) 16297 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16298 wlarc= 16299 hardcode_direct_GCJ=yes 16300 hardcode_shlibpath_var_GCJ=no 16301 ;; 16302 16303 *) 16304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16305 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16306 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16307 else 16308 ld_shlibs_GCJ=no 16309 fi 16310 ;; 16311 esac 16312 16313 if test "$ld_shlibs_GCJ" = no; then 16314 runpath_var= 16315 hardcode_libdir_flag_spec_GCJ= 16316 export_dynamic_flag_spec_GCJ= 16317 whole_archive_flag_spec_GCJ= 16318 fi 16319 else 16320 # PORTME fill in a description of your system's linker (not GNU ld) 16321 case $host_os in 16322 aix3*) 16323 allow_undefined_flag_GCJ=unsupported 16324 always_export_symbols_GCJ=yes 16325 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' 16326 # Note: this linker hardcodes the directories in LIBPATH if there 16327 # are no directories specified by -L. 16328 hardcode_minus_L_GCJ=yes 16329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16330 # Neither direct hardcoding nor static linking is supported with a 16331 # broken collect2. 16332 hardcode_direct_GCJ=unsupported 16333 fi 16334 ;; 16335 16336 aix4* | aix5*) 16337 if test "$host_cpu" = ia64; then 16338 # On IA64, the linker does run time linking by default, so we don't 16339 # have to do anything special. 16340 aix_use_runtimelinking=no 16341 exp_sym_flag='-Bexport' 16342 no_entry_flag="" 16343 else 16344 # If we're using GNU nm, then we don't want the "-C" option. 16345 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16346 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16347 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' 16348 else 16349 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' 16350 fi 16351 aix_use_runtimelinking=no 16352 16353 # Test if we are trying to use run time linking or normal 16354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16355 # need to do runtime linking. 16356 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16357 for ld_flag in $LDFLAGS; do 16358 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16359 aix_use_runtimelinking=yes 16360 break 16361 fi 16362 done 16363 ;; 16364 esac 16365 16366 exp_sym_flag='-bexport' 16367 no_entry_flag='-bnoentry' 16368 fi 16369 16370 # When large executables or shared objects are built, AIX ld can 16371 # have problems creating the table of contents. If linking a library 16372 # or program results in "error TOC overflow" add -mminimal-toc to 16373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16375 16376 archive_cmds_GCJ='' 16377 hardcode_direct_GCJ=yes 16378 hardcode_libdir_separator_GCJ=':' 16379 link_all_deplibs_GCJ=yes 16380 16381 if test "$GCC" = yes; then 16382 case $host_os in aix4.[012]|aix4.[012].*) 16383 # We only want to do this on AIX 4.2 and lower, the check 16384 # below for broken collect2 doesn't work under 4.3+ 16385 collect2name=`${CC} -print-prog-name=collect2` 16386 if test -f "$collect2name" && \ 16387 strings "$collect2name" | grep resolve_lib_name >/dev/null 16388 then 16389 # We have reworked collect2 16390 hardcode_direct_GCJ=yes 16391 else 16392 # We have old collect2 16393 hardcode_direct_GCJ=unsupported 16394 # It fails to find uninstalled libraries when the uninstalled 16395 # path is not listed in the libpath. Setting hardcode_minus_L 16396 # to unsupported forces relinking 16397 hardcode_minus_L_GCJ=yes 16398 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16399 hardcode_libdir_separator_GCJ= 16400 fi 16401 ;; 16402 esac 16403 shared_flag='-shared' 16404 if test "$aix_use_runtimelinking" = yes; then 16405 shared_flag="$shared_flag "'${wl}-G' 16406 fi 16407 else 16408 # not using gcc 16409 if test "$host_cpu" = ia64; then 16410 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16411 # chokes on -Wl,-G. The following line is correct: 16412 shared_flag='-G' 16413 else 16414 if test "$aix_use_runtimelinking" = yes; then 16415 shared_flag='${wl}-G' 16416 else 16417 shared_flag='${wl}-bM:SRE' 16418 fi 16419 fi 16420 fi 16421 16422 # It seems that -bexpall does not export symbols beginning with 16423 # underscore (_), so it is better to generate a list of symbols to export. 16424 always_export_symbols_GCJ=yes 16425 if test "$aix_use_runtimelinking" = yes; then 16426 # Warning - without using the other runtime loading flags (-brtl), 16427 # -berok will link without error, but may produce a broken library. 16428 allow_undefined_flag_GCJ='-berok' 16429 # Determine the default libpath from the value encoded in an empty executable. 16430 cat >conftest.$ac_ext <<_ACEOF 16431/* confdefs.h. */ 16432_ACEOF 16433cat confdefs.h >>conftest.$ac_ext 16434cat >>conftest.$ac_ext <<_ACEOF 16435/* end confdefs.h. */ 16436 16437int 16438main () 16439{ 16440 16441 ; 16442 return 0; 16443} 16444_ACEOF 16445rm -f conftest.$ac_objext conftest$ac_exeext 16446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16447 (eval $ac_link) 2>conftest.er1 16448 ac_status=$? 16449 grep -v '^ *+' conftest.er1 >conftest.err 16450 rm -f conftest.er1 16451 cat conftest.err >&5 16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16453 (exit $ac_status); } && 16454 { ac_try='test -z "$ac_c_werror_flag" 16455 || test ! -s conftest.err' 16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16457 (eval $ac_try) 2>&5 16458 ac_status=$? 16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16460 (exit $ac_status); }; } && 16461 { ac_try='test -s conftest$ac_exeext' 16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16463 (eval $ac_try) 2>&5 16464 ac_status=$? 16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16466 (exit $ac_status); }; }; then 16467 16468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16469}'` 16470# Check for a 64-bit object if we didn't find anything. 16471if 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; } 16472}'`; fi 16473else 16474 echo "$as_me: failed program was:" >&5 16475sed 's/^/| /' conftest.$ac_ext >&5 16476 16477fi 16478rm -f conftest.err conftest.$ac_objext \ 16479 conftest$ac_exeext conftest.$ac_ext 16480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16481 16482 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16483 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16484 else 16485 if test "$host_cpu" = ia64; then 16486 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16487 allow_undefined_flag_GCJ="-z nodefs" 16488 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16489 else 16490 # Determine the default libpath from the value encoded in an empty executable. 16491 cat >conftest.$ac_ext <<_ACEOF 16492/* confdefs.h. */ 16493_ACEOF 16494cat confdefs.h >>conftest.$ac_ext 16495cat >>conftest.$ac_ext <<_ACEOF 16496/* end confdefs.h. */ 16497 16498int 16499main () 16500{ 16501 16502 ; 16503 return 0; 16504} 16505_ACEOF 16506rm -f conftest.$ac_objext conftest$ac_exeext 16507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16508 (eval $ac_link) 2>conftest.er1 16509 ac_status=$? 16510 grep -v '^ *+' conftest.er1 >conftest.err 16511 rm -f conftest.er1 16512 cat conftest.err >&5 16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16514 (exit $ac_status); } && 16515 { ac_try='test -z "$ac_c_werror_flag" 16516 || test ! -s conftest.err' 16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16518 (eval $ac_try) 2>&5 16519 ac_status=$? 16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16521 (exit $ac_status); }; } && 16522 { ac_try='test -s conftest$ac_exeext' 16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16524 (eval $ac_try) 2>&5 16525 ac_status=$? 16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16527 (exit $ac_status); }; }; then 16528 16529aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16530}'` 16531# Check for a 64-bit object if we didn't find anything. 16532if 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; } 16533}'`; fi 16534else 16535 echo "$as_me: failed program was:" >&5 16536sed 's/^/| /' conftest.$ac_ext >&5 16537 16538fi 16539rm -f conftest.err conftest.$ac_objext \ 16540 conftest$ac_exeext conftest.$ac_ext 16541if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16542 16543 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16544 # Warning - without using the other run time loading flags, 16545 # -berok will link without error, but may produce a broken library. 16546 no_undefined_flag_GCJ=' ${wl}-bernotok' 16547 allow_undefined_flag_GCJ=' ${wl}-berok' 16548 # Exported symbols can be pulled into shared objects from archives 16549 whole_archive_flag_spec_GCJ='$convenience' 16550 archive_cmds_need_lc_GCJ=yes 16551 # This is similar to how AIX traditionally builds its shared libraries. 16552 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16553 fi 16554 fi 16555 ;; 16556 16557 amigaos*) 16558 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)' 16559 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16560 hardcode_minus_L_GCJ=yes 16561 # see comment about different semantics on the GNU ld section 16562 ld_shlibs_GCJ=no 16563 ;; 16564 16565 bsdi[45]*) 16566 export_dynamic_flag_spec_GCJ=-rdynamic 16567 ;; 16568 16569 cygwin* | mingw* | pw32*) 16570 # When not using gcc, we currently assume that we are using 16571 # Microsoft Visual C++. 16572 # hardcode_libdir_flag_spec is actually meaningless, as there is 16573 # no search path for DLLs. 16574 hardcode_libdir_flag_spec_GCJ=' ' 16575 allow_undefined_flag_GCJ=unsupported 16576 # Tell ltmain to make .lib files, not .a files. 16577 libext=lib 16578 # Tell ltmain to make .dll files, not .so files. 16579 shrext_cmds=".dll" 16580 # FIXME: Setting linknames here is a bad hack. 16581 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16582 # The linker will automatically build a .lib file if we build a DLL. 16583 old_archive_From_new_cmds_GCJ='true' 16584 # FIXME: Should let the user specify the lib program. 16585 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16586 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 16587 enable_shared_with_static_runtimes_GCJ=yes 16588 ;; 16589 16590 darwin* | rhapsody*) 16591 case $host_os in 16592 rhapsody* | darwin1.[012]) 16593 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 16594 ;; 16595 *) # Darwin 1.3 on 16596 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16597 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16598 else 16599 case ${MACOSX_DEPLOYMENT_TARGET} in 16600 10.[012]) 16601 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16602 ;; 16603 10.*) 16604 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 16605 ;; 16606 esac 16607 fi 16608 ;; 16609 esac 16610 archive_cmds_need_lc_GCJ=no 16611 hardcode_direct_GCJ=no 16612 hardcode_automatic_GCJ=yes 16613 hardcode_shlibpath_var_GCJ=unsupported 16614 whole_archive_flag_spec_GCJ='' 16615 link_all_deplibs_GCJ=yes 16616 if test "$GCC" = yes ; then 16617 output_verbose_link_cmd='echo' 16618 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16619 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16621 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}' 16622 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}' 16623 else 16624 case $cc_basename in 16625 xlc*) 16626 output_verbose_link_cmd='echo' 16627 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16628 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16629 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16630 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}' 16631 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}' 16632 ;; 16633 *) 16634 ld_shlibs_GCJ=no 16635 ;; 16636 esac 16637 fi 16638 ;; 16639 16640 dgux*) 16641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16642 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16643 hardcode_shlibpath_var_GCJ=no 16644 ;; 16645 16646 freebsd1*) 16647 ld_shlibs_GCJ=no 16648 ;; 16649 16650 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16651 # support. Future versions do this automatically, but an explicit c++rt0.o 16652 # does not break anything, and helps significantly (at the cost of a little 16653 # extra space). 16654 freebsd2.2*) 16655 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16656 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16657 hardcode_direct_GCJ=yes 16658 hardcode_shlibpath_var_GCJ=no 16659 ;; 16660 16661 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16662 freebsd2*) 16663 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16664 hardcode_direct_GCJ=yes 16665 hardcode_minus_L_GCJ=yes 16666 hardcode_shlibpath_var_GCJ=no 16667 ;; 16668 16669 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16670 freebsd* | kfreebsd*-gnu | dragonfly*) 16671 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16672 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16673 hardcode_direct_GCJ=yes 16674 hardcode_shlibpath_var_GCJ=no 16675 ;; 16676 16677 hpux9*) 16678 if test "$GCC" = yes; then 16679 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' 16680 else 16681 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' 16682 fi 16683 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16684 hardcode_libdir_separator_GCJ=: 16685 hardcode_direct_GCJ=yes 16686 16687 # hardcode_minus_L: Not really in the search PATH, 16688 # but as the default location of the library. 16689 hardcode_minus_L_GCJ=yes 16690 export_dynamic_flag_spec_GCJ='${wl}-E' 16691 ;; 16692 16693 hpux10*) 16694 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16695 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16696 else 16697 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16698 fi 16699 if test "$with_gnu_ld" = no; then 16700 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16701 hardcode_libdir_separator_GCJ=: 16702 16703 hardcode_direct_GCJ=yes 16704 export_dynamic_flag_spec_GCJ='${wl}-E' 16705 16706 # hardcode_minus_L: Not really in the search PATH, 16707 # but as the default location of the library. 16708 hardcode_minus_L_GCJ=yes 16709 fi 16710 ;; 16711 16712 hpux11*) 16713 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16714 case $host_cpu in 16715 hppa*64*) 16716 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16717 ;; 16718 ia64*) 16719 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16720 ;; 16721 *) 16722 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16723 ;; 16724 esac 16725 else 16726 case $host_cpu in 16727 hppa*64*) 16728 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16729 ;; 16730 ia64*) 16731 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16732 ;; 16733 *) 16734 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16735 ;; 16736 esac 16737 fi 16738 if test "$with_gnu_ld" = no; then 16739 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16740 hardcode_libdir_separator_GCJ=: 16741 16742 case $host_cpu in 16743 hppa*64*|ia64*) 16744 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16745 hardcode_direct_GCJ=no 16746 hardcode_shlibpath_var_GCJ=no 16747 ;; 16748 *) 16749 hardcode_direct_GCJ=yes 16750 export_dynamic_flag_spec_GCJ='${wl}-E' 16751 16752 # hardcode_minus_L: Not really in the search PATH, 16753 # but as the default location of the library. 16754 hardcode_minus_L_GCJ=yes 16755 ;; 16756 esac 16757 fi 16758 ;; 16759 16760 irix5* | irix6* | nonstopux*) 16761 if test "$GCC" = yes; then 16762 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' 16763 else 16764 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' 16765 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16766 fi 16767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16768 hardcode_libdir_separator_GCJ=: 16769 link_all_deplibs_GCJ=yes 16770 ;; 16771 16772 netbsd*) 16773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16774 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16775 else 16776 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16777 fi 16778 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16779 hardcode_direct_GCJ=yes 16780 hardcode_shlibpath_var_GCJ=no 16781 ;; 16782 16783 newsos6) 16784 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16785 hardcode_direct_GCJ=yes 16786 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16787 hardcode_libdir_separator_GCJ=: 16788 hardcode_shlibpath_var_GCJ=no 16789 ;; 16790 16791 openbsd*) 16792 hardcode_direct_GCJ=yes 16793 hardcode_shlibpath_var_GCJ=no 16794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16795 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16796 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16797 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16798 export_dynamic_flag_spec_GCJ='${wl}-E' 16799 else 16800 case $host_os in 16801 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16802 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16803 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16804 ;; 16805 *) 16806 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16808 ;; 16809 esac 16810 fi 16811 ;; 16812 16813 os2*) 16814 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16815 hardcode_minus_L_GCJ=yes 16816 allow_undefined_flag_GCJ=unsupported 16817 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' 16818 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16819 ;; 16820 16821 osf3*) 16822 if test "$GCC" = yes; then 16823 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16824 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' 16825 else 16826 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16827 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' 16828 fi 16829 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16830 hardcode_libdir_separator_GCJ=: 16831 ;; 16832 16833 osf4* | osf5*) # as osf3* with the addition of -msym flag 16834 if test "$GCC" = yes; then 16835 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16836 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' 16837 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16838 else 16839 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16840 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' 16841 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~ 16842 $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' 16843 16844 # Both c and cxx compiler support -rpath directly 16845 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16846 fi 16847 hardcode_libdir_separator_GCJ=: 16848 ;; 16849 16850 solaris*) 16851 no_undefined_flag_GCJ=' -z text' 16852 if test "$GCC" = yes; then 16853 wlarc='${wl}' 16854 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16855 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16856 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16857 else 16858 wlarc='' 16859 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16860 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16861 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16862 fi 16863 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16864 hardcode_shlibpath_var_GCJ=no 16865 case $host_os in 16866 solaris2.[0-5] | solaris2.[0-5].*) ;; 16867 *) 16868 # The compiler driver will combine linker options so we 16869 # cannot just pass the convience library names through 16870 # without $wl, iff we do not link with $LD. 16871 # Luckily, gcc supports the same syntax we need for Sun Studio. 16872 # Supported since Solaris 2.6 (maybe 2.5.1?) 16873 case $wlarc in 16874 '') 16875 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16876 *) 16877 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' ;; 16878 esac ;; 16879 esac 16880 link_all_deplibs_GCJ=yes 16881 ;; 16882 16883 sunos4*) 16884 if test "x$host_vendor" = xsequent; then 16885 # Use $CC to link under sequent, because it throws in some extra .o 16886 # files that make .init and .fini sections work. 16887 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16888 else 16889 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16890 fi 16891 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16892 hardcode_direct_GCJ=yes 16893 hardcode_minus_L_GCJ=yes 16894 hardcode_shlibpath_var_GCJ=no 16895 ;; 16896 16897 sysv4) 16898 case $host_vendor in 16899 sni) 16900 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16901 hardcode_direct_GCJ=yes # is this really true??? 16902 ;; 16903 siemens) 16904 ## LD is ld it makes a PLAMLIB 16905 ## CC just makes a GrossModule. 16906 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16907 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16908 hardcode_direct_GCJ=no 16909 ;; 16910 motorola) 16911 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16912 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16913 ;; 16914 esac 16915 runpath_var='LD_RUN_PATH' 16916 hardcode_shlibpath_var_GCJ=no 16917 ;; 16918 16919 sysv4.3*) 16920 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16921 hardcode_shlibpath_var_GCJ=no 16922 export_dynamic_flag_spec_GCJ='-Bexport' 16923 ;; 16924 16925 sysv4*MP*) 16926 if test -d /usr/nec; then 16927 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16928 hardcode_shlibpath_var_GCJ=no 16929 runpath_var=LD_RUN_PATH 16930 hardcode_runpath_var=yes 16931 ld_shlibs_GCJ=yes 16932 fi 16933 ;; 16934 16935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 16936 no_undefined_flag_GCJ='${wl}-z,text' 16937 archive_cmds_need_lc_GCJ=no 16938 hardcode_shlibpath_var_GCJ=no 16939 runpath_var='LD_RUN_PATH' 16940 16941 if test "$GCC" = yes; then 16942 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16943 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16944 else 16945 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16946 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16947 fi 16948 ;; 16949 16950 sysv5* | sco3.2v5* | sco5v6*) 16951 # Note: We can NOT use -z defs as we might desire, because we do not 16952 # link with -lc, and that would cause any symbols used from libc to 16953 # always be unresolved, which means just about no library would 16954 # ever link correctly. If we're not using GNU ld we use -z text 16955 # though, which does catch some bad symbols but isn't as heavy-handed 16956 # as -z defs. 16957 no_undefined_flag_GCJ='${wl}-z,text' 16958 allow_undefined_flag_GCJ='${wl}-z,nodefs' 16959 archive_cmds_need_lc_GCJ=no 16960 hardcode_shlibpath_var_GCJ=no 16961 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16962 hardcode_libdir_separator_GCJ=':' 16963 link_all_deplibs_GCJ=yes 16964 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16965 runpath_var='LD_RUN_PATH' 16966 16967 if test "$GCC" = yes; then 16968 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16969 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16970 else 16971 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16972 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16973 fi 16974 ;; 16975 16976 uts4*) 16977 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16978 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16979 hardcode_shlibpath_var_GCJ=no 16980 ;; 16981 16982 *) 16983 ld_shlibs_GCJ=no 16984 ;; 16985 esac 16986 fi 16987 16988echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16989echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16990test "$ld_shlibs_GCJ" = no && can_build_shared=no 16991 16992# 16993# Do we need to explicitly link libc? 16994# 16995case "x$archive_cmds_need_lc_GCJ" in 16996x|xyes) 16997 # Assume -lc should be added 16998 archive_cmds_need_lc_GCJ=yes 16999 17000 if test "$enable_shared" = yes && test "$GCC" = yes; then 17001 case $archive_cmds_GCJ in 17002 *'~'*) 17003 # FIXME: we may have to deal with multi-command sequences. 17004 ;; 17005 '$CC '*) 17006 # Test whether the compiler implicitly links with -lc since on some 17007 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17008 # to ld, don't add -lc before -lgcc. 17009 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17010echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17011 $rm conftest* 17012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17013 17014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17015 (eval $ac_compile) 2>&5 17016 ac_status=$? 17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17018 (exit $ac_status); } 2>conftest.err; then 17019 soname=conftest 17020 lib=conftest 17021 libobjs=conftest.$ac_objext 17022 deplibs= 17023 wl=$lt_prog_compiler_wl_GCJ 17024 pic_flag=$lt_prog_compiler_pic_GCJ 17025 compiler_flags=-v 17026 linker_flags=-v 17027 verstring= 17028 output_objdir=. 17029 libname=conftest 17030 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17031 allow_undefined_flag_GCJ= 17032 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17033 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17034 ac_status=$? 17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17036 (exit $ac_status); } 17037 then 17038 archive_cmds_need_lc_GCJ=no 17039 else 17040 archive_cmds_need_lc_GCJ=yes 17041 fi 17042 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17043 else 17044 cat conftest.err 1>&5 17045 fi 17046 $rm conftest* 17047 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17048echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17049 ;; 17050 esac 17051 fi 17052 ;; 17053esac 17054 17055echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17056echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17057library_names_spec= 17058libname_spec='lib$name' 17059soname_spec= 17060shrext_cmds=".so" 17061postinstall_cmds= 17062postuninstall_cmds= 17063finish_cmds= 17064finish_eval= 17065shlibpath_var= 17066shlibpath_overrides_runpath=unknown 17067version_type=none 17068dynamic_linker="$host_os ld.so" 17069sys_lib_dlsearch_path_spec="/lib /usr/lib" 17070if test "$GCC" = yes; then 17071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17072 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17073 # if the path contains ";" then we assume it to be the separator 17074 # otherwise default to the standard path separator (i.e. ":") - it is 17075 # assumed that no part of a normal pathname contains ";" but that should 17076 # okay in the real world where ";" in dirpaths is itself problematic. 17077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17078 else 17079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17080 fi 17081else 17082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17083fi 17084need_lib_prefix=unknown 17085hardcode_into_libs=no 17086 17087# when you set need_version to no, make sure it does not cause -set_version 17088# flags to be left without arguments 17089need_version=unknown 17090 17091case $host_os in 17092aix3*) 17093 version_type=linux 17094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17095 shlibpath_var=LIBPATH 17096 17097 # AIX 3 has no versioning support, so we append a major version to the name. 17098 soname_spec='${libname}${release}${shared_ext}$major' 17099 ;; 17100 17101aix4* | aix5*) 17102 version_type=linux 17103 need_lib_prefix=no 17104 need_version=no 17105 hardcode_into_libs=yes 17106 if test "$host_cpu" = ia64; then 17107 # AIX 5 supports IA64 17108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17109 shlibpath_var=LD_LIBRARY_PATH 17110 else 17111 # With GCC up to 2.95.x, collect2 would create an import file 17112 # for dependence libraries. The import file would start with 17113 # the line `#! .'. This would cause the generated library to 17114 # depend on `.', always an invalid library. This was fixed in 17115 # development snapshots of GCC prior to 3.0. 17116 case $host_os in 17117 aix4 | aix4.[01] | aix4.[01].*) 17118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17119 echo ' yes ' 17120 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17121 : 17122 else 17123 can_build_shared=no 17124 fi 17125 ;; 17126 esac 17127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17128 # soname into executable. Probably we can add versioning support to 17129 # collect2, so additional links can be useful in future. 17130 if test "$aix_use_runtimelinking" = yes; then 17131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17132 # instead of lib<name>.a to let people know that these are not 17133 # typical AIX shared libraries. 17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17135 else 17136 # We preserve .a as extension for shared libraries through AIX4.2 17137 # and later when we are not doing run time linking. 17138 library_names_spec='${libname}${release}.a $libname.a' 17139 soname_spec='${libname}${release}${shared_ext}$major' 17140 fi 17141 shlibpath_var=LIBPATH 17142 fi 17143 ;; 17144 17145amigaos*) 17146 library_names_spec='$libname.ixlibrary $libname.a' 17147 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17148 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' 17149 ;; 17150 17151beos*) 17152 library_names_spec='${libname}${shared_ext}' 17153 dynamic_linker="$host_os ld.so" 17154 shlibpath_var=LIBRARY_PATH 17155 ;; 17156 17157bsdi[45]*) 17158 version_type=linux 17159 need_version=no 17160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17161 soname_spec='${libname}${release}${shared_ext}$major' 17162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17163 shlibpath_var=LD_LIBRARY_PATH 17164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17166 # the default ld.so.conf also contains /usr/contrib/lib and 17167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17168 # libtool to hard-code these into programs 17169 ;; 17170 17171cygwin* | mingw* | pw32*) 17172 version_type=windows 17173 shrext_cmds=".dll" 17174 need_version=no 17175 need_lib_prefix=no 17176 17177 case $GCC,$host_os in 17178 yes,cygwin* | yes,mingw* | yes,pw32*) 17179 library_names_spec='$libname.dll.a' 17180 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17181 postinstall_cmds='base_file=`basename \${file}`~ 17182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17183 dldir=$destdir/`dirname \$dlpath`~ 17184 test -d \$dldir || mkdir -p \$dldir~ 17185 $install_prog $dir/$dlname \$dldir/$dlname~ 17186 chmod a+x \$dldir/$dlname' 17187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17188 dlpath=$dir/\$dldll~ 17189 $rm \$dlpath' 17190 shlibpath_overrides_runpath=yes 17191 17192 case $host_os in 17193 cygwin*) 17194 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17196 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17197 ;; 17198 mingw*) 17199 # MinGW DLLs use traditional 'lib' prefix 17200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17202 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17203 # It is most probably a Windows format PATH printed by 17204 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17205 # path with ; separators, and with drive letters. We can handle the 17206 # drive letters (cygwin fileutils understands them), so leave them, 17207 # especially as we might pass files found there to a mingw objdump, 17208 # which wouldn't understand a cygwinified path. Ahh. 17209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17210 else 17211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17212 fi 17213 ;; 17214 pw32*) 17215 # pw32 DLLs use 'pw' prefix rather than 'lib' 17216 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17217 ;; 17218 esac 17219 ;; 17220 17221 *) 17222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17223 ;; 17224 esac 17225 dynamic_linker='Win32 ld.exe' 17226 # FIXME: first we should search . and the directory the executable is in 17227 shlibpath_var=PATH 17228 ;; 17229 17230darwin* | rhapsody*) 17231 dynamic_linker="$host_os dyld" 17232 version_type=darwin 17233 need_lib_prefix=no 17234 need_version=no 17235 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17236 soname_spec='${libname}${release}${major}$shared_ext' 17237 shlibpath_overrides_runpath=yes 17238 shlibpath_var=DYLD_LIBRARY_PATH 17239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17240 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17241 if test "$GCC" = yes; then 17242 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"` 17243 else 17244 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17245 fi 17246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17247 ;; 17248 17249dgux*) 17250 version_type=linux 17251 need_lib_prefix=no 17252 need_version=no 17253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17254 soname_spec='${libname}${release}${shared_ext}$major' 17255 shlibpath_var=LD_LIBRARY_PATH 17256 ;; 17257 17258freebsd1*) 17259 dynamic_linker=no 17260 ;; 17261 17262kfreebsd*-gnu) 17263 version_type=linux 17264 need_lib_prefix=no 17265 need_version=no 17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17267 soname_spec='${libname}${release}${shared_ext}$major' 17268 shlibpath_var=LD_LIBRARY_PATH 17269 shlibpath_overrides_runpath=no 17270 hardcode_into_libs=yes 17271 dynamic_linker='GNU ld.so' 17272 ;; 17273 17274freebsd* | dragonfly*) 17275 # DragonFly does not have aout. When/if they implement a new 17276 # versioning mechanism, adjust this. 17277 if test -x /usr/bin/objformat; then 17278 objformat=`/usr/bin/objformat` 17279 else 17280 case $host_os in 17281 freebsd[123]*) objformat=aout ;; 17282 *) objformat=elf ;; 17283 esac 17284 fi 17285 version_type=freebsd-$objformat 17286 case $version_type in 17287 freebsd-elf*) 17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17289 need_version=no 17290 need_lib_prefix=no 17291 ;; 17292 freebsd-*) 17293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17294 need_version=yes 17295 ;; 17296 esac 17297 shlibpath_var=LD_LIBRARY_PATH 17298 case $host_os in 17299 freebsd2*) 17300 shlibpath_overrides_runpath=yes 17301 ;; 17302 freebsd3.[01]* | freebsdelf3.[01]*) 17303 shlibpath_overrides_runpath=yes 17304 hardcode_into_libs=yes 17305 ;; 17306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17308 shlibpath_overrides_runpath=no 17309 hardcode_into_libs=yes 17310 ;; 17311 freebsd*) # from 4.6 on 17312 shlibpath_overrides_runpath=yes 17313 hardcode_into_libs=yes 17314 ;; 17315 esac 17316 ;; 17317 17318gnu*) 17319 version_type=linux 17320 need_lib_prefix=no 17321 need_version=no 17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17323 soname_spec='${libname}${release}${shared_ext}$major' 17324 shlibpath_var=LD_LIBRARY_PATH 17325 hardcode_into_libs=yes 17326 ;; 17327 17328hpux9* | hpux10* | hpux11*) 17329 # Give a soname corresponding to the major version so that dld.sl refuses to 17330 # link against other versions. 17331 version_type=sunos 17332 need_lib_prefix=no 17333 need_version=no 17334 case $host_cpu in 17335 ia64*) 17336 shrext_cmds='.so' 17337 hardcode_into_libs=yes 17338 dynamic_linker="$host_os dld.so" 17339 shlibpath_var=LD_LIBRARY_PATH 17340 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17342 soname_spec='${libname}${release}${shared_ext}$major' 17343 if test "X$HPUX_IA64_MODE" = X32; then 17344 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17345 else 17346 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17347 fi 17348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17349 ;; 17350 hppa*64*) 17351 shrext_cmds='.sl' 17352 hardcode_into_libs=yes 17353 dynamic_linker="$host_os dld.sl" 17354 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17357 soname_spec='${libname}${release}${shared_ext}$major' 17358 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17360 ;; 17361 *) 17362 shrext_cmds='.sl' 17363 dynamic_linker="$host_os dld.sl" 17364 shlibpath_var=SHLIB_PATH 17365 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17367 soname_spec='${libname}${release}${shared_ext}$major' 17368 ;; 17369 esac 17370 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17371 postinstall_cmds='chmod 555 $lib' 17372 ;; 17373 17374interix3*) 17375 version_type=linux 17376 need_lib_prefix=no 17377 need_version=no 17378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17379 soname_spec='${libname}${release}${shared_ext}$major' 17380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17381 shlibpath_var=LD_LIBRARY_PATH 17382 shlibpath_overrides_runpath=no 17383 hardcode_into_libs=yes 17384 ;; 17385 17386irix5* | irix6* | nonstopux*) 17387 case $host_os in 17388 nonstopux*) version_type=nonstopux ;; 17389 *) 17390 if test "$lt_cv_prog_gnu_ld" = yes; then 17391 version_type=linux 17392 else 17393 version_type=irix 17394 fi ;; 17395 esac 17396 need_lib_prefix=no 17397 need_version=no 17398 soname_spec='${libname}${release}${shared_ext}$major' 17399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17400 case $host_os in 17401 irix5* | nonstopux*) 17402 libsuff= shlibsuff= 17403 ;; 17404 *) 17405 case $LD in # libtool.m4 will add one of these switches to LD 17406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17407 libsuff= shlibsuff= libmagic=32-bit;; 17408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17409 libsuff=32 shlibsuff=N32 libmagic=N32;; 17410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17411 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17412 *) libsuff= shlibsuff= libmagic=never-match;; 17413 esac 17414 ;; 17415 esac 17416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17417 shlibpath_overrides_runpath=no 17418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17420 hardcode_into_libs=yes 17421 ;; 17422 17423# No shared lib support for Linux oldld, aout, or coff. 17424linux*oldld* | linux*aout* | linux*coff*) 17425 dynamic_linker=no 17426 ;; 17427 17428# This must be Linux ELF. 17429linux*) 17430 version_type=linux 17431 need_lib_prefix=no 17432 need_version=no 17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17434 soname_spec='${libname}${release}${shared_ext}$major' 17435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17436 shlibpath_var=LD_LIBRARY_PATH 17437 shlibpath_overrides_runpath=no 17438 # This implies no fast_install, which is unacceptable. 17439 # Some rework will be needed to allow for fast_install 17440 # before this can be enabled. 17441 hardcode_into_libs=yes 17442 17443 # find out which ABI we are using 17444 libsuff= 17445 case "$host_cpu" in 17446 x86_64*|s390x*|powerpc64*) 17447 echo '#line 17447 "configure"' > conftest.$ac_ext 17448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17449 (eval $ac_compile) 2>&5 17450 ac_status=$? 17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17452 (exit $ac_status); }; then 17453 case `/usr/bin/file conftest.$ac_objext` in 17454 *64-bit*) 17455 libsuff=64 17456 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17457 ;; 17458 esac 17459 fi 17460 rm -rf conftest* 17461 ;; 17462 esac 17463 17464 # Append ld.so.conf contents to the search path 17465 if test -f /etc/ld.so.conf; then 17466 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17467 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17468 fi 17469 17470 # We used to test for /lib/ld.so.1 and disable shared libraries on 17471 # powerpc, because MkLinux only supported shared libraries with the 17472 # GNU dynamic linker. Since this was broken with cross compilers, 17473 # most powerpc-linux boxes support dynamic linking these days and 17474 # people can always --disable-shared, the test was removed, and we 17475 # assume the GNU/Linux dynamic linker is in use. 17476 dynamic_linker='GNU/Linux ld.so' 17477 ;; 17478 17479knetbsd*-gnu) 17480 version_type=linux 17481 need_lib_prefix=no 17482 need_version=no 17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17484 soname_spec='${libname}${release}${shared_ext}$major' 17485 shlibpath_var=LD_LIBRARY_PATH 17486 shlibpath_overrides_runpath=no 17487 hardcode_into_libs=yes 17488 dynamic_linker='GNU ld.so' 17489 ;; 17490 17491netbsd*) 17492 version_type=sunos 17493 need_lib_prefix=no 17494 need_version=no 17495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17498 dynamic_linker='NetBSD (a.out) ld.so' 17499 else 17500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17501 soname_spec='${libname}${release}${shared_ext}$major' 17502 dynamic_linker='NetBSD ld.elf_so' 17503 fi 17504 shlibpath_var=LD_LIBRARY_PATH 17505 shlibpath_overrides_runpath=yes 17506 hardcode_into_libs=yes 17507 ;; 17508 17509newsos6) 17510 version_type=linux 17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17512 shlibpath_var=LD_LIBRARY_PATH 17513 shlibpath_overrides_runpath=yes 17514 ;; 17515 17516nto-qnx*) 17517 version_type=linux 17518 need_lib_prefix=no 17519 need_version=no 17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17521 soname_spec='${libname}${release}${shared_ext}$major' 17522 shlibpath_var=LD_LIBRARY_PATH 17523 shlibpath_overrides_runpath=yes 17524 ;; 17525 17526openbsd*) 17527 version_type=sunos 17528 sys_lib_dlsearch_path_spec="/usr/lib" 17529 need_lib_prefix=no 17530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17531 case $host_os in 17532 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17533 *) need_version=no ;; 17534 esac 17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17537 shlibpath_var=LD_LIBRARY_PATH 17538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17539 case $host_os in 17540 openbsd2.[89] | openbsd2.[89].*) 17541 shlibpath_overrides_runpath=no 17542 ;; 17543 *) 17544 shlibpath_overrides_runpath=yes 17545 ;; 17546 esac 17547 else 17548 shlibpath_overrides_runpath=yes 17549 fi 17550 ;; 17551 17552os2*) 17553 libname_spec='$name' 17554 shrext_cmds=".dll" 17555 need_lib_prefix=no 17556 library_names_spec='$libname${shared_ext} $libname.a' 17557 dynamic_linker='OS/2 ld.exe' 17558 shlibpath_var=LIBPATH 17559 ;; 17560 17561osf3* | osf4* | osf5*) 17562 version_type=osf 17563 need_lib_prefix=no 17564 need_version=no 17565 soname_spec='${libname}${release}${shared_ext}$major' 17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17567 shlibpath_var=LD_LIBRARY_PATH 17568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17570 ;; 17571 17572solaris*) 17573 version_type=linux 17574 need_lib_prefix=no 17575 need_version=no 17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17577 soname_spec='${libname}${release}${shared_ext}$major' 17578 shlibpath_var=LD_LIBRARY_PATH 17579 shlibpath_overrides_runpath=yes 17580 hardcode_into_libs=yes 17581 # ldd complains unless libraries are executable 17582 postinstall_cmds='chmod +x $lib' 17583 ;; 17584 17585sunos4*) 17586 version_type=sunos 17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17589 shlibpath_var=LD_LIBRARY_PATH 17590 shlibpath_overrides_runpath=yes 17591 if test "$with_gnu_ld" = yes; then 17592 need_lib_prefix=no 17593 fi 17594 need_version=yes 17595 ;; 17596 17597sysv4 | sysv4.3*) 17598 version_type=linux 17599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17600 soname_spec='${libname}${release}${shared_ext}$major' 17601 shlibpath_var=LD_LIBRARY_PATH 17602 case $host_vendor in 17603 sni) 17604 shlibpath_overrides_runpath=no 17605 need_lib_prefix=no 17606 export_dynamic_flag_spec='${wl}-Blargedynsym' 17607 runpath_var=LD_RUN_PATH 17608 ;; 17609 siemens) 17610 need_lib_prefix=no 17611 ;; 17612 motorola) 17613 need_lib_prefix=no 17614 need_version=no 17615 shlibpath_overrides_runpath=no 17616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17617 ;; 17618 esac 17619 ;; 17620 17621sysv4*MP*) 17622 if test -d /usr/nec ;then 17623 version_type=linux 17624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17625 soname_spec='$libname${shared_ext}.$major' 17626 shlibpath_var=LD_LIBRARY_PATH 17627 fi 17628 ;; 17629 17630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17631 version_type=freebsd-elf 17632 need_lib_prefix=no 17633 need_version=no 17634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17635 soname_spec='${libname}${release}${shared_ext}$major' 17636 shlibpath_var=LD_LIBRARY_PATH 17637 hardcode_into_libs=yes 17638 if test "$with_gnu_ld" = yes; then 17639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17640 shlibpath_overrides_runpath=no 17641 else 17642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17643 shlibpath_overrides_runpath=yes 17644 case $host_os in 17645 sco3.2v5*) 17646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17647 ;; 17648 esac 17649 fi 17650 sys_lib_dlsearch_path_spec='/usr/lib' 17651 ;; 17652 17653uts4*) 17654 version_type=linux 17655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17656 soname_spec='${libname}${release}${shared_ext}$major' 17657 shlibpath_var=LD_LIBRARY_PATH 17658 ;; 17659 17660*) 17661 dynamic_linker=no 17662 ;; 17663esac 17664echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17665echo "${ECHO_T}$dynamic_linker" >&6 17666test "$dynamic_linker" = no && can_build_shared=no 17667 17668variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17669if test "$GCC" = yes; then 17670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17671fi 17672 17673echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17674echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17675hardcode_action_GCJ= 17676if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17677 test -n "$runpath_var_GCJ" || \ 17678 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 17679 17680 # We can hardcode non-existant directories. 17681 if test "$hardcode_direct_GCJ" != no && 17682 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17683 # have to relink, otherwise we might link with an installed library 17684 # when we should be linking with a yet-to-be-installed one 17685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17686 test "$hardcode_minus_L_GCJ" != no; then 17687 # Linking always hardcodes the temporary library directory. 17688 hardcode_action_GCJ=relink 17689 else 17690 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17691 hardcode_action_GCJ=immediate 17692 fi 17693else 17694 # We cannot hardcode anything, or else we can only hardcode existing 17695 # directories. 17696 hardcode_action_GCJ=unsupported 17697fi 17698echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17699echo "${ECHO_T}$hardcode_action_GCJ" >&6 17700 17701if test "$hardcode_action_GCJ" = relink; then 17702 # Fast installation is not supported 17703 enable_fast_install=no 17704elif test "$shlibpath_overrides_runpath" = yes || 17705 test "$enable_shared" = no; then 17706 # Fast installation is not necessary 17707 enable_fast_install=needless 17708fi 17709 17710 17711# The else clause should only fire when bootstrapping the 17712# libtool distribution, otherwise you forgot to ship ltmain.sh 17713# with your package, and you will get complaints that there are 17714# no rules to generate ltmain.sh. 17715if test -f "$ltmain"; then 17716 # See if we are running on zsh, and set the options which allow our commands through 17717 # without removal of \ escapes. 17718 if test -n "${ZSH_VERSION+set}" ; then 17719 setopt NO_GLOB_SUBST 17720 fi 17721 # Now quote all the things that may contain metacharacters while being 17722 # careful not to overquote the AC_SUBSTed values. We take copies of the 17723 # variables and quote the copies for generation of the libtool script. 17724 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17725 SED SHELL STRIP \ 17726 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17727 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17728 deplibs_check_method reload_flag reload_cmds need_locks \ 17729 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17730 lt_cv_sys_global_symbol_to_c_name_address \ 17731 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17732 old_postinstall_cmds old_postuninstall_cmds \ 17733 compiler_GCJ \ 17734 CC_GCJ \ 17735 LD_GCJ \ 17736 lt_prog_compiler_wl_GCJ \ 17737 lt_prog_compiler_pic_GCJ \ 17738 lt_prog_compiler_static_GCJ \ 17739 lt_prog_compiler_no_builtin_flag_GCJ \ 17740 export_dynamic_flag_spec_GCJ \ 17741 thread_safe_flag_spec_GCJ \ 17742 whole_archive_flag_spec_GCJ \ 17743 enable_shared_with_static_runtimes_GCJ \ 17744 old_archive_cmds_GCJ \ 17745 old_archive_from_new_cmds_GCJ \ 17746 predep_objects_GCJ \ 17747 postdep_objects_GCJ \ 17748 predeps_GCJ \ 17749 postdeps_GCJ \ 17750 compiler_lib_search_path_GCJ \ 17751 archive_cmds_GCJ \ 17752 archive_expsym_cmds_GCJ \ 17753 postinstall_cmds_GCJ \ 17754 postuninstall_cmds_GCJ \ 17755 old_archive_from_expsyms_cmds_GCJ \ 17756 allow_undefined_flag_GCJ \ 17757 no_undefined_flag_GCJ \ 17758 export_symbols_cmds_GCJ \ 17759 hardcode_libdir_flag_spec_GCJ \ 17760 hardcode_libdir_flag_spec_ld_GCJ \ 17761 hardcode_libdir_separator_GCJ \ 17762 hardcode_automatic_GCJ \ 17763 module_cmds_GCJ \ 17764 module_expsym_cmds_GCJ \ 17765 lt_cv_prog_compiler_c_o_GCJ \ 17766 exclude_expsyms_GCJ \ 17767 include_expsyms_GCJ; do 17768 17769 case $var in 17770 old_archive_cmds_GCJ | \ 17771 old_archive_from_new_cmds_GCJ | \ 17772 archive_cmds_GCJ | \ 17773 archive_expsym_cmds_GCJ | \ 17774 module_cmds_GCJ | \ 17775 module_expsym_cmds_GCJ | \ 17776 old_archive_from_expsyms_cmds_GCJ | \ 17777 export_symbols_cmds_GCJ | \ 17778 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17779 postinstall_cmds | postuninstall_cmds | \ 17780 old_postinstall_cmds | old_postuninstall_cmds | \ 17781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17782 # Double-quote double-evaled strings. 17783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17784 ;; 17785 *) 17786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17787 ;; 17788 esac 17789 done 17790 17791 case $lt_echo in 17792 *'\$0 --fallback-echo"') 17793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17794 ;; 17795 esac 17796 17797cfgfile="$ofile" 17798 17799 cat <<__EOF__ >> "$cfgfile" 17800# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17801 17802# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17803 17804# Shell to use when invoking shell scripts. 17805SHELL=$lt_SHELL 17806 17807# Whether or not to build shared libraries. 17808build_libtool_libs=$enable_shared 17809 17810# Whether or not to build static libraries. 17811build_old_libs=$enable_static 17812 17813# Whether or not to add -lc for building shared libraries. 17814build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17815 17816# Whether or not to disallow shared libs when runtime libs are static 17817allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17818 17819# Whether or not to optimize for fast installation. 17820fast_install=$enable_fast_install 17821 17822# The host system. 17823host_alias=$host_alias 17824host=$host 17825host_os=$host_os 17826 17827# The build system. 17828build_alias=$build_alias 17829build=$build 17830build_os=$build_os 17831 17832# An echo program that does not interpret backslashes. 17833echo=$lt_echo 17834 17835# The archiver. 17836AR=$lt_AR 17837AR_FLAGS=$lt_AR_FLAGS 17838 17839# A C compiler. 17840LTCC=$lt_LTCC 17841 17842# LTCC compiler flags. 17843LTCFLAGS=$lt_LTCFLAGS 17844 17845# A language-specific compiler. 17846CC=$lt_compiler_GCJ 17847 17848# Is the compiler the GNU C compiler? 17849with_gcc=$GCC_GCJ 17850 17851gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 17852gcc_ver=\`gcc -dumpversion\` 17853 17854# An ERE matcher. 17855EGREP=$lt_EGREP 17856 17857# The linker used to build libraries. 17858LD=$lt_LD_GCJ 17859 17860# Whether we need hard or soft links. 17861LN_S=$lt_LN_S 17862 17863# A BSD-compatible nm program. 17864NM=$lt_NM 17865 17866# A symbol stripping program 17867STRIP=$lt_STRIP 17868 17869# Used to examine libraries when file_magic_cmd begins "file" 17870MAGIC_CMD=$MAGIC_CMD 17871 17872# Used on cygwin: DLL creation program. 17873DLLTOOL="$DLLTOOL" 17874 17875# Used on cygwin: object dumper. 17876OBJDUMP="$OBJDUMP" 17877 17878# Used on cygwin: assembler. 17879AS="$AS" 17880 17881# The name of the directory that contains temporary libtool files. 17882objdir=$objdir 17883 17884# How to create reloadable object files. 17885reload_flag=$lt_reload_flag 17886reload_cmds=$lt_reload_cmds 17887 17888# How to pass a linker flag through the compiler. 17889wl=$lt_lt_prog_compiler_wl_GCJ 17890 17891# Object file suffix (normally "o"). 17892objext="$ac_objext" 17893 17894# Old archive suffix (normally "a"). 17895libext="$libext" 17896 17897# Shared library suffix (normally ".so"). 17898shrext_cmds='$shrext_cmds' 17899 17900# Executable file suffix (normally ""). 17901exeext="$exeext" 17902 17903# Additional compiler flags for building library objects. 17904pic_flag=$lt_lt_prog_compiler_pic_GCJ 17905pic_mode=$pic_mode 17906 17907# What is the maximum length of a command? 17908max_cmd_len=$lt_cv_sys_max_cmd_len 17909 17910# Does compiler simultaneously support -c and -o options? 17911compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17912 17913# Must we lock files when doing compilation? 17914need_locks=$lt_need_locks 17915 17916# Do we need the lib prefix for modules? 17917need_lib_prefix=$need_lib_prefix 17918 17919# Do we need a version for libraries? 17920need_version=$need_version 17921 17922# Whether dlopen is supported. 17923dlopen_support=$enable_dlopen 17924 17925# Whether dlopen of programs is supported. 17926dlopen_self=$enable_dlopen_self 17927 17928# Whether dlopen of statically linked programs is supported. 17929dlopen_self_static=$enable_dlopen_self_static 17930 17931# Compiler flag to prevent dynamic linking. 17932link_static_flag=$lt_lt_prog_compiler_static_GCJ 17933 17934# Compiler flag to turn off builtin functions. 17935no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17936 17937# Compiler flag to allow reflexive dlopens. 17938export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17939 17940# Compiler flag to generate shared objects directly from archives. 17941whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17942 17943# Compiler flag to generate thread-safe objects. 17944thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17945 17946# Library versioning type. 17947version_type=$version_type 17948 17949# Format of library name prefix. 17950libname_spec=$lt_libname_spec 17951 17952# List of archive names. First name is the real one, the rest are links. 17953# The last name is the one that the linker finds with -lNAME. 17954library_names_spec=$lt_library_names_spec 17955 17956# The coded name of the library, if different from the real name. 17957soname_spec=$lt_soname_spec 17958 17959# Commands used to build and install an old-style archive. 17960RANLIB=$lt_RANLIB 17961old_archive_cmds=$lt_old_archive_cmds_GCJ 17962old_postinstall_cmds=$lt_old_postinstall_cmds 17963old_postuninstall_cmds=$lt_old_postuninstall_cmds 17964 17965# Create an old-style archive from a shared archive. 17966old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17967 17968# Create a temporary old-style archive to link instead of a shared archive. 17969old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17970 17971# Commands used to build and install a shared archive. 17972archive_cmds=$lt_archive_cmds_GCJ 17973archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17974postinstall_cmds=$lt_postinstall_cmds 17975postuninstall_cmds=$lt_postuninstall_cmds 17976 17977# Commands used to build a loadable module (assumed same as above if empty) 17978module_cmds=$lt_module_cmds_GCJ 17979module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17980 17981# Commands to strip libraries. 17982old_striplib=$lt_old_striplib 17983striplib=$lt_striplib 17984 17985# Dependencies to place before the objects being linked to create a 17986# shared library. 17987predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17988 17989# Dependencies to place after the objects being linked to create a 17990# shared library. 17991postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 17992 17993# Dependencies to place before the objects being linked to create a 17994# shared library. 17995predeps=$lt_predeps_GCJ 17996 17997# Dependencies to place after the objects being linked to create a 17998# shared library. 17999postdeps=$lt_postdeps_GCJ 18000 18001# The library search path used internally by the compiler when linking 18002# a shared library. 18003compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18004 18005# Method to check whether dependent libraries are shared objects. 18006deplibs_check_method=$lt_deplibs_check_method 18007 18008# Command to use when deplibs_check_method == file_magic. 18009file_magic_cmd=$lt_file_magic_cmd 18010 18011# Flag that allows shared libraries with undefined symbols to be built. 18012allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18013 18014# Flag that forces no undefined symbols. 18015no_undefined_flag=$lt_no_undefined_flag_GCJ 18016 18017# Commands used to finish a libtool library installation in a directory. 18018finish_cmds=$lt_finish_cmds 18019 18020# Same as above, but a single script fragment to be evaled but not shown. 18021finish_eval=$lt_finish_eval 18022 18023# Take the output of nm and produce a listing of raw symbols and C names. 18024global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18025 18026# Transform the output of nm in a proper C declaration 18027global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18028 18029# Transform the output of nm in a C name address pair 18030global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18031 18032# This is the shared library runtime path variable. 18033runpath_var=$runpath_var 18034 18035# This is the shared library path variable. 18036shlibpath_var=$shlibpath_var 18037 18038# Is shlibpath searched before the hard-coded library search path? 18039shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18040 18041# How to hardcode a shared library path into an executable. 18042hardcode_action=$hardcode_action_GCJ 18043 18044# Whether we should hardcode library paths into libraries. 18045hardcode_into_libs=$hardcode_into_libs 18046 18047# Flag to hardcode \$libdir into a binary during linking. 18048# This must work even if \$libdir does not exist. 18049hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18050 18051# If ld is used when linking, flag to hardcode \$libdir into 18052# a binary during linking. This must work even if \$libdir does 18053# not exist. 18054hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18055 18056# Whether we need a single -rpath flag with a separated argument. 18057hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18058 18059# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18060# resulting binary. 18061hardcode_direct=$hardcode_direct_GCJ 18062 18063# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18064# resulting binary. 18065hardcode_minus_L=$hardcode_minus_L_GCJ 18066 18067# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18068# the resulting binary. 18069hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18070 18071# Set to yes if building a shared library automatically hardcodes DIR into the library 18072# and all subsequent libraries and executables linked against it. 18073hardcode_automatic=$hardcode_automatic_GCJ 18074 18075# Variables whose values should be saved in libtool wrapper scripts and 18076# restored at relink time. 18077variables_saved_for_relink="$variables_saved_for_relink" 18078 18079# Whether libtool must link a program against all its dependency libraries. 18080link_all_deplibs=$link_all_deplibs_GCJ 18081 18082# Compile-time system search path for libraries 18083sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18084 18085# Run-time system search path for libraries 18086sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18087 18088# Fix the shell variable \$srcfile for the compiler. 18089fix_srcfile_path="$fix_srcfile_path_GCJ" 18090 18091# Set to yes if exported symbols are required. 18092always_export_symbols=$always_export_symbols_GCJ 18093 18094# The commands to list exported symbols. 18095export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18096 18097# The commands to extract the exported symbol list from a shared archive. 18098extract_expsyms_cmds=$lt_extract_expsyms_cmds 18099 18100# Symbols that should not be listed in the preloaded symbols. 18101exclude_expsyms=$lt_exclude_expsyms_GCJ 18102 18103# Symbols that must always be exported. 18104include_expsyms=$lt_include_expsyms_GCJ 18105 18106# ### END LIBTOOL TAG CONFIG: $tagname 18107 18108__EOF__ 18109 18110 18111else 18112 # If there is no Makefile yet, we rely on a make rule to execute 18113 # `config.status --recheck' to rerun these tests and create the 18114 # libtool script then. 18115 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18116 if test -f "$ltmain_in"; then 18117 test -f Makefile && make "$ltmain" 18118 fi 18119fi 18120 18121 18122ac_ext=c 18123ac_cpp='$CPP $CPPFLAGS' 18124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18126ac_compiler_gnu=$ac_cv_c_compiler_gnu 18127 18128CC="$lt_save_CC" 18129 18130 else 18131 tagname="" 18132 fi 18133 ;; 18134 18135 RC) 18136 18137 18138 18139# Source file extension for RC test sources. 18140ac_ext=rc 18141 18142# Object file extension for compiled RC test sources. 18143objext=o 18144objext_RC=$objext 18145 18146# Code to be used in simple compile tests 18147lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18148 18149# Code to be used in simple link tests 18150lt_simple_link_test_code="$lt_simple_compile_test_code" 18151 18152# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18153 18154# If no C compiler was specified, use CC. 18155LTCC=${LTCC-"$CC"} 18156 18157# If no C compiler flags were specified, use CFLAGS. 18158LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18159 18160# Allow CC to be a program name with arguments. 18161compiler=$CC 18162 18163 18164# save warnings/boilerplate of simple test code 18165ac_outfile=conftest.$ac_objext 18166printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18167eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18168_lt_compiler_boilerplate=`cat conftest.err` 18169$rm conftest* 18170 18171ac_outfile=conftest.$ac_objext 18172printf "$lt_simple_link_test_code" >conftest.$ac_ext 18173eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18174_lt_linker_boilerplate=`cat conftest.err` 18175$rm conftest* 18176 18177 18178# Allow CC to be a program name with arguments. 18179lt_save_CC="$CC" 18180CC=${RC-"windres"} 18181compiler=$CC 18182compiler_RC=$CC 18183for cc_temp in $compiler""; do 18184 case $cc_temp in 18185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18187 \-*) ;; 18188 *) break;; 18189 esac 18190done 18191cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18192 18193lt_cv_prog_compiler_c_o_RC=yes 18194 18195# The else clause should only fire when bootstrapping the 18196# libtool distribution, otherwise you forgot to ship ltmain.sh 18197# with your package, and you will get complaints that there are 18198# no rules to generate ltmain.sh. 18199if test -f "$ltmain"; then 18200 # See if we are running on zsh, and set the options which allow our commands through 18201 # without removal of \ escapes. 18202 if test -n "${ZSH_VERSION+set}" ; then 18203 setopt NO_GLOB_SUBST 18204 fi 18205 # Now quote all the things that may contain metacharacters while being 18206 # careful not to overquote the AC_SUBSTed values. We take copies of the 18207 # variables and quote the copies for generation of the libtool script. 18208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18209 SED SHELL STRIP \ 18210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18212 deplibs_check_method reload_flag reload_cmds need_locks \ 18213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18214 lt_cv_sys_global_symbol_to_c_name_address \ 18215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18216 old_postinstall_cmds old_postuninstall_cmds \ 18217 compiler_RC \ 18218 CC_RC \ 18219 LD_RC \ 18220 lt_prog_compiler_wl_RC \ 18221 lt_prog_compiler_pic_RC \ 18222 lt_prog_compiler_static_RC \ 18223 lt_prog_compiler_no_builtin_flag_RC \ 18224 export_dynamic_flag_spec_RC \ 18225 thread_safe_flag_spec_RC \ 18226 whole_archive_flag_spec_RC \ 18227 enable_shared_with_static_runtimes_RC \ 18228 old_archive_cmds_RC \ 18229 old_archive_from_new_cmds_RC \ 18230 predep_objects_RC \ 18231 postdep_objects_RC \ 18232 predeps_RC \ 18233 postdeps_RC \ 18234 compiler_lib_search_path_RC \ 18235 archive_cmds_RC \ 18236 archive_expsym_cmds_RC \ 18237 postinstall_cmds_RC \ 18238 postuninstall_cmds_RC \ 18239 old_archive_from_expsyms_cmds_RC \ 18240 allow_undefined_flag_RC \ 18241 no_undefined_flag_RC \ 18242 export_symbols_cmds_RC \ 18243 hardcode_libdir_flag_spec_RC \ 18244 hardcode_libdir_flag_spec_ld_RC \ 18245 hardcode_libdir_separator_RC \ 18246 hardcode_automatic_RC \ 18247 module_cmds_RC \ 18248 module_expsym_cmds_RC \ 18249 lt_cv_prog_compiler_c_o_RC \ 18250 exclude_expsyms_RC \ 18251 include_expsyms_RC; do 18252 18253 case $var in 18254 old_archive_cmds_RC | \ 18255 old_archive_from_new_cmds_RC | \ 18256 archive_cmds_RC | \ 18257 archive_expsym_cmds_RC | \ 18258 module_cmds_RC | \ 18259 module_expsym_cmds_RC | \ 18260 old_archive_from_expsyms_cmds_RC | \ 18261 export_symbols_cmds_RC | \ 18262 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18263 postinstall_cmds | postuninstall_cmds | \ 18264 old_postinstall_cmds | old_postuninstall_cmds | \ 18265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18266 # Double-quote double-evaled strings. 18267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18268 ;; 18269 *) 18270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18271 ;; 18272 esac 18273 done 18274 18275 case $lt_echo in 18276 *'\$0 --fallback-echo"') 18277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18278 ;; 18279 esac 18280 18281cfgfile="$ofile" 18282 18283 cat <<__EOF__ >> "$cfgfile" 18284# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18285 18286# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18287 18288# Shell to use when invoking shell scripts. 18289SHELL=$lt_SHELL 18290 18291# Whether or not to build shared libraries. 18292build_libtool_libs=$enable_shared 18293 18294# Whether or not to build static libraries. 18295build_old_libs=$enable_static 18296 18297# Whether or not to add -lc for building shared libraries. 18298build_libtool_need_lc=$archive_cmds_need_lc_RC 18299 18300# Whether or not to disallow shared libs when runtime libs are static 18301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18302 18303# Whether or not to optimize for fast installation. 18304fast_install=$enable_fast_install 18305 18306# The host system. 18307host_alias=$host_alias 18308host=$host 18309host_os=$host_os 18310 18311# The build system. 18312build_alias=$build_alias 18313build=$build 18314build_os=$build_os 18315 18316# An echo program that does not interpret backslashes. 18317echo=$lt_echo 18318 18319# The archiver. 18320AR=$lt_AR 18321AR_FLAGS=$lt_AR_FLAGS 18322 18323# A C compiler. 18324LTCC=$lt_LTCC 18325 18326# LTCC compiler flags. 18327LTCFLAGS=$lt_LTCFLAGS 18328 18329# A language-specific compiler. 18330CC=$lt_compiler_RC 18331 18332# Is the compiler the GNU C compiler? 18333with_gcc=$GCC_RC 18334 18335gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 18336gcc_ver=\`gcc -dumpversion\` 18337 18338# An ERE matcher. 18339EGREP=$lt_EGREP 18340 18341# The linker used to build libraries. 18342LD=$lt_LD_RC 18343 18344# Whether we need hard or soft links. 18345LN_S=$lt_LN_S 18346 18347# A BSD-compatible nm program. 18348NM=$lt_NM 18349 18350# A symbol stripping program 18351STRIP=$lt_STRIP 18352 18353# Used to examine libraries when file_magic_cmd begins "file" 18354MAGIC_CMD=$MAGIC_CMD 18355 18356# Used on cygwin: DLL creation program. 18357DLLTOOL="$DLLTOOL" 18358 18359# Used on cygwin: object dumper. 18360OBJDUMP="$OBJDUMP" 18361 18362# Used on cygwin: assembler. 18363AS="$AS" 18364 18365# The name of the directory that contains temporary libtool files. 18366objdir=$objdir 18367 18368# How to create reloadable object files. 18369reload_flag=$lt_reload_flag 18370reload_cmds=$lt_reload_cmds 18371 18372# How to pass a linker flag through the compiler. 18373wl=$lt_lt_prog_compiler_wl_RC 18374 18375# Object file suffix (normally "o"). 18376objext="$ac_objext" 18377 18378# Old archive suffix (normally "a"). 18379libext="$libext" 18380 18381# Shared library suffix (normally ".so"). 18382shrext_cmds='$shrext_cmds' 18383 18384# Executable file suffix (normally ""). 18385exeext="$exeext" 18386 18387# Additional compiler flags for building library objects. 18388pic_flag=$lt_lt_prog_compiler_pic_RC 18389pic_mode=$pic_mode 18390 18391# What is the maximum length of a command? 18392max_cmd_len=$lt_cv_sys_max_cmd_len 18393 18394# Does compiler simultaneously support -c and -o options? 18395compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18396 18397# Must we lock files when doing compilation? 18398need_locks=$lt_need_locks 18399 18400# Do we need the lib prefix for modules? 18401need_lib_prefix=$need_lib_prefix 18402 18403# Do we need a version for libraries? 18404need_version=$need_version 18405 18406# Whether dlopen is supported. 18407dlopen_support=$enable_dlopen 18408 18409# Whether dlopen of programs is supported. 18410dlopen_self=$enable_dlopen_self 18411 18412# Whether dlopen of statically linked programs is supported. 18413dlopen_self_static=$enable_dlopen_self_static 18414 18415# Compiler flag to prevent dynamic linking. 18416link_static_flag=$lt_lt_prog_compiler_static_RC 18417 18418# Compiler flag to turn off builtin functions. 18419no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18420 18421# Compiler flag to allow reflexive dlopens. 18422export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18423 18424# Compiler flag to generate shared objects directly from archives. 18425whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18426 18427# Compiler flag to generate thread-safe objects. 18428thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18429 18430# Library versioning type. 18431version_type=$version_type 18432 18433# Format of library name prefix. 18434libname_spec=$lt_libname_spec 18435 18436# List of archive names. First name is the real one, the rest are links. 18437# The last name is the one that the linker finds with -lNAME. 18438library_names_spec=$lt_library_names_spec 18439 18440# The coded name of the library, if different from the real name. 18441soname_spec=$lt_soname_spec 18442 18443# Commands used to build and install an old-style archive. 18444RANLIB=$lt_RANLIB 18445old_archive_cmds=$lt_old_archive_cmds_RC 18446old_postinstall_cmds=$lt_old_postinstall_cmds 18447old_postuninstall_cmds=$lt_old_postuninstall_cmds 18448 18449# Create an old-style archive from a shared archive. 18450old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18451 18452# Create a temporary old-style archive to link instead of a shared archive. 18453old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18454 18455# Commands used to build and install a shared archive. 18456archive_cmds=$lt_archive_cmds_RC 18457archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18458postinstall_cmds=$lt_postinstall_cmds 18459postuninstall_cmds=$lt_postuninstall_cmds 18460 18461# Commands used to build a loadable module (assumed same as above if empty) 18462module_cmds=$lt_module_cmds_RC 18463module_expsym_cmds=$lt_module_expsym_cmds_RC 18464 18465# Commands to strip libraries. 18466old_striplib=$lt_old_striplib 18467striplib=$lt_striplib 18468 18469# Dependencies to place before the objects being linked to create a 18470# shared library. 18471predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18472 18473# Dependencies to place after the objects being linked to create a 18474# shared library. 18475postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18476 18477# Dependencies to place before the objects being linked to create a 18478# shared library. 18479predeps=$lt_predeps_RC 18480 18481# Dependencies to place after the objects being linked to create a 18482# shared library. 18483postdeps=$lt_postdeps_RC 18484 18485# The library search path used internally by the compiler when linking 18486# a shared library. 18487compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18488 18489# Method to check whether dependent libraries are shared objects. 18490deplibs_check_method=$lt_deplibs_check_method 18491 18492# Command to use when deplibs_check_method == file_magic. 18493file_magic_cmd=$lt_file_magic_cmd 18494 18495# Flag that allows shared libraries with undefined symbols to be built. 18496allow_undefined_flag=$lt_allow_undefined_flag_RC 18497 18498# Flag that forces no undefined symbols. 18499no_undefined_flag=$lt_no_undefined_flag_RC 18500 18501# Commands used to finish a libtool library installation in a directory. 18502finish_cmds=$lt_finish_cmds 18503 18504# Same as above, but a single script fragment to be evaled but not shown. 18505finish_eval=$lt_finish_eval 18506 18507# Take the output of nm and produce a listing of raw symbols and C names. 18508global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18509 18510# Transform the output of nm in a proper C declaration 18511global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18512 18513# Transform the output of nm in a C name address pair 18514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18515 18516# This is the shared library runtime path variable. 18517runpath_var=$runpath_var 18518 18519# This is the shared library path variable. 18520shlibpath_var=$shlibpath_var 18521 18522# Is shlibpath searched before the hard-coded library search path? 18523shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18524 18525# How to hardcode a shared library path into an executable. 18526hardcode_action=$hardcode_action_RC 18527 18528# Whether we should hardcode library paths into libraries. 18529hardcode_into_libs=$hardcode_into_libs 18530 18531# Flag to hardcode \$libdir into a binary during linking. 18532# This must work even if \$libdir does not exist. 18533hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18534 18535# If ld is used when linking, flag to hardcode \$libdir into 18536# a binary during linking. This must work even if \$libdir does 18537# not exist. 18538hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18539 18540# Whether we need a single -rpath flag with a separated argument. 18541hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18542 18543# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18544# resulting binary. 18545hardcode_direct=$hardcode_direct_RC 18546 18547# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18548# resulting binary. 18549hardcode_minus_L=$hardcode_minus_L_RC 18550 18551# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18552# the resulting binary. 18553hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18554 18555# Set to yes if building a shared library automatically hardcodes DIR into the library 18556# and all subsequent libraries and executables linked against it. 18557hardcode_automatic=$hardcode_automatic_RC 18558 18559# Variables whose values should be saved in libtool wrapper scripts and 18560# restored at relink time. 18561variables_saved_for_relink="$variables_saved_for_relink" 18562 18563# Whether libtool must link a program against all its dependency libraries. 18564link_all_deplibs=$link_all_deplibs_RC 18565 18566# Compile-time system search path for libraries 18567sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 18568 18569# Run-time system search path for libraries 18570sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18571 18572# Fix the shell variable \$srcfile for the compiler. 18573fix_srcfile_path="$fix_srcfile_path_RC" 18574 18575# Set to yes if exported symbols are required. 18576always_export_symbols=$always_export_symbols_RC 18577 18578# The commands to list exported symbols. 18579export_symbols_cmds=$lt_export_symbols_cmds_RC 18580 18581# The commands to extract the exported symbol list from a shared archive. 18582extract_expsyms_cmds=$lt_extract_expsyms_cmds 18583 18584# Symbols that should not be listed in the preloaded symbols. 18585exclude_expsyms=$lt_exclude_expsyms_RC 18586 18587# Symbols that must always be exported. 18588include_expsyms=$lt_include_expsyms_RC 18589 18590# ### END LIBTOOL TAG CONFIG: $tagname 18591 18592__EOF__ 18593 18594 18595else 18596 # If there is no Makefile yet, we rely on a make rule to execute 18597 # `config.status --recheck' to rerun these tests and create the 18598 # libtool script then. 18599 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18600 if test -f "$ltmain_in"; then 18601 test -f Makefile && make "$ltmain" 18602 fi 18603fi 18604 18605 18606ac_ext=c 18607ac_cpp='$CPP $CPPFLAGS' 18608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18610ac_compiler_gnu=$ac_cv_c_compiler_gnu 18611 18612CC="$lt_save_CC" 18613 18614 ;; 18615 18616 *) 18617 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18618echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18619 { (exit 1); exit 1; }; } 18620 ;; 18621 esac 18622 18623 # Append the new tag name to the list of available tags. 18624 if test -n "$tagname" ; then 18625 available_tags="$available_tags $tagname" 18626 fi 18627 fi 18628 done 18629 IFS="$lt_save_ifs" 18630 18631 # Now substitute the updated list of available tags. 18632 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18633 mv "${ofile}T" "$ofile" 18634 chmod +x "$ofile" 18635 else 18636 rm -f "${ofile}T" 18637 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18638echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18639 { (exit 1); exit 1; }; } 18640 fi 18641fi 18642 18643 18644 18645# This can be used to rebuild libtool when needed 18646LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18647 18648# Always use our own libtool. 18649LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18650 18651# Prevent multiple expansion 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672# Find a good install program. We prefer a C program (faster), 18673# so one script is as good as another. But avoid the broken or 18674# incompatible versions: 18675# SysV /etc/install, /usr/sbin/install 18676# SunOS /usr/etc/install 18677# IRIX /sbin/install 18678# AIX /bin/install 18679# AmigaOS /C/install, which installs bootblocks on floppy discs 18680# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 18681# AFS /usr/afsws/bin/install, which mishandles nonexistent args 18682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 18683# OS/2's system install, which has a completely different semantic 18684# ./install, which can be erroneously created by make from ./install.sh. 18685echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 18686echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 18687if test -z "$INSTALL"; then 18688if test "${ac_cv_path_install+set}" = set; then 18689 echo $ECHO_N "(cached) $ECHO_C" >&6 18690else 18691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18692for as_dir in $PATH 18693do 18694 IFS=$as_save_IFS 18695 test -z "$as_dir" && as_dir=. 18696 # Account for people who put trailing slashes in PATH elements. 18697case $as_dir/ in 18698 ./ | .// | /cC/* | \ 18699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 18700 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 18701 /usr/ucb/* ) ;; 18702 *) 18703 # OSF1 and SCO ODT 3.0 have their own names for install. 18704 # Don't use installbsd from OSF since it installs stuff as root 18705 # by default. 18706 for ac_prog in ginstall scoinst install; do 18707 for ac_exec_ext in '' $ac_executable_extensions; do 18708 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 18709 if test $ac_prog = install && 18710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 18711 # AIX install. It has an incompatible calling convention. 18712 : 18713 elif test $ac_prog = install && 18714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 18715 # program-specific install script used by HP pwplus--don't use. 18716 : 18717 else 18718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 18719 break 3 18720 fi 18721 fi 18722 done 18723 done 18724 ;; 18725esac 18726done 18727 18728 18729fi 18730 if test "${ac_cv_path_install+set}" = set; then 18731 INSTALL=$ac_cv_path_install 18732 else 18733 # As a last resort, use the slow shell script. We don't cache a 18734 # path for INSTALL within a source directory, because that will 18735 # break other packages using the cache if that directory is 18736 # removed, or if the path is relative. 18737 INSTALL=$ac_install_sh 18738 fi 18739fi 18740echo "$as_me:$LINENO: result: $INSTALL" >&5 18741echo "${ECHO_T}$INSTALL" >&6 18742 18743# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 18744# It thinks the first close brace ends the variable substitution. 18745test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 18746 18747test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 18748 18749test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 18750 18751 18752 ac_config_headers="$ac_config_headers src/pqt_config.h:src/pqt_config.h.in" 18753 18754ac_ext=cc 18755ac_cpp='$CXXCPP $CPPFLAGS' 18756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18759if test -n "$ac_tool_prefix"; then 18760 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 18761 do 18762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 18763set dummy $ac_tool_prefix$ac_prog; ac_word=$2 18764echo "$as_me:$LINENO: checking for $ac_word" >&5 18765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18766if test "${ac_cv_prog_CXX+set}" = set; then 18767 echo $ECHO_N "(cached) $ECHO_C" >&6 18768else 18769 if test -n "$CXX"; then 18770 ac_cv_prog_CXX="$CXX" # Let the user override the test. 18771else 18772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18773for as_dir in $PATH 18774do 18775 IFS=$as_save_IFS 18776 test -z "$as_dir" && as_dir=. 18777 for ac_exec_ext in '' $ac_executable_extensions; do 18778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 18780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18781 break 2 18782 fi 18783done 18784done 18785 18786fi 18787fi 18788CXX=$ac_cv_prog_CXX 18789if test -n "$CXX"; then 18790 echo "$as_me:$LINENO: result: $CXX" >&5 18791echo "${ECHO_T}$CXX" >&6 18792else 18793 echo "$as_me:$LINENO: result: no" >&5 18794echo "${ECHO_T}no" >&6 18795fi 18796 18797 test -n "$CXX" && break 18798 done 18799fi 18800if test -z "$CXX"; then 18801 ac_ct_CXX=$CXX 18802 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 18803do 18804 # Extract the first word of "$ac_prog", so it can be a program name with args. 18805set dummy $ac_prog; ac_word=$2 18806echo "$as_me:$LINENO: checking for $ac_word" >&5 18807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18808if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 18809 echo $ECHO_N "(cached) $ECHO_C" >&6 18810else 18811 if test -n "$ac_ct_CXX"; then 18812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 18813else 18814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18815for as_dir in $PATH 18816do 18817 IFS=$as_save_IFS 18818 test -z "$as_dir" && as_dir=. 18819 for ac_exec_ext in '' $ac_executable_extensions; do 18820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18821 ac_cv_prog_ac_ct_CXX="$ac_prog" 18822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18823 break 2 18824 fi 18825done 18826done 18827 18828fi 18829fi 18830ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 18831if test -n "$ac_ct_CXX"; then 18832 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 18833echo "${ECHO_T}$ac_ct_CXX" >&6 18834else 18835 echo "$as_me:$LINENO: result: no" >&5 18836echo "${ECHO_T}no" >&6 18837fi 18838 18839 test -n "$ac_ct_CXX" && break 18840done 18841test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 18842 18843 CXX=$ac_ct_CXX 18844fi 18845 18846 18847# Provide some information about the compiler. 18848echo "$as_me:$LINENO:" \ 18849 "checking for C++ compiler version" >&5 18850ac_compiler=`set X $ac_compile; echo $2` 18851{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 18852 (eval $ac_compiler --version </dev/null >&5) 2>&5 18853 ac_status=$? 18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18855 (exit $ac_status); } 18856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 18857 (eval $ac_compiler -v </dev/null >&5) 2>&5 18858 ac_status=$? 18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18860 (exit $ac_status); } 18861{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 18862 (eval $ac_compiler -V </dev/null >&5) 2>&5 18863 ac_status=$? 18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18865 (exit $ac_status); } 18866 18867echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 18868echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 18869if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 18870 echo $ECHO_N "(cached) $ECHO_C" >&6 18871else 18872 cat >conftest.$ac_ext <<_ACEOF 18873/* confdefs.h. */ 18874_ACEOF 18875cat confdefs.h >>conftest.$ac_ext 18876cat >>conftest.$ac_ext <<_ACEOF 18877/* end confdefs.h. */ 18878 18879int 18880main () 18881{ 18882#ifndef __GNUC__ 18883 choke me 18884#endif 18885 18886 ; 18887 return 0; 18888} 18889_ACEOF 18890rm -f conftest.$ac_objext 18891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18892 (eval $ac_compile) 2>conftest.er1 18893 ac_status=$? 18894 grep -v '^ *+' conftest.er1 >conftest.err 18895 rm -f conftest.er1 18896 cat conftest.err >&5 18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18898 (exit $ac_status); } && 18899 { ac_try='test -z "$ac_cxx_werror_flag" 18900 || test ! -s conftest.err' 18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18902 (eval $ac_try) 2>&5 18903 ac_status=$? 18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18905 (exit $ac_status); }; } && 18906 { ac_try='test -s conftest.$ac_objext' 18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18908 (eval $ac_try) 2>&5 18909 ac_status=$? 18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18911 (exit $ac_status); }; }; then 18912 ac_compiler_gnu=yes 18913else 18914 echo "$as_me: failed program was:" >&5 18915sed 's/^/| /' conftest.$ac_ext >&5 18916 18917ac_compiler_gnu=no 18918fi 18919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18920ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 18921 18922fi 18923echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 18924echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 18925GXX=`test $ac_compiler_gnu = yes && echo yes` 18926ac_test_CXXFLAGS=${CXXFLAGS+set} 18927ac_save_CXXFLAGS=$CXXFLAGS 18928CXXFLAGS="-g" 18929echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 18930echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 18931if test "${ac_cv_prog_cxx_g+set}" = set; then 18932 echo $ECHO_N "(cached) $ECHO_C" >&6 18933else 18934 cat >conftest.$ac_ext <<_ACEOF 18935/* confdefs.h. */ 18936_ACEOF 18937cat confdefs.h >>conftest.$ac_ext 18938cat >>conftest.$ac_ext <<_ACEOF 18939/* end confdefs.h. */ 18940 18941int 18942main () 18943{ 18944 18945 ; 18946 return 0; 18947} 18948_ACEOF 18949rm -f conftest.$ac_objext 18950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18951 (eval $ac_compile) 2>conftest.er1 18952 ac_status=$? 18953 grep -v '^ *+' conftest.er1 >conftest.err 18954 rm -f conftest.er1 18955 cat conftest.err >&5 18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18957 (exit $ac_status); } && 18958 { ac_try='test -z "$ac_cxx_werror_flag" 18959 || test ! -s conftest.err' 18960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18961 (eval $ac_try) 2>&5 18962 ac_status=$? 18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18964 (exit $ac_status); }; } && 18965 { ac_try='test -s conftest.$ac_objext' 18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18967 (eval $ac_try) 2>&5 18968 ac_status=$? 18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18970 (exit $ac_status); }; }; then 18971 ac_cv_prog_cxx_g=yes 18972else 18973 echo "$as_me: failed program was:" >&5 18974sed 's/^/| /' conftest.$ac_ext >&5 18975 18976ac_cv_prog_cxx_g=no 18977fi 18978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18979fi 18980echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 18981echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 18982if test "$ac_test_CXXFLAGS" = set; then 18983 CXXFLAGS=$ac_save_CXXFLAGS 18984elif test $ac_cv_prog_cxx_g = yes; then 18985 if test "$GXX" = yes; then 18986 CXXFLAGS="-g -O2" 18987 else 18988 CXXFLAGS="-g" 18989 fi 18990else 18991 if test "$GXX" = yes; then 18992 CXXFLAGS="-O2" 18993 else 18994 CXXFLAGS= 18995 fi 18996fi 18997for ac_declaration in \ 18998 '' \ 18999 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19000 'extern "C" void std::exit (int); using std::exit;' \ 19001 'extern "C" void exit (int) throw ();' \ 19002 'extern "C" void exit (int);' \ 19003 'void exit (int);' 19004do 19005 cat >conftest.$ac_ext <<_ACEOF 19006/* confdefs.h. */ 19007_ACEOF 19008cat confdefs.h >>conftest.$ac_ext 19009cat >>conftest.$ac_ext <<_ACEOF 19010/* end confdefs.h. */ 19011$ac_declaration 19012#include <stdlib.h> 19013int 19014main () 19015{ 19016exit (42); 19017 ; 19018 return 0; 19019} 19020_ACEOF 19021rm -f conftest.$ac_objext 19022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19023 (eval $ac_compile) 2>conftest.er1 19024 ac_status=$? 19025 grep -v '^ *+' conftest.er1 >conftest.err 19026 rm -f conftest.er1 19027 cat conftest.err >&5 19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19029 (exit $ac_status); } && 19030 { ac_try='test -z "$ac_cxx_werror_flag" 19031 || test ! -s conftest.err' 19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19033 (eval $ac_try) 2>&5 19034 ac_status=$? 19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19036 (exit $ac_status); }; } && 19037 { ac_try='test -s conftest.$ac_objext' 19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19039 (eval $ac_try) 2>&5 19040 ac_status=$? 19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19042 (exit $ac_status); }; }; then 19043 : 19044else 19045 echo "$as_me: failed program was:" >&5 19046sed 's/^/| /' conftest.$ac_ext >&5 19047 19048continue 19049fi 19050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19051 cat >conftest.$ac_ext <<_ACEOF 19052/* confdefs.h. */ 19053_ACEOF 19054cat confdefs.h >>conftest.$ac_ext 19055cat >>conftest.$ac_ext <<_ACEOF 19056/* end confdefs.h. */ 19057$ac_declaration 19058int 19059main () 19060{ 19061exit (42); 19062 ; 19063 return 0; 19064} 19065_ACEOF 19066rm -f conftest.$ac_objext 19067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19068 (eval $ac_compile) 2>conftest.er1 19069 ac_status=$? 19070 grep -v '^ *+' conftest.er1 >conftest.err 19071 rm -f conftest.er1 19072 cat conftest.err >&5 19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19074 (exit $ac_status); } && 19075 { ac_try='test -z "$ac_cxx_werror_flag" 19076 || test ! -s conftest.err' 19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19078 (eval $ac_try) 2>&5 19079 ac_status=$? 19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19081 (exit $ac_status); }; } && 19082 { ac_try='test -s conftest.$ac_objext' 19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19084 (eval $ac_try) 2>&5 19085 ac_status=$? 19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19087 (exit $ac_status); }; }; then 19088 break 19089else 19090 echo "$as_me: failed program was:" >&5 19091sed 's/^/| /' conftest.$ac_ext >&5 19092 19093fi 19094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19095done 19096rm -f conftest* 19097if test -n "$ac_declaration"; then 19098 echo '#ifdef __cplusplus' >>confdefs.h 19099 echo $ac_declaration >>confdefs.h 19100 echo '#endif' >>confdefs.h 19101fi 19102 19103ac_ext=c 19104ac_cpp='$CPP $CPPFLAGS' 19105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19107ac_compiler_gnu=$ac_cv_c_compiler_gnu 19108 19109depcc="$CXX" am_compiler_list= 19110 19111echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19112echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19113if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 19114 echo $ECHO_N "(cached) $ECHO_C" >&6 19115else 19116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19117 # We make a subdir and do the tests there. Otherwise we can end up 19118 # making bogus files that we don't know about and never remove. For 19119 # instance it was reported that on HP-UX the gcc test will end up 19120 # making a dummy file named `D' -- because `-MD' means `put the output 19121 # in D'. 19122 mkdir conftest.dir 19123 # Copy depcomp to subdir because otherwise we won't find it if we're 19124 # using a relative directory. 19125 cp "$am_depcomp" conftest.dir 19126 cd conftest.dir 19127 # We will build objects and dependencies in a subdirectory because 19128 # it helps to detect inapplicable dependency modes. For instance 19129 # both Tru64's cc and ICC support -MD to output dependencies as a 19130 # side effect of compilation, but ICC will put the dependencies in 19131 # the current directory while Tru64 will put them in the object 19132 # directory. 19133 mkdir sub 19134 19135 am_cv_CXX_dependencies_compiler_type=none 19136 if test "$am_compiler_list" = ""; then 19137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19138 fi 19139 for depmode in $am_compiler_list; do 19140 # Setup a source with many dependencies, because some compilers 19141 # like to wrap large dependency lists on column 80 (with \), and 19142 # we should not choose a depcomp mode which is confused by this. 19143 # 19144 # We need to recreate these files for each test, as the compiler may 19145 # overwrite some of them when testing with obscure command lines. 19146 # This happens at least with the AIX C compiler. 19147 : > sub/conftest.c 19148 for i in 1 2 3 4 5 6; do 19149 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19150 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19151 # Solaris 8's {/usr,}/bin/sh. 19152 touch sub/conftst$i.h 19153 done 19154 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19155 19156 case $depmode in 19157 nosideeffect) 19158 # after this tag, mechanisms are not by side-effect, so they'll 19159 # only be used when explicitly requested 19160 if test "x$enable_dependency_tracking" = xyes; then 19161 continue 19162 else 19163 break 19164 fi 19165 ;; 19166 none) break ;; 19167 esac 19168 # We check with `-c' and `-o' for the sake of the "dashmstdout" 19169 # mode. It turns out that the SunPro C++ compiler does not properly 19170 # handle `-M -o', and we need to detect this. 19171 if depmode=$depmode \ 19172 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 19173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 19174 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 19175 >/dev/null 2>conftest.err && 19176 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 19177 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 19178 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 19179 # icc doesn't choke on unknown options, it will just issue warnings 19180 # or remarks (even with -Werror). So we grep stderr for any message 19181 # that says an option was ignored or not supported. 19182 # When given -MP, icc 7.0 and 7.1 complain thusly: 19183 # icc: Command line warning: ignoring option '-M'; no argument required 19184 # The diagnosis changed in icc 8.0: 19185 # icc: Command line remark: option '-MP' not supported 19186 if (grep 'ignoring option' conftest.err || 19187 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 19188 am_cv_CXX_dependencies_compiler_type=$depmode 19189 break 19190 fi 19191 fi 19192 done 19193 19194 cd .. 19195 rm -rf conftest.dir 19196else 19197 am_cv_CXX_dependencies_compiler_type=none 19198fi 19199 19200fi 19201echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 19202echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 19203CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 19204 19205 19206 19207if 19208 test "x$enable_dependency_tracking" != xno \ 19209 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 19210 am__fastdepCXX_TRUE= 19211 am__fastdepCXX_FALSE='#' 19212else 19213 am__fastdepCXX_TRUE='#' 19214 am__fastdepCXX_FALSE= 19215fi 19216 19217 19218ac_ext=c 19219ac_cpp='$CPP $CPPFLAGS' 19220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19222ac_compiler_gnu=$ac_cv_c_compiler_gnu 19223if test -n "$ac_tool_prefix"; then 19224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19225set dummy ${ac_tool_prefix}gcc; ac_word=$2 19226echo "$as_me:$LINENO: checking for $ac_word" >&5 19227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19228if test "${ac_cv_prog_CC+set}" = set; then 19229 echo $ECHO_N "(cached) $ECHO_C" >&6 19230else 19231 if test -n "$CC"; then 19232 ac_cv_prog_CC="$CC" # Let the user override the test. 19233else 19234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19235for as_dir in $PATH 19236do 19237 IFS=$as_save_IFS 19238 test -z "$as_dir" && as_dir=. 19239 for ac_exec_ext in '' $ac_executable_extensions; do 19240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19241 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19243 break 2 19244 fi 19245done 19246done 19247 19248fi 19249fi 19250CC=$ac_cv_prog_CC 19251if test -n "$CC"; then 19252 echo "$as_me:$LINENO: result: $CC" >&5 19253echo "${ECHO_T}$CC" >&6 19254else 19255 echo "$as_me:$LINENO: result: no" >&5 19256echo "${ECHO_T}no" >&6 19257fi 19258 19259fi 19260if test -z "$ac_cv_prog_CC"; then 19261 ac_ct_CC=$CC 19262 # Extract the first word of "gcc", so it can be a program name with args. 19263set dummy gcc; ac_word=$2 19264echo "$as_me:$LINENO: checking for $ac_word" >&5 19265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19267 echo $ECHO_N "(cached) $ECHO_C" >&6 19268else 19269 if test -n "$ac_ct_CC"; then 19270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19271else 19272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19273for as_dir in $PATH 19274do 19275 IFS=$as_save_IFS 19276 test -z "$as_dir" && as_dir=. 19277 for ac_exec_ext in '' $ac_executable_extensions; do 19278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19279 ac_cv_prog_ac_ct_CC="gcc" 19280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19281 break 2 19282 fi 19283done 19284done 19285 19286fi 19287fi 19288ac_ct_CC=$ac_cv_prog_ac_ct_CC 19289if test -n "$ac_ct_CC"; then 19290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19291echo "${ECHO_T}$ac_ct_CC" >&6 19292else 19293 echo "$as_me:$LINENO: result: no" >&5 19294echo "${ECHO_T}no" >&6 19295fi 19296 19297 CC=$ac_ct_CC 19298else 19299 CC="$ac_cv_prog_CC" 19300fi 19301 19302if test -z "$CC"; then 19303 if test -n "$ac_tool_prefix"; then 19304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19305set dummy ${ac_tool_prefix}cc; ac_word=$2 19306echo "$as_me:$LINENO: checking for $ac_word" >&5 19307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19308if test "${ac_cv_prog_CC+set}" = set; then 19309 echo $ECHO_N "(cached) $ECHO_C" >&6 19310else 19311 if test -n "$CC"; then 19312 ac_cv_prog_CC="$CC" # Let the user override the test. 19313else 19314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19315for as_dir in $PATH 19316do 19317 IFS=$as_save_IFS 19318 test -z "$as_dir" && as_dir=. 19319 for ac_exec_ext in '' $ac_executable_extensions; do 19320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19321 ac_cv_prog_CC="${ac_tool_prefix}cc" 19322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19323 break 2 19324 fi 19325done 19326done 19327 19328fi 19329fi 19330CC=$ac_cv_prog_CC 19331if test -n "$CC"; then 19332 echo "$as_me:$LINENO: result: $CC" >&5 19333echo "${ECHO_T}$CC" >&6 19334else 19335 echo "$as_me:$LINENO: result: no" >&5 19336echo "${ECHO_T}no" >&6 19337fi 19338 19339fi 19340if test -z "$ac_cv_prog_CC"; then 19341 ac_ct_CC=$CC 19342 # Extract the first word of "cc", so it can be a program name with args. 19343set dummy cc; ac_word=$2 19344echo "$as_me:$LINENO: checking for $ac_word" >&5 19345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19346if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19347 echo $ECHO_N "(cached) $ECHO_C" >&6 19348else 19349 if test -n "$ac_ct_CC"; then 19350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19351else 19352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19353for as_dir in $PATH 19354do 19355 IFS=$as_save_IFS 19356 test -z "$as_dir" && as_dir=. 19357 for ac_exec_ext in '' $ac_executable_extensions; do 19358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19359 ac_cv_prog_ac_ct_CC="cc" 19360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19361 break 2 19362 fi 19363done 19364done 19365 19366fi 19367fi 19368ac_ct_CC=$ac_cv_prog_ac_ct_CC 19369if test -n "$ac_ct_CC"; then 19370 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19371echo "${ECHO_T}$ac_ct_CC" >&6 19372else 19373 echo "$as_me:$LINENO: result: no" >&5 19374echo "${ECHO_T}no" >&6 19375fi 19376 19377 CC=$ac_ct_CC 19378else 19379 CC="$ac_cv_prog_CC" 19380fi 19381 19382fi 19383if test -z "$CC"; then 19384 # Extract the first word of "cc", so it can be a program name with args. 19385set dummy cc; ac_word=$2 19386echo "$as_me:$LINENO: checking for $ac_word" >&5 19387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19388if test "${ac_cv_prog_CC+set}" = set; then 19389 echo $ECHO_N "(cached) $ECHO_C" >&6 19390else 19391 if test -n "$CC"; then 19392 ac_cv_prog_CC="$CC" # Let the user override the test. 19393else 19394 ac_prog_rejected=no 19395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19396for as_dir in $PATH 19397do 19398 IFS=$as_save_IFS 19399 test -z "$as_dir" && as_dir=. 19400 for ac_exec_ext in '' $ac_executable_extensions; do 19401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19402 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19403 ac_prog_rejected=yes 19404 continue 19405 fi 19406 ac_cv_prog_CC="cc" 19407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19408 break 2 19409 fi 19410done 19411done 19412 19413if test $ac_prog_rejected = yes; then 19414 # We found a bogon in the path, so make sure we never use it. 19415 set dummy $ac_cv_prog_CC 19416 shift 19417 if test $# != 0; then 19418 # We chose a different compiler from the bogus one. 19419 # However, it has the same basename, so the bogon will be chosen 19420 # first if we set CC to just the basename; use the full file name. 19421 shift 19422 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19423 fi 19424fi 19425fi 19426fi 19427CC=$ac_cv_prog_CC 19428if test -n "$CC"; then 19429 echo "$as_me:$LINENO: result: $CC" >&5 19430echo "${ECHO_T}$CC" >&6 19431else 19432 echo "$as_me:$LINENO: result: no" >&5 19433echo "${ECHO_T}no" >&6 19434fi 19435 19436fi 19437if test -z "$CC"; then 19438 if test -n "$ac_tool_prefix"; then 19439 for ac_prog in cl 19440 do 19441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19442set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19443echo "$as_me:$LINENO: checking for $ac_word" >&5 19444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19445if test "${ac_cv_prog_CC+set}" = set; then 19446 echo $ECHO_N "(cached) $ECHO_C" >&6 19447else 19448 if test -n "$CC"; then 19449 ac_cv_prog_CC="$CC" # Let the user override the test. 19450else 19451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19452for as_dir in $PATH 19453do 19454 IFS=$as_save_IFS 19455 test -z "$as_dir" && as_dir=. 19456 for ac_exec_ext in '' $ac_executable_extensions; do 19457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19460 break 2 19461 fi 19462done 19463done 19464 19465fi 19466fi 19467CC=$ac_cv_prog_CC 19468if test -n "$CC"; then 19469 echo "$as_me:$LINENO: result: $CC" >&5 19470echo "${ECHO_T}$CC" >&6 19471else 19472 echo "$as_me:$LINENO: result: no" >&5 19473echo "${ECHO_T}no" >&6 19474fi 19475 19476 test -n "$CC" && break 19477 done 19478fi 19479if test -z "$CC"; then 19480 ac_ct_CC=$CC 19481 for ac_prog in cl 19482do 19483 # Extract the first word of "$ac_prog", so it can be a program name with args. 19484set dummy $ac_prog; ac_word=$2 19485echo "$as_me:$LINENO: checking for $ac_word" >&5 19486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19487if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19488 echo $ECHO_N "(cached) $ECHO_C" >&6 19489else 19490 if test -n "$ac_ct_CC"; then 19491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19492else 19493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19494for as_dir in $PATH 19495do 19496 IFS=$as_save_IFS 19497 test -z "$as_dir" && as_dir=. 19498 for ac_exec_ext in '' $ac_executable_extensions; do 19499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19500 ac_cv_prog_ac_ct_CC="$ac_prog" 19501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19502 break 2 19503 fi 19504done 19505done 19506 19507fi 19508fi 19509ac_ct_CC=$ac_cv_prog_ac_ct_CC 19510if test -n "$ac_ct_CC"; then 19511 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19512echo "${ECHO_T}$ac_ct_CC" >&6 19513else 19514 echo "$as_me:$LINENO: result: no" >&5 19515echo "${ECHO_T}no" >&6 19516fi 19517 19518 test -n "$ac_ct_CC" && break 19519done 19520 19521 CC=$ac_ct_CC 19522fi 19523 19524fi 19525 19526 19527test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19528See \`config.log' for more details." >&5 19529echo "$as_me: error: no acceptable C compiler found in \$PATH 19530See \`config.log' for more details." >&2;} 19531 { (exit 1); exit 1; }; } 19532 19533# Provide some information about the compiler. 19534echo "$as_me:$LINENO:" \ 19535 "checking for C compiler version" >&5 19536ac_compiler=`set X $ac_compile; echo $2` 19537{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 19538 (eval $ac_compiler --version </dev/null >&5) 2>&5 19539 ac_status=$? 19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19541 (exit $ac_status); } 19542{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 19543 (eval $ac_compiler -v </dev/null >&5) 2>&5 19544 ac_status=$? 19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19546 (exit $ac_status); } 19547{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 19548 (eval $ac_compiler -V </dev/null >&5) 2>&5 19549 ac_status=$? 19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19551 (exit $ac_status); } 19552 19553echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19554echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 19555if test "${ac_cv_c_compiler_gnu+set}" = set; then 19556 echo $ECHO_N "(cached) $ECHO_C" >&6 19557else 19558 cat >conftest.$ac_ext <<_ACEOF 19559/* confdefs.h. */ 19560_ACEOF 19561cat confdefs.h >>conftest.$ac_ext 19562cat >>conftest.$ac_ext <<_ACEOF 19563/* end confdefs.h. */ 19564 19565int 19566main () 19567{ 19568#ifndef __GNUC__ 19569 choke me 19570#endif 19571 19572 ; 19573 return 0; 19574} 19575_ACEOF 19576rm -f conftest.$ac_objext 19577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19578 (eval $ac_compile) 2>conftest.er1 19579 ac_status=$? 19580 grep -v '^ *+' conftest.er1 >conftest.err 19581 rm -f conftest.er1 19582 cat conftest.err >&5 19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19584 (exit $ac_status); } && 19585 { ac_try='test -z "$ac_c_werror_flag" 19586 || test ! -s conftest.err' 19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19588 (eval $ac_try) 2>&5 19589 ac_status=$? 19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19591 (exit $ac_status); }; } && 19592 { ac_try='test -s conftest.$ac_objext' 19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19594 (eval $ac_try) 2>&5 19595 ac_status=$? 19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19597 (exit $ac_status); }; }; then 19598 ac_compiler_gnu=yes 19599else 19600 echo "$as_me: failed program was:" >&5 19601sed 's/^/| /' conftest.$ac_ext >&5 19602 19603ac_compiler_gnu=no 19604fi 19605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19606ac_cv_c_compiler_gnu=$ac_compiler_gnu 19607 19608fi 19609echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 19610echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 19611GCC=`test $ac_compiler_gnu = yes && echo yes` 19612ac_test_CFLAGS=${CFLAGS+set} 19613ac_save_CFLAGS=$CFLAGS 19614CFLAGS="-g" 19615echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 19616echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 19617if test "${ac_cv_prog_cc_g+set}" = set; then 19618 echo $ECHO_N "(cached) $ECHO_C" >&6 19619else 19620 cat >conftest.$ac_ext <<_ACEOF 19621/* confdefs.h. */ 19622_ACEOF 19623cat confdefs.h >>conftest.$ac_ext 19624cat >>conftest.$ac_ext <<_ACEOF 19625/* end confdefs.h. */ 19626 19627int 19628main () 19629{ 19630 19631 ; 19632 return 0; 19633} 19634_ACEOF 19635rm -f conftest.$ac_objext 19636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19637 (eval $ac_compile) 2>conftest.er1 19638 ac_status=$? 19639 grep -v '^ *+' conftest.er1 >conftest.err 19640 rm -f conftest.er1 19641 cat conftest.err >&5 19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19643 (exit $ac_status); } && 19644 { ac_try='test -z "$ac_c_werror_flag" 19645 || test ! -s conftest.err' 19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19647 (eval $ac_try) 2>&5 19648 ac_status=$? 19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19650 (exit $ac_status); }; } && 19651 { ac_try='test -s conftest.$ac_objext' 19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19653 (eval $ac_try) 2>&5 19654 ac_status=$? 19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19656 (exit $ac_status); }; }; then 19657 ac_cv_prog_cc_g=yes 19658else 19659 echo "$as_me: failed program was:" >&5 19660sed 's/^/| /' conftest.$ac_ext >&5 19661 19662ac_cv_prog_cc_g=no 19663fi 19664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19665fi 19666echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 19667echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 19668if test "$ac_test_CFLAGS" = set; then 19669 CFLAGS=$ac_save_CFLAGS 19670elif test $ac_cv_prog_cc_g = yes; then 19671 if test "$GCC" = yes; then 19672 CFLAGS="-g -O2" 19673 else 19674 CFLAGS="-g" 19675 fi 19676else 19677 if test "$GCC" = yes; then 19678 CFLAGS="-O2" 19679 else 19680 CFLAGS= 19681 fi 19682fi 19683echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 19684echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 19685if test "${ac_cv_prog_cc_stdc+set}" = set; then 19686 echo $ECHO_N "(cached) $ECHO_C" >&6 19687else 19688 ac_cv_prog_cc_stdc=no 19689ac_save_CC=$CC 19690cat >conftest.$ac_ext <<_ACEOF 19691/* confdefs.h. */ 19692_ACEOF 19693cat confdefs.h >>conftest.$ac_ext 19694cat >>conftest.$ac_ext <<_ACEOF 19695/* end confdefs.h. */ 19696#include <stdarg.h> 19697#include <stdio.h> 19698#include <sys/types.h> 19699#include <sys/stat.h> 19700/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 19701struct buf { int x; }; 19702FILE * (*rcsopen) (struct buf *, struct stat *, int); 19703static char *e (p, i) 19704 char **p; 19705 int i; 19706{ 19707 return p[i]; 19708} 19709static char *f (char * (*g) (char **, int), char **p, ...) 19710{ 19711 char *s; 19712 va_list v; 19713 va_start (v,p); 19714 s = g (p, va_arg (v,int)); 19715 va_end (v); 19716 return s; 19717} 19718 19719/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 19720 function prototypes and stuff, but not '\xHH' hex character constants. 19721 These don't provoke an error unfortunately, instead are silently treated 19722 as 'x'. The following induces an error, until -std1 is added to get 19723 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 19724 array size at least. It's necessary to write '\x00'==0 to get something 19725 that's true only with -std1. */ 19726int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 19727 19728int test (int i, double x); 19729struct s1 {int (*f) (int a);}; 19730struct s2 {int (*f) (double a);}; 19731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 19732int argc; 19733char **argv; 19734int 19735main () 19736{ 19737return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 19738 ; 19739 return 0; 19740} 19741_ACEOF 19742# Don't try gcc -ansi; that turns off useful extensions and 19743# breaks some systems' header files. 19744# AIX -qlanglvl=ansi 19745# Ultrix and OSF/1 -std1 19746# HP-UX 10.20 and later -Ae 19747# HP-UX older versions -Aa -D_HPUX_SOURCE 19748# SVR4 -Xc -D__EXTENSIONS__ 19749for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 19750do 19751 CC="$ac_save_CC $ac_arg" 19752 rm -f conftest.$ac_objext 19753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19754 (eval $ac_compile) 2>conftest.er1 19755 ac_status=$? 19756 grep -v '^ *+' conftest.er1 >conftest.err 19757 rm -f conftest.er1 19758 cat conftest.err >&5 19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19760 (exit $ac_status); } && 19761 { ac_try='test -z "$ac_c_werror_flag" 19762 || test ! -s conftest.err' 19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19764 (eval $ac_try) 2>&5 19765 ac_status=$? 19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19767 (exit $ac_status); }; } && 19768 { ac_try='test -s conftest.$ac_objext' 19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19770 (eval $ac_try) 2>&5 19771 ac_status=$? 19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19773 (exit $ac_status); }; }; then 19774 ac_cv_prog_cc_stdc=$ac_arg 19775break 19776else 19777 echo "$as_me: failed program was:" >&5 19778sed 's/^/| /' conftest.$ac_ext >&5 19779 19780fi 19781rm -f conftest.err conftest.$ac_objext 19782done 19783rm -f conftest.$ac_ext conftest.$ac_objext 19784CC=$ac_save_CC 19785 19786fi 19787 19788case "x$ac_cv_prog_cc_stdc" in 19789 x|xno) 19790 echo "$as_me:$LINENO: result: none needed" >&5 19791echo "${ECHO_T}none needed" >&6 ;; 19792 *) 19793 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 19794echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 19795 CC="$CC $ac_cv_prog_cc_stdc" ;; 19796esac 19797 19798# Some people use a C++ compiler to compile C. Since we use `exit', 19799# in C++ we need to declare it. In case someone uses the same compiler 19800# for both compiling C and C++ we need to have the C++ compiler decide 19801# the declaration of exit, since it's the most demanding environment. 19802cat >conftest.$ac_ext <<_ACEOF 19803#ifndef __cplusplus 19804 choke me 19805#endif 19806_ACEOF 19807rm -f conftest.$ac_objext 19808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19809 (eval $ac_compile) 2>conftest.er1 19810 ac_status=$? 19811 grep -v '^ *+' conftest.er1 >conftest.err 19812 rm -f conftest.er1 19813 cat conftest.err >&5 19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19815 (exit $ac_status); } && 19816 { ac_try='test -z "$ac_c_werror_flag" 19817 || test ! -s conftest.err' 19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19819 (eval $ac_try) 2>&5 19820 ac_status=$? 19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19822 (exit $ac_status); }; } && 19823 { ac_try='test -s conftest.$ac_objext' 19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19825 (eval $ac_try) 2>&5 19826 ac_status=$? 19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19828 (exit $ac_status); }; }; then 19829 for ac_declaration in \ 19830 '' \ 19831 'extern "C" void std::exit (int) throw (); using std::exit;' \ 19832 'extern "C" void std::exit (int); using std::exit;' \ 19833 'extern "C" void exit (int) throw ();' \ 19834 'extern "C" void exit (int);' \ 19835 'void exit (int);' 19836do 19837 cat >conftest.$ac_ext <<_ACEOF 19838/* confdefs.h. */ 19839_ACEOF 19840cat confdefs.h >>conftest.$ac_ext 19841cat >>conftest.$ac_ext <<_ACEOF 19842/* end confdefs.h. */ 19843$ac_declaration 19844#include <stdlib.h> 19845int 19846main () 19847{ 19848exit (42); 19849 ; 19850 return 0; 19851} 19852_ACEOF 19853rm -f conftest.$ac_objext 19854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19855 (eval $ac_compile) 2>conftest.er1 19856 ac_status=$? 19857 grep -v '^ *+' conftest.er1 >conftest.err 19858 rm -f conftest.er1 19859 cat conftest.err >&5 19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19861 (exit $ac_status); } && 19862 { ac_try='test -z "$ac_c_werror_flag" 19863 || test ! -s conftest.err' 19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19865 (eval $ac_try) 2>&5 19866 ac_status=$? 19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19868 (exit $ac_status); }; } && 19869 { ac_try='test -s conftest.$ac_objext' 19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19871 (eval $ac_try) 2>&5 19872 ac_status=$? 19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19874 (exit $ac_status); }; }; then 19875 : 19876else 19877 echo "$as_me: failed program was:" >&5 19878sed 's/^/| /' conftest.$ac_ext >&5 19879 19880continue 19881fi 19882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19883 cat >conftest.$ac_ext <<_ACEOF 19884/* confdefs.h. */ 19885_ACEOF 19886cat confdefs.h >>conftest.$ac_ext 19887cat >>conftest.$ac_ext <<_ACEOF 19888/* end confdefs.h. */ 19889$ac_declaration 19890int 19891main () 19892{ 19893exit (42); 19894 ; 19895 return 0; 19896} 19897_ACEOF 19898rm -f conftest.$ac_objext 19899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19900 (eval $ac_compile) 2>conftest.er1 19901 ac_status=$? 19902 grep -v '^ *+' conftest.er1 >conftest.err 19903 rm -f conftest.er1 19904 cat conftest.err >&5 19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19906 (exit $ac_status); } && 19907 { ac_try='test -z "$ac_c_werror_flag" 19908 || test ! -s conftest.err' 19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19910 (eval $ac_try) 2>&5 19911 ac_status=$? 19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19913 (exit $ac_status); }; } && 19914 { ac_try='test -s conftest.$ac_objext' 19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19916 (eval $ac_try) 2>&5 19917 ac_status=$? 19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19919 (exit $ac_status); }; }; then 19920 break 19921else 19922 echo "$as_me: failed program was:" >&5 19923sed 's/^/| /' conftest.$ac_ext >&5 19924 19925fi 19926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19927done 19928rm -f conftest* 19929if test -n "$ac_declaration"; then 19930 echo '#ifdef __cplusplus' >>confdefs.h 19931 echo $ac_declaration >>confdefs.h 19932 echo '#endif' >>confdefs.h 19933fi 19934 19935else 19936 echo "$as_me: failed program was:" >&5 19937sed 's/^/| /' conftest.$ac_ext >&5 19938 19939fi 19940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19941ac_ext=c 19942ac_cpp='$CPP $CPPFLAGS' 19943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19945ac_compiler_gnu=$ac_cv_c_compiler_gnu 19946 19947depcc="$CC" am_compiler_list= 19948 19949echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 19950echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 19951if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 19952 echo $ECHO_N "(cached) $ECHO_C" >&6 19953else 19954 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 19955 # We make a subdir and do the tests there. Otherwise we can end up 19956 # making bogus files that we don't know about and never remove. For 19957 # instance it was reported that on HP-UX the gcc test will end up 19958 # making a dummy file named `D' -- because `-MD' means `put the output 19959 # in D'. 19960 mkdir conftest.dir 19961 # Copy depcomp to subdir because otherwise we won't find it if we're 19962 # using a relative directory. 19963 cp "$am_depcomp" conftest.dir 19964 cd conftest.dir 19965 # We will build objects and dependencies in a subdirectory because 19966 # it helps to detect inapplicable dependency modes. For instance 19967 # both Tru64's cc and ICC support -MD to output dependencies as a 19968 # side effect of compilation, but ICC will put the dependencies in 19969 # the current directory while Tru64 will put them in the object 19970 # directory. 19971 mkdir sub 19972 19973 am_cv_CC_dependencies_compiler_type=none 19974 if test "$am_compiler_list" = ""; then 19975 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 19976 fi 19977 for depmode in $am_compiler_list; do 19978 # Setup a source with many dependencies, because some compilers 19979 # like to wrap large dependency lists on column 80 (with \), and 19980 # we should not choose a depcomp mode which is confused by this. 19981 # 19982 # We need to recreate these files for each test, as the compiler may 19983 # overwrite some of them when testing with obscure command lines. 19984 # This happens at least with the AIX C compiler. 19985 : > sub/conftest.c 19986 for i in 1 2 3 4 5 6; do 19987 echo '#include "conftst'$i'.h"' >> sub/conftest.c 19988 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 19989 # Solaris 8's {/usr,}/bin/sh. 19990 touch sub/conftst$i.h 19991 done 19992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 19993 19994 case $depmode in 19995 nosideeffect) 19996 # after this tag, mechanisms are not by side-effect, so they'll 19997 # only be used when explicitly requested 19998 if test "x$enable_dependency_tracking" = xyes; then 19999 continue 20000 else 20001 break 20002 fi 20003 ;; 20004 none) break ;; 20005 esac 20006 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20007 # mode. It turns out that the SunPro C++ compiler does not properly 20008 # handle `-M -o', and we need to detect this. 20009 if depmode=$depmode \ 20010 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20011 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20012 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20013 >/dev/null 2>conftest.err && 20014 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20015 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20016 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20017 # icc doesn't choke on unknown options, it will just issue warnings 20018 # or remarks (even with -Werror). So we grep stderr for any message 20019 # that says an option was ignored or not supported. 20020 # When given -MP, icc 7.0 and 7.1 complain thusly: 20021 # icc: Command line warning: ignoring option '-M'; no argument required 20022 # The diagnosis changed in icc 8.0: 20023 # icc: Command line remark: option '-MP' not supported 20024 if (grep 'ignoring option' conftest.err || 20025 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20026 am_cv_CC_dependencies_compiler_type=$depmode 20027 break 20028 fi 20029 fi 20030 done 20031 20032 cd .. 20033 rm -rf conftest.dir 20034else 20035 am_cv_CC_dependencies_compiler_type=none 20036fi 20037 20038fi 20039echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20040echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 20041CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20042 20043 20044 20045if 20046 test "x$enable_dependency_tracking" != xno \ 20047 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20048 am__fastdepCC_TRUE= 20049 am__fastdepCC_FALSE='#' 20050else 20051 am__fastdepCC_TRUE='#' 20052 am__fastdepCC_FALSE= 20053fi 20054 20055 20056 20057CPPFLAGS="$CPPFLAGS -Isrc" 20058if test "$CC" = "gcc" ; then 20059 # always want reentrant funcs, not just thread-safe mode. -s 20060 CFLAGS="$CFLAGS -O3 -Wall -Wpointer-arith -D_GNU_SOURCE -D_REENTRANT -fsigned-char" 20061 20062 # gcc doesn't indicate an error for unknown options when they are 20063 # not warning/feature options, -Wxxx or -fxxx. We have to test manually. 20064 cprog="int main(void){return 0;}" 20065 gcctest="gcc -x c -c - -o /dev/null" 20066 20067 echo "$as_me:$LINENO: checking CFLAGS for gcc -std=gnu99..." >&5 20068echo $ECHO_N "checking CFLAGS for gcc -std=gnu99...... $ECHO_C" >&6 20069 result=`echo "$cprog" | $gcctest -std=gnu99 2>&1` 20070 if test -z "$result" ; then 20071 CFLAGS="$CFLAGS -std=gnu99" 20072 echo "$as_me:$LINENO: result: -std=gnu99" >&5 20073echo "${ECHO_T}-std=gnu99" >&6 20074 else 20075 echo "$as_me:$LINENO: result: no, unknown" >&5 20076echo "${ECHO_T}no, unknown" >&6 20077 fi 20078 20079 # turn on as many warnings as possible 20080 echo "$as_me:$LINENO: checking CFLAGS for gcc -Wclobbered" >&5 20081echo $ECHO_N "checking CFLAGS for gcc -Wclobbered... $ECHO_C" >&6 20082if test "${ac_cv_cflags_gcc_option__Wclobbered+set}" = set; then 20083 echo $ECHO_N "(cached) $ECHO_C" >&6 20084else 20085 ac_cv_cflags_gcc_option__Wclobbered="no, unknown" 20086 20087 20088 ac_ext=c 20089ac_cpp='$CPP $CPPFLAGS' 20090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20092ac_compiler_gnu=$ac_cv_c_compiler_gnu 20093 20094 ac_save_CFLAGS="$CFLAGS" 20095for ac_arg in "-pedantic -Werror % -Wclobbered" "-pedantic % -Wclobbered %% no, obsolete" # 20096do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20097 cat >conftest.$ac_ext <<_ACEOF 20098/* confdefs.h. */ 20099_ACEOF 20100cat confdefs.h >>conftest.$ac_ext 20101cat >>conftest.$ac_ext <<_ACEOF 20102/* end confdefs.h. */ 20103 20104int 20105main () 20106{ 20107return 0; 20108 ; 20109 return 0; 20110} 20111_ACEOF 20112rm -f conftest.$ac_objext 20113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20114 (eval $ac_compile) 2>conftest.er1 20115 ac_status=$? 20116 grep -v '^ *+' conftest.er1 >conftest.err 20117 rm -f conftest.er1 20118 cat conftest.err >&5 20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20120 (exit $ac_status); } && 20121 { ac_try='test -z "$ac_c_werror_flag" 20122 || test ! -s conftest.err' 20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20124 (eval $ac_try) 2>&5 20125 ac_status=$? 20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20127 (exit $ac_status); }; } && 20128 { ac_try='test -s conftest.$ac_objext' 20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20130 (eval $ac_try) 2>&5 20131 ac_status=$? 20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20133 (exit $ac_status); }; }; then 20134 ac_cv_cflags_gcc_option__Wclobbered=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20135else 20136 echo "$as_me: failed program was:" >&5 20137sed 's/^/| /' conftest.$ac_ext >&5 20138 20139fi 20140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20141done 20142 CFLAGS="$ac_save_CFLAGS" 20143 ac_ext=c 20144ac_cpp='$CPP $CPPFLAGS' 20145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20147ac_compiler_gnu=$ac_cv_c_compiler_gnu 20148 20149 20150fi 20151echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wclobbered" >&5 20152echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wclobbered" >&6 20153case ".$ac_cv_cflags_gcc_option__Wclobbered" in 20154 .ok|.ok,*) ;; 20155 .|.no|.no,*) ;; 20156 *) 20157 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wclobbered " 2>&1 >/dev/null 20158 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wclobbered") >&5 20159 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wclobbered) 2>&5 20160 ac_status=$? 20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20162 (exit $ac_status); } 20163 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wclobbered\"") >&5 20164 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wclobbered") 2>&5 20165 ac_status=$? 20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20167 (exit $ac_status); } 20168 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wclobbered" 20169 fi 20170 ;; 20171esac 20172 20173 echo "$as_me:$LINENO: checking CFLAGS for gcc -Wempty-body" >&5 20174echo $ECHO_N "checking CFLAGS for gcc -Wempty-body... $ECHO_C" >&6 20175if test "${ac_cv_cflags_gcc_option__Wempty_body+set}" = set; then 20176 echo $ECHO_N "(cached) $ECHO_C" >&6 20177else 20178 ac_cv_cflags_gcc_option__Wempty_body="no, unknown" 20179 20180 20181 ac_ext=c 20182ac_cpp='$CPP $CPPFLAGS' 20183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20185ac_compiler_gnu=$ac_cv_c_compiler_gnu 20186 20187 ac_save_CFLAGS="$CFLAGS" 20188for ac_arg in "-pedantic -Werror % -Wempty-body" "-pedantic % -Wempty-body %% no, obsolete" # 20189do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20190 cat >conftest.$ac_ext <<_ACEOF 20191/* confdefs.h. */ 20192_ACEOF 20193cat confdefs.h >>conftest.$ac_ext 20194cat >>conftest.$ac_ext <<_ACEOF 20195/* end confdefs.h. */ 20196 20197int 20198main () 20199{ 20200return 0; 20201 ; 20202 return 0; 20203} 20204_ACEOF 20205rm -f conftest.$ac_objext 20206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20207 (eval $ac_compile) 2>conftest.er1 20208 ac_status=$? 20209 grep -v '^ *+' conftest.er1 >conftest.err 20210 rm -f conftest.er1 20211 cat conftest.err >&5 20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20213 (exit $ac_status); } && 20214 { ac_try='test -z "$ac_c_werror_flag" 20215 || test ! -s conftest.err' 20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20217 (eval $ac_try) 2>&5 20218 ac_status=$? 20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20220 (exit $ac_status); }; } && 20221 { ac_try='test -s conftest.$ac_objext' 20222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20223 (eval $ac_try) 2>&5 20224 ac_status=$? 20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20226 (exit $ac_status); }; }; then 20227 ac_cv_cflags_gcc_option__Wempty_body=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20228else 20229 echo "$as_me: failed program was:" >&5 20230sed 's/^/| /' conftest.$ac_ext >&5 20231 20232fi 20233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20234done 20235 CFLAGS="$ac_save_CFLAGS" 20236 ac_ext=c 20237ac_cpp='$CPP $CPPFLAGS' 20238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20240ac_compiler_gnu=$ac_cv_c_compiler_gnu 20241 20242 20243fi 20244echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wempty_body" >&5 20245echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wempty_body" >&6 20246case ".$ac_cv_cflags_gcc_option__Wempty_body" in 20247 .ok|.ok,*) ;; 20248 .|.no|.no,*) ;; 20249 *) 20250 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wempty_body " 2>&1 >/dev/null 20251 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wempty_body") >&5 20252 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wempty_body) 2>&5 20253 ac_status=$? 20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20255 (exit $ac_status); } 20256 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wempty_body\"") >&5 20257 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wempty_body") 2>&5 20258 ac_status=$? 20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20260 (exit $ac_status); } 20261 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wempty_body" 20262 fi 20263 ;; 20264esac 20265 20266 echo "$as_me:$LINENO: checking CFLAGS for gcc -Wignored-qualifiers" >&5 20267echo $ECHO_N "checking CFLAGS for gcc -Wignored-qualifiers... $ECHO_C" >&6 20268if test "${ac_cv_cflags_gcc_option__Wignored_qualifiers+set}" = set; then 20269 echo $ECHO_N "(cached) $ECHO_C" >&6 20270else 20271 ac_cv_cflags_gcc_option__Wignored_qualifiers="no, unknown" 20272 20273 20274 ac_ext=c 20275ac_cpp='$CPP $CPPFLAGS' 20276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20278ac_compiler_gnu=$ac_cv_c_compiler_gnu 20279 20280 ac_save_CFLAGS="$CFLAGS" 20281for ac_arg in "-pedantic -Werror % -Wignored-qualifiers" "-pedantic % -Wignored-qualifiers %% no, obsolete" # 20282do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20283 cat >conftest.$ac_ext <<_ACEOF 20284/* confdefs.h. */ 20285_ACEOF 20286cat confdefs.h >>conftest.$ac_ext 20287cat >>conftest.$ac_ext <<_ACEOF 20288/* end confdefs.h. */ 20289 20290int 20291main () 20292{ 20293return 0; 20294 ; 20295 return 0; 20296} 20297_ACEOF 20298rm -f conftest.$ac_objext 20299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20300 (eval $ac_compile) 2>conftest.er1 20301 ac_status=$? 20302 grep -v '^ *+' conftest.er1 >conftest.err 20303 rm -f conftest.er1 20304 cat conftest.err >&5 20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20306 (exit $ac_status); } && 20307 { ac_try='test -z "$ac_c_werror_flag" 20308 || test ! -s conftest.err' 20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20310 (eval $ac_try) 2>&5 20311 ac_status=$? 20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20313 (exit $ac_status); }; } && 20314 { ac_try='test -s conftest.$ac_objext' 20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20316 (eval $ac_try) 2>&5 20317 ac_status=$? 20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20319 (exit $ac_status); }; }; then 20320 ac_cv_cflags_gcc_option__Wignored_qualifiers=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20321else 20322 echo "$as_me: failed program was:" >&5 20323sed 's/^/| /' conftest.$ac_ext >&5 20324 20325fi 20326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20327done 20328 CFLAGS="$ac_save_CFLAGS" 20329 ac_ext=c 20330ac_cpp='$CPP $CPPFLAGS' 20331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20333ac_compiler_gnu=$ac_cv_c_compiler_gnu 20334 20335 20336fi 20337echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wignored_qualifiers" >&5 20338echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wignored_qualifiers" >&6 20339case ".$ac_cv_cflags_gcc_option__Wignored_qualifiers" in 20340 .ok|.ok,*) ;; 20341 .|.no|.no,*) ;; 20342 *) 20343 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wignored_qualifiers " 2>&1 >/dev/null 20344 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wignored_qualifiers") >&5 20345 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wignored_qualifiers) 2>&5 20346 ac_status=$? 20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20348 (exit $ac_status); } 20349 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wignored_qualifiers\"") >&5 20350 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wignored_qualifiers") 2>&5 20351 ac_status=$? 20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20353 (exit $ac_status); } 20354 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wignored_qualifiers" 20355 fi 20356 ;; 20357esac 20358 20359 #AX_CFLAGS_GCC_OPTION([-Wmissing-field-initializers]) # annoying 20360 echo "$as_me:$LINENO: checking CFLAGS for gcc -Wmissing-parameter-type" >&5 20361echo $ECHO_N "checking CFLAGS for gcc -Wmissing-parameter-type... $ECHO_C" >&6 20362if test "${ac_cv_cflags_gcc_option__Wmissing_parameter_type+set}" = set; then 20363 echo $ECHO_N "(cached) $ECHO_C" >&6 20364else 20365 ac_cv_cflags_gcc_option__Wmissing_parameter_type="no, unknown" 20366 20367 20368 ac_ext=c 20369ac_cpp='$CPP $CPPFLAGS' 20370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20372ac_compiler_gnu=$ac_cv_c_compiler_gnu 20373 20374 ac_save_CFLAGS="$CFLAGS" 20375for ac_arg in "-pedantic -Werror % -Wmissing-parameter-type" "-pedantic % -Wmissing-parameter-type %% no, obsolete" # 20376do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20377 cat >conftest.$ac_ext <<_ACEOF 20378/* confdefs.h. */ 20379_ACEOF 20380cat confdefs.h >>conftest.$ac_ext 20381cat >>conftest.$ac_ext <<_ACEOF 20382/* end confdefs.h. */ 20383 20384int 20385main () 20386{ 20387return 0; 20388 ; 20389 return 0; 20390} 20391_ACEOF 20392rm -f conftest.$ac_objext 20393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20394 (eval $ac_compile) 2>conftest.er1 20395 ac_status=$? 20396 grep -v '^ *+' conftest.er1 >conftest.err 20397 rm -f conftest.er1 20398 cat conftest.err >&5 20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20400 (exit $ac_status); } && 20401 { ac_try='test -z "$ac_c_werror_flag" 20402 || test ! -s conftest.err' 20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20404 (eval $ac_try) 2>&5 20405 ac_status=$? 20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20407 (exit $ac_status); }; } && 20408 { ac_try='test -s conftest.$ac_objext' 20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20410 (eval $ac_try) 2>&5 20411 ac_status=$? 20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20413 (exit $ac_status); }; }; then 20414 ac_cv_cflags_gcc_option__Wmissing_parameter_type=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20415else 20416 echo "$as_me: failed program was:" >&5 20417sed 's/^/| /' conftest.$ac_ext >&5 20418 20419fi 20420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20421done 20422 CFLAGS="$ac_save_CFLAGS" 20423 ac_ext=c 20424ac_cpp='$CPP $CPPFLAGS' 20425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20427ac_compiler_gnu=$ac_cv_c_compiler_gnu 20428 20429 20430fi 20431echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wmissing_parameter_type" >&5 20432echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wmissing_parameter_type" >&6 20433case ".$ac_cv_cflags_gcc_option__Wmissing_parameter_type" in 20434 .ok|.ok,*) ;; 20435 .|.no|.no,*) ;; 20436 *) 20437 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wmissing_parameter_type " 2>&1 >/dev/null 20438 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmissing_parameter_type") >&5 20439 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wmissing_parameter_type) 2>&5 20440 ac_status=$? 20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20442 (exit $ac_status); } 20443 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmissing_parameter_type\"") >&5 20444 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_parameter_type") 2>&5 20445 ac_status=$? 20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20447 (exit $ac_status); } 20448 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_parameter_type" 20449 fi 20450 ;; 20451esac 20452 20453 echo "$as_me:$LINENO: checking CFLAGS for gcc -Wold-style-declaration" >&5 20454echo $ECHO_N "checking CFLAGS for gcc -Wold-style-declaration... $ECHO_C" >&6 20455if test "${ac_cv_cflags_gcc_option__Wold_style_declaration+set}" = set; then 20456 echo $ECHO_N "(cached) $ECHO_C" >&6 20457else 20458 ac_cv_cflags_gcc_option__Wold_style_declaration="no, unknown" 20459 20460 20461 ac_ext=c 20462ac_cpp='$CPP $CPPFLAGS' 20463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20465ac_compiler_gnu=$ac_cv_c_compiler_gnu 20466 20467 ac_save_CFLAGS="$CFLAGS" 20468for ac_arg in "-pedantic -Werror % -Wold-style-declaration" "-pedantic % -Wold-style-declaration %% no, obsolete" # 20469do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20470 cat >conftest.$ac_ext <<_ACEOF 20471/* confdefs.h. */ 20472_ACEOF 20473cat confdefs.h >>conftest.$ac_ext 20474cat >>conftest.$ac_ext <<_ACEOF 20475/* end confdefs.h. */ 20476 20477int 20478main () 20479{ 20480return 0; 20481 ; 20482 return 0; 20483} 20484_ACEOF 20485rm -f conftest.$ac_objext 20486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20487 (eval $ac_compile) 2>conftest.er1 20488 ac_status=$? 20489 grep -v '^ *+' conftest.er1 >conftest.err 20490 rm -f conftest.er1 20491 cat conftest.err >&5 20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20493 (exit $ac_status); } && 20494 { ac_try='test -z "$ac_c_werror_flag" 20495 || test ! -s conftest.err' 20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20497 (eval $ac_try) 2>&5 20498 ac_status=$? 20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20500 (exit $ac_status); }; } && 20501 { ac_try='test -s conftest.$ac_objext' 20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20503 (eval $ac_try) 2>&5 20504 ac_status=$? 20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20506 (exit $ac_status); }; }; then 20507 ac_cv_cflags_gcc_option__Wold_style_declaration=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20508else 20509 echo "$as_me: failed program was:" >&5 20510sed 's/^/| /' conftest.$ac_ext >&5 20511 20512fi 20513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20514done 20515 CFLAGS="$ac_save_CFLAGS" 20516 ac_ext=c 20517ac_cpp='$CPP $CPPFLAGS' 20518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20520ac_compiler_gnu=$ac_cv_c_compiler_gnu 20521 20522 20523fi 20524echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wold_style_declaration" >&5 20525echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wold_style_declaration" >&6 20526case ".$ac_cv_cflags_gcc_option__Wold_style_declaration" in 20527 .ok|.ok,*) ;; 20528 .|.no|.no,*) ;; 20529 *) 20530 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wold_style_declaration " 2>&1 >/dev/null 20531 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wold_style_declaration") >&5 20532 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wold_style_declaration) 2>&5 20533 ac_status=$? 20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20535 (exit $ac_status); } 20536 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wold_style_declaration\"") >&5 20537 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wold_style_declaration") 2>&5 20538 ac_status=$? 20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20540 (exit $ac_status); } 20541 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wold_style_declaration" 20542 fi 20543 ;; 20544esac 20545 20546 echo "$as_me:$LINENO: checking CFLAGS for gcc -Woverride-init" >&5 20547echo $ECHO_N "checking CFLAGS for gcc -Woverride-init... $ECHO_C" >&6 20548if test "${ac_cv_cflags_gcc_option__Woverride_init+set}" = set; then 20549 echo $ECHO_N "(cached) $ECHO_C" >&6 20550else 20551 ac_cv_cflags_gcc_option__Woverride_init="no, unknown" 20552 20553 20554 ac_ext=c 20555ac_cpp='$CPP $CPPFLAGS' 20556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20558ac_compiler_gnu=$ac_cv_c_compiler_gnu 20559 20560 ac_save_CFLAGS="$CFLAGS" 20561for ac_arg in "-pedantic -Werror % -Woverride-init" "-pedantic % -Woverride-init %% no, obsolete" # 20562do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20563 cat >conftest.$ac_ext <<_ACEOF 20564/* confdefs.h. */ 20565_ACEOF 20566cat confdefs.h >>conftest.$ac_ext 20567cat >>conftest.$ac_ext <<_ACEOF 20568/* end confdefs.h. */ 20569 20570int 20571main () 20572{ 20573return 0; 20574 ; 20575 return 0; 20576} 20577_ACEOF 20578rm -f conftest.$ac_objext 20579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20580 (eval $ac_compile) 2>conftest.er1 20581 ac_status=$? 20582 grep -v '^ *+' conftest.er1 >conftest.err 20583 rm -f conftest.er1 20584 cat conftest.err >&5 20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20586 (exit $ac_status); } && 20587 { ac_try='test -z "$ac_c_werror_flag" 20588 || test ! -s conftest.err' 20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20590 (eval $ac_try) 2>&5 20591 ac_status=$? 20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20593 (exit $ac_status); }; } && 20594 { ac_try='test -s conftest.$ac_objext' 20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20596 (eval $ac_try) 2>&5 20597 ac_status=$? 20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20599 (exit $ac_status); }; }; then 20600 ac_cv_cflags_gcc_option__Woverride_init=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20601else 20602 echo "$as_me: failed program was:" >&5 20603sed 's/^/| /' conftest.$ac_ext >&5 20604 20605fi 20606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20607done 20608 CFLAGS="$ac_save_CFLAGS" 20609 ac_ext=c 20610ac_cpp='$CPP $CPPFLAGS' 20611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20613ac_compiler_gnu=$ac_cv_c_compiler_gnu 20614 20615 20616fi 20617echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Woverride_init" >&5 20618echo "${ECHO_T}$ac_cv_cflags_gcc_option__Woverride_init" >&6 20619case ".$ac_cv_cflags_gcc_option__Woverride_init" in 20620 .ok|.ok,*) ;; 20621 .|.no|.no,*) ;; 20622 *) 20623 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Woverride_init " 2>&1 >/dev/null 20624 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Woverride_init") >&5 20625 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Woverride_init) 2>&5 20626 ac_status=$? 20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20628 (exit $ac_status); } 20629 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Woverride_init\"") >&5 20630 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Woverride_init") 2>&5 20631 ac_status=$? 20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20633 (exit $ac_status); } 20634 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Woverride_init" 20635 fi 20636 ;; 20637esac 20638 20639 echo "$as_me:$LINENO: checking CFLAGS for gcc -Wsign-compare" >&5 20640echo $ECHO_N "checking CFLAGS for gcc -Wsign-compare... $ECHO_C" >&6 20641if test "${ac_cv_cflags_gcc_option__Wsign_compare+set}" = set; then 20642 echo $ECHO_N "(cached) $ECHO_C" >&6 20643else 20644 ac_cv_cflags_gcc_option__Wsign_compare="no, unknown" 20645 20646 20647 ac_ext=c 20648ac_cpp='$CPP $CPPFLAGS' 20649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20651ac_compiler_gnu=$ac_cv_c_compiler_gnu 20652 20653 ac_save_CFLAGS="$CFLAGS" 20654for ac_arg in "-pedantic -Werror % -Wsign-compare" "-pedantic % -Wsign-compare %% no, obsolete" # 20655do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20656 cat >conftest.$ac_ext <<_ACEOF 20657/* confdefs.h. */ 20658_ACEOF 20659cat confdefs.h >>conftest.$ac_ext 20660cat >>conftest.$ac_ext <<_ACEOF 20661/* end confdefs.h. */ 20662 20663int 20664main () 20665{ 20666return 0; 20667 ; 20668 return 0; 20669} 20670_ACEOF 20671rm -f conftest.$ac_objext 20672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20673 (eval $ac_compile) 2>conftest.er1 20674 ac_status=$? 20675 grep -v '^ *+' conftest.er1 >conftest.err 20676 rm -f conftest.er1 20677 cat conftest.err >&5 20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20679 (exit $ac_status); } && 20680 { ac_try='test -z "$ac_c_werror_flag" 20681 || test ! -s conftest.err' 20682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20683 (eval $ac_try) 2>&5 20684 ac_status=$? 20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20686 (exit $ac_status); }; } && 20687 { ac_try='test -s conftest.$ac_objext' 20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20689 (eval $ac_try) 2>&5 20690 ac_status=$? 20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20692 (exit $ac_status); }; }; then 20693 ac_cv_cflags_gcc_option__Wsign_compare=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20694else 20695 echo "$as_me: failed program was:" >&5 20696sed 's/^/| /' conftest.$ac_ext >&5 20697 20698fi 20699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20700done 20701 CFLAGS="$ac_save_CFLAGS" 20702 ac_ext=c 20703ac_cpp='$CPP $CPPFLAGS' 20704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20706ac_compiler_gnu=$ac_cv_c_compiler_gnu 20707 20708 20709fi 20710echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wsign_compare" >&5 20711echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wsign_compare" >&6 20712case ".$ac_cv_cflags_gcc_option__Wsign_compare" in 20713 .ok|.ok,*) ;; 20714 .|.no|.no,*) ;; 20715 *) 20716 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wsign_compare " 2>&1 >/dev/null 20717 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wsign_compare") >&5 20718 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wsign_compare) 2>&5 20719 ac_status=$? 20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20721 (exit $ac_status); } 20722 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wsign_compare\"") >&5 20723 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare") 2>&5 20724 ac_status=$? 20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20726 (exit $ac_status); } 20727 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare" 20728 fi 20729 ;; 20730esac 20731 20732 echo "$as_me:$LINENO: checking CFLAGS for gcc -Wtype-limits" >&5 20733echo $ECHO_N "checking CFLAGS for gcc -Wtype-limits... $ECHO_C" >&6 20734if test "${ac_cv_cflags_gcc_option__Wtype_limits+set}" = set; then 20735 echo $ECHO_N "(cached) $ECHO_C" >&6 20736else 20737 ac_cv_cflags_gcc_option__Wtype_limits="no, unknown" 20738 20739 20740 ac_ext=c 20741ac_cpp='$CPP $CPPFLAGS' 20742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20744ac_compiler_gnu=$ac_cv_c_compiler_gnu 20745 20746 ac_save_CFLAGS="$CFLAGS" 20747for ac_arg in "-pedantic -Werror % -Wtype-limits" "-pedantic % -Wtype-limits %% no, obsolete" # 20748do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20749 cat >conftest.$ac_ext <<_ACEOF 20750/* confdefs.h. */ 20751_ACEOF 20752cat confdefs.h >>conftest.$ac_ext 20753cat >>conftest.$ac_ext <<_ACEOF 20754/* end confdefs.h. */ 20755 20756int 20757main () 20758{ 20759return 0; 20760 ; 20761 return 0; 20762} 20763_ACEOF 20764rm -f conftest.$ac_objext 20765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20766 (eval $ac_compile) 2>conftest.er1 20767 ac_status=$? 20768 grep -v '^ *+' conftest.er1 >conftest.err 20769 rm -f conftest.er1 20770 cat conftest.err >&5 20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20772 (exit $ac_status); } && 20773 { ac_try='test -z "$ac_c_werror_flag" 20774 || test ! -s conftest.err' 20775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20776 (eval $ac_try) 2>&5 20777 ac_status=$? 20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20779 (exit $ac_status); }; } && 20780 { ac_try='test -s conftest.$ac_objext' 20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20782 (eval $ac_try) 2>&5 20783 ac_status=$? 20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20785 (exit $ac_status); }; }; then 20786 ac_cv_cflags_gcc_option__Wtype_limits=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20787else 20788 echo "$as_me: failed program was:" >&5 20789sed 's/^/| /' conftest.$ac_ext >&5 20790 20791fi 20792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20793done 20794 CFLAGS="$ac_save_CFLAGS" 20795 ac_ext=c 20796ac_cpp='$CPP $CPPFLAGS' 20797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20799ac_compiler_gnu=$ac_cv_c_compiler_gnu 20800 20801 20802fi 20803echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wtype_limits" >&5 20804echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wtype_limits" >&6 20805case ".$ac_cv_cflags_gcc_option__Wtype_limits" in 20806 .ok|.ok,*) ;; 20807 .|.no|.no,*) ;; 20808 *) 20809 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wtype_limits " 2>&1 >/dev/null 20810 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wtype_limits") >&5 20811 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wtype_limits) 2>&5 20812 ac_status=$? 20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20814 (exit $ac_status); } 20815 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wtype_limits\"") >&5 20816 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wtype_limits") 2>&5 20817 ac_status=$? 20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20819 (exit $ac_status); } 20820 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wtype_limits" 20821 fi 20822 ;; 20823esac 20824 20825 echo "$as_me:$LINENO: checking CFLAGS for gcc -Wuninitialized" >&5 20826echo $ECHO_N "checking CFLAGS for gcc -Wuninitialized... $ECHO_C" >&6 20827if test "${ac_cv_cflags_gcc_option__Wuninitialized+set}" = set; then 20828 echo $ECHO_N "(cached) $ECHO_C" >&6 20829else 20830 ac_cv_cflags_gcc_option__Wuninitialized="no, unknown" 20831 20832 20833 ac_ext=c 20834ac_cpp='$CPP $CPPFLAGS' 20835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20837ac_compiler_gnu=$ac_cv_c_compiler_gnu 20838 20839 ac_save_CFLAGS="$CFLAGS" 20840for ac_arg in "-pedantic -Werror % -Wuninitialized" "-pedantic % -Wuninitialized %% no, obsolete" # 20841do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20842 cat >conftest.$ac_ext <<_ACEOF 20843/* confdefs.h. */ 20844_ACEOF 20845cat confdefs.h >>conftest.$ac_ext 20846cat >>conftest.$ac_ext <<_ACEOF 20847/* end confdefs.h. */ 20848 20849int 20850main () 20851{ 20852return 0; 20853 ; 20854 return 0; 20855} 20856_ACEOF 20857rm -f conftest.$ac_objext 20858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20859 (eval $ac_compile) 2>conftest.er1 20860 ac_status=$? 20861 grep -v '^ *+' conftest.er1 >conftest.err 20862 rm -f conftest.er1 20863 cat conftest.err >&5 20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20865 (exit $ac_status); } && 20866 { ac_try='test -z "$ac_c_werror_flag" 20867 || test ! -s conftest.err' 20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20869 (eval $ac_try) 2>&5 20870 ac_status=$? 20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20872 (exit $ac_status); }; } && 20873 { ac_try='test -s conftest.$ac_objext' 20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20875 (eval $ac_try) 2>&5 20876 ac_status=$? 20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20878 (exit $ac_status); }; }; then 20879 ac_cv_cflags_gcc_option__Wuninitialized=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20880else 20881 echo "$as_me: failed program was:" >&5 20882sed 's/^/| /' conftest.$ac_ext >&5 20883 20884fi 20885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20886done 20887 CFLAGS="$ac_save_CFLAGS" 20888 ac_ext=c 20889ac_cpp='$CPP $CPPFLAGS' 20890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20892ac_compiler_gnu=$ac_cv_c_compiler_gnu 20893 20894 20895fi 20896echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wuninitialized" >&5 20897echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wuninitialized" >&6 20898case ".$ac_cv_cflags_gcc_option__Wuninitialized" in 20899 .ok|.ok,*) ;; 20900 .|.no|.no,*) ;; 20901 *) 20902 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wuninitialized " 2>&1 >/dev/null 20903 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wuninitialized") >&5 20904 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wuninitialized) 2>&5 20905 ac_status=$? 20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20907 (exit $ac_status); } 20908 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wuninitialized\"") >&5 20909 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wuninitialized") 2>&5 20910 ac_status=$? 20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20912 (exit $ac_status); } 20913 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wuninitialized" 20914 fi 20915 ;; 20916esac 20917 20918 echo "$as_me:$LINENO: checking CFLAGS for gcc -fomit-frame-pointer" >&5 20919echo $ECHO_N "checking CFLAGS for gcc -fomit-frame-pointer... $ECHO_C" >&6 20920if test "${ac_cv_cflags_gcc_option__fomit_frame_pointer+set}" = set; then 20921 echo $ECHO_N "(cached) $ECHO_C" >&6 20922else 20923 ac_cv_cflags_gcc_option__fomit_frame_pointer="no, unknown" 20924 20925 20926 ac_ext=c 20927ac_cpp='$CPP $CPPFLAGS' 20928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20930ac_compiler_gnu=$ac_cv_c_compiler_gnu 20931 20932 ac_save_CFLAGS="$CFLAGS" 20933for ac_arg in "-pedantic -Werror % -fomit-frame-pointer" "-pedantic % -fomit-frame-pointer %% no, obsolete" # 20934do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 20935 cat >conftest.$ac_ext <<_ACEOF 20936/* confdefs.h. */ 20937_ACEOF 20938cat confdefs.h >>conftest.$ac_ext 20939cat >>conftest.$ac_ext <<_ACEOF 20940/* end confdefs.h. */ 20941 20942int 20943main () 20944{ 20945return 0; 20946 ; 20947 return 0; 20948} 20949_ACEOF 20950rm -f conftest.$ac_objext 20951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20952 (eval $ac_compile) 2>conftest.er1 20953 ac_status=$? 20954 grep -v '^ *+' conftest.er1 >conftest.err 20955 rm -f conftest.er1 20956 cat conftest.err >&5 20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20958 (exit $ac_status); } && 20959 { ac_try='test -z "$ac_c_werror_flag" 20960 || test ! -s conftest.err' 20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20962 (eval $ac_try) 2>&5 20963 ac_status=$? 20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20965 (exit $ac_status); }; } && 20966 { ac_try='test -s conftest.$ac_objext' 20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20968 (eval $ac_try) 2>&5 20969 ac_status=$? 20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20971 (exit $ac_status); }; }; then 20972 ac_cv_cflags_gcc_option__fomit_frame_pointer=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 20973else 20974 echo "$as_me: failed program was:" >&5 20975sed 's/^/| /' conftest.$ac_ext >&5 20976 20977fi 20978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20979done 20980 CFLAGS="$ac_save_CFLAGS" 20981 ac_ext=c 20982ac_cpp='$CPP $CPPFLAGS' 20983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20985ac_compiler_gnu=$ac_cv_c_compiler_gnu 20986 20987 20988fi 20989echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__fomit_frame_pointer" >&5 20990echo "${ECHO_T}$ac_cv_cflags_gcc_option__fomit_frame_pointer" >&6 20991case ".$ac_cv_cflags_gcc_option__fomit_frame_pointer" in 20992 .ok|.ok,*) ;; 20993 .|.no|.no,*) ;; 20994 *) 20995 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__fomit_frame_pointer " 2>&1 >/dev/null 20996 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__fomit_frame_pointer") >&5 20997 (: CFLAGS does contain $ac_cv_cflags_gcc_option__fomit_frame_pointer) 2>&5 20998 ac_status=$? 20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21000 (exit $ac_status); } 21001 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__fomit_frame_pointer\"") >&5 21002 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__fomit_frame_pointer") 2>&5 21003 ac_status=$? 21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21005 (exit $ac_status); } 21006 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__fomit_frame_pointer" 21007 fi 21008 ;; 21009esac 21010 21011 echo "$as_me:$LINENO: checking CFLAGS for gcc -fno-strict-aliasing" >&5 21012echo $ECHO_N "checking CFLAGS for gcc -fno-strict-aliasing... $ECHO_C" >&6 21013if test "${ac_cv_cflags_gcc_option__fno_strict_aliasing+set}" = set; then 21014 echo $ECHO_N "(cached) $ECHO_C" >&6 21015else 21016 ac_cv_cflags_gcc_option__fno_strict_aliasing="no, unknown" 21017 21018 21019 ac_ext=c 21020ac_cpp='$CPP $CPPFLAGS' 21021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21023ac_compiler_gnu=$ac_cv_c_compiler_gnu 21024 21025 ac_save_CFLAGS="$CFLAGS" 21026for ac_arg in "-pedantic -Werror % -fno-strict-aliasing" "-pedantic % -fno-strict-aliasing %% no, obsolete" # 21027do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 21028 cat >conftest.$ac_ext <<_ACEOF 21029/* confdefs.h. */ 21030_ACEOF 21031cat confdefs.h >>conftest.$ac_ext 21032cat >>conftest.$ac_ext <<_ACEOF 21033/* end confdefs.h. */ 21034 21035int 21036main () 21037{ 21038return 0; 21039 ; 21040 return 0; 21041} 21042_ACEOF 21043rm -f conftest.$ac_objext 21044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21045 (eval $ac_compile) 2>conftest.er1 21046 ac_status=$? 21047 grep -v '^ *+' conftest.er1 >conftest.err 21048 rm -f conftest.er1 21049 cat conftest.err >&5 21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21051 (exit $ac_status); } && 21052 { ac_try='test -z "$ac_c_werror_flag" 21053 || test ! -s conftest.err' 21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21055 (eval $ac_try) 2>&5 21056 ac_status=$? 21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21058 (exit $ac_status); }; } && 21059 { ac_try='test -s conftest.$ac_objext' 21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21061 (eval $ac_try) 2>&5 21062 ac_status=$? 21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21064 (exit $ac_status); }; }; then 21065 ac_cv_cflags_gcc_option__fno_strict_aliasing=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 21066else 21067 echo "$as_me: failed program was:" >&5 21068sed 's/^/| /' conftest.$ac_ext >&5 21069 21070fi 21071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21072done 21073 CFLAGS="$ac_save_CFLAGS" 21074 ac_ext=c 21075ac_cpp='$CPP $CPPFLAGS' 21076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21078ac_compiler_gnu=$ac_cv_c_compiler_gnu 21079 21080 21081fi 21082echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__fno_strict_aliasing" >&5 21083echo "${ECHO_T}$ac_cv_cflags_gcc_option__fno_strict_aliasing" >&6 21084case ".$ac_cv_cflags_gcc_option__fno_strict_aliasing" in 21085 .ok|.ok,*) ;; 21086 .|.no|.no,*) ;; 21087 *) 21088 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__fno_strict_aliasing " 2>&1 >/dev/null 21089 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__fno_strict_aliasing") >&5 21090 (: CFLAGS does contain $ac_cv_cflags_gcc_option__fno_strict_aliasing) 2>&5 21091 ac_status=$? 21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21093 (exit $ac_status); } 21094 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__fno_strict_aliasing\"") >&5 21095 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__fno_strict_aliasing") 2>&5 21096 ac_status=$? 21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21098 (exit $ac_status); } 21099 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__fno_strict_aliasing" 21100 fi 21101 ;; 21102esac 21103 21104 echo "$as_me:$LINENO: checking CFLAGS for gcc -funroll-all-loops" >&5 21105echo $ECHO_N "checking CFLAGS for gcc -funroll-all-loops... $ECHO_C" >&6 21106if test "${ac_cv_cflags_gcc_option__funroll_all_loops+set}" = set; then 21107 echo $ECHO_N "(cached) $ECHO_C" >&6 21108else 21109 ac_cv_cflags_gcc_option__funroll_all_loops="no, unknown" 21110 21111 21112 ac_ext=c 21113ac_cpp='$CPP $CPPFLAGS' 21114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21116ac_compiler_gnu=$ac_cv_c_compiler_gnu 21117 21118 ac_save_CFLAGS="$CFLAGS" 21119for ac_arg in "-pedantic -Werror % -funroll-all-loops" "-pedantic % -funroll-all-loops %% no, obsolete" # 21120do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 21121 cat >conftest.$ac_ext <<_ACEOF 21122/* confdefs.h. */ 21123_ACEOF 21124cat confdefs.h >>conftest.$ac_ext 21125cat >>conftest.$ac_ext <<_ACEOF 21126/* end confdefs.h. */ 21127 21128int 21129main () 21130{ 21131return 0; 21132 ; 21133 return 0; 21134} 21135_ACEOF 21136rm -f conftest.$ac_objext 21137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21138 (eval $ac_compile) 2>conftest.er1 21139 ac_status=$? 21140 grep -v '^ *+' conftest.er1 >conftest.err 21141 rm -f conftest.er1 21142 cat conftest.err >&5 21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21144 (exit $ac_status); } && 21145 { ac_try='test -z "$ac_c_werror_flag" 21146 || test ! -s conftest.err' 21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21148 (eval $ac_try) 2>&5 21149 ac_status=$? 21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21151 (exit $ac_status); }; } && 21152 { ac_try='test -s conftest.$ac_objext' 21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21154 (eval $ac_try) 2>&5 21155 ac_status=$? 21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21157 (exit $ac_status); }; }; then 21158 ac_cv_cflags_gcc_option__funroll_all_loops=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 21159else 21160 echo "$as_me: failed program was:" >&5 21161sed 's/^/| /' conftest.$ac_ext >&5 21162 21163fi 21164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21165done 21166 CFLAGS="$ac_save_CFLAGS" 21167 ac_ext=c 21168ac_cpp='$CPP $CPPFLAGS' 21169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21171ac_compiler_gnu=$ac_cv_c_compiler_gnu 21172 21173 21174fi 21175echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__funroll_all_loops" >&5 21176echo "${ECHO_T}$ac_cv_cflags_gcc_option__funroll_all_loops" >&6 21177case ".$ac_cv_cflags_gcc_option__funroll_all_loops" in 21178 .ok|.ok,*) ;; 21179 .|.no|.no,*) ;; 21180 *) 21181 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__funroll_all_loops " 2>&1 >/dev/null 21182 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__funroll_all_loops") >&5 21183 (: CFLAGS does contain $ac_cv_cflags_gcc_option__funroll_all_loops) 2>&5 21184 ac_status=$? 21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21186 (exit $ac_status); } 21187 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__funroll_all_loops\"") >&5 21188 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__funroll_all_loops") 2>&5 21189 ac_status=$? 21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21191 (exit $ac_status); } 21192 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__funroll_all_loops" 21193 fi 21194 ;; 21195esac 21196 21197 echo "$as_me:$LINENO: checking CFLAGS for gcc -funit-at-a-time" >&5 21198echo $ECHO_N "checking CFLAGS for gcc -funit-at-a-time... $ECHO_C" >&6 21199if test "${ac_cv_cflags_gcc_option__funit_at_a_time+set}" = set; then 21200 echo $ECHO_N "(cached) $ECHO_C" >&6 21201else 21202 ac_cv_cflags_gcc_option__funit_at_a_time="no, unknown" 21203 21204 21205 ac_ext=c 21206ac_cpp='$CPP $CPPFLAGS' 21207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21209ac_compiler_gnu=$ac_cv_c_compiler_gnu 21210 21211 ac_save_CFLAGS="$CFLAGS" 21212for ac_arg in "-pedantic -Werror % -funit-at-a-time" "-pedantic % -funit-at-a-time %% no, obsolete" # 21213do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 21214 cat >conftest.$ac_ext <<_ACEOF 21215/* confdefs.h. */ 21216_ACEOF 21217cat confdefs.h >>conftest.$ac_ext 21218cat >>conftest.$ac_ext <<_ACEOF 21219/* end confdefs.h. */ 21220 21221int 21222main () 21223{ 21224return 0; 21225 ; 21226 return 0; 21227} 21228_ACEOF 21229rm -f conftest.$ac_objext 21230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21231 (eval $ac_compile) 2>conftest.er1 21232 ac_status=$? 21233 grep -v '^ *+' conftest.er1 >conftest.err 21234 rm -f conftest.er1 21235 cat conftest.err >&5 21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21237 (exit $ac_status); } && 21238 { ac_try='test -z "$ac_c_werror_flag" 21239 || test ! -s conftest.err' 21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21241 (eval $ac_try) 2>&5 21242 ac_status=$? 21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21244 (exit $ac_status); }; } && 21245 { ac_try='test -s conftest.$ac_objext' 21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21247 (eval $ac_try) 2>&5 21248 ac_status=$? 21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21250 (exit $ac_status); }; }; then 21251 ac_cv_cflags_gcc_option__funit_at_a_time=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 21252else 21253 echo "$as_me: failed program was:" >&5 21254sed 's/^/| /' conftest.$ac_ext >&5 21255 21256fi 21257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21258done 21259 CFLAGS="$ac_save_CFLAGS" 21260 ac_ext=c 21261ac_cpp='$CPP $CPPFLAGS' 21262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21264ac_compiler_gnu=$ac_cv_c_compiler_gnu 21265 21266 21267fi 21268echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__funit_at_a_time" >&5 21269echo "${ECHO_T}$ac_cv_cflags_gcc_option__funit_at_a_time" >&6 21270case ".$ac_cv_cflags_gcc_option__funit_at_a_time" in 21271 .ok|.ok,*) ;; 21272 .|.no|.no,*) ;; 21273 *) 21274 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__funit_at_a_time " 2>&1 >/dev/null 21275 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__funit_at_a_time") >&5 21276 (: CFLAGS does contain $ac_cv_cflags_gcc_option__funit_at_a_time) 2>&5 21277 ac_status=$? 21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21279 (exit $ac_status); } 21280 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__funit_at_a_time\"") >&5 21281 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__funit_at_a_time") 2>&5 21282 ac_status=$? 21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21284 (exit $ac_status); } 21285 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__funit_at_a_time" 21286 fi 21287 ;; 21288esac 21289 21290else 21291 { { echo "$as_me:$LINENO: error: Using $CC instead of gcc, currently not supported" >&5 21292echo "$as_me: error: Using $CC instead of gcc, currently not supported" >&2;} 21293 { (exit 1); exit 1; }; } 21294fi 21295 21296# Each case has an example of what target_os contains 21297case ${target_os} in 21298 # solaris 21299 solaris*) 21300 CFLAGS="$CFLAGS -D_STDC_C99" 21301 ;; 21302 21303 # SCO UnixWare 21304 *UnixWare*|*unixware*) 21305 CFLAGS="$CFLAGS -D__UnixWare__" 21306 ;; 21307 21308 # SCO OpenServer 21309 sco*) 21310 CFLAGS="$CFLAGS -D__OpenServer__" 21311 ;; 21312esac 21313 21314# Check whether --enable-thread-safety or --disable-thread-safety was given. 21315if test "${enable_thread_safety+set}" = set; then 21316 enableval="$enable_thread_safety" 21317 have_threads=yes 21318else 21319 have_threads=no 21320fi; 21321 21322if test "$have_threads" = "yes" ; then 21323 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 21324echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 21325if test "${ac_cv_search_pthread_create+set}" = set; then 21326 echo $ECHO_N "(cached) $ECHO_C" >&6 21327else 21328 ac_func_search_save_LIBS=$LIBS 21329ac_cv_search_pthread_create=no 21330cat >conftest.$ac_ext <<_ACEOF 21331/* confdefs.h. */ 21332_ACEOF 21333cat confdefs.h >>conftest.$ac_ext 21334cat >>conftest.$ac_ext <<_ACEOF 21335/* end confdefs.h. */ 21336 21337/* Override any gcc2 internal prototype to avoid an error. */ 21338#ifdef __cplusplus 21339extern "C" 21340#endif 21341/* We use char because int might match the return type of a gcc2 21342 builtin and then its argument prototype would still apply. */ 21343char pthread_create (); 21344int 21345main () 21346{ 21347pthread_create (); 21348 ; 21349 return 0; 21350} 21351_ACEOF 21352rm -f conftest.$ac_objext conftest$ac_exeext 21353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21354 (eval $ac_link) 2>conftest.er1 21355 ac_status=$? 21356 grep -v '^ *+' conftest.er1 >conftest.err 21357 rm -f conftest.er1 21358 cat conftest.err >&5 21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21360 (exit $ac_status); } && 21361 { ac_try='test -z "$ac_c_werror_flag" 21362 || test ! -s conftest.err' 21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21364 (eval $ac_try) 2>&5 21365 ac_status=$? 21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21367 (exit $ac_status); }; } && 21368 { ac_try='test -s conftest$ac_exeext' 21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21370 (eval $ac_try) 2>&5 21371 ac_status=$? 21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21373 (exit $ac_status); }; }; then 21374 ac_cv_search_pthread_create="none required" 21375else 21376 echo "$as_me: failed program was:" >&5 21377sed 's/^/| /' conftest.$ac_ext >&5 21378 21379fi 21380rm -f conftest.err conftest.$ac_objext \ 21381 conftest$ac_exeext conftest.$ac_ext 21382if test "$ac_cv_search_pthread_create" = no; then 21383 for ac_lib in pthread thread; do 21384 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21385 cat >conftest.$ac_ext <<_ACEOF 21386/* confdefs.h. */ 21387_ACEOF 21388cat confdefs.h >>conftest.$ac_ext 21389cat >>conftest.$ac_ext <<_ACEOF 21390/* end confdefs.h. */ 21391 21392/* Override any gcc2 internal prototype to avoid an error. */ 21393#ifdef __cplusplus 21394extern "C" 21395#endif 21396/* We use char because int might match the return type of a gcc2 21397 builtin and then its argument prototype would still apply. */ 21398char pthread_create (); 21399int 21400main () 21401{ 21402pthread_create (); 21403 ; 21404 return 0; 21405} 21406_ACEOF 21407rm -f conftest.$ac_objext conftest$ac_exeext 21408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21409 (eval $ac_link) 2>conftest.er1 21410 ac_status=$? 21411 grep -v '^ *+' conftest.er1 >conftest.err 21412 rm -f conftest.er1 21413 cat conftest.err >&5 21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21415 (exit $ac_status); } && 21416 { ac_try='test -z "$ac_c_werror_flag" 21417 || test ! -s conftest.err' 21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21419 (eval $ac_try) 2>&5 21420 ac_status=$? 21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21422 (exit $ac_status); }; } && 21423 { ac_try='test -s conftest$ac_exeext' 21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21425 (eval $ac_try) 2>&5 21426 ac_status=$? 21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21428 (exit $ac_status); }; }; then 21429 ac_cv_search_pthread_create="-l$ac_lib" 21430break 21431else 21432 echo "$as_me: failed program was:" >&5 21433sed 's/^/| /' conftest.$ac_ext >&5 21434 21435fi 21436rm -f conftest.err conftest.$ac_objext \ 21437 conftest$ac_exeext conftest.$ac_ext 21438 done 21439fi 21440LIBS=$ac_func_search_save_LIBS 21441fi 21442echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 21443echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 21444if test "$ac_cv_search_pthread_create" != no; then 21445 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" 21446 21447else 21448 { { echo "$as_me:$LINENO: error: Missing libpthread.so or libthread.so, cannot use --enable-thread-safety" >&5 21449echo "$as_me: error: Missing libpthread.so or libthread.so, cannot use --enable-thread-safety" >&2;} 21450 { (exit 1); exit 1; }; } 21451fi 21452 21453 CFLAGS="$CFLAGS -DPQT_THREAD_SAFE -D_THREAD_SAFE" 21454 21455 # SCO OpenServer 5, possibly other platforms, requires using FSU pthreads. 21456 # We detect this by looking at the prototype for pthread_getspecific. 21457 # There are a few other prototypes that are different as well but detecting 21458 # one is plenty. 21459 echo "$as_me:$LINENO: checking whether FSU pthreads is being used" >&5 21460echo $ECHO_N "checking whether FSU pthreads is being used... $ECHO_C" >&6 21461 cat >conftest.$ac_ext <<_ACEOF 21462/* confdefs.h. */ 21463_ACEOF 21464cat confdefs.h >>conftest.$ac_ext 21465cat >>conftest.$ac_ext <<_ACEOF 21466/* end confdefs.h. */ 21467#include <pthread.h> 21468int 21469main () 21470{ 21471pthread_getspecific((pthread_key_t)(0), (void *)(0)) 21472 ; 21473 return 0; 21474} 21475_ACEOF 21476rm -f conftest.$ac_objext 21477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21478 (eval $ac_compile) 2>conftest.er1 21479 ac_status=$? 21480 grep -v '^ *+' conftest.er1 >conftest.err 21481 rm -f conftest.er1 21482 cat conftest.err >&5 21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21484 (exit $ac_status); } && 21485 { ac_try='test -z "$ac_c_werror_flag" 21486 || test ! -s conftest.err' 21487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21488 (eval $ac_try) 2>&5 21489 ac_status=$? 21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21491 (exit $ac_status); }; } && 21492 { ac_try='test -s conftest.$ac_objext' 21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21494 (eval $ac_try) 2>&5 21495 ac_status=$? 21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21497 (exit $ac_status); }; }; then 21498 21499cat >>confdefs.h <<\_ACEOF 21500#define PTHREAD_FSU 1 21501_ACEOF 21502 echo "$as_me:$LINENO: result: yes" >&5 21503echo "${ECHO_T}yes" >&6 21504else 21505 echo "$as_me: failed program was:" >&5 21506sed 's/^/| /' conftest.$ac_ext >&5 21507 21508echo "$as_me:$LINENO: result: no" >&5 21509echo "${ECHO_T}no" >&6 21510 21511fi 21512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21513fi 21514 21515# If strict memory alignment is required, this test will produce a 21516# Bus error. Most riscs CPUs (old and modern) are strict. 21517save_CFLAGS=$CFLAGS 21518CFLAGS="" 21519echo "$as_me:$LINENO: checking if strict memory alignment is required" >&5 21520echo $ECHO_N "checking if strict memory alignment is required... $ECHO_C" >&6 21521if test "$cross_compiling" = yes; then 21522 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 21523See \`config.log' for more details." >&5 21524echo "$as_me: error: cannot run test program while cross compiling 21525See \`config.log' for more details." >&2;} 21526 { (exit 1); exit 1; }; } 21527else 21528 cat >conftest.$ac_ext <<_ACEOF 21529int main(void){char b[8];int*i=(int*)(b+1);*i=0;return 0;} 21530_ACEOF 21531rm -f conftest$ac_exeext 21532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21533 (eval $ac_link) 2>&5 21534 ac_status=$? 21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21538 (eval $ac_try) 2>&5 21539 ac_status=$? 21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21541 (exit $ac_status); }; }; then 21542 echo "$as_me:$LINENO: result: no" >&5 21543echo "${ECHO_T}no" >&6 21544else 21545 echo "$as_me: program exited with status $ac_status" >&5 21546echo "$as_me: failed program was:" >&5 21547sed 's/^/| /' conftest.$ac_ext >&5 21548 21549( exit $ac_status ) 21550 21551cat >>confdefs.h <<\_ACEOF 21552#define STRICT_MEMORY_ALIGNMENT 1 21553_ACEOF 21554 echo "$as_me:$LINENO: result: yes" >&5 21555echo "${ECHO_T}yes" >&6 21556 21557fi 21558rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21559fi 21560CFLAGS=$save_CFLAGS 21561 21562echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21563echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 21564if test "${ac_cv_header_stdc+set}" = set; then 21565 echo $ECHO_N "(cached) $ECHO_C" >&6 21566else 21567 cat >conftest.$ac_ext <<_ACEOF 21568/* confdefs.h. */ 21569_ACEOF 21570cat confdefs.h >>conftest.$ac_ext 21571cat >>conftest.$ac_ext <<_ACEOF 21572/* end confdefs.h. */ 21573#include <stdlib.h> 21574#include <stdarg.h> 21575#include <string.h> 21576#include <float.h> 21577 21578int 21579main () 21580{ 21581 21582 ; 21583 return 0; 21584} 21585_ACEOF 21586rm -f conftest.$ac_objext 21587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21588 (eval $ac_compile) 2>conftest.er1 21589 ac_status=$? 21590 grep -v '^ *+' conftest.er1 >conftest.err 21591 rm -f conftest.er1 21592 cat conftest.err >&5 21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21594 (exit $ac_status); } && 21595 { ac_try='test -z "$ac_c_werror_flag" 21596 || test ! -s conftest.err' 21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21598 (eval $ac_try) 2>&5 21599 ac_status=$? 21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21601 (exit $ac_status); }; } && 21602 { ac_try='test -s conftest.$ac_objext' 21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21604 (eval $ac_try) 2>&5 21605 ac_status=$? 21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21607 (exit $ac_status); }; }; then 21608 ac_cv_header_stdc=yes 21609else 21610 echo "$as_me: failed program was:" >&5 21611sed 's/^/| /' conftest.$ac_ext >&5 21612 21613ac_cv_header_stdc=no 21614fi 21615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21616 21617if test $ac_cv_header_stdc = yes; then 21618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21619 cat >conftest.$ac_ext <<_ACEOF 21620/* confdefs.h. */ 21621_ACEOF 21622cat confdefs.h >>conftest.$ac_ext 21623cat >>conftest.$ac_ext <<_ACEOF 21624/* end confdefs.h. */ 21625#include <string.h> 21626 21627_ACEOF 21628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21629 $EGREP "memchr" >/dev/null 2>&1; then 21630 : 21631else 21632 ac_cv_header_stdc=no 21633fi 21634rm -f conftest* 21635 21636fi 21637 21638if test $ac_cv_header_stdc = yes; then 21639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21640 cat >conftest.$ac_ext <<_ACEOF 21641/* confdefs.h. */ 21642_ACEOF 21643cat confdefs.h >>conftest.$ac_ext 21644cat >>conftest.$ac_ext <<_ACEOF 21645/* end confdefs.h. */ 21646#include <stdlib.h> 21647 21648_ACEOF 21649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21650 $EGREP "free" >/dev/null 2>&1; then 21651 : 21652else 21653 ac_cv_header_stdc=no 21654fi 21655rm -f conftest* 21656 21657fi 21658 21659if test $ac_cv_header_stdc = yes; then 21660 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21661 if test "$cross_compiling" = yes; then 21662 : 21663else 21664 cat >conftest.$ac_ext <<_ACEOF 21665/* confdefs.h. */ 21666_ACEOF 21667cat confdefs.h >>conftest.$ac_ext 21668cat >>conftest.$ac_ext <<_ACEOF 21669/* end confdefs.h. */ 21670#include <ctype.h> 21671#if ((' ' & 0x0FF) == 0x020) 21672# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21673# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21674#else 21675# define ISLOWER(c) \ 21676 (('a' <= (c) && (c) <= 'i') \ 21677 || ('j' <= (c) && (c) <= 'r') \ 21678 || ('s' <= (c) && (c) <= 'z')) 21679# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21680#endif 21681 21682#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21683int 21684main () 21685{ 21686 int i; 21687 for (i = 0; i < 256; i++) 21688 if (XOR (islower (i), ISLOWER (i)) 21689 || toupper (i) != TOUPPER (i)) 21690 exit(2); 21691 exit (0); 21692} 21693_ACEOF 21694rm -f conftest$ac_exeext 21695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21696 (eval $ac_link) 2>&5 21697 ac_status=$? 21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21701 (eval $ac_try) 2>&5 21702 ac_status=$? 21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21704 (exit $ac_status); }; }; then 21705 : 21706else 21707 echo "$as_me: program exited with status $ac_status" >&5 21708echo "$as_me: failed program was:" >&5 21709sed 's/^/| /' conftest.$ac_ext >&5 21710 21711( exit $ac_status ) 21712ac_cv_header_stdc=no 21713fi 21714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21715fi 21716fi 21717fi 21718echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21719echo "${ECHO_T}$ac_cv_header_stdc" >&6 21720if test $ac_cv_header_stdc = yes; then 21721 21722cat >>confdefs.h <<\_ACEOF 21723#define STDC_HEADERS 1 21724_ACEOF 21725 21726fi 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739for ac_header in \ 21740arpa/inet.h limits.h linux/limits.h netdb.h netinet/in.h stddef.h \ 21741sys/socket.h time.h math.h sys/time.h strings.h 21742do 21743as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21744if eval "test \"\${$as_ac_Header+set}\" = set"; then 21745 echo "$as_me:$LINENO: checking for $ac_header" >&5 21746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21747if eval "test \"\${$as_ac_Header+set}\" = set"; then 21748 echo $ECHO_N "(cached) $ECHO_C" >&6 21749fi 21750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21752else 21753 # Is the header compilable? 21754echo "$as_me:$LINENO: checking $ac_header usability" >&5 21755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21756cat >conftest.$ac_ext <<_ACEOF 21757/* confdefs.h. */ 21758_ACEOF 21759cat confdefs.h >>conftest.$ac_ext 21760cat >>conftest.$ac_ext <<_ACEOF 21761/* end confdefs.h. */ 21762$ac_includes_default 21763#include <$ac_header> 21764_ACEOF 21765rm -f conftest.$ac_objext 21766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21767 (eval $ac_compile) 2>conftest.er1 21768 ac_status=$? 21769 grep -v '^ *+' conftest.er1 >conftest.err 21770 rm -f conftest.er1 21771 cat conftest.err >&5 21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21773 (exit $ac_status); } && 21774 { ac_try='test -z "$ac_c_werror_flag" 21775 || test ! -s conftest.err' 21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21777 (eval $ac_try) 2>&5 21778 ac_status=$? 21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21780 (exit $ac_status); }; } && 21781 { ac_try='test -s conftest.$ac_objext' 21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21783 (eval $ac_try) 2>&5 21784 ac_status=$? 21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21786 (exit $ac_status); }; }; then 21787 ac_header_compiler=yes 21788else 21789 echo "$as_me: failed program was:" >&5 21790sed 's/^/| /' conftest.$ac_ext >&5 21791 21792ac_header_compiler=no 21793fi 21794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21795echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21796echo "${ECHO_T}$ac_header_compiler" >&6 21797 21798# Is the header present? 21799echo "$as_me:$LINENO: checking $ac_header presence" >&5 21800echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21801cat >conftest.$ac_ext <<_ACEOF 21802/* confdefs.h. */ 21803_ACEOF 21804cat confdefs.h >>conftest.$ac_ext 21805cat >>conftest.$ac_ext <<_ACEOF 21806/* end confdefs.h. */ 21807#include <$ac_header> 21808_ACEOF 21809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21811 ac_status=$? 21812 grep -v '^ *+' conftest.er1 >conftest.err 21813 rm -f conftest.er1 21814 cat conftest.err >&5 21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21816 (exit $ac_status); } >/dev/null; then 21817 if test -s conftest.err; then 21818 ac_cpp_err=$ac_c_preproc_warn_flag 21819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21820 else 21821 ac_cpp_err= 21822 fi 21823else 21824 ac_cpp_err=yes 21825fi 21826if test -z "$ac_cpp_err"; then 21827 ac_header_preproc=yes 21828else 21829 echo "$as_me: failed program was:" >&5 21830sed 's/^/| /' conftest.$ac_ext >&5 21831 21832 ac_header_preproc=no 21833fi 21834rm -f conftest.err conftest.$ac_ext 21835echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21836echo "${ECHO_T}$ac_header_preproc" >&6 21837 21838# So? What about this header? 21839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21840 yes:no: ) 21841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21842echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21844echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21845 ac_header_preproc=yes 21846 ;; 21847 no:yes:* ) 21848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21849echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21851echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21853echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21855echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21857echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21859echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21860 ( 21861 cat <<\_ASBOX 21862## ----------------------------------- ## 21863## Report this to libpqtypes@esilo.com ## 21864## ----------------------------------- ## 21865_ASBOX 21866 ) | 21867 sed "s/^/$as_me: WARNING: /" >&2 21868 ;; 21869esac 21870echo "$as_me:$LINENO: checking for $ac_header" >&5 21871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21872if eval "test \"\${$as_ac_Header+set}\" = set"; then 21873 echo $ECHO_N "(cached) $ECHO_C" >&6 21874else 21875 eval "$as_ac_Header=\$ac_header_preproc" 21876fi 21877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21879 21880fi 21881if test `eval echo '${'$as_ac_Header'}'` = yes; then 21882 cat >>confdefs.h <<_ACEOF 21883#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21884_ACEOF 21885 21886fi 21887 21888done 21889 21890 21891echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 21892echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 21893if test "${ac_cv_struct_tm+set}" = set; then 21894 echo $ECHO_N "(cached) $ECHO_C" >&6 21895else 21896 cat >conftest.$ac_ext <<_ACEOF 21897/* confdefs.h. */ 21898_ACEOF 21899cat confdefs.h >>conftest.$ac_ext 21900cat >>conftest.$ac_ext <<_ACEOF 21901/* end confdefs.h. */ 21902#include <sys/types.h> 21903#include <time.h> 21904 21905int 21906main () 21907{ 21908struct tm *tp; tp->tm_sec; 21909 ; 21910 return 0; 21911} 21912_ACEOF 21913rm -f conftest.$ac_objext 21914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21915 (eval $ac_compile) 2>conftest.er1 21916 ac_status=$? 21917 grep -v '^ *+' conftest.er1 >conftest.err 21918 rm -f conftest.er1 21919 cat conftest.err >&5 21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21921 (exit $ac_status); } && 21922 { ac_try='test -z "$ac_c_werror_flag" 21923 || test ! -s conftest.err' 21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21925 (eval $ac_try) 2>&5 21926 ac_status=$? 21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21928 (exit $ac_status); }; } && 21929 { ac_try='test -s conftest.$ac_objext' 21930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21931 (eval $ac_try) 2>&5 21932 ac_status=$? 21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21934 (exit $ac_status); }; }; then 21935 ac_cv_struct_tm=time.h 21936else 21937 echo "$as_me: failed program was:" >&5 21938sed 's/^/| /' conftest.$ac_ext >&5 21939 21940ac_cv_struct_tm=sys/time.h 21941fi 21942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21943fi 21944echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 21945echo "${ECHO_T}$ac_cv_struct_tm" >&6 21946if test $ac_cv_struct_tm = sys/time.h; then 21947 21948cat >>confdefs.h <<\_ACEOF 21949#define TM_IN_SYS_TIME 1 21950_ACEOF 21951 21952fi 21953 21954echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 21955echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 21956if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then 21957 echo $ECHO_N "(cached) $ECHO_C" >&6 21958else 21959 cat >conftest.$ac_ext <<_ACEOF 21960/* confdefs.h. */ 21961_ACEOF 21962cat confdefs.h >>conftest.$ac_ext 21963cat >>conftest.$ac_ext <<_ACEOF 21964/* end confdefs.h. */ 21965#include <sys/types.h> 21966#include <$ac_cv_struct_tm> 21967 21968 21969int 21970main () 21971{ 21972static struct tm ac_aggr; 21973if (ac_aggr.tm_zone) 21974return 0; 21975 ; 21976 return 0; 21977} 21978_ACEOF 21979rm -f conftest.$ac_objext 21980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21981 (eval $ac_compile) 2>conftest.er1 21982 ac_status=$? 21983 grep -v '^ *+' conftest.er1 >conftest.err 21984 rm -f conftest.er1 21985 cat conftest.err >&5 21986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21987 (exit $ac_status); } && 21988 { ac_try='test -z "$ac_c_werror_flag" 21989 || test ! -s conftest.err' 21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21991 (eval $ac_try) 2>&5 21992 ac_status=$? 21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21994 (exit $ac_status); }; } && 21995 { ac_try='test -s conftest.$ac_objext' 21996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21997 (eval $ac_try) 2>&5 21998 ac_status=$? 21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22000 (exit $ac_status); }; }; then 22001 ac_cv_member_struct_tm_tm_zone=yes 22002else 22003 echo "$as_me: failed program was:" >&5 22004sed 's/^/| /' conftest.$ac_ext >&5 22005 22006cat >conftest.$ac_ext <<_ACEOF 22007/* confdefs.h. */ 22008_ACEOF 22009cat confdefs.h >>conftest.$ac_ext 22010cat >>conftest.$ac_ext <<_ACEOF 22011/* end confdefs.h. */ 22012#include <sys/types.h> 22013#include <$ac_cv_struct_tm> 22014 22015 22016int 22017main () 22018{ 22019static struct tm ac_aggr; 22020if (sizeof ac_aggr.tm_zone) 22021return 0; 22022 ; 22023 return 0; 22024} 22025_ACEOF 22026rm -f conftest.$ac_objext 22027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22028 (eval $ac_compile) 2>conftest.er1 22029 ac_status=$? 22030 grep -v '^ *+' conftest.er1 >conftest.err 22031 rm -f conftest.er1 22032 cat conftest.err >&5 22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22034 (exit $ac_status); } && 22035 { ac_try='test -z "$ac_c_werror_flag" 22036 || test ! -s conftest.err' 22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22038 (eval $ac_try) 2>&5 22039 ac_status=$? 22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22041 (exit $ac_status); }; } && 22042 { ac_try='test -s conftest.$ac_objext' 22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22044 (eval $ac_try) 2>&5 22045 ac_status=$? 22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22047 (exit $ac_status); }; }; then 22048 ac_cv_member_struct_tm_tm_zone=yes 22049else 22050 echo "$as_me: failed program was:" >&5 22051sed 's/^/| /' conftest.$ac_ext >&5 22052 22053ac_cv_member_struct_tm_tm_zone=no 22054fi 22055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22056fi 22057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22058fi 22059echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 22060echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 22061if test $ac_cv_member_struct_tm_tm_zone = yes; then 22062 22063cat >>confdefs.h <<_ACEOF 22064#define HAVE_STRUCT_TM_TM_ZONE 1 22065_ACEOF 22066 22067 22068fi 22069 22070if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 22071 22072cat >>confdefs.h <<\_ACEOF 22073#define HAVE_TM_ZONE 1 22074_ACEOF 22075 22076else 22077 echo "$as_me:$LINENO: checking for tzname" >&5 22078echo $ECHO_N "checking for tzname... $ECHO_C" >&6 22079if test "${ac_cv_var_tzname+set}" = set; then 22080 echo $ECHO_N "(cached) $ECHO_C" >&6 22081else 22082 cat >conftest.$ac_ext <<_ACEOF 22083/* confdefs.h. */ 22084_ACEOF 22085cat confdefs.h >>conftest.$ac_ext 22086cat >>conftest.$ac_ext <<_ACEOF 22087/* end confdefs.h. */ 22088#include <time.h> 22089#ifndef tzname /* For SGI. */ 22090extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 22091#endif 22092 22093int 22094main () 22095{ 22096atoi(*tzname); 22097 ; 22098 return 0; 22099} 22100_ACEOF 22101rm -f conftest.$ac_objext conftest$ac_exeext 22102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22103 (eval $ac_link) 2>conftest.er1 22104 ac_status=$? 22105 grep -v '^ *+' conftest.er1 >conftest.err 22106 rm -f conftest.er1 22107 cat conftest.err >&5 22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22109 (exit $ac_status); } && 22110 { ac_try='test -z "$ac_c_werror_flag" 22111 || test ! -s conftest.err' 22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22113 (eval $ac_try) 2>&5 22114 ac_status=$? 22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22116 (exit $ac_status); }; } && 22117 { ac_try='test -s conftest$ac_exeext' 22118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22119 (eval $ac_try) 2>&5 22120 ac_status=$? 22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22122 (exit $ac_status); }; }; then 22123 ac_cv_var_tzname=yes 22124else 22125 echo "$as_me: failed program was:" >&5 22126sed 's/^/| /' conftest.$ac_ext >&5 22127 22128ac_cv_var_tzname=no 22129fi 22130rm -f conftest.err conftest.$ac_objext \ 22131 conftest$ac_exeext conftest.$ac_ext 22132fi 22133echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 22134echo "${ECHO_T}$ac_cv_var_tzname" >&6 22135 if test $ac_cv_var_tzname = yes; then 22136 22137cat >>confdefs.h <<\_ACEOF 22138#define HAVE_TZNAME 1 22139_ACEOF 22140 22141 fi 22142fi 22143 22144echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 22145echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 22146if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then 22147 echo $ECHO_N "(cached) $ECHO_C" >&6 22148else 22149 cat >conftest.$ac_ext <<_ACEOF 22150/* confdefs.h. */ 22151_ACEOF 22152cat confdefs.h >>conftest.$ac_ext 22153cat >>conftest.$ac_ext <<_ACEOF 22154/* end confdefs.h. */ 22155\ 22156#ifdef HAVE_TIME_H 22157#include <time.h> 22158#endif 22159#ifdef HAVE_SYS_TIME_H 22160#include <sys/time.h> 22161#endif 22162 22163int 22164main () 22165{ 22166static struct tm ac_aggr; 22167if (ac_aggr.tm_gmtoff) 22168return 0; 22169 ; 22170 return 0; 22171} 22172_ACEOF 22173rm -f conftest.$ac_objext 22174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22175 (eval $ac_compile) 2>conftest.er1 22176 ac_status=$? 22177 grep -v '^ *+' conftest.er1 >conftest.err 22178 rm -f conftest.er1 22179 cat conftest.err >&5 22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22181 (exit $ac_status); } && 22182 { ac_try='test -z "$ac_c_werror_flag" 22183 || test ! -s conftest.err' 22184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22185 (eval $ac_try) 2>&5 22186 ac_status=$? 22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22188 (exit $ac_status); }; } && 22189 { ac_try='test -s conftest.$ac_objext' 22190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22191 (eval $ac_try) 2>&5 22192 ac_status=$? 22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22194 (exit $ac_status); }; }; then 22195 ac_cv_member_struct_tm_tm_gmtoff=yes 22196else 22197 echo "$as_me: failed program was:" >&5 22198sed 's/^/| /' conftest.$ac_ext >&5 22199 22200cat >conftest.$ac_ext <<_ACEOF 22201/* confdefs.h. */ 22202_ACEOF 22203cat confdefs.h >>conftest.$ac_ext 22204cat >>conftest.$ac_ext <<_ACEOF 22205/* end confdefs.h. */ 22206\ 22207#ifdef HAVE_TIME_H 22208#include <time.h> 22209#endif 22210#ifdef HAVE_SYS_TIME_H 22211#include <sys/time.h> 22212#endif 22213 22214int 22215main () 22216{ 22217static struct tm ac_aggr; 22218if (sizeof ac_aggr.tm_gmtoff) 22219return 0; 22220 ; 22221 return 0; 22222} 22223_ACEOF 22224rm -f conftest.$ac_objext 22225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22226 (eval $ac_compile) 2>conftest.er1 22227 ac_status=$? 22228 grep -v '^ *+' conftest.er1 >conftest.err 22229 rm -f conftest.er1 22230 cat conftest.err >&5 22231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22232 (exit $ac_status); } && 22233 { ac_try='test -z "$ac_c_werror_flag" 22234 || test ! -s conftest.err' 22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22236 (eval $ac_try) 2>&5 22237 ac_status=$? 22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22239 (exit $ac_status); }; } && 22240 { ac_try='test -s conftest.$ac_objext' 22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22242 (eval $ac_try) 2>&5 22243 ac_status=$? 22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22245 (exit $ac_status); }; }; then 22246 ac_cv_member_struct_tm_tm_gmtoff=yes 22247else 22248 echo "$as_me: failed program was:" >&5 22249sed 's/^/| /' conftest.$ac_ext >&5 22250 22251ac_cv_member_struct_tm_tm_gmtoff=no 22252fi 22253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22254fi 22255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22256fi 22257echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 22258echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 22259if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then 22260 22261cat >>confdefs.h <<_ACEOF 22262#define HAVE_STRUCT_TM_TM_GMTOFF 1 22263_ACEOF 22264 22265 22266fi 22267 22268 22269echo "$as_me:$LINENO: checking for socklen_t" >&5 22270echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 22271if test "${ac_cv_type_socklen_t+set}" = set; then 22272 echo $ECHO_N "(cached) $ECHO_C" >&6 22273else 22274 cat >conftest.$ac_ext <<_ACEOF 22275/* confdefs.h. */ 22276_ACEOF 22277cat confdefs.h >>conftest.$ac_ext 22278cat >>conftest.$ac_ext <<_ACEOF 22279/* end confdefs.h. */ 22280#include <unistd.h> 22281#ifdef HAVE_APRA_INET_H 22282#include <arpa/inet.h> 22283#endif 22284#ifdef HAVE_SYS_SOCKET_H 22285#include <sys/socket.h> 22286#endif 22287 22288int 22289main () 22290{ 22291if ((socklen_t *) 0) 22292 return 0; 22293if (sizeof (socklen_t)) 22294 return 0; 22295 ; 22296 return 0; 22297} 22298_ACEOF 22299rm -f conftest.$ac_objext 22300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22301 (eval $ac_compile) 2>conftest.er1 22302 ac_status=$? 22303 grep -v '^ *+' conftest.er1 >conftest.err 22304 rm -f conftest.er1 22305 cat conftest.err >&5 22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22307 (exit $ac_status); } && 22308 { ac_try='test -z "$ac_c_werror_flag" 22309 || test ! -s conftest.err' 22310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22311 (eval $ac_try) 2>&5 22312 ac_status=$? 22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22314 (exit $ac_status); }; } && 22315 { ac_try='test -s conftest.$ac_objext' 22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22317 (eval $ac_try) 2>&5 22318 ac_status=$? 22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22320 (exit $ac_status); }; }; then 22321 ac_cv_type_socklen_t=yes 22322else 22323 echo "$as_me: failed program was:" >&5 22324sed 's/^/| /' conftest.$ac_ext >&5 22325 22326ac_cv_type_socklen_t=no 22327fi 22328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22329fi 22330echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 22331echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 22332if test $ac_cv_type_socklen_t = yes; then 22333 22334cat >>confdefs.h <<_ACEOF 22335#define HAVE_SOCKLEN_T 1 22336_ACEOF 22337 22338 22339fi 22340 22341 22342echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5 22343echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6 22344if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then 22345 echo $ECHO_N "(cached) $ECHO_C" >&6 22346else 22347 cat >conftest.$ac_ext <<_ACEOF 22348/* confdefs.h. */ 22349_ACEOF 22350cat confdefs.h >>conftest.$ac_ext 22351cat >>conftest.$ac_ext <<_ACEOF 22352/* end confdefs.h. */ 22353\ 22354#ifdef HAVE_SYS_SOCKET_H 22355#include <sys/socket.h> 22356#endif 22357#ifdef HAVE_NETINET_IN_H 22358#include <netinet/in.h> 22359#endif 22360 22361int 22362main () 22363{ 22364static struct sockaddr_storage ac_aggr; 22365if (ac_aggr.ss_len) 22366return 0; 22367 ; 22368 return 0; 22369} 22370_ACEOF 22371rm -f conftest.$ac_objext 22372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22373 (eval $ac_compile) 2>conftest.er1 22374 ac_status=$? 22375 grep -v '^ *+' conftest.er1 >conftest.err 22376 rm -f conftest.er1 22377 cat conftest.err >&5 22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22379 (exit $ac_status); } && 22380 { ac_try='test -z "$ac_c_werror_flag" 22381 || test ! -s conftest.err' 22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22383 (eval $ac_try) 2>&5 22384 ac_status=$? 22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22386 (exit $ac_status); }; } && 22387 { ac_try='test -s conftest.$ac_objext' 22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22389 (eval $ac_try) 2>&5 22390 ac_status=$? 22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22392 (exit $ac_status); }; }; then 22393 ac_cv_member_struct_sockaddr_storage_ss_len=yes 22394else 22395 echo "$as_me: failed program was:" >&5 22396sed 's/^/| /' conftest.$ac_ext >&5 22397 22398cat >conftest.$ac_ext <<_ACEOF 22399/* confdefs.h. */ 22400_ACEOF 22401cat confdefs.h >>conftest.$ac_ext 22402cat >>conftest.$ac_ext <<_ACEOF 22403/* end confdefs.h. */ 22404\ 22405#ifdef HAVE_SYS_SOCKET_H 22406#include <sys/socket.h> 22407#endif 22408#ifdef HAVE_NETINET_IN_H 22409#include <netinet/in.h> 22410#endif 22411 22412int 22413main () 22414{ 22415static struct sockaddr_storage ac_aggr; 22416if (sizeof ac_aggr.ss_len) 22417return 0; 22418 ; 22419 return 0; 22420} 22421_ACEOF 22422rm -f conftest.$ac_objext 22423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22424 (eval $ac_compile) 2>conftest.er1 22425 ac_status=$? 22426 grep -v '^ *+' conftest.er1 >conftest.err 22427 rm -f conftest.er1 22428 cat conftest.err >&5 22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22430 (exit $ac_status); } && 22431 { ac_try='test -z "$ac_c_werror_flag" 22432 || test ! -s conftest.err' 22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22434 (eval $ac_try) 2>&5 22435 ac_status=$? 22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22437 (exit $ac_status); }; } && 22438 { ac_try='test -s conftest.$ac_objext' 22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22440 (eval $ac_try) 2>&5 22441 ac_status=$? 22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22443 (exit $ac_status); }; }; then 22444 ac_cv_member_struct_sockaddr_storage_ss_len=yes 22445else 22446 echo "$as_me: failed program was:" >&5 22447sed 's/^/| /' conftest.$ac_ext >&5 22448 22449ac_cv_member_struct_sockaddr_storage_ss_len=no 22450fi 22451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22452fi 22453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22454fi 22455echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5 22456echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6 22457if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then 22458 22459cat >>confdefs.h <<_ACEOF 22460#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1 22461_ACEOF 22462 22463 22464fi 22465 22466 22467echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 22468echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 22469if test "${ac_cv_c_const+set}" = set; then 22470 echo $ECHO_N "(cached) $ECHO_C" >&6 22471else 22472 cat >conftest.$ac_ext <<_ACEOF 22473/* confdefs.h. */ 22474_ACEOF 22475cat confdefs.h >>conftest.$ac_ext 22476cat >>conftest.$ac_ext <<_ACEOF 22477/* end confdefs.h. */ 22478 22479int 22480main () 22481{ 22482/* FIXME: Include the comments suggested by Paul. */ 22483#ifndef __cplusplus 22484 /* Ultrix mips cc rejects this. */ 22485 typedef int charset[2]; 22486 const charset x; 22487 /* SunOS 4.1.1 cc rejects this. */ 22488 char const *const *ccp; 22489 char **p; 22490 /* NEC SVR4.0.2 mips cc rejects this. */ 22491 struct point {int x, y;}; 22492 static struct point const zero = {0,0}; 22493 /* AIX XL C 1.02.0.0 rejects this. 22494 It does not let you subtract one const X* pointer from another in 22495 an arm of an if-expression whose if-part is not a constant 22496 expression */ 22497 const char *g = "string"; 22498 ccp = &g + (g ? g-g : 0); 22499 /* HPUX 7.0 cc rejects these. */ 22500 ++ccp; 22501 p = (char**) ccp; 22502 ccp = (char const *const *) p; 22503 { /* SCO 3.2v4 cc rejects this. */ 22504 char *t; 22505 char const *s = 0 ? (char *) 0 : (char const *) 0; 22506 22507 *t++ = 0; 22508 } 22509 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22510 int x[] = {25, 17}; 22511 const int *foo = &x[0]; 22512 ++foo; 22513 } 22514 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22515 typedef const int *iptr; 22516 iptr p = 0; 22517 ++p; 22518 } 22519 { /* AIX XL C 1.02.0.0 rejects this saying 22520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22521 struct s { int j; const int *ap[3]; }; 22522 struct s *b; b->j = 5; 22523 } 22524 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22525 const int foo = 10; 22526 } 22527#endif 22528 22529 ; 22530 return 0; 22531} 22532_ACEOF 22533rm -f conftest.$ac_objext 22534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22535 (eval $ac_compile) 2>conftest.er1 22536 ac_status=$? 22537 grep -v '^ *+' conftest.er1 >conftest.err 22538 rm -f conftest.er1 22539 cat conftest.err >&5 22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22541 (exit $ac_status); } && 22542 { ac_try='test -z "$ac_c_werror_flag" 22543 || test ! -s conftest.err' 22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22545 (eval $ac_try) 2>&5 22546 ac_status=$? 22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22548 (exit $ac_status); }; } && 22549 { ac_try='test -s conftest.$ac_objext' 22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22551 (eval $ac_try) 2>&5 22552 ac_status=$? 22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22554 (exit $ac_status); }; }; then 22555 ac_cv_c_const=yes 22556else 22557 echo "$as_me: failed program was:" >&5 22558sed 's/^/| /' conftest.$ac_ext >&5 22559 22560ac_cv_c_const=no 22561fi 22562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22563fi 22564echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 22565echo "${ECHO_T}$ac_cv_c_const" >&6 22566if test $ac_cv_c_const = no; then 22567 22568cat >>confdefs.h <<\_ACEOF 22569#define const 22570_ACEOF 22571 22572fi 22573 22574echo "$as_me:$LINENO: checking for working memcmp" >&5 22575echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 22576if test "${ac_cv_func_memcmp_working+set}" = set; then 22577 echo $ECHO_N "(cached) $ECHO_C" >&6 22578else 22579 if test "$cross_compiling" = yes; then 22580 ac_cv_func_memcmp_working=no 22581else 22582 cat >conftest.$ac_ext <<_ACEOF 22583/* confdefs.h. */ 22584_ACEOF 22585cat confdefs.h >>conftest.$ac_ext 22586cat >>conftest.$ac_ext <<_ACEOF 22587/* end confdefs.h. */ 22588$ac_includes_default 22589int 22590main () 22591{ 22592 22593 /* Some versions of memcmp are not 8-bit clean. */ 22594 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 22595 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 22596 exit (1); 22597 22598 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 22599 or more and with at least one buffer not starting on a 4-byte boundary. 22600 William Lewis provided this test program. */ 22601 { 22602 char foo[21]; 22603 char bar[21]; 22604 int i; 22605 for (i = 0; i < 4; i++) 22606 { 22607 char *a = foo + i; 22608 char *b = bar + i; 22609 strcpy (a, "--------01111111"); 22610 strcpy (b, "--------10000000"); 22611 if (memcmp (a, b, 16) >= 0) 22612 exit (1); 22613 } 22614 exit (0); 22615 } 22616 22617 ; 22618 return 0; 22619} 22620_ACEOF 22621rm -f conftest$ac_exeext 22622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22623 (eval $ac_link) 2>&5 22624 ac_status=$? 22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22628 (eval $ac_try) 2>&5 22629 ac_status=$? 22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22631 (exit $ac_status); }; }; then 22632 ac_cv_func_memcmp_working=yes 22633else 22634 echo "$as_me: program exited with status $ac_status" >&5 22635echo "$as_me: failed program was:" >&5 22636sed 's/^/| /' conftest.$ac_ext >&5 22637 22638( exit $ac_status ) 22639ac_cv_func_memcmp_working=no 22640fi 22641rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22642fi 22643fi 22644echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 22645echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 22646test $ac_cv_func_memcmp_working = no && case $LIBOBJS in 22647 "memcmp.$ac_objext" | \ 22648 *" memcmp.$ac_objext" | \ 22649 "memcmp.$ac_objext "* | \ 22650 *" memcmp.$ac_objext "* ) ;; 22651 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; 22652esac 22653 22654 22655echo "$as_me:$LINENO: checking for working strtod" >&5 22656echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 22657if test "${ac_cv_func_strtod+set}" = set; then 22658 echo $ECHO_N "(cached) $ECHO_C" >&6 22659else 22660 if test "$cross_compiling" = yes; then 22661 ac_cv_func_strtod=no 22662else 22663 cat >conftest.$ac_ext <<_ACEOF 22664/* confdefs.h. */ 22665_ACEOF 22666cat confdefs.h >>conftest.$ac_ext 22667cat >>conftest.$ac_ext <<_ACEOF 22668/* end confdefs.h. */ 22669 22670double strtod (); 22671int 22672main() 22673{ 22674 { 22675 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 22676 char *string = " +69"; 22677 char *term; 22678 double value; 22679 value = strtod (string, &term); 22680 if (value != 69 || term != (string + 4)) 22681 exit (1); 22682 } 22683 22684 { 22685 /* Under Solaris 2.4, strtod returns the wrong value for the 22686 terminating character under some conditions. */ 22687 char *string = "NaN"; 22688 char *term; 22689 strtod (string, &term); 22690 if (term != string && *(term - 1) == 0) 22691 exit (1); 22692 } 22693 exit (0); 22694} 22695 22696_ACEOF 22697rm -f conftest$ac_exeext 22698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22699 (eval $ac_link) 2>&5 22700 ac_status=$? 22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22704 (eval $ac_try) 2>&5 22705 ac_status=$? 22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22707 (exit $ac_status); }; }; then 22708 ac_cv_func_strtod=yes 22709else 22710 echo "$as_me: program exited with status $ac_status" >&5 22711echo "$as_me: failed program was:" >&5 22712sed 's/^/| /' conftest.$ac_ext >&5 22713 22714( exit $ac_status ) 22715ac_cv_func_strtod=no 22716fi 22717rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22718fi 22719fi 22720echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 22721echo "${ECHO_T}$ac_cv_func_strtod" >&6 22722if test $ac_cv_func_strtod = no; then 22723 case $LIBOBJS in 22724 "strtod.$ac_objext" | \ 22725 *" strtod.$ac_objext" | \ 22726 "strtod.$ac_objext "* | \ 22727 *" strtod.$ac_objext "* ) ;; 22728 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; 22729esac 22730 22731echo "$as_me:$LINENO: checking for pow" >&5 22732echo $ECHO_N "checking for pow... $ECHO_C" >&6 22733if test "${ac_cv_func_pow+set}" = set; then 22734 echo $ECHO_N "(cached) $ECHO_C" >&6 22735else 22736 cat >conftest.$ac_ext <<_ACEOF 22737/* confdefs.h. */ 22738_ACEOF 22739cat confdefs.h >>conftest.$ac_ext 22740cat >>conftest.$ac_ext <<_ACEOF 22741/* end confdefs.h. */ 22742/* Define pow to an innocuous variant, in case <limits.h> declares pow. 22743 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22744#define pow innocuous_pow 22745 22746/* System header to define __stub macros and hopefully few prototypes, 22747 which can conflict with char pow (); below. 22748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22749 <limits.h> exists even on freestanding compilers. */ 22750 22751#ifdef __STDC__ 22752# include <limits.h> 22753#else 22754# include <assert.h> 22755#endif 22756 22757#undef pow 22758 22759/* Override any gcc2 internal prototype to avoid an error. */ 22760#ifdef __cplusplus 22761extern "C" 22762{ 22763#endif 22764/* We use char because int might match the return type of a gcc2 22765 builtin and then its argument prototype would still apply. */ 22766char pow (); 22767/* The GNU C library defines this for functions which it implements 22768 to always fail with ENOSYS. Some functions are actually named 22769 something starting with __ and the normal name is an alias. */ 22770#if defined (__stub_pow) || defined (__stub___pow) 22771choke me 22772#else 22773char (*f) () = pow; 22774#endif 22775#ifdef __cplusplus 22776} 22777#endif 22778 22779int 22780main () 22781{ 22782return f != pow; 22783 ; 22784 return 0; 22785} 22786_ACEOF 22787rm -f conftest.$ac_objext conftest$ac_exeext 22788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22789 (eval $ac_link) 2>conftest.er1 22790 ac_status=$? 22791 grep -v '^ *+' conftest.er1 >conftest.err 22792 rm -f conftest.er1 22793 cat conftest.err >&5 22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22795 (exit $ac_status); } && 22796 { ac_try='test -z "$ac_c_werror_flag" 22797 || test ! -s conftest.err' 22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22799 (eval $ac_try) 2>&5 22800 ac_status=$? 22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22802 (exit $ac_status); }; } && 22803 { ac_try='test -s conftest$ac_exeext' 22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22805 (eval $ac_try) 2>&5 22806 ac_status=$? 22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22808 (exit $ac_status); }; }; then 22809 ac_cv_func_pow=yes 22810else 22811 echo "$as_me: failed program was:" >&5 22812sed 's/^/| /' conftest.$ac_ext >&5 22813 22814ac_cv_func_pow=no 22815fi 22816rm -f conftest.err conftest.$ac_objext \ 22817 conftest$ac_exeext conftest.$ac_ext 22818fi 22819echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 22820echo "${ECHO_T}$ac_cv_func_pow" >&6 22821 22822if test $ac_cv_func_pow = no; then 22823 echo "$as_me:$LINENO: checking for pow in -lm" >&5 22824echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 22825if test "${ac_cv_lib_m_pow+set}" = set; then 22826 echo $ECHO_N "(cached) $ECHO_C" >&6 22827else 22828 ac_check_lib_save_LIBS=$LIBS 22829LIBS="-lm $LIBS" 22830cat >conftest.$ac_ext <<_ACEOF 22831/* confdefs.h. */ 22832_ACEOF 22833cat confdefs.h >>conftest.$ac_ext 22834cat >>conftest.$ac_ext <<_ACEOF 22835/* end confdefs.h. */ 22836 22837/* Override any gcc2 internal prototype to avoid an error. */ 22838#ifdef __cplusplus 22839extern "C" 22840#endif 22841/* We use char because int might match the return type of a gcc2 22842 builtin and then its argument prototype would still apply. */ 22843char pow (); 22844int 22845main () 22846{ 22847pow (); 22848 ; 22849 return 0; 22850} 22851_ACEOF 22852rm -f conftest.$ac_objext conftest$ac_exeext 22853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22854 (eval $ac_link) 2>conftest.er1 22855 ac_status=$? 22856 grep -v '^ *+' conftest.er1 >conftest.err 22857 rm -f conftest.er1 22858 cat conftest.err >&5 22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22860 (exit $ac_status); } && 22861 { ac_try='test -z "$ac_c_werror_flag" 22862 || test ! -s conftest.err' 22863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22864 (eval $ac_try) 2>&5 22865 ac_status=$? 22866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22867 (exit $ac_status); }; } && 22868 { ac_try='test -s conftest$ac_exeext' 22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22870 (eval $ac_try) 2>&5 22871 ac_status=$? 22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22873 (exit $ac_status); }; }; then 22874 ac_cv_lib_m_pow=yes 22875else 22876 echo "$as_me: failed program was:" >&5 22877sed 's/^/| /' conftest.$ac_ext >&5 22878 22879ac_cv_lib_m_pow=no 22880fi 22881rm -f conftest.err conftest.$ac_objext \ 22882 conftest$ac_exeext conftest.$ac_ext 22883LIBS=$ac_check_lib_save_LIBS 22884fi 22885echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 22886echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 22887if test $ac_cv_lib_m_pow = yes; then 22888 POW_LIB=-lm 22889else 22890 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 22891echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 22892fi 22893 22894fi 22895 22896fi 22897 22898echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 22899echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 22900if test "${ac_cv_header_time+set}" = set; then 22901 echo $ECHO_N "(cached) $ECHO_C" >&6 22902else 22903 cat >conftest.$ac_ext <<_ACEOF 22904/* confdefs.h. */ 22905_ACEOF 22906cat confdefs.h >>conftest.$ac_ext 22907cat >>conftest.$ac_ext <<_ACEOF 22908/* end confdefs.h. */ 22909#include <sys/types.h> 22910#include <sys/time.h> 22911#include <time.h> 22912 22913int 22914main () 22915{ 22916if ((struct tm *) 0) 22917return 0; 22918 ; 22919 return 0; 22920} 22921_ACEOF 22922rm -f conftest.$ac_objext 22923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22924 (eval $ac_compile) 2>conftest.er1 22925 ac_status=$? 22926 grep -v '^ *+' conftest.er1 >conftest.err 22927 rm -f conftest.er1 22928 cat conftest.err >&5 22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22930 (exit $ac_status); } && 22931 { ac_try='test -z "$ac_c_werror_flag" 22932 || test ! -s conftest.err' 22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22934 (eval $ac_try) 2>&5 22935 ac_status=$? 22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22937 (exit $ac_status); }; } && 22938 { ac_try='test -s conftest.$ac_objext' 22939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22940 (eval $ac_try) 2>&5 22941 ac_status=$? 22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22943 (exit $ac_status); }; }; then 22944 ac_cv_header_time=yes 22945else 22946 echo "$as_me: failed program was:" >&5 22947sed 's/^/| /' conftest.$ac_ext >&5 22948 22949ac_cv_header_time=no 22950fi 22951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22952fi 22953echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 22954echo "${ECHO_T}$ac_cv_header_time" >&6 22955if test $ac_cv_header_time = yes; then 22956 22957cat >>confdefs.h <<\_ACEOF 22958#define TIME_WITH_SYS_TIME 1 22959_ACEOF 22960 22961fi 22962 22963echo "$as_me:$LINENO: checking for size_t" >&5 22964echo $ECHO_N "checking for size_t... $ECHO_C" >&6 22965if test "${ac_cv_type_size_t+set}" = set; then 22966 echo $ECHO_N "(cached) $ECHO_C" >&6 22967else 22968 cat >conftest.$ac_ext <<_ACEOF 22969/* confdefs.h. */ 22970_ACEOF 22971cat confdefs.h >>conftest.$ac_ext 22972cat >>conftest.$ac_ext <<_ACEOF 22973/* end confdefs.h. */ 22974$ac_includes_default 22975int 22976main () 22977{ 22978if ((size_t *) 0) 22979 return 0; 22980if (sizeof (size_t)) 22981 return 0; 22982 ; 22983 return 0; 22984} 22985_ACEOF 22986rm -f conftest.$ac_objext 22987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22988 (eval $ac_compile) 2>conftest.er1 22989 ac_status=$? 22990 grep -v '^ *+' conftest.er1 >conftest.err 22991 rm -f conftest.er1 22992 cat conftest.err >&5 22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22994 (exit $ac_status); } && 22995 { ac_try='test -z "$ac_c_werror_flag" 22996 || test ! -s conftest.err' 22997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22998 (eval $ac_try) 2>&5 22999 ac_status=$? 23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23001 (exit $ac_status); }; } && 23002 { ac_try='test -s conftest.$ac_objext' 23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23004 (eval $ac_try) 2>&5 23005 ac_status=$? 23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23007 (exit $ac_status); }; }; then 23008 ac_cv_type_size_t=yes 23009else 23010 echo "$as_me: failed program was:" >&5 23011sed 's/^/| /' conftest.$ac_ext >&5 23012 23013ac_cv_type_size_t=no 23014fi 23015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23016fi 23017echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 23018echo "${ECHO_T}$ac_cv_type_size_t" >&6 23019if test $ac_cv_type_size_t = yes; then 23020 : 23021else 23022 23023cat >>confdefs.h <<_ACEOF 23024#define size_t unsigned 23025_ACEOF 23026 23027fi 23028 23029 23030echo "$as_me:$LINENO: checking for library containing pow" >&5 23031echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6 23032if test "${ac_cv_search_pow+set}" = set; then 23033 echo $ECHO_N "(cached) $ECHO_C" >&6 23034else 23035 ac_func_search_save_LIBS=$LIBS 23036ac_cv_search_pow=no 23037cat >conftest.$ac_ext <<_ACEOF 23038/* confdefs.h. */ 23039_ACEOF 23040cat confdefs.h >>conftest.$ac_ext 23041cat >>conftest.$ac_ext <<_ACEOF 23042/* end confdefs.h. */ 23043 23044/* Override any gcc2 internal prototype to avoid an error. */ 23045#ifdef __cplusplus 23046extern "C" 23047#endif 23048/* We use char because int might match the return type of a gcc2 23049 builtin and then its argument prototype would still apply. */ 23050char pow (); 23051int 23052main () 23053{ 23054pow (); 23055 ; 23056 return 0; 23057} 23058_ACEOF 23059rm -f conftest.$ac_objext conftest$ac_exeext 23060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23061 (eval $ac_link) 2>conftest.er1 23062 ac_status=$? 23063 grep -v '^ *+' conftest.er1 >conftest.err 23064 rm -f conftest.er1 23065 cat conftest.err >&5 23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23067 (exit $ac_status); } && 23068 { ac_try='test -z "$ac_c_werror_flag" 23069 || test ! -s conftest.err' 23070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23071 (eval $ac_try) 2>&5 23072 ac_status=$? 23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23074 (exit $ac_status); }; } && 23075 { ac_try='test -s conftest$ac_exeext' 23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23077 (eval $ac_try) 2>&5 23078 ac_status=$? 23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23080 (exit $ac_status); }; }; then 23081 ac_cv_search_pow="none required" 23082else 23083 echo "$as_me: failed program was:" >&5 23084sed 's/^/| /' conftest.$ac_ext >&5 23085 23086fi 23087rm -f conftest.err conftest.$ac_objext \ 23088 conftest$ac_exeext conftest.$ac_ext 23089if test "$ac_cv_search_pow" = no; then 23090 for ac_lib in m; do 23091 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23092 cat >conftest.$ac_ext <<_ACEOF 23093/* confdefs.h. */ 23094_ACEOF 23095cat confdefs.h >>conftest.$ac_ext 23096cat >>conftest.$ac_ext <<_ACEOF 23097/* end confdefs.h. */ 23098 23099/* Override any gcc2 internal prototype to avoid an error. */ 23100#ifdef __cplusplus 23101extern "C" 23102#endif 23103/* We use char because int might match the return type of a gcc2 23104 builtin and then its argument prototype would still apply. */ 23105char pow (); 23106int 23107main () 23108{ 23109pow (); 23110 ; 23111 return 0; 23112} 23113_ACEOF 23114rm -f conftest.$ac_objext conftest$ac_exeext 23115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23116 (eval $ac_link) 2>conftest.er1 23117 ac_status=$? 23118 grep -v '^ *+' conftest.er1 >conftest.err 23119 rm -f conftest.er1 23120 cat conftest.err >&5 23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23122 (exit $ac_status); } && 23123 { ac_try='test -z "$ac_c_werror_flag" 23124 || test ! -s conftest.err' 23125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23126 (eval $ac_try) 2>&5 23127 ac_status=$? 23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23129 (exit $ac_status); }; } && 23130 { ac_try='test -s conftest$ac_exeext' 23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23132 (eval $ac_try) 2>&5 23133 ac_status=$? 23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23135 (exit $ac_status); }; }; then 23136 ac_cv_search_pow="-l$ac_lib" 23137break 23138else 23139 echo "$as_me: failed program was:" >&5 23140sed 's/^/| /' conftest.$ac_ext >&5 23141 23142fi 23143rm -f conftest.err conftest.$ac_objext \ 23144 conftest$ac_exeext conftest.$ac_ext 23145 done 23146fi 23147LIBS=$ac_func_search_save_LIBS 23148fi 23149echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5 23150echo "${ECHO_T}$ac_cv_search_pow" >&6 23151if test "$ac_cv_search_pow" != no; then 23152 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS" 23153 23154fi 23155 23156echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5 23157echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6 23158if test "${ac_cv_search_getaddrinfo+set}" = set; then 23159 echo $ECHO_N "(cached) $ECHO_C" >&6 23160else 23161 ac_func_search_save_LIBS=$LIBS 23162ac_cv_search_getaddrinfo=no 23163cat >conftest.$ac_ext <<_ACEOF 23164/* confdefs.h. */ 23165_ACEOF 23166cat confdefs.h >>conftest.$ac_ext 23167cat >>conftest.$ac_ext <<_ACEOF 23168/* end confdefs.h. */ 23169 23170/* Override any gcc2 internal prototype to avoid an error. */ 23171#ifdef __cplusplus 23172extern "C" 23173#endif 23174/* We use char because int might match the return type of a gcc2 23175 builtin and then its argument prototype would still apply. */ 23176char getaddrinfo (); 23177int 23178main () 23179{ 23180getaddrinfo (); 23181 ; 23182 return 0; 23183} 23184_ACEOF 23185rm -f conftest.$ac_objext conftest$ac_exeext 23186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23187 (eval $ac_link) 2>conftest.er1 23188 ac_status=$? 23189 grep -v '^ *+' conftest.er1 >conftest.err 23190 rm -f conftest.er1 23191 cat conftest.err >&5 23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23193 (exit $ac_status); } && 23194 { ac_try='test -z "$ac_c_werror_flag" 23195 || test ! -s conftest.err' 23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23197 (eval $ac_try) 2>&5 23198 ac_status=$? 23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23200 (exit $ac_status); }; } && 23201 { ac_try='test -s conftest$ac_exeext' 23202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23203 (eval $ac_try) 2>&5 23204 ac_status=$? 23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23206 (exit $ac_status); }; }; then 23207 ac_cv_search_getaddrinfo="none required" 23208else 23209 echo "$as_me: failed program was:" >&5 23210sed 's/^/| /' conftest.$ac_ext >&5 23211 23212fi 23213rm -f conftest.err conftest.$ac_objext \ 23214 conftest$ac_exeext conftest.$ac_ext 23215if test "$ac_cv_search_getaddrinfo" = no; then 23216 for ac_lib in nsl socket; do 23217 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23218 cat >conftest.$ac_ext <<_ACEOF 23219/* confdefs.h. */ 23220_ACEOF 23221cat confdefs.h >>conftest.$ac_ext 23222cat >>conftest.$ac_ext <<_ACEOF 23223/* end confdefs.h. */ 23224 23225/* Override any gcc2 internal prototype to avoid an error. */ 23226#ifdef __cplusplus 23227extern "C" 23228#endif 23229/* We use char because int might match the return type of a gcc2 23230 builtin and then its argument prototype would still apply. */ 23231char getaddrinfo (); 23232int 23233main () 23234{ 23235getaddrinfo (); 23236 ; 23237 return 0; 23238} 23239_ACEOF 23240rm -f conftest.$ac_objext conftest$ac_exeext 23241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23242 (eval $ac_link) 2>conftest.er1 23243 ac_status=$? 23244 grep -v '^ *+' conftest.er1 >conftest.err 23245 rm -f conftest.er1 23246 cat conftest.err >&5 23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23248 (exit $ac_status); } && 23249 { ac_try='test -z "$ac_c_werror_flag" 23250 || test ! -s conftest.err' 23251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23252 (eval $ac_try) 2>&5 23253 ac_status=$? 23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23255 (exit $ac_status); }; } && 23256 { ac_try='test -s conftest$ac_exeext' 23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23258 (eval $ac_try) 2>&5 23259 ac_status=$? 23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23261 (exit $ac_status); }; }; then 23262 ac_cv_search_getaddrinfo="-l$ac_lib" 23263break 23264else 23265 echo "$as_me: failed program was:" >&5 23266sed 's/^/| /' conftest.$ac_ext >&5 23267 23268fi 23269rm -f conftest.err conftest.$ac_objext \ 23270 conftest$ac_exeext conftest.$ac_ext 23271 done 23272fi 23273LIBS=$ac_func_search_save_LIBS 23274fi 23275echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5 23276echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6 23277if test "$ac_cv_search_getaddrinfo" != no; then 23278 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS" 23279 \ 23280 23281cat >>confdefs.h <<\_ACEOF 23282#define HAVE_GETADDRINFO 23283_ACEOF 23284 23285fi 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297for ac_func in vsnprintf floor ceil rint hstrerror \ 23298localtime_r strtol strtoll strtoul 23299do 23300as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23301echo "$as_me:$LINENO: checking for $ac_func" >&5 23302echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23303if eval "test \"\${$as_ac_var+set}\" = set"; then 23304 echo $ECHO_N "(cached) $ECHO_C" >&6 23305else 23306 cat >conftest.$ac_ext <<_ACEOF 23307/* confdefs.h. */ 23308_ACEOF 23309cat confdefs.h >>conftest.$ac_ext 23310cat >>conftest.$ac_ext <<_ACEOF 23311/* end confdefs.h. */ 23312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23313 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23314#define $ac_func innocuous_$ac_func 23315 23316/* System header to define __stub macros and hopefully few prototypes, 23317 which can conflict with char $ac_func (); below. 23318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23319 <limits.h> exists even on freestanding compilers. */ 23320 23321#ifdef __STDC__ 23322# include <limits.h> 23323#else 23324# include <assert.h> 23325#endif 23326 23327#undef $ac_func 23328 23329/* Override any gcc2 internal prototype to avoid an error. */ 23330#ifdef __cplusplus 23331extern "C" 23332{ 23333#endif 23334/* We use char because int might match the return type of a gcc2 23335 builtin and then its argument prototype would still apply. */ 23336char $ac_func (); 23337/* The GNU C library defines this for functions which it implements 23338 to always fail with ENOSYS. Some functions are actually named 23339 something starting with __ and the normal name is an alias. */ 23340#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 23341choke me 23342#else 23343char (*f) () = $ac_func; 23344#endif 23345#ifdef __cplusplus 23346} 23347#endif 23348 23349int 23350main () 23351{ 23352return f != $ac_func; 23353 ; 23354 return 0; 23355} 23356_ACEOF 23357rm -f conftest.$ac_objext conftest$ac_exeext 23358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23359 (eval $ac_link) 2>conftest.er1 23360 ac_status=$? 23361 grep -v '^ *+' conftest.er1 >conftest.err 23362 rm -f conftest.er1 23363 cat conftest.err >&5 23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23365 (exit $ac_status); } && 23366 { ac_try='test -z "$ac_c_werror_flag" 23367 || test ! -s conftest.err' 23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23369 (eval $ac_try) 2>&5 23370 ac_status=$? 23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23372 (exit $ac_status); }; } && 23373 { ac_try='test -s conftest$ac_exeext' 23374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23375 (eval $ac_try) 2>&5 23376 ac_status=$? 23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23378 (exit $ac_status); }; }; then 23379 eval "$as_ac_var=yes" 23380else 23381 echo "$as_me: failed program was:" >&5 23382sed 's/^/| /' conftest.$ac_ext >&5 23383 23384eval "$as_ac_var=no" 23385fi 23386rm -f conftest.err conftest.$ac_objext \ 23387 conftest$ac_exeext conftest.$ac_ext 23388fi 23389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 23390echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 23391if test `eval echo '${'$as_ac_var'}'` = yes; then 23392 cat >>confdefs.h <<_ACEOF 23393#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 23394_ACEOF 23395 23396fi 23397done 23398 23399 23400 ac_config_files="$ac_config_files Makefile" 23401cat >confcache <<\_ACEOF 23402# This file is a shell script that caches the results of configure 23403# tests run on this system so they can be shared between configure 23404# scripts and configure runs, see configure's option --config-cache. 23405# It is not useful on other systems. If it contains results you don't 23406# want to keep, you may remove or edit it. 23407# 23408# config.status only pays attention to the cache file if you give it 23409# the --recheck option to rerun configure. 23410# 23411# `ac_cv_env_foo' variables (set or unset) will be overridden when 23412# loading this file, other *unset* `ac_cv_foo' will be assigned the 23413# following values. 23414 23415_ACEOF 23416 23417# The following way of writing the cache mishandles newlines in values, 23418# but we know of no workaround that is simple, portable, and efficient. 23419# So, don't put newlines in cache variables' values. 23420# Ultrix sh set writes to stderr and can't be redirected directly, 23421# and sets the high bit in the cache file unless we assign to the vars. 23422{ 23423 (set) 2>&1 | 23424 case `(ac_space=' '; set | grep ac_space) 2>&1` in 23425 *ac_space=\ *) 23426 # `set' does not quote correctly, so add quotes (double-quote 23427 # substitution turns \\\\ into \\, and sed turns \\ into \). 23428 sed -n \ 23429 "s/'/'\\\\''/g; 23430 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23431 ;; 23432 *) 23433 # `set' quotes correctly as required by POSIX, so do not add quotes. 23434 sed -n \ 23435 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 23436 ;; 23437 esac; 23438} | 23439 sed ' 23440 t clear 23441 : clear 23442 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23443 t end 23444 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23445 : end' >>confcache 23446if diff $cache_file confcache >/dev/null 2>&1; then :; else 23447 if test -w $cache_file; then 23448 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 23449 cat confcache >$cache_file 23450 else 23451 echo "not updating unwritable cache $cache_file" 23452 fi 23453fi 23454rm -f confcache 23455 23456test "x$prefix" = xNONE && prefix=$ac_default_prefix 23457# Let make expand exec_prefix. 23458test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23459 23460# VPATH may cause trouble with some makes, so we remove $(srcdir), 23461# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23462# trailing colons and then remove the whole line if VPATH becomes empty 23463# (actually we leave an empty line to preserve line numbers). 23464if test "x$srcdir" = x.; then 23465 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23466s/:*\$(srcdir):*/:/; 23467s/:*\${srcdir}:*/:/; 23468s/:*@srcdir@:*/:/; 23469s/^\([^=]*=[ ]*\):*/\1/; 23470s/:*$//; 23471s/^[^=]*=[ ]*$//; 23472}' 23473fi 23474 23475DEFS=-DHAVE_CONFIG_H 23476 23477ac_libobjs= 23478ac_ltlibobjs= 23479for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23480 # 1. Remove the extension, and $U if already installed. 23481 ac_i=`echo "$ac_i" | 23482 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 23483 # 2. Add them. 23484 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 23485 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 23486done 23487LIBOBJS=$ac_libobjs 23488 23489LTLIBOBJS=$ac_ltlibobjs 23490 23491 23492if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23493 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23494Usually this means the macro was only invoked conditionally." >&5 23495echo "$as_me: error: conditional \"AMDEP\" was never defined. 23496Usually this means the macro was only invoked conditionally." >&2;} 23497 { (exit 1); exit 1; }; } 23498fi 23499if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23500 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23501Usually this means the macro was only invoked conditionally." >&5 23502echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23503Usually this means the macro was only invoked conditionally." >&2;} 23504 { (exit 1); exit 1; }; } 23505fi 23506if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23507 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23508Usually this means the macro was only invoked conditionally." >&5 23509echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23510Usually this means the macro was only invoked conditionally." >&2;} 23511 { (exit 1); exit 1; }; } 23512fi 23513if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23514 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23515Usually this means the macro was only invoked conditionally." >&5 23516echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23517Usually this means the macro was only invoked conditionally." >&2;} 23518 { (exit 1); exit 1; }; } 23519fi 23520if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23521 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23522Usually this means the macro was only invoked conditionally." >&5 23523echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23524Usually this means the macro was only invoked conditionally." >&2;} 23525 { (exit 1); exit 1; }; } 23526fi 23527 23528: ${CONFIG_STATUS=./config.status} 23529ac_clean_files_save=$ac_clean_files 23530ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23531{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23532echo "$as_me: creating $CONFIG_STATUS" >&6;} 23533cat >$CONFIG_STATUS <<_ACEOF 23534#! $SHELL 23535# Generated by $as_me. 23536# Run this file to recreate the current configuration. 23537# Compiler output produced by configure, useful for debugging 23538# configure, is in config.log if it exists. 23539 23540debug=false 23541ac_cs_recheck=false 23542ac_cs_silent=false 23543SHELL=\${CONFIG_SHELL-$SHELL} 23544_ACEOF 23545 23546cat >>$CONFIG_STATUS <<\_ACEOF 23547## --------------------- ## 23548## M4sh Initialization. ## 23549## --------------------- ## 23550 23551# Be Bourne compatible 23552if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23553 emulate sh 23554 NULLCMD=: 23555 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23556 # is contrary to our usage. Disable this feature. 23557 alias -g '${1+"$@"}'='"$@"' 23558elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23559 set -o posix 23560fi 23561DUALCASE=1; export DUALCASE # for MKS sh 23562 23563# Support unset when possible. 23564if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23565 as_unset=unset 23566else 23567 as_unset=false 23568fi 23569 23570 23571# Work around bugs in pre-3.0 UWIN ksh. 23572$as_unset ENV MAIL MAILPATH 23573PS1='$ ' 23574PS2='> ' 23575PS4='+ ' 23576 23577# NLS nuisances. 23578for as_var in \ 23579 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23580 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23581 LC_TELEPHONE LC_TIME 23582do 23583 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23584 eval $as_var=C; export $as_var 23585 else 23586 $as_unset $as_var 23587 fi 23588done 23589 23590# Required to use basename. 23591if expr a : '\(a\)' >/dev/null 2>&1; then 23592 as_expr=expr 23593else 23594 as_expr=false 23595fi 23596 23597if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23598 as_basename=basename 23599else 23600 as_basename=false 23601fi 23602 23603 23604# Name of the executable. 23605as_me=`$as_basename "$0" || 23606$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23607 X"$0" : 'X\(//\)$' \| \ 23608 X"$0" : 'X\(/\)$' \| \ 23609 . : '\(.\)' 2>/dev/null || 23610echo X/"$0" | 23611 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23612 /^X\/\(\/\/\)$/{ s//\1/; q; } 23613 /^X\/\(\/\).*/{ s//\1/; q; } 23614 s/.*/./; q'` 23615 23616 23617# PATH needs CR, and LINENO needs CR and PATH. 23618# Avoid depending upon Character Ranges. 23619as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23620as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23621as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23622as_cr_digits='0123456789' 23623as_cr_alnum=$as_cr_Letters$as_cr_digits 23624 23625# The user is always right. 23626if test "${PATH_SEPARATOR+set}" != set; then 23627 echo "#! /bin/sh" >conf$$.sh 23628 echo "exit 0" >>conf$$.sh 23629 chmod +x conf$$.sh 23630 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23631 PATH_SEPARATOR=';' 23632 else 23633 PATH_SEPARATOR=: 23634 fi 23635 rm -f conf$$.sh 23636fi 23637 23638 23639 as_lineno_1=$LINENO 23640 as_lineno_2=$LINENO 23641 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23642 test "x$as_lineno_1" != "x$as_lineno_2" && 23643 test "x$as_lineno_3" = "x$as_lineno_2" || { 23644 # Find who we are. Look in the path if we contain no path at all 23645 # relative or not. 23646 case $0 in 23647 *[\\/]* ) as_myself=$0 ;; 23648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23649for as_dir in $PATH 23650do 23651 IFS=$as_save_IFS 23652 test -z "$as_dir" && as_dir=. 23653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23654done 23655 23656 ;; 23657 esac 23658 # We did not find ourselves, most probably we were run as `sh COMMAND' 23659 # in which case we are not to be found in the path. 23660 if test "x$as_myself" = x; then 23661 as_myself=$0 23662 fi 23663 if test ! -f "$as_myself"; then 23664 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23665echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23666 { (exit 1); exit 1; }; } 23667 fi 23668 case $CONFIG_SHELL in 23669 '') 23670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23671for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23672do 23673 IFS=$as_save_IFS 23674 test -z "$as_dir" && as_dir=. 23675 for as_base in sh bash ksh sh5; do 23676 case $as_dir in 23677 /*) 23678 if ("$as_dir/$as_base" -c ' 23679 as_lineno_1=$LINENO 23680 as_lineno_2=$LINENO 23681 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23682 test "x$as_lineno_1" != "x$as_lineno_2" && 23683 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23684 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23685 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23686 CONFIG_SHELL=$as_dir/$as_base 23687 export CONFIG_SHELL 23688 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23689 fi;; 23690 esac 23691 done 23692done 23693;; 23694 esac 23695 23696 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23697 # uniformly replaced by the line number. The first 'sed' inserts a 23698 # line-number line before each line; the second 'sed' does the real 23699 # work. The second script uses 'N' to pair each line-number line 23700 # with the numbered line, and appends trailing '-' during 23701 # substitution so that $LINENO is not a special case at line end. 23702 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23703 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23704 sed '=' <$as_myself | 23705 sed ' 23706 N 23707 s,$,-, 23708 : loop 23709 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23710 t loop 23711 s,-$,, 23712 s,^['$as_cr_digits']*\n,, 23713 ' >$as_me.lineno && 23714 chmod +x $as_me.lineno || 23715 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23716echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23717 { (exit 1); exit 1; }; } 23718 23719 # Don't try to exec as it changes $[0], causing all sort of problems 23720 # (the dirname of $[0] is not the place where we might find the 23721 # original and so on. Autoconf is especially sensible to this). 23722 . ./$as_me.lineno 23723 # Exit status is that of the last command. 23724 exit 23725} 23726 23727 23728case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23729 *c*,-n*) ECHO_N= ECHO_C=' 23730' ECHO_T=' ' ;; 23731 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23732 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23733esac 23734 23735if expr a : '\(a\)' >/dev/null 2>&1; then 23736 as_expr=expr 23737else 23738 as_expr=false 23739fi 23740 23741rm -f conf$$ conf$$.exe conf$$.file 23742echo >conf$$.file 23743if ln -s conf$$.file conf$$ 2>/dev/null; then 23744 # We could just check for DJGPP; but this test a) works b) is more generic 23745 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23746 if test -f conf$$.exe; then 23747 # Don't use ln at all; we don't have any links 23748 as_ln_s='cp -p' 23749 else 23750 as_ln_s='ln -s' 23751 fi 23752elif ln conf$$.file conf$$ 2>/dev/null; then 23753 as_ln_s=ln 23754else 23755 as_ln_s='cp -p' 23756fi 23757rm -f conf$$ conf$$.exe conf$$.file 23758 23759if mkdir -p . 2>/dev/null; then 23760 as_mkdir_p=: 23761else 23762 test -d ./-p && rmdir ./-p 23763 as_mkdir_p=false 23764fi 23765 23766as_executable_p="test -f" 23767 23768# Sed expression to map a string onto a valid CPP name. 23769as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23770 23771# Sed expression to map a string onto a valid variable name. 23772as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23773 23774 23775# IFS 23776# We need space, tab and new line, in precisely that order. 23777as_nl=' 23778' 23779IFS=" $as_nl" 23780 23781# CDPATH. 23782$as_unset CDPATH 23783 23784exec 6>&1 23785 23786# Open the log real soon, to keep \$[0] and so on meaningful, and to 23787# report actual input values of CONFIG_FILES etc. instead of their 23788# values after options handling. Logging --version etc. is OK. 23789exec 5>>config.log 23790{ 23791 echo 23792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23793## Running $as_me. ## 23794_ASBOX 23795} >&5 23796cat >&5 <<_CSEOF 23797 23798This file was extended by libpqtypes $as_me 1.5.1, which was 23799generated by GNU Autoconf 2.59. Invocation command line was 23800 23801 CONFIG_FILES = $CONFIG_FILES 23802 CONFIG_HEADERS = $CONFIG_HEADERS 23803 CONFIG_LINKS = $CONFIG_LINKS 23804 CONFIG_COMMANDS = $CONFIG_COMMANDS 23805 $ $0 $@ 23806 23807_CSEOF 23808echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23809echo >&5 23810_ACEOF 23811 23812# Files that config.status was made for. 23813if test -n "$ac_config_files"; then 23814 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23815fi 23816 23817if test -n "$ac_config_headers"; then 23818 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23819fi 23820 23821if test -n "$ac_config_links"; then 23822 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23823fi 23824 23825if test -n "$ac_config_commands"; then 23826 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23827fi 23828 23829cat >>$CONFIG_STATUS <<\_ACEOF 23830 23831ac_cs_usage="\ 23832\`$as_me' instantiates files from templates according to the 23833current configuration. 23834 23835Usage: $0 [OPTIONS] [FILE]... 23836 23837 -h, --help print this help, then exit 23838 -V, --version print version number, then exit 23839 -q, --quiet do not print progress messages 23840 -d, --debug don't remove temporary files 23841 --recheck update $as_me by reconfiguring in the same conditions 23842 --file=FILE[:TEMPLATE] 23843 instantiate the configuration file FILE 23844 --header=FILE[:TEMPLATE] 23845 instantiate the configuration header FILE 23846 23847Configuration files: 23848$config_files 23849 23850Configuration headers: 23851$config_headers 23852 23853Configuration commands: 23854$config_commands 23855 23856Report bugs to <bug-autoconf@gnu.org>." 23857_ACEOF 23858 23859cat >>$CONFIG_STATUS <<_ACEOF 23860ac_cs_version="\\ 23861libpqtypes config.status 1.5.1 23862configured by $0, generated by GNU Autoconf 2.59, 23863 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23864 23865Copyright (C) 2003 Free Software Foundation, Inc. 23866This config.status script is free software; the Free Software Foundation 23867gives unlimited permission to copy, distribute and modify it." 23868srcdir=$srcdir 23869INSTALL="$INSTALL" 23870_ACEOF 23871 23872cat >>$CONFIG_STATUS <<\_ACEOF 23873# If no file are specified by the user, then we need to provide default 23874# value. By we need to know if files were specified by the user. 23875ac_need_defaults=: 23876while test $# != 0 23877do 23878 case $1 in 23879 --*=*) 23880 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23881 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23882 ac_shift=: 23883 ;; 23884 -*) 23885 ac_option=$1 23886 ac_optarg=$2 23887 ac_shift=shift 23888 ;; 23889 *) # This is not an option, so the user has probably given explicit 23890 # arguments. 23891 ac_option=$1 23892 ac_need_defaults=false;; 23893 esac 23894 23895 case $ac_option in 23896 # Handling of the options. 23897_ACEOF 23898cat >>$CONFIG_STATUS <<\_ACEOF 23899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23900 ac_cs_recheck=: ;; 23901 --version | --vers* | -V ) 23902 echo "$ac_cs_version"; exit 0 ;; 23903 --he | --h) 23904 # Conflict between --help and --header 23905 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23906Try \`$0 --help' for more information." >&5 23907echo "$as_me: error: ambiguous option: $1 23908Try \`$0 --help' for more information." >&2;} 23909 { (exit 1); exit 1; }; };; 23910 --help | --hel | -h ) 23911 echo "$ac_cs_usage"; exit 0 ;; 23912 --debug | --d* | -d ) 23913 debug=: ;; 23914 --file | --fil | --fi | --f ) 23915 $ac_shift 23916 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23917 ac_need_defaults=false;; 23918 --header | --heade | --head | --hea ) 23919 $ac_shift 23920 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23921 ac_need_defaults=false;; 23922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23923 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23924 ac_cs_silent=: ;; 23925 23926 # This is an error. 23927 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23928Try \`$0 --help' for more information." >&5 23929echo "$as_me: error: unrecognized option: $1 23930Try \`$0 --help' for more information." >&2;} 23931 { (exit 1); exit 1; }; } ;; 23932 23933 *) ac_config_targets="$ac_config_targets $1" ;; 23934 23935 esac 23936 shift 23937done 23938 23939ac_configure_extra_args= 23940 23941if $ac_cs_silent; then 23942 exec 6>/dev/null 23943 ac_configure_extra_args="$ac_configure_extra_args --silent" 23944fi 23945 23946_ACEOF 23947cat >>$CONFIG_STATUS <<_ACEOF 23948if \$ac_cs_recheck; then 23949 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23950 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23951fi 23952 23953_ACEOF 23954 23955cat >>$CONFIG_STATUS <<_ACEOF 23956# 23957# INIT-COMMANDS section. 23958# 23959 23960AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23961 23962_ACEOF 23963 23964 23965 23966cat >>$CONFIG_STATUS <<\_ACEOF 23967for ac_config_target in $ac_config_targets 23968do 23969 case "$ac_config_target" in 23970 # Handling of arguments. 23971 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23972 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23973 "src/pqt_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/pqt_config.h:src/pqt_config.h.in" ;; 23974 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23975echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23976 { (exit 1); exit 1; }; };; 23977 esac 23978done 23979 23980# If the user did not use the arguments to specify the items to instantiate, 23981# then the envvar interface is used. Set only those that are not. 23982# We use the long form for the default assignment because of an extremely 23983# bizarre bug on SunOS 4.1.3. 23984if $ac_need_defaults; then 23985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23986 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23987 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23988fi 23989 23990# Have a temporary directory for convenience. Make it in the build tree 23991# simply because there is no reason to put it here, and in addition, 23992# creating and moving files from /tmp can sometimes cause problems. 23993# Create a temporary directory, and hook for its removal unless debugging. 23994$debug || 23995{ 23996 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23997 trap '{ (exit 1); exit 1; }' 1 2 13 15 23998} 23999 24000# Create a (secure) tmp directory for tmp files. 24001 24002{ 24003 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 24004 test -n "$tmp" && test -d "$tmp" 24005} || 24006{ 24007 tmp=./confstat$$-$RANDOM 24008 (umask 077 && mkdir $tmp) 24009} || 24010{ 24011 echo "$me: cannot create a temporary directory in ." >&2 24012 { (exit 1); exit 1; } 24013} 24014 24015_ACEOF 24016 24017cat >>$CONFIG_STATUS <<_ACEOF 24018 24019# 24020# CONFIG_FILES section. 24021# 24022 24023# No need to generate the scripts if there are no CONFIG_FILES. 24024# This happens for instance when ./config.status config.h 24025if test -n "\$CONFIG_FILES"; then 24026 # Protect against being on the right side of a sed subst in config.status. 24027 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 24028 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 24029s,@SHELL@,$SHELL,;t t 24030s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 24031s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 24032s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 24033s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 24034s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 24035s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 24036s,@exec_prefix@,$exec_prefix,;t t 24037s,@prefix@,$prefix,;t t 24038s,@program_transform_name@,$program_transform_name,;t t 24039s,@bindir@,$bindir,;t t 24040s,@sbindir@,$sbindir,;t t 24041s,@libexecdir@,$libexecdir,;t t 24042s,@datadir@,$datadir,;t t 24043s,@sysconfdir@,$sysconfdir,;t t 24044s,@sharedstatedir@,$sharedstatedir,;t t 24045s,@localstatedir@,$localstatedir,;t t 24046s,@libdir@,$libdir,;t t 24047s,@includedir@,$includedir,;t t 24048s,@oldincludedir@,$oldincludedir,;t t 24049s,@infodir@,$infodir,;t t 24050s,@mandir@,$mandir,;t t 24051s,@build_alias@,$build_alias,;t t 24052s,@host_alias@,$host_alias,;t t 24053s,@target_alias@,$target_alias,;t t 24054s,@DEFS@,$DEFS,;t t 24055s,@ECHO_C@,$ECHO_C,;t t 24056s,@ECHO_N@,$ECHO_N,;t t 24057s,@ECHO_T@,$ECHO_T,;t t 24058s,@LIBS@,$LIBS,;t t 24059s,@build@,$build,;t t 24060s,@build_cpu@,$build_cpu,;t t 24061s,@build_vendor@,$build_vendor,;t t 24062s,@build_os@,$build_os,;t t 24063s,@host@,$host,;t t 24064s,@host_cpu@,$host_cpu,;t t 24065s,@host_vendor@,$host_vendor,;t t 24066s,@host_os@,$host_os,;t t 24067s,@target@,$target,;t t 24068s,@target_cpu@,$target_cpu,;t t 24069s,@target_vendor@,$target_vendor,;t t 24070s,@target_os@,$target_os,;t t 24071s,@SET_MAKE@,$SET_MAKE,;t t 24072s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 24073s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 24074s,@INSTALL_DATA@,$INSTALL_DATA,;t t 24075s,@CYGPATH_W@,$CYGPATH_W,;t t 24076s,@PACKAGE@,$PACKAGE,;t t 24077s,@VERSION@,$VERSION,;t t 24078s,@ACLOCAL@,$ACLOCAL,;t t 24079s,@AUTOCONF@,$AUTOCONF,;t t 24080s,@AUTOMAKE@,$AUTOMAKE,;t t 24081s,@AUTOHEADER@,$AUTOHEADER,;t t 24082s,@MAKEINFO@,$MAKEINFO,;t t 24083s,@install_sh@,$install_sh,;t t 24084s,@STRIP@,$STRIP,;t t 24085s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 24086s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 24087s,@mkdir_p@,$mkdir_p,;t t 24088s,@AWK@,$AWK,;t t 24089s,@am__leading_dot@,$am__leading_dot,;t t 24090s,@AMTAR@,$AMTAR,;t t 24091s,@am__tar@,$am__tar,;t t 24092s,@am__untar@,$am__untar,;t t 24093s,@LIBPQTYPES_SO_VERSION@,$LIBPQTYPES_SO_VERSION,;t t 24094s,@CC@,$CC,;t t 24095s,@CFLAGS@,$CFLAGS,;t t 24096s,@LDFLAGS@,$LDFLAGS,;t t 24097s,@CPPFLAGS@,$CPPFLAGS,;t t 24098s,@ac_ct_CC@,$ac_ct_CC,;t t 24099s,@EXEEXT@,$EXEEXT,;t t 24100s,@OBJEXT@,$OBJEXT,;t t 24101s,@DEPDIR@,$DEPDIR,;t t 24102s,@am__include@,$am__include,;t t 24103s,@am__quote@,$am__quote,;t t 24104s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 24105s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 24106s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 24107s,@CCDEPMODE@,$CCDEPMODE,;t t 24108s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 24109s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 24110s,@SED@,$SED,;t t 24111s,@EGREP@,$EGREP,;t t 24112s,@LN_S@,$LN_S,;t t 24113s,@ECHO@,$ECHO,;t t 24114s,@AR@,$AR,;t t 24115s,@ac_ct_AR@,$ac_ct_AR,;t t 24116s,@RANLIB@,$RANLIB,;t t 24117s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 24118s,@CPP@,$CPP,;t t 24119s,@CXX@,$CXX,;t t 24120s,@CXXFLAGS@,$CXXFLAGS,;t t 24121s,@ac_ct_CXX@,$ac_ct_CXX,;t t 24122s,@CXXDEPMODE@,$CXXDEPMODE,;t t 24123s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 24124s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 24125s,@CXXCPP@,$CXXCPP,;t t 24126s,@F77@,$F77,;t t 24127s,@FFLAGS@,$FFLAGS,;t t 24128s,@ac_ct_F77@,$ac_ct_F77,;t t 24129s,@LIBTOOL@,$LIBTOOL,;t t 24130s,@LIBOBJS@,$LIBOBJS,;t t 24131s,@POW_LIB@,$POW_LIB,;t t 24132s,@LTLIBOBJS@,$LTLIBOBJS,;t t 24133CEOF 24134 24135_ACEOF 24136 24137 cat >>$CONFIG_STATUS <<\_ACEOF 24138 # Split the substitutions into bite-sized pieces for seds with 24139 # small command number limits, like on Digital OSF/1 and HP-UX. 24140 ac_max_sed_lines=48 24141 ac_sed_frag=1 # Number of current file. 24142 ac_beg=1 # First line for current file. 24143 ac_end=$ac_max_sed_lines # Line after last line for current file. 24144 ac_more_lines=: 24145 ac_sed_cmds= 24146 while $ac_more_lines; do 24147 if test $ac_beg -gt 1; then 24148 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24149 else 24150 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24151 fi 24152 if test ! -s $tmp/subs.frag; then 24153 ac_more_lines=false 24154 else 24155 # The purpose of the label and of the branching condition is to 24156 # speed up the sed processing (if there are no `@' at all, there 24157 # is no need to browse any of the substitutions). 24158 # These are the two extra sed commands mentioned above. 24159 (echo ':t 24160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 24161 if test -z "$ac_sed_cmds"; then 24162 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 24163 else 24164 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 24165 fi 24166 ac_sed_frag=`expr $ac_sed_frag + 1` 24167 ac_beg=$ac_end 24168 ac_end=`expr $ac_end + $ac_max_sed_lines` 24169 fi 24170 done 24171 if test -z "$ac_sed_cmds"; then 24172 ac_sed_cmds=cat 24173 fi 24174fi # test -n "$CONFIG_FILES" 24175 24176_ACEOF 24177cat >>$CONFIG_STATUS <<\_ACEOF 24178for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 24179 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24180 case $ac_file in 24181 - | *:- | *:-:* ) # input from stdin 24182 cat >$tmp/stdin 24183 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24185 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24186 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24187 * ) ac_file_in=$ac_file.in ;; 24188 esac 24189 24190 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 24191 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24192$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24193 X"$ac_file" : 'X\(//\)[^/]' \| \ 24194 X"$ac_file" : 'X\(//\)$' \| \ 24195 X"$ac_file" : 'X\(/\)' \| \ 24196 . : '\(.\)' 2>/dev/null || 24197echo X"$ac_file" | 24198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24199 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24200 /^X\(\/\/\)$/{ s//\1/; q; } 24201 /^X\(\/\).*/{ s//\1/; q; } 24202 s/.*/./; q'` 24203 { if $as_mkdir_p; then 24204 mkdir -p "$ac_dir" 24205 else 24206 as_dir="$ac_dir" 24207 as_dirs= 24208 while test ! -d "$as_dir"; do 24209 as_dirs="$as_dir $as_dirs" 24210 as_dir=`(dirname "$as_dir") 2>/dev/null || 24211$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24212 X"$as_dir" : 'X\(//\)[^/]' \| \ 24213 X"$as_dir" : 'X\(//\)$' \| \ 24214 X"$as_dir" : 'X\(/\)' \| \ 24215 . : '\(.\)' 2>/dev/null || 24216echo X"$as_dir" | 24217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24218 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24219 /^X\(\/\/\)$/{ s//\1/; q; } 24220 /^X\(\/\).*/{ s//\1/; q; } 24221 s/.*/./; q'` 24222 done 24223 test ! -n "$as_dirs" || mkdir $as_dirs 24224 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24225echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24226 { (exit 1); exit 1; }; }; } 24227 24228 ac_builddir=. 24229 24230if test "$ac_dir" != .; then 24231 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24232 # A "../" for each directory in $ac_dir_suffix. 24233 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24234else 24235 ac_dir_suffix= ac_top_builddir= 24236fi 24237 24238case $srcdir in 24239 .) # No --srcdir option. We are building in place. 24240 ac_srcdir=. 24241 if test -z "$ac_top_builddir"; then 24242 ac_top_srcdir=. 24243 else 24244 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24245 fi ;; 24246 [\\/]* | ?:[\\/]* ) # Absolute path. 24247 ac_srcdir=$srcdir$ac_dir_suffix; 24248 ac_top_srcdir=$srcdir ;; 24249 *) # Relative path. 24250 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24251 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24252esac 24253 24254# Do not use `cd foo && pwd` to compute absolute paths, because 24255# the directories may not exist. 24256case `pwd` in 24257.) ac_abs_builddir="$ac_dir";; 24258*) 24259 case "$ac_dir" in 24260 .) ac_abs_builddir=`pwd`;; 24261 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24262 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24263 esac;; 24264esac 24265case $ac_abs_builddir in 24266.) ac_abs_top_builddir=${ac_top_builddir}.;; 24267*) 24268 case ${ac_top_builddir}. in 24269 .) ac_abs_top_builddir=$ac_abs_builddir;; 24270 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24271 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24272 esac;; 24273esac 24274case $ac_abs_builddir in 24275.) ac_abs_srcdir=$ac_srcdir;; 24276*) 24277 case $ac_srcdir in 24278 .) ac_abs_srcdir=$ac_abs_builddir;; 24279 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24280 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24281 esac;; 24282esac 24283case $ac_abs_builddir in 24284.) ac_abs_top_srcdir=$ac_top_srcdir;; 24285*) 24286 case $ac_top_srcdir in 24287 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24288 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24289 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24290 esac;; 24291esac 24292 24293 24294 case $INSTALL in 24295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24296 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 24297 esac 24298 24299 if test x"$ac_file" != x-; then 24300 { echo "$as_me:$LINENO: creating $ac_file" >&5 24301echo "$as_me: creating $ac_file" >&6;} 24302 rm -f "$ac_file" 24303 fi 24304 # Let's still pretend it is `configure' which instantiates (i.e., don't 24305 # use $as_me), people would be surprised to read: 24306 # /* config.h. Generated by config.status. */ 24307 if test x"$ac_file" = x-; then 24308 configure_input= 24309 else 24310 configure_input="$ac_file. " 24311 fi 24312 configure_input=$configure_input"Generated from `echo $ac_file_in | 24313 sed 's,.*/,,'` by configure." 24314 24315 # First look for the input files in the build tree, otherwise in the 24316 # src tree. 24317 ac_file_inputs=`IFS=: 24318 for f in $ac_file_in; do 24319 case $f in 24320 -) echo $tmp/stdin ;; 24321 [\\/$]*) 24322 # Absolute (can't be DOS-style, as IFS=:) 24323 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24324echo "$as_me: error: cannot find input file: $f" >&2;} 24325 { (exit 1); exit 1; }; } 24326 echo "$f";; 24327 *) # Relative 24328 if test -f "$f"; then 24329 # Build tree 24330 echo "$f" 24331 elif test -f "$srcdir/$f"; then 24332 # Source tree 24333 echo "$srcdir/$f" 24334 else 24335 # /dev/null tree 24336 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24337echo "$as_me: error: cannot find input file: $f" >&2;} 24338 { (exit 1); exit 1; }; } 24339 fi;; 24340 esac 24341 done` || { (exit 1); exit 1; } 24342_ACEOF 24343cat >>$CONFIG_STATUS <<_ACEOF 24344 sed "$ac_vpsub 24345$extrasub 24346_ACEOF 24347cat >>$CONFIG_STATUS <<\_ACEOF 24348:t 24349/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24350s,@configure_input@,$configure_input,;t t 24351s,@srcdir@,$ac_srcdir,;t t 24352s,@abs_srcdir@,$ac_abs_srcdir,;t t 24353s,@top_srcdir@,$ac_top_srcdir,;t t 24354s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 24355s,@builddir@,$ac_builddir,;t t 24356s,@abs_builddir@,$ac_abs_builddir,;t t 24357s,@top_builddir@,$ac_top_builddir,;t t 24358s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 24359s,@INSTALL@,$ac_INSTALL,;t t 24360" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 24361 rm -f $tmp/stdin 24362 if test x"$ac_file" != x-; then 24363 mv $tmp/out $ac_file 24364 else 24365 cat $tmp/out 24366 rm -f $tmp/out 24367 fi 24368 24369done 24370_ACEOF 24371cat >>$CONFIG_STATUS <<\_ACEOF 24372 24373# 24374# CONFIG_HEADER section. 24375# 24376 24377# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 24378# NAME is the cpp macro being defined and VALUE is the value it is being given. 24379# 24380# ac_d sets the value in "#define NAME VALUE" lines. 24381ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 24382ac_dB='[ ].*$,\1#\2' 24383ac_dC=' ' 24384ac_dD=',;t' 24385# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 24386ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 24387ac_uB='$,\1#\2define\3' 24388ac_uC=' ' 24389ac_uD=',;t' 24390 24391for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 24392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24393 case $ac_file in 24394 - | *:- | *:-:* ) # input from stdin 24395 cat >$tmp/stdin 24396 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24397 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24398 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24399 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24400 * ) ac_file_in=$ac_file.in ;; 24401 esac 24402 24403 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 24404echo "$as_me: creating $ac_file" >&6;} 24405 24406 # First look for the input files in the build tree, otherwise in the 24407 # src tree. 24408 ac_file_inputs=`IFS=: 24409 for f in $ac_file_in; do 24410 case $f in 24411 -) echo $tmp/stdin ;; 24412 [\\/$]*) 24413 # Absolute (can't be DOS-style, as IFS=:) 24414 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24415echo "$as_me: error: cannot find input file: $f" >&2;} 24416 { (exit 1); exit 1; }; } 24417 # Do quote $f, to prevent DOS paths from being IFS'd. 24418 echo "$f";; 24419 *) # Relative 24420 if test -f "$f"; then 24421 # Build tree 24422 echo "$f" 24423 elif test -f "$srcdir/$f"; then 24424 # Source tree 24425 echo "$srcdir/$f" 24426 else 24427 # /dev/null tree 24428 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24429echo "$as_me: error: cannot find input file: $f" >&2;} 24430 { (exit 1); exit 1; }; } 24431 fi;; 24432 esac 24433 done` || { (exit 1); exit 1; } 24434 # Remove the trailing spaces. 24435 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 24436 24437_ACEOF 24438 24439# Transform confdefs.h into two sed scripts, `conftest.defines' and 24440# `conftest.undefs', that substitutes the proper values into 24441# config.h.in to produce config.h. The first handles `#define' 24442# templates, and the second `#undef' templates. 24443# And first: Protect against being on the right side of a sed subst in 24444# config.status. Protect against being in an unquoted here document 24445# in config.status. 24446rm -f conftest.defines conftest.undefs 24447# Using a here document instead of a string reduces the quoting nightmare. 24448# Putting comments in sed scripts is not portable. 24449# 24450# `end' is used to avoid that the second main sed command (meant for 24451# 0-ary CPP macros) applies to n-ary macro definitions. 24452# See the Autoconf documentation for `clear'. 24453cat >confdef2sed.sed <<\_ACEOF 24454s/[\\&,]/\\&/g 24455s,[\\$`],\\&,g 24456t clear 24457: clear 24458s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 24459t end 24460s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 24461: end 24462_ACEOF 24463# If some macros were called several times there might be several times 24464# the same #defines, which is useless. Nevertheless, we may not want to 24465# sort them, since we want the *last* AC-DEFINE to be honored. 24466uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 24467sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 24468rm -f confdef2sed.sed 24469 24470# This sed command replaces #undef with comments. This is necessary, for 24471# example, in the case of _POSIX_SOURCE, which is predefined and required 24472# on some systems where configure will not decide to define it. 24473cat >>conftest.undefs <<\_ACEOF 24474s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 24475_ACEOF 24476 24477# Break up conftest.defines because some shells have a limit on the size 24478# of here documents, and old seds have small limits too (100 cmds). 24479echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 24480echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 24481echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 24482echo ' :' >>$CONFIG_STATUS 24483rm -f conftest.tail 24484while grep . conftest.defines >/dev/null 24485do 24486 # Write a limited-size here document to $tmp/defines.sed. 24487 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 24488 # Speed up: don't consider the non `#define' lines. 24489 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 24490 # Work around the forget-to-reset-the-flag bug. 24491 echo 't clr' >>$CONFIG_STATUS 24492 echo ': clr' >>$CONFIG_STATUS 24493 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 24494 echo 'CEOF 24495 sed -f $tmp/defines.sed $tmp/in >$tmp/out 24496 rm -f $tmp/in 24497 mv $tmp/out $tmp/in 24498' >>$CONFIG_STATUS 24499 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 24500 rm -f conftest.defines 24501 mv conftest.tail conftest.defines 24502done 24503rm -f conftest.defines 24504echo ' fi # grep' >>$CONFIG_STATUS 24505echo >>$CONFIG_STATUS 24506 24507# Break up conftest.undefs because some shells have a limit on the size 24508# of here documents, and old seds have small limits too (100 cmds). 24509echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 24510rm -f conftest.tail 24511while grep . conftest.undefs >/dev/null 24512do 24513 # Write a limited-size here document to $tmp/undefs.sed. 24514 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 24515 # Speed up: don't consider the non `#undef' 24516 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 24517 # Work around the forget-to-reset-the-flag bug. 24518 echo 't clr' >>$CONFIG_STATUS 24519 echo ': clr' >>$CONFIG_STATUS 24520 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 24521 echo 'CEOF 24522 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 24523 rm -f $tmp/in 24524 mv $tmp/out $tmp/in 24525' >>$CONFIG_STATUS 24526 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 24527 rm -f conftest.undefs 24528 mv conftest.tail conftest.undefs 24529done 24530rm -f conftest.undefs 24531 24532cat >>$CONFIG_STATUS <<\_ACEOF 24533 # Let's still pretend it is `configure' which instantiates (i.e., don't 24534 # use $as_me), people would be surprised to read: 24535 # /* config.h. Generated by config.status. */ 24536 if test x"$ac_file" = x-; then 24537 echo "/* Generated by configure. */" >$tmp/config.h 24538 else 24539 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 24540 fi 24541 cat $tmp/in >>$tmp/config.h 24542 rm -f $tmp/in 24543 if test x"$ac_file" != x-; then 24544 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 24545 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24546echo "$as_me: $ac_file is unchanged" >&6;} 24547 else 24548 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24549$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24550 X"$ac_file" : 'X\(//\)[^/]' \| \ 24551 X"$ac_file" : 'X\(//\)$' \| \ 24552 X"$ac_file" : 'X\(/\)' \| \ 24553 . : '\(.\)' 2>/dev/null || 24554echo X"$ac_file" | 24555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24556 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24557 /^X\(\/\/\)$/{ s//\1/; q; } 24558 /^X\(\/\).*/{ s//\1/; q; } 24559 s/.*/./; q'` 24560 { if $as_mkdir_p; then 24561 mkdir -p "$ac_dir" 24562 else 24563 as_dir="$ac_dir" 24564 as_dirs= 24565 while test ! -d "$as_dir"; do 24566 as_dirs="$as_dir $as_dirs" 24567 as_dir=`(dirname "$as_dir") 2>/dev/null || 24568$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24569 X"$as_dir" : 'X\(//\)[^/]' \| \ 24570 X"$as_dir" : 'X\(//\)$' \| \ 24571 X"$as_dir" : 'X\(/\)' \| \ 24572 . : '\(.\)' 2>/dev/null || 24573echo X"$as_dir" | 24574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24575 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24576 /^X\(\/\/\)$/{ s//\1/; q; } 24577 /^X\(\/\).*/{ s//\1/; q; } 24578 s/.*/./; q'` 24579 done 24580 test ! -n "$as_dirs" || mkdir $as_dirs 24581 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24582echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24583 { (exit 1); exit 1; }; }; } 24584 24585 rm -f $ac_file 24586 mv $tmp/config.h $ac_file 24587 fi 24588 else 24589 cat $tmp/config.h 24590 rm -f $tmp/config.h 24591 fi 24592# Compute $ac_file's index in $config_headers. 24593_am_stamp_count=1 24594for _am_header in $config_headers :; do 24595 case $_am_header in 24596 $ac_file | $ac_file:* ) 24597 break ;; 24598 * ) 24599 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24600 esac 24601done 24602echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 24603$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24604 X$ac_file : 'X\(//\)[^/]' \| \ 24605 X$ac_file : 'X\(//\)$' \| \ 24606 X$ac_file : 'X\(/\)' \| \ 24607 . : '\(.\)' 2>/dev/null || 24608echo X$ac_file | 24609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24610 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24611 /^X\(\/\/\)$/{ s//\1/; q; } 24612 /^X\(\/\).*/{ s//\1/; q; } 24613 s/.*/./; q'`/stamp-h$_am_stamp_count 24614done 24615_ACEOF 24616cat >>$CONFIG_STATUS <<\_ACEOF 24617 24618# 24619# CONFIG_COMMANDS section. 24620# 24621for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 24622 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 24623 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 24624 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 24625$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24626 X"$ac_dest" : 'X\(//\)[^/]' \| \ 24627 X"$ac_dest" : 'X\(//\)$' \| \ 24628 X"$ac_dest" : 'X\(/\)' \| \ 24629 . : '\(.\)' 2>/dev/null || 24630echo X"$ac_dest" | 24631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24632 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24633 /^X\(\/\/\)$/{ s//\1/; q; } 24634 /^X\(\/\).*/{ s//\1/; q; } 24635 s/.*/./; q'` 24636 { if $as_mkdir_p; then 24637 mkdir -p "$ac_dir" 24638 else 24639 as_dir="$ac_dir" 24640 as_dirs= 24641 while test ! -d "$as_dir"; do 24642 as_dirs="$as_dir $as_dirs" 24643 as_dir=`(dirname "$as_dir") 2>/dev/null || 24644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24645 X"$as_dir" : 'X\(//\)[^/]' \| \ 24646 X"$as_dir" : 'X\(//\)$' \| \ 24647 X"$as_dir" : 'X\(/\)' \| \ 24648 . : '\(.\)' 2>/dev/null || 24649echo X"$as_dir" | 24650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24651 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24652 /^X\(\/\/\)$/{ s//\1/; q; } 24653 /^X\(\/\).*/{ s//\1/; q; } 24654 s/.*/./; q'` 24655 done 24656 test ! -n "$as_dirs" || mkdir $as_dirs 24657 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24658echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24659 { (exit 1); exit 1; }; }; } 24660 24661 ac_builddir=. 24662 24663if test "$ac_dir" != .; then 24664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24665 # A "../" for each directory in $ac_dir_suffix. 24666 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24667else 24668 ac_dir_suffix= ac_top_builddir= 24669fi 24670 24671case $srcdir in 24672 .) # No --srcdir option. We are building in place. 24673 ac_srcdir=. 24674 if test -z "$ac_top_builddir"; then 24675 ac_top_srcdir=. 24676 else 24677 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24678 fi ;; 24679 [\\/]* | ?:[\\/]* ) # Absolute path. 24680 ac_srcdir=$srcdir$ac_dir_suffix; 24681 ac_top_srcdir=$srcdir ;; 24682 *) # Relative path. 24683 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24684 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24685esac 24686 24687# Do not use `cd foo && pwd` to compute absolute paths, because 24688# the directories may not exist. 24689case `pwd` in 24690.) ac_abs_builddir="$ac_dir";; 24691*) 24692 case "$ac_dir" in 24693 .) ac_abs_builddir=`pwd`;; 24694 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24695 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24696 esac;; 24697esac 24698case $ac_abs_builddir in 24699.) ac_abs_top_builddir=${ac_top_builddir}.;; 24700*) 24701 case ${ac_top_builddir}. in 24702 .) ac_abs_top_builddir=$ac_abs_builddir;; 24703 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24704 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24705 esac;; 24706esac 24707case $ac_abs_builddir in 24708.) ac_abs_srcdir=$ac_srcdir;; 24709*) 24710 case $ac_srcdir in 24711 .) ac_abs_srcdir=$ac_abs_builddir;; 24712 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24713 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24714 esac;; 24715esac 24716case $ac_abs_builddir in 24717.) ac_abs_top_srcdir=$ac_top_srcdir;; 24718*) 24719 case $ac_top_srcdir in 24720 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24721 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24722 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24723 esac;; 24724esac 24725 24726 24727 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 24728echo "$as_me: executing $ac_dest commands" >&6;} 24729 case $ac_dest in 24730 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24731 # Strip MF so we end up with the name of the file. 24732 mf=`echo "$mf" | sed -e 's/:.*$//'` 24733 # Check whether this is an Automake generated Makefile or not. 24734 # We used to match only the files named `Makefile.in', but 24735 # some people rename them; so instead we look at the file content. 24736 # Grep'ing the first line is not enough: some people post-process 24737 # each Makefile.in and add a new line on top of each file to say so. 24738 # So let's grep whole file. 24739 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24740 dirpart=`(dirname "$mf") 2>/dev/null || 24741$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24742 X"$mf" : 'X\(//\)[^/]' \| \ 24743 X"$mf" : 'X\(//\)$' \| \ 24744 X"$mf" : 'X\(/\)' \| \ 24745 . : '\(.\)' 2>/dev/null || 24746echo X"$mf" | 24747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24748 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24749 /^X\(\/\/\)$/{ s//\1/; q; } 24750 /^X\(\/\).*/{ s//\1/; q; } 24751 s/.*/./; q'` 24752 else 24753 continue 24754 fi 24755 # Extract the definition of DEPDIR, am__include, and am__quote 24756 # from the Makefile without running `make'. 24757 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24758 test -z "$DEPDIR" && continue 24759 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24760 test -z "am__include" && continue 24761 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24762 # When using ansi2knr, U may be empty or an underscore; expand it 24763 U=`sed -n 's/^U = //p' < "$mf"` 24764 # Find all dependency output files, they are included files with 24765 # $(DEPDIR) in their names. We invoke sed twice because it is the 24766 # simplest approach to changing $(DEPDIR) to its actual value in the 24767 # expansion. 24768 for file in `sed -n " 24769 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24770 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24771 # Make sure the directory exists. 24772 test -f "$dirpart/$file" && continue 24773 fdir=`(dirname "$file") 2>/dev/null || 24774$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24775 X"$file" : 'X\(//\)[^/]' \| \ 24776 X"$file" : 'X\(//\)$' \| \ 24777 X"$file" : 'X\(/\)' \| \ 24778 . : '\(.\)' 2>/dev/null || 24779echo X"$file" | 24780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24781 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24782 /^X\(\/\/\)$/{ s//\1/; q; } 24783 /^X\(\/\).*/{ s//\1/; q; } 24784 s/.*/./; q'` 24785 { if $as_mkdir_p; then 24786 mkdir -p $dirpart/$fdir 24787 else 24788 as_dir=$dirpart/$fdir 24789 as_dirs= 24790 while test ! -d "$as_dir"; do 24791 as_dirs="$as_dir $as_dirs" 24792 as_dir=`(dirname "$as_dir") 2>/dev/null || 24793$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24794 X"$as_dir" : 'X\(//\)[^/]' \| \ 24795 X"$as_dir" : 'X\(//\)$' \| \ 24796 X"$as_dir" : 'X\(/\)' \| \ 24797 . : '\(.\)' 2>/dev/null || 24798echo X"$as_dir" | 24799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24800 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24801 /^X\(\/\/\)$/{ s//\1/; q; } 24802 /^X\(\/\).*/{ s//\1/; q; } 24803 s/.*/./; q'` 24804 done 24805 test ! -n "$as_dirs" || mkdir $as_dirs 24806 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 24807echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24808 { (exit 1); exit 1; }; }; } 24809 24810 # echo "creating $dirpart/$file" 24811 echo '# dummy' > "$dirpart/$file" 24812 done 24813done 24814 ;; 24815 esac 24816done 24817_ACEOF 24818 24819cat >>$CONFIG_STATUS <<\_ACEOF 24820 24821{ (exit 0); exit 0; } 24822_ACEOF 24823chmod +x $CONFIG_STATUS 24824ac_clean_files=$ac_clean_files_save 24825 24826 24827# configure is writing to config.log, and then calls config.status. 24828# config.status does its own redirection, appending to config.log. 24829# Unfortunately, on DOS this fails, as config.log is still kept open 24830# by configure, so config.status won't be able to write to it; its 24831# output is simply discarded. So we exec the FD to /dev/null, 24832# effectively closing config.log, so it can be properly (re)opened and 24833# appended to by config.status. When coming back to configure, we 24834# need to make the FD available again. 24835if test "$no_create" != yes; then 24836 ac_cs_success=: 24837 ac_config_status_args= 24838 test "$silent" = yes && 24839 ac_config_status_args="$ac_config_status_args --quiet" 24840 exec 5>/dev/null 24841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24842 exec 5>>config.log 24843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24844 # would make configure fail if this is the last instruction. 24845 $ac_cs_success || { (exit 1); exit 1; } 24846fi 24847 24848 24849 24850 24851