1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for dbf 0.9.0. 4# 5# Report bugs to <http://dbf.berlios.de>. 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='dbf' 425PACKAGE_TARNAME='dbf' 426PACKAGE_VERSION='0.9.0' 427PACKAGE_STRING='dbf 0.9.0' 428PACKAGE_BUGREPORT='http://dbf.berlios.de' 429 430ac_unique_file="src/dbf.c" 431# Factoring default headers for most tests. 432ac_includes_default="\ 433#include <stdio.h> 434#if HAVE_SYS_TYPES_H 435# include <sys/types.h> 436#endif 437#if HAVE_SYS_STAT_H 438# include <sys/stat.h> 439#endif 440#if STDC_HEADERS 441# include <stdlib.h> 442# include <stddef.h> 443#else 444# if HAVE_STDLIB_H 445# include <stdlib.h> 446# endif 447#endif 448#if HAVE_STRING_H 449# if !STDC_HEADERS && HAVE_MEMORY_H 450# include <memory.h> 451# endif 452# include <string.h> 453#endif 454#if HAVE_STRINGS_H 455# include <strings.h> 456#endif 457#if HAVE_INTTYPES_H 458# include <inttypes.h> 459#else 460# if HAVE_STDINT_H 461# include <stdint.h> 462# endif 463#endif 464#if HAVE_UNISTD_H 465# include <unistd.h> 466#endif" 467 468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT 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 LN_S CPP EGREP USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS GETTEXT_PACKAGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS DOC_TO_MAN DBFLIB_LIBDIR DBFLIB_LIBS DBFLIB_INCLUDEDIR DOCDIR 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 dbf 0.9.0 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_ACEOF 1019fi 1020 1021if test -n "$ac_init_help"; then 1022 case $ac_init_help in 1023 short | recursive ) echo "Configuration of dbf 0.9.0:";; 1024 esac 1025 cat <<\_ACEOF 1026 1027Optional Features: 1028 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1029 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1030 --enable-maintainer-mode enable make rules and dependencies not useful 1031 (and sometimes confusing) to the casual installer 1032 --disable-dependency-tracking speeds up one-time build 1033 --enable-dependency-tracking do not reject slow dependency extractors 1034 --enable-shared[=PKGS] 1035 build shared libraries [default=yes] 1036 --enable-static[=PKGS] 1037 build static libraries [default=yes] 1038 --enable-fast-install[=PKGS] 1039 optimize for fast installation [default=yes] 1040 --disable-libtool-lock avoid locking (might break parallel builds) 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 --with-dbflib=DIR Path to dbf library (/usr) 1051 1052Some influential environment variables: 1053 CC C compiler command 1054 CFLAGS C compiler flags 1055 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1056 nonstandard directory <lib dir> 1057 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1058 headers in a nonstandard directory <include dir> 1059 CPP C preprocessor 1060 CXX C++ compiler command 1061 CXXFLAGS C++ compiler flags 1062 CXXCPP C++ preprocessor 1063 F77 Fortran 77 compiler command 1064 FFLAGS Fortran 77 compiler flags 1065 1066Use these variables to override the choices made by `configure' or to help 1067it to find libraries and programs with nonstandard names/locations. 1068 1069Report bugs to <http://dbf.berlios.de>. 1070_ACEOF 1071fi 1072 1073if test "$ac_init_help" = "recursive"; then 1074 # If there are subdirs, report their specific --help. 1075 ac_popdir=`pwd` 1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1077 test -d $ac_dir || continue 1078 ac_builddir=. 1079 1080if test "$ac_dir" != .; then 1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1082 # A "../" for each directory in $ac_dir_suffix. 1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1084else 1085 ac_dir_suffix= ac_top_builddir= 1086fi 1087 1088case $srcdir in 1089 .) # No --srcdir option. We are building in place. 1090 ac_srcdir=. 1091 if test -z "$ac_top_builddir"; then 1092 ac_top_srcdir=. 1093 else 1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1095 fi ;; 1096 [\\/]* | ?:[\\/]* ) # Absolute path. 1097 ac_srcdir=$srcdir$ac_dir_suffix; 1098 ac_top_srcdir=$srcdir ;; 1099 *) # Relative path. 1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1101 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1102esac 1103 1104# Do not use `cd foo && pwd` to compute absolute paths, because 1105# the directories may not exist. 1106case `pwd` in 1107.) ac_abs_builddir="$ac_dir";; 1108*) 1109 case "$ac_dir" in 1110 .) ac_abs_builddir=`pwd`;; 1111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1112 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1113 esac;; 1114esac 1115case $ac_abs_builddir in 1116.) ac_abs_top_builddir=${ac_top_builddir}.;; 1117*) 1118 case ${ac_top_builddir}. in 1119 .) ac_abs_top_builddir=$ac_abs_builddir;; 1120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1122 esac;; 1123esac 1124case $ac_abs_builddir in 1125.) ac_abs_srcdir=$ac_srcdir;; 1126*) 1127 case $ac_srcdir in 1128 .) ac_abs_srcdir=$ac_abs_builddir;; 1129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1131 esac;; 1132esac 1133case $ac_abs_builddir in 1134.) ac_abs_top_srcdir=$ac_top_srcdir;; 1135*) 1136 case $ac_top_srcdir in 1137 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1140 esac;; 1141esac 1142 1143 cd $ac_dir 1144 # Check for guested configure; otherwise get Cygnus style configure. 1145 if test -f $ac_srcdir/configure.gnu; then 1146 echo 1147 $SHELL $ac_srcdir/configure.gnu --help=recursive 1148 elif test -f $ac_srcdir/configure; then 1149 echo 1150 $SHELL $ac_srcdir/configure --help=recursive 1151 elif test -f $ac_srcdir/configure.ac || 1152 test -f $ac_srcdir/configure.in; then 1153 echo 1154 $ac_configure --help 1155 else 1156 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1157 fi 1158 cd $ac_popdir 1159 done 1160fi 1161 1162test -n "$ac_init_help" && exit 0 1163if $ac_init_version; then 1164 cat <<\_ACEOF 1165dbf configure 0.9.0 1166generated by GNU Autoconf 2.59 1167 1168Copyright (C) 2003 Free Software Foundation, Inc. 1169This configure script is free software; the Free Software Foundation 1170gives unlimited permission to copy, distribute and modify it. 1171_ACEOF 1172 exit 0 1173fi 1174exec 5>config.log 1175cat >&5 <<_ACEOF 1176This file contains any messages produced by compilers while 1177running configure, to aid debugging if configure makes a mistake. 1178 1179It was created by dbf $as_me 0.9.0, which was 1180generated by GNU Autoconf 2.59. Invocation command line was 1181 1182 $ $0 $@ 1183 1184_ACEOF 1185{ 1186cat <<_ASUNAME 1187## --------- ## 1188## Platform. ## 1189## --------- ## 1190 1191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1192uname -m = `(uname -m) 2>/dev/null || echo unknown` 1193uname -r = `(uname -r) 2>/dev/null || echo unknown` 1194uname -s = `(uname -s) 2>/dev/null || echo unknown` 1195uname -v = `(uname -v) 2>/dev/null || echo unknown` 1196 1197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1198/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1199 1200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1203hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1207 1208_ASUNAME 1209 1210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1211for as_dir in $PATH 1212do 1213 IFS=$as_save_IFS 1214 test -z "$as_dir" && as_dir=. 1215 echo "PATH: $as_dir" 1216done 1217 1218} >&5 1219 1220cat >&5 <<_ACEOF 1221 1222 1223## ----------- ## 1224## Core tests. ## 1225## ----------- ## 1226 1227_ACEOF 1228 1229 1230# Keep a trace of the command line. 1231# Strip out --no-create and --no-recursion so they do not pile up. 1232# Strip out --silent because we don't want to record it for future runs. 1233# Also quote any args containing shell meta-characters. 1234# Make two passes to allow for proper duplicate-argument suppression. 1235ac_configure_args= 1236ac_configure_args0= 1237ac_configure_args1= 1238ac_sep= 1239ac_must_keep_next=false 1240for ac_pass in 1 2 1241do 1242 for ac_arg 1243 do 1244 case $ac_arg in 1245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1247 | -silent | --silent | --silen | --sile | --sil) 1248 continue ;; 1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1250 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1251 esac 1252 case $ac_pass in 1253 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1254 2) 1255 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1256 if test $ac_must_keep_next = true; then 1257 ac_must_keep_next=false # Got value, back to normal. 1258 else 1259 case $ac_arg in 1260 *=* | --config-cache | -C | -disable-* | --disable-* \ 1261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1263 | -with-* | --with-* | -without-* | --without-* | --x) 1264 case "$ac_configure_args0 " in 1265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1266 esac 1267 ;; 1268 -* ) ac_must_keep_next=true ;; 1269 esac 1270 fi 1271 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1272 # Get rid of the leading space. 1273 ac_sep=" " 1274 ;; 1275 esac 1276 done 1277done 1278$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1279$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1280 1281# When interrupted or exit'd, cleanup temporary files, and complete 1282# config.log. We remove comments because anyway the quotes in there 1283# would cause problems or look ugly. 1284# WARNING: Be sure not to use single quotes in there, as some shells, 1285# such as our DU 5.0 friend, will then `close' the trap. 1286trap 'exit_status=$? 1287 # Save into config.log some information that might help in debugging. 1288 { 1289 echo 1290 1291 cat <<\_ASBOX 1292## ---------------- ## 1293## Cache variables. ## 1294## ---------------- ## 1295_ASBOX 1296 echo 1297 # The following way of writing the cache mishandles newlines in values, 1298{ 1299 (set) 2>&1 | 1300 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1301 *ac_space=\ *) 1302 sed -n \ 1303 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1305 ;; 1306 *) 1307 sed -n \ 1308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1309 ;; 1310 esac; 1311} 1312 echo 1313 1314 cat <<\_ASBOX 1315## ----------------- ## 1316## Output variables. ## 1317## ----------------- ## 1318_ASBOX 1319 echo 1320 for ac_var in $ac_subst_vars 1321 do 1322 eval ac_val=$`echo $ac_var` 1323 echo "$ac_var='"'"'$ac_val'"'"'" 1324 done | sort 1325 echo 1326 1327 if test -n "$ac_subst_files"; then 1328 cat <<\_ASBOX 1329## ------------- ## 1330## Output files. ## 1331## ------------- ## 1332_ASBOX 1333 echo 1334 for ac_var in $ac_subst_files 1335 do 1336 eval ac_val=$`echo $ac_var` 1337 echo "$ac_var='"'"'$ac_val'"'"'" 1338 done | sort 1339 echo 1340 fi 1341 1342 if test -s confdefs.h; then 1343 cat <<\_ASBOX 1344## ----------- ## 1345## confdefs.h. ## 1346## ----------- ## 1347_ASBOX 1348 echo 1349 sed "/^$/d" confdefs.h | sort 1350 echo 1351 fi 1352 test "$ac_signal" != 0 && 1353 echo "$as_me: caught signal $ac_signal" 1354 echo "$as_me: exit $exit_status" 1355 } >&5 1356 rm -f core *.core && 1357 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1358 exit $exit_status 1359 ' 0 1360for ac_signal in 1 2 13 15; do 1361 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1362done 1363ac_signal=0 1364 1365# confdefs.h avoids OS command line length limits that DEFS can exceed. 1366rm -rf conftest* confdefs.h 1367# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1368echo >confdefs.h 1369 1370# Predefined preprocessor variables. 1371 1372cat >>confdefs.h <<_ACEOF 1373#define PACKAGE_NAME "$PACKAGE_NAME" 1374_ACEOF 1375 1376 1377cat >>confdefs.h <<_ACEOF 1378#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1379_ACEOF 1380 1381 1382cat >>confdefs.h <<_ACEOF 1383#define PACKAGE_VERSION "$PACKAGE_VERSION" 1384_ACEOF 1385 1386 1387cat >>confdefs.h <<_ACEOF 1388#define PACKAGE_STRING "$PACKAGE_STRING" 1389_ACEOF 1390 1391 1392cat >>confdefs.h <<_ACEOF 1393#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1394_ACEOF 1395 1396 1397# Let the site file select an alternate cache file if it wants to. 1398# Prefer explicitly selected file to automatically selected ones. 1399if test -z "$CONFIG_SITE"; then 1400 if test "x$prefix" != xNONE; then 1401 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1402 else 1403 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1404 fi 1405fi 1406for ac_site_file in $CONFIG_SITE; do 1407 if test -r "$ac_site_file"; then 1408 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1409echo "$as_me: loading site script $ac_site_file" >&6;} 1410 sed 's/^/| /' "$ac_site_file" >&5 1411 . "$ac_site_file" 1412 fi 1413done 1414 1415if test -r "$cache_file"; then 1416 # Some versions of bash will fail to source /dev/null (special 1417 # files actually), so we avoid doing that. 1418 if test -f "$cache_file"; then 1419 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1420echo "$as_me: loading cache $cache_file" >&6;} 1421 case $cache_file in 1422 [\\/]* | ?:[\\/]* ) . $cache_file;; 1423 *) . ./$cache_file;; 1424 esac 1425 fi 1426else 1427 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1428echo "$as_me: creating cache $cache_file" >&6;} 1429 >$cache_file 1430fi 1431 1432# Check that the precious variables saved in the cache have kept the same 1433# value. 1434ac_cache_corrupted=false 1435for ac_var in `(set) 2>&1 | 1436 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1437 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1438 eval ac_new_set=\$ac_env_${ac_var}_set 1439 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1440 eval ac_new_val="\$ac_env_${ac_var}_value" 1441 case $ac_old_set,$ac_new_set in 1442 set,) 1443 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1444echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1445 ac_cache_corrupted=: ;; 1446 ,set) 1447 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1448echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1449 ac_cache_corrupted=: ;; 1450 ,);; 1451 *) 1452 if test "x$ac_old_val" != "x$ac_new_val"; then 1453 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1454echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1455 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1456echo "$as_me: former value: $ac_old_val" >&2;} 1457 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1458echo "$as_me: current value: $ac_new_val" >&2;} 1459 ac_cache_corrupted=: 1460 fi;; 1461 esac 1462 # Pass precious variables to config.status. 1463 if test "$ac_new_set" = set; then 1464 case $ac_new_val in 1465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1466 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1467 *) ac_arg=$ac_var=$ac_new_val ;; 1468 esac 1469 case " $ac_configure_args " in 1470 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1471 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1472 esac 1473 fi 1474done 1475if $ac_cache_corrupted; then 1476 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1477echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1478 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1479echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1480 { (exit 1); exit 1; }; } 1481fi 1482 1483ac_ext=c 1484ac_cpp='$CPP $CPPFLAGS' 1485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1487ac_compiler_gnu=$ac_cv_c_compiler_gnu 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 1514 1515 1516am__api_version="1.9" 1517ac_aux_dir= 1518for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1519 if test -f $ac_dir/install-sh; then 1520 ac_aux_dir=$ac_dir 1521 ac_install_sh="$ac_aux_dir/install-sh -c" 1522 break 1523 elif test -f $ac_dir/install.sh; then 1524 ac_aux_dir=$ac_dir 1525 ac_install_sh="$ac_aux_dir/install.sh -c" 1526 break 1527 elif test -f $ac_dir/shtool; then 1528 ac_aux_dir=$ac_dir 1529 ac_install_sh="$ac_aux_dir/shtool install -c" 1530 break 1531 fi 1532done 1533if test -z "$ac_aux_dir"; then 1534 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1535echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1536 { (exit 1); exit 1; }; } 1537fi 1538ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1539ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1540ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1541 1542# Find a good install program. We prefer a C program (faster), 1543# so one script is as good as another. But avoid the broken or 1544# incompatible versions: 1545# SysV /etc/install, /usr/sbin/install 1546# SunOS /usr/etc/install 1547# IRIX /sbin/install 1548# AIX /bin/install 1549# AmigaOS /C/install, which installs bootblocks on floppy discs 1550# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1551# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1552# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1553# OS/2's system install, which has a completely different semantic 1554# ./install, which can be erroneously created by make from ./install.sh. 1555echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1556echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1557if test -z "$INSTALL"; then 1558if test "${ac_cv_path_install+set}" = set; then 1559 echo $ECHO_N "(cached) $ECHO_C" >&6 1560else 1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1562for as_dir in $PATH 1563do 1564 IFS=$as_save_IFS 1565 test -z "$as_dir" && as_dir=. 1566 # Account for people who put trailing slashes in PATH elements. 1567case $as_dir/ in 1568 ./ | .// | /cC/* | \ 1569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1571 /usr/ucb/* ) ;; 1572 *) 1573 # OSF1 and SCO ODT 3.0 have their own names for install. 1574 # Don't use installbsd from OSF since it installs stuff as root 1575 # by default. 1576 for ac_prog in ginstall scoinst install; do 1577 for ac_exec_ext in '' $ac_executable_extensions; do 1578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1579 if test $ac_prog = install && 1580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1581 # AIX install. It has an incompatible calling convention. 1582 : 1583 elif test $ac_prog = install && 1584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1585 # program-specific install script used by HP pwplus--don't use. 1586 : 1587 else 1588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1589 break 3 1590 fi 1591 fi 1592 done 1593 done 1594 ;; 1595esac 1596done 1597 1598 1599fi 1600 if test "${ac_cv_path_install+set}" = set; then 1601 INSTALL=$ac_cv_path_install 1602 else 1603 # As a last resort, use the slow shell script. We don't cache a 1604 # path for INSTALL within a source directory, because that will 1605 # break other packages using the cache if that directory is 1606 # removed, or if the path is relative. 1607 INSTALL=$ac_install_sh 1608 fi 1609fi 1610echo "$as_me:$LINENO: result: $INSTALL" >&5 1611echo "${ECHO_T}$INSTALL" >&6 1612 1613# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1614# It thinks the first close brace ends the variable substitution. 1615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1616 1617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1618 1619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1620 1621echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1622echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1623# Just in case 1624sleep 1 1625echo timestamp > conftest.file 1626# Do `set' in a subshell so we don't clobber the current shell's 1627# arguments. Must try -L first in case configure is actually a 1628# symlink; some systems play weird games with the mod time of symlinks 1629# (eg FreeBSD returns the mod time of the symlink's containing 1630# directory). 1631if ( 1632 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1633 if test "$*" = "X"; then 1634 # -L didn't work. 1635 set X `ls -t $srcdir/configure conftest.file` 1636 fi 1637 rm -f conftest.file 1638 if test "$*" != "X $srcdir/configure conftest.file" \ 1639 && test "$*" != "X conftest.file $srcdir/configure"; then 1640 1641 # If neither matched, then we have a broken ls. This can happen 1642 # if, for instance, CONFIG_SHELL is bash and it inherits a 1643 # broken ls alias from the environment. This has actually 1644 # happened. Such a system could not be considered "sane". 1645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1646alias in your environment" >&5 1647echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1648alias in your environment" >&2;} 1649 { (exit 1); exit 1; }; } 1650 fi 1651 1652 test "$2" = conftest.file 1653 ) 1654then 1655 # Ok. 1656 : 1657else 1658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1659Check your system clock" >&5 1660echo "$as_me: error: newly created file is older than distributed files! 1661Check your system clock" >&2;} 1662 { (exit 1); exit 1; }; } 1663fi 1664echo "$as_me:$LINENO: result: yes" >&5 1665echo "${ECHO_T}yes" >&6 1666test "$program_prefix" != NONE && 1667 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1668# Use a double $ so make ignores it. 1669test "$program_suffix" != NONE && 1670 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1671# Double any \ or $. echo might interpret backslashes. 1672# By default was `s,x,x', remove it if useless. 1673cat <<\_ACEOF >conftest.sed 1674s/[\\$]/&&/g;s/;s,x,x,$// 1675_ACEOF 1676program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1677rm conftest.sed 1678 1679# expand $ac_aux_dir to an absolute path 1680am_aux_dir=`cd $ac_aux_dir && pwd` 1681 1682test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1683# Use eval to expand $SHELL 1684if eval "$MISSING --run true"; then 1685 am_missing_run="$MISSING --run " 1686else 1687 am_missing_run= 1688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1689echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1690fi 1691 1692if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1693 # We used to keeping the `.' as first argument, in order to 1694 # allow $(mkdir_p) to be used without argument. As in 1695 # $(mkdir_p) $(somedir) 1696 # where $(somedir) is conditionally defined. However this is wrong 1697 # for two reasons: 1698 # 1. if the package is installed by a user who cannot write `.' 1699 # make install will fail, 1700 # 2. the above comment should most certainly read 1701 # $(mkdir_p) $(DESTDIR)$(somedir) 1702 # so it does not work when $(somedir) is undefined and 1703 # $(DESTDIR) is not. 1704 # To support the latter case, we have to write 1705 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1706 # so the `.' trick is pointless. 1707 mkdir_p='mkdir -p --' 1708else 1709 # On NextStep and OpenStep, the `mkdir' command does not 1710 # recognize any option. It will interpret all options as 1711 # directories to create, and then abort because `.' already 1712 # exists. 1713 for d in ./-p ./--version; 1714 do 1715 test -d $d && rmdir $d 1716 done 1717 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1718 if test -f "$ac_aux_dir/mkinstalldirs"; then 1719 mkdir_p='$(mkinstalldirs)' 1720 else 1721 mkdir_p='$(install_sh) -d' 1722 fi 1723fi 1724 1725for ac_prog in gawk mawk nawk awk 1726do 1727 # Extract the first word of "$ac_prog", so it can be a program name with args. 1728set dummy $ac_prog; ac_word=$2 1729echo "$as_me:$LINENO: checking for $ac_word" >&5 1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1731if test "${ac_cv_prog_AWK+set}" = set; then 1732 echo $ECHO_N "(cached) $ECHO_C" >&6 1733else 1734 if test -n "$AWK"; then 1735 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1736else 1737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1738for as_dir in $PATH 1739do 1740 IFS=$as_save_IFS 1741 test -z "$as_dir" && as_dir=. 1742 for ac_exec_ext in '' $ac_executable_extensions; do 1743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1744 ac_cv_prog_AWK="$ac_prog" 1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1746 break 2 1747 fi 1748done 1749done 1750 1751fi 1752fi 1753AWK=$ac_cv_prog_AWK 1754if test -n "$AWK"; then 1755 echo "$as_me:$LINENO: result: $AWK" >&5 1756echo "${ECHO_T}$AWK" >&6 1757else 1758 echo "$as_me:$LINENO: result: no" >&5 1759echo "${ECHO_T}no" >&6 1760fi 1761 1762 test -n "$AWK" && break 1763done 1764 1765echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1766echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1767set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1768if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1769 echo $ECHO_N "(cached) $ECHO_C" >&6 1770else 1771 cat >conftest.make <<\_ACEOF 1772all: 1773 @echo 'ac_maketemp="$(MAKE)"' 1774_ACEOF 1775# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1776eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1777if test -n "$ac_maketemp"; then 1778 eval ac_cv_prog_make_${ac_make}_set=yes 1779else 1780 eval ac_cv_prog_make_${ac_make}_set=no 1781fi 1782rm -f conftest.make 1783fi 1784if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1785 echo "$as_me:$LINENO: result: yes" >&5 1786echo "${ECHO_T}yes" >&6 1787 SET_MAKE= 1788else 1789 echo "$as_me:$LINENO: result: no" >&5 1790echo "${ECHO_T}no" >&6 1791 SET_MAKE="MAKE=${MAKE-make}" 1792fi 1793 1794rm -rf .tst 2>/dev/null 1795mkdir .tst 2>/dev/null 1796if test -d .tst; then 1797 am__leading_dot=. 1798else 1799 am__leading_dot=_ 1800fi 1801rmdir .tst 2>/dev/null 1802 1803# test to see if srcdir already configured 1804if test "`cd $srcdir && pwd`" != "`pwd`" && 1805 test -f $srcdir/config.status; then 1806 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1807echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1808 { (exit 1); exit 1; }; } 1809fi 1810 1811# test whether we have cygpath 1812if test -z "$CYGPATH_W"; then 1813 if (cygpath --version) >/dev/null 2>/dev/null; then 1814 CYGPATH_W='cygpath -w' 1815 else 1816 CYGPATH_W=echo 1817 fi 1818fi 1819 1820 1821# Define the identity of the package. 1822 PACKAGE=dbf 1823 VERSION=0.9.0 1824 1825 1826cat >>confdefs.h <<_ACEOF 1827#define PACKAGE "$PACKAGE" 1828_ACEOF 1829 1830 1831cat >>confdefs.h <<_ACEOF 1832#define VERSION "$VERSION" 1833_ACEOF 1834 1835# Some tools Automake needs. 1836 1837ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1838 1839 1840AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1841 1842 1843AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1844 1845 1846AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1847 1848 1849MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1850 1851install_sh=${install_sh-"$am_aux_dir/install-sh"} 1852 1853# Installed binaries are usually stripped using `strip' when the user 1854# run `make install-strip'. However `strip' might not be the right 1855# tool to use in cross-compilation environments, therefore Automake 1856# will honor the `STRIP' environment variable to overrule this program. 1857if test "$cross_compiling" != no; then 1858 if test -n "$ac_tool_prefix"; then 1859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1860set dummy ${ac_tool_prefix}strip; ac_word=$2 1861echo "$as_me:$LINENO: checking for $ac_word" >&5 1862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1863if test "${ac_cv_prog_STRIP+set}" = set; then 1864 echo $ECHO_N "(cached) $ECHO_C" >&6 1865else 1866 if test -n "$STRIP"; then 1867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1868else 1869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1870for as_dir in $PATH 1871do 1872 IFS=$as_save_IFS 1873 test -z "$as_dir" && as_dir=. 1874 for ac_exec_ext in '' $ac_executable_extensions; do 1875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1876 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1878 break 2 1879 fi 1880done 1881done 1882 1883fi 1884fi 1885STRIP=$ac_cv_prog_STRIP 1886if test -n "$STRIP"; then 1887 echo "$as_me:$LINENO: result: $STRIP" >&5 1888echo "${ECHO_T}$STRIP" >&6 1889else 1890 echo "$as_me:$LINENO: result: no" >&5 1891echo "${ECHO_T}no" >&6 1892fi 1893 1894fi 1895if test -z "$ac_cv_prog_STRIP"; then 1896 ac_ct_STRIP=$STRIP 1897 # Extract the first word of "strip", so it can be a program name with args. 1898set dummy strip; ac_word=$2 1899echo "$as_me:$LINENO: checking for $ac_word" >&5 1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1901if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1902 echo $ECHO_N "(cached) $ECHO_C" >&6 1903else 1904 if test -n "$ac_ct_STRIP"; then 1905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1906else 1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1908for as_dir in $PATH 1909do 1910 IFS=$as_save_IFS 1911 test -z "$as_dir" && as_dir=. 1912 for ac_exec_ext in '' $ac_executable_extensions; do 1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1914 ac_cv_prog_ac_ct_STRIP="strip" 1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1916 break 2 1917 fi 1918done 1919done 1920 1921 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1922fi 1923fi 1924ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1925if test -n "$ac_ct_STRIP"; then 1926 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1927echo "${ECHO_T}$ac_ct_STRIP" >&6 1928else 1929 echo "$as_me:$LINENO: result: no" >&5 1930echo "${ECHO_T}no" >&6 1931fi 1932 1933 STRIP=$ac_ct_STRIP 1934else 1935 STRIP="$ac_cv_prog_STRIP" 1936fi 1937 1938fi 1939INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1940 1941# We need awk for the "check" target. The system "awk" is bad on 1942# some platforms. 1943# Always define AMTAR for backward compatibility. 1944 1945AMTAR=${AMTAR-"${am_missing_run}tar"} 1946 1947am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1948 1949 1950 1951 1952 1953 1954echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1955echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1956 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1957if test "${enable_maintainer_mode+set}" = set; then 1958 enableval="$enable_maintainer_mode" 1959 USE_MAINTAINER_MODE=$enableval 1960else 1961 USE_MAINTAINER_MODE=no 1962fi; 1963 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1964echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1965 1966 1967if test $USE_MAINTAINER_MODE = yes; then 1968 MAINTAINER_MODE_TRUE= 1969 MAINTAINER_MODE_FALSE='#' 1970else 1971 MAINTAINER_MODE_TRUE='#' 1972 MAINTAINER_MODE_FALSE= 1973fi 1974 1975 MAINT=$MAINTAINER_MODE_TRUE 1976 1977 1978 ac_config_headers="$ac_config_headers config.h" 1979 1980 1981 1982if test -n ""; then 1983 echo "$as_me:$LINENO: checking for intltool >= " >&5 1984echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6 1985 1986 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'` 1987 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < ${ac_aux_dir}/intltool-update.in` 1988 1989 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in` 1990 1991 1992 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then 1993 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 1994echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6 1995 else 1996 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5 1997echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6 1998 exit 1 1999 fi 2000fi 2001 2002 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2003INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2004 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2005 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2006 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' 2007 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2008 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2009 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2010INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2011 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2012 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2013 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 2014 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2015 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2016 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2017 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2018 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038# Use the tools built into the package, not the ones that are installed. 2039 2040INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' 2041INTLTOOL_MERGE='$(top_builddir)/intltool-merge' 2042INTLTOOL_UPDATE='$(top_builddir)/intltool-update' 2043 2044 2045 2046 2047 2048# Extract the first word of "perl", so it can be a program name with args. 2049set dummy perl; ac_word=$2 2050echo "$as_me:$LINENO: checking for $ac_word" >&5 2051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2052if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then 2053 echo $ECHO_N "(cached) $ECHO_C" >&6 2054else 2055 case $INTLTOOL_PERL in 2056 [\\/]* | ?:[\\/]*) 2057 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 2058 ;; 2059 *) 2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2061for as_dir in $PATH 2062do 2063 IFS=$as_save_IFS 2064 test -z "$as_dir" && as_dir=. 2065 for ac_exec_ext in '' $ac_executable_extensions; do 2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2067 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2069 break 2 2070 fi 2071done 2072done 2073 2074 ;; 2075esac 2076fi 2077INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 2078 2079if test -n "$INTLTOOL_PERL"; then 2080 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 2081echo "${ECHO_T}$INTLTOOL_PERL" >&6 2082else 2083 echo "$as_me:$LINENO: result: no" >&5 2084echo "${ECHO_T}no" >&6 2085fi 2086 2087if test -z "$INTLTOOL_PERL"; then 2088 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 2089echo "$as_me: error: perl not found; required for intltool" >&2;} 2090 { (exit 1); exit 1; }; } 2091fi 2092if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then 2093 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 2094echo "$as_me: error: perl 5.x required for intltool" >&2;} 2095 { (exit 1); exit 1; }; } 2096fi 2097if test "x" != "xno-xml"; then 2098 echo "$as_me:$LINENO: checking for XML::Parser" >&5 2099echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6 2100 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 2101 echo "$as_me:$LINENO: result: ok" >&5 2102echo "${ECHO_T}ok" >&6 2103 else 2104 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5 2105echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;} 2106 { (exit 1); exit 1; }; } 2107 fi 2108fi 2109 2110# Extract the first word of "iconv", so it can be a program name with args. 2111set dummy iconv; ac_word=$2 2112echo "$as_me:$LINENO: checking for $ac_word" >&5 2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2114if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then 2115 echo $ECHO_N "(cached) $ECHO_C" >&6 2116else 2117 case $INTLTOOL_ICONV in 2118 [\\/]* | ?:[\\/]*) 2119 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path. 2120 ;; 2121 *) 2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2123for as_dir in $PATH 2124do 2125 IFS=$as_save_IFS 2126 test -z "$as_dir" && as_dir=. 2127 for ac_exec_ext in '' $ac_executable_extensions; do 2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2129 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext" 2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2131 break 2 2132 fi 2133done 2134done 2135 2136 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv" 2137 ;; 2138esac 2139fi 2140INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV 2141 2142if test -n "$INTLTOOL_ICONV"; then 2143 echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5 2144echo "${ECHO_T}$INTLTOOL_ICONV" >&6 2145else 2146 echo "$as_me:$LINENO: result: no" >&5 2147echo "${ECHO_T}no" >&6 2148fi 2149 2150# Extract the first word of "msgfmt", so it can be a program name with args. 2151set dummy msgfmt; ac_word=$2 2152echo "$as_me:$LINENO: checking for $ac_word" >&5 2153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2154if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then 2155 echo $ECHO_N "(cached) $ECHO_C" >&6 2156else 2157 case $INTLTOOL_MSGFMT in 2158 [\\/]* | ?:[\\/]*) 2159 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path. 2160 ;; 2161 *) 2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2163for as_dir in $PATH 2164do 2165 IFS=$as_save_IFS 2166 test -z "$as_dir" && as_dir=. 2167 for ac_exec_ext in '' $ac_executable_extensions; do 2168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2169 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2171 break 2 2172 fi 2173done 2174done 2175 2176 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt" 2177 ;; 2178esac 2179fi 2180INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT 2181 2182if test -n "$INTLTOOL_MSGFMT"; then 2183 echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5 2184echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6 2185else 2186 echo "$as_me:$LINENO: result: no" >&5 2187echo "${ECHO_T}no" >&6 2188fi 2189 2190# Extract the first word of "msgmerge", so it can be a program name with args. 2191set dummy msgmerge; ac_word=$2 2192echo "$as_me:$LINENO: checking for $ac_word" >&5 2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2194if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then 2195 echo $ECHO_N "(cached) $ECHO_C" >&6 2196else 2197 case $INTLTOOL_MSGMERGE in 2198 [\\/]* | ?:[\\/]*) 2199 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path. 2200 ;; 2201 *) 2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2203for as_dir in $PATH 2204do 2205 IFS=$as_save_IFS 2206 test -z "$as_dir" && as_dir=. 2207 for ac_exec_ext in '' $ac_executable_extensions; do 2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2209 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2211 break 2 2212 fi 2213done 2214done 2215 2216 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge" 2217 ;; 2218esac 2219fi 2220INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE 2221 2222if test -n "$INTLTOOL_MSGMERGE"; then 2223 echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5 2224echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6 2225else 2226 echo "$as_me:$LINENO: result: no" >&5 2227echo "${ECHO_T}no" >&6 2228fi 2229 2230# Extract the first word of "xgettext", so it can be a program name with args. 2231set dummy xgettext; ac_word=$2 2232echo "$as_me:$LINENO: checking for $ac_word" >&5 2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2234if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then 2235 echo $ECHO_N "(cached) $ECHO_C" >&6 2236else 2237 case $INTLTOOL_XGETTEXT in 2238 [\\/]* | ?:[\\/]*) 2239 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path. 2240 ;; 2241 *) 2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2243for as_dir in $PATH 2244do 2245 IFS=$as_save_IFS 2246 test -z "$as_dir" && as_dir=. 2247 for ac_exec_ext in '' $ac_executable_extensions; do 2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2249 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2251 break 2 2252 fi 2253done 2254done 2255 2256 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext" 2257 ;; 2258esac 2259fi 2260INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT 2261 2262if test -n "$INTLTOOL_XGETTEXT"; then 2263 echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5 2264echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6 2265else 2266 echo "$as_me:$LINENO: result: no" >&5 2267echo "${ECHO_T}no" >&6 2268fi 2269 2270 2271# Remove file type tags (using []) from po/POTFILES. 2272 2273 2274 2275 2276 2277 2278if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2279 # Keeping the `.' argument allows $(mkdir_p) to be used without 2280 # argument. Indeed, we sometimes output rules like 2281 # $(mkdir_p) $(somedir) 2282 # where $(somedir) is conditionally defined. 2283 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 2284 # expensive solution, as it forces Make to start a sub-shell.) 2285 mkdir_p='mkdir -p -- .' 2286else 2287 # On NextStep and OpenStep, the `mkdir' command does not 2288 # recognize any option. It will interpret all options as 2289 # directories to create, and then abort because `.' already 2290 # exists. 2291 for d in ./-p ./--version; 2292 do 2293 test -d $d && rmdir $d 2294 done 2295 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2296 if test -f "$ac_aux_dir/mkinstalldirs"; then 2297 mkdir_p='$(mkinstalldirs)' 2298 else 2299 mkdir_p='$(install_sh) -d' 2300 fi 2301fi 2302 2303 2304 2305# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT. 2306 2307 ac_config_commands="$ac_config_commands intltool" 2308 2309 2310 2311 2312# Checks for programs. 2313ac_ext=c 2314ac_cpp='$CPP $CPPFLAGS' 2315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2317ac_compiler_gnu=$ac_cv_c_compiler_gnu 2318if test -n "$ac_tool_prefix"; then 2319 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2320set dummy ${ac_tool_prefix}gcc; ac_word=$2 2321echo "$as_me:$LINENO: checking for $ac_word" >&5 2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2323if test "${ac_cv_prog_CC+set}" = set; then 2324 echo $ECHO_N "(cached) $ECHO_C" >&6 2325else 2326 if test -n "$CC"; then 2327 ac_cv_prog_CC="$CC" # Let the user override the test. 2328else 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2330for as_dir in $PATH 2331do 2332 IFS=$as_save_IFS 2333 test -z "$as_dir" && as_dir=. 2334 for ac_exec_ext in '' $ac_executable_extensions; do 2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2336 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2338 break 2 2339 fi 2340done 2341done 2342 2343fi 2344fi 2345CC=$ac_cv_prog_CC 2346if test -n "$CC"; then 2347 echo "$as_me:$LINENO: result: $CC" >&5 2348echo "${ECHO_T}$CC" >&6 2349else 2350 echo "$as_me:$LINENO: result: no" >&5 2351echo "${ECHO_T}no" >&6 2352fi 2353 2354fi 2355if test -z "$ac_cv_prog_CC"; then 2356 ac_ct_CC=$CC 2357 # Extract the first word of "gcc", so it can be a program name with args. 2358set dummy gcc; ac_word=$2 2359echo "$as_me:$LINENO: checking for $ac_word" >&5 2360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2361if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2362 echo $ECHO_N "(cached) $ECHO_C" >&6 2363else 2364 if test -n "$ac_ct_CC"; then 2365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2366else 2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 for ac_exec_ext in '' $ac_executable_extensions; do 2373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2374 ac_cv_prog_ac_ct_CC="gcc" 2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2376 break 2 2377 fi 2378done 2379done 2380 2381fi 2382fi 2383ac_ct_CC=$ac_cv_prog_ac_ct_CC 2384if test -n "$ac_ct_CC"; then 2385 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2386echo "${ECHO_T}$ac_ct_CC" >&6 2387else 2388 echo "$as_me:$LINENO: result: no" >&5 2389echo "${ECHO_T}no" >&6 2390fi 2391 2392 CC=$ac_ct_CC 2393else 2394 CC="$ac_cv_prog_CC" 2395fi 2396 2397if test -z "$CC"; then 2398 if test -n "$ac_tool_prefix"; then 2399 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2400set dummy ${ac_tool_prefix}cc; ac_word=$2 2401echo "$as_me:$LINENO: checking for $ac_word" >&5 2402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2403if test "${ac_cv_prog_CC+set}" = set; then 2404 echo $ECHO_N "(cached) $ECHO_C" >&6 2405else 2406 if test -n "$CC"; then 2407 ac_cv_prog_CC="$CC" # Let the user override the test. 2408else 2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2410for as_dir in $PATH 2411do 2412 IFS=$as_save_IFS 2413 test -z "$as_dir" && as_dir=. 2414 for ac_exec_ext in '' $ac_executable_extensions; do 2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2416 ac_cv_prog_CC="${ac_tool_prefix}cc" 2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2418 break 2 2419 fi 2420done 2421done 2422 2423fi 2424fi 2425CC=$ac_cv_prog_CC 2426if test -n "$CC"; then 2427 echo "$as_me:$LINENO: result: $CC" >&5 2428echo "${ECHO_T}$CC" >&6 2429else 2430 echo "$as_me:$LINENO: result: no" >&5 2431echo "${ECHO_T}no" >&6 2432fi 2433 2434fi 2435if test -z "$ac_cv_prog_CC"; then 2436 ac_ct_CC=$CC 2437 # Extract the first word of "cc", so it can be a program name with args. 2438set dummy cc; ac_word=$2 2439echo "$as_me:$LINENO: checking for $ac_word" >&5 2440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2442 echo $ECHO_N "(cached) $ECHO_C" >&6 2443else 2444 if test -n "$ac_ct_CC"; then 2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2446else 2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2448for as_dir in $PATH 2449do 2450 IFS=$as_save_IFS 2451 test -z "$as_dir" && as_dir=. 2452 for ac_exec_ext in '' $ac_executable_extensions; do 2453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2454 ac_cv_prog_ac_ct_CC="cc" 2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2456 break 2 2457 fi 2458done 2459done 2460 2461fi 2462fi 2463ac_ct_CC=$ac_cv_prog_ac_ct_CC 2464if test -n "$ac_ct_CC"; then 2465 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2466echo "${ECHO_T}$ac_ct_CC" >&6 2467else 2468 echo "$as_me:$LINENO: result: no" >&5 2469echo "${ECHO_T}no" >&6 2470fi 2471 2472 CC=$ac_ct_CC 2473else 2474 CC="$ac_cv_prog_CC" 2475fi 2476 2477fi 2478if test -z "$CC"; then 2479 # Extract the first word of "cc", so it can be a program name with args. 2480set dummy cc; ac_word=$2 2481echo "$as_me:$LINENO: checking for $ac_word" >&5 2482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2483if test "${ac_cv_prog_CC+set}" = set; then 2484 echo $ECHO_N "(cached) $ECHO_C" >&6 2485else 2486 if test -n "$CC"; then 2487 ac_cv_prog_CC="$CC" # Let the user override the test. 2488else 2489 ac_prog_rejected=no 2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491for as_dir in $PATH 2492do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 for ac_exec_ext in '' $ac_executable_extensions; do 2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2497 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2498 ac_prog_rejected=yes 2499 continue 2500 fi 2501 ac_cv_prog_CC="cc" 2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2503 break 2 2504 fi 2505done 2506done 2507 2508if test $ac_prog_rejected = yes; then 2509 # We found a bogon in the path, so make sure we never use it. 2510 set dummy $ac_cv_prog_CC 2511 shift 2512 if test $# != 0; then 2513 # We chose a different compiler from the bogus one. 2514 # However, it has the same basename, so the bogon will be chosen 2515 # first if we set CC to just the basename; use the full file name. 2516 shift 2517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2518 fi 2519fi 2520fi 2521fi 2522CC=$ac_cv_prog_CC 2523if test -n "$CC"; then 2524 echo "$as_me:$LINENO: result: $CC" >&5 2525echo "${ECHO_T}$CC" >&6 2526else 2527 echo "$as_me:$LINENO: result: no" >&5 2528echo "${ECHO_T}no" >&6 2529fi 2530 2531fi 2532if test -z "$CC"; then 2533 if test -n "$ac_tool_prefix"; then 2534 for ac_prog in cl 2535 do 2536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2537set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2538echo "$as_me:$LINENO: checking for $ac_word" >&5 2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2540if test "${ac_cv_prog_CC+set}" = set; then 2541 echo $ECHO_N "(cached) $ECHO_C" >&6 2542else 2543 if test -n "$CC"; then 2544 ac_cv_prog_CC="$CC" # Let the user override the test. 2545else 2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547for as_dir in $PATH 2548do 2549 IFS=$as_save_IFS 2550 test -z "$as_dir" && as_dir=. 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2555 break 2 2556 fi 2557done 2558done 2559 2560fi 2561fi 2562CC=$ac_cv_prog_CC 2563if test -n "$CC"; then 2564 echo "$as_me:$LINENO: result: $CC" >&5 2565echo "${ECHO_T}$CC" >&6 2566else 2567 echo "$as_me:$LINENO: result: no" >&5 2568echo "${ECHO_T}no" >&6 2569fi 2570 2571 test -n "$CC" && break 2572 done 2573fi 2574if test -z "$CC"; then 2575 ac_ct_CC=$CC 2576 for ac_prog in cl 2577do 2578 # Extract the first word of "$ac_prog", so it can be a program name with args. 2579set dummy $ac_prog; ac_word=$2 2580echo "$as_me:$LINENO: checking for $ac_word" >&5 2581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2582if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2583 echo $ECHO_N "(cached) $ECHO_C" >&6 2584else 2585 if test -n "$ac_ct_CC"; then 2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2587else 2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2589for as_dir in $PATH 2590do 2591 IFS=$as_save_IFS 2592 test -z "$as_dir" && as_dir=. 2593 for ac_exec_ext in '' $ac_executable_extensions; do 2594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2595 ac_cv_prog_ac_ct_CC="$ac_prog" 2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2597 break 2 2598 fi 2599done 2600done 2601 2602fi 2603fi 2604ac_ct_CC=$ac_cv_prog_ac_ct_CC 2605if test -n "$ac_ct_CC"; then 2606 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2607echo "${ECHO_T}$ac_ct_CC" >&6 2608else 2609 echo "$as_me:$LINENO: result: no" >&5 2610echo "${ECHO_T}no" >&6 2611fi 2612 2613 test -n "$ac_ct_CC" && break 2614done 2615 2616 CC=$ac_ct_CC 2617fi 2618 2619fi 2620 2621 2622test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2623See \`config.log' for more details." >&5 2624echo "$as_me: error: no acceptable C compiler found in \$PATH 2625See \`config.log' for more details." >&2;} 2626 { (exit 1); exit 1; }; } 2627 2628# Provide some information about the compiler. 2629echo "$as_me:$LINENO:" \ 2630 "checking for C compiler version" >&5 2631ac_compiler=`set X $ac_compile; echo $2` 2632{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2633 (eval $ac_compiler --version </dev/null >&5) 2>&5 2634 ac_status=$? 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); } 2637{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2638 (eval $ac_compiler -v </dev/null >&5) 2>&5 2639 ac_status=$? 2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2641 (exit $ac_status); } 2642{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2643 (eval $ac_compiler -V </dev/null >&5) 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); } 2647 2648cat >conftest.$ac_ext <<_ACEOF 2649/* confdefs.h. */ 2650_ACEOF 2651cat confdefs.h >>conftest.$ac_ext 2652cat >>conftest.$ac_ext <<_ACEOF 2653/* end confdefs.h. */ 2654 2655int 2656main () 2657{ 2658 2659 ; 2660 return 0; 2661} 2662_ACEOF 2663ac_clean_files_save=$ac_clean_files 2664ac_clean_files="$ac_clean_files a.out a.exe b.out" 2665# Try to create an executable without -o first, disregard a.out. 2666# It will help us diagnose broken compilers, and finding out an intuition 2667# of exeext. 2668echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2669echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2670ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2671if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2672 (eval $ac_link_default) 2>&5 2673 ac_status=$? 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2675 (exit $ac_status); }; then 2676 # Find the output, starting from the most likely. This scheme is 2677# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2678# resort. 2679 2680# Be careful to initialize this variable, since it used to be cached. 2681# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2682ac_cv_exeext= 2683# b.out is created by i960 compilers. 2684for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2685do 2686 test -f "$ac_file" || continue 2687 case $ac_file in 2688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2689 ;; 2690 conftest.$ac_ext ) 2691 # This is the source file. 2692 ;; 2693 [ab].out ) 2694 # We found the default executable, but exeext='' is most 2695 # certainly right. 2696 break;; 2697 *.* ) 2698 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2699 # FIXME: I believe we export ac_cv_exeext for Libtool, 2700 # but it would be cool to find out if it's true. Does anybody 2701 # maintain Libtool? --akim. 2702 export ac_cv_exeext 2703 break;; 2704 * ) 2705 break;; 2706 esac 2707done 2708else 2709 echo "$as_me: failed program was:" >&5 2710sed 's/^/| /' conftest.$ac_ext >&5 2711 2712{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2713See \`config.log' for more details." >&5 2714echo "$as_me: error: C compiler cannot create executables 2715See \`config.log' for more details." >&2;} 2716 { (exit 77); exit 77; }; } 2717fi 2718 2719ac_exeext=$ac_cv_exeext 2720echo "$as_me:$LINENO: result: $ac_file" >&5 2721echo "${ECHO_T}$ac_file" >&6 2722 2723# Check the compiler produces executables we can run. If not, either 2724# the compiler is broken, or we cross compile. 2725echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2726echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2727# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2728# If not cross compiling, check that we can run a simple program. 2729if test "$cross_compiling" != yes; then 2730 if { ac_try='./$ac_file' 2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2732 (eval $ac_try) 2>&5 2733 ac_status=$? 2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2735 (exit $ac_status); }; }; then 2736 cross_compiling=no 2737 else 2738 if test "$cross_compiling" = maybe; then 2739 cross_compiling=yes 2740 else 2741 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2742If you meant to cross compile, use \`--host'. 2743See \`config.log' for more details." >&5 2744echo "$as_me: error: cannot run C compiled programs. 2745If you meant to cross compile, use \`--host'. 2746See \`config.log' for more details." >&2;} 2747 { (exit 1); exit 1; }; } 2748 fi 2749 fi 2750fi 2751echo "$as_me:$LINENO: result: yes" >&5 2752echo "${ECHO_T}yes" >&6 2753 2754rm -f a.out a.exe conftest$ac_cv_exeext b.out 2755ac_clean_files=$ac_clean_files_save 2756# Check the compiler produces executables we can run. If not, either 2757# the compiler is broken, or we cross compile. 2758echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2759echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2760echo "$as_me:$LINENO: result: $cross_compiling" >&5 2761echo "${ECHO_T}$cross_compiling" >&6 2762 2763echo "$as_me:$LINENO: checking for suffix of executables" >&5 2764echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2766 (eval $ac_link) 2>&5 2767 ac_status=$? 2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2769 (exit $ac_status); }; then 2770 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2771# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2772# work properly (i.e., refer to `conftest.exe'), while it won't with 2773# `rm'. 2774for ac_file in conftest.exe conftest conftest.*; do 2775 test -f "$ac_file" || continue 2776 case $ac_file in 2777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2778 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2779 export ac_cv_exeext 2780 break;; 2781 * ) break;; 2782 esac 2783done 2784else 2785 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2786See \`config.log' for more details." >&5 2787echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2788See \`config.log' for more details." >&2;} 2789 { (exit 1); exit 1; }; } 2790fi 2791 2792rm -f conftest$ac_cv_exeext 2793echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2794echo "${ECHO_T}$ac_cv_exeext" >&6 2795 2796rm -f conftest.$ac_ext 2797EXEEXT=$ac_cv_exeext 2798ac_exeext=$EXEEXT 2799echo "$as_me:$LINENO: checking for suffix of object files" >&5 2800echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2801if test "${ac_cv_objext+set}" = set; then 2802 echo $ECHO_N "(cached) $ECHO_C" >&6 2803else 2804 cat >conftest.$ac_ext <<_ACEOF 2805/* confdefs.h. */ 2806_ACEOF 2807cat confdefs.h >>conftest.$ac_ext 2808cat >>conftest.$ac_ext <<_ACEOF 2809/* end confdefs.h. */ 2810 2811int 2812main () 2813{ 2814 2815 ; 2816 return 0; 2817} 2818_ACEOF 2819rm -f conftest.o conftest.obj 2820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2821 (eval $ac_compile) 2>&5 2822 ac_status=$? 2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2824 (exit $ac_status); }; then 2825 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2826 case $ac_file in 2827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2828 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2829 break;; 2830 esac 2831done 2832else 2833 echo "$as_me: failed program was:" >&5 2834sed 's/^/| /' conftest.$ac_ext >&5 2835 2836{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2837See \`config.log' for more details." >&5 2838echo "$as_me: error: cannot compute suffix of object files: cannot compile 2839See \`config.log' for more details." >&2;} 2840 { (exit 1); exit 1; }; } 2841fi 2842 2843rm -f conftest.$ac_cv_objext conftest.$ac_ext 2844fi 2845echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2846echo "${ECHO_T}$ac_cv_objext" >&6 2847OBJEXT=$ac_cv_objext 2848ac_objext=$OBJEXT 2849echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2850echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2851if test "${ac_cv_c_compiler_gnu+set}" = set; then 2852 echo $ECHO_N "(cached) $ECHO_C" >&6 2853else 2854 cat >conftest.$ac_ext <<_ACEOF 2855/* confdefs.h. */ 2856_ACEOF 2857cat confdefs.h >>conftest.$ac_ext 2858cat >>conftest.$ac_ext <<_ACEOF 2859/* end confdefs.h. */ 2860 2861int 2862main () 2863{ 2864#ifndef __GNUC__ 2865 choke me 2866#endif 2867 2868 ; 2869 return 0; 2870} 2871_ACEOF 2872rm -f conftest.$ac_objext 2873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2874 (eval $ac_compile) 2>conftest.er1 2875 ac_status=$? 2876 grep -v '^ *+' conftest.er1 >conftest.err 2877 rm -f conftest.er1 2878 cat conftest.err >&5 2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2880 (exit $ac_status); } && 2881 { ac_try='test -z "$ac_c_werror_flag" 2882 || test ! -s conftest.err' 2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2884 (eval $ac_try) 2>&5 2885 ac_status=$? 2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2887 (exit $ac_status); }; } && 2888 { ac_try='test -s conftest.$ac_objext' 2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2890 (eval $ac_try) 2>&5 2891 ac_status=$? 2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2893 (exit $ac_status); }; }; then 2894 ac_compiler_gnu=yes 2895else 2896 echo "$as_me: failed program was:" >&5 2897sed 's/^/| /' conftest.$ac_ext >&5 2898 2899ac_compiler_gnu=no 2900fi 2901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2902ac_cv_c_compiler_gnu=$ac_compiler_gnu 2903 2904fi 2905echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2906echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2907GCC=`test $ac_compiler_gnu = yes && echo yes` 2908ac_test_CFLAGS=${CFLAGS+set} 2909ac_save_CFLAGS=$CFLAGS 2910CFLAGS="-g" 2911echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2912echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2913if test "${ac_cv_prog_cc_g+set}" = set; then 2914 echo $ECHO_N "(cached) $ECHO_C" >&6 2915else 2916 cat >conftest.$ac_ext <<_ACEOF 2917/* confdefs.h. */ 2918_ACEOF 2919cat confdefs.h >>conftest.$ac_ext 2920cat >>conftest.$ac_ext <<_ACEOF 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931rm -f conftest.$ac_objext 2932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2933 (eval $ac_compile) 2>conftest.er1 2934 ac_status=$? 2935 grep -v '^ *+' conftest.er1 >conftest.err 2936 rm -f conftest.er1 2937 cat conftest.err >&5 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2939 (exit $ac_status); } && 2940 { ac_try='test -z "$ac_c_werror_flag" 2941 || test ! -s conftest.err' 2942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2943 (eval $ac_try) 2>&5 2944 ac_status=$? 2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2946 (exit $ac_status); }; } && 2947 { ac_try='test -s conftest.$ac_objext' 2948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2949 (eval $ac_try) 2>&5 2950 ac_status=$? 2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); }; }; then 2953 ac_cv_prog_cc_g=yes 2954else 2955 echo "$as_me: failed program was:" >&5 2956sed 's/^/| /' conftest.$ac_ext >&5 2957 2958ac_cv_prog_cc_g=no 2959fi 2960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2961fi 2962echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2963echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2964if test "$ac_test_CFLAGS" = set; then 2965 CFLAGS=$ac_save_CFLAGS 2966elif test $ac_cv_prog_cc_g = yes; then 2967 if test "$GCC" = yes; then 2968 CFLAGS="-g -O2" 2969 else 2970 CFLAGS="-g" 2971 fi 2972else 2973 if test "$GCC" = yes; then 2974 CFLAGS="-O2" 2975 else 2976 CFLAGS= 2977 fi 2978fi 2979echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2980echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2981if test "${ac_cv_prog_cc_stdc+set}" = set; then 2982 echo $ECHO_N "(cached) $ECHO_C" >&6 2983else 2984 ac_cv_prog_cc_stdc=no 2985ac_save_CC=$CC 2986cat >conftest.$ac_ext <<_ACEOF 2987/* confdefs.h. */ 2988_ACEOF 2989cat confdefs.h >>conftest.$ac_ext 2990cat >>conftest.$ac_ext <<_ACEOF 2991/* end confdefs.h. */ 2992#include <stdarg.h> 2993#include <stdio.h> 2994#include <sys/types.h> 2995#include <sys/stat.h> 2996/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2997struct buf { int x; }; 2998FILE * (*rcsopen) (struct buf *, struct stat *, int); 2999static char *e (p, i) 3000 char **p; 3001 int i; 3002{ 3003 return p[i]; 3004} 3005static char *f (char * (*g) (char **, int), char **p, ...) 3006{ 3007 char *s; 3008 va_list v; 3009 va_start (v,p); 3010 s = g (p, va_arg (v,int)); 3011 va_end (v); 3012 return s; 3013} 3014 3015/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3016 function prototypes and stuff, but not '\xHH' hex character constants. 3017 These don't provoke an error unfortunately, instead are silently treated 3018 as 'x'. The following induces an error, until -std1 is added to get 3019 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3020 array size at least. It's necessary to write '\x00'==0 to get something 3021 that's true only with -std1. */ 3022int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3023 3024int test (int i, double x); 3025struct s1 {int (*f) (int a);}; 3026struct s2 {int (*f) (double a);}; 3027int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3028int argc; 3029char **argv; 3030int 3031main () 3032{ 3033return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3034 ; 3035 return 0; 3036} 3037_ACEOF 3038# Don't try gcc -ansi; that turns off useful extensions and 3039# breaks some systems' header files. 3040# AIX -qlanglvl=ansi 3041# Ultrix and OSF/1 -std1 3042# HP-UX 10.20 and later -Ae 3043# HP-UX older versions -Aa -D_HPUX_SOURCE 3044# SVR4 -Xc -D__EXTENSIONS__ 3045for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3046do 3047 CC="$ac_save_CC $ac_arg" 3048 rm -f conftest.$ac_objext 3049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3050 (eval $ac_compile) 2>conftest.er1 3051 ac_status=$? 3052 grep -v '^ *+' conftest.er1 >conftest.err 3053 rm -f conftest.er1 3054 cat conftest.err >&5 3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3056 (exit $ac_status); } && 3057 { ac_try='test -z "$ac_c_werror_flag" 3058 || test ! -s conftest.err' 3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3060 (eval $ac_try) 2>&5 3061 ac_status=$? 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); }; } && 3064 { ac_try='test -s conftest.$ac_objext' 3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3066 (eval $ac_try) 2>&5 3067 ac_status=$? 3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3069 (exit $ac_status); }; }; then 3070 ac_cv_prog_cc_stdc=$ac_arg 3071break 3072else 3073 echo "$as_me: failed program was:" >&5 3074sed 's/^/| /' conftest.$ac_ext >&5 3075 3076fi 3077rm -f conftest.err conftest.$ac_objext 3078done 3079rm -f conftest.$ac_ext conftest.$ac_objext 3080CC=$ac_save_CC 3081 3082fi 3083 3084case "x$ac_cv_prog_cc_stdc" in 3085 x|xno) 3086 echo "$as_me:$LINENO: result: none needed" >&5 3087echo "${ECHO_T}none needed" >&6 ;; 3088 *) 3089 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3090echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3091 CC="$CC $ac_cv_prog_cc_stdc" ;; 3092esac 3093 3094# Some people use a C++ compiler to compile C. Since we use `exit', 3095# in C++ we need to declare it. In case someone uses the same compiler 3096# for both compiling C and C++ we need to have the C++ compiler decide 3097# the declaration of exit, since it's the most demanding environment. 3098cat >conftest.$ac_ext <<_ACEOF 3099#ifndef __cplusplus 3100 choke me 3101#endif 3102_ACEOF 3103rm -f conftest.$ac_objext 3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3105 (eval $ac_compile) 2>conftest.er1 3106 ac_status=$? 3107 grep -v '^ *+' conftest.er1 >conftest.err 3108 rm -f conftest.er1 3109 cat conftest.err >&5 3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3111 (exit $ac_status); } && 3112 { ac_try='test -z "$ac_c_werror_flag" 3113 || test ! -s conftest.err' 3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3115 (eval $ac_try) 2>&5 3116 ac_status=$? 3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3118 (exit $ac_status); }; } && 3119 { ac_try='test -s conftest.$ac_objext' 3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3121 (eval $ac_try) 2>&5 3122 ac_status=$? 3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3124 (exit $ac_status); }; }; then 3125 for ac_declaration in \ 3126 '' \ 3127 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3128 'extern "C" void std::exit (int); using std::exit;' \ 3129 'extern "C" void exit (int) throw ();' \ 3130 'extern "C" void exit (int);' \ 3131 'void exit (int);' 3132do 3133 cat >conftest.$ac_ext <<_ACEOF 3134/* confdefs.h. */ 3135_ACEOF 3136cat confdefs.h >>conftest.$ac_ext 3137cat >>conftest.$ac_ext <<_ACEOF 3138/* end confdefs.h. */ 3139$ac_declaration 3140#include <stdlib.h> 3141int 3142main () 3143{ 3144exit (42); 3145 ; 3146 return 0; 3147} 3148_ACEOF 3149rm -f conftest.$ac_objext 3150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3151 (eval $ac_compile) 2>conftest.er1 3152 ac_status=$? 3153 grep -v '^ *+' conftest.er1 >conftest.err 3154 rm -f conftest.er1 3155 cat conftest.err >&5 3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); } && 3158 { ac_try='test -z "$ac_c_werror_flag" 3159 || test ! -s conftest.err' 3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3161 (eval $ac_try) 2>&5 3162 ac_status=$? 3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3164 (exit $ac_status); }; } && 3165 { ac_try='test -s conftest.$ac_objext' 3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3167 (eval $ac_try) 2>&5 3168 ac_status=$? 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); }; }; then 3171 : 3172else 3173 echo "$as_me: failed program was:" >&5 3174sed 's/^/| /' conftest.$ac_ext >&5 3175 3176continue 3177fi 3178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3179 cat >conftest.$ac_ext <<_ACEOF 3180/* confdefs.h. */ 3181_ACEOF 3182cat confdefs.h >>conftest.$ac_ext 3183cat >>conftest.$ac_ext <<_ACEOF 3184/* end confdefs.h. */ 3185$ac_declaration 3186int 3187main () 3188{ 3189exit (42); 3190 ; 3191 return 0; 3192} 3193_ACEOF 3194rm -f conftest.$ac_objext 3195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3196 (eval $ac_compile) 2>conftest.er1 3197 ac_status=$? 3198 grep -v '^ *+' conftest.er1 >conftest.err 3199 rm -f conftest.er1 3200 cat conftest.err >&5 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3202 (exit $ac_status); } && 3203 { ac_try='test -z "$ac_c_werror_flag" 3204 || test ! -s conftest.err' 3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3206 (eval $ac_try) 2>&5 3207 ac_status=$? 3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3209 (exit $ac_status); }; } && 3210 { ac_try='test -s conftest.$ac_objext' 3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3212 (eval $ac_try) 2>&5 3213 ac_status=$? 3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3215 (exit $ac_status); }; }; then 3216 break 3217else 3218 echo "$as_me: failed program was:" >&5 3219sed 's/^/| /' conftest.$ac_ext >&5 3220 3221fi 3222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3223done 3224rm -f conftest* 3225if test -n "$ac_declaration"; then 3226 echo '#ifdef __cplusplus' >>confdefs.h 3227 echo $ac_declaration >>confdefs.h 3228 echo '#endif' >>confdefs.h 3229fi 3230 3231else 3232 echo "$as_me: failed program was:" >&5 3233sed 's/^/| /' conftest.$ac_ext >&5 3234 3235fi 3236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3237ac_ext=c 3238ac_cpp='$CPP $CPPFLAGS' 3239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3241ac_compiler_gnu=$ac_cv_c_compiler_gnu 3242DEPDIR="${am__leading_dot}deps" 3243 3244 ac_config_commands="$ac_config_commands depfiles" 3245 3246 3247am_make=${MAKE-make} 3248cat > confinc << 'END' 3249am__doit: 3250 @echo done 3251.PHONY: am__doit 3252END 3253# If we don't find an include directive, just comment out the code. 3254echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3255echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3256am__include="#" 3257am__quote= 3258_am_result=none 3259# First try GNU make style include. 3260echo "include confinc" > confmf 3261# We grep out `Entering directory' and `Leaving directory' 3262# messages which can occur if `w' ends up in MAKEFLAGS. 3263# In particular we don't look at `^make:' because GNU make might 3264# be invoked under some other name (usually "gmake"), in which 3265# case it prints its new name instead of `make'. 3266if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3267 am__include=include 3268 am__quote= 3269 _am_result=GNU 3270fi 3271# Now try BSD make style include. 3272if test "$am__include" = "#"; then 3273 echo '.include "confinc"' > confmf 3274 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3275 am__include=.include 3276 am__quote="\"" 3277 _am_result=BSD 3278 fi 3279fi 3280 3281 3282echo "$as_me:$LINENO: result: $_am_result" >&5 3283echo "${ECHO_T}$_am_result" >&6 3284rm -f confinc confmf 3285 3286# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3287if test "${enable_dependency_tracking+set}" = set; then 3288 enableval="$enable_dependency_tracking" 3289 3290fi; 3291if test "x$enable_dependency_tracking" != xno; then 3292 am_depcomp="$ac_aux_dir/depcomp" 3293 AMDEPBACKSLASH='\' 3294fi 3295 3296 3297if test "x$enable_dependency_tracking" != xno; then 3298 AMDEP_TRUE= 3299 AMDEP_FALSE='#' 3300else 3301 AMDEP_TRUE='#' 3302 AMDEP_FALSE= 3303fi 3304 3305 3306 3307 3308depcc="$CC" am_compiler_list= 3309 3310echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3311echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3312if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3313 echo $ECHO_N "(cached) $ECHO_C" >&6 3314else 3315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3316 # We make a subdir and do the tests there. Otherwise we can end up 3317 # making bogus files that we don't know about and never remove. For 3318 # instance it was reported that on HP-UX the gcc test will end up 3319 # making a dummy file named `D' -- because `-MD' means `put the output 3320 # in D'. 3321 mkdir conftest.dir 3322 # Copy depcomp to subdir because otherwise we won't find it if we're 3323 # using a relative directory. 3324 cp "$am_depcomp" conftest.dir 3325 cd conftest.dir 3326 # We will build objects and dependencies in a subdirectory because 3327 # it helps to detect inapplicable dependency modes. For instance 3328 # both Tru64's cc and ICC support -MD to output dependencies as a 3329 # side effect of compilation, but ICC will put the dependencies in 3330 # the current directory while Tru64 will put them in the object 3331 # directory. 3332 mkdir sub 3333 3334 am_cv_CC_dependencies_compiler_type=none 3335 if test "$am_compiler_list" = ""; then 3336 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3337 fi 3338 for depmode in $am_compiler_list; do 3339 # Setup a source with many dependencies, because some compilers 3340 # like to wrap large dependency lists on column 80 (with \), and 3341 # we should not choose a depcomp mode which is confused by this. 3342 # 3343 # We need to recreate these files for each test, as the compiler may 3344 # overwrite some of them when testing with obscure command lines. 3345 # This happens at least with the AIX C compiler. 3346 : > sub/conftest.c 3347 for i in 1 2 3 4 5 6; do 3348 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3349 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3350 # Solaris 8's {/usr,}/bin/sh. 3351 touch sub/conftst$i.h 3352 done 3353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3354 3355 case $depmode in 3356 nosideeffect) 3357 # after this tag, mechanisms are not by side-effect, so they'll 3358 # only be used when explicitly requested 3359 if test "x$enable_dependency_tracking" = xyes; then 3360 continue 3361 else 3362 break 3363 fi 3364 ;; 3365 none) break ;; 3366 esac 3367 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3368 # mode. It turns out that the SunPro C++ compiler does not properly 3369 # handle `-M -o', and we need to detect this. 3370 if depmode=$depmode \ 3371 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3372 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3373 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3374 >/dev/null 2>conftest.err && 3375 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3376 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3377 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3378 # icc doesn't choke on unknown options, it will just issue warnings 3379 # or remarks (even with -Werror). So we grep stderr for any message 3380 # that says an option was ignored or not supported. 3381 # When given -MP, icc 7.0 and 7.1 complain thusly: 3382 # icc: Command line warning: ignoring option '-M'; no argument required 3383 # The diagnosis changed in icc 8.0: 3384 # icc: Command line remark: option '-MP' not supported 3385 if (grep 'ignoring option' conftest.err || 3386 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3387 am_cv_CC_dependencies_compiler_type=$depmode 3388 break 3389 fi 3390 fi 3391 done 3392 3393 cd .. 3394 rm -rf conftest.dir 3395else 3396 am_cv_CC_dependencies_compiler_type=none 3397fi 3398 3399fi 3400echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3401echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3402CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3403 3404 3405 3406if 3407 test "x$enable_dependency_tracking" != xno \ 3408 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3409 am__fastdepCC_TRUE= 3410 am__fastdepCC_FALSE='#' 3411else 3412 am__fastdepCC_TRUE='#' 3413 am__fastdepCC_FALSE= 3414fi 3415 3416 3417# Find a good install program. We prefer a C program (faster), 3418# so one script is as good as another. But avoid the broken or 3419# incompatible versions: 3420# SysV /etc/install, /usr/sbin/install 3421# SunOS /usr/etc/install 3422# IRIX /sbin/install 3423# AIX /bin/install 3424# AmigaOS /C/install, which installs bootblocks on floppy discs 3425# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3426# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3427# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3428# OS/2's system install, which has a completely different semantic 3429# ./install, which can be erroneously created by make from ./install.sh. 3430echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3431echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3432if test -z "$INSTALL"; then 3433if test "${ac_cv_path_install+set}" = set; then 3434 echo $ECHO_N "(cached) $ECHO_C" >&6 3435else 3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3437for as_dir in $PATH 3438do 3439 IFS=$as_save_IFS 3440 test -z "$as_dir" && as_dir=. 3441 # Account for people who put trailing slashes in PATH elements. 3442case $as_dir/ in 3443 ./ | .// | /cC/* | \ 3444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3445 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3446 /usr/ucb/* ) ;; 3447 *) 3448 # OSF1 and SCO ODT 3.0 have their own names for install. 3449 # Don't use installbsd from OSF since it installs stuff as root 3450 # by default. 3451 for ac_prog in ginstall scoinst install; do 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3454 if test $ac_prog = install && 3455 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3456 # AIX install. It has an incompatible calling convention. 3457 : 3458 elif test $ac_prog = install && 3459 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3460 # program-specific install script used by HP pwplus--don't use. 3461 : 3462 else 3463 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3464 break 3 3465 fi 3466 fi 3467 done 3468 done 3469 ;; 3470esac 3471done 3472 3473 3474fi 3475 if test "${ac_cv_path_install+set}" = set; then 3476 INSTALL=$ac_cv_path_install 3477 else 3478 # As a last resort, use the slow shell script. We don't cache a 3479 # path for INSTALL within a source directory, because that will 3480 # break other packages using the cache if that directory is 3481 # removed, or if the path is relative. 3482 INSTALL=$ac_install_sh 3483 fi 3484fi 3485echo "$as_me:$LINENO: result: $INSTALL" >&5 3486echo "${ECHO_T}$INSTALL" >&6 3487 3488# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3489# It thinks the first close brace ends the variable substitution. 3490test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3491 3492test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3493 3494test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3495 3496echo "$as_me:$LINENO: checking whether ln -s works" >&5 3497echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3498LN_S=$as_ln_s 3499if test "$LN_S" = "ln -s"; then 3500 echo "$as_me:$LINENO: result: yes" >&5 3501echo "${ECHO_T}yes" >&6 3502else 3503 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3504echo "${ECHO_T}no, using $LN_S" >&6 3505fi 3506 3507echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3508echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3509set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3510if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3511 echo $ECHO_N "(cached) $ECHO_C" >&6 3512else 3513 cat >conftest.make <<\_ACEOF 3514all: 3515 @echo 'ac_maketemp="$(MAKE)"' 3516_ACEOF 3517# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3518eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3519if test -n "$ac_maketemp"; then 3520 eval ac_cv_prog_make_${ac_make}_set=yes 3521else 3522 eval ac_cv_prog_make_${ac_make}_set=no 3523fi 3524rm -f conftest.make 3525fi 3526if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3527 echo "$as_me:$LINENO: result: yes" >&5 3528echo "${ECHO_T}yes" >&6 3529 SET_MAKE= 3530else 3531 echo "$as_me:$LINENO: result: no" >&5 3532echo "${ECHO_T}no" >&6 3533 SET_MAKE="MAKE=${MAKE-make}" 3534fi 3535 3536 3537ALL_LINGUAS="de" 3538 3539ac_ext=c 3540ac_cpp='$CPP $CPPFLAGS' 3541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3543ac_compiler_gnu=$ac_cv_c_compiler_gnu 3544echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3545echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3546# On Suns, sometimes $CPP names a directory. 3547if test -n "$CPP" && test -d "$CPP"; then 3548 CPP= 3549fi 3550if test -z "$CPP"; then 3551 if test "${ac_cv_prog_CPP+set}" = set; then 3552 echo $ECHO_N "(cached) $ECHO_C" >&6 3553else 3554 # Double quotes because CPP needs to be expanded 3555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3556 do 3557 ac_preproc_ok=false 3558for ac_c_preproc_warn_flag in '' yes 3559do 3560 # Use a header file that comes with gcc, so configuring glibc 3561 # with a fresh cross-compiler works. 3562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3563 # <limits.h> exists even on freestanding compilers. 3564 # On the NeXT, cc -E runs the code through the compiler's parser, 3565 # not just through cpp. "Syntax error" is here to catch this case. 3566 cat >conftest.$ac_ext <<_ACEOF 3567/* confdefs.h. */ 3568_ACEOF 3569cat confdefs.h >>conftest.$ac_ext 3570cat >>conftest.$ac_ext <<_ACEOF 3571/* end confdefs.h. */ 3572#ifdef __STDC__ 3573# include <limits.h> 3574#else 3575# include <assert.h> 3576#endif 3577 Syntax error 3578_ACEOF 3579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3581 ac_status=$? 3582 grep -v '^ *+' conftest.er1 >conftest.err 3583 rm -f conftest.er1 3584 cat conftest.err >&5 3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3586 (exit $ac_status); } >/dev/null; then 3587 if test -s conftest.err; then 3588 ac_cpp_err=$ac_c_preproc_warn_flag 3589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3590 else 3591 ac_cpp_err= 3592 fi 3593else 3594 ac_cpp_err=yes 3595fi 3596if test -z "$ac_cpp_err"; then 3597 : 3598else 3599 echo "$as_me: failed program was:" >&5 3600sed 's/^/| /' conftest.$ac_ext >&5 3601 3602 # Broken: fails on valid input. 3603continue 3604fi 3605rm -f conftest.err conftest.$ac_ext 3606 3607 # OK, works on sane cases. Now check whether non-existent headers 3608 # can be detected and how. 3609 cat >conftest.$ac_ext <<_ACEOF 3610/* confdefs.h. */ 3611_ACEOF 3612cat confdefs.h >>conftest.$ac_ext 3613cat >>conftest.$ac_ext <<_ACEOF 3614/* end confdefs.h. */ 3615#include <ac_nonexistent.h> 3616_ACEOF 3617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3619 ac_status=$? 3620 grep -v '^ *+' conftest.er1 >conftest.err 3621 rm -f conftest.er1 3622 cat conftest.err >&5 3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3624 (exit $ac_status); } >/dev/null; then 3625 if test -s conftest.err; then 3626 ac_cpp_err=$ac_c_preproc_warn_flag 3627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3628 else 3629 ac_cpp_err= 3630 fi 3631else 3632 ac_cpp_err=yes 3633fi 3634if test -z "$ac_cpp_err"; then 3635 # Broken: success on invalid input. 3636continue 3637else 3638 echo "$as_me: failed program was:" >&5 3639sed 's/^/| /' conftest.$ac_ext >&5 3640 3641 # Passes both tests. 3642ac_preproc_ok=: 3643break 3644fi 3645rm -f conftest.err conftest.$ac_ext 3646 3647done 3648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3649rm -f conftest.err conftest.$ac_ext 3650if $ac_preproc_ok; then 3651 break 3652fi 3653 3654 done 3655 ac_cv_prog_CPP=$CPP 3656 3657fi 3658 CPP=$ac_cv_prog_CPP 3659else 3660 ac_cv_prog_CPP=$CPP 3661fi 3662echo "$as_me:$LINENO: result: $CPP" >&5 3663echo "${ECHO_T}$CPP" >&6 3664ac_preproc_ok=false 3665for ac_c_preproc_warn_flag in '' yes 3666do 3667 # Use a header file that comes with gcc, so configuring glibc 3668 # with a fresh cross-compiler works. 3669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3670 # <limits.h> exists even on freestanding compilers. 3671 # On the NeXT, cc -E runs the code through the compiler's parser, 3672 # not just through cpp. "Syntax error" is here to catch this case. 3673 cat >conftest.$ac_ext <<_ACEOF 3674/* confdefs.h. */ 3675_ACEOF 3676cat confdefs.h >>conftest.$ac_ext 3677cat >>conftest.$ac_ext <<_ACEOF 3678/* end confdefs.h. */ 3679#ifdef __STDC__ 3680# include <limits.h> 3681#else 3682# include <assert.h> 3683#endif 3684 Syntax error 3685_ACEOF 3686if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3688 ac_status=$? 3689 grep -v '^ *+' conftest.er1 >conftest.err 3690 rm -f conftest.er1 3691 cat conftest.err >&5 3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3693 (exit $ac_status); } >/dev/null; then 3694 if test -s conftest.err; then 3695 ac_cpp_err=$ac_c_preproc_warn_flag 3696 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3697 else 3698 ac_cpp_err= 3699 fi 3700else 3701 ac_cpp_err=yes 3702fi 3703if test -z "$ac_cpp_err"; then 3704 : 3705else 3706 echo "$as_me: failed program was:" >&5 3707sed 's/^/| /' conftest.$ac_ext >&5 3708 3709 # Broken: fails on valid input. 3710continue 3711fi 3712rm -f conftest.err conftest.$ac_ext 3713 3714 # OK, works on sane cases. Now check whether non-existent headers 3715 # can be detected and how. 3716 cat >conftest.$ac_ext <<_ACEOF 3717/* confdefs.h. */ 3718_ACEOF 3719cat confdefs.h >>conftest.$ac_ext 3720cat >>conftest.$ac_ext <<_ACEOF 3721/* end confdefs.h. */ 3722#include <ac_nonexistent.h> 3723_ACEOF 3724if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3726 ac_status=$? 3727 grep -v '^ *+' conftest.er1 >conftest.err 3728 rm -f conftest.er1 3729 cat conftest.err >&5 3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3731 (exit $ac_status); } >/dev/null; then 3732 if test -s conftest.err; then 3733 ac_cpp_err=$ac_c_preproc_warn_flag 3734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3735 else 3736 ac_cpp_err= 3737 fi 3738else 3739 ac_cpp_err=yes 3740fi 3741if test -z "$ac_cpp_err"; then 3742 # Broken: success on invalid input. 3743continue 3744else 3745 echo "$as_me: failed program was:" >&5 3746sed 's/^/| /' conftest.$ac_ext >&5 3747 3748 # Passes both tests. 3749ac_preproc_ok=: 3750break 3751fi 3752rm -f conftest.err conftest.$ac_ext 3753 3754done 3755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3756rm -f conftest.err conftest.$ac_ext 3757if $ac_preproc_ok; then 3758 : 3759else 3760 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3761See \`config.log' for more details." >&5 3762echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3763See \`config.log' for more details." >&2;} 3764 { (exit 1); exit 1; }; } 3765fi 3766 3767ac_ext=c 3768ac_cpp='$CPP $CPPFLAGS' 3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3771ac_compiler_gnu=$ac_cv_c_compiler_gnu 3772 3773 3774echo "$as_me:$LINENO: checking for egrep" >&5 3775echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3776if test "${ac_cv_prog_egrep+set}" = set; then 3777 echo $ECHO_N "(cached) $ECHO_C" >&6 3778else 3779 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3780 then ac_cv_prog_egrep='grep -E' 3781 else ac_cv_prog_egrep='egrep' 3782 fi 3783fi 3784echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3785echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3786 EGREP=$ac_cv_prog_egrep 3787 3788 3789echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3790echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3791if test "${ac_cv_header_stdc+set}" = set; then 3792 echo $ECHO_N "(cached) $ECHO_C" >&6 3793else 3794 cat >conftest.$ac_ext <<_ACEOF 3795/* confdefs.h. */ 3796_ACEOF 3797cat confdefs.h >>conftest.$ac_ext 3798cat >>conftest.$ac_ext <<_ACEOF 3799/* end confdefs.h. */ 3800#include <stdlib.h> 3801#include <stdarg.h> 3802#include <string.h> 3803#include <float.h> 3804 3805int 3806main () 3807{ 3808 3809 ; 3810 return 0; 3811} 3812_ACEOF 3813rm -f conftest.$ac_objext 3814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3815 (eval $ac_compile) 2>conftest.er1 3816 ac_status=$? 3817 grep -v '^ *+' conftest.er1 >conftest.err 3818 rm -f conftest.er1 3819 cat conftest.err >&5 3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821 (exit $ac_status); } && 3822 { ac_try='test -z "$ac_c_werror_flag" 3823 || test ! -s conftest.err' 3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3825 (eval $ac_try) 2>&5 3826 ac_status=$? 3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3828 (exit $ac_status); }; } && 3829 { ac_try='test -s conftest.$ac_objext' 3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3831 (eval $ac_try) 2>&5 3832 ac_status=$? 3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3834 (exit $ac_status); }; }; then 3835 ac_cv_header_stdc=yes 3836else 3837 echo "$as_me: failed program was:" >&5 3838sed 's/^/| /' conftest.$ac_ext >&5 3839 3840ac_cv_header_stdc=no 3841fi 3842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3843 3844if test $ac_cv_header_stdc = yes; then 3845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3846 cat >conftest.$ac_ext <<_ACEOF 3847/* confdefs.h. */ 3848_ACEOF 3849cat confdefs.h >>conftest.$ac_ext 3850cat >>conftest.$ac_ext <<_ACEOF 3851/* end confdefs.h. */ 3852#include <string.h> 3853 3854_ACEOF 3855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3856 $EGREP "memchr" >/dev/null 2>&1; then 3857 : 3858else 3859 ac_cv_header_stdc=no 3860fi 3861rm -f conftest* 3862 3863fi 3864 3865if test $ac_cv_header_stdc = yes; then 3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3867 cat >conftest.$ac_ext <<_ACEOF 3868/* confdefs.h. */ 3869_ACEOF 3870cat confdefs.h >>conftest.$ac_ext 3871cat >>conftest.$ac_ext <<_ACEOF 3872/* end confdefs.h. */ 3873#include <stdlib.h> 3874 3875_ACEOF 3876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3877 $EGREP "free" >/dev/null 2>&1; then 3878 : 3879else 3880 ac_cv_header_stdc=no 3881fi 3882rm -f conftest* 3883 3884fi 3885 3886if test $ac_cv_header_stdc = yes; then 3887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3888 if test "$cross_compiling" = yes; then 3889 : 3890else 3891 cat >conftest.$ac_ext <<_ACEOF 3892/* confdefs.h. */ 3893_ACEOF 3894cat confdefs.h >>conftest.$ac_ext 3895cat >>conftest.$ac_ext <<_ACEOF 3896/* end confdefs.h. */ 3897#include <ctype.h> 3898#if ((' ' & 0x0FF) == 0x020) 3899# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3900# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3901#else 3902# define ISLOWER(c) \ 3903 (('a' <= (c) && (c) <= 'i') \ 3904 || ('j' <= (c) && (c) <= 'r') \ 3905 || ('s' <= (c) && (c) <= 'z')) 3906# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3907#endif 3908 3909#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3910int 3911main () 3912{ 3913 int i; 3914 for (i = 0; i < 256; i++) 3915 if (XOR (islower (i), ISLOWER (i)) 3916 || toupper (i) != TOUPPER (i)) 3917 exit(2); 3918 exit (0); 3919} 3920_ACEOF 3921rm -f conftest$ac_exeext 3922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3923 (eval $ac_link) 2>&5 3924 ac_status=$? 3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3928 (eval $ac_try) 2>&5 3929 ac_status=$? 3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3931 (exit $ac_status); }; }; then 3932 : 3933else 3934 echo "$as_me: program exited with status $ac_status" >&5 3935echo "$as_me: failed program was:" >&5 3936sed 's/^/| /' conftest.$ac_ext >&5 3937 3938( exit $ac_status ) 3939ac_cv_header_stdc=no 3940fi 3941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3942fi 3943fi 3944fi 3945echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3946echo "${ECHO_T}$ac_cv_header_stdc" >&6 3947if test $ac_cv_header_stdc = yes; then 3948 3949cat >>confdefs.h <<\_ACEOF 3950#define STDC_HEADERS 1 3951_ACEOF 3952 3953fi 3954 3955# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3966 inttypes.h stdint.h unistd.h 3967do 3968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3969echo "$as_me:$LINENO: checking for $ac_header" >&5 3970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3971if eval "test \"\${$as_ac_Header+set}\" = set"; then 3972 echo $ECHO_N "(cached) $ECHO_C" >&6 3973else 3974 cat >conftest.$ac_ext <<_ACEOF 3975/* confdefs.h. */ 3976_ACEOF 3977cat confdefs.h >>conftest.$ac_ext 3978cat >>conftest.$ac_ext <<_ACEOF 3979/* end confdefs.h. */ 3980$ac_includes_default 3981 3982#include <$ac_header> 3983_ACEOF 3984rm -f conftest.$ac_objext 3985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3986 (eval $ac_compile) 2>conftest.er1 3987 ac_status=$? 3988 grep -v '^ *+' conftest.er1 >conftest.err 3989 rm -f conftest.er1 3990 cat conftest.err >&5 3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3992 (exit $ac_status); } && 3993 { ac_try='test -z "$ac_c_werror_flag" 3994 || test ! -s conftest.err' 3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3996 (eval $ac_try) 2>&5 3997 ac_status=$? 3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3999 (exit $ac_status); }; } && 4000 { ac_try='test -s conftest.$ac_objext' 4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4002 (eval $ac_try) 2>&5 4003 ac_status=$? 4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 (exit $ac_status); }; }; then 4006 eval "$as_ac_Header=yes" 4007else 4008 echo "$as_me: failed program was:" >&5 4009sed 's/^/| /' conftest.$ac_ext >&5 4010 4011eval "$as_ac_Header=no" 4012fi 4013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4014fi 4015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4017if test `eval echo '${'$as_ac_Header'}'` = yes; then 4018 cat >>confdefs.h <<_ACEOF 4019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4020_ACEOF 4021 4022fi 4023 4024done 4025 4026 4027 4028 4029for ac_header in locale.h 4030do 4031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4032if eval "test \"\${$as_ac_Header+set}\" = set"; then 4033 echo "$as_me:$LINENO: checking for $ac_header" >&5 4034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4035if eval "test \"\${$as_ac_Header+set}\" = set"; then 4036 echo $ECHO_N "(cached) $ECHO_C" >&6 4037fi 4038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4040else 4041 # Is the header compilable? 4042echo "$as_me:$LINENO: checking $ac_header usability" >&5 4043echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4044cat >conftest.$ac_ext <<_ACEOF 4045/* confdefs.h. */ 4046_ACEOF 4047cat confdefs.h >>conftest.$ac_ext 4048cat >>conftest.$ac_ext <<_ACEOF 4049/* end confdefs.h. */ 4050$ac_includes_default 4051#include <$ac_header> 4052_ACEOF 4053rm -f conftest.$ac_objext 4054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4055 (eval $ac_compile) 2>conftest.er1 4056 ac_status=$? 4057 grep -v '^ *+' conftest.er1 >conftest.err 4058 rm -f conftest.er1 4059 cat conftest.err >&5 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); } && 4062 { ac_try='test -z "$ac_c_werror_flag" 4063 || test ! -s conftest.err' 4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4065 (eval $ac_try) 2>&5 4066 ac_status=$? 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); }; } && 4069 { ac_try='test -s conftest.$ac_objext' 4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4071 (eval $ac_try) 2>&5 4072 ac_status=$? 4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4074 (exit $ac_status); }; }; then 4075 ac_header_compiler=yes 4076else 4077 echo "$as_me: failed program was:" >&5 4078sed 's/^/| /' conftest.$ac_ext >&5 4079 4080ac_header_compiler=no 4081fi 4082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4084echo "${ECHO_T}$ac_header_compiler" >&6 4085 4086# Is the header present? 4087echo "$as_me:$LINENO: checking $ac_header presence" >&5 4088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4089cat >conftest.$ac_ext <<_ACEOF 4090/* confdefs.h. */ 4091_ACEOF 4092cat confdefs.h >>conftest.$ac_ext 4093cat >>conftest.$ac_ext <<_ACEOF 4094/* end confdefs.h. */ 4095#include <$ac_header> 4096_ACEOF 4097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4099 ac_status=$? 4100 grep -v '^ *+' conftest.er1 >conftest.err 4101 rm -f conftest.er1 4102 cat conftest.err >&5 4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4104 (exit $ac_status); } >/dev/null; then 4105 if test -s conftest.err; then 4106 ac_cpp_err=$ac_c_preproc_warn_flag 4107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4108 else 4109 ac_cpp_err= 4110 fi 4111else 4112 ac_cpp_err=yes 4113fi 4114if test -z "$ac_cpp_err"; then 4115 ac_header_preproc=yes 4116else 4117 echo "$as_me: failed program was:" >&5 4118sed 's/^/| /' conftest.$ac_ext >&5 4119 4120 ac_header_preproc=no 4121fi 4122rm -f conftest.err conftest.$ac_ext 4123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4124echo "${ECHO_T}$ac_header_preproc" >&6 4125 4126# So? What about this header? 4127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4128 yes:no: ) 4129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4133 ac_header_preproc=yes 4134 ;; 4135 no:yes:* ) 4136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4148 ( 4149 cat <<\_ASBOX 4150## ------------------------------------ ## 4151## Report this to http://dbf.berlios.de ## 4152## ------------------------------------ ## 4153_ASBOX 4154 ) | 4155 sed "s/^/$as_me: WARNING: /" >&2 4156 ;; 4157esac 4158echo "$as_me:$LINENO: checking for $ac_header" >&5 4159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4160if eval "test \"\${$as_ac_Header+set}\" = set"; then 4161 echo $ECHO_N "(cached) $ECHO_C" >&6 4162else 4163 eval "$as_ac_Header=\$ac_header_preproc" 4164fi 4165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4167 4168fi 4169if test `eval echo '${'$as_ac_Header'}'` = yes; then 4170 cat >>confdefs.h <<_ACEOF 4171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4172_ACEOF 4173 4174fi 4175 4176done 4177 4178 if test $ac_cv_header_locale_h = yes; then 4179 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 4180echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 4181if test "${am_cv_val_LC_MESSAGES+set}" = set; then 4182 echo $ECHO_N "(cached) $ECHO_C" >&6 4183else 4184 cat >conftest.$ac_ext <<_ACEOF 4185/* confdefs.h. */ 4186_ACEOF 4187cat confdefs.h >>conftest.$ac_ext 4188cat >>conftest.$ac_ext <<_ACEOF 4189/* end confdefs.h. */ 4190#include <locale.h> 4191int 4192main () 4193{ 4194return LC_MESSAGES 4195 ; 4196 return 0; 4197} 4198_ACEOF 4199rm -f conftest.$ac_objext conftest$ac_exeext 4200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4201 (eval $ac_link) 2>conftest.er1 4202 ac_status=$? 4203 grep -v '^ *+' conftest.er1 >conftest.err 4204 rm -f conftest.er1 4205 cat conftest.err >&5 4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4207 (exit $ac_status); } && 4208 { ac_try='test -z "$ac_c_werror_flag" 4209 || test ! -s conftest.err' 4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4211 (eval $ac_try) 2>&5 4212 ac_status=$? 4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4214 (exit $ac_status); }; } && 4215 { ac_try='test -s conftest$ac_exeext' 4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4217 (eval $ac_try) 2>&5 4218 ac_status=$? 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4220 (exit $ac_status); }; }; then 4221 am_cv_val_LC_MESSAGES=yes 4222else 4223 echo "$as_me: failed program was:" >&5 4224sed 's/^/| /' conftest.$ac_ext >&5 4225 4226am_cv_val_LC_MESSAGES=no 4227fi 4228rm -f conftest.err conftest.$ac_objext \ 4229 conftest$ac_exeext conftest.$ac_ext 4230fi 4231echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 4232echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 4233 if test $am_cv_val_LC_MESSAGES = yes; then 4234 4235cat >>confdefs.h <<\_ACEOF 4236#define HAVE_LC_MESSAGES 1 4237_ACEOF 4238 4239 fi 4240 fi 4241 USE_NLS=yes 4242 4243 4244 gt_cv_have_gettext=no 4245 4246 CATOBJEXT=NONE 4247 XGETTEXT=: 4248 INTLLIBS= 4249 4250 if test "${ac_cv_header_libintl_h+set}" = set; then 4251 echo "$as_me:$LINENO: checking for libintl.h" >&5 4252echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 4253if test "${ac_cv_header_libintl_h+set}" = set; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255fi 4256echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 4257echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 4258else 4259 # Is the header compilable? 4260echo "$as_me:$LINENO: checking libintl.h usability" >&5 4261echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 4262cat >conftest.$ac_ext <<_ACEOF 4263/* confdefs.h. */ 4264_ACEOF 4265cat confdefs.h >>conftest.$ac_ext 4266cat >>conftest.$ac_ext <<_ACEOF 4267/* end confdefs.h. */ 4268$ac_includes_default 4269#include <libintl.h> 4270_ACEOF 4271rm -f conftest.$ac_objext 4272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4273 (eval $ac_compile) 2>conftest.er1 4274 ac_status=$? 4275 grep -v '^ *+' conftest.er1 >conftest.err 4276 rm -f conftest.er1 4277 cat conftest.err >&5 4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4279 (exit $ac_status); } && 4280 { ac_try='test -z "$ac_c_werror_flag" 4281 || test ! -s conftest.err' 4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4283 (eval $ac_try) 2>&5 4284 ac_status=$? 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); }; } && 4287 { ac_try='test -s conftest.$ac_objext' 4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4289 (eval $ac_try) 2>&5 4290 ac_status=$? 4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4292 (exit $ac_status); }; }; then 4293 ac_header_compiler=yes 4294else 4295 echo "$as_me: failed program was:" >&5 4296sed 's/^/| /' conftest.$ac_ext >&5 4297 4298ac_header_compiler=no 4299fi 4300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4302echo "${ECHO_T}$ac_header_compiler" >&6 4303 4304# Is the header present? 4305echo "$as_me:$LINENO: checking libintl.h presence" >&5 4306echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 4307cat >conftest.$ac_ext <<_ACEOF 4308/* confdefs.h. */ 4309_ACEOF 4310cat confdefs.h >>conftest.$ac_ext 4311cat >>conftest.$ac_ext <<_ACEOF 4312/* end confdefs.h. */ 4313#include <libintl.h> 4314_ACEOF 4315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4317 ac_status=$? 4318 grep -v '^ *+' conftest.er1 >conftest.err 4319 rm -f conftest.er1 4320 cat conftest.err >&5 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); } >/dev/null; then 4323 if test -s conftest.err; then 4324 ac_cpp_err=$ac_c_preproc_warn_flag 4325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4326 else 4327 ac_cpp_err= 4328 fi 4329else 4330 ac_cpp_err=yes 4331fi 4332if test -z "$ac_cpp_err"; then 4333 ac_header_preproc=yes 4334else 4335 echo "$as_me: failed program was:" >&5 4336sed 's/^/| /' conftest.$ac_ext >&5 4337 4338 ac_header_preproc=no 4339fi 4340rm -f conftest.err conftest.$ac_ext 4341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4342echo "${ECHO_T}$ac_header_preproc" >&6 4343 4344# So? What about this header? 4345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4346 yes:no: ) 4347 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 4348echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4349 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 4350echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 4351 ac_header_preproc=yes 4352 ;; 4353 no:yes:* ) 4354 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 4355echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 4356 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 4357echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 4358 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 4359echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 4360 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 4361echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 4362 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 4363echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 4364 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 4365echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 4366 ( 4367 cat <<\_ASBOX 4368## ------------------------------------ ## 4369## Report this to http://dbf.berlios.de ## 4370## ------------------------------------ ## 4371_ASBOX 4372 ) | 4373 sed "s/^/$as_me: WARNING: /" >&2 4374 ;; 4375esac 4376echo "$as_me:$LINENO: checking for libintl.h" >&5 4377echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 4378if test "${ac_cv_header_libintl_h+set}" = set; then 4379 echo $ECHO_N "(cached) $ECHO_C" >&6 4380else 4381 ac_cv_header_libintl_h=$ac_header_preproc 4382fi 4383echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 4384echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 4385 4386fi 4387if test $ac_cv_header_libintl_h = yes; then 4388 gt_cv_func_dgettext_libintl="no" 4389 libintl_extra_libs="" 4390 4391 # 4392 # First check in libc 4393 # 4394 echo "$as_me:$LINENO: checking for ngettext in libc" >&5 4395echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6 4396if test "${gt_cv_func_ngettext_libc+set}" = set; then 4397 echo $ECHO_N "(cached) $ECHO_C" >&6 4398else 4399 cat >conftest.$ac_ext <<_ACEOF 4400/* confdefs.h. */ 4401_ACEOF 4402cat confdefs.h >>conftest.$ac_ext 4403cat >>conftest.$ac_ext <<_ACEOF 4404/* end confdefs.h. */ 4405 4406#include <libintl.h> 4407 4408int 4409main () 4410{ 4411return !ngettext ("","", 1) 4412 ; 4413 return 0; 4414} 4415_ACEOF 4416rm -f conftest.$ac_objext conftest$ac_exeext 4417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4418 (eval $ac_link) 2>conftest.er1 4419 ac_status=$? 4420 grep -v '^ *+' conftest.er1 >conftest.err 4421 rm -f conftest.er1 4422 cat conftest.err >&5 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); } && 4425 { ac_try='test -z "$ac_c_werror_flag" 4426 || test ! -s conftest.err' 4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4428 (eval $ac_try) 2>&5 4429 ac_status=$? 4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4431 (exit $ac_status); }; } && 4432 { ac_try='test -s conftest$ac_exeext' 4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4434 (eval $ac_try) 2>&5 4435 ac_status=$? 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); }; }; then 4438 gt_cv_func_ngettext_libc=yes 4439else 4440 echo "$as_me: failed program was:" >&5 4441sed 's/^/| /' conftest.$ac_ext >&5 4442 4443gt_cv_func_ngettext_libc=no 4444fi 4445rm -f conftest.err conftest.$ac_objext \ 4446 conftest$ac_exeext conftest.$ac_ext 4447 4448fi 4449echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 4450echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6 4451 4452 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 4453 echo "$as_me:$LINENO: checking for dgettext in libc" >&5 4454echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6 4455if test "${gt_cv_func_dgettext_libc+set}" = set; then 4456 echo $ECHO_N "(cached) $ECHO_C" >&6 4457else 4458 cat >conftest.$ac_ext <<_ACEOF 4459/* confdefs.h. */ 4460_ACEOF 4461cat confdefs.h >>conftest.$ac_ext 4462cat >>conftest.$ac_ext <<_ACEOF 4463/* end confdefs.h. */ 4464 4465#include <libintl.h> 4466 4467int 4468main () 4469{ 4470return !dgettext ("","") 4471 ; 4472 return 0; 4473} 4474_ACEOF 4475rm -f conftest.$ac_objext conftest$ac_exeext 4476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4477 (eval $ac_link) 2>conftest.er1 4478 ac_status=$? 4479 grep -v '^ *+' conftest.er1 >conftest.err 4480 rm -f conftest.er1 4481 cat conftest.err >&5 4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); } && 4484 { ac_try='test -z "$ac_c_werror_flag" 4485 || test ! -s conftest.err' 4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4487 (eval $ac_try) 2>&5 4488 ac_status=$? 4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4490 (exit $ac_status); }; } && 4491 { ac_try='test -s conftest$ac_exeext' 4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4493 (eval $ac_try) 2>&5 4494 ac_status=$? 4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4496 (exit $ac_status); }; }; then 4497 gt_cv_func_dgettext_libc=yes 4498else 4499 echo "$as_me: failed program was:" >&5 4500sed 's/^/| /' conftest.$ac_ext >&5 4501 4502gt_cv_func_dgettext_libc=no 4503fi 4504rm -f conftest.err conftest.$ac_objext \ 4505 conftest$ac_exeext conftest.$ac_ext 4506 4507fi 4508echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 4509echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6 4510 fi 4511 4512 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 4513 4514for ac_func in bind_textdomain_codeset 4515do 4516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4517echo "$as_me:$LINENO: checking for $ac_func" >&5 4518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4519if eval "test \"\${$as_ac_var+set}\" = set"; then 4520 echo $ECHO_N "(cached) $ECHO_C" >&6 4521else 4522 cat >conftest.$ac_ext <<_ACEOF 4523/* confdefs.h. */ 4524_ACEOF 4525cat confdefs.h >>conftest.$ac_ext 4526cat >>conftest.$ac_ext <<_ACEOF 4527/* end confdefs.h. */ 4528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4529 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4530#define $ac_func innocuous_$ac_func 4531 4532/* System header to define __stub macros and hopefully few prototypes, 4533 which can conflict with char $ac_func (); below. 4534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4535 <limits.h> exists even on freestanding compilers. */ 4536 4537#ifdef __STDC__ 4538# include <limits.h> 4539#else 4540# include <assert.h> 4541#endif 4542 4543#undef $ac_func 4544 4545/* Override any gcc2 internal prototype to avoid an error. */ 4546#ifdef __cplusplus 4547extern "C" 4548{ 4549#endif 4550/* We use char because int might match the return type of a gcc2 4551 builtin and then its argument prototype would still apply. */ 4552char $ac_func (); 4553/* The GNU C library defines this for functions which it implements 4554 to always fail with ENOSYS. Some functions are actually named 4555 something starting with __ and the normal name is an alias. */ 4556#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4557choke me 4558#else 4559char (*f) () = $ac_func; 4560#endif 4561#ifdef __cplusplus 4562} 4563#endif 4564 4565int 4566main () 4567{ 4568return f != $ac_func; 4569 ; 4570 return 0; 4571} 4572_ACEOF 4573rm -f conftest.$ac_objext conftest$ac_exeext 4574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4575 (eval $ac_link) 2>conftest.er1 4576 ac_status=$? 4577 grep -v '^ *+' conftest.er1 >conftest.err 4578 rm -f conftest.er1 4579 cat conftest.err >&5 4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4581 (exit $ac_status); } && 4582 { ac_try='test -z "$ac_c_werror_flag" 4583 || test ! -s conftest.err' 4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4585 (eval $ac_try) 2>&5 4586 ac_status=$? 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); }; } && 4589 { ac_try='test -s conftest$ac_exeext' 4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4591 (eval $ac_try) 2>&5 4592 ac_status=$? 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); }; }; then 4595 eval "$as_ac_var=yes" 4596else 4597 echo "$as_me: failed program was:" >&5 4598sed 's/^/| /' conftest.$ac_ext >&5 4599 4600eval "$as_ac_var=no" 4601fi 4602rm -f conftest.err conftest.$ac_objext \ 4603 conftest$ac_exeext conftest.$ac_ext 4604fi 4605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4607if test `eval echo '${'$as_ac_var'}'` = yes; then 4608 cat >>confdefs.h <<_ACEOF 4609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4610_ACEOF 4611 4612fi 4613done 4614 4615 fi 4616 4617 # 4618 # If we don't have everything we want, check in libintl 4619 # 4620 if test "$gt_cv_func_dgettext_libc" != "yes" \ 4621 || test "$gt_cv_func_ngettext_libc" != "yes" \ 4622 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 4623 4624 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 4625echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 4626if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 4627 echo $ECHO_N "(cached) $ECHO_C" >&6 4628else 4629 ac_check_lib_save_LIBS=$LIBS 4630LIBS="-lintl $LIBS" 4631cat >conftest.$ac_ext <<_ACEOF 4632/* confdefs.h. */ 4633_ACEOF 4634cat confdefs.h >>conftest.$ac_ext 4635cat >>conftest.$ac_ext <<_ACEOF 4636/* end confdefs.h. */ 4637 4638/* Override any gcc2 internal prototype to avoid an error. */ 4639#ifdef __cplusplus 4640extern "C" 4641#endif 4642/* We use char because int might match the return type of a gcc2 4643 builtin and then its argument prototype would still apply. */ 4644char bindtextdomain (); 4645int 4646main () 4647{ 4648bindtextdomain (); 4649 ; 4650 return 0; 4651} 4652_ACEOF 4653rm -f conftest.$ac_objext conftest$ac_exeext 4654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4655 (eval $ac_link) 2>conftest.er1 4656 ac_status=$? 4657 grep -v '^ *+' conftest.er1 >conftest.err 4658 rm -f conftest.er1 4659 cat conftest.err >&5 4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4661 (exit $ac_status); } && 4662 { ac_try='test -z "$ac_c_werror_flag" 4663 || test ! -s conftest.err' 4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4665 (eval $ac_try) 2>&5 4666 ac_status=$? 4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4668 (exit $ac_status); }; } && 4669 { ac_try='test -s conftest$ac_exeext' 4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4671 (eval $ac_try) 2>&5 4672 ac_status=$? 4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4674 (exit $ac_status); }; }; then 4675 ac_cv_lib_intl_bindtextdomain=yes 4676else 4677 echo "$as_me: failed program was:" >&5 4678sed 's/^/| /' conftest.$ac_ext >&5 4679 4680ac_cv_lib_intl_bindtextdomain=no 4681fi 4682rm -f conftest.err conftest.$ac_objext \ 4683 conftest$ac_exeext conftest.$ac_ext 4684LIBS=$ac_check_lib_save_LIBS 4685fi 4686echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 4687echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 4688if test $ac_cv_lib_intl_bindtextdomain = yes; then 4689 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 4690echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6 4691if test "${ac_cv_lib_intl_ngettext+set}" = set; then 4692 echo $ECHO_N "(cached) $ECHO_C" >&6 4693else 4694 ac_check_lib_save_LIBS=$LIBS 4695LIBS="-lintl $LIBS" 4696cat >conftest.$ac_ext <<_ACEOF 4697/* confdefs.h. */ 4698_ACEOF 4699cat confdefs.h >>conftest.$ac_ext 4700cat >>conftest.$ac_ext <<_ACEOF 4701/* end confdefs.h. */ 4702 4703/* Override any gcc2 internal prototype to avoid an error. */ 4704#ifdef __cplusplus 4705extern "C" 4706#endif 4707/* We use char because int might match the return type of a gcc2 4708 builtin and then its argument prototype would still apply. */ 4709char ngettext (); 4710int 4711main () 4712{ 4713ngettext (); 4714 ; 4715 return 0; 4716} 4717_ACEOF 4718rm -f conftest.$ac_objext conftest$ac_exeext 4719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4720 (eval $ac_link) 2>conftest.er1 4721 ac_status=$? 4722 grep -v '^ *+' conftest.er1 >conftest.err 4723 rm -f conftest.er1 4724 cat conftest.err >&5 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); } && 4727 { ac_try='test -z "$ac_c_werror_flag" 4728 || test ! -s conftest.err' 4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4730 (eval $ac_try) 2>&5 4731 ac_status=$? 4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4733 (exit $ac_status); }; } && 4734 { ac_try='test -s conftest$ac_exeext' 4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4736 (eval $ac_try) 2>&5 4737 ac_status=$? 4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4739 (exit $ac_status); }; }; then 4740 ac_cv_lib_intl_ngettext=yes 4741else 4742 echo "$as_me: failed program was:" >&5 4743sed 's/^/| /' conftest.$ac_ext >&5 4744 4745ac_cv_lib_intl_ngettext=no 4746fi 4747rm -f conftest.err conftest.$ac_objext \ 4748 conftest$ac_exeext conftest.$ac_ext 4749LIBS=$ac_check_lib_save_LIBS 4750fi 4751echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 4752echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6 4753if test $ac_cv_lib_intl_ngettext = yes; then 4754 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 4755echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 4756if test "${ac_cv_lib_intl_dgettext+set}" = set; then 4757 echo $ECHO_N "(cached) $ECHO_C" >&6 4758else 4759 ac_check_lib_save_LIBS=$LIBS 4760LIBS="-lintl $LIBS" 4761cat >conftest.$ac_ext <<_ACEOF 4762/* confdefs.h. */ 4763_ACEOF 4764cat confdefs.h >>conftest.$ac_ext 4765cat >>conftest.$ac_ext <<_ACEOF 4766/* end confdefs.h. */ 4767 4768/* Override any gcc2 internal prototype to avoid an error. */ 4769#ifdef __cplusplus 4770extern "C" 4771#endif 4772/* We use char because int might match the return type of a gcc2 4773 builtin and then its argument prototype would still apply. */ 4774char dgettext (); 4775int 4776main () 4777{ 4778dgettext (); 4779 ; 4780 return 0; 4781} 4782_ACEOF 4783rm -f conftest.$ac_objext conftest$ac_exeext 4784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4785 (eval $ac_link) 2>conftest.er1 4786 ac_status=$? 4787 grep -v '^ *+' conftest.er1 >conftest.err 4788 rm -f conftest.er1 4789 cat conftest.err >&5 4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 (exit $ac_status); } && 4792 { ac_try='test -z "$ac_c_werror_flag" 4793 || test ! -s conftest.err' 4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4795 (eval $ac_try) 2>&5 4796 ac_status=$? 4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 (exit $ac_status); }; } && 4799 { ac_try='test -s conftest$ac_exeext' 4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4801 (eval $ac_try) 2>&5 4802 ac_status=$? 4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4804 (exit $ac_status); }; }; then 4805 ac_cv_lib_intl_dgettext=yes 4806else 4807 echo "$as_me: failed program was:" >&5 4808sed 's/^/| /' conftest.$ac_ext >&5 4809 4810ac_cv_lib_intl_dgettext=no 4811fi 4812rm -f conftest.err conftest.$ac_objext \ 4813 conftest$ac_exeext conftest.$ac_ext 4814LIBS=$ac_check_lib_save_LIBS 4815fi 4816echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 4817echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 4818if test $ac_cv_lib_intl_dgettext = yes; then 4819 gt_cv_func_dgettext_libintl=yes 4820fi 4821 4822fi 4823 4824fi 4825 4826 4827 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 4828 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 4829echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6 4830 echo "$as_me:$LINENO: result: " >&5 4831echo "${ECHO_T}" >&6 4832 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 4833echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6 4834if test "${ac_cv_lib_intl_ngettext+set}" = set; then 4835 echo $ECHO_N "(cached) $ECHO_C" >&6 4836else 4837 ac_check_lib_save_LIBS=$LIBS 4838LIBS="-lintl -liconv $LIBS" 4839cat >conftest.$ac_ext <<_ACEOF 4840/* confdefs.h. */ 4841_ACEOF 4842cat confdefs.h >>conftest.$ac_ext 4843cat >>conftest.$ac_ext <<_ACEOF 4844/* end confdefs.h. */ 4845 4846/* Override any gcc2 internal prototype to avoid an error. */ 4847#ifdef __cplusplus 4848extern "C" 4849#endif 4850/* We use char because int might match the return type of a gcc2 4851 builtin and then its argument prototype would still apply. */ 4852char ngettext (); 4853int 4854main () 4855{ 4856ngettext (); 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861rm -f conftest.$ac_objext conftest$ac_exeext 4862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4863 (eval $ac_link) 2>conftest.er1 4864 ac_status=$? 4865 grep -v '^ *+' conftest.er1 >conftest.err 4866 rm -f conftest.er1 4867 cat conftest.err >&5 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); } && 4870 { ac_try='test -z "$ac_c_werror_flag" 4871 || test ! -s conftest.err' 4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4873 (eval $ac_try) 2>&5 4874 ac_status=$? 4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4876 (exit $ac_status); }; } && 4877 { ac_try='test -s conftest$ac_exeext' 4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4879 (eval $ac_try) 2>&5 4880 ac_status=$? 4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4882 (exit $ac_status); }; }; then 4883 ac_cv_lib_intl_ngettext=yes 4884else 4885 echo "$as_me: failed program was:" >&5 4886sed 's/^/| /' conftest.$ac_ext >&5 4887 4888ac_cv_lib_intl_ngettext=no 4889fi 4890rm -f conftest.err conftest.$ac_objext \ 4891 conftest$ac_exeext conftest.$ac_ext 4892LIBS=$ac_check_lib_save_LIBS 4893fi 4894echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 4895echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6 4896if test $ac_cv_lib_intl_ngettext = yes; then 4897 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 4898echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6 4899if test "${ac_cv_lib_intl_dcgettext+set}" = set; then 4900 echo $ECHO_N "(cached) $ECHO_C" >&6 4901else 4902 ac_check_lib_save_LIBS=$LIBS 4903LIBS="-lintl -liconv $LIBS" 4904cat >conftest.$ac_ext <<_ACEOF 4905/* confdefs.h. */ 4906_ACEOF 4907cat confdefs.h >>conftest.$ac_ext 4908cat >>conftest.$ac_ext <<_ACEOF 4909/* end confdefs.h. */ 4910 4911/* Override any gcc2 internal prototype to avoid an error. */ 4912#ifdef __cplusplus 4913extern "C" 4914#endif 4915/* We use char because int might match the return type of a gcc2 4916 builtin and then its argument prototype would still apply. */ 4917char dcgettext (); 4918int 4919main () 4920{ 4921dcgettext (); 4922 ; 4923 return 0; 4924} 4925_ACEOF 4926rm -f conftest.$ac_objext conftest$ac_exeext 4927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4928 (eval $ac_link) 2>conftest.er1 4929 ac_status=$? 4930 grep -v '^ *+' conftest.er1 >conftest.err 4931 rm -f conftest.er1 4932 cat conftest.err >&5 4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4934 (exit $ac_status); } && 4935 { ac_try='test -z "$ac_c_werror_flag" 4936 || test ! -s conftest.err' 4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4938 (eval $ac_try) 2>&5 4939 ac_status=$? 4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4941 (exit $ac_status); }; } && 4942 { ac_try='test -s conftest$ac_exeext' 4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4944 (eval $ac_try) 2>&5 4945 ac_status=$? 4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4947 (exit $ac_status); }; }; then 4948 ac_cv_lib_intl_dcgettext=yes 4949else 4950 echo "$as_me: failed program was:" >&5 4951sed 's/^/| /' conftest.$ac_ext >&5 4952 4953ac_cv_lib_intl_dcgettext=no 4954fi 4955rm -f conftest.err conftest.$ac_objext \ 4956 conftest$ac_exeext conftest.$ac_ext 4957LIBS=$ac_check_lib_save_LIBS 4958fi 4959echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 4960echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6 4961if test $ac_cv_lib_intl_dcgettext = yes; then 4962 gt_cv_func_dgettext_libintl=yes 4963 libintl_extra_libs=-liconv 4964else 4965 : 4966fi 4967 4968else 4969 : 4970fi 4971 4972 fi 4973 4974 # 4975 # If we found libintl, then check in it for bind_textdomain_codeset(); 4976 # we'll prefer libc if neither have bind_textdomain_codeset(), 4977 # and both have dgettext and ngettext 4978 # 4979 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 4980 glib_save_LIBS="$LIBS" 4981 LIBS="$LIBS -lintl $libintl_extra_libs" 4982 unset ac_cv_func_bind_textdomain_codeset 4983 4984for ac_func in bind_textdomain_codeset 4985do 4986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4987echo "$as_me:$LINENO: checking for $ac_func" >&5 4988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4989if eval "test \"\${$as_ac_var+set}\" = set"; then 4990 echo $ECHO_N "(cached) $ECHO_C" >&6 4991else 4992 cat >conftest.$ac_ext <<_ACEOF 4993/* confdefs.h. */ 4994_ACEOF 4995cat confdefs.h >>conftest.$ac_ext 4996cat >>conftest.$ac_ext <<_ACEOF 4997/* end confdefs.h. */ 4998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4999 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5000#define $ac_func innocuous_$ac_func 5001 5002/* System header to define __stub macros and hopefully few prototypes, 5003 which can conflict with char $ac_func (); below. 5004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5005 <limits.h> exists even on freestanding compilers. */ 5006 5007#ifdef __STDC__ 5008# include <limits.h> 5009#else 5010# include <assert.h> 5011#endif 5012 5013#undef $ac_func 5014 5015/* Override any gcc2 internal prototype to avoid an error. */ 5016#ifdef __cplusplus 5017extern "C" 5018{ 5019#endif 5020/* We use char because int might match the return type of a gcc2 5021 builtin and then its argument prototype would still apply. */ 5022char $ac_func (); 5023/* The GNU C library defines this for functions which it implements 5024 to always fail with ENOSYS. Some functions are actually named 5025 something starting with __ and the normal name is an alias. */ 5026#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5027choke me 5028#else 5029char (*f) () = $ac_func; 5030#endif 5031#ifdef __cplusplus 5032} 5033#endif 5034 5035int 5036main () 5037{ 5038return f != $ac_func; 5039 ; 5040 return 0; 5041} 5042_ACEOF 5043rm -f conftest.$ac_objext conftest$ac_exeext 5044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5045 (eval $ac_link) 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); } && 5052 { ac_try='test -z "$ac_c_werror_flag" 5053 || test ! -s conftest.err' 5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5055 (eval $ac_try) 2>&5 5056 ac_status=$? 5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5058 (exit $ac_status); }; } && 5059 { ac_try='test -s conftest$ac_exeext' 5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5061 (eval $ac_try) 2>&5 5062 ac_status=$? 5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5064 (exit $ac_status); }; }; then 5065 eval "$as_ac_var=yes" 5066else 5067 echo "$as_me: failed program was:" >&5 5068sed 's/^/| /' conftest.$ac_ext >&5 5069 5070eval "$as_ac_var=no" 5071fi 5072rm -f conftest.err conftest.$ac_objext \ 5073 conftest$ac_exeext conftest.$ac_ext 5074fi 5075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5077if test `eval echo '${'$as_ac_var'}'` = yes; then 5078 cat >>confdefs.h <<_ACEOF 5079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5080_ACEOF 5081 5082fi 5083done 5084 5085 LIBS="$glib_save_LIBS" 5086 5087 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 5088 gt_cv_func_dgettext_libc=no 5089 else 5090 if test "$gt_cv_func_dgettext_libc" = "yes" \ 5091 && test "$gt_cv_func_ngettext_libc" = "yes"; then 5092 gt_cv_func_dgettext_libintl=no 5093 fi 5094 fi 5095 fi 5096 fi 5097 5098 if test "$gt_cv_func_dgettext_libc" = "yes" \ 5099 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 5100 gt_cv_have_gettext=yes 5101 fi 5102 5103 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 5104 INTLLIBS="-lintl $libintl_extra_libs" 5105 fi 5106 5107 if test "$gt_cv_have_gettext" = "yes"; then 5108 5109cat >>confdefs.h <<\_ACEOF 5110#define HAVE_GETTEXT 1 5111_ACEOF 5112 5113 # Extract the first word of "msgfmt", so it can be a program name with args. 5114set dummy msgfmt; ac_word=$2 5115echo "$as_me:$LINENO: checking for $ac_word" >&5 5116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5117if test "${ac_cv_path_MSGFMT+set}" = set; then 5118 echo $ECHO_N "(cached) $ECHO_C" >&6 5119else 5120 case "$MSGFMT" in 5121 /*) 5122 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5123 ;; 5124 *) 5125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5126 for ac_dir in $PATH; do 5127 test -z "$ac_dir" && ac_dir=. 5128 if test -f $ac_dir/$ac_word; then 5129 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 5130 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 5131 break 5132 fi 5133 fi 5134 done 5135 IFS="$ac_save_ifs" 5136 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 5137 ;; 5138esac 5139fi 5140MSGFMT="$ac_cv_path_MSGFMT" 5141if test "$MSGFMT" != "no"; then 5142 echo "$as_me:$LINENO: result: $MSGFMT" >&5 5143echo "${ECHO_T}$MSGFMT" >&6 5144else 5145 echo "$as_me:$LINENO: result: no" >&5 5146echo "${ECHO_T}no" >&6 5147fi 5148 if test "$MSGFMT" != "no"; then 5149 glib_save_LIBS="$LIBS" 5150 LIBS="$LIBS $INTLLIBS" 5151 5152for ac_func in dcgettext 5153do 5154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5155echo "$as_me:$LINENO: checking for $ac_func" >&5 5156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5157if eval "test \"\${$as_ac_var+set}\" = set"; then 5158 echo $ECHO_N "(cached) $ECHO_C" >&6 5159else 5160 cat >conftest.$ac_ext <<_ACEOF 5161/* confdefs.h. */ 5162_ACEOF 5163cat confdefs.h >>conftest.$ac_ext 5164cat >>conftest.$ac_ext <<_ACEOF 5165/* end confdefs.h. */ 5166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5167 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5168#define $ac_func innocuous_$ac_func 5169 5170/* System header to define __stub macros and hopefully few prototypes, 5171 which can conflict with char $ac_func (); below. 5172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5173 <limits.h> exists even on freestanding compilers. */ 5174 5175#ifdef __STDC__ 5176# include <limits.h> 5177#else 5178# include <assert.h> 5179#endif 5180 5181#undef $ac_func 5182 5183/* Override any gcc2 internal prototype to avoid an error. */ 5184#ifdef __cplusplus 5185extern "C" 5186{ 5187#endif 5188/* We use char because int might match the return type of a gcc2 5189 builtin and then its argument prototype would still apply. */ 5190char $ac_func (); 5191/* The GNU C library defines this for functions which it implements 5192 to always fail with ENOSYS. Some functions are actually named 5193 something starting with __ and the normal name is an alias. */ 5194#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5195choke me 5196#else 5197char (*f) () = $ac_func; 5198#endif 5199#ifdef __cplusplus 5200} 5201#endif 5202 5203int 5204main () 5205{ 5206return f != $ac_func; 5207 ; 5208 return 0; 5209} 5210_ACEOF 5211rm -f conftest.$ac_objext conftest$ac_exeext 5212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5213 (eval $ac_link) 2>conftest.er1 5214 ac_status=$? 5215 grep -v '^ *+' conftest.er1 >conftest.err 5216 rm -f conftest.er1 5217 cat conftest.err >&5 5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5219 (exit $ac_status); } && 5220 { ac_try='test -z "$ac_c_werror_flag" 5221 || test ! -s conftest.err' 5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5223 (eval $ac_try) 2>&5 5224 ac_status=$? 5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5226 (exit $ac_status); }; } && 5227 { ac_try='test -s conftest$ac_exeext' 5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5229 (eval $ac_try) 2>&5 5230 ac_status=$? 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); }; }; then 5233 eval "$as_ac_var=yes" 5234else 5235 echo "$as_me: failed program was:" >&5 5236sed 's/^/| /' conftest.$ac_ext >&5 5237 5238eval "$as_ac_var=no" 5239fi 5240rm -f conftest.err conftest.$ac_objext \ 5241 conftest$ac_exeext conftest.$ac_ext 5242fi 5243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5244echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5245if test `eval echo '${'$as_ac_var'}'` = yes; then 5246 cat >>confdefs.h <<_ACEOF 5247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5248_ACEOF 5249 5250fi 5251done 5252 5253 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5254set dummy gmsgfmt; ac_word=$2 5255echo "$as_me:$LINENO: checking for $ac_word" >&5 5256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5257if test "${ac_cv_path_GMSGFMT+set}" = set; then 5258 echo $ECHO_N "(cached) $ECHO_C" >&6 5259else 5260 case $GMSGFMT in 5261 [\\/]* | ?:[\\/]*) 5262 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5263 ;; 5264 *) 5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5266for as_dir in $PATH 5267do 5268 IFS=$as_save_IFS 5269 test -z "$as_dir" && as_dir=. 5270 for ac_exec_ext in '' $ac_executable_extensions; do 5271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5272 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5274 break 2 5275 fi 5276done 5277done 5278 5279 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5280 ;; 5281esac 5282fi 5283GMSGFMT=$ac_cv_path_GMSGFMT 5284 5285if test -n "$GMSGFMT"; then 5286 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 5287echo "${ECHO_T}$GMSGFMT" >&6 5288else 5289 echo "$as_me:$LINENO: result: no" >&5 5290echo "${ECHO_T}no" >&6 5291fi 5292 5293 # Extract the first word of "xgettext", so it can be a program name with args. 5294set dummy xgettext; ac_word=$2 5295echo "$as_me:$LINENO: checking for $ac_word" >&5 5296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5297if test "${ac_cv_path_XGETTEXT+set}" = set; then 5298 echo $ECHO_N "(cached) $ECHO_C" >&6 5299else 5300 case "$XGETTEXT" in 5301 /*) 5302 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5303 ;; 5304 *) 5305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5306 for ac_dir in $PATH; do 5307 test -z "$ac_dir" && ac_dir=. 5308 if test -f $ac_dir/$ac_word; then 5309 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 5310 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 5311 break 5312 fi 5313 fi 5314 done 5315 IFS="$ac_save_ifs" 5316 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5317 ;; 5318esac 5319fi 5320XGETTEXT="$ac_cv_path_XGETTEXT" 5321if test "$XGETTEXT" != ":"; then 5322 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 5323echo "${ECHO_T}$XGETTEXT" >&6 5324else 5325 echo "$as_me:$LINENO: result: no" >&5 5326echo "${ECHO_T}no" >&6 5327fi 5328 5329 cat >conftest.$ac_ext <<_ACEOF 5330/* confdefs.h. */ 5331_ACEOF 5332cat confdefs.h >>conftest.$ac_ext 5333cat >>conftest.$ac_ext <<_ACEOF 5334/* end confdefs.h. */ 5335 5336int 5337main () 5338{ 5339extern int _nl_msg_cat_cntr; 5340 return _nl_msg_cat_cntr 5341 ; 5342 return 0; 5343} 5344_ACEOF 5345rm -f conftest.$ac_objext conftest$ac_exeext 5346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5347 (eval $ac_link) 2>conftest.er1 5348 ac_status=$? 5349 grep -v '^ *+' conftest.er1 >conftest.err 5350 rm -f conftest.er1 5351 cat conftest.err >&5 5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5353 (exit $ac_status); } && 5354 { ac_try='test -z "$ac_c_werror_flag" 5355 || test ! -s conftest.err' 5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5357 (eval $ac_try) 2>&5 5358 ac_status=$? 5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5360 (exit $ac_status); }; } && 5361 { ac_try='test -s conftest$ac_exeext' 5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5363 (eval $ac_try) 2>&5 5364 ac_status=$? 5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5366 (exit $ac_status); }; }; then 5367 CATOBJEXT=.gmo 5368 DATADIRNAME=share 5369else 5370 echo "$as_me: failed program was:" >&5 5371sed 's/^/| /' conftest.$ac_ext >&5 5372 5373case $host in 5374 *-*-solaris*) 5375 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 5376echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6 5377if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 5378 echo $ECHO_N "(cached) $ECHO_C" >&6 5379else 5380 cat >conftest.$ac_ext <<_ACEOF 5381/* confdefs.h. */ 5382_ACEOF 5383cat confdefs.h >>conftest.$ac_ext 5384cat >>conftest.$ac_ext <<_ACEOF 5385/* end confdefs.h. */ 5386/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 5387 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5388#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 5389 5390/* System header to define __stub macros and hopefully few prototypes, 5391 which can conflict with char bind_textdomain_codeset (); below. 5392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5393 <limits.h> exists even on freestanding compilers. */ 5394 5395#ifdef __STDC__ 5396# include <limits.h> 5397#else 5398# include <assert.h> 5399#endif 5400 5401#undef bind_textdomain_codeset 5402 5403/* Override any gcc2 internal prototype to avoid an error. */ 5404#ifdef __cplusplus 5405extern "C" 5406{ 5407#endif 5408/* We use char because int might match the return type of a gcc2 5409 builtin and then its argument prototype would still apply. */ 5410char bind_textdomain_codeset (); 5411/* The GNU C library defines this for functions which it implements 5412 to always fail with ENOSYS. Some functions are actually named 5413 something starting with __ and the normal name is an alias. */ 5414#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset) 5415choke me 5416#else 5417char (*f) () = bind_textdomain_codeset; 5418#endif 5419#ifdef __cplusplus 5420} 5421#endif 5422 5423int 5424main () 5425{ 5426return f != bind_textdomain_codeset; 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431rm -f conftest.$ac_objext conftest$ac_exeext 5432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5433 (eval $ac_link) 2>conftest.er1 5434 ac_status=$? 5435 grep -v '^ *+' conftest.er1 >conftest.err 5436 rm -f conftest.er1 5437 cat conftest.err >&5 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5439 (exit $ac_status); } && 5440 { ac_try='test -z "$ac_c_werror_flag" 5441 || test ! -s conftest.err' 5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5443 (eval $ac_try) 2>&5 5444 ac_status=$? 5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5446 (exit $ac_status); }; } && 5447 { ac_try='test -s conftest$ac_exeext' 5448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5449 (eval $ac_try) 2>&5 5450 ac_status=$? 5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5452 (exit $ac_status); }; }; then 5453 ac_cv_func_bind_textdomain_codeset=yes 5454else 5455 echo "$as_me: failed program was:" >&5 5456sed 's/^/| /' conftest.$ac_ext >&5 5457 5458ac_cv_func_bind_textdomain_codeset=no 5459fi 5460rm -f conftest.err conftest.$ac_objext \ 5461 conftest$ac_exeext conftest.$ac_ext 5462fi 5463echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 5464echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6 5465if test $ac_cv_func_bind_textdomain_codeset = yes; then 5466 CATOBJEXT=.gmo 5467 DATADIRNAME=share 5468else 5469 CATOBJEXT=.mo 5470 DATADIRNAME=lib 5471fi 5472 5473 ;; 5474 *) 5475 CATOBJEXT=.mo 5476 DATADIRNAME=lib 5477 ;; 5478 esac 5479fi 5480rm -f conftest.err conftest.$ac_objext \ 5481 conftest$ac_exeext conftest.$ac_ext 5482 LIBS="$glib_save_LIBS" 5483 INSTOBJEXT=.mo 5484 else 5485 gt_cv_have_gettext=no 5486 fi 5487 fi 5488 5489fi 5490 5491 5492 5493 if test "$gt_cv_have_gettext" = "yes" ; then 5494 5495cat >>confdefs.h <<\_ACEOF 5496#define ENABLE_NLS 1 5497_ACEOF 5498 5499 fi 5500 5501 if test "$XGETTEXT" != ":"; then 5502 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 5503 : ; 5504 else 5505 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 5506echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 5507 XGETTEXT=":" 5508 fi 5509 fi 5510 5511 # We need to process the po/ directory. 5512 POSUB=po 5513 5514 ac_config_commands="$ac_config_commands default-1" 5515 5516 5517 for lang in $ALL_LINGUAS; do 5518 GMOFILES="$GMOFILES $lang.gmo" 5519 POFILES="$POFILES $lang.po" 5520 done 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 if test "$gt_cv_have_gettext" = "yes"; then 5535 if test "x$ALL_LINGUAS" = "x"; then 5536 LINGUAS= 5537 else 5538 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 5539echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 5540 NEW_LINGUAS= 5541 for presentlang in $ALL_LINGUAS; do 5542 useit=no 5543 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 5544 desiredlanguages="$LINGUAS" 5545 else 5546 desiredlanguages="$ALL_LINGUAS" 5547 fi 5548 for desiredlang in $desiredlanguages; do 5549 # Use the presentlang catalog if desiredlang is 5550 # a. equal to presentlang, or 5551 # b. a variant of presentlang (because in this case, 5552 # presentlang can be used as a fallback for messages 5553 # which are not translated in the desiredlang catalog). 5554 case "$desiredlang" in 5555 "$presentlang"*) useit=yes;; 5556 esac 5557 done 5558 if test $useit = yes; then 5559 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 5560 fi 5561 done 5562 LINGUAS=$NEW_LINGUAS 5563 echo "$as_me:$LINENO: result: $LINGUAS" >&5 5564echo "${ECHO_T}$LINGUAS" >&6 5565 fi 5566 5567 if test -n "$LINGUAS"; then 5568 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 5569 fi 5570 fi 5571 5572 MKINSTALLDIRS= 5573 if test -n "$ac_aux_dir"; then 5574 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 5575 fi 5576 if test -z "$MKINSTALLDIRS"; then 5577 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5578 fi 5579 5580 5581 test -d po || mkdir po 5582 if test "x$srcdir" != "x."; then 5583 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 5584 posrcprefix="$srcdir/" 5585 else 5586 posrcprefix="../$srcdir/" 5587 fi 5588 else 5589 posrcprefix="../" 5590 fi 5591 rm -f po/POTFILES 5592 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 5593 < $srcdir/po/POTFILES.in > po/POTFILES 5594 5595GETTEXT_PACKAGE=dbf 5596 5597 5598cat >>confdefs.h <<_ACEOF 5599#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 5600_ACEOF 5601 5602 5603# Check whether --enable-shared or --disable-shared was given. 5604if test "${enable_shared+set}" = set; then 5605 enableval="$enable_shared" 5606 p=${PACKAGE-default} 5607 case $enableval in 5608 yes) enable_shared=yes ;; 5609 no) enable_shared=no ;; 5610 *) 5611 enable_shared=no 5612 # Look at the argument we got. We use all the common list separators. 5613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5614 for pkg in $enableval; do 5615 IFS="$lt_save_ifs" 5616 if test "X$pkg" = "X$p"; then 5617 enable_shared=yes 5618 fi 5619 done 5620 IFS="$lt_save_ifs" 5621 ;; 5622 esac 5623else 5624 enable_shared=yes 5625fi; 5626 5627# Check whether --enable-static or --disable-static was given. 5628if test "${enable_static+set}" = set; then 5629 enableval="$enable_static" 5630 p=${PACKAGE-default} 5631 case $enableval in 5632 yes) enable_static=yes ;; 5633 no) enable_static=no ;; 5634 *) 5635 enable_static=no 5636 # Look at the argument we got. We use all the common list separators. 5637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5638 for pkg in $enableval; do 5639 IFS="$lt_save_ifs" 5640 if test "X$pkg" = "X$p"; then 5641 enable_static=yes 5642 fi 5643 done 5644 IFS="$lt_save_ifs" 5645 ;; 5646 esac 5647else 5648 enable_static=yes 5649fi; 5650 5651# Check whether --enable-fast-install or --disable-fast-install was given. 5652if test "${enable_fast_install+set}" = set; then 5653 enableval="$enable_fast_install" 5654 p=${PACKAGE-default} 5655 case $enableval in 5656 yes) enable_fast_install=yes ;; 5657 no) enable_fast_install=no ;; 5658 *) 5659 enable_fast_install=no 5660 # Look at the argument we got. We use all the common list separators. 5661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5662 for pkg in $enableval; do 5663 IFS="$lt_save_ifs" 5664 if test "X$pkg" = "X$p"; then 5665 enable_fast_install=yes 5666 fi 5667 done 5668 IFS="$lt_save_ifs" 5669 ;; 5670 esac 5671else 5672 enable_fast_install=yes 5673fi; 5674 5675# Make sure we can run config.sub. 5676$ac_config_sub sun4 >/dev/null 2>&1 || 5677 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 5678echo "$as_me: error: cannot run $ac_config_sub" >&2;} 5679 { (exit 1); exit 1; }; } 5680 5681echo "$as_me:$LINENO: checking build system type" >&5 5682echo $ECHO_N "checking build system type... $ECHO_C" >&6 5683if test "${ac_cv_build+set}" = set; then 5684 echo $ECHO_N "(cached) $ECHO_C" >&6 5685else 5686 ac_cv_build_alias=$build_alias 5687test -z "$ac_cv_build_alias" && 5688 ac_cv_build_alias=`$ac_config_guess` 5689test -z "$ac_cv_build_alias" && 5690 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 5691echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 5692 { (exit 1); exit 1; }; } 5693ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 5694 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 5695echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 5696 { (exit 1); exit 1; }; } 5697 5698fi 5699echo "$as_me:$LINENO: result: $ac_cv_build" >&5 5700echo "${ECHO_T}$ac_cv_build" >&6 5701build=$ac_cv_build 5702build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5703build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5704build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5705 5706 5707echo "$as_me:$LINENO: checking host system type" >&5 5708echo $ECHO_N "checking host system type... $ECHO_C" >&6 5709if test "${ac_cv_host+set}" = set; then 5710 echo $ECHO_N "(cached) $ECHO_C" >&6 5711else 5712 ac_cv_host_alias=$host_alias 5713test -z "$ac_cv_host_alias" && 5714 ac_cv_host_alias=$ac_cv_build_alias 5715ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 5716 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 5717echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 5718 { (exit 1); exit 1; }; } 5719 5720fi 5721echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5722echo "${ECHO_T}$ac_cv_host" >&6 5723host=$ac_cv_host 5724host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5725host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5726host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5727 5728 5729echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5730echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 5731if test "${lt_cv_path_SED+set}" = set; then 5732 echo $ECHO_N "(cached) $ECHO_C" >&6 5733else 5734 # Loop through the user's path and test for sed and gsed. 5735# Then use that list of sed's as ones to test for truncation. 5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5737for as_dir in $PATH 5738do 5739 IFS=$as_save_IFS 5740 test -z "$as_dir" && as_dir=. 5741 for lt_ac_prog in sed gsed; do 5742 for ac_exec_ext in '' $ac_executable_extensions; do 5743 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5744 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5745 fi 5746 done 5747 done 5748done 5749lt_ac_max=0 5750lt_ac_count=0 5751# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5752# along with /bin/sed that truncates output. 5753for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5754 test ! -f $lt_ac_sed && continue 5755 cat /dev/null > conftest.in 5756 lt_ac_count=0 5757 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5758 # Check for GNU sed and select it if it is found. 5759 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5760 lt_cv_path_SED=$lt_ac_sed 5761 break 5762 fi 5763 while true; do 5764 cat conftest.in conftest.in >conftest.tmp 5765 mv conftest.tmp conftest.in 5766 cp conftest.in conftest.nl 5767 echo >>conftest.nl 5768 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5769 cmp -s conftest.out conftest.nl || break 5770 # 10000 chars as input seems more than enough 5771 test $lt_ac_count -gt 10 && break 5772 lt_ac_count=`expr $lt_ac_count + 1` 5773 if test $lt_ac_count -gt $lt_ac_max; then 5774 lt_ac_max=$lt_ac_count 5775 lt_cv_path_SED=$lt_ac_sed 5776 fi 5777 done 5778done 5779 5780fi 5781 5782SED=$lt_cv_path_SED 5783echo "$as_me:$LINENO: result: $SED" >&5 5784echo "${ECHO_T}$SED" >&6 5785 5786 5787# Check whether --with-gnu-ld or --without-gnu-ld was given. 5788if test "${with_gnu_ld+set}" = set; then 5789 withval="$with_gnu_ld" 5790 test "$withval" = no || with_gnu_ld=yes 5791else 5792 with_gnu_ld=no 5793fi; 5794ac_prog=ld 5795if test "$GCC" = yes; then 5796 # Check if gcc -print-prog-name=ld gives a path. 5797 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5798echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 5799 case $host in 5800 *-*-mingw*) 5801 # gcc leaves a trailing carriage return which upsets mingw 5802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5803 *) 5804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5805 esac 5806 case $ac_prog in 5807 # Accept absolute paths. 5808 [\\/]* | ?:[\\/]*) 5809 re_direlt='/[^/][^/]*/\.\./' 5810 # Canonicalize the pathname of ld 5811 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5813 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5814 done 5815 test -z "$LD" && LD="$ac_prog" 5816 ;; 5817 "") 5818 # If it fails, then pretend we aren't using GCC. 5819 ac_prog=ld 5820 ;; 5821 *) 5822 # If it is relative, then search for the first ld in PATH. 5823 with_gnu_ld=unknown 5824 ;; 5825 esac 5826elif test "$with_gnu_ld" = yes; then 5827 echo "$as_me:$LINENO: checking for GNU ld" >&5 5828echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 5829else 5830 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5831echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 5832fi 5833if test "${lt_cv_path_LD+set}" = set; then 5834 echo $ECHO_N "(cached) $ECHO_C" >&6 5835else 5836 if test -z "$LD"; then 5837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5838 for ac_dir in $PATH; do 5839 IFS="$lt_save_ifs" 5840 test -z "$ac_dir" && ac_dir=. 5841 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5842 lt_cv_path_LD="$ac_dir/$ac_prog" 5843 # Check to see if the program is GNU ld. I'd rather use --version, 5844 # but apparently some variants of GNU ld only accept -v. 5845 # Break only if it was the GNU/non-GNU ld that we prefer. 5846 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5847 *GNU* | *'with BFD'*) 5848 test "$with_gnu_ld" != no && break 5849 ;; 5850 *) 5851 test "$with_gnu_ld" != yes && break 5852 ;; 5853 esac 5854 fi 5855 done 5856 IFS="$lt_save_ifs" 5857else 5858 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5859fi 5860fi 5861 5862LD="$lt_cv_path_LD" 5863if test -n "$LD"; then 5864 echo "$as_me:$LINENO: result: $LD" >&5 5865echo "${ECHO_T}$LD" >&6 5866else 5867 echo "$as_me:$LINENO: result: no" >&5 5868echo "${ECHO_T}no" >&6 5869fi 5870test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5871echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5872 { (exit 1); exit 1; }; } 5873echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5874echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 5875if test "${lt_cv_prog_gnu_ld+set}" = set; then 5876 echo $ECHO_N "(cached) $ECHO_C" >&6 5877else 5878 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5879case `$LD -v 2>&1 </dev/null` in 5880*GNU* | *'with BFD'*) 5881 lt_cv_prog_gnu_ld=yes 5882 ;; 5883*) 5884 lt_cv_prog_gnu_ld=no 5885 ;; 5886esac 5887fi 5888echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5889echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 5890with_gnu_ld=$lt_cv_prog_gnu_ld 5891 5892 5893echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5894echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 5895if test "${lt_cv_ld_reload_flag+set}" = set; then 5896 echo $ECHO_N "(cached) $ECHO_C" >&6 5897else 5898 lt_cv_ld_reload_flag='-r' 5899fi 5900echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5901echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 5902reload_flag=$lt_cv_ld_reload_flag 5903case $reload_flag in 5904"" | " "*) ;; 5905*) reload_flag=" $reload_flag" ;; 5906esac 5907reload_cmds='$LD$reload_flag -o $output$reload_objs' 5908case $host_os in 5909 darwin*) 5910 if test "$GCC" = yes; then 5911 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 5912 else 5913 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5914 fi 5915 ;; 5916esac 5917 5918echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5919echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 5920if test "${lt_cv_path_NM+set}" = set; then 5921 echo $ECHO_N "(cached) $ECHO_C" >&6 5922else 5923 if test -n "$NM"; then 5924 # Let the user override the test. 5925 lt_cv_path_NM="$NM" 5926else 5927 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5928 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 5929 IFS="$lt_save_ifs" 5930 test -z "$ac_dir" && ac_dir=. 5931 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 5932 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5933 # Check to see if the nm accepts a BSD-compat flag. 5934 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5935 # nm: unknown option "B" ignored 5936 # Tru64's nm complains that /dev/null is an invalid object file 5937 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5938 */dev/null* | *'Invalid file or object type'*) 5939 lt_cv_path_NM="$tmp_nm -B" 5940 break 5941 ;; 5942 *) 5943 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5944 */dev/null*) 5945 lt_cv_path_NM="$tmp_nm -p" 5946 break 5947 ;; 5948 *) 5949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5950 continue # so that we can try to find one that supports BSD flags 5951 ;; 5952 esac 5953 esac 5954 fi 5955 done 5956 IFS="$lt_save_ifs" 5957 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5958fi 5959fi 5960echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5961echo "${ECHO_T}$lt_cv_path_NM" >&6 5962NM="$lt_cv_path_NM" 5963 5964echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5965echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 5966if test "${lt_cv_deplibs_check_method+set}" = set; then 5967 echo $ECHO_N "(cached) $ECHO_C" >&6 5968else 5969 lt_cv_file_magic_cmd='$MAGIC_CMD' 5970lt_cv_file_magic_test_file= 5971lt_cv_deplibs_check_method='unknown' 5972# Need to set the preceding variable on all platforms that support 5973# interlibrary dependencies. 5974# 'none' -- dependencies not supported. 5975# `unknown' -- same as none, but documents that we really don't know. 5976# 'pass_all' -- all dependencies passed with no checks. 5977# 'test_compile' -- check by making test program. 5978# 'file_magic [[regex]]' -- check by looking for files in library path 5979# which responds to the $file_magic_cmd with a given extended regex. 5980# If you have `file' or equivalent on your system and you're not sure 5981# whether `pass_all' will *always* work, you probably want this one. 5982 5983case $host_os in 5984aix4* | aix5*) 5985 lt_cv_deplibs_check_method=pass_all 5986 ;; 5987 5988beos*) 5989 lt_cv_deplibs_check_method=pass_all 5990 ;; 5991 5992bsdi[45]*) 5993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5994 lt_cv_file_magic_cmd='/usr/bin/file -L' 5995 lt_cv_file_magic_test_file=/shlib/libc.so 5996 ;; 5997 5998cygwin*) 5999 # func_win32_libid is a shell function defined in ltmain.sh 6000 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6001 lt_cv_file_magic_cmd='func_win32_libid' 6002 ;; 6003 6004mingw* | pw32*) 6005 # Base MSYS/MinGW do not provide the 'file' command needed by 6006 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 6007 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6008 lt_cv_file_magic_cmd='$OBJDUMP -f' 6009 ;; 6010 6011darwin* | rhapsody*) 6012 lt_cv_deplibs_check_method=pass_all 6013 ;; 6014 6015freebsd* | kfreebsd*-gnu | dragonfly*) 6016 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6017 case $host_cpu in 6018 i*86 ) 6019 # Not sure whether the presence of OpenBSD here was a mistake. 6020 # Let's accept both of them until this is cleared up. 6021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6022 lt_cv_file_magic_cmd=/usr/bin/file 6023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6024 ;; 6025 esac 6026 else 6027 lt_cv_deplibs_check_method=pass_all 6028 fi 6029 ;; 6030 6031gnu*) 6032 lt_cv_deplibs_check_method=pass_all 6033 ;; 6034 6035hpux10.20* | hpux11*) 6036 lt_cv_file_magic_cmd=/usr/bin/file 6037 case $host_cpu in 6038 ia64*) 6039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6040 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6041 ;; 6042 hppa*64*) 6043 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]' 6044 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6045 ;; 6046 *) 6047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6048 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6049 ;; 6050 esac 6051 ;; 6052 6053irix5* | irix6* | nonstopux*) 6054 case $LD in 6055 *-32|*"-32 ") libmagic=32-bit;; 6056 *-n32|*"-n32 ") libmagic=N32;; 6057 *-64|*"-64 ") libmagic=64-bit;; 6058 *) libmagic=never-match;; 6059 esac 6060 lt_cv_deplibs_check_method=pass_all 6061 ;; 6062 6063# This must be Linux ELF. 6064linux*) 6065 lt_cv_deplibs_check_method=pass_all 6066 ;; 6067 6068netbsd*) 6069 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6071 else 6072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6073 fi 6074 ;; 6075 6076newos6*) 6077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6078 lt_cv_file_magic_cmd=/usr/bin/file 6079 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6080 ;; 6081 6082nto-qnx*) 6083 lt_cv_deplibs_check_method=unknown 6084 ;; 6085 6086openbsd*) 6087 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6089 else 6090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6091 fi 6092 ;; 6093 6094osf3* | osf4* | osf5*) 6095 lt_cv_deplibs_check_method=pass_all 6096 ;; 6097 6098sco3.2v5*) 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102solaris*) 6103 lt_cv_deplibs_check_method=pass_all 6104 ;; 6105 6106sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6107 case $host_vendor in 6108 motorola) 6109 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]' 6110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6111 ;; 6112 ncr) 6113 lt_cv_deplibs_check_method=pass_all 6114 ;; 6115 sequent) 6116 lt_cv_file_magic_cmd='/bin/file' 6117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6118 ;; 6119 sni) 6120 lt_cv_file_magic_cmd='/bin/file' 6121 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6122 lt_cv_file_magic_test_file=/lib/libc.so 6123 ;; 6124 siemens) 6125 lt_cv_deplibs_check_method=pass_all 6126 ;; 6127 esac 6128 ;; 6129 6130sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 6131 lt_cv_deplibs_check_method=pass_all 6132 ;; 6133esac 6134 6135fi 6136echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6137echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 6138file_magic_cmd=$lt_cv_file_magic_cmd 6139deplibs_check_method=$lt_cv_deplibs_check_method 6140test -z "$deplibs_check_method" && deplibs_check_method=unknown 6141 6142 6143 6144 6145# If no C compiler was specified, use CC. 6146LTCC=${LTCC-"$CC"} 6147 6148# Allow CC to be a program name with arguments. 6149compiler=$CC 6150 6151# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6152if test "${enable_libtool_lock+set}" = set; then 6153 enableval="$enable_libtool_lock" 6154 6155fi; 6156test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6157 6158# Some flags need to be propagated to the compiler or linker for good 6159# libtool support. 6160case $host in 6161ia64-*-hpux*) 6162 # Find out which ABI we are using. 6163 echo 'int i;' > conftest.$ac_ext 6164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6165 (eval $ac_compile) 2>&5 6166 ac_status=$? 6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6168 (exit $ac_status); }; then 6169 case `/usr/bin/file conftest.$ac_objext` in 6170 *ELF-32*) 6171 HPUX_IA64_MODE="32" 6172 ;; 6173 *ELF-64*) 6174 HPUX_IA64_MODE="64" 6175 ;; 6176 esac 6177 fi 6178 rm -rf conftest* 6179 ;; 6180*-*-irix6*) 6181 # Find out which ABI we are using. 6182 echo '#line 6182 "configure"' > conftest.$ac_ext 6183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6184 (eval $ac_compile) 2>&5 6185 ac_status=$? 6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6187 (exit $ac_status); }; then 6188 if test "$lt_cv_prog_gnu_ld" = yes; then 6189 case `/usr/bin/file conftest.$ac_objext` in 6190 *32-bit*) 6191 LD="${LD-ld} -melf32bsmip" 6192 ;; 6193 *N32*) 6194 LD="${LD-ld} -melf32bmipn32" 6195 ;; 6196 *64-bit*) 6197 LD="${LD-ld} -melf64bmip" 6198 ;; 6199 esac 6200 else 6201 case `/usr/bin/file conftest.$ac_objext` in 6202 *32-bit*) 6203 LD="${LD-ld} -32" 6204 ;; 6205 *N32*) 6206 LD="${LD-ld} -n32" 6207 ;; 6208 *64-bit*) 6209 LD="${LD-ld} -64" 6210 ;; 6211 esac 6212 fi 6213 fi 6214 rm -rf conftest* 6215 ;; 6216 6217x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6218 # Find out which ABI we are using. 6219 echo 'int i;' > conftest.$ac_ext 6220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6221 (eval $ac_compile) 2>&5 6222 ac_status=$? 6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6224 (exit $ac_status); }; then 6225 case `/usr/bin/file conftest.o` in 6226 *32-bit*) 6227 case $host in 6228 x86_64-*linux*) 6229 LD="${LD-ld} -m elf_i386" 6230 ;; 6231 ppc64-*linux*|powerpc64-*linux*) 6232 LD="${LD-ld} -m elf32ppclinux" 6233 ;; 6234 s390x-*linux*) 6235 LD="${LD-ld} -m elf_s390" 6236 ;; 6237 sparc64-*linux*) 6238 LD="${LD-ld} -m elf32_sparc" 6239 ;; 6240 esac 6241 ;; 6242 *64-bit*) 6243 case $host in 6244 x86_64-*linux*) 6245 LD="${LD-ld} -m elf_x86_64" 6246 ;; 6247 ppc*-*linux*|powerpc*-*linux*) 6248 LD="${LD-ld} -m elf64ppc" 6249 ;; 6250 s390*-*linux*) 6251 LD="${LD-ld} -m elf64_s390" 6252 ;; 6253 sparc*-*linux*) 6254 LD="${LD-ld} -m elf64_sparc" 6255 ;; 6256 esac 6257 ;; 6258 esac 6259 fi 6260 rm -rf conftest* 6261 ;; 6262 6263*-*-sco3.2v5*) 6264 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6265 SAVE_CFLAGS="$CFLAGS" 6266 CFLAGS="$CFLAGS -belf" 6267 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6268echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 6269if test "${lt_cv_cc_needs_belf+set}" = set; then 6270 echo $ECHO_N "(cached) $ECHO_C" >&6 6271else 6272 ac_ext=c 6273ac_cpp='$CPP $CPPFLAGS' 6274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6276ac_compiler_gnu=$ac_cv_c_compiler_gnu 6277 6278 cat >conftest.$ac_ext <<_ACEOF 6279/* confdefs.h. */ 6280_ACEOF 6281cat confdefs.h >>conftest.$ac_ext 6282cat >>conftest.$ac_ext <<_ACEOF 6283/* end confdefs.h. */ 6284 6285int 6286main () 6287{ 6288 6289 ; 6290 return 0; 6291} 6292_ACEOF 6293rm -f conftest.$ac_objext conftest$ac_exeext 6294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6295 (eval $ac_link) 2>conftest.er1 6296 ac_status=$? 6297 grep -v '^ *+' conftest.er1 >conftest.err 6298 rm -f conftest.er1 6299 cat conftest.err >&5 6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6301 (exit $ac_status); } && 6302 { ac_try='test -z "$ac_c_werror_flag" 6303 || test ! -s conftest.err' 6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6305 (eval $ac_try) 2>&5 6306 ac_status=$? 6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6308 (exit $ac_status); }; } && 6309 { ac_try='test -s conftest$ac_exeext' 6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6311 (eval $ac_try) 2>&5 6312 ac_status=$? 6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6314 (exit $ac_status); }; }; then 6315 lt_cv_cc_needs_belf=yes 6316else 6317 echo "$as_me: failed program was:" >&5 6318sed 's/^/| /' conftest.$ac_ext >&5 6319 6320lt_cv_cc_needs_belf=no 6321fi 6322rm -f conftest.err conftest.$ac_objext \ 6323 conftest$ac_exeext conftest.$ac_ext 6324 ac_ext=c 6325ac_cpp='$CPP $CPPFLAGS' 6326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6328ac_compiler_gnu=$ac_cv_c_compiler_gnu 6329 6330fi 6331echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6332echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 6333 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6334 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6335 CFLAGS="$SAVE_CFLAGS" 6336 fi 6337 ;; 6338 6339esac 6340 6341need_locks="$enable_libtool_lock" 6342 6343 6344 6345for ac_header in dlfcn.h 6346do 6347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6348if eval "test \"\${$as_ac_Header+set}\" = set"; then 6349 echo "$as_me:$LINENO: checking for $ac_header" >&5 6350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6351if eval "test \"\${$as_ac_Header+set}\" = set"; then 6352 echo $ECHO_N "(cached) $ECHO_C" >&6 6353fi 6354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6356else 6357 # Is the header compilable? 6358echo "$as_me:$LINENO: checking $ac_header usability" >&5 6359echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6360cat >conftest.$ac_ext <<_ACEOF 6361/* confdefs.h. */ 6362_ACEOF 6363cat confdefs.h >>conftest.$ac_ext 6364cat >>conftest.$ac_ext <<_ACEOF 6365/* end confdefs.h. */ 6366$ac_includes_default 6367#include <$ac_header> 6368_ACEOF 6369rm -f conftest.$ac_objext 6370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6371 (eval $ac_compile) 2>conftest.er1 6372 ac_status=$? 6373 grep -v '^ *+' conftest.er1 >conftest.err 6374 rm -f conftest.er1 6375 cat conftest.err >&5 6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6377 (exit $ac_status); } && 6378 { ac_try='test -z "$ac_c_werror_flag" 6379 || test ! -s conftest.err' 6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6381 (eval $ac_try) 2>&5 6382 ac_status=$? 6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6384 (exit $ac_status); }; } && 6385 { ac_try='test -s conftest.$ac_objext' 6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6387 (eval $ac_try) 2>&5 6388 ac_status=$? 6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390 (exit $ac_status); }; }; then 6391 ac_header_compiler=yes 6392else 6393 echo "$as_me: failed program was:" >&5 6394sed 's/^/| /' conftest.$ac_ext >&5 6395 6396ac_header_compiler=no 6397fi 6398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6399echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6400echo "${ECHO_T}$ac_header_compiler" >&6 6401 6402# Is the header present? 6403echo "$as_me:$LINENO: checking $ac_header presence" >&5 6404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6405cat >conftest.$ac_ext <<_ACEOF 6406/* confdefs.h. */ 6407_ACEOF 6408cat confdefs.h >>conftest.$ac_ext 6409cat >>conftest.$ac_ext <<_ACEOF 6410/* end confdefs.h. */ 6411#include <$ac_header> 6412_ACEOF 6413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6415 ac_status=$? 6416 grep -v '^ *+' conftest.er1 >conftest.err 6417 rm -f conftest.er1 6418 cat conftest.err >&5 6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6420 (exit $ac_status); } >/dev/null; then 6421 if test -s conftest.err; then 6422 ac_cpp_err=$ac_c_preproc_warn_flag 6423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6424 else 6425 ac_cpp_err= 6426 fi 6427else 6428 ac_cpp_err=yes 6429fi 6430if test -z "$ac_cpp_err"; then 6431 ac_header_preproc=yes 6432else 6433 echo "$as_me: failed program was:" >&5 6434sed 's/^/| /' conftest.$ac_ext >&5 6435 6436 ac_header_preproc=no 6437fi 6438rm -f conftest.err conftest.$ac_ext 6439echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6440echo "${ECHO_T}$ac_header_preproc" >&6 6441 6442# So? What about this header? 6443case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6444 yes:no: ) 6445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6446echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6448echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6449 ac_header_preproc=yes 6450 ;; 6451 no:yes:* ) 6452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6453echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6455echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6457echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6459echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6461echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6463echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6464 ( 6465 cat <<\_ASBOX 6466## ------------------------------------ ## 6467## Report this to http://dbf.berlios.de ## 6468## ------------------------------------ ## 6469_ASBOX 6470 ) | 6471 sed "s/^/$as_me: WARNING: /" >&2 6472 ;; 6473esac 6474echo "$as_me:$LINENO: checking for $ac_header" >&5 6475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6476if eval "test \"\${$as_ac_Header+set}\" = set"; then 6477 echo $ECHO_N "(cached) $ECHO_C" >&6 6478else 6479 eval "$as_ac_Header=\$ac_header_preproc" 6480fi 6481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6483 6484fi 6485if test `eval echo '${'$as_ac_Header'}'` = yes; then 6486 cat >>confdefs.h <<_ACEOF 6487#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6488_ACEOF 6489 6490fi 6491 6492done 6493 6494ac_ext=cc 6495ac_cpp='$CXXCPP $CPPFLAGS' 6496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6499if test -n "$ac_tool_prefix"; then 6500 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 6501 do 6502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6503set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6504echo "$as_me:$LINENO: checking for $ac_word" >&5 6505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6506if test "${ac_cv_prog_CXX+set}" = set; then 6507 echo $ECHO_N "(cached) $ECHO_C" >&6 6508else 6509 if test -n "$CXX"; then 6510 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6511else 6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6513for as_dir in $PATH 6514do 6515 IFS=$as_save_IFS 6516 test -z "$as_dir" && as_dir=. 6517 for ac_exec_ext in '' $ac_executable_extensions; do 6518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6519 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6521 break 2 6522 fi 6523done 6524done 6525 6526fi 6527fi 6528CXX=$ac_cv_prog_CXX 6529if test -n "$CXX"; then 6530 echo "$as_me:$LINENO: result: $CXX" >&5 6531echo "${ECHO_T}$CXX" >&6 6532else 6533 echo "$as_me:$LINENO: result: no" >&5 6534echo "${ECHO_T}no" >&6 6535fi 6536 6537 test -n "$CXX" && break 6538 done 6539fi 6540if test -z "$CXX"; then 6541 ac_ct_CXX=$CXX 6542 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 6543do 6544 # Extract the first word of "$ac_prog", so it can be a program name with args. 6545set dummy $ac_prog; ac_word=$2 6546echo "$as_me:$LINENO: checking for $ac_word" >&5 6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6548if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6549 echo $ECHO_N "(cached) $ECHO_C" >&6 6550else 6551 if test -n "$ac_ct_CXX"; then 6552 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6553else 6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555for as_dir in $PATH 6556do 6557 IFS=$as_save_IFS 6558 test -z "$as_dir" && as_dir=. 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6561 ac_cv_prog_ac_ct_CXX="$ac_prog" 6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565done 6566done 6567 6568fi 6569fi 6570ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6571if test -n "$ac_ct_CXX"; then 6572 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6573echo "${ECHO_T}$ac_ct_CXX" >&6 6574else 6575 echo "$as_me:$LINENO: result: no" >&5 6576echo "${ECHO_T}no" >&6 6577fi 6578 6579 test -n "$ac_ct_CXX" && break 6580done 6581test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 6582 6583 CXX=$ac_ct_CXX 6584fi 6585 6586 6587# Provide some information about the compiler. 6588echo "$as_me:$LINENO:" \ 6589 "checking for C++ compiler version" >&5 6590ac_compiler=`set X $ac_compile; echo $2` 6591{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6592 (eval $ac_compiler --version </dev/null >&5) 2>&5 6593 ac_status=$? 6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6595 (exit $ac_status); } 6596{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6597 (eval $ac_compiler -v </dev/null >&5) 2>&5 6598 ac_status=$? 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6600 (exit $ac_status); } 6601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6602 (eval $ac_compiler -V </dev/null >&5) 2>&5 6603 ac_status=$? 6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6605 (exit $ac_status); } 6606 6607echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6608echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 6609if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6610 echo $ECHO_N "(cached) $ECHO_C" >&6 6611else 6612 cat >conftest.$ac_ext <<_ACEOF 6613/* confdefs.h. */ 6614_ACEOF 6615cat confdefs.h >>conftest.$ac_ext 6616cat >>conftest.$ac_ext <<_ACEOF 6617/* end confdefs.h. */ 6618 6619int 6620main () 6621{ 6622#ifndef __GNUC__ 6623 choke me 6624#endif 6625 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630rm -f conftest.$ac_objext 6631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6632 (eval $ac_compile) 2>conftest.er1 6633 ac_status=$? 6634 grep -v '^ *+' conftest.er1 >conftest.err 6635 rm -f conftest.er1 6636 cat conftest.err >&5 6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6638 (exit $ac_status); } && 6639 { ac_try='test -z "$ac_cxx_werror_flag" 6640 || test ! -s conftest.err' 6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6642 (eval $ac_try) 2>&5 6643 ac_status=$? 6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6645 (exit $ac_status); }; } && 6646 { ac_try='test -s conftest.$ac_objext' 6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6648 (eval $ac_try) 2>&5 6649 ac_status=$? 6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6651 (exit $ac_status); }; }; then 6652 ac_compiler_gnu=yes 6653else 6654 echo "$as_me: failed program was:" >&5 6655sed 's/^/| /' conftest.$ac_ext >&5 6656 6657ac_compiler_gnu=no 6658fi 6659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6660ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6661 6662fi 6663echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6664echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 6665GXX=`test $ac_compiler_gnu = yes && echo yes` 6666ac_test_CXXFLAGS=${CXXFLAGS+set} 6667ac_save_CXXFLAGS=$CXXFLAGS 6668CXXFLAGS="-g" 6669echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6670echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 6671if test "${ac_cv_prog_cxx_g+set}" = set; then 6672 echo $ECHO_N "(cached) $ECHO_C" >&6 6673else 6674 cat >conftest.$ac_ext <<_ACEOF 6675/* confdefs.h. */ 6676_ACEOF 6677cat confdefs.h >>conftest.$ac_ext 6678cat >>conftest.$ac_ext <<_ACEOF 6679/* end confdefs.h. */ 6680 6681int 6682main () 6683{ 6684 6685 ; 6686 return 0; 6687} 6688_ACEOF 6689rm -f conftest.$ac_objext 6690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6691 (eval $ac_compile) 2>conftest.er1 6692 ac_status=$? 6693 grep -v '^ *+' conftest.er1 >conftest.err 6694 rm -f conftest.er1 6695 cat conftest.err >&5 6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6697 (exit $ac_status); } && 6698 { ac_try='test -z "$ac_cxx_werror_flag" 6699 || test ! -s conftest.err' 6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6701 (eval $ac_try) 2>&5 6702 ac_status=$? 6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6704 (exit $ac_status); }; } && 6705 { ac_try='test -s conftest.$ac_objext' 6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6707 (eval $ac_try) 2>&5 6708 ac_status=$? 6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6710 (exit $ac_status); }; }; then 6711 ac_cv_prog_cxx_g=yes 6712else 6713 echo "$as_me: failed program was:" >&5 6714sed 's/^/| /' conftest.$ac_ext >&5 6715 6716ac_cv_prog_cxx_g=no 6717fi 6718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6719fi 6720echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6721echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 6722if test "$ac_test_CXXFLAGS" = set; then 6723 CXXFLAGS=$ac_save_CXXFLAGS 6724elif test $ac_cv_prog_cxx_g = yes; then 6725 if test "$GXX" = yes; then 6726 CXXFLAGS="-g -O2" 6727 else 6728 CXXFLAGS="-g" 6729 fi 6730else 6731 if test "$GXX" = yes; then 6732 CXXFLAGS="-O2" 6733 else 6734 CXXFLAGS= 6735 fi 6736fi 6737for ac_declaration in \ 6738 '' \ 6739 'extern "C" void std::exit (int) throw (); using std::exit;' \ 6740 'extern "C" void std::exit (int); using std::exit;' \ 6741 'extern "C" void exit (int) throw ();' \ 6742 'extern "C" void exit (int);' \ 6743 'void exit (int);' 6744do 6745 cat >conftest.$ac_ext <<_ACEOF 6746/* confdefs.h. */ 6747_ACEOF 6748cat confdefs.h >>conftest.$ac_ext 6749cat >>conftest.$ac_ext <<_ACEOF 6750/* end confdefs.h. */ 6751$ac_declaration 6752#include <stdlib.h> 6753int 6754main () 6755{ 6756exit (42); 6757 ; 6758 return 0; 6759} 6760_ACEOF 6761rm -f conftest.$ac_objext 6762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6763 (eval $ac_compile) 2>conftest.er1 6764 ac_status=$? 6765 grep -v '^ *+' conftest.er1 >conftest.err 6766 rm -f conftest.er1 6767 cat conftest.err >&5 6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6769 (exit $ac_status); } && 6770 { ac_try='test -z "$ac_cxx_werror_flag" 6771 || test ! -s conftest.err' 6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6773 (eval $ac_try) 2>&5 6774 ac_status=$? 6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6776 (exit $ac_status); }; } && 6777 { ac_try='test -s conftest.$ac_objext' 6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6779 (eval $ac_try) 2>&5 6780 ac_status=$? 6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6782 (exit $ac_status); }; }; then 6783 : 6784else 6785 echo "$as_me: failed program was:" >&5 6786sed 's/^/| /' conftest.$ac_ext >&5 6787 6788continue 6789fi 6790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6791 cat >conftest.$ac_ext <<_ACEOF 6792/* confdefs.h. */ 6793_ACEOF 6794cat confdefs.h >>conftest.$ac_ext 6795cat >>conftest.$ac_ext <<_ACEOF 6796/* end confdefs.h. */ 6797$ac_declaration 6798int 6799main () 6800{ 6801exit (42); 6802 ; 6803 return 0; 6804} 6805_ACEOF 6806rm -f conftest.$ac_objext 6807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6808 (eval $ac_compile) 2>conftest.er1 6809 ac_status=$? 6810 grep -v '^ *+' conftest.er1 >conftest.err 6811 rm -f conftest.er1 6812 cat conftest.err >&5 6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6814 (exit $ac_status); } && 6815 { ac_try='test -z "$ac_cxx_werror_flag" 6816 || test ! -s conftest.err' 6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6818 (eval $ac_try) 2>&5 6819 ac_status=$? 6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6821 (exit $ac_status); }; } && 6822 { ac_try='test -s conftest.$ac_objext' 6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6824 (eval $ac_try) 2>&5 6825 ac_status=$? 6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6827 (exit $ac_status); }; }; then 6828 break 6829else 6830 echo "$as_me: failed program was:" >&5 6831sed 's/^/| /' conftest.$ac_ext >&5 6832 6833fi 6834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6835done 6836rm -f conftest* 6837if test -n "$ac_declaration"; then 6838 echo '#ifdef __cplusplus' >>confdefs.h 6839 echo $ac_declaration >>confdefs.h 6840 echo '#endif' >>confdefs.h 6841fi 6842 6843ac_ext=cc 6844ac_cpp='$CXXCPP $CPPFLAGS' 6845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6848 6849depcc="$CXX" am_compiler_list= 6850 6851echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6852echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 6853if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6854 echo $ECHO_N "(cached) $ECHO_C" >&6 6855else 6856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6857 # We make a subdir and do the tests there. Otherwise we can end up 6858 # making bogus files that we don't know about and never remove. For 6859 # instance it was reported that on HP-UX the gcc test will end up 6860 # making a dummy file named `D' -- because `-MD' means `put the output 6861 # in D'. 6862 mkdir conftest.dir 6863 # Copy depcomp to subdir because otherwise we won't find it if we're 6864 # using a relative directory. 6865 cp "$am_depcomp" conftest.dir 6866 cd conftest.dir 6867 # We will build objects and dependencies in a subdirectory because 6868 # it helps to detect inapplicable dependency modes. For instance 6869 # both Tru64's cc and ICC support -MD to output dependencies as a 6870 # side effect of compilation, but ICC will put the dependencies in 6871 # the current directory while Tru64 will put them in the object 6872 # directory. 6873 mkdir sub 6874 6875 am_cv_CXX_dependencies_compiler_type=none 6876 if test "$am_compiler_list" = ""; then 6877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6878 fi 6879 for depmode in $am_compiler_list; do 6880 # Setup a source with many dependencies, because some compilers 6881 # like to wrap large dependency lists on column 80 (with \), and 6882 # we should not choose a depcomp mode which is confused by this. 6883 # 6884 # We need to recreate these files for each test, as the compiler may 6885 # overwrite some of them when testing with obscure command lines. 6886 # This happens at least with the AIX C compiler. 6887 : > sub/conftest.c 6888 for i in 1 2 3 4 5 6; do 6889 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6890 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6891 # Solaris 8's {/usr,}/bin/sh. 6892 touch sub/conftst$i.h 6893 done 6894 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6895 6896 case $depmode in 6897 nosideeffect) 6898 # after this tag, mechanisms are not by side-effect, so they'll 6899 # only be used when explicitly requested 6900 if test "x$enable_dependency_tracking" = xyes; then 6901 continue 6902 else 6903 break 6904 fi 6905 ;; 6906 none) break ;; 6907 esac 6908 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6909 # mode. It turns out that the SunPro C++ compiler does not properly 6910 # handle `-M -o', and we need to detect this. 6911 if depmode=$depmode \ 6912 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6914 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6915 >/dev/null 2>conftest.err && 6916 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6917 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6918 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6919 # icc doesn't choke on unknown options, it will just issue warnings 6920 # or remarks (even with -Werror). So we grep stderr for any message 6921 # that says an option was ignored or not supported. 6922 # When given -MP, icc 7.0 and 7.1 complain thusly: 6923 # icc: Command line warning: ignoring option '-M'; no argument required 6924 # The diagnosis changed in icc 8.0: 6925 # icc: Command line remark: option '-MP' not supported 6926 if (grep 'ignoring option' conftest.err || 6927 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6928 am_cv_CXX_dependencies_compiler_type=$depmode 6929 break 6930 fi 6931 fi 6932 done 6933 6934 cd .. 6935 rm -rf conftest.dir 6936else 6937 am_cv_CXX_dependencies_compiler_type=none 6938fi 6939 6940fi 6941echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6942echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 6943CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6944 6945 6946 6947if 6948 test "x$enable_dependency_tracking" != xno \ 6949 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6950 am__fastdepCXX_TRUE= 6951 am__fastdepCXX_FALSE='#' 6952else 6953 am__fastdepCXX_TRUE='#' 6954 am__fastdepCXX_FALSE= 6955fi 6956 6957 6958 6959 6960if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6961 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6962 (test "X$CXX" != "Xg++"))) ; then 6963 ac_ext=cc 6964ac_cpp='$CXXCPP $CPPFLAGS' 6965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6968echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6969echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6970if test -z "$CXXCPP"; then 6971 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6972 echo $ECHO_N "(cached) $ECHO_C" >&6 6973else 6974 # Double quotes because CXXCPP needs to be expanded 6975 for CXXCPP in "$CXX -E" "/lib/cpp" 6976 do 6977 ac_preproc_ok=false 6978for ac_cxx_preproc_warn_flag in '' yes 6979do 6980 # Use a header file that comes with gcc, so configuring glibc 6981 # with a fresh cross-compiler works. 6982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6983 # <limits.h> exists even on freestanding compilers. 6984 # On the NeXT, cc -E runs the code through the compiler's parser, 6985 # not just through cpp. "Syntax error" is here to catch this case. 6986 cat >conftest.$ac_ext <<_ACEOF 6987/* confdefs.h. */ 6988_ACEOF 6989cat confdefs.h >>conftest.$ac_ext 6990cat >>conftest.$ac_ext <<_ACEOF 6991/* end confdefs.h. */ 6992#ifdef __STDC__ 6993# include <limits.h> 6994#else 6995# include <assert.h> 6996#endif 6997 Syntax error 6998_ACEOF 6999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7001 ac_status=$? 7002 grep -v '^ *+' conftest.er1 >conftest.err 7003 rm -f conftest.er1 7004 cat conftest.err >&5 7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7006 (exit $ac_status); } >/dev/null; then 7007 if test -s conftest.err; then 7008 ac_cpp_err=$ac_cxx_preproc_warn_flag 7009 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7010 else 7011 ac_cpp_err= 7012 fi 7013else 7014 ac_cpp_err=yes 7015fi 7016if test -z "$ac_cpp_err"; then 7017 : 7018else 7019 echo "$as_me: failed program was:" >&5 7020sed 's/^/| /' conftest.$ac_ext >&5 7021 7022 # Broken: fails on valid input. 7023continue 7024fi 7025rm -f conftest.err conftest.$ac_ext 7026 7027 # OK, works on sane cases. Now check whether non-existent headers 7028 # can be detected and how. 7029 cat >conftest.$ac_ext <<_ACEOF 7030/* confdefs.h. */ 7031_ACEOF 7032cat confdefs.h >>conftest.$ac_ext 7033cat >>conftest.$ac_ext <<_ACEOF 7034/* end confdefs.h. */ 7035#include <ac_nonexistent.h> 7036_ACEOF 7037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7039 ac_status=$? 7040 grep -v '^ *+' conftest.er1 >conftest.err 7041 rm -f conftest.er1 7042 cat conftest.err >&5 7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7044 (exit $ac_status); } >/dev/null; then 7045 if test -s conftest.err; then 7046 ac_cpp_err=$ac_cxx_preproc_warn_flag 7047 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7048 else 7049 ac_cpp_err= 7050 fi 7051else 7052 ac_cpp_err=yes 7053fi 7054if test -z "$ac_cpp_err"; then 7055 # Broken: success on invalid input. 7056continue 7057else 7058 echo "$as_me: failed program was:" >&5 7059sed 's/^/| /' conftest.$ac_ext >&5 7060 7061 # Passes both tests. 7062ac_preproc_ok=: 7063break 7064fi 7065rm -f conftest.err conftest.$ac_ext 7066 7067done 7068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7069rm -f conftest.err conftest.$ac_ext 7070if $ac_preproc_ok; then 7071 break 7072fi 7073 7074 done 7075 ac_cv_prog_CXXCPP=$CXXCPP 7076 7077fi 7078 CXXCPP=$ac_cv_prog_CXXCPP 7079else 7080 ac_cv_prog_CXXCPP=$CXXCPP 7081fi 7082echo "$as_me:$LINENO: result: $CXXCPP" >&5 7083echo "${ECHO_T}$CXXCPP" >&6 7084ac_preproc_ok=false 7085for ac_cxx_preproc_warn_flag in '' yes 7086do 7087 # Use a header file that comes with gcc, so configuring glibc 7088 # with a fresh cross-compiler works. 7089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7090 # <limits.h> exists even on freestanding compilers. 7091 # On the NeXT, cc -E runs the code through the compiler's parser, 7092 # not just through cpp. "Syntax error" is here to catch this case. 7093 cat >conftest.$ac_ext <<_ACEOF 7094/* confdefs.h. */ 7095_ACEOF 7096cat confdefs.h >>conftest.$ac_ext 7097cat >>conftest.$ac_ext <<_ACEOF 7098/* end confdefs.h. */ 7099#ifdef __STDC__ 7100# include <limits.h> 7101#else 7102# include <assert.h> 7103#endif 7104 Syntax error 7105_ACEOF 7106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7108 ac_status=$? 7109 grep -v '^ *+' conftest.er1 >conftest.err 7110 rm -f conftest.er1 7111 cat conftest.err >&5 7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7113 (exit $ac_status); } >/dev/null; then 7114 if test -s conftest.err; then 7115 ac_cpp_err=$ac_cxx_preproc_warn_flag 7116 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7117 else 7118 ac_cpp_err= 7119 fi 7120else 7121 ac_cpp_err=yes 7122fi 7123if test -z "$ac_cpp_err"; then 7124 : 7125else 7126 echo "$as_me: failed program was:" >&5 7127sed 's/^/| /' conftest.$ac_ext >&5 7128 7129 # Broken: fails on valid input. 7130continue 7131fi 7132rm -f conftest.err conftest.$ac_ext 7133 7134 # OK, works on sane cases. Now check whether non-existent headers 7135 # can be detected and how. 7136 cat >conftest.$ac_ext <<_ACEOF 7137/* confdefs.h. */ 7138_ACEOF 7139cat confdefs.h >>conftest.$ac_ext 7140cat >>conftest.$ac_ext <<_ACEOF 7141/* end confdefs.h. */ 7142#include <ac_nonexistent.h> 7143_ACEOF 7144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7146 ac_status=$? 7147 grep -v '^ *+' conftest.er1 >conftest.err 7148 rm -f conftest.er1 7149 cat conftest.err >&5 7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7151 (exit $ac_status); } >/dev/null; then 7152 if test -s conftest.err; then 7153 ac_cpp_err=$ac_cxx_preproc_warn_flag 7154 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7155 else 7156 ac_cpp_err= 7157 fi 7158else 7159 ac_cpp_err=yes 7160fi 7161if test -z "$ac_cpp_err"; then 7162 # Broken: success on invalid input. 7163continue 7164else 7165 echo "$as_me: failed program was:" >&5 7166sed 's/^/| /' conftest.$ac_ext >&5 7167 7168 # Passes both tests. 7169ac_preproc_ok=: 7170break 7171fi 7172rm -f conftest.err conftest.$ac_ext 7173 7174done 7175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7176rm -f conftest.err conftest.$ac_ext 7177if $ac_preproc_ok; then 7178 : 7179else 7180 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7181See \`config.log' for more details." >&5 7182echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7183See \`config.log' for more details." >&2;} 7184 { (exit 1); exit 1; }; } 7185fi 7186 7187ac_ext=cc 7188ac_cpp='$CXXCPP $CPPFLAGS' 7189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7192 7193fi 7194 7195 7196ac_ext=f 7197ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7198ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7199ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7200if test -n "$ac_tool_prefix"; then 7201 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 7202 do 7203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7204set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7205echo "$as_me:$LINENO: checking for $ac_word" >&5 7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7207if test "${ac_cv_prog_F77+set}" = set; then 7208 echo $ECHO_N "(cached) $ECHO_C" >&6 7209else 7210 if test -n "$F77"; then 7211 ac_cv_prog_F77="$F77" # Let the user override the test. 7212else 7213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7214for as_dir in $PATH 7215do 7216 IFS=$as_save_IFS 7217 test -z "$as_dir" && as_dir=. 7218 for ac_exec_ext in '' $ac_executable_extensions; do 7219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7220 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7222 break 2 7223 fi 7224done 7225done 7226 7227fi 7228fi 7229F77=$ac_cv_prog_F77 7230if test -n "$F77"; then 7231 echo "$as_me:$LINENO: result: $F77" >&5 7232echo "${ECHO_T}$F77" >&6 7233else 7234 echo "$as_me:$LINENO: result: no" >&5 7235echo "${ECHO_T}no" >&6 7236fi 7237 7238 test -n "$F77" && break 7239 done 7240fi 7241if test -z "$F77"; then 7242 ac_ct_F77=$F77 7243 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 7244do 7245 # Extract the first word of "$ac_prog", so it can be a program name with args. 7246set dummy $ac_prog; ac_word=$2 7247echo "$as_me:$LINENO: checking for $ac_word" >&5 7248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7249if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 7250 echo $ECHO_N "(cached) $ECHO_C" >&6 7251else 7252 if test -n "$ac_ct_F77"; then 7253 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 7254else 7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7256for as_dir in $PATH 7257do 7258 IFS=$as_save_IFS 7259 test -z "$as_dir" && as_dir=. 7260 for ac_exec_ext in '' $ac_executable_extensions; do 7261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7262 ac_cv_prog_ac_ct_F77="$ac_prog" 7263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7264 break 2 7265 fi 7266done 7267done 7268 7269fi 7270fi 7271ac_ct_F77=$ac_cv_prog_ac_ct_F77 7272if test -n "$ac_ct_F77"; then 7273 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 7274echo "${ECHO_T}$ac_ct_F77" >&6 7275else 7276 echo "$as_me:$LINENO: result: no" >&5 7277echo "${ECHO_T}no" >&6 7278fi 7279 7280 test -n "$ac_ct_F77" && break 7281done 7282 7283 F77=$ac_ct_F77 7284fi 7285 7286 7287# Provide some information about the compiler. 7288echo "$as_me:7288:" \ 7289 "checking for Fortran 77 compiler version" >&5 7290ac_compiler=`set X $ac_compile; echo $2` 7291{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 7292 (eval $ac_compiler --version </dev/null >&5) 2>&5 7293 ac_status=$? 7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7295 (exit $ac_status); } 7296{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 7297 (eval $ac_compiler -v </dev/null >&5) 2>&5 7298 ac_status=$? 7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7300 (exit $ac_status); } 7301{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 7302 (eval $ac_compiler -V </dev/null >&5) 2>&5 7303 ac_status=$? 7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7305 (exit $ac_status); } 7306rm -f a.out 7307 7308# If we don't use `.F' as extension, the preprocessor is not run on the 7309# input file. (Note that this only needs to work for GNU compilers.) 7310ac_save_ext=$ac_ext 7311ac_ext=F 7312echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 7313echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 7314if test "${ac_cv_f77_compiler_gnu+set}" = set; then 7315 echo $ECHO_N "(cached) $ECHO_C" >&6 7316else 7317 cat >conftest.$ac_ext <<_ACEOF 7318 program main 7319#ifndef __GNUC__ 7320 choke me 7321#endif 7322 7323 end 7324_ACEOF 7325rm -f conftest.$ac_objext 7326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7327 (eval $ac_compile) 2>conftest.er1 7328 ac_status=$? 7329 grep -v '^ *+' conftest.er1 >conftest.err 7330 rm -f conftest.er1 7331 cat conftest.err >&5 7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7333 (exit $ac_status); } && 7334 { ac_try='test -z "$ac_f77_werror_flag" 7335 || test ! -s conftest.err' 7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7337 (eval $ac_try) 2>&5 7338 ac_status=$? 7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7340 (exit $ac_status); }; } && 7341 { ac_try='test -s conftest.$ac_objext' 7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7343 (eval $ac_try) 2>&5 7344 ac_status=$? 7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7346 (exit $ac_status); }; }; then 7347 ac_compiler_gnu=yes 7348else 7349 echo "$as_me: failed program was:" >&5 7350sed 's/^/| /' conftest.$ac_ext >&5 7351 7352ac_compiler_gnu=no 7353fi 7354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7355ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7356 7357fi 7358echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7359echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 7360ac_ext=$ac_save_ext 7361ac_test_FFLAGS=${FFLAGS+set} 7362ac_save_FFLAGS=$FFLAGS 7363FFLAGS= 7364echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7365echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 7366if test "${ac_cv_prog_f77_g+set}" = set; then 7367 echo $ECHO_N "(cached) $ECHO_C" >&6 7368else 7369 FFLAGS=-g 7370cat >conftest.$ac_ext <<_ACEOF 7371 program main 7372 7373 end 7374_ACEOF 7375rm -f conftest.$ac_objext 7376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7377 (eval $ac_compile) 2>conftest.er1 7378 ac_status=$? 7379 grep -v '^ *+' conftest.er1 >conftest.err 7380 rm -f conftest.er1 7381 cat conftest.err >&5 7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 (exit $ac_status); } && 7384 { ac_try='test -z "$ac_f77_werror_flag" 7385 || test ! -s conftest.err' 7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7387 (eval $ac_try) 2>&5 7388 ac_status=$? 7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 (exit $ac_status); }; } && 7391 { ac_try='test -s conftest.$ac_objext' 7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7393 (eval $ac_try) 2>&5 7394 ac_status=$? 7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7396 (exit $ac_status); }; }; then 7397 ac_cv_prog_f77_g=yes 7398else 7399 echo "$as_me: failed program was:" >&5 7400sed 's/^/| /' conftest.$ac_ext >&5 7401 7402ac_cv_prog_f77_g=no 7403fi 7404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7405 7406fi 7407echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7408echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 7409if test "$ac_test_FFLAGS" = set; then 7410 FFLAGS=$ac_save_FFLAGS 7411elif test $ac_cv_prog_f77_g = yes; then 7412 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7413 FFLAGS="-g -O2" 7414 else 7415 FFLAGS="-g" 7416 fi 7417else 7418 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7419 FFLAGS="-O2" 7420 else 7421 FFLAGS= 7422 fi 7423fi 7424 7425G77=`test $ac_compiler_gnu = yes && echo yes` 7426ac_ext=c 7427ac_cpp='$CPP $CPPFLAGS' 7428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7430ac_compiler_gnu=$ac_cv_c_compiler_gnu 7431 7432 7433 7434# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7435 7436# find the maximum length of command line arguments 7437echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7438echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7439if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7440 echo $ECHO_N "(cached) $ECHO_C" >&6 7441else 7442 i=0 7443 teststring="ABCD" 7444 7445 case $build_os in 7446 msdosdjgpp*) 7447 # On DJGPP, this test can blow up pretty badly due to problems in libc 7448 # (any single argument exceeding 2000 bytes causes a buffer overrun 7449 # during glob expansion). Even if it were fixed, the result of this 7450 # check would be larger than it should be. 7451 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7452 ;; 7453 7454 gnu*) 7455 # Under GNU Hurd, this test is not required because there is 7456 # no limit to the length of command line arguments. 7457 # Libtool will interpret -1 as no limit whatsoever 7458 lt_cv_sys_max_cmd_len=-1; 7459 ;; 7460 7461 cygwin* | mingw*) 7462 # On Win9x/ME, this test blows up -- it succeeds, but takes 7463 # about 5 minutes as the teststring grows exponentially. 7464 # Worse, since 9x/ME are not pre-emptively multitasking, 7465 # you end up with a "frozen" computer, even though with patience 7466 # the test eventually succeeds (with a max line length of 256k). 7467 # Instead, let's just punt: use the minimum linelength reported by 7468 # all of the supported platforms: 8192 (on NT/2K/XP). 7469 lt_cv_sys_max_cmd_len=8192; 7470 ;; 7471 7472 amigaos*) 7473 # On AmigaOS with pdksh, this test takes hours, literally. 7474 # So we just punt and use a minimum line length of 8192. 7475 lt_cv_sys_max_cmd_len=8192; 7476 ;; 7477 7478 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7479 # This has been around since 386BSD, at least. Likely further. 7480 if test -x /sbin/sysctl; then 7481 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7482 elif test -x /usr/sbin/sysctl; then 7483 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7484 else 7485 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7486 fi 7487 # And add a safety zone 7488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7490 ;; 7491 osf*) 7492 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7493 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7494 # nice to cause kernel panics so lets avoid the loop below. 7495 # First set a reasonable default. 7496 lt_cv_sys_max_cmd_len=16384 7497 # 7498 if test -x /sbin/sysconfig; then 7499 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7500 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7501 esac 7502 fi 7503 ;; 7504 *) 7505 # If test is not a shell built-in, we'll probably end up computing a 7506 # maximum length that is only half of the actual maximum length, but 7507 # we can't tell. 7508 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7509 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7510 = "XX$teststring") >/dev/null 2>&1 && 7511 new_result=`expr "X$teststring" : ".*" 2>&1` && 7512 lt_cv_sys_max_cmd_len=$new_result && 7513 test $i != 17 # 1/2 MB should be enough 7514 do 7515 i=`expr $i + 1` 7516 teststring=$teststring$teststring 7517 done 7518 teststring= 7519 # Add a significant safety factor because C++ compilers can tack on massive 7520 # amounts of additional arguments before passing them to the linker. 7521 # It appears as though 1/2 is a usable value. 7522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7523 ;; 7524 esac 7525 7526fi 7527 7528if test -n $lt_cv_sys_max_cmd_len ; then 7529 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7530echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7531else 7532 echo "$as_me:$LINENO: result: none" >&5 7533echo "${ECHO_T}none" >&6 7534fi 7535 7536 7537 7538 7539# Check for command to grab the raw symbol name followed by C symbol from nm. 7540echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7541echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7542if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7543 echo $ECHO_N "(cached) $ECHO_C" >&6 7544else 7545 7546# These are sane defaults that work on at least a few old systems. 7547# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7548 7549# Character class describing NM global symbol codes. 7550symcode='[BCDEGRST]' 7551 7552# Regexp to match symbols that can be accessed directly from C. 7553sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7554 7555# Transform an extracted symbol line into a proper C declaration 7556lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7557 7558# Transform an extracted symbol line into symbol name and symbol address 7559lt_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'" 7560 7561# Define system-specific variables. 7562case $host_os in 7563aix*) 7564 symcode='[BCDT]' 7565 ;; 7566cygwin* | mingw* | pw32*) 7567 symcode='[ABCDGISTW]' 7568 ;; 7569hpux*) # Its linker distinguishes data from code symbols 7570 if test "$host_cpu" = ia64; then 7571 symcode='[ABCDEGRST]' 7572 fi 7573 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7574 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'" 7575 ;; 7576linux*) 7577 if test "$host_cpu" = ia64; then 7578 symcode='[ABCDGIRSTW]' 7579 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7580 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'" 7581 fi 7582 ;; 7583irix* | nonstopux*) 7584 symcode='[BCDEGRST]' 7585 ;; 7586osf*) 7587 symcode='[BCDEGQRST]' 7588 ;; 7589solaris* | sysv5*) 7590 symcode='[BDRT]' 7591 ;; 7592sysv4) 7593 symcode='[DFNSTU]' 7594 ;; 7595esac 7596 7597# Handle CRLF in mingw tool chain 7598opt_cr= 7599case $build_os in 7600mingw*) 7601 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7602 ;; 7603esac 7604 7605# If we're using GNU nm, then use its standard symbol codes. 7606case `$NM -V 2>&1` in 7607*GNU* | *'with BFD'*) 7608 symcode='[ABCDGIRSTW]' ;; 7609esac 7610 7611# Try without a prefix undercore, then with it. 7612for ac_symprfx in "" "_"; do 7613 7614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7615 symxfrm="\\1 $ac_symprfx\\2 \\2" 7616 7617 # Write the raw and C identifiers. 7618 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7619 7620 # Check to see that the pipe works correctly. 7621 pipe_works=no 7622 7623 rm -f conftest* 7624 cat > conftest.$ac_ext <<EOF 7625#ifdef __cplusplus 7626extern "C" { 7627#endif 7628char nm_test_var; 7629void nm_test_func(){} 7630#ifdef __cplusplus 7631} 7632#endif 7633int main(){nm_test_var='a';nm_test_func();return(0);} 7634EOF 7635 7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7637 (eval $ac_compile) 2>&5 7638 ac_status=$? 7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7640 (exit $ac_status); }; then 7641 # Now try to grab the symbols. 7642 nlist=conftest.nm 7643 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7644 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7645 ac_status=$? 7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7647 (exit $ac_status); } && test -s "$nlist"; then 7648 # Try sorting and uniquifying the output. 7649 if sort "$nlist" | uniq > "$nlist"T; then 7650 mv -f "$nlist"T "$nlist" 7651 else 7652 rm -f "$nlist"T 7653 fi 7654 7655 # Make sure that we snagged all the symbols we need. 7656 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7657 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7658 cat <<EOF > conftest.$ac_ext 7659#ifdef __cplusplus 7660extern "C" { 7661#endif 7662 7663EOF 7664 # Now generate the symbol file. 7665 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7666 7667 cat <<EOF >> conftest.$ac_ext 7668#if defined (__STDC__) && __STDC__ 7669# define lt_ptr_t void * 7670#else 7671# define lt_ptr_t char * 7672# define const 7673#endif 7674 7675/* The mapping between symbol names and symbols. */ 7676const struct { 7677 const char *name; 7678 lt_ptr_t address; 7679} 7680lt_preloaded_symbols[] = 7681{ 7682EOF 7683 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7684 cat <<\EOF >> conftest.$ac_ext 7685 {0, (lt_ptr_t) 0} 7686}; 7687 7688#ifdef __cplusplus 7689} 7690#endif 7691EOF 7692 # Now try linking the two files. 7693 mv conftest.$ac_objext conftstm.$ac_objext 7694 lt_save_LIBS="$LIBS" 7695 lt_save_CFLAGS="$CFLAGS" 7696 LIBS="conftstm.$ac_objext" 7697 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7699 (eval $ac_link) 2>&5 7700 ac_status=$? 7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7702 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7703 pipe_works=yes 7704 fi 7705 LIBS="$lt_save_LIBS" 7706 CFLAGS="$lt_save_CFLAGS" 7707 else 7708 echo "cannot find nm_test_func in $nlist" >&5 7709 fi 7710 else 7711 echo "cannot find nm_test_var in $nlist" >&5 7712 fi 7713 else 7714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7715 fi 7716 else 7717 echo "$progname: failed program was:" >&5 7718 cat conftest.$ac_ext >&5 7719 fi 7720 rm -f conftest* conftst* 7721 7722 # Do not use the global_symbol_pipe unless it works. 7723 if test "$pipe_works" = yes; then 7724 break 7725 else 7726 lt_cv_sys_global_symbol_pipe= 7727 fi 7728done 7729 7730fi 7731 7732if test -z "$lt_cv_sys_global_symbol_pipe"; then 7733 lt_cv_sys_global_symbol_to_cdecl= 7734fi 7735if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7736 echo "$as_me:$LINENO: result: failed" >&5 7737echo "${ECHO_T}failed" >&6 7738else 7739 echo "$as_me:$LINENO: result: ok" >&5 7740echo "${ECHO_T}ok" >&6 7741fi 7742 7743echo "$as_me:$LINENO: checking for objdir" >&5 7744echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7745if test "${lt_cv_objdir+set}" = set; then 7746 echo $ECHO_N "(cached) $ECHO_C" >&6 7747else 7748 rm -f .libs 2>/dev/null 7749mkdir .libs 2>/dev/null 7750if test -d .libs; then 7751 lt_cv_objdir=.libs 7752else 7753 # MS-DOS does not allow filenames that begin with a dot. 7754 lt_cv_objdir=_libs 7755fi 7756rmdir .libs 2>/dev/null 7757fi 7758echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7759echo "${ECHO_T}$lt_cv_objdir" >&6 7760objdir=$lt_cv_objdir 7761 7762 7763 7764 7765 7766case $host_os in 7767aix3*) 7768 # AIX sometimes has problems with the GCC collect2 program. For some 7769 # reason, if we set the COLLECT_NAMES environment variable, the problems 7770 # vanish in a puff of smoke. 7771 if test "X${COLLECT_NAMES+set}" != Xset; then 7772 COLLECT_NAMES= 7773 export COLLECT_NAMES 7774 fi 7775 ;; 7776esac 7777 7778# Sed substitution that helps us do robust quoting. It backslashifies 7779# metacharacters that are still active within double-quoted strings. 7780Xsed='sed -e 1s/^X//' 7781sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7782 7783# Same as above, but do not quote variable references. 7784double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7785 7786# Sed substitution to delay expansion of an escaped shell variable in a 7787# double_quote_subst'ed string. 7788delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7789 7790# Sed substitution to avoid accidental globbing in evaled expressions 7791no_glob_subst='s/\*/\\\*/g' 7792 7793# Constants: 7794rm="rm -f" 7795 7796# Global variables: 7797default_ofile=libtool 7798can_build_shared=yes 7799 7800# All known linkers require a `.a' archive for static linking (except MSVC, 7801# which needs '.lib'). 7802libext=a 7803ltmain="$ac_aux_dir/ltmain.sh" 7804ofile="$default_ofile" 7805with_gnu_ld="$lt_cv_prog_gnu_ld" 7806 7807if test -n "$ac_tool_prefix"; then 7808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7809set dummy ${ac_tool_prefix}ar; ac_word=$2 7810echo "$as_me:$LINENO: checking for $ac_word" >&5 7811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7812if test "${ac_cv_prog_AR+set}" = set; then 7813 echo $ECHO_N "(cached) $ECHO_C" >&6 7814else 7815 if test -n "$AR"; then 7816 ac_cv_prog_AR="$AR" # Let the user override the test. 7817else 7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7819for as_dir in $PATH 7820do 7821 IFS=$as_save_IFS 7822 test -z "$as_dir" && as_dir=. 7823 for ac_exec_ext in '' $ac_executable_extensions; do 7824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7825 ac_cv_prog_AR="${ac_tool_prefix}ar" 7826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7827 break 2 7828 fi 7829done 7830done 7831 7832fi 7833fi 7834AR=$ac_cv_prog_AR 7835if test -n "$AR"; then 7836 echo "$as_me:$LINENO: result: $AR" >&5 7837echo "${ECHO_T}$AR" >&6 7838else 7839 echo "$as_me:$LINENO: result: no" >&5 7840echo "${ECHO_T}no" >&6 7841fi 7842 7843fi 7844if test -z "$ac_cv_prog_AR"; then 7845 ac_ct_AR=$AR 7846 # Extract the first word of "ar", so it can be a program name with args. 7847set dummy ar; ac_word=$2 7848echo "$as_me:$LINENO: checking for $ac_word" >&5 7849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7850if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7851 echo $ECHO_N "(cached) $ECHO_C" >&6 7852else 7853 if test -n "$ac_ct_AR"; then 7854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7855else 7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7857for as_dir in $PATH 7858do 7859 IFS=$as_save_IFS 7860 test -z "$as_dir" && as_dir=. 7861 for ac_exec_ext in '' $ac_executable_extensions; do 7862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7863 ac_cv_prog_ac_ct_AR="ar" 7864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7865 break 2 7866 fi 7867done 7868done 7869 7870 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7871fi 7872fi 7873ac_ct_AR=$ac_cv_prog_ac_ct_AR 7874if test -n "$ac_ct_AR"; then 7875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7876echo "${ECHO_T}$ac_ct_AR" >&6 7877else 7878 echo "$as_me:$LINENO: result: no" >&5 7879echo "${ECHO_T}no" >&6 7880fi 7881 7882 AR=$ac_ct_AR 7883else 7884 AR="$ac_cv_prog_AR" 7885fi 7886 7887if test -n "$ac_tool_prefix"; then 7888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7889set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7890echo "$as_me:$LINENO: checking for $ac_word" >&5 7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7892if test "${ac_cv_prog_RANLIB+set}" = set; then 7893 echo $ECHO_N "(cached) $ECHO_C" >&6 7894else 7895 if test -n "$RANLIB"; then 7896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7897else 7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7899for as_dir in $PATH 7900do 7901 IFS=$as_save_IFS 7902 test -z "$as_dir" && as_dir=. 7903 for ac_exec_ext in '' $ac_executable_extensions; do 7904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7907 break 2 7908 fi 7909done 7910done 7911 7912fi 7913fi 7914RANLIB=$ac_cv_prog_RANLIB 7915if test -n "$RANLIB"; then 7916 echo "$as_me:$LINENO: result: $RANLIB" >&5 7917echo "${ECHO_T}$RANLIB" >&6 7918else 7919 echo "$as_me:$LINENO: result: no" >&5 7920echo "${ECHO_T}no" >&6 7921fi 7922 7923fi 7924if test -z "$ac_cv_prog_RANLIB"; then 7925 ac_ct_RANLIB=$RANLIB 7926 # Extract the first word of "ranlib", so it can be a program name with args. 7927set dummy ranlib; ac_word=$2 7928echo "$as_me:$LINENO: checking for $ac_word" >&5 7929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7930if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7931 echo $ECHO_N "(cached) $ECHO_C" >&6 7932else 7933 if test -n "$ac_ct_RANLIB"; then 7934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7935else 7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7937for as_dir in $PATH 7938do 7939 IFS=$as_save_IFS 7940 test -z "$as_dir" && as_dir=. 7941 for ac_exec_ext in '' $ac_executable_extensions; do 7942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7943 ac_cv_prog_ac_ct_RANLIB="ranlib" 7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7945 break 2 7946 fi 7947done 7948done 7949 7950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7951fi 7952fi 7953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7954if test -n "$ac_ct_RANLIB"; then 7955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7956echo "${ECHO_T}$ac_ct_RANLIB" >&6 7957else 7958 echo "$as_me:$LINENO: result: no" >&5 7959echo "${ECHO_T}no" >&6 7960fi 7961 7962 RANLIB=$ac_ct_RANLIB 7963else 7964 RANLIB="$ac_cv_prog_RANLIB" 7965fi 7966 7967if test -n "$ac_tool_prefix"; then 7968 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7969set dummy ${ac_tool_prefix}strip; ac_word=$2 7970echo "$as_me:$LINENO: checking for $ac_word" >&5 7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7972if test "${ac_cv_prog_STRIP+set}" = set; then 7973 echo $ECHO_N "(cached) $ECHO_C" >&6 7974else 7975 if test -n "$STRIP"; then 7976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7977else 7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7979for as_dir in $PATH 7980do 7981 IFS=$as_save_IFS 7982 test -z "$as_dir" && as_dir=. 7983 for ac_exec_ext in '' $ac_executable_extensions; do 7984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7985 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7987 break 2 7988 fi 7989done 7990done 7991 7992fi 7993fi 7994STRIP=$ac_cv_prog_STRIP 7995if test -n "$STRIP"; then 7996 echo "$as_me:$LINENO: result: $STRIP" >&5 7997echo "${ECHO_T}$STRIP" >&6 7998else 7999 echo "$as_me:$LINENO: result: no" >&5 8000echo "${ECHO_T}no" >&6 8001fi 8002 8003fi 8004if test -z "$ac_cv_prog_STRIP"; then 8005 ac_ct_STRIP=$STRIP 8006 # Extract the first word of "strip", so it can be a program name with args. 8007set dummy strip; ac_word=$2 8008echo "$as_me:$LINENO: checking for $ac_word" >&5 8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8010if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8011 echo $ECHO_N "(cached) $ECHO_C" >&6 8012else 8013 if test -n "$ac_ct_STRIP"; then 8014 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8015else 8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8017for as_dir in $PATH 8018do 8019 IFS=$as_save_IFS 8020 test -z "$as_dir" && as_dir=. 8021 for ac_exec_ext in '' $ac_executable_extensions; do 8022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8023 ac_cv_prog_ac_ct_STRIP="strip" 8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8025 break 2 8026 fi 8027done 8028done 8029 8030 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 8031fi 8032fi 8033ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8034if test -n "$ac_ct_STRIP"; then 8035 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8036echo "${ECHO_T}$ac_ct_STRIP" >&6 8037else 8038 echo "$as_me:$LINENO: result: no" >&5 8039echo "${ECHO_T}no" >&6 8040fi 8041 8042 STRIP=$ac_ct_STRIP 8043else 8044 STRIP="$ac_cv_prog_STRIP" 8045fi 8046 8047 8048old_CC="$CC" 8049old_CFLAGS="$CFLAGS" 8050 8051# Set sane defaults for various variables 8052test -z "$AR" && AR=ar 8053test -z "$AR_FLAGS" && AR_FLAGS=cru 8054test -z "$AS" && AS=as 8055test -z "$CC" && CC=cc 8056test -z "$LTCC" && LTCC=$CC 8057test -z "$DLLTOOL" && DLLTOOL=dlltool 8058test -z "$LD" && LD=ld 8059test -z "$LN_S" && LN_S="ln -s" 8060test -z "$MAGIC_CMD" && MAGIC_CMD=file 8061test -z "$NM" && NM=nm 8062test -z "$SED" && SED=sed 8063test -z "$OBJDUMP" && OBJDUMP=objdump 8064test -z "$RANLIB" && RANLIB=: 8065test -z "$STRIP" && STRIP=: 8066test -z "$ac_objext" && ac_objext=o 8067 8068# Determine commands to create old-style static archives. 8069old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8070old_postinstall_cmds='chmod 644 $oldlib' 8071old_postuninstall_cmds= 8072 8073if test -n "$RANLIB"; then 8074 case $host_os in 8075 openbsd*) 8076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8077 ;; 8078 *) 8079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8080 ;; 8081 esac 8082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8083fi 8084 8085for cc_temp in $compiler""; do 8086 case $cc_temp in 8087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8089 \-*) ;; 8090 *) break;; 8091 esac 8092done 8093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8094 8095 8096# Only perform the check for file, if the check method requires it 8097case $deplibs_check_method in 8098file_magic*) 8099 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8100 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8101echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 8102if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8103 echo $ECHO_N "(cached) $ECHO_C" >&6 8104else 8105 case $MAGIC_CMD in 8106[\\/*] | ?:[\\/]*) 8107 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8108 ;; 8109*) 8110 lt_save_MAGIC_CMD="$MAGIC_CMD" 8111 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8113 for ac_dir in $ac_dummy; do 8114 IFS="$lt_save_ifs" 8115 test -z "$ac_dir" && ac_dir=. 8116 if test -f $ac_dir/${ac_tool_prefix}file; then 8117 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8118 if test -n "$file_magic_test_file"; then 8119 case $deplibs_check_method in 8120 "file_magic "*) 8121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8124 $EGREP "$file_magic_regex" > /dev/null; then 8125 : 8126 else 8127 cat <<EOF 1>&2 8128 8129*** Warning: the command libtool uses to detect shared libraries, 8130*** $file_magic_cmd, produces output that libtool cannot recognize. 8131*** The result is that libtool may fail to recognize shared libraries 8132*** as such. This will affect the creation of libtool libraries that 8133*** depend on shared libraries, but programs linked with such libtool 8134*** libraries will work regardless of this problem. Nevertheless, you 8135*** may want to report the problem to your system manager and/or to 8136*** bug-libtool@gnu.org 8137 8138EOF 8139 fi ;; 8140 esac 8141 fi 8142 break 8143 fi 8144 done 8145 IFS="$lt_save_ifs" 8146 MAGIC_CMD="$lt_save_MAGIC_CMD" 8147 ;; 8148esac 8149fi 8150 8151MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8152if test -n "$MAGIC_CMD"; then 8153 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8154echo "${ECHO_T}$MAGIC_CMD" >&6 8155else 8156 echo "$as_me:$LINENO: result: no" >&5 8157echo "${ECHO_T}no" >&6 8158fi 8159 8160if test -z "$lt_cv_path_MAGIC_CMD"; then 8161 if test -n "$ac_tool_prefix"; then 8162 echo "$as_me:$LINENO: checking for file" >&5 8163echo $ECHO_N "checking for file... $ECHO_C" >&6 8164if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8165 echo $ECHO_N "(cached) $ECHO_C" >&6 8166else 8167 case $MAGIC_CMD in 8168[\\/*] | ?:[\\/]*) 8169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8170 ;; 8171*) 8172 lt_save_MAGIC_CMD="$MAGIC_CMD" 8173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8174 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8175 for ac_dir in $ac_dummy; do 8176 IFS="$lt_save_ifs" 8177 test -z "$ac_dir" && ac_dir=. 8178 if test -f $ac_dir/file; then 8179 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8180 if test -n "$file_magic_test_file"; then 8181 case $deplibs_check_method in 8182 "file_magic "*) 8183 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8186 $EGREP "$file_magic_regex" > /dev/null; then 8187 : 8188 else 8189 cat <<EOF 1>&2 8190 8191*** Warning: the command libtool uses to detect shared libraries, 8192*** $file_magic_cmd, produces output that libtool cannot recognize. 8193*** The result is that libtool may fail to recognize shared libraries 8194*** as such. This will affect the creation of libtool libraries that 8195*** depend on shared libraries, but programs linked with such libtool 8196*** libraries will work regardless of this problem. Nevertheless, you 8197*** may want to report the problem to your system manager and/or to 8198*** bug-libtool@gnu.org 8199 8200EOF 8201 fi ;; 8202 esac 8203 fi 8204 break 8205 fi 8206 done 8207 IFS="$lt_save_ifs" 8208 MAGIC_CMD="$lt_save_MAGIC_CMD" 8209 ;; 8210esac 8211fi 8212 8213MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8214if test -n "$MAGIC_CMD"; then 8215 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8216echo "${ECHO_T}$MAGIC_CMD" >&6 8217else 8218 echo "$as_me:$LINENO: result: no" >&5 8219echo "${ECHO_T}no" >&6 8220fi 8221 8222 else 8223 MAGIC_CMD=: 8224 fi 8225fi 8226 8227 fi 8228 ;; 8229esac 8230 8231enable_dlopen=no 8232enable_win32_dll=no 8233 8234# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8235if test "${enable_libtool_lock+set}" = set; then 8236 enableval="$enable_libtool_lock" 8237 8238fi; 8239test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8240 8241 8242# Check whether --with-pic or --without-pic was given. 8243if test "${with_pic+set}" = set; then 8244 withval="$with_pic" 8245 pic_mode="$withval" 8246else 8247 pic_mode=default 8248fi; 8249test -z "$pic_mode" && pic_mode=default 8250 8251# Use C for the default configuration in the libtool script 8252tagname= 8253lt_save_CC="$CC" 8254ac_ext=c 8255ac_cpp='$CPP $CPPFLAGS' 8256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8258ac_compiler_gnu=$ac_cv_c_compiler_gnu 8259 8260 8261# Source file extension for C test sources. 8262ac_ext=c 8263 8264# Object file extension for compiled C test sources. 8265objext=o 8266objext=$objext 8267 8268# Code to be used in simple compile tests 8269lt_simple_compile_test_code="int some_variable = 0;\n" 8270 8271# Code to be used in simple link tests 8272lt_simple_link_test_code='int main(){return(0);}\n' 8273 8274 8275# If no C compiler was specified, use CC. 8276LTCC=${LTCC-"$CC"} 8277 8278# Allow CC to be a program name with arguments. 8279compiler=$CC 8280 8281 8282# save warnings/boilerplate of simple test code 8283ac_outfile=conftest.$ac_objext 8284printf "$lt_simple_compile_test_code" >conftest.$ac_ext 8285eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 8286_lt_compiler_boilerplate=`cat conftest.err` 8287$rm conftest* 8288 8289ac_outfile=conftest.$ac_objext 8290printf "$lt_simple_link_test_code" >conftest.$ac_ext 8291eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 8292_lt_linker_boilerplate=`cat conftest.err` 8293$rm conftest* 8294 8295 8296# 8297# Check for any special shared library compilation flags. 8298# 8299lt_prog_cc_shlib= 8300if test "$GCC" = no; then 8301 case $host_os in 8302 sco3.2v5*) 8303 lt_prog_cc_shlib='-belf' 8304 ;; 8305 esac 8306fi 8307if test -n "$lt_prog_cc_shlib"; then 8308 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 8309echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 8310 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 8311 else 8312 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 8313echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 8314 lt_cv_prog_cc_can_build_shared=no 8315 fi 8316fi 8317 8318 8319# 8320# Check to make sure the static flag actually works. 8321# 8322echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 8323echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 8324if test "${lt_prog_compiler_static_works+set}" = set; then 8325 echo $ECHO_N "(cached) $ECHO_C" >&6 8326else 8327 lt_prog_compiler_static_works=no 8328 save_LDFLAGS="$LDFLAGS" 8329 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 8330 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8332 # The linker can only warn and ignore the option if not recognized 8333 # So say no if there are warnings 8334 if test -s conftest.err; then 8335 # Append any errors to the config.log. 8336 cat conftest.err 1>&5 8337 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 8338 $SED '/^$/d' conftest.err >conftest.er2 8339 if diff conftest.exp conftest.er2 >/dev/null; then 8340 lt_prog_compiler_static_works=yes 8341 fi 8342 else 8343 lt_prog_compiler_static_works=yes 8344 fi 8345 fi 8346 $rm conftest* 8347 LDFLAGS="$save_LDFLAGS" 8348 8349fi 8350echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8351echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 8352 8353if test x"$lt_prog_compiler_static_works" = xyes; then 8354 : 8355else 8356 lt_prog_compiler_static= 8357fi 8358 8359 8360 8361 8362lt_prog_compiler_no_builtin_flag= 8363 8364if test "$GCC" = yes; then 8365 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8366 8367 8368echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8369echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 8370if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8371 echo $ECHO_N "(cached) $ECHO_C" >&6 8372else 8373 lt_cv_prog_compiler_rtti_exceptions=no 8374 ac_outfile=conftest.$ac_objext 8375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8376 lt_compiler_flag="-fno-rtti -fno-exceptions" 8377 # Insert the option either (1) after the last *FLAGS variable, or 8378 # (2) before a word containing "conftest.", or (3) at the end. 8379 # Note that $ac_compile itself does not contain backslashes and begins 8380 # with a dollar sign (not a hyphen), so the echo should work correctly. 8381 # The option is referenced via a variable to avoid confusing sed. 8382 lt_compile=`echo "$ac_compile" | $SED \ 8383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8385 -e 's:$: $lt_compiler_flag:'` 8386 (eval echo "\"\$as_me:8386: $lt_compile\"" >&5) 8387 (eval "$lt_compile" 2>conftest.err) 8388 ac_status=$? 8389 cat conftest.err >&5 8390 echo "$as_me:8390: \$? = $ac_status" >&5 8391 if (exit $ac_status) && test -s "$ac_outfile"; then 8392 # The compiler can only warn and ignore the option if not recognized 8393 # So say no if there are warnings other than the usual output. 8394 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 8395 $SED '/^$/d' conftest.err >conftest.er2 8396 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 8397 lt_cv_prog_compiler_rtti_exceptions=yes 8398 fi 8399 fi 8400 $rm conftest* 8401 8402fi 8403echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8404echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8405 8406if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8407 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8408else 8409 : 8410fi 8411 8412fi 8413 8414lt_prog_compiler_wl= 8415lt_prog_compiler_pic= 8416lt_prog_compiler_static= 8417 8418echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8419echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8420 8421 if test "$GCC" = yes; then 8422 lt_prog_compiler_wl='-Wl,' 8423 lt_prog_compiler_static='-static' 8424 8425 case $host_os in 8426 aix*) 8427 # All AIX code is PIC. 8428 if test "$host_cpu" = ia64; then 8429 # AIX 5 now supports IA64 processor 8430 lt_prog_compiler_static='-Bstatic' 8431 fi 8432 ;; 8433 8434 amigaos*) 8435 # FIXME: we need at least 68020 code to build shared libraries, but 8436 # adding the `-m68020' flag to GCC prevents building anything better, 8437 # like `-m68040'. 8438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8439 ;; 8440 8441 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8442 # PIC is the default for these OSes. 8443 ;; 8444 8445 mingw* | pw32* | os2*) 8446 # This hack is so that the source file can tell whether it is being 8447 # built for inclusion in a dll (and should export symbols for example). 8448 lt_prog_compiler_pic='-DDLL_EXPORT' 8449 ;; 8450 8451 darwin* | rhapsody*) 8452 # PIC is the default on this platform 8453 # Common symbols not allowed in MH_DYLIB files 8454 lt_prog_compiler_pic='-fno-common' 8455 ;; 8456 8457 msdosdjgpp*) 8458 # Just because we use GCC doesn't mean we suddenly get shared libraries 8459 # on systems that don't support them. 8460 lt_prog_compiler_can_build_shared=no 8461 enable_shared=no 8462 ;; 8463 8464 sysv4*MP*) 8465 if test -d /usr/nec; then 8466 lt_prog_compiler_pic=-Kconform_pic 8467 fi 8468 ;; 8469 8470 hpux*) 8471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8472 # not for PA HP-UX. 8473 case $host_cpu in 8474 hppa*64*|ia64*) 8475 # +Z the default 8476 ;; 8477 *) 8478 lt_prog_compiler_pic='-fPIC' 8479 ;; 8480 esac 8481 ;; 8482 8483 *) 8484 lt_prog_compiler_pic='-fPIC' 8485 ;; 8486 esac 8487 else 8488 # PORTME Check for flag to pass linker flags through the system compiler. 8489 case $host_os in 8490 aix*) 8491 lt_prog_compiler_wl='-Wl,' 8492 if test "$host_cpu" = ia64; then 8493 # AIX 5 now supports IA64 processor 8494 lt_prog_compiler_static='-Bstatic' 8495 else 8496 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8497 fi 8498 ;; 8499 darwin*) 8500 # PIC is the default on this platform 8501 # Common symbols not allowed in MH_DYLIB files 8502 case $cc_basename in 8503 xlc*) 8504 lt_prog_compiler_pic='-qnocommon' 8505 lt_prog_compiler_wl='-Wl,' 8506 ;; 8507 esac 8508 ;; 8509 8510 mingw* | pw32* | os2*) 8511 # This hack is so that the source file can tell whether it is being 8512 # built for inclusion in a dll (and should export symbols for example). 8513 lt_prog_compiler_pic='-DDLL_EXPORT' 8514 ;; 8515 8516 hpux9* | hpux10* | hpux11*) 8517 lt_prog_compiler_wl='-Wl,' 8518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8519 # not for PA HP-UX. 8520 case $host_cpu in 8521 hppa*64*|ia64*) 8522 # +Z the default 8523 ;; 8524 *) 8525 lt_prog_compiler_pic='+Z' 8526 ;; 8527 esac 8528 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8529 lt_prog_compiler_static='${wl}-a ${wl}archive' 8530 ;; 8531 8532 irix5* | irix6* | nonstopux*) 8533 lt_prog_compiler_wl='-Wl,' 8534 # PIC (with -KPIC) is the default. 8535 lt_prog_compiler_static='-non_shared' 8536 ;; 8537 8538 newsos6) 8539 lt_prog_compiler_pic='-KPIC' 8540 lt_prog_compiler_static='-Bstatic' 8541 ;; 8542 8543 linux*) 8544 case $cc_basename in 8545 icc* | ecc*) 8546 lt_prog_compiler_wl='-Wl,' 8547 lt_prog_compiler_pic='-KPIC' 8548 lt_prog_compiler_static='-static' 8549 ;; 8550 pgcc* | pgf77* | pgf90* | pgf95*) 8551 # Portland Group compilers (*not* the Pentium gcc compiler, 8552 # which looks to be a dead project) 8553 lt_prog_compiler_wl='-Wl,' 8554 lt_prog_compiler_pic='-fpic' 8555 lt_prog_compiler_static='-Bstatic' 8556 ;; 8557 ccc*) 8558 lt_prog_compiler_wl='-Wl,' 8559 # All Alpha code is PIC. 8560 lt_prog_compiler_static='-non_shared' 8561 ;; 8562 esac 8563 ;; 8564 8565 osf3* | osf4* | osf5*) 8566 lt_prog_compiler_wl='-Wl,' 8567 # All OSF/1 code is PIC. 8568 lt_prog_compiler_static='-non_shared' 8569 ;; 8570 8571 sco3.2v5*) 8572 lt_prog_compiler_pic='-Kpic' 8573 lt_prog_compiler_static='-dn' 8574 ;; 8575 8576 solaris*) 8577 lt_prog_compiler_pic='-KPIC' 8578 lt_prog_compiler_static='-Bstatic' 8579 case $cc_basename in 8580 f77* | f90* | f95*) 8581 lt_prog_compiler_wl='-Qoption ld ';; 8582 *) 8583 lt_prog_compiler_wl='-Wl,';; 8584 esac 8585 ;; 8586 8587 sunos4*) 8588 lt_prog_compiler_wl='-Qoption ld ' 8589 lt_prog_compiler_pic='-PIC' 8590 lt_prog_compiler_static='-Bstatic' 8591 ;; 8592 8593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8594 lt_prog_compiler_wl='-Wl,' 8595 lt_prog_compiler_pic='-KPIC' 8596 lt_prog_compiler_static='-Bstatic' 8597 ;; 8598 8599 sysv4*MP*) 8600 if test -d /usr/nec ;then 8601 lt_prog_compiler_pic='-Kconform_pic' 8602 lt_prog_compiler_static='-Bstatic' 8603 fi 8604 ;; 8605 8606 unicos*) 8607 lt_prog_compiler_wl='-Wl,' 8608 lt_prog_compiler_can_build_shared=no 8609 ;; 8610 8611 uts4*) 8612 lt_prog_compiler_pic='-pic' 8613 lt_prog_compiler_static='-Bstatic' 8614 ;; 8615 8616 *) 8617 lt_prog_compiler_can_build_shared=no 8618 ;; 8619 esac 8620 fi 8621 8622echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8623echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8624 8625# 8626# Check to make sure the PIC flag actually works. 8627# 8628if test -n "$lt_prog_compiler_pic"; then 8629 8630echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8631echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8632if test "${lt_prog_compiler_pic_works+set}" = set; then 8633 echo $ECHO_N "(cached) $ECHO_C" >&6 8634else 8635 lt_prog_compiler_pic_works=no 8636 ac_outfile=conftest.$ac_objext 8637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8638 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8639 # Insert the option either (1) after the last *FLAGS variable, or 8640 # (2) before a word containing "conftest.", or (3) at the end. 8641 # Note that $ac_compile itself does not contain backslashes and begins 8642 # with a dollar sign (not a hyphen), so the echo should work correctly. 8643 # The option is referenced via a variable to avoid confusing sed. 8644 lt_compile=`echo "$ac_compile" | $SED \ 8645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8647 -e 's:$: $lt_compiler_flag:'` 8648 (eval echo "\"\$as_me:8648: $lt_compile\"" >&5) 8649 (eval "$lt_compile" 2>conftest.err) 8650 ac_status=$? 8651 cat conftest.err >&5 8652 echo "$as_me:8652: \$? = $ac_status" >&5 8653 if (exit $ac_status) && test -s "$ac_outfile"; then 8654 # The compiler can only warn and ignore the option if not recognized 8655 # So say no if there are warnings other than the usual output. 8656 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 8657 $SED '/^$/d' conftest.err >conftest.er2 8658 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 8659 lt_prog_compiler_pic_works=yes 8660 fi 8661 fi 8662 $rm conftest* 8663 8664fi 8665echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8666echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8667 8668if test x"$lt_prog_compiler_pic_works" = xyes; then 8669 case $lt_prog_compiler_pic in 8670 "" | " "*) ;; 8671 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8672 esac 8673else 8674 lt_prog_compiler_pic= 8675 lt_prog_compiler_can_build_shared=no 8676fi 8677 8678fi 8679case $host_os in 8680 # For platforms which do not support PIC, -DPIC is meaningless: 8681 *djgpp*) 8682 lt_prog_compiler_pic= 8683 ;; 8684 *) 8685 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8686 ;; 8687esac 8688 8689echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8690echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8691if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8692 echo $ECHO_N "(cached) $ECHO_C" >&6 8693else 8694 lt_cv_prog_compiler_c_o=no 8695 $rm -r conftest 2>/dev/null 8696 mkdir conftest 8697 cd conftest 8698 mkdir out 8699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8700 8701 lt_compiler_flag="-o out/conftest2.$ac_objext" 8702 # Insert the option either (1) after the last *FLAGS variable, or 8703 # (2) before a word containing "conftest.", or (3) at the end. 8704 # Note that $ac_compile itself does not contain backslashes and begins 8705 # with a dollar sign (not a hyphen), so the echo should work correctly. 8706 lt_compile=`echo "$ac_compile" | $SED \ 8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8709 -e 's:$: $lt_compiler_flag:'` 8710 (eval echo "\"\$as_me:8710: $lt_compile\"" >&5) 8711 (eval "$lt_compile" 2>out/conftest.err) 8712 ac_status=$? 8713 cat out/conftest.err >&5 8714 echo "$as_me:8714: \$? = $ac_status" >&5 8715 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8716 then 8717 # The compiler can only warn and ignore the option if not recognized 8718 # So say no if there are warnings 8719 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 8720 $SED '/^$/d' out/conftest.err >out/conftest.er2 8721 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8722 lt_cv_prog_compiler_c_o=yes 8723 fi 8724 fi 8725 chmod u+w . 2>&5 8726 $rm conftest* 8727 # SGI C++ compiler will create directory out/ii_files/ for 8728 # template instantiation 8729 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8730 $rm out/* && rmdir out 8731 cd .. 8732 rmdir conftest 8733 $rm conftest* 8734 8735fi 8736echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8737echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8738 8739 8740hard_links="nottested" 8741if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8742 # do not overwrite the value of need_locks provided by the user 8743 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8744echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8745 hard_links=yes 8746 $rm conftest* 8747 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8748 touch conftest.a 8749 ln conftest.a conftest.b 2>&5 || hard_links=no 8750 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8751 echo "$as_me:$LINENO: result: $hard_links" >&5 8752echo "${ECHO_T}$hard_links" >&6 8753 if test "$hard_links" = no; then 8754 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8755echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8756 need_locks=warn 8757 fi 8758else 8759 need_locks=no 8760fi 8761 8762echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8763echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8764 8765 runpath_var= 8766 allow_undefined_flag= 8767 enable_shared_with_static_runtimes=no 8768 archive_cmds= 8769 archive_expsym_cmds= 8770 old_archive_From_new_cmds= 8771 old_archive_from_expsyms_cmds= 8772 export_dynamic_flag_spec= 8773 whole_archive_flag_spec= 8774 thread_safe_flag_spec= 8775 hardcode_libdir_flag_spec= 8776 hardcode_libdir_flag_spec_ld= 8777 hardcode_libdir_separator= 8778 hardcode_direct=no 8779 hardcode_minus_L=no 8780 hardcode_shlibpath_var=unsupported 8781 link_all_deplibs=unknown 8782 hardcode_automatic=no 8783 module_cmds= 8784 module_expsym_cmds= 8785 always_export_symbols=no 8786 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8787 # include_expsyms should be a list of space-separated symbols to be *always* 8788 # included in the symbol list 8789 include_expsyms= 8790 # exclude_expsyms can be an extended regexp of symbols to exclude 8791 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8792 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8793 # as well as any symbol that contains `d'. 8794 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8795 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8796 # platforms (ab)use it in PIC code, but their linkers get confused if 8797 # the symbol is explicitly referenced. Since portable code cannot 8798 # rely on this symbol name, it's probably fine to never include it in 8799 # preloaded symbol tables. 8800 extract_expsyms_cmds= 8801 # Just being paranoid about ensuring that cc_basename is set. 8802 for cc_temp in $compiler""; do 8803 case $cc_temp in 8804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8806 \-*) ;; 8807 *) break;; 8808 esac 8809done 8810cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8811 8812 case $host_os in 8813 cygwin* | mingw* | pw32*) 8814 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8815 # When not using gcc, we currently assume that we are using 8816 # Microsoft Visual C++. 8817 if test "$GCC" != yes; then 8818 with_gnu_ld=no 8819 fi 8820 ;; 8821 openbsd*) 8822 with_gnu_ld=no 8823 ;; 8824 esac 8825 8826 ld_shlibs=yes 8827 if test "$with_gnu_ld" = yes; then 8828 # If archive_cmds runs LD, not CC, wlarc should be empty 8829 wlarc='${wl}' 8830 8831 # Set some defaults for GNU ld with shared library support. These 8832 # are reset later if shared libraries are not supported. Putting them 8833 # here allows them to be overridden if necessary. 8834 runpath_var=LD_RUN_PATH 8835 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8836 export_dynamic_flag_spec='${wl}--export-dynamic' 8837 # ancient GNU ld didn't support --whole-archive et. al. 8838 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8839 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8840 else 8841 whole_archive_flag_spec= 8842 fi 8843 supports_anon_versioning=no 8844 case `$LD -v 2>/dev/null` in 8845 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8846 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8847 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8848 *\ 2.11.*) ;; # other 2.11 versions 8849 *) supports_anon_versioning=yes ;; 8850 esac 8851 8852 # See if GNU ld supports shared libraries. 8853 case $host_os in 8854 aix3* | aix4* | aix5*) 8855 # On AIX/PPC, the GNU linker is very broken 8856 if test "$host_cpu" != ia64; then 8857 ld_shlibs=no 8858 cat <<EOF 1>&2 8859 8860*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8861*** to be unable to reliably create shared libraries on AIX. 8862*** Therefore, libtool is disabling shared libraries support. If you 8863*** really care for shared libraries, you may want to modify your PATH 8864*** so that a non-GNU linker is found, and then restart. 8865 8866EOF 8867 fi 8868 ;; 8869 8870 amigaos*) 8871 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)' 8872 hardcode_libdir_flag_spec='-L$libdir' 8873 hardcode_minus_L=yes 8874 8875 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8876 # that the semantics of dynamic libraries on AmigaOS, at least up 8877 # to version 4, is to share data among multiple programs linked 8878 # with the same dynamic library. Since this doesn't match the 8879 # behavior of shared libraries on other platforms, we can't use 8880 # them. 8881 ld_shlibs=no 8882 ;; 8883 8884 beos*) 8885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8886 allow_undefined_flag=unsupported 8887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8888 # support --undefined. This deserves some investigation. FIXME 8889 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8890 else 8891 ld_shlibs=no 8892 fi 8893 ;; 8894 8895 cygwin* | mingw* | pw32*) 8896 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8897 # as there is no search path for DLLs. 8898 hardcode_libdir_flag_spec='-L$libdir' 8899 allow_undefined_flag=unsupported 8900 always_export_symbols=no 8901 enable_shared_with_static_runtimes=yes 8902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8903 8904 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 8906 # If the export-symbols file already is a .def file (1st line 8907 # is EXPORTS), use it as is; otherwise, prepend... 8908 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8909 cp $export_symbols $output_objdir/$soname.def; 8910 else 8911 echo EXPORTS > $output_objdir/$soname.def; 8912 cat $export_symbols >> $output_objdir/$soname.def; 8913 fi~ 8914 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 8915 else 8916 ld_shlibs=no 8917 fi 8918 ;; 8919 8920 linux*) 8921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8922 tmp_addflag= 8923 case $cc_basename,$host_cpu in 8924 pgcc*) # Portland Group C compiler 8925 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' 8926 tmp_addflag=' $pic_flag' 8927 ;; 8928 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8929 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' 8930 tmp_addflag=' $pic_flag -Mnomain' ;; 8931 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8932 tmp_addflag=' -i_dynamic' ;; 8933 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8934 tmp_addflag=' -i_dynamic -nofor_main' ;; 8935 ifc* | ifort*) # Intel Fortran compiler 8936 tmp_addflag=' -nofor_main' ;; 8937 esac 8938 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8939 8940 if test $supports_anon_versioning = yes; then 8941 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8942 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8943 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8944 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8945 fi 8946 else 8947 ld_shlibs=no 8948 fi 8949 ;; 8950 8951 netbsd*) 8952 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8953 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8954 wlarc= 8955 else 8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8958 fi 8959 ;; 8960 8961 solaris* | sysv5*) 8962 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8963 ld_shlibs=no 8964 cat <<EOF 1>&2 8965 8966*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8967*** create shared libraries on Solaris systems. Therefore, libtool 8968*** is disabling shared libraries support. We urge you to upgrade GNU 8969*** binutils to release 2.9.1 or newer. Another option is to modify 8970*** your PATH or compiler configuration so that the native linker is 8971*** used, and then restart. 8972 8973EOF 8974 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8977 else 8978 ld_shlibs=no 8979 fi 8980 ;; 8981 8982 sunos4*) 8983 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8984 wlarc= 8985 hardcode_direct=yes 8986 hardcode_shlibpath_var=no 8987 ;; 8988 8989 *) 8990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8992 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8993 else 8994 ld_shlibs=no 8995 fi 8996 ;; 8997 esac 8998 8999 if test "$ld_shlibs" = no; then 9000 runpath_var= 9001 hardcode_libdir_flag_spec= 9002 export_dynamic_flag_spec= 9003 whole_archive_flag_spec= 9004 fi 9005 else 9006 # PORTME fill in a description of your system's linker (not GNU ld) 9007 case $host_os in 9008 aix3*) 9009 allow_undefined_flag=unsupported 9010 always_export_symbols=yes 9011 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' 9012 # Note: this linker hardcodes the directories in LIBPATH if there 9013 # are no directories specified by -L. 9014 hardcode_minus_L=yes 9015 if test "$GCC" = yes && test -z "$link_static_flag"; then 9016 # Neither direct hardcoding nor static linking is supported with a 9017 # broken collect2. 9018 hardcode_direct=unsupported 9019 fi 9020 ;; 9021 9022 aix4* | aix5*) 9023 if test "$host_cpu" = ia64; then 9024 # On IA64, the linker does run time linking by default, so we don't 9025 # have to do anything special. 9026 aix_use_runtimelinking=no 9027 exp_sym_flag='-Bexport' 9028 no_entry_flag="" 9029 else 9030 # If we're using GNU nm, then we don't want the "-C" option. 9031 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9032 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9033 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' 9034 else 9035 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' 9036 fi 9037 aix_use_runtimelinking=no 9038 9039 # Test if we are trying to use run time linking or normal 9040 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9041 # need to do runtime linking. 9042 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9043 for ld_flag in $LDFLAGS; do 9044 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9045 aix_use_runtimelinking=yes 9046 break 9047 fi 9048 done 9049 esac 9050 9051 exp_sym_flag='-bexport' 9052 no_entry_flag='-bnoentry' 9053 fi 9054 9055 # When large executables or shared objects are built, AIX ld can 9056 # have problems creating the table of contents. If linking a library 9057 # or program results in "error TOC overflow" add -mminimal-toc to 9058 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9059 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9060 9061 archive_cmds='' 9062 hardcode_direct=yes 9063 hardcode_libdir_separator=':' 9064 link_all_deplibs=yes 9065 9066 if test "$GCC" = yes; then 9067 case $host_os in aix4.[012]|aix4.[012].*) 9068 # We only want to do this on AIX 4.2 and lower, the check 9069 # below for broken collect2 doesn't work under 4.3+ 9070 collect2name=`${CC} -print-prog-name=collect2` 9071 if test -f "$collect2name" && \ 9072 strings "$collect2name" | grep resolve_lib_name >/dev/null 9073 then 9074 # We have reworked collect2 9075 hardcode_direct=yes 9076 else 9077 # We have old collect2 9078 hardcode_direct=unsupported 9079 # It fails to find uninstalled libraries when the uninstalled 9080 # path is not listed in the libpath. Setting hardcode_minus_L 9081 # to unsupported forces relinking 9082 hardcode_minus_L=yes 9083 hardcode_libdir_flag_spec='-L$libdir' 9084 hardcode_libdir_separator= 9085 fi 9086 esac 9087 shared_flag='-shared' 9088 if test "$aix_use_runtimelinking" = yes; then 9089 shared_flag="$shared_flag "'${wl}-G' 9090 fi 9091 else 9092 # not using gcc 9093 if test "$host_cpu" = ia64; then 9094 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9095 # chokes on -Wl,-G. The following line is correct: 9096 shared_flag='-G' 9097 else 9098 if test "$aix_use_runtimelinking" = yes; then 9099 shared_flag='${wl}-G' 9100 else 9101 shared_flag='${wl}-bM:SRE' 9102 fi 9103 fi 9104 fi 9105 9106 # It seems that -bexpall does not export symbols beginning with 9107 # underscore (_), so it is better to generate a list of symbols to export. 9108 always_export_symbols=yes 9109 if test "$aix_use_runtimelinking" = yes; then 9110 # Warning - without using the other runtime loading flags (-brtl), 9111 # -berok will link without error, but may produce a broken library. 9112 allow_undefined_flag='-berok' 9113 # Determine the default libpath from the value encoded in an empty executable. 9114 cat >conftest.$ac_ext <<_ACEOF 9115/* confdefs.h. */ 9116_ACEOF 9117cat confdefs.h >>conftest.$ac_ext 9118cat >>conftest.$ac_ext <<_ACEOF 9119/* end confdefs.h. */ 9120 9121int 9122main () 9123{ 9124 9125 ; 9126 return 0; 9127} 9128_ACEOF 9129rm -f conftest.$ac_objext conftest$ac_exeext 9130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9131 (eval $ac_link) 2>conftest.er1 9132 ac_status=$? 9133 grep -v '^ *+' conftest.er1 >conftest.err 9134 rm -f conftest.er1 9135 cat conftest.err >&5 9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9137 (exit $ac_status); } && 9138 { ac_try='test -z "$ac_c_werror_flag" 9139 || test ! -s conftest.err' 9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9141 (eval $ac_try) 2>&5 9142 ac_status=$? 9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 (exit $ac_status); }; } && 9145 { ac_try='test -s conftest$ac_exeext' 9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9147 (eval $ac_try) 2>&5 9148 ac_status=$? 9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9150 (exit $ac_status); }; }; then 9151 9152aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9153}'` 9154# Check for a 64-bit object if we didn't find anything. 9155if 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; } 9156}'`; fi 9157else 9158 echo "$as_me: failed program was:" >&5 9159sed 's/^/| /' conftest.$ac_ext >&5 9160 9161fi 9162rm -f conftest.err conftest.$ac_objext \ 9163 conftest$ac_exeext conftest.$ac_ext 9164if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9165 9166 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9167 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9168 else 9169 if test "$host_cpu" = ia64; then 9170 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9171 allow_undefined_flag="-z nodefs" 9172 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 9173 else 9174 # Determine the default libpath from the value encoded in an empty executable. 9175 cat >conftest.$ac_ext <<_ACEOF 9176/* confdefs.h. */ 9177_ACEOF 9178cat confdefs.h >>conftest.$ac_ext 9179cat >>conftest.$ac_ext <<_ACEOF 9180/* end confdefs.h. */ 9181 9182int 9183main () 9184{ 9185 9186 ; 9187 return 0; 9188} 9189_ACEOF 9190rm -f conftest.$ac_objext conftest$ac_exeext 9191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9192 (eval $ac_link) 2>conftest.er1 9193 ac_status=$? 9194 grep -v '^ *+' conftest.er1 >conftest.err 9195 rm -f conftest.er1 9196 cat conftest.err >&5 9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9198 (exit $ac_status); } && 9199 { ac_try='test -z "$ac_c_werror_flag" 9200 || test ! -s conftest.err' 9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9202 (eval $ac_try) 2>&5 9203 ac_status=$? 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9205 (exit $ac_status); }; } && 9206 { ac_try='test -s conftest$ac_exeext' 9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9208 (eval $ac_try) 2>&5 9209 ac_status=$? 9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9211 (exit $ac_status); }; }; then 9212 9213aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9214}'` 9215# Check for a 64-bit object if we didn't find anything. 9216if 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; } 9217}'`; fi 9218else 9219 echo "$as_me: failed program was:" >&5 9220sed 's/^/| /' conftest.$ac_ext >&5 9221 9222fi 9223rm -f conftest.err conftest.$ac_objext \ 9224 conftest$ac_exeext conftest.$ac_ext 9225if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9226 9227 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9228 # Warning - without using the other run time loading flags, 9229 # -berok will link without error, but may produce a broken library. 9230 no_undefined_flag=' ${wl}-bernotok' 9231 allow_undefined_flag=' ${wl}-berok' 9232 # -bexpall does not export symbols beginning with underscore (_) 9233 always_export_symbols=yes 9234 # Exported symbols can be pulled into shared objects from archives 9235 whole_archive_flag_spec=' ' 9236 archive_cmds_need_lc=yes 9237 # This is similar to how AIX traditionally builds its shared libraries. 9238 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9239 fi 9240 fi 9241 ;; 9242 9243 amigaos*) 9244 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)' 9245 hardcode_libdir_flag_spec='-L$libdir' 9246 hardcode_minus_L=yes 9247 # see comment about different semantics on the GNU ld section 9248 ld_shlibs=no 9249 ;; 9250 9251 bsdi[45]*) 9252 export_dynamic_flag_spec=-rdynamic 9253 ;; 9254 9255 cygwin* | mingw* | pw32*) 9256 # When not using gcc, we currently assume that we are using 9257 # Microsoft Visual C++. 9258 # hardcode_libdir_flag_spec is actually meaningless, as there is 9259 # no search path for DLLs. 9260 hardcode_libdir_flag_spec=' ' 9261 allow_undefined_flag=unsupported 9262 # Tell ltmain to make .lib files, not .a files. 9263 libext=lib 9264 # Tell ltmain to make .dll files, not .so files. 9265 shrext_cmds=".dll" 9266 # FIXME: Setting linknames here is a bad hack. 9267 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9268 # The linker will automatically build a .lib file if we build a DLL. 9269 old_archive_From_new_cmds='true' 9270 # FIXME: Should let the user specify the lib program. 9271 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9272 fix_srcfile_path='`cygpath -w "$srcfile"`' 9273 enable_shared_with_static_runtimes=yes 9274 ;; 9275 9276 darwin* | rhapsody*) 9277 case $host_os in 9278 rhapsody* | darwin1.[012]) 9279 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9280 ;; 9281 *) # Darwin 1.3 on 9282 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9283 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9284 else 9285 case ${MACOSX_DEPLOYMENT_TARGET} in 9286 10.[012]) 9287 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9288 ;; 9289 10.*) 9290 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9291 ;; 9292 esac 9293 fi 9294 ;; 9295 esac 9296 archive_cmds_need_lc=no 9297 hardcode_direct=no 9298 hardcode_automatic=yes 9299 hardcode_shlibpath_var=unsupported 9300 whole_archive_flag_spec='' 9301 link_all_deplibs=yes 9302 if test "$GCC" = yes ; then 9303 output_verbose_link_cmd='echo' 9304 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9305 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9306 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9307 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}' 9308 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}' 9309 else 9310 case $cc_basename in 9311 xlc*) 9312 output_verbose_link_cmd='echo' 9313 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9314 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9315 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9316 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}' 9317 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}' 9318 ;; 9319 *) 9320 ld_shlibs=no 9321 ;; 9322 esac 9323 fi 9324 ;; 9325 9326 dgux*) 9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9328 hardcode_libdir_flag_spec='-L$libdir' 9329 hardcode_shlibpath_var=no 9330 ;; 9331 9332 freebsd1*) 9333 ld_shlibs=no 9334 ;; 9335 9336 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9337 # support. Future versions do this automatically, but an explicit c++rt0.o 9338 # does not break anything, and helps significantly (at the cost of a little 9339 # extra space). 9340 freebsd2.2*) 9341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9342 hardcode_libdir_flag_spec='-R$libdir' 9343 hardcode_direct=yes 9344 hardcode_shlibpath_var=no 9345 ;; 9346 9347 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9348 freebsd2*) 9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9350 hardcode_direct=yes 9351 hardcode_minus_L=yes 9352 hardcode_shlibpath_var=no 9353 ;; 9354 9355 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9356 freebsd* | kfreebsd*-gnu | dragonfly*) 9357 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9358 hardcode_libdir_flag_spec='-R$libdir' 9359 hardcode_direct=yes 9360 hardcode_shlibpath_var=no 9361 ;; 9362 9363 hpux9*) 9364 if test "$GCC" = yes; then 9365 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' 9366 else 9367 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' 9368 fi 9369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9370 hardcode_libdir_separator=: 9371 hardcode_direct=yes 9372 9373 # hardcode_minus_L: Not really in the search PATH, 9374 # but as the default location of the library. 9375 hardcode_minus_L=yes 9376 export_dynamic_flag_spec='${wl}-E' 9377 ;; 9378 9379 hpux10* | hpux11*) 9380 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9381 case $host_cpu in 9382 hppa*64*|ia64*) 9383 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9384 ;; 9385 *) 9386 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9387 ;; 9388 esac 9389 else 9390 case $host_cpu in 9391 hppa*64*|ia64*) 9392 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 9393 ;; 9394 *) 9395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9396 ;; 9397 esac 9398 fi 9399 if test "$with_gnu_ld" = no; then 9400 case $host_cpu in 9401 hppa*64*) 9402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9403 hardcode_libdir_flag_spec_ld='+b $libdir' 9404 hardcode_libdir_separator=: 9405 hardcode_direct=no 9406 hardcode_shlibpath_var=no 9407 ;; 9408 ia64*) 9409 hardcode_libdir_flag_spec='-L$libdir' 9410 hardcode_direct=no 9411 hardcode_shlibpath_var=no 9412 9413 # hardcode_minus_L: Not really in the search PATH, 9414 # but as the default location of the library. 9415 hardcode_minus_L=yes 9416 ;; 9417 *) 9418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9419 hardcode_libdir_separator=: 9420 hardcode_direct=yes 9421 export_dynamic_flag_spec='${wl}-E' 9422 9423 # hardcode_minus_L: Not really in the search PATH, 9424 # but as the default location of the library. 9425 hardcode_minus_L=yes 9426 ;; 9427 esac 9428 fi 9429 ;; 9430 9431 irix5* | irix6* | nonstopux*) 9432 if test "$GCC" = yes; then 9433 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' 9434 else 9435 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' 9436 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9437 fi 9438 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9439 hardcode_libdir_separator=: 9440 link_all_deplibs=yes 9441 ;; 9442 9443 netbsd*) 9444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9445 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9446 else 9447 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9448 fi 9449 hardcode_libdir_flag_spec='-R$libdir' 9450 hardcode_direct=yes 9451 hardcode_shlibpath_var=no 9452 ;; 9453 9454 newsos6) 9455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9456 hardcode_direct=yes 9457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9458 hardcode_libdir_separator=: 9459 hardcode_shlibpath_var=no 9460 ;; 9461 9462 openbsd*) 9463 hardcode_direct=yes 9464 hardcode_shlibpath_var=no 9465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9466 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9467 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9469 export_dynamic_flag_spec='${wl}-E' 9470 else 9471 case $host_os in 9472 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9474 hardcode_libdir_flag_spec='-R$libdir' 9475 ;; 9476 *) 9477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9479 ;; 9480 esac 9481 fi 9482 ;; 9483 9484 os2*) 9485 hardcode_libdir_flag_spec='-L$libdir' 9486 hardcode_minus_L=yes 9487 allow_undefined_flag=unsupported 9488 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' 9489 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9490 ;; 9491 9492 osf3*) 9493 if test "$GCC" = yes; then 9494 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9495 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' 9496 else 9497 allow_undefined_flag=' -expect_unresolved \*' 9498 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' 9499 fi 9500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9501 hardcode_libdir_separator=: 9502 ;; 9503 9504 osf4* | osf5*) # as osf3* with the addition of -msym flag 9505 if test "$GCC" = yes; then 9506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9507 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' 9508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9509 else 9510 allow_undefined_flag=' -expect_unresolved \*' 9511 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' 9512 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9513 $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' 9514 9515 # Both c and cxx compiler support -rpath directly 9516 hardcode_libdir_flag_spec='-rpath $libdir' 9517 fi 9518 hardcode_libdir_separator=: 9519 ;; 9520 9521 sco3.2v5*) 9522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9523 hardcode_shlibpath_var=no 9524 export_dynamic_flag_spec='${wl}-Bexport' 9525 runpath_var=LD_RUN_PATH 9526 hardcode_runpath_var=yes 9527 ;; 9528 9529 solaris*) 9530 no_undefined_flag=' -z text' 9531 if test "$GCC" = yes; then 9532 wlarc='${wl}' 9533 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9534 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9535 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9536 else 9537 wlarc='' 9538 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9539 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9540 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9541 fi 9542 hardcode_libdir_flag_spec='-R$libdir' 9543 hardcode_shlibpath_var=no 9544 case $host_os in 9545 solaris2.[0-5] | solaris2.[0-5].*) ;; 9546 *) 9547 # The compiler driver will combine linker options so we 9548 # cannot just pass the convience library names through 9549 # without $wl, iff we do not link with $LD. 9550 # Luckily, gcc supports the same syntax we need for Sun Studio. 9551 # Supported since Solaris 2.6 (maybe 2.5.1?) 9552 case $wlarc in 9553 '') 9554 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9555 *) 9556 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' ;; 9557 esac ;; 9558 esac 9559 link_all_deplibs=yes 9560 ;; 9561 9562 sunos4*) 9563 if test "x$host_vendor" = xsequent; then 9564 # Use $CC to link under sequent, because it throws in some extra .o 9565 # files that make .init and .fini sections work. 9566 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9567 else 9568 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9569 fi 9570 hardcode_libdir_flag_spec='-L$libdir' 9571 hardcode_direct=yes 9572 hardcode_minus_L=yes 9573 hardcode_shlibpath_var=no 9574 ;; 9575 9576 sysv4) 9577 case $host_vendor in 9578 sni) 9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9580 hardcode_direct=yes # is this really true??? 9581 ;; 9582 siemens) 9583 ## LD is ld it makes a PLAMLIB 9584 ## CC just makes a GrossModule. 9585 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9586 reload_cmds='$CC -r -o $output$reload_objs' 9587 hardcode_direct=no 9588 ;; 9589 motorola) 9590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9591 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9592 ;; 9593 esac 9594 runpath_var='LD_RUN_PATH' 9595 hardcode_shlibpath_var=no 9596 ;; 9597 9598 sysv4.3*) 9599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9600 hardcode_shlibpath_var=no 9601 export_dynamic_flag_spec='-Bexport' 9602 ;; 9603 9604 sysv4*MP*) 9605 if test -d /usr/nec; then 9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9607 hardcode_shlibpath_var=no 9608 runpath_var=LD_RUN_PATH 9609 hardcode_runpath_var=yes 9610 ld_shlibs=yes 9611 fi 9612 ;; 9613 9614 sysv4.2uw2*) 9615 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9616 hardcode_direct=yes 9617 hardcode_minus_L=no 9618 hardcode_shlibpath_var=no 9619 hardcode_runpath_var=yes 9620 runpath_var=LD_RUN_PATH 9621 ;; 9622 9623 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 9624 no_undefined_flag='${wl}-z ${wl}text' 9625 if test "$GCC" = yes; then 9626 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9627 else 9628 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9629 fi 9630 runpath_var='LD_RUN_PATH' 9631 hardcode_shlibpath_var=no 9632 ;; 9633 9634 sysv5*) 9635 no_undefined_flag=' -z text' 9636 # $CC -shared without GNU ld will not create a library from C++ 9637 # object files and a static libstdc++, better avoid it by now 9638 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9639 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9641 hardcode_libdir_flag_spec= 9642 hardcode_shlibpath_var=no 9643 runpath_var='LD_RUN_PATH' 9644 ;; 9645 9646 uts4*) 9647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9648 hardcode_libdir_flag_spec='-L$libdir' 9649 hardcode_shlibpath_var=no 9650 ;; 9651 9652 *) 9653 ld_shlibs=no 9654 ;; 9655 esac 9656 fi 9657 9658echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9659echo "${ECHO_T}$ld_shlibs" >&6 9660test "$ld_shlibs" = no && can_build_shared=no 9661 9662variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9663if test "$GCC" = yes; then 9664 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9665fi 9666 9667# 9668# Do we need to explicitly link libc? 9669# 9670case "x$archive_cmds_need_lc" in 9671x|xyes) 9672 # Assume -lc should be added 9673 archive_cmds_need_lc=yes 9674 9675 if test "$enable_shared" = yes && test "$GCC" = yes; then 9676 case $archive_cmds in 9677 *'~'*) 9678 # FIXME: we may have to deal with multi-command sequences. 9679 ;; 9680 '$CC '*) 9681 # Test whether the compiler implicitly links with -lc since on some 9682 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9683 # to ld, don't add -lc before -lgcc. 9684 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9685echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9686 $rm conftest* 9687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9688 9689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9690 (eval $ac_compile) 2>&5 9691 ac_status=$? 9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9693 (exit $ac_status); } 2>conftest.err; then 9694 soname=conftest 9695 lib=conftest 9696 libobjs=conftest.$ac_objext 9697 deplibs= 9698 wl=$lt_prog_compiler_wl 9699 compiler_flags=-v 9700 linker_flags=-v 9701 verstring= 9702 output_objdir=. 9703 libname=conftest 9704 lt_save_allow_undefined_flag=$allow_undefined_flag 9705 allow_undefined_flag= 9706 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9707 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9708 ac_status=$? 9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9710 (exit $ac_status); } 9711 then 9712 archive_cmds_need_lc=no 9713 else 9714 archive_cmds_need_lc=yes 9715 fi 9716 allow_undefined_flag=$lt_save_allow_undefined_flag 9717 else 9718 cat conftest.err 1>&5 9719 fi 9720 $rm conftest* 9721 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9722echo "${ECHO_T}$archive_cmds_need_lc" >&6 9723 ;; 9724 esac 9725 fi 9726 ;; 9727esac 9728 9729echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9730echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9731library_names_spec= 9732libname_spec='lib$name' 9733soname_spec= 9734shrext_cmds=".so" 9735postinstall_cmds= 9736postuninstall_cmds= 9737finish_cmds= 9738finish_eval= 9739shlibpath_var= 9740shlibpath_overrides_runpath=unknown 9741version_type=none 9742dynamic_linker="$host_os ld.so" 9743sys_lib_dlsearch_path_spec="/lib /usr/lib" 9744if test "$GCC" = yes; then 9745 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9746 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9747 # if the path contains ";" then we assume it to be the separator 9748 # otherwise default to the standard path separator (i.e. ":") - it is 9749 # assumed that no part of a normal pathname contains ";" but that should 9750 # okay in the real world where ";" in dirpaths is itself problematic. 9751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9752 else 9753 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9754 fi 9755else 9756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9757fi 9758need_lib_prefix=unknown 9759hardcode_into_libs=no 9760 9761# when you set need_version to no, make sure it does not cause -set_version 9762# flags to be left without arguments 9763need_version=unknown 9764 9765case $host_os in 9766aix3*) 9767 version_type=linux 9768 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9769 shlibpath_var=LIBPATH 9770 9771 # AIX 3 has no versioning support, so we append a major version to the name. 9772 soname_spec='${libname}${release}${shared_ext}$major' 9773 ;; 9774 9775aix4* | aix5*) 9776 version_type=linux 9777 need_lib_prefix=no 9778 need_version=no 9779 hardcode_into_libs=yes 9780 if test "$host_cpu" = ia64; then 9781 # AIX 5 supports IA64 9782 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9783 shlibpath_var=LD_LIBRARY_PATH 9784 else 9785 # With GCC up to 2.95.x, collect2 would create an import file 9786 # for dependence libraries. The import file would start with 9787 # the line `#! .'. This would cause the generated library to 9788 # depend on `.', always an invalid library. This was fixed in 9789 # development snapshots of GCC prior to 3.0. 9790 case $host_os in 9791 aix4 | aix4.[01] | aix4.[01].*) 9792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9793 echo ' yes ' 9794 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9795 : 9796 else 9797 can_build_shared=no 9798 fi 9799 ;; 9800 esac 9801 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9802 # soname into executable. Probably we can add versioning support to 9803 # collect2, so additional links can be useful in future. 9804 if test "$aix_use_runtimelinking" = yes; then 9805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9806 # instead of lib<name>.a to let people know that these are not 9807 # typical AIX shared libraries. 9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9809 else 9810 # We preserve .a as extension for shared libraries through AIX4.2 9811 # and later when we are not doing run time linking. 9812 library_names_spec='${libname}${release}.a $libname.a' 9813 soname_spec='${libname}${release}${shared_ext}$major' 9814 fi 9815 shlibpath_var=LIBPATH 9816 fi 9817 ;; 9818 9819amigaos*) 9820 library_names_spec='$libname.ixlibrary $libname.a' 9821 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9822 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' 9823 ;; 9824 9825beos*) 9826 library_names_spec='${libname}${shared_ext}' 9827 dynamic_linker="$host_os ld.so" 9828 shlibpath_var=LIBRARY_PATH 9829 ;; 9830 9831bsdi[45]*) 9832 version_type=linux 9833 need_version=no 9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9835 soname_spec='${libname}${release}${shared_ext}$major' 9836 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9837 shlibpath_var=LD_LIBRARY_PATH 9838 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9839 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9840 # the default ld.so.conf also contains /usr/contrib/lib and 9841 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9842 # libtool to hard-code these into programs 9843 ;; 9844 9845cygwin* | mingw* | pw32*) 9846 version_type=windows 9847 shrext_cmds=".dll" 9848 need_version=no 9849 need_lib_prefix=no 9850 9851 case $GCC,$host_os in 9852 yes,cygwin* | yes,mingw* | yes,pw32*) 9853 library_names_spec='$libname.dll.a' 9854 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9855 postinstall_cmds='base_file=`basename \${file}`~ 9856 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9857 dldir=$destdir/`dirname \$dlpath`~ 9858 test -d \$dldir || mkdir -p \$dldir~ 9859 $install_prog $dir/$dlname \$dldir/$dlname~ 9860 chmod a+x \$dldir/$dlname' 9861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9862 dlpath=$dir/\$dldll~ 9863 $rm \$dlpath' 9864 shlibpath_overrides_runpath=yes 9865 9866 case $host_os in 9867 cygwin*) 9868 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9869 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9870 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9871 ;; 9872 mingw*) 9873 # MinGW DLLs use traditional 'lib' prefix 9874 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9876 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9877 # It is most probably a Windows format PATH printed by 9878 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9879 # path with ; separators, and with drive letters. We can handle the 9880 # drive letters (cygwin fileutils understands them), so leave them, 9881 # especially as we might pass files found there to a mingw objdump, 9882 # which wouldn't understand a cygwinified path. Ahh. 9883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9884 else 9885 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9886 fi 9887 ;; 9888 pw32*) 9889 # pw32 DLLs use 'pw' prefix rather than 'lib' 9890 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9891 ;; 9892 esac 9893 ;; 9894 9895 *) 9896 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9897 ;; 9898 esac 9899 dynamic_linker='Win32 ld.exe' 9900 # FIXME: first we should search . and the directory the executable is in 9901 shlibpath_var=PATH 9902 ;; 9903 9904darwin* | rhapsody*) 9905 dynamic_linker="$host_os dyld" 9906 version_type=darwin 9907 need_lib_prefix=no 9908 need_version=no 9909 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9910 soname_spec='${libname}${release}${major}$shared_ext' 9911 shlibpath_overrides_runpath=yes 9912 shlibpath_var=DYLD_LIBRARY_PATH 9913 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9914 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9915 if test "$GCC" = yes; then 9916 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"` 9917 else 9918 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9919 fi 9920 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9921 ;; 9922 9923dgux*) 9924 version_type=linux 9925 need_lib_prefix=no 9926 need_version=no 9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9928 soname_spec='${libname}${release}${shared_ext}$major' 9929 shlibpath_var=LD_LIBRARY_PATH 9930 ;; 9931 9932freebsd1*) 9933 dynamic_linker=no 9934 ;; 9935 9936kfreebsd*-gnu) 9937 version_type=linux 9938 need_lib_prefix=no 9939 need_version=no 9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9941 soname_spec='${libname}${release}${shared_ext}$major' 9942 shlibpath_var=LD_LIBRARY_PATH 9943 shlibpath_overrides_runpath=no 9944 hardcode_into_libs=yes 9945 dynamic_linker='GNU ld.so' 9946 ;; 9947 9948freebsd* | dragonfly*) 9949 # DragonFly does not have aout. When/if they implement a new 9950 # versioning mechanism, adjust this. 9951 if test -x /usr/bin/objformat; then 9952 objformat=`/usr/bin/objformat` 9953 else 9954 case $host_os in 9955 freebsd[123]*) objformat=aout ;; 9956 *) objformat=elf ;; 9957 esac 9958 fi 9959 version_type=freebsd-$objformat 9960 case $version_type in 9961 freebsd-elf*) 9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9963 need_version=no 9964 need_lib_prefix=no 9965 ;; 9966 freebsd-*) 9967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9968 need_version=yes 9969 ;; 9970 esac 9971 shlibpath_var=LD_LIBRARY_PATH 9972 case $host_os in 9973 freebsd2*) 9974 shlibpath_overrides_runpath=yes 9975 ;; 9976 freebsd3.[01]* | freebsdelf3.[01]*) 9977 shlibpath_overrides_runpath=yes 9978 hardcode_into_libs=yes 9979 ;; 9980 *) # from 3.2 on 9981 shlibpath_overrides_runpath=no 9982 hardcode_into_libs=yes 9983 ;; 9984 esac 9985 ;; 9986 9987gnu*) 9988 version_type=linux 9989 need_lib_prefix=no 9990 need_version=no 9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9992 soname_spec='${libname}${release}${shared_ext}$major' 9993 shlibpath_var=LD_LIBRARY_PATH 9994 hardcode_into_libs=yes 9995 ;; 9996 9997hpux9* | hpux10* | hpux11*) 9998 # Give a soname corresponding to the major version so that dld.sl refuses to 9999 # link against other versions. 10000 version_type=sunos 10001 need_lib_prefix=no 10002 need_version=no 10003 case $host_cpu in 10004 ia64*) 10005 shrext_cmds='.so' 10006 hardcode_into_libs=yes 10007 dynamic_linker="$host_os dld.so" 10008 shlibpath_var=LD_LIBRARY_PATH 10009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10011 soname_spec='${libname}${release}${shared_ext}$major' 10012 if test "X$HPUX_IA64_MODE" = X32; then 10013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10014 else 10015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10016 fi 10017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10018 ;; 10019 hppa*64*) 10020 shrext_cmds='.sl' 10021 hardcode_into_libs=yes 10022 dynamic_linker="$host_os dld.sl" 10023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10026 soname_spec='${libname}${release}${shared_ext}$major' 10027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10029 ;; 10030 *) 10031 shrext_cmds='.sl' 10032 dynamic_linker="$host_os dld.sl" 10033 shlibpath_var=SHLIB_PATH 10034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10036 soname_spec='${libname}${release}${shared_ext}$major' 10037 ;; 10038 esac 10039 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10040 postinstall_cmds='chmod 555 $lib' 10041 ;; 10042 10043irix5* | irix6* | nonstopux*) 10044 case $host_os in 10045 nonstopux*) version_type=nonstopux ;; 10046 *) 10047 if test "$lt_cv_prog_gnu_ld" = yes; then 10048 version_type=linux 10049 else 10050 version_type=irix 10051 fi ;; 10052 esac 10053 need_lib_prefix=no 10054 need_version=no 10055 soname_spec='${libname}${release}${shared_ext}$major' 10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10057 case $host_os in 10058 irix5* | nonstopux*) 10059 libsuff= shlibsuff= 10060 ;; 10061 *) 10062 case $LD in # libtool.m4 will add one of these switches to LD 10063 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10064 libsuff= shlibsuff= libmagic=32-bit;; 10065 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10066 libsuff=32 shlibsuff=N32 libmagic=N32;; 10067 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10068 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10069 *) libsuff= shlibsuff= libmagic=never-match;; 10070 esac 10071 ;; 10072 esac 10073 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10074 shlibpath_overrides_runpath=no 10075 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10076 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10077 hardcode_into_libs=yes 10078 ;; 10079 10080# No shared lib support for Linux oldld, aout, or coff. 10081linux*oldld* | linux*aout* | linux*coff*) 10082 dynamic_linker=no 10083 ;; 10084 10085# This must be Linux ELF. 10086linux*) 10087 version_type=linux 10088 need_lib_prefix=no 10089 need_version=no 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10091 soname_spec='${libname}${release}${shared_ext}$major' 10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10093 shlibpath_var=LD_LIBRARY_PATH 10094 shlibpath_overrides_runpath=no 10095 # This implies no fast_install, which is unacceptable. 10096 # Some rework will be needed to allow for fast_install 10097 # before this can be enabled. 10098 hardcode_into_libs=yes 10099 10100 # Append ld.so.conf contents to the search path 10101 if test -f /etc/ld.so.conf; then 10102 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10103 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10104 fi 10105 10106 # We used to test for /lib/ld.so.1 and disable shared libraries on 10107 # powerpc, because MkLinux only supported shared libraries with the 10108 # GNU dynamic linker. Since this was broken with cross compilers, 10109 # most powerpc-linux boxes support dynamic linking these days and 10110 # people can always --disable-shared, the test was removed, and we 10111 # assume the GNU/Linux dynamic linker is in use. 10112 dynamic_linker='GNU/Linux ld.so' 10113 ;; 10114 10115knetbsd*-gnu) 10116 version_type=linux 10117 need_lib_prefix=no 10118 need_version=no 10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10120 soname_spec='${libname}${release}${shared_ext}$major' 10121 shlibpath_var=LD_LIBRARY_PATH 10122 shlibpath_overrides_runpath=no 10123 hardcode_into_libs=yes 10124 dynamic_linker='GNU ld.so' 10125 ;; 10126 10127netbsd*) 10128 version_type=sunos 10129 need_lib_prefix=no 10130 need_version=no 10131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10134 dynamic_linker='NetBSD (a.out) ld.so' 10135 else 10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10137 soname_spec='${libname}${release}${shared_ext}$major' 10138 dynamic_linker='NetBSD ld.elf_so' 10139 fi 10140 shlibpath_var=LD_LIBRARY_PATH 10141 shlibpath_overrides_runpath=yes 10142 hardcode_into_libs=yes 10143 ;; 10144 10145newsos6) 10146 version_type=linux 10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10148 shlibpath_var=LD_LIBRARY_PATH 10149 shlibpath_overrides_runpath=yes 10150 ;; 10151 10152nto-qnx*) 10153 version_type=linux 10154 need_lib_prefix=no 10155 need_version=no 10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10157 soname_spec='${libname}${release}${shared_ext}$major' 10158 shlibpath_var=LD_LIBRARY_PATH 10159 shlibpath_overrides_runpath=yes 10160 ;; 10161 10162openbsd*) 10163 version_type=sunos 10164 need_lib_prefix=no 10165 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10166 case $host_os in 10167 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10168 *) need_version=no ;; 10169 esac 10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10172 shlibpath_var=LD_LIBRARY_PATH 10173 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10174 case $host_os in 10175 openbsd2.[89] | openbsd2.[89].*) 10176 shlibpath_overrides_runpath=no 10177 ;; 10178 *) 10179 shlibpath_overrides_runpath=yes 10180 ;; 10181 esac 10182 else 10183 shlibpath_overrides_runpath=yes 10184 fi 10185 ;; 10186 10187os2*) 10188 libname_spec='$name' 10189 shrext_cmds=".dll" 10190 need_lib_prefix=no 10191 library_names_spec='$libname${shared_ext} $libname.a' 10192 dynamic_linker='OS/2 ld.exe' 10193 shlibpath_var=LIBPATH 10194 ;; 10195 10196osf3* | osf4* | osf5*) 10197 version_type=osf 10198 need_lib_prefix=no 10199 need_version=no 10200 soname_spec='${libname}${release}${shared_ext}$major' 10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10202 shlibpath_var=LD_LIBRARY_PATH 10203 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10204 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10205 ;; 10206 10207sco3.2v5*) 10208 version_type=osf 10209 soname_spec='${libname}${release}${shared_ext}$major' 10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10211 shlibpath_var=LD_LIBRARY_PATH 10212 ;; 10213 10214solaris*) 10215 version_type=linux 10216 need_lib_prefix=no 10217 need_version=no 10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10219 soname_spec='${libname}${release}${shared_ext}$major' 10220 shlibpath_var=LD_LIBRARY_PATH 10221 shlibpath_overrides_runpath=yes 10222 hardcode_into_libs=yes 10223 # ldd complains unless libraries are executable 10224 postinstall_cmds='chmod +x $lib' 10225 ;; 10226 10227sunos4*) 10228 version_type=sunos 10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10230 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10231 shlibpath_var=LD_LIBRARY_PATH 10232 shlibpath_overrides_runpath=yes 10233 if test "$with_gnu_ld" = yes; then 10234 need_lib_prefix=no 10235 fi 10236 need_version=yes 10237 ;; 10238 10239sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10240 version_type=linux 10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10242 soname_spec='${libname}${release}${shared_ext}$major' 10243 shlibpath_var=LD_LIBRARY_PATH 10244 case $host_vendor in 10245 sni) 10246 shlibpath_overrides_runpath=no 10247 need_lib_prefix=no 10248 export_dynamic_flag_spec='${wl}-Blargedynsym' 10249 runpath_var=LD_RUN_PATH 10250 ;; 10251 siemens) 10252 need_lib_prefix=no 10253 ;; 10254 motorola) 10255 need_lib_prefix=no 10256 need_version=no 10257 shlibpath_overrides_runpath=no 10258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10259 ;; 10260 esac 10261 ;; 10262 10263sysv4*MP*) 10264 if test -d /usr/nec ;then 10265 version_type=linux 10266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10267 soname_spec='$libname${shared_ext}.$major' 10268 shlibpath_var=LD_LIBRARY_PATH 10269 fi 10270 ;; 10271 10272uts4*) 10273 version_type=linux 10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10275 soname_spec='${libname}${release}${shared_ext}$major' 10276 shlibpath_var=LD_LIBRARY_PATH 10277 ;; 10278 10279*) 10280 dynamic_linker=no 10281 ;; 10282esac 10283echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10284echo "${ECHO_T}$dynamic_linker" >&6 10285test "$dynamic_linker" = no && can_build_shared=no 10286 10287echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10288echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10289hardcode_action= 10290if test -n "$hardcode_libdir_flag_spec" || \ 10291 test -n "$runpath_var" || \ 10292 test "X$hardcode_automatic" = "Xyes" ; then 10293 10294 # We can hardcode non-existant directories. 10295 if test "$hardcode_direct" != no && 10296 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10297 # have to relink, otherwise we might link with an installed library 10298 # when we should be linking with a yet-to-be-installed one 10299 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10300 test "$hardcode_minus_L" != no; then 10301 # Linking always hardcodes the temporary library directory. 10302 hardcode_action=relink 10303 else 10304 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10305 hardcode_action=immediate 10306 fi 10307else 10308 # We cannot hardcode anything, or else we can only hardcode existing 10309 # directories. 10310 hardcode_action=unsupported 10311fi 10312echo "$as_me:$LINENO: result: $hardcode_action" >&5 10313echo "${ECHO_T}$hardcode_action" >&6 10314 10315if test "$hardcode_action" = relink; then 10316 # Fast installation is not supported 10317 enable_fast_install=no 10318elif test "$shlibpath_overrides_runpath" = yes || 10319 test "$enable_shared" = no; then 10320 # Fast installation is not necessary 10321 enable_fast_install=needless 10322fi 10323 10324striplib= 10325old_striplib= 10326echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10327echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10328if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10329 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10330 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10331 echo "$as_me:$LINENO: result: yes" >&5 10332echo "${ECHO_T}yes" >&6 10333else 10334# FIXME - insert some real tests, host_os isn't really good enough 10335 case $host_os in 10336 darwin*) 10337 if test -n "$STRIP" ; then 10338 striplib="$STRIP -x" 10339 echo "$as_me:$LINENO: result: yes" >&5 10340echo "${ECHO_T}yes" >&6 10341 else 10342 echo "$as_me:$LINENO: result: no" >&5 10343echo "${ECHO_T}no" >&6 10344fi 10345 ;; 10346 *) 10347 echo "$as_me:$LINENO: result: no" >&5 10348echo "${ECHO_T}no" >&6 10349 ;; 10350 esac 10351fi 10352 10353if test "x$enable_dlopen" != xyes; then 10354 enable_dlopen=unknown 10355 enable_dlopen_self=unknown 10356 enable_dlopen_self_static=unknown 10357else 10358 lt_cv_dlopen=no 10359 lt_cv_dlopen_libs= 10360 10361 case $host_os in 10362 beos*) 10363 lt_cv_dlopen="load_add_on" 10364 lt_cv_dlopen_libs= 10365 lt_cv_dlopen_self=yes 10366 ;; 10367 10368 mingw* | pw32*) 10369 lt_cv_dlopen="LoadLibrary" 10370 lt_cv_dlopen_libs= 10371 ;; 10372 10373 cygwin*) 10374 lt_cv_dlopen="dlopen" 10375 lt_cv_dlopen_libs= 10376 ;; 10377 10378 darwin*) 10379 # if libdl is installed we need to link against it 10380 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10381echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10382if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10383 echo $ECHO_N "(cached) $ECHO_C" >&6 10384else 10385 ac_check_lib_save_LIBS=$LIBS 10386LIBS="-ldl $LIBS" 10387cat >conftest.$ac_ext <<_ACEOF 10388/* confdefs.h. */ 10389_ACEOF 10390cat confdefs.h >>conftest.$ac_ext 10391cat >>conftest.$ac_ext <<_ACEOF 10392/* end confdefs.h. */ 10393 10394/* Override any gcc2 internal prototype to avoid an error. */ 10395#ifdef __cplusplus 10396extern "C" 10397#endif 10398/* We use char because int might match the return type of a gcc2 10399 builtin and then its argument prototype would still apply. */ 10400char dlopen (); 10401int 10402main () 10403{ 10404dlopen (); 10405 ; 10406 return 0; 10407} 10408_ACEOF 10409rm -f conftest.$ac_objext conftest$ac_exeext 10410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10411 (eval $ac_link) 2>conftest.er1 10412 ac_status=$? 10413 grep -v '^ *+' conftest.er1 >conftest.err 10414 rm -f conftest.er1 10415 cat conftest.err >&5 10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10417 (exit $ac_status); } && 10418 { ac_try='test -z "$ac_c_werror_flag" 10419 || test ! -s conftest.err' 10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10421 (eval $ac_try) 2>&5 10422 ac_status=$? 10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10424 (exit $ac_status); }; } && 10425 { ac_try='test -s conftest$ac_exeext' 10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10427 (eval $ac_try) 2>&5 10428 ac_status=$? 10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10430 (exit $ac_status); }; }; then 10431 ac_cv_lib_dl_dlopen=yes 10432else 10433 echo "$as_me: failed program was:" >&5 10434sed 's/^/| /' conftest.$ac_ext >&5 10435 10436ac_cv_lib_dl_dlopen=no 10437fi 10438rm -f conftest.err conftest.$ac_objext \ 10439 conftest$ac_exeext conftest.$ac_ext 10440LIBS=$ac_check_lib_save_LIBS 10441fi 10442echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10443echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10444if test $ac_cv_lib_dl_dlopen = yes; then 10445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10446else 10447 10448 lt_cv_dlopen="dyld" 10449 lt_cv_dlopen_libs= 10450 lt_cv_dlopen_self=yes 10451 10452fi 10453 10454 ;; 10455 10456 *) 10457 echo "$as_me:$LINENO: checking for shl_load" >&5 10458echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10459if test "${ac_cv_func_shl_load+set}" = set; then 10460 echo $ECHO_N "(cached) $ECHO_C" >&6 10461else 10462 cat >conftest.$ac_ext <<_ACEOF 10463/* confdefs.h. */ 10464_ACEOF 10465cat confdefs.h >>conftest.$ac_ext 10466cat >>conftest.$ac_ext <<_ACEOF 10467/* end confdefs.h. */ 10468/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10469 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10470#define shl_load innocuous_shl_load 10471 10472/* System header to define __stub macros and hopefully few prototypes, 10473 which can conflict with char shl_load (); below. 10474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10475 <limits.h> exists even on freestanding compilers. */ 10476 10477#ifdef __STDC__ 10478# include <limits.h> 10479#else 10480# include <assert.h> 10481#endif 10482 10483#undef shl_load 10484 10485/* Override any gcc2 internal prototype to avoid an error. */ 10486#ifdef __cplusplus 10487extern "C" 10488{ 10489#endif 10490/* We use char because int might match the return type of a gcc2 10491 builtin and then its argument prototype would still apply. */ 10492char shl_load (); 10493/* The GNU C library defines this for functions which it implements 10494 to always fail with ENOSYS. Some functions are actually named 10495 something starting with __ and the normal name is an alias. */ 10496#if defined (__stub_shl_load) || defined (__stub___shl_load) 10497choke me 10498#else 10499char (*f) () = shl_load; 10500#endif 10501#ifdef __cplusplus 10502} 10503#endif 10504 10505int 10506main () 10507{ 10508return f != shl_load; 10509 ; 10510 return 0; 10511} 10512_ACEOF 10513rm -f conftest.$ac_objext conftest$ac_exeext 10514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10515 (eval $ac_link) 2>conftest.er1 10516 ac_status=$? 10517 grep -v '^ *+' conftest.er1 >conftest.err 10518 rm -f conftest.er1 10519 cat conftest.err >&5 10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10521 (exit $ac_status); } && 10522 { ac_try='test -z "$ac_c_werror_flag" 10523 || test ! -s conftest.err' 10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10525 (eval $ac_try) 2>&5 10526 ac_status=$? 10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10528 (exit $ac_status); }; } && 10529 { ac_try='test -s conftest$ac_exeext' 10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10531 (eval $ac_try) 2>&5 10532 ac_status=$? 10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10534 (exit $ac_status); }; }; then 10535 ac_cv_func_shl_load=yes 10536else 10537 echo "$as_me: failed program was:" >&5 10538sed 's/^/| /' conftest.$ac_ext >&5 10539 10540ac_cv_func_shl_load=no 10541fi 10542rm -f conftest.err conftest.$ac_objext \ 10543 conftest$ac_exeext conftest.$ac_ext 10544fi 10545echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10546echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10547if test $ac_cv_func_shl_load = yes; then 10548 lt_cv_dlopen="shl_load" 10549else 10550 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10551echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10552if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10553 echo $ECHO_N "(cached) $ECHO_C" >&6 10554else 10555 ac_check_lib_save_LIBS=$LIBS 10556LIBS="-ldld $LIBS" 10557cat >conftest.$ac_ext <<_ACEOF 10558/* confdefs.h. */ 10559_ACEOF 10560cat confdefs.h >>conftest.$ac_ext 10561cat >>conftest.$ac_ext <<_ACEOF 10562/* end confdefs.h. */ 10563 10564/* Override any gcc2 internal prototype to avoid an error. */ 10565#ifdef __cplusplus 10566extern "C" 10567#endif 10568/* We use char because int might match the return type of a gcc2 10569 builtin and then its argument prototype would still apply. */ 10570char shl_load (); 10571int 10572main () 10573{ 10574shl_load (); 10575 ; 10576 return 0; 10577} 10578_ACEOF 10579rm -f conftest.$ac_objext conftest$ac_exeext 10580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10581 (eval $ac_link) 2>conftest.er1 10582 ac_status=$? 10583 grep -v '^ *+' conftest.er1 >conftest.err 10584 rm -f conftest.er1 10585 cat conftest.err >&5 10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10587 (exit $ac_status); } && 10588 { ac_try='test -z "$ac_c_werror_flag" 10589 || test ! -s conftest.err' 10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10591 (eval $ac_try) 2>&5 10592 ac_status=$? 10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10594 (exit $ac_status); }; } && 10595 { ac_try='test -s conftest$ac_exeext' 10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10597 (eval $ac_try) 2>&5 10598 ac_status=$? 10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10600 (exit $ac_status); }; }; then 10601 ac_cv_lib_dld_shl_load=yes 10602else 10603 echo "$as_me: failed program was:" >&5 10604sed 's/^/| /' conftest.$ac_ext >&5 10605 10606ac_cv_lib_dld_shl_load=no 10607fi 10608rm -f conftest.err conftest.$ac_objext \ 10609 conftest$ac_exeext conftest.$ac_ext 10610LIBS=$ac_check_lib_save_LIBS 10611fi 10612echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10613echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10614if test $ac_cv_lib_dld_shl_load = yes; then 10615 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10616else 10617 echo "$as_me:$LINENO: checking for dlopen" >&5 10618echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10619if test "${ac_cv_func_dlopen+set}" = set; then 10620 echo $ECHO_N "(cached) $ECHO_C" >&6 10621else 10622 cat >conftest.$ac_ext <<_ACEOF 10623/* confdefs.h. */ 10624_ACEOF 10625cat confdefs.h >>conftest.$ac_ext 10626cat >>conftest.$ac_ext <<_ACEOF 10627/* end confdefs.h. */ 10628/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10629 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10630#define dlopen innocuous_dlopen 10631 10632/* System header to define __stub macros and hopefully few prototypes, 10633 which can conflict with char dlopen (); below. 10634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10635 <limits.h> exists even on freestanding compilers. */ 10636 10637#ifdef __STDC__ 10638# include <limits.h> 10639#else 10640# include <assert.h> 10641#endif 10642 10643#undef dlopen 10644 10645/* Override any gcc2 internal prototype to avoid an error. */ 10646#ifdef __cplusplus 10647extern "C" 10648{ 10649#endif 10650/* We use char because int might match the return type of a gcc2 10651 builtin and then its argument prototype would still apply. */ 10652char dlopen (); 10653/* The GNU C library defines this for functions which it implements 10654 to always fail with ENOSYS. Some functions are actually named 10655 something starting with __ and the normal name is an alias. */ 10656#if defined (__stub_dlopen) || defined (__stub___dlopen) 10657choke me 10658#else 10659char (*f) () = dlopen; 10660#endif 10661#ifdef __cplusplus 10662} 10663#endif 10664 10665int 10666main () 10667{ 10668return f != dlopen; 10669 ; 10670 return 0; 10671} 10672_ACEOF 10673rm -f conftest.$ac_objext conftest$ac_exeext 10674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10675 (eval $ac_link) 2>conftest.er1 10676 ac_status=$? 10677 grep -v '^ *+' conftest.er1 >conftest.err 10678 rm -f conftest.er1 10679 cat conftest.err >&5 10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10681 (exit $ac_status); } && 10682 { ac_try='test -z "$ac_c_werror_flag" 10683 || test ! -s conftest.err' 10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10685 (eval $ac_try) 2>&5 10686 ac_status=$? 10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10688 (exit $ac_status); }; } && 10689 { ac_try='test -s conftest$ac_exeext' 10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10691 (eval $ac_try) 2>&5 10692 ac_status=$? 10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10694 (exit $ac_status); }; }; then 10695 ac_cv_func_dlopen=yes 10696else 10697 echo "$as_me: failed program was:" >&5 10698sed 's/^/| /' conftest.$ac_ext >&5 10699 10700ac_cv_func_dlopen=no 10701fi 10702rm -f conftest.err conftest.$ac_objext \ 10703 conftest$ac_exeext conftest.$ac_ext 10704fi 10705echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10706echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10707if test $ac_cv_func_dlopen = yes; then 10708 lt_cv_dlopen="dlopen" 10709else 10710 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10711echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10712if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10713 echo $ECHO_N "(cached) $ECHO_C" >&6 10714else 10715 ac_check_lib_save_LIBS=$LIBS 10716LIBS="-ldl $LIBS" 10717cat >conftest.$ac_ext <<_ACEOF 10718/* confdefs.h. */ 10719_ACEOF 10720cat confdefs.h >>conftest.$ac_ext 10721cat >>conftest.$ac_ext <<_ACEOF 10722/* end confdefs.h. */ 10723 10724/* Override any gcc2 internal prototype to avoid an error. */ 10725#ifdef __cplusplus 10726extern "C" 10727#endif 10728/* We use char because int might match the return type of a gcc2 10729 builtin and then its argument prototype would still apply. */ 10730char dlopen (); 10731int 10732main () 10733{ 10734dlopen (); 10735 ; 10736 return 0; 10737} 10738_ACEOF 10739rm -f conftest.$ac_objext conftest$ac_exeext 10740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10741 (eval $ac_link) 2>conftest.er1 10742 ac_status=$? 10743 grep -v '^ *+' conftest.er1 >conftest.err 10744 rm -f conftest.er1 10745 cat conftest.err >&5 10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10747 (exit $ac_status); } && 10748 { ac_try='test -z "$ac_c_werror_flag" 10749 || test ! -s conftest.err' 10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10751 (eval $ac_try) 2>&5 10752 ac_status=$? 10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10754 (exit $ac_status); }; } && 10755 { ac_try='test -s conftest$ac_exeext' 10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10757 (eval $ac_try) 2>&5 10758 ac_status=$? 10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10760 (exit $ac_status); }; }; then 10761 ac_cv_lib_dl_dlopen=yes 10762else 10763 echo "$as_me: failed program was:" >&5 10764sed 's/^/| /' conftest.$ac_ext >&5 10765 10766ac_cv_lib_dl_dlopen=no 10767fi 10768rm -f conftest.err conftest.$ac_objext \ 10769 conftest$ac_exeext conftest.$ac_ext 10770LIBS=$ac_check_lib_save_LIBS 10771fi 10772echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10773echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10774if test $ac_cv_lib_dl_dlopen = yes; then 10775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10776else 10777 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10778echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10779if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10780 echo $ECHO_N "(cached) $ECHO_C" >&6 10781else 10782 ac_check_lib_save_LIBS=$LIBS 10783LIBS="-lsvld $LIBS" 10784cat >conftest.$ac_ext <<_ACEOF 10785/* confdefs.h. */ 10786_ACEOF 10787cat confdefs.h >>conftest.$ac_ext 10788cat >>conftest.$ac_ext <<_ACEOF 10789/* end confdefs.h. */ 10790 10791/* Override any gcc2 internal prototype to avoid an error. */ 10792#ifdef __cplusplus 10793extern "C" 10794#endif 10795/* We use char because int might match the return type of a gcc2 10796 builtin and then its argument prototype would still apply. */ 10797char dlopen (); 10798int 10799main () 10800{ 10801dlopen (); 10802 ; 10803 return 0; 10804} 10805_ACEOF 10806rm -f conftest.$ac_objext conftest$ac_exeext 10807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10808 (eval $ac_link) 2>conftest.er1 10809 ac_status=$? 10810 grep -v '^ *+' conftest.er1 >conftest.err 10811 rm -f conftest.er1 10812 cat conftest.err >&5 10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10814 (exit $ac_status); } && 10815 { ac_try='test -z "$ac_c_werror_flag" 10816 || test ! -s conftest.err' 10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10818 (eval $ac_try) 2>&5 10819 ac_status=$? 10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10821 (exit $ac_status); }; } && 10822 { ac_try='test -s conftest$ac_exeext' 10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10824 (eval $ac_try) 2>&5 10825 ac_status=$? 10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10827 (exit $ac_status); }; }; then 10828 ac_cv_lib_svld_dlopen=yes 10829else 10830 echo "$as_me: failed program was:" >&5 10831sed 's/^/| /' conftest.$ac_ext >&5 10832 10833ac_cv_lib_svld_dlopen=no 10834fi 10835rm -f conftest.err conftest.$ac_objext \ 10836 conftest$ac_exeext conftest.$ac_ext 10837LIBS=$ac_check_lib_save_LIBS 10838fi 10839echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10840echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10841if test $ac_cv_lib_svld_dlopen = yes; then 10842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10843else 10844 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10845echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10846if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10847 echo $ECHO_N "(cached) $ECHO_C" >&6 10848else 10849 ac_check_lib_save_LIBS=$LIBS 10850LIBS="-ldld $LIBS" 10851cat >conftest.$ac_ext <<_ACEOF 10852/* confdefs.h. */ 10853_ACEOF 10854cat confdefs.h >>conftest.$ac_ext 10855cat >>conftest.$ac_ext <<_ACEOF 10856/* end confdefs.h. */ 10857 10858/* Override any gcc2 internal prototype to avoid an error. */ 10859#ifdef __cplusplus 10860extern "C" 10861#endif 10862/* We use char because int might match the return type of a gcc2 10863 builtin and then its argument prototype would still apply. */ 10864char dld_link (); 10865int 10866main () 10867{ 10868dld_link (); 10869 ; 10870 return 0; 10871} 10872_ACEOF 10873rm -f conftest.$ac_objext conftest$ac_exeext 10874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10875 (eval $ac_link) 2>conftest.er1 10876 ac_status=$? 10877 grep -v '^ *+' conftest.er1 >conftest.err 10878 rm -f conftest.er1 10879 cat conftest.err >&5 10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10881 (exit $ac_status); } && 10882 { ac_try='test -z "$ac_c_werror_flag" 10883 || test ! -s conftest.err' 10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10885 (eval $ac_try) 2>&5 10886 ac_status=$? 10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10888 (exit $ac_status); }; } && 10889 { ac_try='test -s conftest$ac_exeext' 10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10891 (eval $ac_try) 2>&5 10892 ac_status=$? 10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10894 (exit $ac_status); }; }; then 10895 ac_cv_lib_dld_dld_link=yes 10896else 10897 echo "$as_me: failed program was:" >&5 10898sed 's/^/| /' conftest.$ac_ext >&5 10899 10900ac_cv_lib_dld_dld_link=no 10901fi 10902rm -f conftest.err conftest.$ac_objext \ 10903 conftest$ac_exeext conftest.$ac_ext 10904LIBS=$ac_check_lib_save_LIBS 10905fi 10906echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10907echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10908if test $ac_cv_lib_dld_dld_link = yes; then 10909 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10910fi 10911 10912 10913fi 10914 10915 10916fi 10917 10918 10919fi 10920 10921 10922fi 10923 10924 10925fi 10926 10927 ;; 10928 esac 10929 10930 if test "x$lt_cv_dlopen" != xno; then 10931 enable_dlopen=yes 10932 else 10933 enable_dlopen=no 10934 fi 10935 10936 case $lt_cv_dlopen in 10937 dlopen) 10938 save_CPPFLAGS="$CPPFLAGS" 10939 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10940 10941 save_LDFLAGS="$LDFLAGS" 10942 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10943 10944 save_LIBS="$LIBS" 10945 LIBS="$lt_cv_dlopen_libs $LIBS" 10946 10947 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10948echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 10949if test "${lt_cv_dlopen_self+set}" = set; then 10950 echo $ECHO_N "(cached) $ECHO_C" >&6 10951else 10952 if test "$cross_compiling" = yes; then : 10953 lt_cv_dlopen_self=cross 10954else 10955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10956 lt_status=$lt_dlunknown 10957 cat > conftest.$ac_ext <<EOF 10958#line 10958 "configure" 10959#include "confdefs.h" 10960 10961#if HAVE_DLFCN_H 10962#include <dlfcn.h> 10963#endif 10964 10965#include <stdio.h> 10966 10967#ifdef RTLD_GLOBAL 10968# define LT_DLGLOBAL RTLD_GLOBAL 10969#else 10970# ifdef DL_GLOBAL 10971# define LT_DLGLOBAL DL_GLOBAL 10972# else 10973# define LT_DLGLOBAL 0 10974# endif 10975#endif 10976 10977/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10978 find out it does not work in some platform. */ 10979#ifndef LT_DLLAZY_OR_NOW 10980# ifdef RTLD_LAZY 10981# define LT_DLLAZY_OR_NOW RTLD_LAZY 10982# else 10983# ifdef DL_LAZY 10984# define LT_DLLAZY_OR_NOW DL_LAZY 10985# else 10986# ifdef RTLD_NOW 10987# define LT_DLLAZY_OR_NOW RTLD_NOW 10988# else 10989# ifdef DL_NOW 10990# define LT_DLLAZY_OR_NOW DL_NOW 10991# else 10992# define LT_DLLAZY_OR_NOW 0 10993# endif 10994# endif 10995# endif 10996# endif 10997#endif 10998 10999#ifdef __cplusplus 11000extern "C" void exit (int); 11001#endif 11002 11003void fnord() { int i=42;} 11004int main () 11005{ 11006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11007 int status = $lt_dlunknown; 11008 11009 if (self) 11010 { 11011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11012 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11013 /* dlclose (self); */ 11014 } 11015 11016 exit (status); 11017} 11018EOF 11019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11020 (eval $ac_link) 2>&5 11021 ac_status=$? 11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11023 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11024 (./conftest; exit; ) >&5 2>/dev/null 11025 lt_status=$? 11026 case x$lt_status in 11027 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11028 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11029 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 11030 esac 11031 else : 11032 # compilation failed 11033 lt_cv_dlopen_self=no 11034 fi 11035fi 11036rm -fr conftest* 11037 11038 11039fi 11040echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11041echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11042 11043 if test "x$lt_cv_dlopen_self" = xyes; then 11044 LDFLAGS="$LDFLAGS $link_static_flag" 11045 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11046echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11047if test "${lt_cv_dlopen_self_static+set}" = set; then 11048 echo $ECHO_N "(cached) $ECHO_C" >&6 11049else 11050 if test "$cross_compiling" = yes; then : 11051 lt_cv_dlopen_self_static=cross 11052else 11053 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11054 lt_status=$lt_dlunknown 11055 cat > conftest.$ac_ext <<EOF 11056#line 11056 "configure" 11057#include "confdefs.h" 11058 11059#if HAVE_DLFCN_H 11060#include <dlfcn.h> 11061#endif 11062 11063#include <stdio.h> 11064 11065#ifdef RTLD_GLOBAL 11066# define LT_DLGLOBAL RTLD_GLOBAL 11067#else 11068# ifdef DL_GLOBAL 11069# define LT_DLGLOBAL DL_GLOBAL 11070# else 11071# define LT_DLGLOBAL 0 11072# endif 11073#endif 11074 11075/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11076 find out it does not work in some platform. */ 11077#ifndef LT_DLLAZY_OR_NOW 11078# ifdef RTLD_LAZY 11079# define LT_DLLAZY_OR_NOW RTLD_LAZY 11080# else 11081# ifdef DL_LAZY 11082# define LT_DLLAZY_OR_NOW DL_LAZY 11083# else 11084# ifdef RTLD_NOW 11085# define LT_DLLAZY_OR_NOW RTLD_NOW 11086# else 11087# ifdef DL_NOW 11088# define LT_DLLAZY_OR_NOW DL_NOW 11089# else 11090# define LT_DLLAZY_OR_NOW 0 11091# endif 11092# endif 11093# endif 11094# endif 11095#endif 11096 11097#ifdef __cplusplus 11098extern "C" void exit (int); 11099#endif 11100 11101void fnord() { int i=42;} 11102int main () 11103{ 11104 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11105 int status = $lt_dlunknown; 11106 11107 if (self) 11108 { 11109 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11110 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11111 /* dlclose (self); */ 11112 } 11113 11114 exit (status); 11115} 11116EOF 11117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11118 (eval $ac_link) 2>&5 11119 ac_status=$? 11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11121 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11122 (./conftest; exit; ) >&5 2>/dev/null 11123 lt_status=$? 11124 case x$lt_status in 11125 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11126 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11127 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 11128 esac 11129 else : 11130 # compilation failed 11131 lt_cv_dlopen_self_static=no 11132 fi 11133fi 11134rm -fr conftest* 11135 11136 11137fi 11138echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11139echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11140 fi 11141 11142 CPPFLAGS="$save_CPPFLAGS" 11143 LDFLAGS="$save_LDFLAGS" 11144 LIBS="$save_LIBS" 11145 ;; 11146 esac 11147 11148 case $lt_cv_dlopen_self in 11149 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11150 *) enable_dlopen_self=unknown ;; 11151 esac 11152 11153 case $lt_cv_dlopen_self_static in 11154 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11155 *) enable_dlopen_self_static=unknown ;; 11156 esac 11157fi 11158 11159 11160# Report which librarie types wil actually be built 11161echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11162echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 11163echo "$as_me:$LINENO: result: $can_build_shared" >&5 11164echo "${ECHO_T}$can_build_shared" >&6 11165 11166echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11167echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 11168test "$can_build_shared" = "no" && enable_shared=no 11169 11170# On AIX, shared libraries and static libraries use the same namespace, and 11171# are all built from PIC. 11172case $host_os in 11173aix3*) 11174 test "$enable_shared" = yes && enable_static=no 11175 if test -n "$RANLIB"; then 11176 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11177 postinstall_cmds='$RANLIB $lib' 11178 fi 11179 ;; 11180 11181aix4* | aix5*) 11182 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11183 test "$enable_shared" = yes && enable_static=no 11184 fi 11185 ;; 11186esac 11187echo "$as_me:$LINENO: result: $enable_shared" >&5 11188echo "${ECHO_T}$enable_shared" >&6 11189 11190echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11191echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 11192# Make sure either enable_shared or enable_static is yes. 11193test "$enable_shared" = yes || enable_static=yes 11194echo "$as_me:$LINENO: result: $enable_static" >&5 11195echo "${ECHO_T}$enable_static" >&6 11196 11197# The else clause should only fire when bootstrapping the 11198# libtool distribution, otherwise you forgot to ship ltmain.sh 11199# with your package, and you will get complaints that there are 11200# no rules to generate ltmain.sh. 11201if test -f "$ltmain"; then 11202 # See if we are running on zsh, and set the options which allow our commands through 11203 # without removal of \ escapes. 11204 if test -n "${ZSH_VERSION+set}" ; then 11205 setopt NO_GLOB_SUBST 11206 fi 11207 # Now quote all the things that may contain metacharacters while being 11208 # careful not to overquote the AC_SUBSTed values. We take copies of the 11209 # variables and quote the copies for generation of the libtool script. 11210 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 11211 SED SHELL STRIP \ 11212 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11213 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11214 deplibs_check_method reload_flag reload_cmds need_locks \ 11215 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11216 lt_cv_sys_global_symbol_to_c_name_address \ 11217 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11218 old_postinstall_cmds old_postuninstall_cmds \ 11219 compiler \ 11220 CC \ 11221 LD \ 11222 lt_prog_compiler_wl \ 11223 lt_prog_compiler_pic \ 11224 lt_prog_compiler_static \ 11225 lt_prog_compiler_no_builtin_flag \ 11226 export_dynamic_flag_spec \ 11227 thread_safe_flag_spec \ 11228 whole_archive_flag_spec \ 11229 enable_shared_with_static_runtimes \ 11230 old_archive_cmds \ 11231 old_archive_from_new_cmds \ 11232 predep_objects \ 11233 postdep_objects \ 11234 predeps \ 11235 postdeps \ 11236 compiler_lib_search_path \ 11237 archive_cmds \ 11238 archive_expsym_cmds \ 11239 postinstall_cmds \ 11240 postuninstall_cmds \ 11241 old_archive_from_expsyms_cmds \ 11242 allow_undefined_flag \ 11243 no_undefined_flag \ 11244 export_symbols_cmds \ 11245 hardcode_libdir_flag_spec \ 11246 hardcode_libdir_flag_spec_ld \ 11247 hardcode_libdir_separator \ 11248 hardcode_automatic \ 11249 module_cmds \ 11250 module_expsym_cmds \ 11251 lt_cv_prog_compiler_c_o \ 11252 exclude_expsyms \ 11253 include_expsyms; do 11254 11255 case $var in 11256 old_archive_cmds | \ 11257 old_archive_from_new_cmds | \ 11258 archive_cmds | \ 11259 archive_expsym_cmds | \ 11260 module_cmds | \ 11261 module_expsym_cmds | \ 11262 old_archive_from_expsyms_cmds | \ 11263 export_symbols_cmds | \ 11264 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11265 postinstall_cmds | postuninstall_cmds | \ 11266 old_postinstall_cmds | old_postuninstall_cmds | \ 11267 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11268 # Double-quote double-evaled strings. 11269 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11270 ;; 11271 *) 11272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11273 ;; 11274 esac 11275 done 11276 11277 case $lt_echo in 11278 *'\$0 --fallback-echo"') 11279 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11280 ;; 11281 esac 11282 11283cfgfile="${ofile}T" 11284 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11285 $rm -f "$cfgfile" 11286 { echo "$as_me:$LINENO: creating $ofile" >&5 11287echo "$as_me: creating $ofile" >&6;} 11288 11289 cat <<__EOF__ >> "$cfgfile" 11290#! $SHELL 11291 11292# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11293# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11294# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11295# 11296# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11297# Free Software Foundation, Inc. 11298# 11299# This file is part of GNU Libtool: 11300# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11301# 11302# This program is free software; you can redistribute it and/or modify 11303# it under the terms of the GNU General Public License as published by 11304# the Free Software Foundation; either version 2 of the License, or 11305# (at your option) any later version. 11306# 11307# This program is distributed in the hope that it will be useful, but 11308# WITHOUT ANY WARRANTY; without even the implied warranty of 11309# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11310# General Public License for more details. 11311# 11312# You should have received a copy of the GNU General Public License 11313# along with this program; if not, write to the Free Software 11314# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11315# 11316# As a special exception to the GNU General Public License, if you 11317# distribute this file as part of a program that contains a 11318# configuration script generated by Autoconf, you may include it under 11319# the same distribution terms that you use for the rest of that program. 11320 11321# A sed program that does not truncate output. 11322SED=$lt_SED 11323 11324# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11325Xsed="$SED -e 1s/^X//" 11326 11327# The HP-UX ksh and POSIX shell print the target directory to stdout 11328# if CDPATH is set. 11329(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11330 11331# The names of the tagged configurations supported by this script. 11332available_tags= 11333 11334# ### BEGIN LIBTOOL CONFIG 11335 11336# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11337 11338# Shell to use when invoking shell scripts. 11339SHELL=$lt_SHELL 11340 11341# Whether or not to build shared libraries. 11342build_libtool_libs=$enable_shared 11343 11344# Whether or not to build static libraries. 11345build_old_libs=$enable_static 11346 11347# Whether or not to add -lc for building shared libraries. 11348build_libtool_need_lc=$archive_cmds_need_lc 11349 11350# Whether or not to disallow shared libs when runtime libs are static 11351allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11352 11353# Whether or not to optimize for fast installation. 11354fast_install=$enable_fast_install 11355 11356# The host system. 11357host_alias=$host_alias 11358host=$host 11359host_os=$host_os 11360 11361# The build system. 11362build_alias=$build_alias 11363build=$build 11364build_os=$build_os 11365 11366# An echo program that does not interpret backslashes. 11367echo=$lt_echo 11368 11369# The archiver. 11370AR=$lt_AR 11371AR_FLAGS=$lt_AR_FLAGS 11372 11373# A C compiler. 11374LTCC=$lt_LTCC 11375 11376# A language-specific compiler. 11377CC=$lt_compiler 11378 11379# Is the compiler the GNU C compiler? 11380with_gcc=$GCC 11381 11382# An ERE matcher. 11383EGREP=$lt_EGREP 11384 11385# The linker used to build libraries. 11386LD=$lt_LD 11387 11388# Whether we need hard or soft links. 11389LN_S=$lt_LN_S 11390 11391# A BSD-compatible nm program. 11392NM=$lt_NM 11393 11394# A symbol stripping program 11395STRIP=$lt_STRIP 11396 11397# Used to examine libraries when file_magic_cmd begins "file" 11398MAGIC_CMD=$MAGIC_CMD 11399 11400# Used on cygwin: DLL creation program. 11401DLLTOOL="$DLLTOOL" 11402 11403# Used on cygwin: object dumper. 11404OBJDUMP="$OBJDUMP" 11405 11406# Used on cygwin: assembler. 11407AS="$AS" 11408 11409# The name of the directory that contains temporary libtool files. 11410objdir=$objdir 11411 11412# How to create reloadable object files. 11413reload_flag=$lt_reload_flag 11414reload_cmds=$lt_reload_cmds 11415 11416# How to pass a linker flag through the compiler. 11417wl=$lt_lt_prog_compiler_wl 11418 11419# Object file suffix (normally "o"). 11420objext="$ac_objext" 11421 11422# Old archive suffix (normally "a"). 11423libext="$libext" 11424 11425# Shared library suffix (normally ".so"). 11426shrext_cmds='$shrext_cmds' 11427 11428# Executable file suffix (normally ""). 11429exeext="$exeext" 11430 11431# Additional compiler flags for building library objects. 11432pic_flag=$lt_lt_prog_compiler_pic 11433pic_mode=$pic_mode 11434 11435# What is the maximum length of a command? 11436max_cmd_len=$lt_cv_sys_max_cmd_len 11437 11438# Does compiler simultaneously support -c and -o options? 11439compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11440 11441# Must we lock files when doing compilation? 11442need_locks=$lt_need_locks 11443 11444# Do we need the lib prefix for modules? 11445need_lib_prefix=$need_lib_prefix 11446 11447# Do we need a version for libraries? 11448need_version=$need_version 11449 11450# Whether dlopen is supported. 11451dlopen_support=$enable_dlopen 11452 11453# Whether dlopen of programs is supported. 11454dlopen_self=$enable_dlopen_self 11455 11456# Whether dlopen of statically linked programs is supported. 11457dlopen_self_static=$enable_dlopen_self_static 11458 11459# Compiler flag to prevent dynamic linking. 11460link_static_flag=$lt_lt_prog_compiler_static 11461 11462# Compiler flag to turn off builtin functions. 11463no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11464 11465# Compiler flag to allow reflexive dlopens. 11466export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11467 11468# Compiler flag to generate shared objects directly from archives. 11469whole_archive_flag_spec=$lt_whole_archive_flag_spec 11470 11471# Compiler flag to generate thread-safe objects. 11472thread_safe_flag_spec=$lt_thread_safe_flag_spec 11473 11474# Library versioning type. 11475version_type=$version_type 11476 11477# Format of library name prefix. 11478libname_spec=$lt_libname_spec 11479 11480# List of archive names. First name is the real one, the rest are links. 11481# The last name is the one that the linker finds with -lNAME. 11482library_names_spec=$lt_library_names_spec 11483 11484# The coded name of the library, if different from the real name. 11485soname_spec=$lt_soname_spec 11486 11487# Commands used to build and install an old-style archive. 11488RANLIB=$lt_RANLIB 11489old_archive_cmds=$lt_old_archive_cmds 11490old_postinstall_cmds=$lt_old_postinstall_cmds 11491old_postuninstall_cmds=$lt_old_postuninstall_cmds 11492 11493# Create an old-style archive from a shared archive. 11494old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11495 11496# Create a temporary old-style archive to link instead of a shared archive. 11497old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11498 11499# Commands used to build and install a shared archive. 11500archive_cmds=$lt_archive_cmds 11501archive_expsym_cmds=$lt_archive_expsym_cmds 11502postinstall_cmds=$lt_postinstall_cmds 11503postuninstall_cmds=$lt_postuninstall_cmds 11504 11505# Commands used to build a loadable module (assumed same as above if empty) 11506module_cmds=$lt_module_cmds 11507module_expsym_cmds=$lt_module_expsym_cmds 11508 11509# Commands to strip libraries. 11510old_striplib=$lt_old_striplib 11511striplib=$lt_striplib 11512 11513# Dependencies to place before the objects being linked to create a 11514# shared library. 11515predep_objects=$lt_predep_objects 11516 11517# Dependencies to place after the objects being linked to create a 11518# shared library. 11519postdep_objects=$lt_postdep_objects 11520 11521# Dependencies to place before the objects being linked to create a 11522# shared library. 11523predeps=$lt_predeps 11524 11525# Dependencies to place after the objects being linked to create a 11526# shared library. 11527postdeps=$lt_postdeps 11528 11529# The library search path used internally by the compiler when linking 11530# a shared library. 11531compiler_lib_search_path=$lt_compiler_lib_search_path 11532 11533# Method to check whether dependent libraries are shared objects. 11534deplibs_check_method=$lt_deplibs_check_method 11535 11536# Command to use when deplibs_check_method == file_magic. 11537file_magic_cmd=$lt_file_magic_cmd 11538 11539# Flag that allows shared libraries with undefined symbols to be built. 11540allow_undefined_flag=$lt_allow_undefined_flag 11541 11542# Flag that forces no undefined symbols. 11543no_undefined_flag=$lt_no_undefined_flag 11544 11545# Commands used to finish a libtool library installation in a directory. 11546finish_cmds=$lt_finish_cmds 11547 11548# Same as above, but a single script fragment to be evaled but not shown. 11549finish_eval=$lt_finish_eval 11550 11551# Take the output of nm and produce a listing of raw symbols and C names. 11552global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11553 11554# Transform the output of nm in a proper C declaration 11555global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11556 11557# Transform the output of nm in a C name address pair 11558global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11559 11560# This is the shared library runtime path variable. 11561runpath_var=$runpath_var 11562 11563# This is the shared library path variable. 11564shlibpath_var=$shlibpath_var 11565 11566# Is shlibpath searched before the hard-coded library search path? 11567shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11568 11569# How to hardcode a shared library path into an executable. 11570hardcode_action=$hardcode_action 11571 11572# Whether we should hardcode library paths into libraries. 11573hardcode_into_libs=$hardcode_into_libs 11574 11575# Flag to hardcode \$libdir into a binary during linking. 11576# This must work even if \$libdir does not exist. 11577hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11578 11579# If ld is used when linking, flag to hardcode \$libdir into 11580# a binary during linking. This must work even if \$libdir does 11581# not exist. 11582hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11583 11584# Whether we need a single -rpath flag with a separated argument. 11585hardcode_libdir_separator=$lt_hardcode_libdir_separator 11586 11587# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11588# resulting binary. 11589hardcode_direct=$hardcode_direct 11590 11591# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11592# resulting binary. 11593hardcode_minus_L=$hardcode_minus_L 11594 11595# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11596# the resulting binary. 11597hardcode_shlibpath_var=$hardcode_shlibpath_var 11598 11599# Set to yes if building a shared library automatically hardcodes DIR into the library 11600# and all subsequent libraries and executables linked against it. 11601hardcode_automatic=$hardcode_automatic 11602 11603# Variables whose values should be saved in libtool wrapper scripts and 11604# restored at relink time. 11605variables_saved_for_relink="$variables_saved_for_relink" 11606 11607# Whether libtool must link a program against all its dependency libraries. 11608link_all_deplibs=$link_all_deplibs 11609 11610# Compile-time system search path for libraries 11611sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11612 11613# Run-time system search path for libraries 11614sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11615 11616# Fix the shell variable \$srcfile for the compiler. 11617fix_srcfile_path="$fix_srcfile_path" 11618 11619# Set to yes if exported symbols are required. 11620always_export_symbols=$always_export_symbols 11621 11622# The commands to list exported symbols. 11623export_symbols_cmds=$lt_export_symbols_cmds 11624 11625# The commands to extract the exported symbol list from a shared archive. 11626extract_expsyms_cmds=$lt_extract_expsyms_cmds 11627 11628# Symbols that should not be listed in the preloaded symbols. 11629exclude_expsyms=$lt_exclude_expsyms 11630 11631# Symbols that must always be exported. 11632include_expsyms=$lt_include_expsyms 11633 11634# ### END LIBTOOL CONFIG 11635 11636__EOF__ 11637 11638 11639 case $host_os in 11640 aix3*) 11641 cat <<\EOF >> "$cfgfile" 11642 11643# AIX sometimes has problems with the GCC collect2 program. For some 11644# reason, if we set the COLLECT_NAMES environment variable, the problems 11645# vanish in a puff of smoke. 11646if test "X${COLLECT_NAMES+set}" != Xset; then 11647 COLLECT_NAMES= 11648 export COLLECT_NAMES 11649fi 11650EOF 11651 ;; 11652 esac 11653 11654 # We use sed instead of cat because bash on DJGPP gets confused if 11655 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11656 # text mode, it properly converts lines to CR/LF. This bash problem 11657 # is reportedly fixed, but why not run on old versions too? 11658 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11659 11660 mv -f "$cfgfile" "$ofile" || \ 11661 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11662 chmod +x "$ofile" 11663 11664else 11665 # If there is no Makefile yet, we rely on a make rule to execute 11666 # `config.status --recheck' to rerun these tests and create the 11667 # libtool script then. 11668 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11669 if test -f "$ltmain_in"; then 11670 test -f Makefile && make "$ltmain" 11671 fi 11672fi 11673 11674 11675ac_ext=c 11676ac_cpp='$CPP $CPPFLAGS' 11677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11679ac_compiler_gnu=$ac_cv_c_compiler_gnu 11680 11681CC="$lt_save_CC" 11682 11683 11684# Check whether --with-tags or --without-tags was given. 11685if test "${with_tags+set}" = set; then 11686 withval="$with_tags" 11687 tagnames="$withval" 11688fi; 11689 11690if test -f "$ltmain" && test -n "$tagnames"; then 11691 if test ! -f "${ofile}"; then 11692 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11693echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11694 fi 11695 11696 if test -z "$LTCC"; then 11697 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11698 if test -z "$LTCC"; then 11699 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11700echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11701 else 11702 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11703echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11704 fi 11705 fi 11706 11707 # Extract list of available tagged configurations in $ofile. 11708 # Note that this assumes the entire list is on one line. 11709 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11710 11711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11712 for tagname in $tagnames; do 11713 IFS="$lt_save_ifs" 11714 # Check whether tagname contains only valid characters 11715 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11716 "") ;; 11717 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11718echo "$as_me: error: invalid tag name: $tagname" >&2;} 11719 { (exit 1); exit 1; }; } 11720 ;; 11721 esac 11722 11723 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11724 then 11725 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11726echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11727 { (exit 1); exit 1; }; } 11728 fi 11729 11730 # Update the list of available tags. 11731 if test -n "$tagname"; then 11732 echo appending configuration tag \"$tagname\" to $ofile 11733 11734 case $tagname in 11735 CXX) 11736 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11737 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11738 (test "X$CXX" != "Xg++"))) ; then 11739 ac_ext=cc 11740ac_cpp='$CXXCPP $CPPFLAGS' 11741ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11742ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11743ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11744 11745 11746 11747 11748archive_cmds_need_lc_CXX=no 11749allow_undefined_flag_CXX= 11750always_export_symbols_CXX=no 11751archive_expsym_cmds_CXX= 11752export_dynamic_flag_spec_CXX= 11753hardcode_direct_CXX=no 11754hardcode_libdir_flag_spec_CXX= 11755hardcode_libdir_flag_spec_ld_CXX= 11756hardcode_libdir_separator_CXX= 11757hardcode_minus_L_CXX=no 11758hardcode_automatic_CXX=no 11759module_cmds_CXX= 11760module_expsym_cmds_CXX= 11761link_all_deplibs_CXX=unknown 11762old_archive_cmds_CXX=$old_archive_cmds 11763no_undefined_flag_CXX= 11764whole_archive_flag_spec_CXX= 11765enable_shared_with_static_runtimes_CXX=no 11766 11767# Dependencies to place before and after the object being linked: 11768predep_objects_CXX= 11769postdep_objects_CXX= 11770predeps_CXX= 11771postdeps_CXX= 11772compiler_lib_search_path_CXX= 11773 11774# Source file extension for C++ test sources. 11775ac_ext=cpp 11776 11777# Object file extension for compiled C++ test sources. 11778objext=o 11779objext_CXX=$objext 11780 11781# Code to be used in simple compile tests 11782lt_simple_compile_test_code="int some_variable = 0;\n" 11783 11784# Code to be used in simple link tests 11785lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 11786 11787# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11788 11789# If no C compiler was specified, use CC. 11790LTCC=${LTCC-"$CC"} 11791 11792# Allow CC to be a program name with arguments. 11793compiler=$CC 11794 11795 11796# save warnings/boilerplate of simple test code 11797ac_outfile=conftest.$ac_objext 11798printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11799eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 11800_lt_compiler_boilerplate=`cat conftest.err` 11801$rm conftest* 11802 11803ac_outfile=conftest.$ac_objext 11804printf "$lt_simple_link_test_code" >conftest.$ac_ext 11805eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 11806_lt_linker_boilerplate=`cat conftest.err` 11807$rm conftest* 11808 11809 11810# Allow CC to be a program name with arguments. 11811lt_save_CC=$CC 11812lt_save_LD=$LD 11813lt_save_GCC=$GCC 11814GCC=$GXX 11815lt_save_with_gnu_ld=$with_gnu_ld 11816lt_save_path_LD=$lt_cv_path_LD 11817if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11818 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11819else 11820 unset lt_cv_prog_gnu_ld 11821fi 11822if test -n "${lt_cv_path_LDCXX+set}"; then 11823 lt_cv_path_LD=$lt_cv_path_LDCXX 11824else 11825 unset lt_cv_path_LD 11826fi 11827test -z "${LDCXX+set}" || LD=$LDCXX 11828CC=${CXX-"c++"} 11829compiler=$CC 11830compiler_CXX=$CC 11831for cc_temp in $compiler""; do 11832 case $cc_temp in 11833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11835 \-*) ;; 11836 *) break;; 11837 esac 11838done 11839cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11840 11841 11842# We don't want -fno-exception wen compiling C++ code, so set the 11843# no_builtin_flag separately 11844if test "$GXX" = yes; then 11845 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11846else 11847 lt_prog_compiler_no_builtin_flag_CXX= 11848fi 11849 11850if test "$GXX" = yes; then 11851 # Set up default GNU C++ configuration 11852 11853 11854# Check whether --with-gnu-ld or --without-gnu-ld was given. 11855if test "${with_gnu_ld+set}" = set; then 11856 withval="$with_gnu_ld" 11857 test "$withval" = no || with_gnu_ld=yes 11858else 11859 with_gnu_ld=no 11860fi; 11861ac_prog=ld 11862if test "$GCC" = yes; then 11863 # Check if gcc -print-prog-name=ld gives a path. 11864 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11865echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11866 case $host in 11867 *-*-mingw*) 11868 # gcc leaves a trailing carriage return which upsets mingw 11869 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11870 *) 11871 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11872 esac 11873 case $ac_prog in 11874 # Accept absolute paths. 11875 [\\/]* | ?:[\\/]*) 11876 re_direlt='/[^/][^/]*/\.\./' 11877 # Canonicalize the pathname of ld 11878 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11879 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11880 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11881 done 11882 test -z "$LD" && LD="$ac_prog" 11883 ;; 11884 "") 11885 # If it fails, then pretend we aren't using GCC. 11886 ac_prog=ld 11887 ;; 11888 *) 11889 # If it is relative, then search for the first ld in PATH. 11890 with_gnu_ld=unknown 11891 ;; 11892 esac 11893elif test "$with_gnu_ld" = yes; then 11894 echo "$as_me:$LINENO: checking for GNU ld" >&5 11895echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 11896else 11897 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11898echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 11899fi 11900if test "${lt_cv_path_LD+set}" = set; then 11901 echo $ECHO_N "(cached) $ECHO_C" >&6 11902else 11903 if test -z "$LD"; then 11904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11905 for ac_dir in $PATH; do 11906 IFS="$lt_save_ifs" 11907 test -z "$ac_dir" && ac_dir=. 11908 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11909 lt_cv_path_LD="$ac_dir/$ac_prog" 11910 # Check to see if the program is GNU ld. I'd rather use --version, 11911 # but apparently some variants of GNU ld only accept -v. 11912 # Break only if it was the GNU/non-GNU ld that we prefer. 11913 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11914 *GNU* | *'with BFD'*) 11915 test "$with_gnu_ld" != no && break 11916 ;; 11917 *) 11918 test "$with_gnu_ld" != yes && break 11919 ;; 11920 esac 11921 fi 11922 done 11923 IFS="$lt_save_ifs" 11924else 11925 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11926fi 11927fi 11928 11929LD="$lt_cv_path_LD" 11930if test -n "$LD"; then 11931 echo "$as_me:$LINENO: result: $LD" >&5 11932echo "${ECHO_T}$LD" >&6 11933else 11934 echo "$as_me:$LINENO: result: no" >&5 11935echo "${ECHO_T}no" >&6 11936fi 11937test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11938echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11939 { (exit 1); exit 1; }; } 11940echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11941echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 11942if test "${lt_cv_prog_gnu_ld+set}" = set; then 11943 echo $ECHO_N "(cached) $ECHO_C" >&6 11944else 11945 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11946case `$LD -v 2>&1 </dev/null` in 11947*GNU* | *'with BFD'*) 11948 lt_cv_prog_gnu_ld=yes 11949 ;; 11950*) 11951 lt_cv_prog_gnu_ld=no 11952 ;; 11953esac 11954fi 11955echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11956echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 11957with_gnu_ld=$lt_cv_prog_gnu_ld 11958 11959 11960 11961 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11962 # archiving commands below assume that GNU ld is being used. 11963 if test "$with_gnu_ld" = yes; then 11964 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11965 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' 11966 11967 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11968 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11969 11970 # If archive_cmds runs LD, not CC, wlarc should be empty 11971 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11972 # investigate it a little bit more. (MM) 11973 wlarc='${wl}' 11974 11975 # ancient GNU ld didn't support --whole-archive et. al. 11976 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11977 grep 'no-whole-archive' > /dev/null; then 11978 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11979 else 11980 whole_archive_flag_spec_CXX= 11981 fi 11982 else 11983 with_gnu_ld=no 11984 wlarc= 11985 11986 # A generic and very simple default shared library creation 11987 # command for GNU C++ for the case where it uses the native 11988 # linker, instead of GNU ld. If possible, this setting should 11989 # overridden to take advantage of the native linker features on 11990 # the platform it is being used on. 11991 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11992 fi 11993 11994 # Commands to make compiler produce verbose output that lists 11995 # what "hidden" libraries, object files and flags are used when 11996 # linking a shared library. 11997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11998 11999else 12000 GXX=no 12001 with_gnu_ld=no 12002 wlarc= 12003fi 12004 12005# PORTME: fill in a description of your system's C++ link characteristics 12006echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12007echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12008ld_shlibs_CXX=yes 12009case $host_os in 12010 aix3*) 12011 # FIXME: insert proper C++ library support 12012 ld_shlibs_CXX=no 12013 ;; 12014 aix4* | aix5*) 12015 if test "$host_cpu" = ia64; then 12016 # On IA64, the linker does run time linking by default, so we don't 12017 # have to do anything special. 12018 aix_use_runtimelinking=no 12019 exp_sym_flag='-Bexport' 12020 no_entry_flag="" 12021 else 12022 aix_use_runtimelinking=no 12023 12024 # Test if we are trying to use run time linking or normal 12025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12026 # need to do runtime linking. 12027 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12028 for ld_flag in $LDFLAGS; do 12029 case $ld_flag in 12030 *-brtl*) 12031 aix_use_runtimelinking=yes 12032 break 12033 ;; 12034 esac 12035 done 12036 esac 12037 12038 exp_sym_flag='-bexport' 12039 no_entry_flag='-bnoentry' 12040 fi 12041 12042 # When large executables or shared objects are built, AIX ld can 12043 # have problems creating the table of contents. If linking a library 12044 # or program results in "error TOC overflow" add -mminimal-toc to 12045 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12046 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12047 12048 archive_cmds_CXX='' 12049 hardcode_direct_CXX=yes 12050 hardcode_libdir_separator_CXX=':' 12051 link_all_deplibs_CXX=yes 12052 12053 if test "$GXX" = yes; then 12054 case $host_os in aix4.[012]|aix4.[012].*) 12055 # We only want to do this on AIX 4.2 and lower, the check 12056 # below for broken collect2 doesn't work under 4.3+ 12057 collect2name=`${CC} -print-prog-name=collect2` 12058 if test -f "$collect2name" && \ 12059 strings "$collect2name" | grep resolve_lib_name >/dev/null 12060 then 12061 # We have reworked collect2 12062 hardcode_direct_CXX=yes 12063 else 12064 # We have old collect2 12065 hardcode_direct_CXX=unsupported 12066 # It fails to find uninstalled libraries when the uninstalled 12067 # path is not listed in the libpath. Setting hardcode_minus_L 12068 # to unsupported forces relinking 12069 hardcode_minus_L_CXX=yes 12070 hardcode_libdir_flag_spec_CXX='-L$libdir' 12071 hardcode_libdir_separator_CXX= 12072 fi 12073 esac 12074 shared_flag='-shared' 12075 if test "$aix_use_runtimelinking" = yes; then 12076 shared_flag="$shared_flag "'${wl}-G' 12077 fi 12078 else 12079 # not using gcc 12080 if test "$host_cpu" = ia64; then 12081 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12082 # chokes on -Wl,-G. The following line is correct: 12083 shared_flag='-G' 12084 else 12085 if test "$aix_use_runtimelinking" = yes; then 12086 shared_flag='${wl}-G' 12087 else 12088 shared_flag='${wl}-bM:SRE' 12089 fi 12090 fi 12091 fi 12092 12093 # It seems that -bexpall does not export symbols beginning with 12094 # underscore (_), so it is better to generate a list of symbols to export. 12095 always_export_symbols_CXX=yes 12096 if test "$aix_use_runtimelinking" = yes; then 12097 # Warning - without using the other runtime loading flags (-brtl), 12098 # -berok will link without error, but may produce a broken library. 12099 allow_undefined_flag_CXX='-berok' 12100 # Determine the default libpath from the value encoded in an empty executable. 12101 cat >conftest.$ac_ext <<_ACEOF 12102/* confdefs.h. */ 12103_ACEOF 12104cat confdefs.h >>conftest.$ac_ext 12105cat >>conftest.$ac_ext <<_ACEOF 12106/* end confdefs.h. */ 12107 12108int 12109main () 12110{ 12111 12112 ; 12113 return 0; 12114} 12115_ACEOF 12116rm -f conftest.$ac_objext conftest$ac_exeext 12117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12118 (eval $ac_link) 2>conftest.er1 12119 ac_status=$? 12120 grep -v '^ *+' conftest.er1 >conftest.err 12121 rm -f conftest.er1 12122 cat conftest.err >&5 12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12124 (exit $ac_status); } && 12125 { ac_try='test -z "$ac_cxx_werror_flag" 12126 || test ! -s conftest.err' 12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12128 (eval $ac_try) 2>&5 12129 ac_status=$? 12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12131 (exit $ac_status); }; } && 12132 { ac_try='test -s conftest$ac_exeext' 12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12134 (eval $ac_try) 2>&5 12135 ac_status=$? 12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12137 (exit $ac_status); }; }; then 12138 12139aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12140}'` 12141# Check for a 64-bit object if we didn't find anything. 12142if 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; } 12143}'`; fi 12144else 12145 echo "$as_me: failed program was:" >&5 12146sed 's/^/| /' conftest.$ac_ext >&5 12147 12148fi 12149rm -f conftest.err conftest.$ac_objext \ 12150 conftest$ac_exeext conftest.$ac_ext 12151if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12152 12153 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12154 12155 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12156 else 12157 if test "$host_cpu" = ia64; then 12158 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12159 allow_undefined_flag_CXX="-z nodefs" 12160 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 12161 else 12162 # Determine the default libpath from the value encoded in an empty executable. 12163 cat >conftest.$ac_ext <<_ACEOF 12164/* confdefs.h. */ 12165_ACEOF 12166cat confdefs.h >>conftest.$ac_ext 12167cat >>conftest.$ac_ext <<_ACEOF 12168/* end confdefs.h. */ 12169 12170int 12171main () 12172{ 12173 12174 ; 12175 return 0; 12176} 12177_ACEOF 12178rm -f conftest.$ac_objext conftest$ac_exeext 12179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12180 (eval $ac_link) 2>conftest.er1 12181 ac_status=$? 12182 grep -v '^ *+' conftest.er1 >conftest.err 12183 rm -f conftest.er1 12184 cat conftest.err >&5 12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12186 (exit $ac_status); } && 12187 { ac_try='test -z "$ac_cxx_werror_flag" 12188 || test ! -s conftest.err' 12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12190 (eval $ac_try) 2>&5 12191 ac_status=$? 12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12193 (exit $ac_status); }; } && 12194 { ac_try='test -s conftest$ac_exeext' 12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12196 (eval $ac_try) 2>&5 12197 ac_status=$? 12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12199 (exit $ac_status); }; }; then 12200 12201aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12202}'` 12203# Check for a 64-bit object if we didn't find anything. 12204if 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; } 12205}'`; fi 12206else 12207 echo "$as_me: failed program was:" >&5 12208sed 's/^/| /' conftest.$ac_ext >&5 12209 12210fi 12211rm -f conftest.err conftest.$ac_objext \ 12212 conftest$ac_exeext conftest.$ac_ext 12213if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12214 12215 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12216 # Warning - without using the other run time loading flags, 12217 # -berok will link without error, but may produce a broken library. 12218 no_undefined_flag_CXX=' ${wl}-bernotok' 12219 allow_undefined_flag_CXX=' ${wl}-berok' 12220 # -bexpall does not export symbols beginning with underscore (_) 12221 always_export_symbols_CXX=yes 12222 # Exported symbols can be pulled into shared objects from archives 12223 whole_archive_flag_spec_CXX=' ' 12224 archive_cmds_need_lc_CXX=yes 12225 # This is similar to how AIX traditionally builds its shared libraries. 12226 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12227 fi 12228 fi 12229 ;; 12230 chorus*) 12231 case $cc_basename in 12232 *) 12233 # FIXME: insert proper C++ library support 12234 ld_shlibs_CXX=no 12235 ;; 12236 esac 12237 ;; 12238 12239 12240 cygwin* | mingw* | pw32*) 12241 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12242 # as there is no search path for DLLs. 12243 hardcode_libdir_flag_spec_CXX='-L$libdir' 12244 allow_undefined_flag_CXX=unsupported 12245 always_export_symbols_CXX=no 12246 enable_shared_with_static_runtimes_CXX=yes 12247 12248 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12249 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 12250 # If the export-symbols file already is a .def file (1st line 12251 # is EXPORTS), use it as is; otherwise, prepend... 12252 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12253 cp $export_symbols $output_objdir/$soname.def; 12254 else 12255 echo EXPORTS > $output_objdir/$soname.def; 12256 cat $export_symbols >> $output_objdir/$soname.def; 12257 fi~ 12258 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 12259 else 12260 ld_shlibs_CXX=no 12261 fi 12262 ;; 12263 darwin* | rhapsody*) 12264 case $host_os in 12265 rhapsody* | darwin1.[012]) 12266 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12267 ;; 12268 *) # Darwin 1.3 on 12269 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12270 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12271 else 12272 case ${MACOSX_DEPLOYMENT_TARGET} in 12273 10.[012]) 12274 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12275 ;; 12276 10.*) 12277 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12278 ;; 12279 esac 12280 fi 12281 ;; 12282 esac 12283 archive_cmds_need_lc_CXX=no 12284 hardcode_direct_CXX=no 12285 hardcode_automatic_CXX=yes 12286 hardcode_shlibpath_var_CXX=unsupported 12287 whole_archive_flag_spec_CXX='' 12288 link_all_deplibs_CXX=yes 12289 12290 if test "$GXX" = yes ; then 12291 lt_int_apple_cc_single_mod=no 12292 output_verbose_link_cmd='echo' 12293 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12294 lt_int_apple_cc_single_mod=yes 12295 fi 12296 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12297 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12298 else 12299 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' 12300 fi 12301 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12302 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12303 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12304 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}' 12305 else 12306 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}' 12307 fi 12308 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}' 12309 else 12310 case $cc_basename in 12311 xlc*) 12312 output_verbose_link_cmd='echo' 12313 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' 12314 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12315 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12316 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}' 12317 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}' 12318 ;; 12319 *) 12320 ld_shlibs_CXX=no 12321 ;; 12322 esac 12323 fi 12324 ;; 12325 12326 dgux*) 12327 case $cc_basename in 12328 ec++*) 12329 # FIXME: insert proper C++ library support 12330 ld_shlibs_CXX=no 12331 ;; 12332 ghcx*) 12333 # Green Hills C++ Compiler 12334 # FIXME: insert proper C++ library support 12335 ld_shlibs_CXX=no 12336 ;; 12337 *) 12338 # FIXME: insert proper C++ library support 12339 ld_shlibs_CXX=no 12340 ;; 12341 esac 12342 ;; 12343 freebsd[12]*) 12344 # C++ shared libraries reported to be fairly broken before switch to ELF 12345 ld_shlibs_CXX=no 12346 ;; 12347 freebsd-elf*) 12348 archive_cmds_need_lc_CXX=no 12349 ;; 12350 freebsd* | kfreebsd*-gnu | dragonfly*) 12351 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12352 # conventions 12353 ld_shlibs_CXX=yes 12354 ;; 12355 gnu*) 12356 ;; 12357 hpux9*) 12358 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12359 hardcode_libdir_separator_CXX=: 12360 export_dynamic_flag_spec_CXX='${wl}-E' 12361 hardcode_direct_CXX=yes 12362 hardcode_minus_L_CXX=yes # Not in the search PATH, 12363 # but as the default 12364 # location of the library. 12365 12366 case $cc_basename in 12367 CC*) 12368 # FIXME: insert proper C++ library support 12369 ld_shlibs_CXX=no 12370 ;; 12371 aCC*) 12372 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' 12373 # Commands to make compiler produce verbose output that lists 12374 # what "hidden" libraries, object files and flags are used when 12375 # linking a shared library. 12376 # 12377 # There doesn't appear to be a way to prevent this compiler from 12378 # explicitly linking system object files so we need to strip them 12379 # from the output so that they don't get included in the library 12380 # dependencies. 12381 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' 12382 ;; 12383 *) 12384 if test "$GXX" = yes; then 12385 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' 12386 else 12387 # FIXME: insert proper C++ library support 12388 ld_shlibs_CXX=no 12389 fi 12390 ;; 12391 esac 12392 ;; 12393 hpux10*|hpux11*) 12394 if test $with_gnu_ld = no; then 12395 case $host_cpu in 12396 hppa*64*) 12397 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12398 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12399 hardcode_libdir_separator_CXX=: 12400 ;; 12401 ia64*) 12402 hardcode_libdir_flag_spec_CXX='-L$libdir' 12403 ;; 12404 *) 12405 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12406 hardcode_libdir_separator_CXX=: 12407 export_dynamic_flag_spec_CXX='${wl}-E' 12408 ;; 12409 esac 12410 fi 12411 case $host_cpu in 12412 hppa*64*) 12413 hardcode_direct_CXX=no 12414 hardcode_shlibpath_var_CXX=no 12415 ;; 12416 ia64*) 12417 hardcode_direct_CXX=no 12418 hardcode_shlibpath_var_CXX=no 12419 hardcode_minus_L_CXX=yes # Not in the search PATH, 12420 # but as the default 12421 # location of the library. 12422 ;; 12423 *) 12424 hardcode_direct_CXX=yes 12425 hardcode_minus_L_CXX=yes # Not in the search PATH, 12426 # but as the default 12427 # location of the library. 12428 ;; 12429 esac 12430 12431 case $cc_basename in 12432 CC*) 12433 # FIXME: insert proper C++ library support 12434 ld_shlibs_CXX=no 12435 ;; 12436 aCC*) 12437 case $host_cpu in 12438 hppa*64*|ia64*) 12439 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12440 ;; 12441 *) 12442 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12443 ;; 12444 esac 12445 # Commands to make compiler produce verbose output that lists 12446 # what "hidden" libraries, object files and flags are used when 12447 # linking a shared library. 12448 # 12449 # There doesn't appear to be a way to prevent this compiler from 12450 # explicitly linking system object files so we need to strip them 12451 # from the output so that they don't get included in the library 12452 # dependencies. 12453 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' 12454 ;; 12455 *) 12456 if test "$GXX" = yes; then 12457 if test $with_gnu_ld = no; then 12458 case $host_cpu in 12459 ia64*|hppa*64*) 12460 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12461 ;; 12462 *) 12463 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' 12464 ;; 12465 esac 12466 fi 12467 else 12468 # FIXME: insert proper C++ library support 12469 ld_shlibs_CXX=no 12470 fi 12471 ;; 12472 esac 12473 ;; 12474 irix5* | irix6*) 12475 case $cc_basename in 12476 CC*) 12477 # SGI C++ 12478 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' 12479 12480 # Archives containing C++ object files must be created using 12481 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12482 # necessary to make sure instantiated templates are included 12483 # in the archive. 12484 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12485 ;; 12486 *) 12487 if test "$GXX" = yes; then 12488 if test "$with_gnu_ld" = no; then 12489 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' 12490 else 12491 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' 12492 fi 12493 fi 12494 link_all_deplibs_CXX=yes 12495 ;; 12496 esac 12497 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12498 hardcode_libdir_separator_CXX=: 12499 ;; 12500 linux*) 12501 case $cc_basename in 12502 KCC*) 12503 # Kuck and Associates, Inc. (KAI) C++ Compiler 12504 12505 # KCC will only create a shared library if the output file 12506 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12507 # to its proper name (with version) after linking. 12508 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' 12509 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' 12510 # Commands to make compiler produce verbose output that lists 12511 # what "hidden" libraries, object files and flags are used when 12512 # linking a shared library. 12513 # 12514 # There doesn't appear to be a way to prevent this compiler from 12515 # explicitly linking system object files so we need to strip them 12516 # from the output so that they don't get included in the library 12517 # dependencies. 12518 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' 12519 12520 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12521 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12522 12523 # Archives containing C++ object files must be created using 12524 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12525 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12526 ;; 12527 icpc*) 12528 # Intel C++ 12529 with_gnu_ld=yes 12530 # version 8.0 and above of icpc choke on multiply defined symbols 12531 # if we add $predep_objects and $postdep_objects, however 7.1 and 12532 # earlier do not add the objects themselves. 12533 case `$CC -V 2>&1` in 12534 *"Version 7."*) 12535 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12536 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' 12537 ;; 12538 *) # Version 8.0 or newer 12539 tmp_idyn= 12540 case $host_cpu in 12541 ia64*) tmp_idyn=' -i_dynamic';; 12542 esac 12543 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12544 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' 12545 ;; 12546 esac 12547 archive_cmds_need_lc_CXX=no 12548 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12549 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12550 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12551 ;; 12552 pgCC*) 12553 # Portland Group C++ compiler 12554 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12555 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' 12556 12557 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12558 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12559 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' 12560 ;; 12561 cxx*) 12562 # Compaq C++ 12563 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12564 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' 12565 12566 runpath_var=LD_RUN_PATH 12567 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12568 hardcode_libdir_separator_CXX=: 12569 12570 # Commands to make compiler produce verbose output that lists 12571 # what "hidden" libraries, object files and flags are used when 12572 # linking a shared library. 12573 # 12574 # There doesn't appear to be a way to prevent this compiler from 12575 # explicitly linking system object files so we need to strip them 12576 # from the output so that they don't get included in the library 12577 # dependencies. 12578 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' 12579 ;; 12580 esac 12581 ;; 12582 lynxos*) 12583 # FIXME: insert proper C++ library support 12584 ld_shlibs_CXX=no 12585 ;; 12586 m88k*) 12587 # FIXME: insert proper C++ library support 12588 ld_shlibs_CXX=no 12589 ;; 12590 mvs*) 12591 case $cc_basename in 12592 cxx*) 12593 # FIXME: insert proper C++ library support 12594 ld_shlibs_CXX=no 12595 ;; 12596 *) 12597 # FIXME: insert proper C++ library support 12598 ld_shlibs_CXX=no 12599 ;; 12600 esac 12601 ;; 12602 netbsd*) 12603 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12604 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12605 wlarc= 12606 hardcode_libdir_flag_spec_CXX='-R$libdir' 12607 hardcode_direct_CXX=yes 12608 hardcode_shlibpath_var_CXX=no 12609 fi 12610 # Workaround some broken pre-1.5 toolchains 12611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12612 ;; 12613 openbsd2*) 12614 # C++ shared libraries are fairly broken 12615 ld_shlibs_CXX=no 12616 ;; 12617 openbsd*) 12618 hardcode_direct_CXX=yes 12619 hardcode_shlibpath_var_CXX=no 12620 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12622 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12623 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12624 export_dynamic_flag_spec_CXX='${wl}-E' 12625 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12626 fi 12627 output_verbose_link_cmd='echo' 12628 ;; 12629 osf3*) 12630 case $cc_basename in 12631 KCC*) 12632 # Kuck and Associates, Inc. (KAI) C++ Compiler 12633 12634 # KCC will only create a shared library if the output file 12635 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12636 # to its proper name (with version) after linking. 12637 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' 12638 12639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12640 hardcode_libdir_separator_CXX=: 12641 12642 # Archives containing C++ object files must be created using 12643 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12644 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12645 12646 ;; 12647 RCC*) 12648 # Rational C++ 2.4.1 12649 # FIXME: insert proper C++ library support 12650 ld_shlibs_CXX=no 12651 ;; 12652 cxx*) 12653 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12654 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' 12655 12656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12657 hardcode_libdir_separator_CXX=: 12658 12659 # Commands to make compiler produce verbose output that lists 12660 # what "hidden" libraries, object files and flags are used when 12661 # linking a shared library. 12662 # 12663 # There doesn't appear to be a way to prevent this compiler from 12664 # explicitly linking system object files so we need to strip them 12665 # from the output so that they don't get included in the library 12666 # dependencies. 12667 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' 12668 ;; 12669 *) 12670 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12671 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12672 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' 12673 12674 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12675 hardcode_libdir_separator_CXX=: 12676 12677 # Commands to make compiler produce verbose output that lists 12678 # what "hidden" libraries, object files and flags are used when 12679 # linking a shared library. 12680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12681 12682 else 12683 # FIXME: insert proper C++ library support 12684 ld_shlibs_CXX=no 12685 fi 12686 ;; 12687 esac 12688 ;; 12689 osf4* | osf5*) 12690 case $cc_basename in 12691 KCC*) 12692 # Kuck and Associates, Inc. (KAI) C++ Compiler 12693 12694 # KCC will only create a shared library if the output file 12695 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12696 # to its proper name (with version) after linking. 12697 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' 12698 12699 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12700 hardcode_libdir_separator_CXX=: 12701 12702 # Archives containing C++ object files must be created using 12703 # the KAI C++ compiler. 12704 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12705 ;; 12706 RCC*) 12707 # Rational C++ 2.4.1 12708 # FIXME: insert proper C++ library support 12709 ld_shlibs_CXX=no 12710 ;; 12711 cxx*) 12712 allow_undefined_flag_CXX=' -expect_unresolved \*' 12713 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' 12714 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12715 echo "-hidden">> $lib.exp~ 12716 $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~ 12717 $rm $lib.exp' 12718 12719 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12720 hardcode_libdir_separator_CXX=: 12721 12722 # Commands to make compiler produce verbose output that lists 12723 # what "hidden" libraries, object files and flags are used when 12724 # linking a shared library. 12725 # 12726 # There doesn't appear to be a way to prevent this compiler from 12727 # explicitly linking system object files so we need to strip them 12728 # from the output so that they don't get included in the library 12729 # dependencies. 12730 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' 12731 ;; 12732 *) 12733 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12734 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12735 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' 12736 12737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12738 hardcode_libdir_separator_CXX=: 12739 12740 # Commands to make compiler produce verbose output that lists 12741 # what "hidden" libraries, object files and flags are used when 12742 # linking a shared library. 12743 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12744 12745 else 12746 # FIXME: insert proper C++ library support 12747 ld_shlibs_CXX=no 12748 fi 12749 ;; 12750 esac 12751 ;; 12752 psos*) 12753 # FIXME: insert proper C++ library support 12754 ld_shlibs_CXX=no 12755 ;; 12756 sco*) 12757 archive_cmds_need_lc_CXX=no 12758 case $cc_basename in 12759 CC*) 12760 # FIXME: insert proper C++ library support 12761 ld_shlibs_CXX=no 12762 ;; 12763 *) 12764 # FIXME: insert proper C++ library support 12765 ld_shlibs_CXX=no 12766 ;; 12767 esac 12768 ;; 12769 sunos4*) 12770 case $cc_basename in 12771 CC*) 12772 # Sun C++ 4.x 12773 # FIXME: insert proper C++ library support 12774 ld_shlibs_CXX=no 12775 ;; 12776 lcc*) 12777 # Lucid 12778 # FIXME: insert proper C++ library support 12779 ld_shlibs_CXX=no 12780 ;; 12781 *) 12782 # FIXME: insert proper C++ library support 12783 ld_shlibs_CXX=no 12784 ;; 12785 esac 12786 ;; 12787 solaris*) 12788 case $cc_basename in 12789 CC*) 12790 # Sun C++ 4.2, 5.x and Centerline C++ 12791 archive_cmds_need_lc_CXX=yes 12792 no_undefined_flag_CXX=' -zdefs' 12793 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12794 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12795 $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' 12796 12797 hardcode_libdir_flag_spec_CXX='-R$libdir' 12798 hardcode_shlibpath_var_CXX=no 12799 case $host_os in 12800 solaris2.[0-5] | solaris2.[0-5].*) ;; 12801 *) 12802 # The C++ compiler is used as linker so we must use $wl 12803 # flag to pass the commands to the underlying system 12804 # linker. We must also pass each convience library through 12805 # to the system linker between allextract/defaultextract. 12806 # The C++ compiler will combine linker options so we 12807 # cannot just pass the convience library names through 12808 # without $wl. 12809 # Supported since Solaris 2.6 (maybe 2.5.1?) 12810 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' 12811 ;; 12812 esac 12813 link_all_deplibs_CXX=yes 12814 12815 output_verbose_link_cmd='echo' 12816 12817 # Archives containing C++ object files must be created using 12818 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12819 # necessary to make sure instantiated templates are included 12820 # in the archive. 12821 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12822 ;; 12823 gcx*) 12824 # Green Hills C++ Compiler 12825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12826 12827 # The C++ compiler must be used to create the archive. 12828 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12829 ;; 12830 *) 12831 # GNU C++ compiler with Solaris linker 12832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12833 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12834 if $CC --version | grep -v '^2\.7' > /dev/null; then 12835 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12836 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12837 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12838 12839 # Commands to make compiler produce verbose output that lists 12840 # what "hidden" libraries, object files and flags are used when 12841 # linking a shared library. 12842 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12843 else 12844 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12845 # platform. 12846 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12847 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12848 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12849 12850 # Commands to make compiler produce verbose output that lists 12851 # what "hidden" libraries, object files and flags are used when 12852 # linking a shared library. 12853 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12854 fi 12855 12856 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12857 fi 12858 ;; 12859 esac 12860 ;; 12861 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 12862 archive_cmds_need_lc_CXX=no 12863 ;; 12864 tandem*) 12865 case $cc_basename in 12866 NCC*) 12867 # NonStop-UX NCC 3.20 12868 # FIXME: insert proper C++ library support 12869 ld_shlibs_CXX=no 12870 ;; 12871 *) 12872 # FIXME: insert proper C++ library support 12873 ld_shlibs_CXX=no 12874 ;; 12875 esac 12876 ;; 12877 vxworks*) 12878 # FIXME: insert proper C++ library support 12879 ld_shlibs_CXX=no 12880 ;; 12881 *) 12882 # FIXME: insert proper C++ library support 12883 ld_shlibs_CXX=no 12884 ;; 12885esac 12886echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12887echo "${ECHO_T}$ld_shlibs_CXX" >&6 12888test "$ld_shlibs_CXX" = no && can_build_shared=no 12889 12890GCC_CXX="$GXX" 12891LD_CXX="$LD" 12892 12893 12894cat > conftest.$ac_ext <<EOF 12895class Foo 12896{ 12897public: 12898 Foo (void) { a = 0; } 12899private: 12900 int a; 12901}; 12902EOF 12903 12904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12905 (eval $ac_compile) 2>&5 12906 ac_status=$? 12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12908 (exit $ac_status); }; then 12909 # Parse the compiler output and extract the necessary 12910 # objects, libraries and library flags. 12911 12912 # Sentinel used to keep track of whether or not we are before 12913 # the conftest object file. 12914 pre_test_object_deps_done=no 12915 12916 # The `*' in the case matches for architectures that use `case' in 12917 # $output_verbose_cmd can trigger glob expansion during the loop 12918 # eval without this substitution. 12919 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12920 12921 for p in `eval $output_verbose_link_cmd`; do 12922 case $p in 12923 12924 -L* | -R* | -l*) 12925 # Some compilers place space between "-{L,R}" and the path. 12926 # Remove the space. 12927 if test $p = "-L" \ 12928 || test $p = "-R"; then 12929 prev=$p 12930 continue 12931 else 12932 prev= 12933 fi 12934 12935 if test "$pre_test_object_deps_done" = no; then 12936 case $p in 12937 -L* | -R*) 12938 # Internal compiler library paths should come after those 12939 # provided the user. The postdeps already come after the 12940 # user supplied libs so there is no need to process them. 12941 if test -z "$compiler_lib_search_path_CXX"; then 12942 compiler_lib_search_path_CXX="${prev}${p}" 12943 else 12944 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12945 fi 12946 ;; 12947 # The "-l" case would never come before the object being 12948 # linked, so don't bother handling this case. 12949 esac 12950 else 12951 if test -z "$postdeps_CXX"; then 12952 postdeps_CXX="${prev}${p}" 12953 else 12954 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12955 fi 12956 fi 12957 ;; 12958 12959 *.$objext) 12960 # This assumes that the test object file only shows up 12961 # once in the compiler output. 12962 if test "$p" = "conftest.$objext"; then 12963 pre_test_object_deps_done=yes 12964 continue 12965 fi 12966 12967 if test "$pre_test_object_deps_done" = no; then 12968 if test -z "$predep_objects_CXX"; then 12969 predep_objects_CXX="$p" 12970 else 12971 predep_objects_CXX="$predep_objects_CXX $p" 12972 fi 12973 else 12974 if test -z "$postdep_objects_CXX"; then 12975 postdep_objects_CXX="$p" 12976 else 12977 postdep_objects_CXX="$postdep_objects_CXX $p" 12978 fi 12979 fi 12980 ;; 12981 12982 *) ;; # Ignore the rest. 12983 12984 esac 12985 done 12986 12987 # Clean up. 12988 rm -f a.out a.exe 12989else 12990 echo "libtool.m4: error: problem compiling CXX test program" 12991fi 12992 12993$rm -f confest.$objext 12994 12995# PORTME: override above test on systems where it is broken 12996case $host_os in 12997solaris*) 12998 case $cc_basename in 12999 CC*) 13000 # Adding this requires a known-good setup of shared libraries for 13001 # Sun compiler versions before 5.6, else PIC objects from an old 13002 # archive will be linked into the output, leading to subtle bugs. 13003 postdeps_CXX='-lCstd -lCrun' 13004 ;; 13005 esac 13006esac 13007 13008 13009case " $postdeps_CXX " in 13010*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13011esac 13012 13013lt_prog_compiler_wl_CXX= 13014lt_prog_compiler_pic_CXX= 13015lt_prog_compiler_static_CXX= 13016 13017echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13018echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13019 13020 # C++ specific cases for pic, static, wl, etc. 13021 if test "$GXX" = yes; then 13022 lt_prog_compiler_wl_CXX='-Wl,' 13023 lt_prog_compiler_static_CXX='-static' 13024 13025 case $host_os in 13026 aix*) 13027 # All AIX code is PIC. 13028 if test "$host_cpu" = ia64; then 13029 # AIX 5 now supports IA64 processor 13030 lt_prog_compiler_static_CXX='-Bstatic' 13031 fi 13032 ;; 13033 amigaos*) 13034 # FIXME: we need at least 68020 code to build shared libraries, but 13035 # adding the `-m68020' flag to GCC prevents building anything better, 13036 # like `-m68040'. 13037 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13038 ;; 13039 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13040 # PIC is the default for these OSes. 13041 ;; 13042 mingw* | os2* | pw32*) 13043 # This hack is so that the source file can tell whether it is being 13044 # built for inclusion in a dll (and should export symbols for example). 13045 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13046 ;; 13047 darwin* | rhapsody*) 13048 # PIC is the default on this platform 13049 # Common symbols not allowed in MH_DYLIB files 13050 lt_prog_compiler_pic_CXX='-fno-common' 13051 ;; 13052 *djgpp*) 13053 # DJGPP does not support shared libraries at all 13054 lt_prog_compiler_pic_CXX= 13055 ;; 13056 sysv4*MP*) 13057 if test -d /usr/nec; then 13058 lt_prog_compiler_pic_CXX=-Kconform_pic 13059 fi 13060 ;; 13061 hpux*) 13062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13063 # not for PA HP-UX. 13064 case $host_cpu in 13065 hppa*64*|ia64*) 13066 ;; 13067 *) 13068 lt_prog_compiler_pic_CXX='-fPIC' 13069 ;; 13070 esac 13071 ;; 13072 *) 13073 lt_prog_compiler_pic_CXX='-fPIC' 13074 ;; 13075 esac 13076 else 13077 case $host_os in 13078 aix4* | aix5*) 13079 # All AIX code is PIC. 13080 if test "$host_cpu" = ia64; then 13081 # AIX 5 now supports IA64 processor 13082 lt_prog_compiler_static_CXX='-Bstatic' 13083 else 13084 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13085 fi 13086 ;; 13087 chorus*) 13088 case $cc_basename in 13089 cxch68*) 13090 # Green Hills C++ Compiler 13091 # _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" 13092 ;; 13093 esac 13094 ;; 13095 darwin*) 13096 # PIC is the default on this platform 13097 # Common symbols not allowed in MH_DYLIB files 13098 case $cc_basename in 13099 xlc*) 13100 lt_prog_compiler_pic_CXX='-qnocommon' 13101 lt_prog_compiler_wl_CXX='-Wl,' 13102 ;; 13103 esac 13104 ;; 13105 dgux*) 13106 case $cc_basename in 13107 ec++*) 13108 lt_prog_compiler_pic_CXX='-KPIC' 13109 ;; 13110 ghcx*) 13111 # Green Hills C++ Compiler 13112 lt_prog_compiler_pic_CXX='-pic' 13113 ;; 13114 *) 13115 ;; 13116 esac 13117 ;; 13118 freebsd* | kfreebsd*-gnu | dragonfly*) 13119 # FreeBSD uses GNU C++ 13120 ;; 13121 hpux9* | hpux10* | hpux11*) 13122 case $cc_basename in 13123 CC*) 13124 lt_prog_compiler_wl_CXX='-Wl,' 13125 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 13126 if test "$host_cpu" != ia64; then 13127 lt_prog_compiler_pic_CXX='+Z' 13128 fi 13129 ;; 13130 aCC*) 13131 lt_prog_compiler_wl_CXX='-Wl,' 13132 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 13133 case $host_cpu in 13134 hppa*64*|ia64*) 13135 # +Z the default 13136 ;; 13137 *) 13138 lt_prog_compiler_pic_CXX='+Z' 13139 ;; 13140 esac 13141 ;; 13142 *) 13143 ;; 13144 esac 13145 ;; 13146 irix5* | irix6* | nonstopux*) 13147 case $cc_basename in 13148 CC*) 13149 lt_prog_compiler_wl_CXX='-Wl,' 13150 lt_prog_compiler_static_CXX='-non_shared' 13151 # CC pic flag -KPIC is the default. 13152 ;; 13153 *) 13154 ;; 13155 esac 13156 ;; 13157 linux*) 13158 case $cc_basename in 13159 KCC*) 13160 # KAI C++ Compiler 13161 lt_prog_compiler_wl_CXX='--backend -Wl,' 13162 lt_prog_compiler_pic_CXX='-fPIC' 13163 ;; 13164 icpc* | ecpc*) 13165 # Intel C++ 13166 lt_prog_compiler_wl_CXX='-Wl,' 13167 lt_prog_compiler_pic_CXX='-KPIC' 13168 lt_prog_compiler_static_CXX='-static' 13169 ;; 13170 pgCC*) 13171 # Portland Group C++ compiler. 13172 lt_prog_compiler_wl_CXX='-Wl,' 13173 lt_prog_compiler_pic_CXX='-fpic' 13174 lt_prog_compiler_static_CXX='-Bstatic' 13175 ;; 13176 cxx*) 13177 # Compaq C++ 13178 # Make sure the PIC flag is empty. It appears that all Alpha 13179 # Linux and Compaq Tru64 Unix objects are PIC. 13180 lt_prog_compiler_pic_CXX= 13181 lt_prog_compiler_static_CXX='-non_shared' 13182 ;; 13183 *) 13184 ;; 13185 esac 13186 ;; 13187 lynxos*) 13188 ;; 13189 m88k*) 13190 ;; 13191 mvs*) 13192 case $cc_basename in 13193 cxx*) 13194 lt_prog_compiler_pic_CXX='-W c,exportall' 13195 ;; 13196 *) 13197 ;; 13198 esac 13199 ;; 13200 netbsd*) 13201 ;; 13202 osf3* | osf4* | osf5*) 13203 case $cc_basename in 13204 KCC*) 13205 lt_prog_compiler_wl_CXX='--backend -Wl,' 13206 ;; 13207 RCC*) 13208 # Rational C++ 2.4.1 13209 lt_prog_compiler_pic_CXX='-pic' 13210 ;; 13211 cxx*) 13212 # Digital/Compaq C++ 13213 lt_prog_compiler_wl_CXX='-Wl,' 13214 # Make sure the PIC flag is empty. It appears that all Alpha 13215 # Linux and Compaq Tru64 Unix objects are PIC. 13216 lt_prog_compiler_pic_CXX= 13217 lt_prog_compiler_static_CXX='-non_shared' 13218 ;; 13219 *) 13220 ;; 13221 esac 13222 ;; 13223 psos*) 13224 ;; 13225 sco*) 13226 case $cc_basename in 13227 CC*) 13228 lt_prog_compiler_pic_CXX='-fPIC' 13229 ;; 13230 *) 13231 ;; 13232 esac 13233 ;; 13234 solaris*) 13235 case $cc_basename in 13236 CC*) 13237 # Sun C++ 4.2, 5.x and Centerline C++ 13238 lt_prog_compiler_pic_CXX='-KPIC' 13239 lt_prog_compiler_static_CXX='-Bstatic' 13240 lt_prog_compiler_wl_CXX='-Qoption ld ' 13241 ;; 13242 gcx*) 13243 # Green Hills C++ Compiler 13244 lt_prog_compiler_pic_CXX='-PIC' 13245 ;; 13246 *) 13247 ;; 13248 esac 13249 ;; 13250 sunos4*) 13251 case $cc_basename in 13252 CC*) 13253 # Sun C++ 4.x 13254 lt_prog_compiler_pic_CXX='-pic' 13255 lt_prog_compiler_static_CXX='-Bstatic' 13256 ;; 13257 lcc*) 13258 # Lucid 13259 lt_prog_compiler_pic_CXX='-pic' 13260 ;; 13261 *) 13262 ;; 13263 esac 13264 ;; 13265 tandem*) 13266 case $cc_basename in 13267 NCC*) 13268 # NonStop-UX NCC 3.20 13269 lt_prog_compiler_pic_CXX='-KPIC' 13270 ;; 13271 *) 13272 ;; 13273 esac 13274 ;; 13275 unixware*) 13276 ;; 13277 vxworks*) 13278 ;; 13279 *) 13280 lt_prog_compiler_can_build_shared_CXX=no 13281 ;; 13282 esac 13283 fi 13284 13285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13286echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13287 13288# 13289# Check to make sure the PIC flag actually works. 13290# 13291if test -n "$lt_prog_compiler_pic_CXX"; then 13292 13293echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13294echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13295if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13296 echo $ECHO_N "(cached) $ECHO_C" >&6 13297else 13298 lt_prog_compiler_pic_works_CXX=no 13299 ac_outfile=conftest.$ac_objext 13300 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13301 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13302 # Insert the option either (1) after the last *FLAGS variable, or 13303 # (2) before a word containing "conftest.", or (3) at the end. 13304 # Note that $ac_compile itself does not contain backslashes and begins 13305 # with a dollar sign (not a hyphen), so the echo should work correctly. 13306 # The option is referenced via a variable to avoid confusing sed. 13307 lt_compile=`echo "$ac_compile" | $SED \ 13308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13310 -e 's:$: $lt_compiler_flag:'` 13311 (eval echo "\"\$as_me:13311: $lt_compile\"" >&5) 13312 (eval "$lt_compile" 2>conftest.err) 13313 ac_status=$? 13314 cat conftest.err >&5 13315 echo "$as_me:13315: \$? = $ac_status" >&5 13316 if (exit $ac_status) && test -s "$ac_outfile"; then 13317 # The compiler can only warn and ignore the option if not recognized 13318 # So say no if there are warnings other than the usual output. 13319 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13320 $SED '/^$/d' conftest.err >conftest.er2 13321 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13322 lt_prog_compiler_pic_works_CXX=yes 13323 fi 13324 fi 13325 $rm conftest* 13326 13327fi 13328echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13329echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13330 13331if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13332 case $lt_prog_compiler_pic_CXX in 13333 "" | " "*) ;; 13334 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13335 esac 13336else 13337 lt_prog_compiler_pic_CXX= 13338 lt_prog_compiler_can_build_shared_CXX=no 13339fi 13340 13341fi 13342case $host_os in 13343 # For platforms which do not support PIC, -DPIC is meaningless: 13344 *djgpp*) 13345 lt_prog_compiler_pic_CXX= 13346 ;; 13347 *) 13348 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13349 ;; 13350esac 13351 13352echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13353echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13354if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13355 echo $ECHO_N "(cached) $ECHO_C" >&6 13356else 13357 lt_cv_prog_compiler_c_o_CXX=no 13358 $rm -r conftest 2>/dev/null 13359 mkdir conftest 13360 cd conftest 13361 mkdir out 13362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13363 13364 lt_compiler_flag="-o out/conftest2.$ac_objext" 13365 # Insert the option either (1) after the last *FLAGS variable, or 13366 # (2) before a word containing "conftest.", or (3) at the end. 13367 # Note that $ac_compile itself does not contain backslashes and begins 13368 # with a dollar sign (not a hyphen), so the echo should work correctly. 13369 lt_compile=`echo "$ac_compile" | $SED \ 13370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13372 -e 's:$: $lt_compiler_flag:'` 13373 (eval echo "\"\$as_me:13373: $lt_compile\"" >&5) 13374 (eval "$lt_compile" 2>out/conftest.err) 13375 ac_status=$? 13376 cat out/conftest.err >&5 13377 echo "$as_me:13377: \$? = $ac_status" >&5 13378 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13379 then 13380 # The compiler can only warn and ignore the option if not recognized 13381 # So say no if there are warnings 13382 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13383 $SED '/^$/d' out/conftest.err >out/conftest.er2 13384 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13385 lt_cv_prog_compiler_c_o_CXX=yes 13386 fi 13387 fi 13388 chmod u+w . 2>&5 13389 $rm conftest* 13390 # SGI C++ compiler will create directory out/ii_files/ for 13391 # template instantiation 13392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13393 $rm out/* && rmdir out 13394 cd .. 13395 rmdir conftest 13396 $rm conftest* 13397 13398fi 13399echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13400echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13401 13402 13403hard_links="nottested" 13404if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13405 # do not overwrite the value of need_locks provided by the user 13406 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13407echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13408 hard_links=yes 13409 $rm conftest* 13410 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13411 touch conftest.a 13412 ln conftest.a conftest.b 2>&5 || hard_links=no 13413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13414 echo "$as_me:$LINENO: result: $hard_links" >&5 13415echo "${ECHO_T}$hard_links" >&6 13416 if test "$hard_links" = no; then 13417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13418echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13419 need_locks=warn 13420 fi 13421else 13422 need_locks=no 13423fi 13424 13425echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13426echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13427 13428 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13429 case $host_os in 13430 aix4* | aix5*) 13431 # If we're using GNU nm, then we don't want the "-C" option. 13432 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13433 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13434 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' 13435 else 13436 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' 13437 fi 13438 ;; 13439 pw32*) 13440 export_symbols_cmds_CXX="$ltdll_cmds" 13441 ;; 13442 cygwin* | mingw*) 13443 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' 13444 ;; 13445 *) 13446 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13447 ;; 13448 esac 13449 13450echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13451echo "${ECHO_T}$ld_shlibs_CXX" >&6 13452test "$ld_shlibs_CXX" = no && can_build_shared=no 13453 13454variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13455if test "$GCC" = yes; then 13456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13457fi 13458 13459# 13460# Do we need to explicitly link libc? 13461# 13462case "x$archive_cmds_need_lc_CXX" in 13463x|xyes) 13464 # Assume -lc should be added 13465 archive_cmds_need_lc_CXX=yes 13466 13467 if test "$enable_shared" = yes && test "$GCC" = yes; then 13468 case $archive_cmds_CXX in 13469 *'~'*) 13470 # FIXME: we may have to deal with multi-command sequences. 13471 ;; 13472 '$CC '*) 13473 # Test whether the compiler implicitly links with -lc since on some 13474 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13475 # to ld, don't add -lc before -lgcc. 13476 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13477echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13478 $rm conftest* 13479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13480 13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13482 (eval $ac_compile) 2>&5 13483 ac_status=$? 13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13485 (exit $ac_status); } 2>conftest.err; then 13486 soname=conftest 13487 lib=conftest 13488 libobjs=conftest.$ac_objext 13489 deplibs= 13490 wl=$lt_prog_compiler_wl_CXX 13491 compiler_flags=-v 13492 linker_flags=-v 13493 verstring= 13494 output_objdir=. 13495 libname=conftest 13496 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13497 allow_undefined_flag_CXX= 13498 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13499 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13500 ac_status=$? 13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13502 (exit $ac_status); } 13503 then 13504 archive_cmds_need_lc_CXX=no 13505 else 13506 archive_cmds_need_lc_CXX=yes 13507 fi 13508 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13509 else 13510 cat conftest.err 1>&5 13511 fi 13512 $rm conftest* 13513 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13514echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13515 ;; 13516 esac 13517 fi 13518 ;; 13519esac 13520 13521echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13522echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13523library_names_spec= 13524libname_spec='lib$name' 13525soname_spec= 13526shrext_cmds=".so" 13527postinstall_cmds= 13528postuninstall_cmds= 13529finish_cmds= 13530finish_eval= 13531shlibpath_var= 13532shlibpath_overrides_runpath=unknown 13533version_type=none 13534dynamic_linker="$host_os ld.so" 13535sys_lib_dlsearch_path_spec="/lib /usr/lib" 13536if test "$GCC" = yes; then 13537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13538 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13539 # if the path contains ";" then we assume it to be the separator 13540 # otherwise default to the standard path separator (i.e. ":") - it is 13541 # assumed that no part of a normal pathname contains ";" but that should 13542 # okay in the real world where ";" in dirpaths is itself problematic. 13543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13544 else 13545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13546 fi 13547else 13548 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13549fi 13550need_lib_prefix=unknown 13551hardcode_into_libs=no 13552 13553# when you set need_version to no, make sure it does not cause -set_version 13554# flags to be left without arguments 13555need_version=unknown 13556 13557case $host_os in 13558aix3*) 13559 version_type=linux 13560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13561 shlibpath_var=LIBPATH 13562 13563 # AIX 3 has no versioning support, so we append a major version to the name. 13564 soname_spec='${libname}${release}${shared_ext}$major' 13565 ;; 13566 13567aix4* | aix5*) 13568 version_type=linux 13569 need_lib_prefix=no 13570 need_version=no 13571 hardcode_into_libs=yes 13572 if test "$host_cpu" = ia64; then 13573 # AIX 5 supports IA64 13574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13575 shlibpath_var=LD_LIBRARY_PATH 13576 else 13577 # With GCC up to 2.95.x, collect2 would create an import file 13578 # for dependence libraries. The import file would start with 13579 # the line `#! .'. This would cause the generated library to 13580 # depend on `.', always an invalid library. This was fixed in 13581 # development snapshots of GCC prior to 3.0. 13582 case $host_os in 13583 aix4 | aix4.[01] | aix4.[01].*) 13584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13585 echo ' yes ' 13586 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13587 : 13588 else 13589 can_build_shared=no 13590 fi 13591 ;; 13592 esac 13593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13594 # soname into executable. Probably we can add versioning support to 13595 # collect2, so additional links can be useful in future. 13596 if test "$aix_use_runtimelinking" = yes; then 13597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13598 # instead of lib<name>.a to let people know that these are not 13599 # typical AIX shared libraries. 13600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13601 else 13602 # We preserve .a as extension for shared libraries through AIX4.2 13603 # and later when we are not doing run time linking. 13604 library_names_spec='${libname}${release}.a $libname.a' 13605 soname_spec='${libname}${release}${shared_ext}$major' 13606 fi 13607 shlibpath_var=LIBPATH 13608 fi 13609 ;; 13610 13611amigaos*) 13612 library_names_spec='$libname.ixlibrary $libname.a' 13613 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13614 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' 13615 ;; 13616 13617beos*) 13618 library_names_spec='${libname}${shared_ext}' 13619 dynamic_linker="$host_os ld.so" 13620 shlibpath_var=LIBRARY_PATH 13621 ;; 13622 13623bsdi[45]*) 13624 version_type=linux 13625 need_version=no 13626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13627 soname_spec='${libname}${release}${shared_ext}$major' 13628 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13629 shlibpath_var=LD_LIBRARY_PATH 13630 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13631 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13632 # the default ld.so.conf also contains /usr/contrib/lib and 13633 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13634 # libtool to hard-code these into programs 13635 ;; 13636 13637cygwin* | mingw* | pw32*) 13638 version_type=windows 13639 shrext_cmds=".dll" 13640 need_version=no 13641 need_lib_prefix=no 13642 13643 case $GCC,$host_os in 13644 yes,cygwin* | yes,mingw* | yes,pw32*) 13645 library_names_spec='$libname.dll.a' 13646 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13647 postinstall_cmds='base_file=`basename \${file}`~ 13648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13649 dldir=$destdir/`dirname \$dlpath`~ 13650 test -d \$dldir || mkdir -p \$dldir~ 13651 $install_prog $dir/$dlname \$dldir/$dlname~ 13652 chmod a+x \$dldir/$dlname' 13653 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13654 dlpath=$dir/\$dldll~ 13655 $rm \$dlpath' 13656 shlibpath_overrides_runpath=yes 13657 13658 case $host_os in 13659 cygwin*) 13660 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13661 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13662 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13663 ;; 13664 mingw*) 13665 # MinGW DLLs use traditional 'lib' prefix 13666 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13667 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13668 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13669 # It is most probably a Windows format PATH printed by 13670 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13671 # path with ; separators, and with drive letters. We can handle the 13672 # drive letters (cygwin fileutils understands them), so leave them, 13673 # especially as we might pass files found there to a mingw objdump, 13674 # which wouldn't understand a cygwinified path. Ahh. 13675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13676 else 13677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13678 fi 13679 ;; 13680 pw32*) 13681 # pw32 DLLs use 'pw' prefix rather than 'lib' 13682 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13683 ;; 13684 esac 13685 ;; 13686 13687 *) 13688 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13689 ;; 13690 esac 13691 dynamic_linker='Win32 ld.exe' 13692 # FIXME: first we should search . and the directory the executable is in 13693 shlibpath_var=PATH 13694 ;; 13695 13696darwin* | rhapsody*) 13697 dynamic_linker="$host_os dyld" 13698 version_type=darwin 13699 need_lib_prefix=no 13700 need_version=no 13701 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13702 soname_spec='${libname}${release}${major}$shared_ext' 13703 shlibpath_overrides_runpath=yes 13704 shlibpath_var=DYLD_LIBRARY_PATH 13705 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13706 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13707 if test "$GCC" = yes; then 13708 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"` 13709 else 13710 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13711 fi 13712 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13713 ;; 13714 13715dgux*) 13716 version_type=linux 13717 need_lib_prefix=no 13718 need_version=no 13719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13720 soname_spec='${libname}${release}${shared_ext}$major' 13721 shlibpath_var=LD_LIBRARY_PATH 13722 ;; 13723 13724freebsd1*) 13725 dynamic_linker=no 13726 ;; 13727 13728kfreebsd*-gnu) 13729 version_type=linux 13730 need_lib_prefix=no 13731 need_version=no 13732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13733 soname_spec='${libname}${release}${shared_ext}$major' 13734 shlibpath_var=LD_LIBRARY_PATH 13735 shlibpath_overrides_runpath=no 13736 hardcode_into_libs=yes 13737 dynamic_linker='GNU ld.so' 13738 ;; 13739 13740freebsd* | dragonfly*) 13741 # DragonFly does not have aout. When/if they implement a new 13742 # versioning mechanism, adjust this. 13743 if test -x /usr/bin/objformat; then 13744 objformat=`/usr/bin/objformat` 13745 else 13746 case $host_os in 13747 freebsd[123]*) objformat=aout ;; 13748 *) objformat=elf ;; 13749 esac 13750 fi 13751 version_type=freebsd-$objformat 13752 case $version_type in 13753 freebsd-elf*) 13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13755 need_version=no 13756 need_lib_prefix=no 13757 ;; 13758 freebsd-*) 13759 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13760 need_version=yes 13761 ;; 13762 esac 13763 shlibpath_var=LD_LIBRARY_PATH 13764 case $host_os in 13765 freebsd2*) 13766 shlibpath_overrides_runpath=yes 13767 ;; 13768 freebsd3.[01]* | freebsdelf3.[01]*) 13769 shlibpath_overrides_runpath=yes 13770 hardcode_into_libs=yes 13771 ;; 13772 *) # from 3.2 on 13773 shlibpath_overrides_runpath=no 13774 hardcode_into_libs=yes 13775 ;; 13776 esac 13777 ;; 13778 13779gnu*) 13780 version_type=linux 13781 need_lib_prefix=no 13782 need_version=no 13783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13784 soname_spec='${libname}${release}${shared_ext}$major' 13785 shlibpath_var=LD_LIBRARY_PATH 13786 hardcode_into_libs=yes 13787 ;; 13788 13789hpux9* | hpux10* | hpux11*) 13790 # Give a soname corresponding to the major version so that dld.sl refuses to 13791 # link against other versions. 13792 version_type=sunos 13793 need_lib_prefix=no 13794 need_version=no 13795 case $host_cpu in 13796 ia64*) 13797 shrext_cmds='.so' 13798 hardcode_into_libs=yes 13799 dynamic_linker="$host_os dld.so" 13800 shlibpath_var=LD_LIBRARY_PATH 13801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13803 soname_spec='${libname}${release}${shared_ext}$major' 13804 if test "X$HPUX_IA64_MODE" = X32; then 13805 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13806 else 13807 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13808 fi 13809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13810 ;; 13811 hppa*64*) 13812 shrext_cmds='.sl' 13813 hardcode_into_libs=yes 13814 dynamic_linker="$host_os dld.sl" 13815 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13818 soname_spec='${libname}${release}${shared_ext}$major' 13819 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13821 ;; 13822 *) 13823 shrext_cmds='.sl' 13824 dynamic_linker="$host_os dld.sl" 13825 shlibpath_var=SHLIB_PATH 13826 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13828 soname_spec='${libname}${release}${shared_ext}$major' 13829 ;; 13830 esac 13831 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13832 postinstall_cmds='chmod 555 $lib' 13833 ;; 13834 13835irix5* | irix6* | nonstopux*) 13836 case $host_os in 13837 nonstopux*) version_type=nonstopux ;; 13838 *) 13839 if test "$lt_cv_prog_gnu_ld" = yes; then 13840 version_type=linux 13841 else 13842 version_type=irix 13843 fi ;; 13844 esac 13845 need_lib_prefix=no 13846 need_version=no 13847 soname_spec='${libname}${release}${shared_ext}$major' 13848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13849 case $host_os in 13850 irix5* | nonstopux*) 13851 libsuff= shlibsuff= 13852 ;; 13853 *) 13854 case $LD in # libtool.m4 will add one of these switches to LD 13855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13856 libsuff= shlibsuff= libmagic=32-bit;; 13857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13858 libsuff=32 shlibsuff=N32 libmagic=N32;; 13859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13860 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13861 *) libsuff= shlibsuff= libmagic=never-match;; 13862 esac 13863 ;; 13864 esac 13865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13866 shlibpath_overrides_runpath=no 13867 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13868 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13869 hardcode_into_libs=yes 13870 ;; 13871 13872# No shared lib support for Linux oldld, aout, or coff. 13873linux*oldld* | linux*aout* | linux*coff*) 13874 dynamic_linker=no 13875 ;; 13876 13877# This must be Linux ELF. 13878linux*) 13879 version_type=linux 13880 need_lib_prefix=no 13881 need_version=no 13882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13883 soname_spec='${libname}${release}${shared_ext}$major' 13884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13885 shlibpath_var=LD_LIBRARY_PATH 13886 shlibpath_overrides_runpath=no 13887 # This implies no fast_install, which is unacceptable. 13888 # Some rework will be needed to allow for fast_install 13889 # before this can be enabled. 13890 hardcode_into_libs=yes 13891 13892 # Append ld.so.conf contents to the search path 13893 if test -f /etc/ld.so.conf; then 13894 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13896 fi 13897 13898 # We used to test for /lib/ld.so.1 and disable shared libraries on 13899 # powerpc, because MkLinux only supported shared libraries with the 13900 # GNU dynamic linker. Since this was broken with cross compilers, 13901 # most powerpc-linux boxes support dynamic linking these days and 13902 # people can always --disable-shared, the test was removed, and we 13903 # assume the GNU/Linux dynamic linker is in use. 13904 dynamic_linker='GNU/Linux ld.so' 13905 ;; 13906 13907knetbsd*-gnu) 13908 version_type=linux 13909 need_lib_prefix=no 13910 need_version=no 13911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13912 soname_spec='${libname}${release}${shared_ext}$major' 13913 shlibpath_var=LD_LIBRARY_PATH 13914 shlibpath_overrides_runpath=no 13915 hardcode_into_libs=yes 13916 dynamic_linker='GNU ld.so' 13917 ;; 13918 13919netbsd*) 13920 version_type=sunos 13921 need_lib_prefix=no 13922 need_version=no 13923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13926 dynamic_linker='NetBSD (a.out) ld.so' 13927 else 13928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13929 soname_spec='${libname}${release}${shared_ext}$major' 13930 dynamic_linker='NetBSD ld.elf_so' 13931 fi 13932 shlibpath_var=LD_LIBRARY_PATH 13933 shlibpath_overrides_runpath=yes 13934 hardcode_into_libs=yes 13935 ;; 13936 13937newsos6) 13938 version_type=linux 13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13940 shlibpath_var=LD_LIBRARY_PATH 13941 shlibpath_overrides_runpath=yes 13942 ;; 13943 13944nto-qnx*) 13945 version_type=linux 13946 need_lib_prefix=no 13947 need_version=no 13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13949 soname_spec='${libname}${release}${shared_ext}$major' 13950 shlibpath_var=LD_LIBRARY_PATH 13951 shlibpath_overrides_runpath=yes 13952 ;; 13953 13954openbsd*) 13955 version_type=sunos 13956 need_lib_prefix=no 13957 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13958 case $host_os in 13959 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13960 *) need_version=no ;; 13961 esac 13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13964 shlibpath_var=LD_LIBRARY_PATH 13965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13966 case $host_os in 13967 openbsd2.[89] | openbsd2.[89].*) 13968 shlibpath_overrides_runpath=no 13969 ;; 13970 *) 13971 shlibpath_overrides_runpath=yes 13972 ;; 13973 esac 13974 else 13975 shlibpath_overrides_runpath=yes 13976 fi 13977 ;; 13978 13979os2*) 13980 libname_spec='$name' 13981 shrext_cmds=".dll" 13982 need_lib_prefix=no 13983 library_names_spec='$libname${shared_ext} $libname.a' 13984 dynamic_linker='OS/2 ld.exe' 13985 shlibpath_var=LIBPATH 13986 ;; 13987 13988osf3* | osf4* | osf5*) 13989 version_type=osf 13990 need_lib_prefix=no 13991 need_version=no 13992 soname_spec='${libname}${release}${shared_ext}$major' 13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13994 shlibpath_var=LD_LIBRARY_PATH 13995 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13996 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13997 ;; 13998 13999sco3.2v5*) 14000 version_type=osf 14001 soname_spec='${libname}${release}${shared_ext}$major' 14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14003 shlibpath_var=LD_LIBRARY_PATH 14004 ;; 14005 14006solaris*) 14007 version_type=linux 14008 need_lib_prefix=no 14009 need_version=no 14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14011 soname_spec='${libname}${release}${shared_ext}$major' 14012 shlibpath_var=LD_LIBRARY_PATH 14013 shlibpath_overrides_runpath=yes 14014 hardcode_into_libs=yes 14015 # ldd complains unless libraries are executable 14016 postinstall_cmds='chmod +x $lib' 14017 ;; 14018 14019sunos4*) 14020 version_type=sunos 14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14023 shlibpath_var=LD_LIBRARY_PATH 14024 shlibpath_overrides_runpath=yes 14025 if test "$with_gnu_ld" = yes; then 14026 need_lib_prefix=no 14027 fi 14028 need_version=yes 14029 ;; 14030 14031sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14032 version_type=linux 14033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14034 soname_spec='${libname}${release}${shared_ext}$major' 14035 shlibpath_var=LD_LIBRARY_PATH 14036 case $host_vendor in 14037 sni) 14038 shlibpath_overrides_runpath=no 14039 need_lib_prefix=no 14040 export_dynamic_flag_spec='${wl}-Blargedynsym' 14041 runpath_var=LD_RUN_PATH 14042 ;; 14043 siemens) 14044 need_lib_prefix=no 14045 ;; 14046 motorola) 14047 need_lib_prefix=no 14048 need_version=no 14049 shlibpath_overrides_runpath=no 14050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14051 ;; 14052 esac 14053 ;; 14054 14055sysv4*MP*) 14056 if test -d /usr/nec ;then 14057 version_type=linux 14058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14059 soname_spec='$libname${shared_ext}.$major' 14060 shlibpath_var=LD_LIBRARY_PATH 14061 fi 14062 ;; 14063 14064uts4*) 14065 version_type=linux 14066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14067 soname_spec='${libname}${release}${shared_ext}$major' 14068 shlibpath_var=LD_LIBRARY_PATH 14069 ;; 14070 14071*) 14072 dynamic_linker=no 14073 ;; 14074esac 14075echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14076echo "${ECHO_T}$dynamic_linker" >&6 14077test "$dynamic_linker" = no && can_build_shared=no 14078 14079echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14080echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14081hardcode_action_CXX= 14082if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14083 test -n "$runpath_var_CXX" || \ 14084 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14085 14086 # We can hardcode non-existant directories. 14087 if test "$hardcode_direct_CXX" != no && 14088 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14089 # have to relink, otherwise we might link with an installed library 14090 # when we should be linking with a yet-to-be-installed one 14091 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14092 test "$hardcode_minus_L_CXX" != no; then 14093 # Linking always hardcodes the temporary library directory. 14094 hardcode_action_CXX=relink 14095 else 14096 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14097 hardcode_action_CXX=immediate 14098 fi 14099else 14100 # We cannot hardcode anything, or else we can only hardcode existing 14101 # directories. 14102 hardcode_action_CXX=unsupported 14103fi 14104echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14105echo "${ECHO_T}$hardcode_action_CXX" >&6 14106 14107if test "$hardcode_action_CXX" = relink; then 14108 # Fast installation is not supported 14109 enable_fast_install=no 14110elif test "$shlibpath_overrides_runpath" = yes || 14111 test "$enable_shared" = no; then 14112 # Fast installation is not necessary 14113 enable_fast_install=needless 14114fi 14115 14116striplib= 14117old_striplib= 14118echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 14119echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 14120if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 14121 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14122 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14123 echo "$as_me:$LINENO: result: yes" >&5 14124echo "${ECHO_T}yes" >&6 14125else 14126# FIXME - insert some real tests, host_os isn't really good enough 14127 case $host_os in 14128 darwin*) 14129 if test -n "$STRIP" ; then 14130 striplib="$STRIP -x" 14131 echo "$as_me:$LINENO: result: yes" >&5 14132echo "${ECHO_T}yes" >&6 14133 else 14134 echo "$as_me:$LINENO: result: no" >&5 14135echo "${ECHO_T}no" >&6 14136fi 14137 ;; 14138 *) 14139 echo "$as_me:$LINENO: result: no" >&5 14140echo "${ECHO_T}no" >&6 14141 ;; 14142 esac 14143fi 14144 14145if test "x$enable_dlopen" != xyes; then 14146 enable_dlopen=unknown 14147 enable_dlopen_self=unknown 14148 enable_dlopen_self_static=unknown 14149else 14150 lt_cv_dlopen=no 14151 lt_cv_dlopen_libs= 14152 14153 case $host_os in 14154 beos*) 14155 lt_cv_dlopen="load_add_on" 14156 lt_cv_dlopen_libs= 14157 lt_cv_dlopen_self=yes 14158 ;; 14159 14160 mingw* | pw32*) 14161 lt_cv_dlopen="LoadLibrary" 14162 lt_cv_dlopen_libs= 14163 ;; 14164 14165 cygwin*) 14166 lt_cv_dlopen="dlopen" 14167 lt_cv_dlopen_libs= 14168 ;; 14169 14170 darwin*) 14171 # if libdl is installed we need to link against it 14172 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14173echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14174if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14175 echo $ECHO_N "(cached) $ECHO_C" >&6 14176else 14177 ac_check_lib_save_LIBS=$LIBS 14178LIBS="-ldl $LIBS" 14179cat >conftest.$ac_ext <<_ACEOF 14180/* confdefs.h. */ 14181_ACEOF 14182cat confdefs.h >>conftest.$ac_ext 14183cat >>conftest.$ac_ext <<_ACEOF 14184/* end confdefs.h. */ 14185 14186/* Override any gcc2 internal prototype to avoid an error. */ 14187#ifdef __cplusplus 14188extern "C" 14189#endif 14190/* We use char because int might match the return type of a gcc2 14191 builtin and then its argument prototype would still apply. */ 14192char dlopen (); 14193int 14194main () 14195{ 14196dlopen (); 14197 ; 14198 return 0; 14199} 14200_ACEOF 14201rm -f conftest.$ac_objext conftest$ac_exeext 14202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14203 (eval $ac_link) 2>conftest.er1 14204 ac_status=$? 14205 grep -v '^ *+' conftest.er1 >conftest.err 14206 rm -f conftest.er1 14207 cat conftest.err >&5 14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14209 (exit $ac_status); } && 14210 { ac_try='test -z "$ac_cxx_werror_flag" 14211 || test ! -s conftest.err' 14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14213 (eval $ac_try) 2>&5 14214 ac_status=$? 14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14216 (exit $ac_status); }; } && 14217 { ac_try='test -s conftest$ac_exeext' 14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14219 (eval $ac_try) 2>&5 14220 ac_status=$? 14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14222 (exit $ac_status); }; }; then 14223 ac_cv_lib_dl_dlopen=yes 14224else 14225 echo "$as_me: failed program was:" >&5 14226sed 's/^/| /' conftest.$ac_ext >&5 14227 14228ac_cv_lib_dl_dlopen=no 14229fi 14230rm -f conftest.err conftest.$ac_objext \ 14231 conftest$ac_exeext conftest.$ac_ext 14232LIBS=$ac_check_lib_save_LIBS 14233fi 14234echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14235echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14236if test $ac_cv_lib_dl_dlopen = yes; then 14237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14238else 14239 14240 lt_cv_dlopen="dyld" 14241 lt_cv_dlopen_libs= 14242 lt_cv_dlopen_self=yes 14243 14244fi 14245 14246 ;; 14247 14248 *) 14249 echo "$as_me:$LINENO: checking for shl_load" >&5 14250echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 14251if test "${ac_cv_func_shl_load+set}" = set; then 14252 echo $ECHO_N "(cached) $ECHO_C" >&6 14253else 14254 cat >conftest.$ac_ext <<_ACEOF 14255/* confdefs.h. */ 14256_ACEOF 14257cat confdefs.h >>conftest.$ac_ext 14258cat >>conftest.$ac_ext <<_ACEOF 14259/* end confdefs.h. */ 14260/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 14261 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14262#define shl_load innocuous_shl_load 14263 14264/* System header to define __stub macros and hopefully few prototypes, 14265 which can conflict with char shl_load (); below. 14266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14267 <limits.h> exists even on freestanding compilers. */ 14268 14269#ifdef __STDC__ 14270# include <limits.h> 14271#else 14272# include <assert.h> 14273#endif 14274 14275#undef shl_load 14276 14277/* Override any gcc2 internal prototype to avoid an error. */ 14278#ifdef __cplusplus 14279extern "C" 14280{ 14281#endif 14282/* We use char because int might match the return type of a gcc2 14283 builtin and then its argument prototype would still apply. */ 14284char shl_load (); 14285/* The GNU C library defines this for functions which it implements 14286 to always fail with ENOSYS. Some functions are actually named 14287 something starting with __ and the normal name is an alias. */ 14288#if defined (__stub_shl_load) || defined (__stub___shl_load) 14289choke me 14290#else 14291char (*f) () = shl_load; 14292#endif 14293#ifdef __cplusplus 14294} 14295#endif 14296 14297int 14298main () 14299{ 14300return f != shl_load; 14301 ; 14302 return 0; 14303} 14304_ACEOF 14305rm -f conftest.$ac_objext conftest$ac_exeext 14306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14307 (eval $ac_link) 2>conftest.er1 14308 ac_status=$? 14309 grep -v '^ *+' conftest.er1 >conftest.err 14310 rm -f conftest.er1 14311 cat conftest.err >&5 14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14313 (exit $ac_status); } && 14314 { ac_try='test -z "$ac_cxx_werror_flag" 14315 || test ! -s conftest.err' 14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14317 (eval $ac_try) 2>&5 14318 ac_status=$? 14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14320 (exit $ac_status); }; } && 14321 { ac_try='test -s conftest$ac_exeext' 14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14323 (eval $ac_try) 2>&5 14324 ac_status=$? 14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14326 (exit $ac_status); }; }; then 14327 ac_cv_func_shl_load=yes 14328else 14329 echo "$as_me: failed program was:" >&5 14330sed 's/^/| /' conftest.$ac_ext >&5 14331 14332ac_cv_func_shl_load=no 14333fi 14334rm -f conftest.err conftest.$ac_objext \ 14335 conftest$ac_exeext conftest.$ac_ext 14336fi 14337echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 14338echo "${ECHO_T}$ac_cv_func_shl_load" >&6 14339if test $ac_cv_func_shl_load = yes; then 14340 lt_cv_dlopen="shl_load" 14341else 14342 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 14343echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 14344if test "${ac_cv_lib_dld_shl_load+set}" = set; then 14345 echo $ECHO_N "(cached) $ECHO_C" >&6 14346else 14347 ac_check_lib_save_LIBS=$LIBS 14348LIBS="-ldld $LIBS" 14349cat >conftest.$ac_ext <<_ACEOF 14350/* confdefs.h. */ 14351_ACEOF 14352cat confdefs.h >>conftest.$ac_ext 14353cat >>conftest.$ac_ext <<_ACEOF 14354/* end confdefs.h. */ 14355 14356/* Override any gcc2 internal prototype to avoid an error. */ 14357#ifdef __cplusplus 14358extern "C" 14359#endif 14360/* We use char because int might match the return type of a gcc2 14361 builtin and then its argument prototype would still apply. */ 14362char shl_load (); 14363int 14364main () 14365{ 14366shl_load (); 14367 ; 14368 return 0; 14369} 14370_ACEOF 14371rm -f conftest.$ac_objext conftest$ac_exeext 14372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14373 (eval $ac_link) 2>conftest.er1 14374 ac_status=$? 14375 grep -v '^ *+' conftest.er1 >conftest.err 14376 rm -f conftest.er1 14377 cat conftest.err >&5 14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14379 (exit $ac_status); } && 14380 { ac_try='test -z "$ac_cxx_werror_flag" 14381 || test ! -s conftest.err' 14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14383 (eval $ac_try) 2>&5 14384 ac_status=$? 14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14386 (exit $ac_status); }; } && 14387 { ac_try='test -s conftest$ac_exeext' 14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14389 (eval $ac_try) 2>&5 14390 ac_status=$? 14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14392 (exit $ac_status); }; }; then 14393 ac_cv_lib_dld_shl_load=yes 14394else 14395 echo "$as_me: failed program was:" >&5 14396sed 's/^/| /' conftest.$ac_ext >&5 14397 14398ac_cv_lib_dld_shl_load=no 14399fi 14400rm -f conftest.err conftest.$ac_objext \ 14401 conftest$ac_exeext conftest.$ac_ext 14402LIBS=$ac_check_lib_save_LIBS 14403fi 14404echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 14405echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 14406if test $ac_cv_lib_dld_shl_load = yes; then 14407 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 14408else 14409 echo "$as_me:$LINENO: checking for dlopen" >&5 14410echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 14411if test "${ac_cv_func_dlopen+set}" = set; then 14412 echo $ECHO_N "(cached) $ECHO_C" >&6 14413else 14414 cat >conftest.$ac_ext <<_ACEOF 14415/* confdefs.h. */ 14416_ACEOF 14417cat confdefs.h >>conftest.$ac_ext 14418cat >>conftest.$ac_ext <<_ACEOF 14419/* end confdefs.h. */ 14420/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 14421 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14422#define dlopen innocuous_dlopen 14423 14424/* System header to define __stub macros and hopefully few prototypes, 14425 which can conflict with char dlopen (); below. 14426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14427 <limits.h> exists even on freestanding compilers. */ 14428 14429#ifdef __STDC__ 14430# include <limits.h> 14431#else 14432# include <assert.h> 14433#endif 14434 14435#undef dlopen 14436 14437/* Override any gcc2 internal prototype to avoid an error. */ 14438#ifdef __cplusplus 14439extern "C" 14440{ 14441#endif 14442/* We use char because int might match the return type of a gcc2 14443 builtin and then its argument prototype would still apply. */ 14444char dlopen (); 14445/* The GNU C library defines this for functions which it implements 14446 to always fail with ENOSYS. Some functions are actually named 14447 something starting with __ and the normal name is an alias. */ 14448#if defined (__stub_dlopen) || defined (__stub___dlopen) 14449choke me 14450#else 14451char (*f) () = dlopen; 14452#endif 14453#ifdef __cplusplus 14454} 14455#endif 14456 14457int 14458main () 14459{ 14460return f != dlopen; 14461 ; 14462 return 0; 14463} 14464_ACEOF 14465rm -f conftest.$ac_objext conftest$ac_exeext 14466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14467 (eval $ac_link) 2>conftest.er1 14468 ac_status=$? 14469 grep -v '^ *+' conftest.er1 >conftest.err 14470 rm -f conftest.er1 14471 cat conftest.err >&5 14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14473 (exit $ac_status); } && 14474 { ac_try='test -z "$ac_cxx_werror_flag" 14475 || test ! -s conftest.err' 14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14477 (eval $ac_try) 2>&5 14478 ac_status=$? 14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14480 (exit $ac_status); }; } && 14481 { ac_try='test -s conftest$ac_exeext' 14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14483 (eval $ac_try) 2>&5 14484 ac_status=$? 14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14486 (exit $ac_status); }; }; then 14487 ac_cv_func_dlopen=yes 14488else 14489 echo "$as_me: failed program was:" >&5 14490sed 's/^/| /' conftest.$ac_ext >&5 14491 14492ac_cv_func_dlopen=no 14493fi 14494rm -f conftest.err conftest.$ac_objext \ 14495 conftest$ac_exeext conftest.$ac_ext 14496fi 14497echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 14498echo "${ECHO_T}$ac_cv_func_dlopen" >&6 14499if test $ac_cv_func_dlopen = yes; then 14500 lt_cv_dlopen="dlopen" 14501else 14502 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14503echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14504if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14505 echo $ECHO_N "(cached) $ECHO_C" >&6 14506else 14507 ac_check_lib_save_LIBS=$LIBS 14508LIBS="-ldl $LIBS" 14509cat >conftest.$ac_ext <<_ACEOF 14510/* confdefs.h. */ 14511_ACEOF 14512cat confdefs.h >>conftest.$ac_ext 14513cat >>conftest.$ac_ext <<_ACEOF 14514/* end confdefs.h. */ 14515 14516/* Override any gcc2 internal prototype to avoid an error. */ 14517#ifdef __cplusplus 14518extern "C" 14519#endif 14520/* We use char because int might match the return type of a gcc2 14521 builtin and then its argument prototype would still apply. */ 14522char dlopen (); 14523int 14524main () 14525{ 14526dlopen (); 14527 ; 14528 return 0; 14529} 14530_ACEOF 14531rm -f conftest.$ac_objext conftest$ac_exeext 14532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14533 (eval $ac_link) 2>conftest.er1 14534 ac_status=$? 14535 grep -v '^ *+' conftest.er1 >conftest.err 14536 rm -f conftest.er1 14537 cat conftest.err >&5 14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14539 (exit $ac_status); } && 14540 { ac_try='test -z "$ac_cxx_werror_flag" 14541 || test ! -s conftest.err' 14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14543 (eval $ac_try) 2>&5 14544 ac_status=$? 14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14546 (exit $ac_status); }; } && 14547 { ac_try='test -s conftest$ac_exeext' 14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14549 (eval $ac_try) 2>&5 14550 ac_status=$? 14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14552 (exit $ac_status); }; }; then 14553 ac_cv_lib_dl_dlopen=yes 14554else 14555 echo "$as_me: failed program was:" >&5 14556sed 's/^/| /' conftest.$ac_ext >&5 14557 14558ac_cv_lib_dl_dlopen=no 14559fi 14560rm -f conftest.err conftest.$ac_objext \ 14561 conftest$ac_exeext conftest.$ac_ext 14562LIBS=$ac_check_lib_save_LIBS 14563fi 14564echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14565echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14566if test $ac_cv_lib_dl_dlopen = yes; then 14567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14568else 14569 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 14570echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 14571if test "${ac_cv_lib_svld_dlopen+set}" = set; then 14572 echo $ECHO_N "(cached) $ECHO_C" >&6 14573else 14574 ac_check_lib_save_LIBS=$LIBS 14575LIBS="-lsvld $LIBS" 14576cat >conftest.$ac_ext <<_ACEOF 14577/* confdefs.h. */ 14578_ACEOF 14579cat confdefs.h >>conftest.$ac_ext 14580cat >>conftest.$ac_ext <<_ACEOF 14581/* end confdefs.h. */ 14582 14583/* Override any gcc2 internal prototype to avoid an error. */ 14584#ifdef __cplusplus 14585extern "C" 14586#endif 14587/* We use char because int might match the return type of a gcc2 14588 builtin and then its argument prototype would still apply. */ 14589char dlopen (); 14590int 14591main () 14592{ 14593dlopen (); 14594 ; 14595 return 0; 14596} 14597_ACEOF 14598rm -f conftest.$ac_objext conftest$ac_exeext 14599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14600 (eval $ac_link) 2>conftest.er1 14601 ac_status=$? 14602 grep -v '^ *+' conftest.er1 >conftest.err 14603 rm -f conftest.er1 14604 cat conftest.err >&5 14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14606 (exit $ac_status); } && 14607 { ac_try='test -z "$ac_cxx_werror_flag" 14608 || test ! -s conftest.err' 14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14610 (eval $ac_try) 2>&5 14611 ac_status=$? 14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14613 (exit $ac_status); }; } && 14614 { ac_try='test -s conftest$ac_exeext' 14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14616 (eval $ac_try) 2>&5 14617 ac_status=$? 14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14619 (exit $ac_status); }; }; then 14620 ac_cv_lib_svld_dlopen=yes 14621else 14622 echo "$as_me: failed program was:" >&5 14623sed 's/^/| /' conftest.$ac_ext >&5 14624 14625ac_cv_lib_svld_dlopen=no 14626fi 14627rm -f conftest.err conftest.$ac_objext \ 14628 conftest$ac_exeext conftest.$ac_ext 14629LIBS=$ac_check_lib_save_LIBS 14630fi 14631echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 14632echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 14633if test $ac_cv_lib_svld_dlopen = yes; then 14634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 14635else 14636 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 14637echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 14638if test "${ac_cv_lib_dld_dld_link+set}" = set; then 14639 echo $ECHO_N "(cached) $ECHO_C" >&6 14640else 14641 ac_check_lib_save_LIBS=$LIBS 14642LIBS="-ldld $LIBS" 14643cat >conftest.$ac_ext <<_ACEOF 14644/* confdefs.h. */ 14645_ACEOF 14646cat confdefs.h >>conftest.$ac_ext 14647cat >>conftest.$ac_ext <<_ACEOF 14648/* end confdefs.h. */ 14649 14650/* Override any gcc2 internal prototype to avoid an error. */ 14651#ifdef __cplusplus 14652extern "C" 14653#endif 14654/* We use char because int might match the return type of a gcc2 14655 builtin and then its argument prototype would still apply. */ 14656char dld_link (); 14657int 14658main () 14659{ 14660dld_link (); 14661 ; 14662 return 0; 14663} 14664_ACEOF 14665rm -f conftest.$ac_objext conftest$ac_exeext 14666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14667 (eval $ac_link) 2>conftest.er1 14668 ac_status=$? 14669 grep -v '^ *+' conftest.er1 >conftest.err 14670 rm -f conftest.er1 14671 cat conftest.err >&5 14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14673 (exit $ac_status); } && 14674 { ac_try='test -z "$ac_cxx_werror_flag" 14675 || test ! -s conftest.err' 14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14677 (eval $ac_try) 2>&5 14678 ac_status=$? 14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14680 (exit $ac_status); }; } && 14681 { ac_try='test -s conftest$ac_exeext' 14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14683 (eval $ac_try) 2>&5 14684 ac_status=$? 14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14686 (exit $ac_status); }; }; then 14687 ac_cv_lib_dld_dld_link=yes 14688else 14689 echo "$as_me: failed program was:" >&5 14690sed 's/^/| /' conftest.$ac_ext >&5 14691 14692ac_cv_lib_dld_dld_link=no 14693fi 14694rm -f conftest.err conftest.$ac_objext \ 14695 conftest$ac_exeext conftest.$ac_ext 14696LIBS=$ac_check_lib_save_LIBS 14697fi 14698echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 14699echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 14700if test $ac_cv_lib_dld_dld_link = yes; then 14701 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 14702fi 14703 14704 14705fi 14706 14707 14708fi 14709 14710 14711fi 14712 14713 14714fi 14715 14716 14717fi 14718 14719 ;; 14720 esac 14721 14722 if test "x$lt_cv_dlopen" != xno; then 14723 enable_dlopen=yes 14724 else 14725 enable_dlopen=no 14726 fi 14727 14728 case $lt_cv_dlopen in 14729 dlopen) 14730 save_CPPFLAGS="$CPPFLAGS" 14731 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14732 14733 save_LDFLAGS="$LDFLAGS" 14734 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14735 14736 save_LIBS="$LIBS" 14737 LIBS="$lt_cv_dlopen_libs $LIBS" 14738 14739 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 14740echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 14741if test "${lt_cv_dlopen_self+set}" = set; then 14742 echo $ECHO_N "(cached) $ECHO_C" >&6 14743else 14744 if test "$cross_compiling" = yes; then : 14745 lt_cv_dlopen_self=cross 14746else 14747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14748 lt_status=$lt_dlunknown 14749 cat > conftest.$ac_ext <<EOF 14750#line 14750 "configure" 14751#include "confdefs.h" 14752 14753#if HAVE_DLFCN_H 14754#include <dlfcn.h> 14755#endif 14756 14757#include <stdio.h> 14758 14759#ifdef RTLD_GLOBAL 14760# define LT_DLGLOBAL RTLD_GLOBAL 14761#else 14762# ifdef DL_GLOBAL 14763# define LT_DLGLOBAL DL_GLOBAL 14764# else 14765# define LT_DLGLOBAL 0 14766# endif 14767#endif 14768 14769/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14770 find out it does not work in some platform. */ 14771#ifndef LT_DLLAZY_OR_NOW 14772# ifdef RTLD_LAZY 14773# define LT_DLLAZY_OR_NOW RTLD_LAZY 14774# else 14775# ifdef DL_LAZY 14776# define LT_DLLAZY_OR_NOW DL_LAZY 14777# else 14778# ifdef RTLD_NOW 14779# define LT_DLLAZY_OR_NOW RTLD_NOW 14780# else 14781# ifdef DL_NOW 14782# define LT_DLLAZY_OR_NOW DL_NOW 14783# else 14784# define LT_DLLAZY_OR_NOW 0 14785# endif 14786# endif 14787# endif 14788# endif 14789#endif 14790 14791#ifdef __cplusplus 14792extern "C" void exit (int); 14793#endif 14794 14795void fnord() { int i=42;} 14796int main () 14797{ 14798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14799 int status = $lt_dlunknown; 14800 14801 if (self) 14802 { 14803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14804 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14805 /* dlclose (self); */ 14806 } 14807 14808 exit (status); 14809} 14810EOF 14811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14812 (eval $ac_link) 2>&5 14813 ac_status=$? 14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14815 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 14816 (./conftest; exit; ) >&5 2>/dev/null 14817 lt_status=$? 14818 case x$lt_status in 14819 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14820 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14821 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 14822 esac 14823 else : 14824 # compilation failed 14825 lt_cv_dlopen_self=no 14826 fi 14827fi 14828rm -fr conftest* 14829 14830 14831fi 14832echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 14833echo "${ECHO_T}$lt_cv_dlopen_self" >&6 14834 14835 if test "x$lt_cv_dlopen_self" = xyes; then 14836 LDFLAGS="$LDFLAGS $link_static_flag" 14837 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 14838echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 14839if test "${lt_cv_dlopen_self_static+set}" = set; then 14840 echo $ECHO_N "(cached) $ECHO_C" >&6 14841else 14842 if test "$cross_compiling" = yes; then : 14843 lt_cv_dlopen_self_static=cross 14844else 14845 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14846 lt_status=$lt_dlunknown 14847 cat > conftest.$ac_ext <<EOF 14848#line 14848 "configure" 14849#include "confdefs.h" 14850 14851#if HAVE_DLFCN_H 14852#include <dlfcn.h> 14853#endif 14854 14855#include <stdio.h> 14856 14857#ifdef RTLD_GLOBAL 14858# define LT_DLGLOBAL RTLD_GLOBAL 14859#else 14860# ifdef DL_GLOBAL 14861# define LT_DLGLOBAL DL_GLOBAL 14862# else 14863# define LT_DLGLOBAL 0 14864# endif 14865#endif 14866 14867/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14868 find out it does not work in some platform. */ 14869#ifndef LT_DLLAZY_OR_NOW 14870# ifdef RTLD_LAZY 14871# define LT_DLLAZY_OR_NOW RTLD_LAZY 14872# else 14873# ifdef DL_LAZY 14874# define LT_DLLAZY_OR_NOW DL_LAZY 14875# else 14876# ifdef RTLD_NOW 14877# define LT_DLLAZY_OR_NOW RTLD_NOW 14878# else 14879# ifdef DL_NOW 14880# define LT_DLLAZY_OR_NOW DL_NOW 14881# else 14882# define LT_DLLAZY_OR_NOW 0 14883# endif 14884# endif 14885# endif 14886# endif 14887#endif 14888 14889#ifdef __cplusplus 14890extern "C" void exit (int); 14891#endif 14892 14893void fnord() { int i=42;} 14894int main () 14895{ 14896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14897 int status = $lt_dlunknown; 14898 14899 if (self) 14900 { 14901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14902 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14903 /* dlclose (self); */ 14904 } 14905 14906 exit (status); 14907} 14908EOF 14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14910 (eval $ac_link) 2>&5 14911 ac_status=$? 14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14913 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 14914 (./conftest; exit; ) >&5 2>/dev/null 14915 lt_status=$? 14916 case x$lt_status in 14917 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14918 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14919 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 14920 esac 14921 else : 14922 # compilation failed 14923 lt_cv_dlopen_self_static=no 14924 fi 14925fi 14926rm -fr conftest* 14927 14928 14929fi 14930echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 14931echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 14932 fi 14933 14934 CPPFLAGS="$save_CPPFLAGS" 14935 LDFLAGS="$save_LDFLAGS" 14936 LIBS="$save_LIBS" 14937 ;; 14938 esac 14939 14940 case $lt_cv_dlopen_self in 14941 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14942 *) enable_dlopen_self=unknown ;; 14943 esac 14944 14945 case $lt_cv_dlopen_self_static in 14946 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14947 *) enable_dlopen_self_static=unknown ;; 14948 esac 14949fi 14950 14951 14952# The else clause should only fire when bootstrapping the 14953# libtool distribution, otherwise you forgot to ship ltmain.sh 14954# with your package, and you will get complaints that there are 14955# no rules to generate ltmain.sh. 14956if test -f "$ltmain"; then 14957 # See if we are running on zsh, and set the options which allow our commands through 14958 # without removal of \ escapes. 14959 if test -n "${ZSH_VERSION+set}" ; then 14960 setopt NO_GLOB_SUBST 14961 fi 14962 # Now quote all the things that may contain metacharacters while being 14963 # careful not to overquote the AC_SUBSTed values. We take copies of the 14964 # variables and quote the copies for generation of the libtool script. 14965 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 14966 SED SHELL STRIP \ 14967 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14968 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14969 deplibs_check_method reload_flag reload_cmds need_locks \ 14970 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14971 lt_cv_sys_global_symbol_to_c_name_address \ 14972 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14973 old_postinstall_cmds old_postuninstall_cmds \ 14974 compiler_CXX \ 14975 CC_CXX \ 14976 LD_CXX \ 14977 lt_prog_compiler_wl_CXX \ 14978 lt_prog_compiler_pic_CXX \ 14979 lt_prog_compiler_static_CXX \ 14980 lt_prog_compiler_no_builtin_flag_CXX \ 14981 export_dynamic_flag_spec_CXX \ 14982 thread_safe_flag_spec_CXX \ 14983 whole_archive_flag_spec_CXX \ 14984 enable_shared_with_static_runtimes_CXX \ 14985 old_archive_cmds_CXX \ 14986 old_archive_from_new_cmds_CXX \ 14987 predep_objects_CXX \ 14988 postdep_objects_CXX \ 14989 predeps_CXX \ 14990 postdeps_CXX \ 14991 compiler_lib_search_path_CXX \ 14992 archive_cmds_CXX \ 14993 archive_expsym_cmds_CXX \ 14994 postinstall_cmds_CXX \ 14995 postuninstall_cmds_CXX \ 14996 old_archive_from_expsyms_cmds_CXX \ 14997 allow_undefined_flag_CXX \ 14998 no_undefined_flag_CXX \ 14999 export_symbols_cmds_CXX \ 15000 hardcode_libdir_flag_spec_CXX \ 15001 hardcode_libdir_flag_spec_ld_CXX \ 15002 hardcode_libdir_separator_CXX \ 15003 hardcode_automatic_CXX \ 15004 module_cmds_CXX \ 15005 module_expsym_cmds_CXX \ 15006 lt_cv_prog_compiler_c_o_CXX \ 15007 exclude_expsyms_CXX \ 15008 include_expsyms_CXX; do 15009 15010 case $var in 15011 old_archive_cmds_CXX | \ 15012 old_archive_from_new_cmds_CXX | \ 15013 archive_cmds_CXX | \ 15014 archive_expsym_cmds_CXX | \ 15015 module_cmds_CXX | \ 15016 module_expsym_cmds_CXX | \ 15017 old_archive_from_expsyms_cmds_CXX | \ 15018 export_symbols_cmds_CXX | \ 15019 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15020 postinstall_cmds | postuninstall_cmds | \ 15021 old_postinstall_cmds | old_postuninstall_cmds | \ 15022 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15023 # Double-quote double-evaled strings. 15024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15025 ;; 15026 *) 15027 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15028 ;; 15029 esac 15030 done 15031 15032 case $lt_echo in 15033 *'\$0 --fallback-echo"') 15034 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15035 ;; 15036 esac 15037 15038cfgfile="$ofile" 15039 15040 cat <<__EOF__ >> "$cfgfile" 15041# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15042 15043# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15044 15045# Shell to use when invoking shell scripts. 15046SHELL=$lt_SHELL 15047 15048# Whether or not to build shared libraries. 15049build_libtool_libs=$enable_shared 15050 15051# Whether or not to build static libraries. 15052build_old_libs=$enable_static 15053 15054# Whether or not to add -lc for building shared libraries. 15055build_libtool_need_lc=$archive_cmds_need_lc_CXX 15056 15057# Whether or not to disallow shared libs when runtime libs are static 15058allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 15059 15060# Whether or not to optimize for fast installation. 15061fast_install=$enable_fast_install 15062 15063# The host system. 15064host_alias=$host_alias 15065host=$host 15066host_os=$host_os 15067 15068# The build system. 15069build_alias=$build_alias 15070build=$build 15071build_os=$build_os 15072 15073# An echo program that does not interpret backslashes. 15074echo=$lt_echo 15075 15076# The archiver. 15077AR=$lt_AR 15078AR_FLAGS=$lt_AR_FLAGS 15079 15080# A C compiler. 15081LTCC=$lt_LTCC 15082 15083# A language-specific compiler. 15084CC=$lt_compiler_CXX 15085 15086# Is the compiler the GNU C compiler? 15087with_gcc=$GCC_CXX 15088 15089# An ERE matcher. 15090EGREP=$lt_EGREP 15091 15092# The linker used to build libraries. 15093LD=$lt_LD_CXX 15094 15095# Whether we need hard or soft links. 15096LN_S=$lt_LN_S 15097 15098# A BSD-compatible nm program. 15099NM=$lt_NM 15100 15101# A symbol stripping program 15102STRIP=$lt_STRIP 15103 15104# Used to examine libraries when file_magic_cmd begins "file" 15105MAGIC_CMD=$MAGIC_CMD 15106 15107# Used on cygwin: DLL creation program. 15108DLLTOOL="$DLLTOOL" 15109 15110# Used on cygwin: object dumper. 15111OBJDUMP="$OBJDUMP" 15112 15113# Used on cygwin: assembler. 15114AS="$AS" 15115 15116# The name of the directory that contains temporary libtool files. 15117objdir=$objdir 15118 15119# How to create reloadable object files. 15120reload_flag=$lt_reload_flag 15121reload_cmds=$lt_reload_cmds 15122 15123# How to pass a linker flag through the compiler. 15124wl=$lt_lt_prog_compiler_wl_CXX 15125 15126# Object file suffix (normally "o"). 15127objext="$ac_objext" 15128 15129# Old archive suffix (normally "a"). 15130libext="$libext" 15131 15132# Shared library suffix (normally ".so"). 15133shrext_cmds='$shrext_cmds' 15134 15135# Executable file suffix (normally ""). 15136exeext="$exeext" 15137 15138# Additional compiler flags for building library objects. 15139pic_flag=$lt_lt_prog_compiler_pic_CXX 15140pic_mode=$pic_mode 15141 15142# What is the maximum length of a command? 15143max_cmd_len=$lt_cv_sys_max_cmd_len 15144 15145# Does compiler simultaneously support -c and -o options? 15146compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 15147 15148# Must we lock files when doing compilation? 15149need_locks=$lt_need_locks 15150 15151# Do we need the lib prefix for modules? 15152need_lib_prefix=$need_lib_prefix 15153 15154# Do we need a version for libraries? 15155need_version=$need_version 15156 15157# Whether dlopen is supported. 15158dlopen_support=$enable_dlopen 15159 15160# Whether dlopen of programs is supported. 15161dlopen_self=$enable_dlopen_self 15162 15163# Whether dlopen of statically linked programs is supported. 15164dlopen_self_static=$enable_dlopen_self_static 15165 15166# Compiler flag to prevent dynamic linking. 15167link_static_flag=$lt_lt_prog_compiler_static_CXX 15168 15169# Compiler flag to turn off builtin functions. 15170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15171 15172# Compiler flag to allow reflexive dlopens. 15173export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15174 15175# Compiler flag to generate shared objects directly from archives. 15176whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15177 15178# Compiler flag to generate thread-safe objects. 15179thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15180 15181# Library versioning type. 15182version_type=$version_type 15183 15184# Format of library name prefix. 15185libname_spec=$lt_libname_spec 15186 15187# List of archive names. First name is the real one, the rest are links. 15188# The last name is the one that the linker finds with -lNAME. 15189library_names_spec=$lt_library_names_spec 15190 15191# The coded name of the library, if different from the real name. 15192soname_spec=$lt_soname_spec 15193 15194# Commands used to build and install an old-style archive. 15195RANLIB=$lt_RANLIB 15196old_archive_cmds=$lt_old_archive_cmds_CXX 15197old_postinstall_cmds=$lt_old_postinstall_cmds 15198old_postuninstall_cmds=$lt_old_postuninstall_cmds 15199 15200# Create an old-style archive from a shared archive. 15201old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15202 15203# Create a temporary old-style archive to link instead of a shared archive. 15204old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15205 15206# Commands used to build and install a shared archive. 15207archive_cmds=$lt_archive_cmds_CXX 15208archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15209postinstall_cmds=$lt_postinstall_cmds 15210postuninstall_cmds=$lt_postuninstall_cmds 15211 15212# Commands used to build a loadable module (assumed same as above if empty) 15213module_cmds=$lt_module_cmds_CXX 15214module_expsym_cmds=$lt_module_expsym_cmds_CXX 15215 15216# Commands to strip libraries. 15217old_striplib=$lt_old_striplib 15218striplib=$lt_striplib 15219 15220# Dependencies to place before the objects being linked to create a 15221# shared library. 15222predep_objects=$lt_predep_objects_CXX 15223 15224# Dependencies to place after the objects being linked to create a 15225# shared library. 15226postdep_objects=$lt_postdep_objects_CXX 15227 15228# Dependencies to place before the objects being linked to create a 15229# shared library. 15230predeps=$lt_predeps_CXX 15231 15232# Dependencies to place after the objects being linked to create a 15233# shared library. 15234postdeps=$lt_postdeps_CXX 15235 15236# The library search path used internally by the compiler when linking 15237# a shared library. 15238compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15239 15240# Method to check whether dependent libraries are shared objects. 15241deplibs_check_method=$lt_deplibs_check_method 15242 15243# Command to use when deplibs_check_method == file_magic. 15244file_magic_cmd=$lt_file_magic_cmd 15245 15246# Flag that allows shared libraries with undefined symbols to be built. 15247allow_undefined_flag=$lt_allow_undefined_flag_CXX 15248 15249# Flag that forces no undefined symbols. 15250no_undefined_flag=$lt_no_undefined_flag_CXX 15251 15252# Commands used to finish a libtool library installation in a directory. 15253finish_cmds=$lt_finish_cmds 15254 15255# Same as above, but a single script fragment to be evaled but not shown. 15256finish_eval=$lt_finish_eval 15257 15258# Take the output of nm and produce a listing of raw symbols and C names. 15259global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15260 15261# Transform the output of nm in a proper C declaration 15262global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15263 15264# Transform the output of nm in a C name address pair 15265global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15266 15267# This is the shared library runtime path variable. 15268runpath_var=$runpath_var 15269 15270# This is the shared library path variable. 15271shlibpath_var=$shlibpath_var 15272 15273# Is shlibpath searched before the hard-coded library search path? 15274shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15275 15276# How to hardcode a shared library path into an executable. 15277hardcode_action=$hardcode_action_CXX 15278 15279# Whether we should hardcode library paths into libraries. 15280hardcode_into_libs=$hardcode_into_libs 15281 15282# Flag to hardcode \$libdir into a binary during linking. 15283# This must work even if \$libdir does not exist. 15284hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15285 15286# If ld is used when linking, flag to hardcode \$libdir into 15287# a binary during linking. This must work even if \$libdir does 15288# not exist. 15289hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15290 15291# Whether we need a single -rpath flag with a separated argument. 15292hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15293 15294# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15295# resulting binary. 15296hardcode_direct=$hardcode_direct_CXX 15297 15298# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15299# resulting binary. 15300hardcode_minus_L=$hardcode_minus_L_CXX 15301 15302# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15303# the resulting binary. 15304hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15305 15306# Set to yes if building a shared library automatically hardcodes DIR into the library 15307# and all subsequent libraries and executables linked against it. 15308hardcode_automatic=$hardcode_automatic_CXX 15309 15310# Variables whose values should be saved in libtool wrapper scripts and 15311# restored at relink time. 15312variables_saved_for_relink="$variables_saved_for_relink" 15313 15314# Whether libtool must link a program against all its dependency libraries. 15315link_all_deplibs=$link_all_deplibs_CXX 15316 15317# Compile-time system search path for libraries 15318sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15319 15320# Run-time system search path for libraries 15321sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15322 15323# Fix the shell variable \$srcfile for the compiler. 15324fix_srcfile_path="$fix_srcfile_path_CXX" 15325 15326# Set to yes if exported symbols are required. 15327always_export_symbols=$always_export_symbols_CXX 15328 15329# The commands to list exported symbols. 15330export_symbols_cmds=$lt_export_symbols_cmds_CXX 15331 15332# The commands to extract the exported symbol list from a shared archive. 15333extract_expsyms_cmds=$lt_extract_expsyms_cmds 15334 15335# Symbols that should not be listed in the preloaded symbols. 15336exclude_expsyms=$lt_exclude_expsyms_CXX 15337 15338# Symbols that must always be exported. 15339include_expsyms=$lt_include_expsyms_CXX 15340 15341# ### END LIBTOOL TAG CONFIG: $tagname 15342 15343__EOF__ 15344 15345 15346else 15347 # If there is no Makefile yet, we rely on a make rule to execute 15348 # `config.status --recheck' to rerun these tests and create the 15349 # libtool script then. 15350 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15351 if test -f "$ltmain_in"; then 15352 test -f Makefile && make "$ltmain" 15353 fi 15354fi 15355 15356 15357ac_ext=c 15358ac_cpp='$CPP $CPPFLAGS' 15359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15361ac_compiler_gnu=$ac_cv_c_compiler_gnu 15362 15363CC=$lt_save_CC 15364LDCXX=$LD 15365LD=$lt_save_LD 15366GCC=$lt_save_GCC 15367with_gnu_ldcxx=$with_gnu_ld 15368with_gnu_ld=$lt_save_with_gnu_ld 15369lt_cv_path_LDCXX=$lt_cv_path_LD 15370lt_cv_path_LD=$lt_save_path_LD 15371lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15372lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15373 15374 else 15375 tagname="" 15376 fi 15377 ;; 15378 15379 F77) 15380 if test -n "$F77" && test "X$F77" != "Xno"; then 15381 15382ac_ext=f 15383ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15384ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15385ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15386 15387 15388archive_cmds_need_lc_F77=no 15389allow_undefined_flag_F77= 15390always_export_symbols_F77=no 15391archive_expsym_cmds_F77= 15392export_dynamic_flag_spec_F77= 15393hardcode_direct_F77=no 15394hardcode_libdir_flag_spec_F77= 15395hardcode_libdir_flag_spec_ld_F77= 15396hardcode_libdir_separator_F77= 15397hardcode_minus_L_F77=no 15398hardcode_automatic_F77=no 15399module_cmds_F77= 15400module_expsym_cmds_F77= 15401link_all_deplibs_F77=unknown 15402old_archive_cmds_F77=$old_archive_cmds 15403no_undefined_flag_F77= 15404whole_archive_flag_spec_F77= 15405enable_shared_with_static_runtimes_F77=no 15406 15407# Source file extension for f77 test sources. 15408ac_ext=f 15409 15410# Object file extension for compiled f77 test sources. 15411objext=o 15412objext_F77=$objext 15413 15414# Code to be used in simple compile tests 15415lt_simple_compile_test_code=" subroutine t\n return\n end\n" 15416 15417# Code to be used in simple link tests 15418lt_simple_link_test_code=" program t\n end\n" 15419 15420# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15421 15422# If no C compiler was specified, use CC. 15423LTCC=${LTCC-"$CC"} 15424 15425# Allow CC to be a program name with arguments. 15426compiler=$CC 15427 15428 15429# save warnings/boilerplate of simple test code 15430ac_outfile=conftest.$ac_objext 15431printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15432eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15433_lt_compiler_boilerplate=`cat conftest.err` 15434$rm conftest* 15435 15436ac_outfile=conftest.$ac_objext 15437printf "$lt_simple_link_test_code" >conftest.$ac_ext 15438eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15439_lt_linker_boilerplate=`cat conftest.err` 15440$rm conftest* 15441 15442 15443# Allow CC to be a program name with arguments. 15444lt_save_CC="$CC" 15445CC=${F77-"f77"} 15446compiler=$CC 15447compiler_F77=$CC 15448for cc_temp in $compiler""; do 15449 case $cc_temp in 15450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15452 \-*) ;; 15453 *) break;; 15454 esac 15455done 15456cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15457 15458 15459echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15460echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 15461echo "$as_me:$LINENO: result: $can_build_shared" >&5 15462echo "${ECHO_T}$can_build_shared" >&6 15463 15464echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15465echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 15466test "$can_build_shared" = "no" && enable_shared=no 15467 15468# On AIX, shared libraries and static libraries use the same namespace, and 15469# are all built from PIC. 15470case $host_os in 15471aix3*) 15472 test "$enable_shared" = yes && enable_static=no 15473 if test -n "$RANLIB"; then 15474 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15475 postinstall_cmds='$RANLIB $lib' 15476 fi 15477 ;; 15478aix4* | aix5*) 15479 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15480 test "$enable_shared" = yes && enable_static=no 15481 fi 15482 ;; 15483esac 15484echo "$as_me:$LINENO: result: $enable_shared" >&5 15485echo "${ECHO_T}$enable_shared" >&6 15486 15487echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15488echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 15489# Make sure either enable_shared or enable_static is yes. 15490test "$enable_shared" = yes || enable_static=yes 15491echo "$as_me:$LINENO: result: $enable_static" >&5 15492echo "${ECHO_T}$enable_static" >&6 15493 15494test "$ld_shlibs_F77" = no && can_build_shared=no 15495 15496GCC_F77="$G77" 15497LD_F77="$LD" 15498 15499lt_prog_compiler_wl_F77= 15500lt_prog_compiler_pic_F77= 15501lt_prog_compiler_static_F77= 15502 15503echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15504echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15505 15506 if test "$GCC" = yes; then 15507 lt_prog_compiler_wl_F77='-Wl,' 15508 lt_prog_compiler_static_F77='-static' 15509 15510 case $host_os in 15511 aix*) 15512 # All AIX code is PIC. 15513 if test "$host_cpu" = ia64; then 15514 # AIX 5 now supports IA64 processor 15515 lt_prog_compiler_static_F77='-Bstatic' 15516 fi 15517 ;; 15518 15519 amigaos*) 15520 # FIXME: we need at least 68020 code to build shared libraries, but 15521 # adding the `-m68020' flag to GCC prevents building anything better, 15522 # like `-m68040'. 15523 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15524 ;; 15525 15526 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15527 # PIC is the default for these OSes. 15528 ;; 15529 15530 mingw* | pw32* | os2*) 15531 # This hack is so that the source file can tell whether it is being 15532 # built for inclusion in a dll (and should export symbols for example). 15533 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15534 ;; 15535 15536 darwin* | rhapsody*) 15537 # PIC is the default on this platform 15538 # Common symbols not allowed in MH_DYLIB files 15539 lt_prog_compiler_pic_F77='-fno-common' 15540 ;; 15541 15542 msdosdjgpp*) 15543 # Just because we use GCC doesn't mean we suddenly get shared libraries 15544 # on systems that don't support them. 15545 lt_prog_compiler_can_build_shared_F77=no 15546 enable_shared=no 15547 ;; 15548 15549 sysv4*MP*) 15550 if test -d /usr/nec; then 15551 lt_prog_compiler_pic_F77=-Kconform_pic 15552 fi 15553 ;; 15554 15555 hpux*) 15556 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15557 # not for PA HP-UX. 15558 case $host_cpu in 15559 hppa*64*|ia64*) 15560 # +Z the default 15561 ;; 15562 *) 15563 lt_prog_compiler_pic_F77='-fPIC' 15564 ;; 15565 esac 15566 ;; 15567 15568 *) 15569 lt_prog_compiler_pic_F77='-fPIC' 15570 ;; 15571 esac 15572 else 15573 # PORTME Check for flag to pass linker flags through the system compiler. 15574 case $host_os in 15575 aix*) 15576 lt_prog_compiler_wl_F77='-Wl,' 15577 if test "$host_cpu" = ia64; then 15578 # AIX 5 now supports IA64 processor 15579 lt_prog_compiler_static_F77='-Bstatic' 15580 else 15581 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15582 fi 15583 ;; 15584 darwin*) 15585 # PIC is the default on this platform 15586 # Common symbols not allowed in MH_DYLIB files 15587 case $cc_basename in 15588 xlc*) 15589 lt_prog_compiler_pic_F77='-qnocommon' 15590 lt_prog_compiler_wl_F77='-Wl,' 15591 ;; 15592 esac 15593 ;; 15594 15595 mingw* | pw32* | os2*) 15596 # This hack is so that the source file can tell whether it is being 15597 # built for inclusion in a dll (and should export symbols for example). 15598 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15599 ;; 15600 15601 hpux9* | hpux10* | hpux11*) 15602 lt_prog_compiler_wl_F77='-Wl,' 15603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15604 # not for PA HP-UX. 15605 case $host_cpu in 15606 hppa*64*|ia64*) 15607 # +Z the default 15608 ;; 15609 *) 15610 lt_prog_compiler_pic_F77='+Z' 15611 ;; 15612 esac 15613 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15614 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15615 ;; 15616 15617 irix5* | irix6* | nonstopux*) 15618 lt_prog_compiler_wl_F77='-Wl,' 15619 # PIC (with -KPIC) is the default. 15620 lt_prog_compiler_static_F77='-non_shared' 15621 ;; 15622 15623 newsos6) 15624 lt_prog_compiler_pic_F77='-KPIC' 15625 lt_prog_compiler_static_F77='-Bstatic' 15626 ;; 15627 15628 linux*) 15629 case $cc_basename in 15630 icc* | ecc*) 15631 lt_prog_compiler_wl_F77='-Wl,' 15632 lt_prog_compiler_pic_F77='-KPIC' 15633 lt_prog_compiler_static_F77='-static' 15634 ;; 15635 pgcc* | pgf77* | pgf90* | pgf95*) 15636 # Portland Group compilers (*not* the Pentium gcc compiler, 15637 # which looks to be a dead project) 15638 lt_prog_compiler_wl_F77='-Wl,' 15639 lt_prog_compiler_pic_F77='-fpic' 15640 lt_prog_compiler_static_F77='-Bstatic' 15641 ;; 15642 ccc*) 15643 lt_prog_compiler_wl_F77='-Wl,' 15644 # All Alpha code is PIC. 15645 lt_prog_compiler_static_F77='-non_shared' 15646 ;; 15647 esac 15648 ;; 15649 15650 osf3* | osf4* | osf5*) 15651 lt_prog_compiler_wl_F77='-Wl,' 15652 # All OSF/1 code is PIC. 15653 lt_prog_compiler_static_F77='-non_shared' 15654 ;; 15655 15656 sco3.2v5*) 15657 lt_prog_compiler_pic_F77='-Kpic' 15658 lt_prog_compiler_static_F77='-dn' 15659 ;; 15660 15661 solaris*) 15662 lt_prog_compiler_pic_F77='-KPIC' 15663 lt_prog_compiler_static_F77='-Bstatic' 15664 case $cc_basename in 15665 f77* | f90* | f95*) 15666 lt_prog_compiler_wl_F77='-Qoption ld ';; 15667 *) 15668 lt_prog_compiler_wl_F77='-Wl,';; 15669 esac 15670 ;; 15671 15672 sunos4*) 15673 lt_prog_compiler_wl_F77='-Qoption ld ' 15674 lt_prog_compiler_pic_F77='-PIC' 15675 lt_prog_compiler_static_F77='-Bstatic' 15676 ;; 15677 15678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15679 lt_prog_compiler_wl_F77='-Wl,' 15680 lt_prog_compiler_pic_F77='-KPIC' 15681 lt_prog_compiler_static_F77='-Bstatic' 15682 ;; 15683 15684 sysv4*MP*) 15685 if test -d /usr/nec ;then 15686 lt_prog_compiler_pic_F77='-Kconform_pic' 15687 lt_prog_compiler_static_F77='-Bstatic' 15688 fi 15689 ;; 15690 15691 unicos*) 15692 lt_prog_compiler_wl_F77='-Wl,' 15693 lt_prog_compiler_can_build_shared_F77=no 15694 ;; 15695 15696 uts4*) 15697 lt_prog_compiler_pic_F77='-pic' 15698 lt_prog_compiler_static_F77='-Bstatic' 15699 ;; 15700 15701 *) 15702 lt_prog_compiler_can_build_shared_F77=no 15703 ;; 15704 esac 15705 fi 15706 15707echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15708echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 15709 15710# 15711# Check to make sure the PIC flag actually works. 15712# 15713if test -n "$lt_prog_compiler_pic_F77"; then 15714 15715echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15716echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 15717if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15718 echo $ECHO_N "(cached) $ECHO_C" >&6 15719else 15720 lt_prog_compiler_pic_works_F77=no 15721 ac_outfile=conftest.$ac_objext 15722 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15723 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15724 # Insert the option either (1) after the last *FLAGS variable, or 15725 # (2) before a word containing "conftest.", or (3) at the end. 15726 # Note that $ac_compile itself does not contain backslashes and begins 15727 # with a dollar sign (not a hyphen), so the echo should work correctly. 15728 # The option is referenced via a variable to avoid confusing sed. 15729 lt_compile=`echo "$ac_compile" | $SED \ 15730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15732 -e 's:$: $lt_compiler_flag:'` 15733 (eval echo "\"\$as_me:15733: $lt_compile\"" >&5) 15734 (eval "$lt_compile" 2>conftest.err) 15735 ac_status=$? 15736 cat conftest.err >&5 15737 echo "$as_me:15737: \$? = $ac_status" >&5 15738 if (exit $ac_status) && test -s "$ac_outfile"; then 15739 # The compiler can only warn and ignore the option if not recognized 15740 # So say no if there are warnings other than the usual output. 15741 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 15742 $SED '/^$/d' conftest.err >conftest.er2 15743 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 15744 lt_prog_compiler_pic_works_F77=yes 15745 fi 15746 fi 15747 $rm conftest* 15748 15749fi 15750echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15751echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 15752 15753if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15754 case $lt_prog_compiler_pic_F77 in 15755 "" | " "*) ;; 15756 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15757 esac 15758else 15759 lt_prog_compiler_pic_F77= 15760 lt_prog_compiler_can_build_shared_F77=no 15761fi 15762 15763fi 15764case $host_os in 15765 # For platforms which do not support PIC, -DPIC is meaningless: 15766 *djgpp*) 15767 lt_prog_compiler_pic_F77= 15768 ;; 15769 *) 15770 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15771 ;; 15772esac 15773 15774echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15775echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15776if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15777 echo $ECHO_N "(cached) $ECHO_C" >&6 15778else 15779 lt_cv_prog_compiler_c_o_F77=no 15780 $rm -r conftest 2>/dev/null 15781 mkdir conftest 15782 cd conftest 15783 mkdir out 15784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15785 15786 lt_compiler_flag="-o out/conftest2.$ac_objext" 15787 # Insert the option either (1) after the last *FLAGS variable, or 15788 # (2) before a word containing "conftest.", or (3) at the end. 15789 # Note that $ac_compile itself does not contain backslashes and begins 15790 # with a dollar sign (not a hyphen), so the echo should work correctly. 15791 lt_compile=`echo "$ac_compile" | $SED \ 15792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15794 -e 's:$: $lt_compiler_flag:'` 15795 (eval echo "\"\$as_me:15795: $lt_compile\"" >&5) 15796 (eval "$lt_compile" 2>out/conftest.err) 15797 ac_status=$? 15798 cat out/conftest.err >&5 15799 echo "$as_me:15799: \$? = $ac_status" >&5 15800 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15801 then 15802 # The compiler can only warn and ignore the option if not recognized 15803 # So say no if there are warnings 15804 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 15805 $SED '/^$/d' out/conftest.err >out/conftest.er2 15806 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15807 lt_cv_prog_compiler_c_o_F77=yes 15808 fi 15809 fi 15810 chmod u+w . 2>&5 15811 $rm conftest* 15812 # SGI C++ compiler will create directory out/ii_files/ for 15813 # template instantiation 15814 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15815 $rm out/* && rmdir out 15816 cd .. 15817 rmdir conftest 15818 $rm conftest* 15819 15820fi 15821echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15822echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 15823 15824 15825hard_links="nottested" 15826if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15827 # do not overwrite the value of need_locks provided by the user 15828 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15829echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15830 hard_links=yes 15831 $rm conftest* 15832 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15833 touch conftest.a 15834 ln conftest.a conftest.b 2>&5 || hard_links=no 15835 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15836 echo "$as_me:$LINENO: result: $hard_links" >&5 15837echo "${ECHO_T}$hard_links" >&6 15838 if test "$hard_links" = no; then 15839 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15840echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15841 need_locks=warn 15842 fi 15843else 15844 need_locks=no 15845fi 15846 15847echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15848echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15849 15850 runpath_var= 15851 allow_undefined_flag_F77= 15852 enable_shared_with_static_runtimes_F77=no 15853 archive_cmds_F77= 15854 archive_expsym_cmds_F77= 15855 old_archive_From_new_cmds_F77= 15856 old_archive_from_expsyms_cmds_F77= 15857 export_dynamic_flag_spec_F77= 15858 whole_archive_flag_spec_F77= 15859 thread_safe_flag_spec_F77= 15860 hardcode_libdir_flag_spec_F77= 15861 hardcode_libdir_flag_spec_ld_F77= 15862 hardcode_libdir_separator_F77= 15863 hardcode_direct_F77=no 15864 hardcode_minus_L_F77=no 15865 hardcode_shlibpath_var_F77=unsupported 15866 link_all_deplibs_F77=unknown 15867 hardcode_automatic_F77=no 15868 module_cmds_F77= 15869 module_expsym_cmds_F77= 15870 always_export_symbols_F77=no 15871 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15872 # include_expsyms should be a list of space-separated symbols to be *always* 15873 # included in the symbol list 15874 include_expsyms_F77= 15875 # exclude_expsyms can be an extended regexp of symbols to exclude 15876 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15877 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15878 # as well as any symbol that contains `d'. 15879 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15880 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15881 # platforms (ab)use it in PIC code, but their linkers get confused if 15882 # the symbol is explicitly referenced. Since portable code cannot 15883 # rely on this symbol name, it's probably fine to never include it in 15884 # preloaded symbol tables. 15885 extract_expsyms_cmds= 15886 # Just being paranoid about ensuring that cc_basename is set. 15887 for cc_temp in $compiler""; do 15888 case $cc_temp in 15889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15891 \-*) ;; 15892 *) break;; 15893 esac 15894done 15895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15896 15897 case $host_os in 15898 cygwin* | mingw* | pw32*) 15899 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15900 # When not using gcc, we currently assume that we are using 15901 # Microsoft Visual C++. 15902 if test "$GCC" != yes; then 15903 with_gnu_ld=no 15904 fi 15905 ;; 15906 openbsd*) 15907 with_gnu_ld=no 15908 ;; 15909 esac 15910 15911 ld_shlibs_F77=yes 15912 if test "$with_gnu_ld" = yes; then 15913 # If archive_cmds runs LD, not CC, wlarc should be empty 15914 wlarc='${wl}' 15915 15916 # Set some defaults for GNU ld with shared library support. These 15917 # are reset later if shared libraries are not supported. Putting them 15918 # here allows them to be overridden if necessary. 15919 runpath_var=LD_RUN_PATH 15920 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15921 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15922 # ancient GNU ld didn't support --whole-archive et. al. 15923 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15924 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15925 else 15926 whole_archive_flag_spec_F77= 15927 fi 15928 supports_anon_versioning=no 15929 case `$LD -v 2>/dev/null` in 15930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15933 *\ 2.11.*) ;; # other 2.11 versions 15934 *) supports_anon_versioning=yes ;; 15935 esac 15936 15937 # See if GNU ld supports shared libraries. 15938 case $host_os in 15939 aix3* | aix4* | aix5*) 15940 # On AIX/PPC, the GNU linker is very broken 15941 if test "$host_cpu" != ia64; then 15942 ld_shlibs_F77=no 15943 cat <<EOF 1>&2 15944 15945*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15946*** to be unable to reliably create shared libraries on AIX. 15947*** Therefore, libtool is disabling shared libraries support. If you 15948*** really care for shared libraries, you may want to modify your PATH 15949*** so that a non-GNU linker is found, and then restart. 15950 15951EOF 15952 fi 15953 ;; 15954 15955 amigaos*) 15956 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)' 15957 hardcode_libdir_flag_spec_F77='-L$libdir' 15958 hardcode_minus_L_F77=yes 15959 15960 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15961 # that the semantics of dynamic libraries on AmigaOS, at least up 15962 # to version 4, is to share data among multiple programs linked 15963 # with the same dynamic library. Since this doesn't match the 15964 # behavior of shared libraries on other platforms, we can't use 15965 # them. 15966 ld_shlibs_F77=no 15967 ;; 15968 15969 beos*) 15970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15971 allow_undefined_flag_F77=unsupported 15972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15973 # support --undefined. This deserves some investigation. FIXME 15974 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15975 else 15976 ld_shlibs_F77=no 15977 fi 15978 ;; 15979 15980 cygwin* | mingw* | pw32*) 15981 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15982 # as there is no search path for DLLs. 15983 hardcode_libdir_flag_spec_F77='-L$libdir' 15984 allow_undefined_flag_F77=unsupported 15985 always_export_symbols_F77=no 15986 enable_shared_with_static_runtimes_F77=yes 15987 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15988 15989 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15990 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 15991 # If the export-symbols file already is a .def file (1st line 15992 # is EXPORTS), use it as is; otherwise, prepend... 15993 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15994 cp $export_symbols $output_objdir/$soname.def; 15995 else 15996 echo EXPORTS > $output_objdir/$soname.def; 15997 cat $export_symbols >> $output_objdir/$soname.def; 15998 fi~ 15999 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 16000 else 16001 ld_shlibs_F77=no 16002 fi 16003 ;; 16004 16005 linux*) 16006 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16007 tmp_addflag= 16008 case $cc_basename,$host_cpu in 16009 pgcc*) # Portland Group C compiler 16010 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' 16011 tmp_addflag=' $pic_flag' 16012 ;; 16013 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16014 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' 16015 tmp_addflag=' $pic_flag -Mnomain' ;; 16016 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16017 tmp_addflag=' -i_dynamic' ;; 16018 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16019 tmp_addflag=' -i_dynamic -nofor_main' ;; 16020 ifc* | ifort*) # Intel Fortran compiler 16021 tmp_addflag=' -nofor_main' ;; 16022 esac 16023 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16024 16025 if test $supports_anon_versioning = yes; then 16026 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 16027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16028 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16029 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16030 fi 16031 else 16032 ld_shlibs_F77=no 16033 fi 16034 ;; 16035 16036 netbsd*) 16037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16038 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16039 wlarc= 16040 else 16041 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16042 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16043 fi 16044 ;; 16045 16046 solaris* | sysv5*) 16047 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16048 ld_shlibs_F77=no 16049 cat <<EOF 1>&2 16050 16051*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16052*** create shared libraries on Solaris systems. Therefore, libtool 16053*** is disabling shared libraries support. We urge you to upgrade GNU 16054*** binutils to release 2.9.1 or newer. Another option is to modify 16055*** your PATH or compiler configuration so that the native linker is 16056*** used, and then restart. 16057 16058EOF 16059 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16060 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16061 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16062 else 16063 ld_shlibs_F77=no 16064 fi 16065 ;; 16066 16067 sunos4*) 16068 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16069 wlarc= 16070 hardcode_direct_F77=yes 16071 hardcode_shlibpath_var_F77=no 16072 ;; 16073 16074 *) 16075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16076 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16077 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16078 else 16079 ld_shlibs_F77=no 16080 fi 16081 ;; 16082 esac 16083 16084 if test "$ld_shlibs_F77" = no; then 16085 runpath_var= 16086 hardcode_libdir_flag_spec_F77= 16087 export_dynamic_flag_spec_F77= 16088 whole_archive_flag_spec_F77= 16089 fi 16090 else 16091 # PORTME fill in a description of your system's linker (not GNU ld) 16092 case $host_os in 16093 aix3*) 16094 allow_undefined_flag_F77=unsupported 16095 always_export_symbols_F77=yes 16096 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' 16097 # Note: this linker hardcodes the directories in LIBPATH if there 16098 # are no directories specified by -L. 16099 hardcode_minus_L_F77=yes 16100 if test "$GCC" = yes && test -z "$link_static_flag"; then 16101 # Neither direct hardcoding nor static linking is supported with a 16102 # broken collect2. 16103 hardcode_direct_F77=unsupported 16104 fi 16105 ;; 16106 16107 aix4* | aix5*) 16108 if test "$host_cpu" = ia64; then 16109 # On IA64, the linker does run time linking by default, so we don't 16110 # have to do anything special. 16111 aix_use_runtimelinking=no 16112 exp_sym_flag='-Bexport' 16113 no_entry_flag="" 16114 else 16115 # If we're using GNU nm, then we don't want the "-C" option. 16116 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16118 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' 16119 else 16120 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' 16121 fi 16122 aix_use_runtimelinking=no 16123 16124 # Test if we are trying to use run time linking or normal 16125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16126 # need to do runtime linking. 16127 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16128 for ld_flag in $LDFLAGS; do 16129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16130 aix_use_runtimelinking=yes 16131 break 16132 fi 16133 done 16134 esac 16135 16136 exp_sym_flag='-bexport' 16137 no_entry_flag='-bnoentry' 16138 fi 16139 16140 # When large executables or shared objects are built, AIX ld can 16141 # have problems creating the table of contents. If linking a library 16142 # or program results in "error TOC overflow" add -mminimal-toc to 16143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16145 16146 archive_cmds_F77='' 16147 hardcode_direct_F77=yes 16148 hardcode_libdir_separator_F77=':' 16149 link_all_deplibs_F77=yes 16150 16151 if test "$GCC" = yes; then 16152 case $host_os in aix4.[012]|aix4.[012].*) 16153 # We only want to do this on AIX 4.2 and lower, the check 16154 # below for broken collect2 doesn't work under 4.3+ 16155 collect2name=`${CC} -print-prog-name=collect2` 16156 if test -f "$collect2name" && \ 16157 strings "$collect2name" | grep resolve_lib_name >/dev/null 16158 then 16159 # We have reworked collect2 16160 hardcode_direct_F77=yes 16161 else 16162 # We have old collect2 16163 hardcode_direct_F77=unsupported 16164 # It fails to find uninstalled libraries when the uninstalled 16165 # path is not listed in the libpath. Setting hardcode_minus_L 16166 # to unsupported forces relinking 16167 hardcode_minus_L_F77=yes 16168 hardcode_libdir_flag_spec_F77='-L$libdir' 16169 hardcode_libdir_separator_F77= 16170 fi 16171 esac 16172 shared_flag='-shared' 16173 if test "$aix_use_runtimelinking" = yes; then 16174 shared_flag="$shared_flag "'${wl}-G' 16175 fi 16176 else 16177 # not using gcc 16178 if test "$host_cpu" = ia64; then 16179 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16180 # chokes on -Wl,-G. The following line is correct: 16181 shared_flag='-G' 16182 else 16183 if test "$aix_use_runtimelinking" = yes; then 16184 shared_flag='${wl}-G' 16185 else 16186 shared_flag='${wl}-bM:SRE' 16187 fi 16188 fi 16189 fi 16190 16191 # It seems that -bexpall does not export symbols beginning with 16192 # underscore (_), so it is better to generate a list of symbols to export. 16193 always_export_symbols_F77=yes 16194 if test "$aix_use_runtimelinking" = yes; then 16195 # Warning - without using the other runtime loading flags (-brtl), 16196 # -berok will link without error, but may produce a broken library. 16197 allow_undefined_flag_F77='-berok' 16198 # Determine the default libpath from the value encoded in an empty executable. 16199 cat >conftest.$ac_ext <<_ACEOF 16200 program main 16201 16202 end 16203_ACEOF 16204rm -f conftest.$ac_objext conftest$ac_exeext 16205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16206 (eval $ac_link) 2>conftest.er1 16207 ac_status=$? 16208 grep -v '^ *+' conftest.er1 >conftest.err 16209 rm -f conftest.er1 16210 cat conftest.err >&5 16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16212 (exit $ac_status); } && 16213 { ac_try='test -z "$ac_f77_werror_flag" 16214 || test ! -s conftest.err' 16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16216 (eval $ac_try) 2>&5 16217 ac_status=$? 16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16219 (exit $ac_status); }; } && 16220 { ac_try='test -s conftest$ac_exeext' 16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16222 (eval $ac_try) 2>&5 16223 ac_status=$? 16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16225 (exit $ac_status); }; }; then 16226 16227aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16228}'` 16229# Check for a 64-bit object if we didn't find anything. 16230if 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; } 16231}'`; fi 16232else 16233 echo "$as_me: failed program was:" >&5 16234sed 's/^/| /' conftest.$ac_ext >&5 16235 16236fi 16237rm -f conftest.err conftest.$ac_objext \ 16238 conftest$ac_exeext conftest.$ac_ext 16239if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16240 16241 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16242 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16243 else 16244 if test "$host_cpu" = ia64; then 16245 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16246 allow_undefined_flag_F77="-z nodefs" 16247 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16248 else 16249 # Determine the default libpath from the value encoded in an empty executable. 16250 cat >conftest.$ac_ext <<_ACEOF 16251 program main 16252 16253 end 16254_ACEOF 16255rm -f conftest.$ac_objext conftest$ac_exeext 16256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16257 (eval $ac_link) 2>conftest.er1 16258 ac_status=$? 16259 grep -v '^ *+' conftest.er1 >conftest.err 16260 rm -f conftest.er1 16261 cat conftest.err >&5 16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16263 (exit $ac_status); } && 16264 { ac_try='test -z "$ac_f77_werror_flag" 16265 || test ! -s conftest.err' 16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16267 (eval $ac_try) 2>&5 16268 ac_status=$? 16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16270 (exit $ac_status); }; } && 16271 { ac_try='test -s conftest$ac_exeext' 16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16273 (eval $ac_try) 2>&5 16274 ac_status=$? 16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16276 (exit $ac_status); }; }; then 16277 16278aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16279}'` 16280# Check for a 64-bit object if we didn't find anything. 16281if 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; } 16282}'`; fi 16283else 16284 echo "$as_me: failed program was:" >&5 16285sed 's/^/| /' conftest.$ac_ext >&5 16286 16287fi 16288rm -f conftest.err conftest.$ac_objext \ 16289 conftest$ac_exeext conftest.$ac_ext 16290if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16291 16292 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16293 # Warning - without using the other run time loading flags, 16294 # -berok will link without error, but may produce a broken library. 16295 no_undefined_flag_F77=' ${wl}-bernotok' 16296 allow_undefined_flag_F77=' ${wl}-berok' 16297 # -bexpall does not export symbols beginning with underscore (_) 16298 always_export_symbols_F77=yes 16299 # Exported symbols can be pulled into shared objects from archives 16300 whole_archive_flag_spec_F77=' ' 16301 archive_cmds_need_lc_F77=yes 16302 # This is similar to how AIX traditionally builds its shared libraries. 16303 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16304 fi 16305 fi 16306 ;; 16307 16308 amigaos*) 16309 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)' 16310 hardcode_libdir_flag_spec_F77='-L$libdir' 16311 hardcode_minus_L_F77=yes 16312 # see comment about different semantics on the GNU ld section 16313 ld_shlibs_F77=no 16314 ;; 16315 16316 bsdi[45]*) 16317 export_dynamic_flag_spec_F77=-rdynamic 16318 ;; 16319 16320 cygwin* | mingw* | pw32*) 16321 # When not using gcc, we currently assume that we are using 16322 # Microsoft Visual C++. 16323 # hardcode_libdir_flag_spec is actually meaningless, as there is 16324 # no search path for DLLs. 16325 hardcode_libdir_flag_spec_F77=' ' 16326 allow_undefined_flag_F77=unsupported 16327 # Tell ltmain to make .lib files, not .a files. 16328 libext=lib 16329 # Tell ltmain to make .dll files, not .so files. 16330 shrext_cmds=".dll" 16331 # FIXME: Setting linknames here is a bad hack. 16332 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16333 # The linker will automatically build a .lib file if we build a DLL. 16334 old_archive_From_new_cmds_F77='true' 16335 # FIXME: Should let the user specify the lib program. 16336 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 16337 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 16338 enable_shared_with_static_runtimes_F77=yes 16339 ;; 16340 16341 darwin* | rhapsody*) 16342 case $host_os in 16343 rhapsody* | darwin1.[012]) 16344 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 16345 ;; 16346 *) # Darwin 1.3 on 16347 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16348 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16349 else 16350 case ${MACOSX_DEPLOYMENT_TARGET} in 16351 10.[012]) 16352 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16353 ;; 16354 10.*) 16355 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 16356 ;; 16357 esac 16358 fi 16359 ;; 16360 esac 16361 archive_cmds_need_lc_F77=no 16362 hardcode_direct_F77=no 16363 hardcode_automatic_F77=yes 16364 hardcode_shlibpath_var_F77=unsupported 16365 whole_archive_flag_spec_F77='' 16366 link_all_deplibs_F77=yes 16367 if test "$GCC" = yes ; then 16368 output_verbose_link_cmd='echo' 16369 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16370 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16372 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}' 16373 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}' 16374 else 16375 case $cc_basename in 16376 xlc*) 16377 output_verbose_link_cmd='echo' 16378 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16379 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16380 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16381 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}' 16382 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}' 16383 ;; 16384 *) 16385 ld_shlibs_F77=no 16386 ;; 16387 esac 16388 fi 16389 ;; 16390 16391 dgux*) 16392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16393 hardcode_libdir_flag_spec_F77='-L$libdir' 16394 hardcode_shlibpath_var_F77=no 16395 ;; 16396 16397 freebsd1*) 16398 ld_shlibs_F77=no 16399 ;; 16400 16401 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16402 # support. Future versions do this automatically, but an explicit c++rt0.o 16403 # does not break anything, and helps significantly (at the cost of a little 16404 # extra space). 16405 freebsd2.2*) 16406 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16407 hardcode_libdir_flag_spec_F77='-R$libdir' 16408 hardcode_direct_F77=yes 16409 hardcode_shlibpath_var_F77=no 16410 ;; 16411 16412 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16413 freebsd2*) 16414 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16415 hardcode_direct_F77=yes 16416 hardcode_minus_L_F77=yes 16417 hardcode_shlibpath_var_F77=no 16418 ;; 16419 16420 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16421 freebsd* | kfreebsd*-gnu | dragonfly*) 16422 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16423 hardcode_libdir_flag_spec_F77='-R$libdir' 16424 hardcode_direct_F77=yes 16425 hardcode_shlibpath_var_F77=no 16426 ;; 16427 16428 hpux9*) 16429 if test "$GCC" = yes; then 16430 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' 16431 else 16432 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' 16433 fi 16434 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16435 hardcode_libdir_separator_F77=: 16436 hardcode_direct_F77=yes 16437 16438 # hardcode_minus_L: Not really in the search PATH, 16439 # but as the default location of the library. 16440 hardcode_minus_L_F77=yes 16441 export_dynamic_flag_spec_F77='${wl}-E' 16442 ;; 16443 16444 hpux10* | hpux11*) 16445 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16446 case $host_cpu in 16447 hppa*64*|ia64*) 16448 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16449 ;; 16450 *) 16451 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16452 ;; 16453 esac 16454 else 16455 case $host_cpu in 16456 hppa*64*|ia64*) 16457 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16458 ;; 16459 *) 16460 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16461 ;; 16462 esac 16463 fi 16464 if test "$with_gnu_ld" = no; then 16465 case $host_cpu in 16466 hppa*64*) 16467 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16468 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16469 hardcode_libdir_separator_F77=: 16470 hardcode_direct_F77=no 16471 hardcode_shlibpath_var_F77=no 16472 ;; 16473 ia64*) 16474 hardcode_libdir_flag_spec_F77='-L$libdir' 16475 hardcode_direct_F77=no 16476 hardcode_shlibpath_var_F77=no 16477 16478 # hardcode_minus_L: Not really in the search PATH, 16479 # but as the default location of the library. 16480 hardcode_minus_L_F77=yes 16481 ;; 16482 *) 16483 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16484 hardcode_libdir_separator_F77=: 16485 hardcode_direct_F77=yes 16486 export_dynamic_flag_spec_F77='${wl}-E' 16487 16488 # hardcode_minus_L: Not really in the search PATH, 16489 # but as the default location of the library. 16490 hardcode_minus_L_F77=yes 16491 ;; 16492 esac 16493 fi 16494 ;; 16495 16496 irix5* | irix6* | nonstopux*) 16497 if test "$GCC" = yes; then 16498 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' 16499 else 16500 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' 16501 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16502 fi 16503 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16504 hardcode_libdir_separator_F77=: 16505 link_all_deplibs_F77=yes 16506 ;; 16507 16508 netbsd*) 16509 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16510 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16511 else 16512 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16513 fi 16514 hardcode_libdir_flag_spec_F77='-R$libdir' 16515 hardcode_direct_F77=yes 16516 hardcode_shlibpath_var_F77=no 16517 ;; 16518 16519 newsos6) 16520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16521 hardcode_direct_F77=yes 16522 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16523 hardcode_libdir_separator_F77=: 16524 hardcode_shlibpath_var_F77=no 16525 ;; 16526 16527 openbsd*) 16528 hardcode_direct_F77=yes 16529 hardcode_shlibpath_var_F77=no 16530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16531 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16532 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16533 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16534 export_dynamic_flag_spec_F77='${wl}-E' 16535 else 16536 case $host_os in 16537 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16538 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16539 hardcode_libdir_flag_spec_F77='-R$libdir' 16540 ;; 16541 *) 16542 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16543 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16544 ;; 16545 esac 16546 fi 16547 ;; 16548 16549 os2*) 16550 hardcode_libdir_flag_spec_F77='-L$libdir' 16551 hardcode_minus_L_F77=yes 16552 allow_undefined_flag_F77=unsupported 16553 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' 16554 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16555 ;; 16556 16557 osf3*) 16558 if test "$GCC" = yes; then 16559 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16560 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' 16561 else 16562 allow_undefined_flag_F77=' -expect_unresolved \*' 16563 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' 16564 fi 16565 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16566 hardcode_libdir_separator_F77=: 16567 ;; 16568 16569 osf4* | osf5*) # as osf3* with the addition of -msym flag 16570 if test "$GCC" = yes; then 16571 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16572 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' 16573 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16574 else 16575 allow_undefined_flag_F77=' -expect_unresolved \*' 16576 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' 16577 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~ 16578 $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' 16579 16580 # Both c and cxx compiler support -rpath directly 16581 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16582 fi 16583 hardcode_libdir_separator_F77=: 16584 ;; 16585 16586 sco3.2v5*) 16587 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16588 hardcode_shlibpath_var_F77=no 16589 export_dynamic_flag_spec_F77='${wl}-Bexport' 16590 runpath_var=LD_RUN_PATH 16591 hardcode_runpath_var=yes 16592 ;; 16593 16594 solaris*) 16595 no_undefined_flag_F77=' -z text' 16596 if test "$GCC" = yes; then 16597 wlarc='${wl}' 16598 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16599 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16600 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16601 else 16602 wlarc='' 16603 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16604 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16606 fi 16607 hardcode_libdir_flag_spec_F77='-R$libdir' 16608 hardcode_shlibpath_var_F77=no 16609 case $host_os in 16610 solaris2.[0-5] | solaris2.[0-5].*) ;; 16611 *) 16612 # The compiler driver will combine linker options so we 16613 # cannot just pass the convience library names through 16614 # without $wl, iff we do not link with $LD. 16615 # Luckily, gcc supports the same syntax we need for Sun Studio. 16616 # Supported since Solaris 2.6 (maybe 2.5.1?) 16617 case $wlarc in 16618 '') 16619 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16620 *) 16621 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' ;; 16622 esac ;; 16623 esac 16624 link_all_deplibs_F77=yes 16625 ;; 16626 16627 sunos4*) 16628 if test "x$host_vendor" = xsequent; then 16629 # Use $CC to link under sequent, because it throws in some extra .o 16630 # files that make .init and .fini sections work. 16631 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16632 else 16633 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16634 fi 16635 hardcode_libdir_flag_spec_F77='-L$libdir' 16636 hardcode_direct_F77=yes 16637 hardcode_minus_L_F77=yes 16638 hardcode_shlibpath_var_F77=no 16639 ;; 16640 16641 sysv4) 16642 case $host_vendor in 16643 sni) 16644 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16645 hardcode_direct_F77=yes # is this really true??? 16646 ;; 16647 siemens) 16648 ## LD is ld it makes a PLAMLIB 16649 ## CC just makes a GrossModule. 16650 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16651 reload_cmds_F77='$CC -r -o $output$reload_objs' 16652 hardcode_direct_F77=no 16653 ;; 16654 motorola) 16655 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16656 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16657 ;; 16658 esac 16659 runpath_var='LD_RUN_PATH' 16660 hardcode_shlibpath_var_F77=no 16661 ;; 16662 16663 sysv4.3*) 16664 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16665 hardcode_shlibpath_var_F77=no 16666 export_dynamic_flag_spec_F77='-Bexport' 16667 ;; 16668 16669 sysv4*MP*) 16670 if test -d /usr/nec; then 16671 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16672 hardcode_shlibpath_var_F77=no 16673 runpath_var=LD_RUN_PATH 16674 hardcode_runpath_var=yes 16675 ld_shlibs_F77=yes 16676 fi 16677 ;; 16678 16679 sysv4.2uw2*) 16680 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16681 hardcode_direct_F77=yes 16682 hardcode_minus_L_F77=no 16683 hardcode_shlibpath_var_F77=no 16684 hardcode_runpath_var=yes 16685 runpath_var=LD_RUN_PATH 16686 ;; 16687 16688 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16689 no_undefined_flag_F77='${wl}-z ${wl}text' 16690 if test "$GCC" = yes; then 16691 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16692 else 16693 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16694 fi 16695 runpath_var='LD_RUN_PATH' 16696 hardcode_shlibpath_var_F77=no 16697 ;; 16698 16699 sysv5*) 16700 no_undefined_flag_F77=' -z text' 16701 # $CC -shared without GNU ld will not create a library from C++ 16702 # object files and a static libstdc++, better avoid it by now 16703 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16704 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16705 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16706 hardcode_libdir_flag_spec_F77= 16707 hardcode_shlibpath_var_F77=no 16708 runpath_var='LD_RUN_PATH' 16709 ;; 16710 16711 uts4*) 16712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16713 hardcode_libdir_flag_spec_F77='-L$libdir' 16714 hardcode_shlibpath_var_F77=no 16715 ;; 16716 16717 *) 16718 ld_shlibs_F77=no 16719 ;; 16720 esac 16721 fi 16722 16723echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16724echo "${ECHO_T}$ld_shlibs_F77" >&6 16725test "$ld_shlibs_F77" = no && can_build_shared=no 16726 16727variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16728if test "$GCC" = yes; then 16729 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16730fi 16731 16732# 16733# Do we need to explicitly link libc? 16734# 16735case "x$archive_cmds_need_lc_F77" in 16736x|xyes) 16737 # Assume -lc should be added 16738 archive_cmds_need_lc_F77=yes 16739 16740 if test "$enable_shared" = yes && test "$GCC" = yes; then 16741 case $archive_cmds_F77 in 16742 *'~'*) 16743 # FIXME: we may have to deal with multi-command sequences. 16744 ;; 16745 '$CC '*) 16746 # Test whether the compiler implicitly links with -lc since on some 16747 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16748 # to ld, don't add -lc before -lgcc. 16749 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16750echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16751 $rm conftest* 16752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16753 16754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16755 (eval $ac_compile) 2>&5 16756 ac_status=$? 16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16758 (exit $ac_status); } 2>conftest.err; then 16759 soname=conftest 16760 lib=conftest 16761 libobjs=conftest.$ac_objext 16762 deplibs= 16763 wl=$lt_prog_compiler_wl_F77 16764 compiler_flags=-v 16765 linker_flags=-v 16766 verstring= 16767 output_objdir=. 16768 libname=conftest 16769 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16770 allow_undefined_flag_F77= 16771 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16772 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16773 ac_status=$? 16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16775 (exit $ac_status); } 16776 then 16777 archive_cmds_need_lc_F77=no 16778 else 16779 archive_cmds_need_lc_F77=yes 16780 fi 16781 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16782 else 16783 cat conftest.err 1>&5 16784 fi 16785 $rm conftest* 16786 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16787echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16788 ;; 16789 esac 16790 fi 16791 ;; 16792esac 16793 16794echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16795echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16796library_names_spec= 16797libname_spec='lib$name' 16798soname_spec= 16799shrext_cmds=".so" 16800postinstall_cmds= 16801postuninstall_cmds= 16802finish_cmds= 16803finish_eval= 16804shlibpath_var= 16805shlibpath_overrides_runpath=unknown 16806version_type=none 16807dynamic_linker="$host_os ld.so" 16808sys_lib_dlsearch_path_spec="/lib /usr/lib" 16809if test "$GCC" = yes; then 16810 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16811 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16812 # if the path contains ";" then we assume it to be the separator 16813 # otherwise default to the standard path separator (i.e. ":") - it is 16814 # assumed that no part of a normal pathname contains ";" but that should 16815 # okay in the real world where ";" in dirpaths is itself problematic. 16816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16817 else 16818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16819 fi 16820else 16821 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16822fi 16823need_lib_prefix=unknown 16824hardcode_into_libs=no 16825 16826# when you set need_version to no, make sure it does not cause -set_version 16827# flags to be left without arguments 16828need_version=unknown 16829 16830case $host_os in 16831aix3*) 16832 version_type=linux 16833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16834 shlibpath_var=LIBPATH 16835 16836 # AIX 3 has no versioning support, so we append a major version to the name. 16837 soname_spec='${libname}${release}${shared_ext}$major' 16838 ;; 16839 16840aix4* | aix5*) 16841 version_type=linux 16842 need_lib_prefix=no 16843 need_version=no 16844 hardcode_into_libs=yes 16845 if test "$host_cpu" = ia64; then 16846 # AIX 5 supports IA64 16847 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16848 shlibpath_var=LD_LIBRARY_PATH 16849 else 16850 # With GCC up to 2.95.x, collect2 would create an import file 16851 # for dependence libraries. The import file would start with 16852 # the line `#! .'. This would cause the generated library to 16853 # depend on `.', always an invalid library. This was fixed in 16854 # development snapshots of GCC prior to 3.0. 16855 case $host_os in 16856 aix4 | aix4.[01] | aix4.[01].*) 16857 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16858 echo ' yes ' 16859 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16860 : 16861 else 16862 can_build_shared=no 16863 fi 16864 ;; 16865 esac 16866 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16867 # soname into executable. Probably we can add versioning support to 16868 # collect2, so additional links can be useful in future. 16869 if test "$aix_use_runtimelinking" = yes; then 16870 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16871 # instead of lib<name>.a to let people know that these are not 16872 # typical AIX shared libraries. 16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16874 else 16875 # We preserve .a as extension for shared libraries through AIX4.2 16876 # and later when we are not doing run time linking. 16877 library_names_spec='${libname}${release}.a $libname.a' 16878 soname_spec='${libname}${release}${shared_ext}$major' 16879 fi 16880 shlibpath_var=LIBPATH 16881 fi 16882 ;; 16883 16884amigaos*) 16885 library_names_spec='$libname.ixlibrary $libname.a' 16886 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16887 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' 16888 ;; 16889 16890beos*) 16891 library_names_spec='${libname}${shared_ext}' 16892 dynamic_linker="$host_os ld.so" 16893 shlibpath_var=LIBRARY_PATH 16894 ;; 16895 16896bsdi[45]*) 16897 version_type=linux 16898 need_version=no 16899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16900 soname_spec='${libname}${release}${shared_ext}$major' 16901 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16902 shlibpath_var=LD_LIBRARY_PATH 16903 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16904 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16905 # the default ld.so.conf also contains /usr/contrib/lib and 16906 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16907 # libtool to hard-code these into programs 16908 ;; 16909 16910cygwin* | mingw* | pw32*) 16911 version_type=windows 16912 shrext_cmds=".dll" 16913 need_version=no 16914 need_lib_prefix=no 16915 16916 case $GCC,$host_os in 16917 yes,cygwin* | yes,mingw* | yes,pw32*) 16918 library_names_spec='$libname.dll.a' 16919 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16920 postinstall_cmds='base_file=`basename \${file}`~ 16921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16922 dldir=$destdir/`dirname \$dlpath`~ 16923 test -d \$dldir || mkdir -p \$dldir~ 16924 $install_prog $dir/$dlname \$dldir/$dlname~ 16925 chmod a+x \$dldir/$dlname' 16926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16927 dlpath=$dir/\$dldll~ 16928 $rm \$dlpath' 16929 shlibpath_overrides_runpath=yes 16930 16931 case $host_os in 16932 cygwin*) 16933 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16934 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16935 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16936 ;; 16937 mingw*) 16938 # MinGW DLLs use traditional 'lib' prefix 16939 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16940 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16941 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16942 # It is most probably a Windows format PATH printed by 16943 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16944 # path with ; separators, and with drive letters. We can handle the 16945 # drive letters (cygwin fileutils understands them), so leave them, 16946 # especially as we might pass files found there to a mingw objdump, 16947 # which wouldn't understand a cygwinified path. Ahh. 16948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16949 else 16950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16951 fi 16952 ;; 16953 pw32*) 16954 # pw32 DLLs use 'pw' prefix rather than 'lib' 16955 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16956 ;; 16957 esac 16958 ;; 16959 16960 *) 16961 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16962 ;; 16963 esac 16964 dynamic_linker='Win32 ld.exe' 16965 # FIXME: first we should search . and the directory the executable is in 16966 shlibpath_var=PATH 16967 ;; 16968 16969darwin* | rhapsody*) 16970 dynamic_linker="$host_os dyld" 16971 version_type=darwin 16972 need_lib_prefix=no 16973 need_version=no 16974 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16975 soname_spec='${libname}${release}${major}$shared_ext' 16976 shlibpath_overrides_runpath=yes 16977 shlibpath_var=DYLD_LIBRARY_PATH 16978 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16979 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16980 if test "$GCC" = yes; then 16981 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"` 16982 else 16983 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16984 fi 16985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16986 ;; 16987 16988dgux*) 16989 version_type=linux 16990 need_lib_prefix=no 16991 need_version=no 16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16993 soname_spec='${libname}${release}${shared_ext}$major' 16994 shlibpath_var=LD_LIBRARY_PATH 16995 ;; 16996 16997freebsd1*) 16998 dynamic_linker=no 16999 ;; 17000 17001kfreebsd*-gnu) 17002 version_type=linux 17003 need_lib_prefix=no 17004 need_version=no 17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17006 soname_spec='${libname}${release}${shared_ext}$major' 17007 shlibpath_var=LD_LIBRARY_PATH 17008 shlibpath_overrides_runpath=no 17009 hardcode_into_libs=yes 17010 dynamic_linker='GNU ld.so' 17011 ;; 17012 17013freebsd* | dragonfly*) 17014 # DragonFly does not have aout. When/if they implement a new 17015 # versioning mechanism, adjust this. 17016 if test -x /usr/bin/objformat; then 17017 objformat=`/usr/bin/objformat` 17018 else 17019 case $host_os in 17020 freebsd[123]*) objformat=aout ;; 17021 *) objformat=elf ;; 17022 esac 17023 fi 17024 version_type=freebsd-$objformat 17025 case $version_type in 17026 freebsd-elf*) 17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17028 need_version=no 17029 need_lib_prefix=no 17030 ;; 17031 freebsd-*) 17032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17033 need_version=yes 17034 ;; 17035 esac 17036 shlibpath_var=LD_LIBRARY_PATH 17037 case $host_os in 17038 freebsd2*) 17039 shlibpath_overrides_runpath=yes 17040 ;; 17041 freebsd3.[01]* | freebsdelf3.[01]*) 17042 shlibpath_overrides_runpath=yes 17043 hardcode_into_libs=yes 17044 ;; 17045 *) # from 3.2 on 17046 shlibpath_overrides_runpath=no 17047 hardcode_into_libs=yes 17048 ;; 17049 esac 17050 ;; 17051 17052gnu*) 17053 version_type=linux 17054 need_lib_prefix=no 17055 need_version=no 17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17057 soname_spec='${libname}${release}${shared_ext}$major' 17058 shlibpath_var=LD_LIBRARY_PATH 17059 hardcode_into_libs=yes 17060 ;; 17061 17062hpux9* | hpux10* | hpux11*) 17063 # Give a soname corresponding to the major version so that dld.sl refuses to 17064 # link against other versions. 17065 version_type=sunos 17066 need_lib_prefix=no 17067 need_version=no 17068 case $host_cpu in 17069 ia64*) 17070 shrext_cmds='.so' 17071 hardcode_into_libs=yes 17072 dynamic_linker="$host_os dld.so" 17073 shlibpath_var=LD_LIBRARY_PATH 17074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17076 soname_spec='${libname}${release}${shared_ext}$major' 17077 if test "X$HPUX_IA64_MODE" = X32; then 17078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17079 else 17080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17081 fi 17082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17083 ;; 17084 hppa*64*) 17085 shrext_cmds='.sl' 17086 hardcode_into_libs=yes 17087 dynamic_linker="$host_os dld.sl" 17088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17091 soname_spec='${libname}${release}${shared_ext}$major' 17092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17094 ;; 17095 *) 17096 shrext_cmds='.sl' 17097 dynamic_linker="$host_os dld.sl" 17098 shlibpath_var=SHLIB_PATH 17099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17101 soname_spec='${libname}${release}${shared_ext}$major' 17102 ;; 17103 esac 17104 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17105 postinstall_cmds='chmod 555 $lib' 17106 ;; 17107 17108irix5* | irix6* | nonstopux*) 17109 case $host_os in 17110 nonstopux*) version_type=nonstopux ;; 17111 *) 17112 if test "$lt_cv_prog_gnu_ld" = yes; then 17113 version_type=linux 17114 else 17115 version_type=irix 17116 fi ;; 17117 esac 17118 need_lib_prefix=no 17119 need_version=no 17120 soname_spec='${libname}${release}${shared_ext}$major' 17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17122 case $host_os in 17123 irix5* | nonstopux*) 17124 libsuff= shlibsuff= 17125 ;; 17126 *) 17127 case $LD in # libtool.m4 will add one of these switches to LD 17128 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17129 libsuff= shlibsuff= libmagic=32-bit;; 17130 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17131 libsuff=32 shlibsuff=N32 libmagic=N32;; 17132 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17133 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17134 *) libsuff= shlibsuff= libmagic=never-match;; 17135 esac 17136 ;; 17137 esac 17138 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17139 shlibpath_overrides_runpath=no 17140 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17141 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17142 hardcode_into_libs=yes 17143 ;; 17144 17145# No shared lib support for Linux oldld, aout, or coff. 17146linux*oldld* | linux*aout* | linux*coff*) 17147 dynamic_linker=no 17148 ;; 17149 17150# This must be Linux ELF. 17151linux*) 17152 version_type=linux 17153 need_lib_prefix=no 17154 need_version=no 17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17156 soname_spec='${libname}${release}${shared_ext}$major' 17157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17158 shlibpath_var=LD_LIBRARY_PATH 17159 shlibpath_overrides_runpath=no 17160 # This implies no fast_install, which is unacceptable. 17161 # Some rework will be needed to allow for fast_install 17162 # before this can be enabled. 17163 hardcode_into_libs=yes 17164 17165 # Append ld.so.conf contents to the search path 17166 if test -f /etc/ld.so.conf; then 17167 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17168 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17169 fi 17170 17171 # We used to test for /lib/ld.so.1 and disable shared libraries on 17172 # powerpc, because MkLinux only supported shared libraries with the 17173 # GNU dynamic linker. Since this was broken with cross compilers, 17174 # most powerpc-linux boxes support dynamic linking these days and 17175 # people can always --disable-shared, the test was removed, and we 17176 # assume the GNU/Linux dynamic linker is in use. 17177 dynamic_linker='GNU/Linux ld.so' 17178 ;; 17179 17180knetbsd*-gnu) 17181 version_type=linux 17182 need_lib_prefix=no 17183 need_version=no 17184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17185 soname_spec='${libname}${release}${shared_ext}$major' 17186 shlibpath_var=LD_LIBRARY_PATH 17187 shlibpath_overrides_runpath=no 17188 hardcode_into_libs=yes 17189 dynamic_linker='GNU ld.so' 17190 ;; 17191 17192netbsd*) 17193 version_type=sunos 17194 need_lib_prefix=no 17195 need_version=no 17196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17199 dynamic_linker='NetBSD (a.out) ld.so' 17200 else 17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17202 soname_spec='${libname}${release}${shared_ext}$major' 17203 dynamic_linker='NetBSD ld.elf_so' 17204 fi 17205 shlibpath_var=LD_LIBRARY_PATH 17206 shlibpath_overrides_runpath=yes 17207 hardcode_into_libs=yes 17208 ;; 17209 17210newsos6) 17211 version_type=linux 17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17213 shlibpath_var=LD_LIBRARY_PATH 17214 shlibpath_overrides_runpath=yes 17215 ;; 17216 17217nto-qnx*) 17218 version_type=linux 17219 need_lib_prefix=no 17220 need_version=no 17221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17222 soname_spec='${libname}${release}${shared_ext}$major' 17223 shlibpath_var=LD_LIBRARY_PATH 17224 shlibpath_overrides_runpath=yes 17225 ;; 17226 17227openbsd*) 17228 version_type=sunos 17229 need_lib_prefix=no 17230 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17231 case $host_os in 17232 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17233 *) need_version=no ;; 17234 esac 17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17237 shlibpath_var=LD_LIBRARY_PATH 17238 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17239 case $host_os in 17240 openbsd2.[89] | openbsd2.[89].*) 17241 shlibpath_overrides_runpath=no 17242 ;; 17243 *) 17244 shlibpath_overrides_runpath=yes 17245 ;; 17246 esac 17247 else 17248 shlibpath_overrides_runpath=yes 17249 fi 17250 ;; 17251 17252os2*) 17253 libname_spec='$name' 17254 shrext_cmds=".dll" 17255 need_lib_prefix=no 17256 library_names_spec='$libname${shared_ext} $libname.a' 17257 dynamic_linker='OS/2 ld.exe' 17258 shlibpath_var=LIBPATH 17259 ;; 17260 17261osf3* | osf4* | osf5*) 17262 version_type=osf 17263 need_lib_prefix=no 17264 need_version=no 17265 soname_spec='${libname}${release}${shared_ext}$major' 17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17267 shlibpath_var=LD_LIBRARY_PATH 17268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17270 ;; 17271 17272sco3.2v5*) 17273 version_type=osf 17274 soname_spec='${libname}${release}${shared_ext}$major' 17275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17276 shlibpath_var=LD_LIBRARY_PATH 17277 ;; 17278 17279solaris*) 17280 version_type=linux 17281 need_lib_prefix=no 17282 need_version=no 17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17284 soname_spec='${libname}${release}${shared_ext}$major' 17285 shlibpath_var=LD_LIBRARY_PATH 17286 shlibpath_overrides_runpath=yes 17287 hardcode_into_libs=yes 17288 # ldd complains unless libraries are executable 17289 postinstall_cmds='chmod +x $lib' 17290 ;; 17291 17292sunos4*) 17293 version_type=sunos 17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17296 shlibpath_var=LD_LIBRARY_PATH 17297 shlibpath_overrides_runpath=yes 17298 if test "$with_gnu_ld" = yes; then 17299 need_lib_prefix=no 17300 fi 17301 need_version=yes 17302 ;; 17303 17304sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17305 version_type=linux 17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17307 soname_spec='${libname}${release}${shared_ext}$major' 17308 shlibpath_var=LD_LIBRARY_PATH 17309 case $host_vendor in 17310 sni) 17311 shlibpath_overrides_runpath=no 17312 need_lib_prefix=no 17313 export_dynamic_flag_spec='${wl}-Blargedynsym' 17314 runpath_var=LD_RUN_PATH 17315 ;; 17316 siemens) 17317 need_lib_prefix=no 17318 ;; 17319 motorola) 17320 need_lib_prefix=no 17321 need_version=no 17322 shlibpath_overrides_runpath=no 17323 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17324 ;; 17325 esac 17326 ;; 17327 17328sysv4*MP*) 17329 if test -d /usr/nec ;then 17330 version_type=linux 17331 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17332 soname_spec='$libname${shared_ext}.$major' 17333 shlibpath_var=LD_LIBRARY_PATH 17334 fi 17335 ;; 17336 17337uts4*) 17338 version_type=linux 17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17340 soname_spec='${libname}${release}${shared_ext}$major' 17341 shlibpath_var=LD_LIBRARY_PATH 17342 ;; 17343 17344*) 17345 dynamic_linker=no 17346 ;; 17347esac 17348echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17349echo "${ECHO_T}$dynamic_linker" >&6 17350test "$dynamic_linker" = no && can_build_shared=no 17351 17352echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17353echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17354hardcode_action_F77= 17355if test -n "$hardcode_libdir_flag_spec_F77" || \ 17356 test -n "$runpath_var_F77" || \ 17357 test "X$hardcode_automatic_F77" = "Xyes" ; then 17358 17359 # We can hardcode non-existant directories. 17360 if test "$hardcode_direct_F77" != no && 17361 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17362 # have to relink, otherwise we might link with an installed library 17363 # when we should be linking with a yet-to-be-installed one 17364 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17365 test "$hardcode_minus_L_F77" != no; then 17366 # Linking always hardcodes the temporary library directory. 17367 hardcode_action_F77=relink 17368 else 17369 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17370 hardcode_action_F77=immediate 17371 fi 17372else 17373 # We cannot hardcode anything, or else we can only hardcode existing 17374 # directories. 17375 hardcode_action_F77=unsupported 17376fi 17377echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17378echo "${ECHO_T}$hardcode_action_F77" >&6 17379 17380if test "$hardcode_action_F77" = relink; then 17381 # Fast installation is not supported 17382 enable_fast_install=no 17383elif test "$shlibpath_overrides_runpath" = yes || 17384 test "$enable_shared" = no; then 17385 # Fast installation is not necessary 17386 enable_fast_install=needless 17387fi 17388 17389striplib= 17390old_striplib= 17391echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17392echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17393if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17394 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17395 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17396 echo "$as_me:$LINENO: result: yes" >&5 17397echo "${ECHO_T}yes" >&6 17398else 17399# FIXME - insert some real tests, host_os isn't really good enough 17400 case $host_os in 17401 darwin*) 17402 if test -n "$STRIP" ; then 17403 striplib="$STRIP -x" 17404 echo "$as_me:$LINENO: result: yes" >&5 17405echo "${ECHO_T}yes" >&6 17406 else 17407 echo "$as_me:$LINENO: result: no" >&5 17408echo "${ECHO_T}no" >&6 17409fi 17410 ;; 17411 *) 17412 echo "$as_me:$LINENO: result: no" >&5 17413echo "${ECHO_T}no" >&6 17414 ;; 17415 esac 17416fi 17417 17418 17419 17420# The else clause should only fire when bootstrapping the 17421# libtool distribution, otherwise you forgot to ship ltmain.sh 17422# with your package, and you will get complaints that there are 17423# no rules to generate ltmain.sh. 17424if test -f "$ltmain"; then 17425 # See if we are running on zsh, and set the options which allow our commands through 17426 # without removal of \ escapes. 17427 if test -n "${ZSH_VERSION+set}" ; then 17428 setopt NO_GLOB_SUBST 17429 fi 17430 # Now quote all the things that may contain metacharacters while being 17431 # careful not to overquote the AC_SUBSTed values. We take copies of the 17432 # variables and quote the copies for generation of the libtool script. 17433 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 17434 SED SHELL STRIP \ 17435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17437 deplibs_check_method reload_flag reload_cmds need_locks \ 17438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17439 lt_cv_sys_global_symbol_to_c_name_address \ 17440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17441 old_postinstall_cmds old_postuninstall_cmds \ 17442 compiler_F77 \ 17443 CC_F77 \ 17444 LD_F77 \ 17445 lt_prog_compiler_wl_F77 \ 17446 lt_prog_compiler_pic_F77 \ 17447 lt_prog_compiler_static_F77 \ 17448 lt_prog_compiler_no_builtin_flag_F77 \ 17449 export_dynamic_flag_spec_F77 \ 17450 thread_safe_flag_spec_F77 \ 17451 whole_archive_flag_spec_F77 \ 17452 enable_shared_with_static_runtimes_F77 \ 17453 old_archive_cmds_F77 \ 17454 old_archive_from_new_cmds_F77 \ 17455 predep_objects_F77 \ 17456 postdep_objects_F77 \ 17457 predeps_F77 \ 17458 postdeps_F77 \ 17459 compiler_lib_search_path_F77 \ 17460 archive_cmds_F77 \ 17461 archive_expsym_cmds_F77 \ 17462 postinstall_cmds_F77 \ 17463 postuninstall_cmds_F77 \ 17464 old_archive_from_expsyms_cmds_F77 \ 17465 allow_undefined_flag_F77 \ 17466 no_undefined_flag_F77 \ 17467 export_symbols_cmds_F77 \ 17468 hardcode_libdir_flag_spec_F77 \ 17469 hardcode_libdir_flag_spec_ld_F77 \ 17470 hardcode_libdir_separator_F77 \ 17471 hardcode_automatic_F77 \ 17472 module_cmds_F77 \ 17473 module_expsym_cmds_F77 \ 17474 lt_cv_prog_compiler_c_o_F77 \ 17475 exclude_expsyms_F77 \ 17476 include_expsyms_F77; do 17477 17478 case $var in 17479 old_archive_cmds_F77 | \ 17480 old_archive_from_new_cmds_F77 | \ 17481 archive_cmds_F77 | \ 17482 archive_expsym_cmds_F77 | \ 17483 module_cmds_F77 | \ 17484 module_expsym_cmds_F77 | \ 17485 old_archive_from_expsyms_cmds_F77 | \ 17486 export_symbols_cmds_F77 | \ 17487 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17488 postinstall_cmds | postuninstall_cmds | \ 17489 old_postinstall_cmds | old_postuninstall_cmds | \ 17490 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17491 # Double-quote double-evaled strings. 17492 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17493 ;; 17494 *) 17495 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17496 ;; 17497 esac 17498 done 17499 17500 case $lt_echo in 17501 *'\$0 --fallback-echo"') 17502 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17503 ;; 17504 esac 17505 17506cfgfile="$ofile" 17507 17508 cat <<__EOF__ >> "$cfgfile" 17509# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17510 17511# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17512 17513# Shell to use when invoking shell scripts. 17514SHELL=$lt_SHELL 17515 17516# Whether or not to build shared libraries. 17517build_libtool_libs=$enable_shared 17518 17519# Whether or not to build static libraries. 17520build_old_libs=$enable_static 17521 17522# Whether or not to add -lc for building shared libraries. 17523build_libtool_need_lc=$archive_cmds_need_lc_F77 17524 17525# Whether or not to disallow shared libs when runtime libs are static 17526allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17527 17528# Whether or not to optimize for fast installation. 17529fast_install=$enable_fast_install 17530 17531# The host system. 17532host_alias=$host_alias 17533host=$host 17534host_os=$host_os 17535 17536# The build system. 17537build_alias=$build_alias 17538build=$build 17539build_os=$build_os 17540 17541# An echo program that does not interpret backslashes. 17542echo=$lt_echo 17543 17544# The archiver. 17545AR=$lt_AR 17546AR_FLAGS=$lt_AR_FLAGS 17547 17548# A C compiler. 17549LTCC=$lt_LTCC 17550 17551# A language-specific compiler. 17552CC=$lt_compiler_F77 17553 17554# Is the compiler the GNU C compiler? 17555with_gcc=$GCC_F77 17556 17557# An ERE matcher. 17558EGREP=$lt_EGREP 17559 17560# The linker used to build libraries. 17561LD=$lt_LD_F77 17562 17563# Whether we need hard or soft links. 17564LN_S=$lt_LN_S 17565 17566# A BSD-compatible nm program. 17567NM=$lt_NM 17568 17569# A symbol stripping program 17570STRIP=$lt_STRIP 17571 17572# Used to examine libraries when file_magic_cmd begins "file" 17573MAGIC_CMD=$MAGIC_CMD 17574 17575# Used on cygwin: DLL creation program. 17576DLLTOOL="$DLLTOOL" 17577 17578# Used on cygwin: object dumper. 17579OBJDUMP="$OBJDUMP" 17580 17581# Used on cygwin: assembler. 17582AS="$AS" 17583 17584# The name of the directory that contains temporary libtool files. 17585objdir=$objdir 17586 17587# How to create reloadable object files. 17588reload_flag=$lt_reload_flag 17589reload_cmds=$lt_reload_cmds 17590 17591# How to pass a linker flag through the compiler. 17592wl=$lt_lt_prog_compiler_wl_F77 17593 17594# Object file suffix (normally "o"). 17595objext="$ac_objext" 17596 17597# Old archive suffix (normally "a"). 17598libext="$libext" 17599 17600# Shared library suffix (normally ".so"). 17601shrext_cmds='$shrext_cmds' 17602 17603# Executable file suffix (normally ""). 17604exeext="$exeext" 17605 17606# Additional compiler flags for building library objects. 17607pic_flag=$lt_lt_prog_compiler_pic_F77 17608pic_mode=$pic_mode 17609 17610# What is the maximum length of a command? 17611max_cmd_len=$lt_cv_sys_max_cmd_len 17612 17613# Does compiler simultaneously support -c and -o options? 17614compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17615 17616# Must we lock files when doing compilation? 17617need_locks=$lt_need_locks 17618 17619# Do we need the lib prefix for modules? 17620need_lib_prefix=$need_lib_prefix 17621 17622# Do we need a version for libraries? 17623need_version=$need_version 17624 17625# Whether dlopen is supported. 17626dlopen_support=$enable_dlopen 17627 17628# Whether dlopen of programs is supported. 17629dlopen_self=$enable_dlopen_self 17630 17631# Whether dlopen of statically linked programs is supported. 17632dlopen_self_static=$enable_dlopen_self_static 17633 17634# Compiler flag to prevent dynamic linking. 17635link_static_flag=$lt_lt_prog_compiler_static_F77 17636 17637# Compiler flag to turn off builtin functions. 17638no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17639 17640# Compiler flag to allow reflexive dlopens. 17641export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17642 17643# Compiler flag to generate shared objects directly from archives. 17644whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17645 17646# Compiler flag to generate thread-safe objects. 17647thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17648 17649# Library versioning type. 17650version_type=$version_type 17651 17652# Format of library name prefix. 17653libname_spec=$lt_libname_spec 17654 17655# List of archive names. First name is the real one, the rest are links. 17656# The last name is the one that the linker finds with -lNAME. 17657library_names_spec=$lt_library_names_spec 17658 17659# The coded name of the library, if different from the real name. 17660soname_spec=$lt_soname_spec 17661 17662# Commands used to build and install an old-style archive. 17663RANLIB=$lt_RANLIB 17664old_archive_cmds=$lt_old_archive_cmds_F77 17665old_postinstall_cmds=$lt_old_postinstall_cmds 17666old_postuninstall_cmds=$lt_old_postuninstall_cmds 17667 17668# Create an old-style archive from a shared archive. 17669old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17670 17671# Create a temporary old-style archive to link instead of a shared archive. 17672old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17673 17674# Commands used to build and install a shared archive. 17675archive_cmds=$lt_archive_cmds_F77 17676archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17677postinstall_cmds=$lt_postinstall_cmds 17678postuninstall_cmds=$lt_postuninstall_cmds 17679 17680# Commands used to build a loadable module (assumed same as above if empty) 17681module_cmds=$lt_module_cmds_F77 17682module_expsym_cmds=$lt_module_expsym_cmds_F77 17683 17684# Commands to strip libraries. 17685old_striplib=$lt_old_striplib 17686striplib=$lt_striplib 17687 17688# Dependencies to place before the objects being linked to create a 17689# shared library. 17690predep_objects=$lt_predep_objects_F77 17691 17692# Dependencies to place after the objects being linked to create a 17693# shared library. 17694postdep_objects=$lt_postdep_objects_F77 17695 17696# Dependencies to place before the objects being linked to create a 17697# shared library. 17698predeps=$lt_predeps_F77 17699 17700# Dependencies to place after the objects being linked to create a 17701# shared library. 17702postdeps=$lt_postdeps_F77 17703 17704# The library search path used internally by the compiler when linking 17705# a shared library. 17706compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17707 17708# Method to check whether dependent libraries are shared objects. 17709deplibs_check_method=$lt_deplibs_check_method 17710 17711# Command to use when deplibs_check_method == file_magic. 17712file_magic_cmd=$lt_file_magic_cmd 17713 17714# Flag that allows shared libraries with undefined symbols to be built. 17715allow_undefined_flag=$lt_allow_undefined_flag_F77 17716 17717# Flag that forces no undefined symbols. 17718no_undefined_flag=$lt_no_undefined_flag_F77 17719 17720# Commands used to finish a libtool library installation in a directory. 17721finish_cmds=$lt_finish_cmds 17722 17723# Same as above, but a single script fragment to be evaled but not shown. 17724finish_eval=$lt_finish_eval 17725 17726# Take the output of nm and produce a listing of raw symbols and C names. 17727global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17728 17729# Transform the output of nm in a proper C declaration 17730global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17731 17732# Transform the output of nm in a C name address pair 17733global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17734 17735# This is the shared library runtime path variable. 17736runpath_var=$runpath_var 17737 17738# This is the shared library path variable. 17739shlibpath_var=$shlibpath_var 17740 17741# Is shlibpath searched before the hard-coded library search path? 17742shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17743 17744# How to hardcode a shared library path into an executable. 17745hardcode_action=$hardcode_action_F77 17746 17747# Whether we should hardcode library paths into libraries. 17748hardcode_into_libs=$hardcode_into_libs 17749 17750# Flag to hardcode \$libdir into a binary during linking. 17751# This must work even if \$libdir does not exist. 17752hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17753 17754# If ld is used when linking, flag to hardcode \$libdir into 17755# a binary during linking. This must work even if \$libdir does 17756# not exist. 17757hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17758 17759# Whether we need a single -rpath flag with a separated argument. 17760hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17761 17762# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17763# resulting binary. 17764hardcode_direct=$hardcode_direct_F77 17765 17766# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17767# resulting binary. 17768hardcode_minus_L=$hardcode_minus_L_F77 17769 17770# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17771# the resulting binary. 17772hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17773 17774# Set to yes if building a shared library automatically hardcodes DIR into the library 17775# and all subsequent libraries and executables linked against it. 17776hardcode_automatic=$hardcode_automatic_F77 17777 17778# Variables whose values should be saved in libtool wrapper scripts and 17779# restored at relink time. 17780variables_saved_for_relink="$variables_saved_for_relink" 17781 17782# Whether libtool must link a program against all its dependency libraries. 17783link_all_deplibs=$link_all_deplibs_F77 17784 17785# Compile-time system search path for libraries 17786sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17787 17788# Run-time system search path for libraries 17789sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17790 17791# Fix the shell variable \$srcfile for the compiler. 17792fix_srcfile_path="$fix_srcfile_path_F77" 17793 17794# Set to yes if exported symbols are required. 17795always_export_symbols=$always_export_symbols_F77 17796 17797# The commands to list exported symbols. 17798export_symbols_cmds=$lt_export_symbols_cmds_F77 17799 17800# The commands to extract the exported symbol list from a shared archive. 17801extract_expsyms_cmds=$lt_extract_expsyms_cmds 17802 17803# Symbols that should not be listed in the preloaded symbols. 17804exclude_expsyms=$lt_exclude_expsyms_F77 17805 17806# Symbols that must always be exported. 17807include_expsyms=$lt_include_expsyms_F77 17808 17809# ### END LIBTOOL TAG CONFIG: $tagname 17810 17811__EOF__ 17812 17813 17814else 17815 # If there is no Makefile yet, we rely on a make rule to execute 17816 # `config.status --recheck' to rerun these tests and create the 17817 # libtool script then. 17818 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17819 if test -f "$ltmain_in"; then 17820 test -f Makefile && make "$ltmain" 17821 fi 17822fi 17823 17824 17825ac_ext=c 17826ac_cpp='$CPP $CPPFLAGS' 17827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17829ac_compiler_gnu=$ac_cv_c_compiler_gnu 17830 17831CC="$lt_save_CC" 17832 17833 else 17834 tagname="" 17835 fi 17836 ;; 17837 17838 GCJ) 17839 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17840 17841 17842 17843# Source file extension for Java test sources. 17844ac_ext=java 17845 17846# Object file extension for compiled Java test sources. 17847objext=o 17848objext_GCJ=$objext 17849 17850# Code to be used in simple compile tests 17851lt_simple_compile_test_code="class foo {}\n" 17852 17853# Code to be used in simple link tests 17854lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17855 17856# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17857 17858# If no C compiler was specified, use CC. 17859LTCC=${LTCC-"$CC"} 17860 17861# Allow CC to be a program name with arguments. 17862compiler=$CC 17863 17864 17865# save warnings/boilerplate of simple test code 17866ac_outfile=conftest.$ac_objext 17867printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17868eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 17869_lt_compiler_boilerplate=`cat conftest.err` 17870$rm conftest* 17871 17872ac_outfile=conftest.$ac_objext 17873printf "$lt_simple_link_test_code" >conftest.$ac_ext 17874eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 17875_lt_linker_boilerplate=`cat conftest.err` 17876$rm conftest* 17877 17878 17879# Allow CC to be a program name with arguments. 17880lt_save_CC="$CC" 17881CC=${GCJ-"gcj"} 17882compiler=$CC 17883compiler_GCJ=$CC 17884for cc_temp in $compiler""; do 17885 case $cc_temp in 17886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17888 \-*) ;; 17889 *) break;; 17890 esac 17891done 17892cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17893 17894 17895# GCJ did not exist at the time GCC didn't implicitly link libc in. 17896archive_cmds_need_lc_GCJ=no 17897 17898old_archive_cmds_GCJ=$old_archive_cmds 17899 17900 17901lt_prog_compiler_no_builtin_flag_GCJ= 17902 17903if test "$GCC" = yes; then 17904 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17905 17906 17907echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17908echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17909if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17910 echo $ECHO_N "(cached) $ECHO_C" >&6 17911else 17912 lt_cv_prog_compiler_rtti_exceptions=no 17913 ac_outfile=conftest.$ac_objext 17914 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17915 lt_compiler_flag="-fno-rtti -fno-exceptions" 17916 # Insert the option either (1) after the last *FLAGS variable, or 17917 # (2) before a word containing "conftest.", or (3) at the end. 17918 # Note that $ac_compile itself does not contain backslashes and begins 17919 # with a dollar sign (not a hyphen), so the echo should work correctly. 17920 # The option is referenced via a variable to avoid confusing sed. 17921 lt_compile=`echo "$ac_compile" | $SED \ 17922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17924 -e 's:$: $lt_compiler_flag:'` 17925 (eval echo "\"\$as_me:17925: $lt_compile\"" >&5) 17926 (eval "$lt_compile" 2>conftest.err) 17927 ac_status=$? 17928 cat conftest.err >&5 17929 echo "$as_me:17929: \$? = $ac_status" >&5 17930 if (exit $ac_status) && test -s "$ac_outfile"; then 17931 # The compiler can only warn and ignore the option if not recognized 17932 # So say no if there are warnings other than the usual output. 17933 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 17934 $SED '/^$/d' conftest.err >conftest.er2 17935 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 17936 lt_cv_prog_compiler_rtti_exceptions=yes 17937 fi 17938 fi 17939 $rm conftest* 17940 17941fi 17942echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17943echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17944 17945if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17946 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17947else 17948 : 17949fi 17950 17951fi 17952 17953lt_prog_compiler_wl_GCJ= 17954lt_prog_compiler_pic_GCJ= 17955lt_prog_compiler_static_GCJ= 17956 17957echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17958echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17959 17960 if test "$GCC" = yes; then 17961 lt_prog_compiler_wl_GCJ='-Wl,' 17962 lt_prog_compiler_static_GCJ='-static' 17963 17964 case $host_os in 17965 aix*) 17966 # All AIX code is PIC. 17967 if test "$host_cpu" = ia64; then 17968 # AIX 5 now supports IA64 processor 17969 lt_prog_compiler_static_GCJ='-Bstatic' 17970 fi 17971 ;; 17972 17973 amigaos*) 17974 # FIXME: we need at least 68020 code to build shared libraries, but 17975 # adding the `-m68020' flag to GCC prevents building anything better, 17976 # like `-m68040'. 17977 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17978 ;; 17979 17980 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17981 # PIC is the default for these OSes. 17982 ;; 17983 17984 mingw* | pw32* | os2*) 17985 # This hack is so that the source file can tell whether it is being 17986 # built for inclusion in a dll (and should export symbols for example). 17987 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17988 ;; 17989 17990 darwin* | rhapsody*) 17991 # PIC is the default on this platform 17992 # Common symbols not allowed in MH_DYLIB files 17993 lt_prog_compiler_pic_GCJ='-fno-common' 17994 ;; 17995 17996 msdosdjgpp*) 17997 # Just because we use GCC doesn't mean we suddenly get shared libraries 17998 # on systems that don't support them. 17999 lt_prog_compiler_can_build_shared_GCJ=no 18000 enable_shared=no 18001 ;; 18002 18003 sysv4*MP*) 18004 if test -d /usr/nec; then 18005 lt_prog_compiler_pic_GCJ=-Kconform_pic 18006 fi 18007 ;; 18008 18009 hpux*) 18010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18011 # not for PA HP-UX. 18012 case $host_cpu in 18013 hppa*64*|ia64*) 18014 # +Z the default 18015 ;; 18016 *) 18017 lt_prog_compiler_pic_GCJ='-fPIC' 18018 ;; 18019 esac 18020 ;; 18021 18022 *) 18023 lt_prog_compiler_pic_GCJ='-fPIC' 18024 ;; 18025 esac 18026 else 18027 # PORTME Check for flag to pass linker flags through the system compiler. 18028 case $host_os in 18029 aix*) 18030 lt_prog_compiler_wl_GCJ='-Wl,' 18031 if test "$host_cpu" = ia64; then 18032 # AIX 5 now supports IA64 processor 18033 lt_prog_compiler_static_GCJ='-Bstatic' 18034 else 18035 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18036 fi 18037 ;; 18038 darwin*) 18039 # PIC is the default on this platform 18040 # Common symbols not allowed in MH_DYLIB files 18041 case $cc_basename in 18042 xlc*) 18043 lt_prog_compiler_pic_GCJ='-qnocommon' 18044 lt_prog_compiler_wl_GCJ='-Wl,' 18045 ;; 18046 esac 18047 ;; 18048 18049 mingw* | pw32* | os2*) 18050 # This hack is so that the source file can tell whether it is being 18051 # built for inclusion in a dll (and should export symbols for example). 18052 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18053 ;; 18054 18055 hpux9* | hpux10* | hpux11*) 18056 lt_prog_compiler_wl_GCJ='-Wl,' 18057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18058 # not for PA HP-UX. 18059 case $host_cpu in 18060 hppa*64*|ia64*) 18061 # +Z the default 18062 ;; 18063 *) 18064 lt_prog_compiler_pic_GCJ='+Z' 18065 ;; 18066 esac 18067 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18068 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18069 ;; 18070 18071 irix5* | irix6* | nonstopux*) 18072 lt_prog_compiler_wl_GCJ='-Wl,' 18073 # PIC (with -KPIC) is the default. 18074 lt_prog_compiler_static_GCJ='-non_shared' 18075 ;; 18076 18077 newsos6) 18078 lt_prog_compiler_pic_GCJ='-KPIC' 18079 lt_prog_compiler_static_GCJ='-Bstatic' 18080 ;; 18081 18082 linux*) 18083 case $cc_basename in 18084 icc* | ecc*) 18085 lt_prog_compiler_wl_GCJ='-Wl,' 18086 lt_prog_compiler_pic_GCJ='-KPIC' 18087 lt_prog_compiler_static_GCJ='-static' 18088 ;; 18089 pgcc* | pgf77* | pgf90* | pgf95*) 18090 # Portland Group compilers (*not* the Pentium gcc compiler, 18091 # which looks to be a dead project) 18092 lt_prog_compiler_wl_GCJ='-Wl,' 18093 lt_prog_compiler_pic_GCJ='-fpic' 18094 lt_prog_compiler_static_GCJ='-Bstatic' 18095 ;; 18096 ccc*) 18097 lt_prog_compiler_wl_GCJ='-Wl,' 18098 # All Alpha code is PIC. 18099 lt_prog_compiler_static_GCJ='-non_shared' 18100 ;; 18101 esac 18102 ;; 18103 18104 osf3* | osf4* | osf5*) 18105 lt_prog_compiler_wl_GCJ='-Wl,' 18106 # All OSF/1 code is PIC. 18107 lt_prog_compiler_static_GCJ='-non_shared' 18108 ;; 18109 18110 sco3.2v5*) 18111 lt_prog_compiler_pic_GCJ='-Kpic' 18112 lt_prog_compiler_static_GCJ='-dn' 18113 ;; 18114 18115 solaris*) 18116 lt_prog_compiler_pic_GCJ='-KPIC' 18117 lt_prog_compiler_static_GCJ='-Bstatic' 18118 case $cc_basename in 18119 f77* | f90* | f95*) 18120 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 18121 *) 18122 lt_prog_compiler_wl_GCJ='-Wl,';; 18123 esac 18124 ;; 18125 18126 sunos4*) 18127 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18128 lt_prog_compiler_pic_GCJ='-PIC' 18129 lt_prog_compiler_static_GCJ='-Bstatic' 18130 ;; 18131 18132 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18133 lt_prog_compiler_wl_GCJ='-Wl,' 18134 lt_prog_compiler_pic_GCJ='-KPIC' 18135 lt_prog_compiler_static_GCJ='-Bstatic' 18136 ;; 18137 18138 sysv4*MP*) 18139 if test -d /usr/nec ;then 18140 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18141 lt_prog_compiler_static_GCJ='-Bstatic' 18142 fi 18143 ;; 18144 18145 unicos*) 18146 lt_prog_compiler_wl_GCJ='-Wl,' 18147 lt_prog_compiler_can_build_shared_GCJ=no 18148 ;; 18149 18150 uts4*) 18151 lt_prog_compiler_pic_GCJ='-pic' 18152 lt_prog_compiler_static_GCJ='-Bstatic' 18153 ;; 18154 18155 *) 18156 lt_prog_compiler_can_build_shared_GCJ=no 18157 ;; 18158 esac 18159 fi 18160 18161echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18162echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 18163 18164# 18165# Check to make sure the PIC flag actually works. 18166# 18167if test -n "$lt_prog_compiler_pic_GCJ"; then 18168 18169echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18170echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 18171if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 18172 echo $ECHO_N "(cached) $ECHO_C" >&6 18173else 18174 lt_prog_compiler_pic_works_GCJ=no 18175 ac_outfile=conftest.$ac_objext 18176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18177 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18178 # Insert the option either (1) after the last *FLAGS variable, or 18179 # (2) before a word containing "conftest.", or (3) at the end. 18180 # Note that $ac_compile itself does not contain backslashes and begins 18181 # with a dollar sign (not a hyphen), so the echo should work correctly. 18182 # The option is referenced via a variable to avoid confusing sed. 18183 lt_compile=`echo "$ac_compile" | $SED \ 18184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18186 -e 's:$: $lt_compiler_flag:'` 18187 (eval echo "\"\$as_me:18187: $lt_compile\"" >&5) 18188 (eval "$lt_compile" 2>conftest.err) 18189 ac_status=$? 18190 cat conftest.err >&5 18191 echo "$as_me:18191: \$? = $ac_status" >&5 18192 if (exit $ac_status) && test -s "$ac_outfile"; then 18193 # The compiler can only warn and ignore the option if not recognized 18194 # So say no if there are warnings other than the usual output. 18195 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 18196 $SED '/^$/d' conftest.err >conftest.er2 18197 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 18198 lt_prog_compiler_pic_works_GCJ=yes 18199 fi 18200 fi 18201 $rm conftest* 18202 18203fi 18204echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 18205echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 18206 18207if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 18208 case $lt_prog_compiler_pic_GCJ in 18209 "" | " "*) ;; 18210 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18211 esac 18212else 18213 lt_prog_compiler_pic_GCJ= 18214 lt_prog_compiler_can_build_shared_GCJ=no 18215fi 18216 18217fi 18218case $host_os in 18219 # For platforms which do not support PIC, -DPIC is meaningless: 18220 *djgpp*) 18221 lt_prog_compiler_pic_GCJ= 18222 ;; 18223 *) 18224 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18225 ;; 18226esac 18227 18228echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18229echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 18230if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18231 echo $ECHO_N "(cached) $ECHO_C" >&6 18232else 18233 lt_cv_prog_compiler_c_o_GCJ=no 18234 $rm -r conftest 2>/dev/null 18235 mkdir conftest 18236 cd conftest 18237 mkdir out 18238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18239 18240 lt_compiler_flag="-o out/conftest2.$ac_objext" 18241 # Insert the option either (1) after the last *FLAGS variable, or 18242 # (2) before a word containing "conftest.", or (3) at the end. 18243 # Note that $ac_compile itself does not contain backslashes and begins 18244 # with a dollar sign (not a hyphen), so the echo should work correctly. 18245 lt_compile=`echo "$ac_compile" | $SED \ 18246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18248 -e 's:$: $lt_compiler_flag:'` 18249 (eval echo "\"\$as_me:18249: $lt_compile\"" >&5) 18250 (eval "$lt_compile" 2>out/conftest.err) 18251 ac_status=$? 18252 cat out/conftest.err >&5 18253 echo "$as_me:18253: \$? = $ac_status" >&5 18254 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18255 then 18256 # The compiler can only warn and ignore the option if not recognized 18257 # So say no if there are warnings 18258 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 18259 $SED '/^$/d' out/conftest.err >out/conftest.er2 18260 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18261 lt_cv_prog_compiler_c_o_GCJ=yes 18262 fi 18263 fi 18264 chmod u+w . 2>&5 18265 $rm conftest* 18266 # SGI C++ compiler will create directory out/ii_files/ for 18267 # template instantiation 18268 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18269 $rm out/* && rmdir out 18270 cd .. 18271 rmdir conftest 18272 $rm conftest* 18273 18274fi 18275echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18276echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 18277 18278 18279hard_links="nottested" 18280if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18281 # do not overwrite the value of need_locks provided by the user 18282 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18283echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 18284 hard_links=yes 18285 $rm conftest* 18286 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18287 touch conftest.a 18288 ln conftest.a conftest.b 2>&5 || hard_links=no 18289 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18290 echo "$as_me:$LINENO: result: $hard_links" >&5 18291echo "${ECHO_T}$hard_links" >&6 18292 if test "$hard_links" = no; then 18293 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18294echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18295 need_locks=warn 18296 fi 18297else 18298 need_locks=no 18299fi 18300 18301echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18302echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 18303 18304 runpath_var= 18305 allow_undefined_flag_GCJ= 18306 enable_shared_with_static_runtimes_GCJ=no 18307 archive_cmds_GCJ= 18308 archive_expsym_cmds_GCJ= 18309 old_archive_From_new_cmds_GCJ= 18310 old_archive_from_expsyms_cmds_GCJ= 18311 export_dynamic_flag_spec_GCJ= 18312 whole_archive_flag_spec_GCJ= 18313 thread_safe_flag_spec_GCJ= 18314 hardcode_libdir_flag_spec_GCJ= 18315 hardcode_libdir_flag_spec_ld_GCJ= 18316 hardcode_libdir_separator_GCJ= 18317 hardcode_direct_GCJ=no 18318 hardcode_minus_L_GCJ=no 18319 hardcode_shlibpath_var_GCJ=unsupported 18320 link_all_deplibs_GCJ=unknown 18321 hardcode_automatic_GCJ=no 18322 module_cmds_GCJ= 18323 module_expsym_cmds_GCJ= 18324 always_export_symbols_GCJ=no 18325 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18326 # include_expsyms should be a list of space-separated symbols to be *always* 18327 # included in the symbol list 18328 include_expsyms_GCJ= 18329 # exclude_expsyms can be an extended regexp of symbols to exclude 18330 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18331 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18332 # as well as any symbol that contains `d'. 18333 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 18334 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18335 # platforms (ab)use it in PIC code, but their linkers get confused if 18336 # the symbol is explicitly referenced. Since portable code cannot 18337 # rely on this symbol name, it's probably fine to never include it in 18338 # preloaded symbol tables. 18339 extract_expsyms_cmds= 18340 # Just being paranoid about ensuring that cc_basename is set. 18341 for cc_temp in $compiler""; do 18342 case $cc_temp in 18343 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18344 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18345 \-*) ;; 18346 *) break;; 18347 esac 18348done 18349cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18350 18351 case $host_os in 18352 cygwin* | mingw* | pw32*) 18353 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18354 # When not using gcc, we currently assume that we are using 18355 # Microsoft Visual C++. 18356 if test "$GCC" != yes; then 18357 with_gnu_ld=no 18358 fi 18359 ;; 18360 openbsd*) 18361 with_gnu_ld=no 18362 ;; 18363 esac 18364 18365 ld_shlibs_GCJ=yes 18366 if test "$with_gnu_ld" = yes; then 18367 # If archive_cmds runs LD, not CC, wlarc should be empty 18368 wlarc='${wl}' 18369 18370 # Set some defaults for GNU ld with shared library support. These 18371 # are reset later if shared libraries are not supported. Putting them 18372 # here allows them to be overridden if necessary. 18373 runpath_var=LD_RUN_PATH 18374 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18375 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18376 # ancient GNU ld didn't support --whole-archive et. al. 18377 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18378 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18379 else 18380 whole_archive_flag_spec_GCJ= 18381 fi 18382 supports_anon_versioning=no 18383 case `$LD -v 2>/dev/null` in 18384 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18385 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18386 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18387 *\ 2.11.*) ;; # other 2.11 versions 18388 *) supports_anon_versioning=yes ;; 18389 esac 18390 18391 # See if GNU ld supports shared libraries. 18392 case $host_os in 18393 aix3* | aix4* | aix5*) 18394 # On AIX/PPC, the GNU linker is very broken 18395 if test "$host_cpu" != ia64; then 18396 ld_shlibs_GCJ=no 18397 cat <<EOF 1>&2 18398 18399*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18400*** to be unable to reliably create shared libraries on AIX. 18401*** Therefore, libtool is disabling shared libraries support. If you 18402*** really care for shared libraries, you may want to modify your PATH 18403*** so that a non-GNU linker is found, and then restart. 18404 18405EOF 18406 fi 18407 ;; 18408 18409 amigaos*) 18410 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)' 18411 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18412 hardcode_minus_L_GCJ=yes 18413 18414 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18415 # that the semantics of dynamic libraries on AmigaOS, at least up 18416 # to version 4, is to share data among multiple programs linked 18417 # with the same dynamic library. Since this doesn't match the 18418 # behavior of shared libraries on other platforms, we can't use 18419 # them. 18420 ld_shlibs_GCJ=no 18421 ;; 18422 18423 beos*) 18424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18425 allow_undefined_flag_GCJ=unsupported 18426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18427 # support --undefined. This deserves some investigation. FIXME 18428 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18429 else 18430 ld_shlibs_GCJ=no 18431 fi 18432 ;; 18433 18434 cygwin* | mingw* | pw32*) 18435 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18436 # as there is no search path for DLLs. 18437 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18438 allow_undefined_flag_GCJ=unsupported 18439 always_export_symbols_GCJ=no 18440 enable_shared_with_static_runtimes_GCJ=yes 18441 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18442 18443 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18444 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 18445 # If the export-symbols file already is a .def file (1st line 18446 # is EXPORTS), use it as is; otherwise, prepend... 18447 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18448 cp $export_symbols $output_objdir/$soname.def; 18449 else 18450 echo EXPORTS > $output_objdir/$soname.def; 18451 cat $export_symbols >> $output_objdir/$soname.def; 18452 fi~ 18453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 18454 else 18455 ld_shlibs_GCJ=no 18456 fi 18457 ;; 18458 18459 linux*) 18460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18461 tmp_addflag= 18462 case $cc_basename,$host_cpu in 18463 pgcc*) # Portland Group C compiler 18464 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' 18465 tmp_addflag=' $pic_flag' 18466 ;; 18467 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18468 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' 18469 tmp_addflag=' $pic_flag -Mnomain' ;; 18470 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18471 tmp_addflag=' -i_dynamic' ;; 18472 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18473 tmp_addflag=' -i_dynamic -nofor_main' ;; 18474 ifc* | ifort*) # Intel Fortran compiler 18475 tmp_addflag=' -nofor_main' ;; 18476 esac 18477 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18478 18479 if test $supports_anon_versioning = yes; then 18480 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18482 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18483 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18484 fi 18485 else 18486 ld_shlibs_GCJ=no 18487 fi 18488 ;; 18489 18490 netbsd*) 18491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18492 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18493 wlarc= 18494 else 18495 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18496 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18497 fi 18498 ;; 18499 18500 solaris* | sysv5*) 18501 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18502 ld_shlibs_GCJ=no 18503 cat <<EOF 1>&2 18504 18505*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18506*** create shared libraries on Solaris systems. Therefore, libtool 18507*** is disabling shared libraries support. We urge you to upgrade GNU 18508*** binutils to release 2.9.1 or newer. Another option is to modify 18509*** your PATH or compiler configuration so that the native linker is 18510*** used, and then restart. 18511 18512EOF 18513 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18514 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18515 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18516 else 18517 ld_shlibs_GCJ=no 18518 fi 18519 ;; 18520 18521 sunos4*) 18522 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18523 wlarc= 18524 hardcode_direct_GCJ=yes 18525 hardcode_shlibpath_var_GCJ=no 18526 ;; 18527 18528 *) 18529 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18530 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18531 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18532 else 18533 ld_shlibs_GCJ=no 18534 fi 18535 ;; 18536 esac 18537 18538 if test "$ld_shlibs_GCJ" = no; then 18539 runpath_var= 18540 hardcode_libdir_flag_spec_GCJ= 18541 export_dynamic_flag_spec_GCJ= 18542 whole_archive_flag_spec_GCJ= 18543 fi 18544 else 18545 # PORTME fill in a description of your system's linker (not GNU ld) 18546 case $host_os in 18547 aix3*) 18548 allow_undefined_flag_GCJ=unsupported 18549 always_export_symbols_GCJ=yes 18550 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' 18551 # Note: this linker hardcodes the directories in LIBPATH if there 18552 # are no directories specified by -L. 18553 hardcode_minus_L_GCJ=yes 18554 if test "$GCC" = yes && test -z "$link_static_flag"; then 18555 # Neither direct hardcoding nor static linking is supported with a 18556 # broken collect2. 18557 hardcode_direct_GCJ=unsupported 18558 fi 18559 ;; 18560 18561 aix4* | aix5*) 18562 if test "$host_cpu" = ia64; then 18563 # On IA64, the linker does run time linking by default, so we don't 18564 # have to do anything special. 18565 aix_use_runtimelinking=no 18566 exp_sym_flag='-Bexport' 18567 no_entry_flag="" 18568 else 18569 # If we're using GNU nm, then we don't want the "-C" option. 18570 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18571 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18572 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' 18573 else 18574 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' 18575 fi 18576 aix_use_runtimelinking=no 18577 18578 # Test if we are trying to use run time linking or normal 18579 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18580 # need to do runtime linking. 18581 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18582 for ld_flag in $LDFLAGS; do 18583 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18584 aix_use_runtimelinking=yes 18585 break 18586 fi 18587 done 18588 esac 18589 18590 exp_sym_flag='-bexport' 18591 no_entry_flag='-bnoentry' 18592 fi 18593 18594 # When large executables or shared objects are built, AIX ld can 18595 # have problems creating the table of contents. If linking a library 18596 # or program results in "error TOC overflow" add -mminimal-toc to 18597 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18598 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18599 18600 archive_cmds_GCJ='' 18601 hardcode_direct_GCJ=yes 18602 hardcode_libdir_separator_GCJ=':' 18603 link_all_deplibs_GCJ=yes 18604 18605 if test "$GCC" = yes; then 18606 case $host_os in aix4.[012]|aix4.[012].*) 18607 # We only want to do this on AIX 4.2 and lower, the check 18608 # below for broken collect2 doesn't work under 4.3+ 18609 collect2name=`${CC} -print-prog-name=collect2` 18610 if test -f "$collect2name" && \ 18611 strings "$collect2name" | grep resolve_lib_name >/dev/null 18612 then 18613 # We have reworked collect2 18614 hardcode_direct_GCJ=yes 18615 else 18616 # We have old collect2 18617 hardcode_direct_GCJ=unsupported 18618 # It fails to find uninstalled libraries when the uninstalled 18619 # path is not listed in the libpath. Setting hardcode_minus_L 18620 # to unsupported forces relinking 18621 hardcode_minus_L_GCJ=yes 18622 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18623 hardcode_libdir_separator_GCJ= 18624 fi 18625 esac 18626 shared_flag='-shared' 18627 if test "$aix_use_runtimelinking" = yes; then 18628 shared_flag="$shared_flag "'${wl}-G' 18629 fi 18630 else 18631 # not using gcc 18632 if test "$host_cpu" = ia64; then 18633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18634 # chokes on -Wl,-G. The following line is correct: 18635 shared_flag='-G' 18636 else 18637 if test "$aix_use_runtimelinking" = yes; then 18638 shared_flag='${wl}-G' 18639 else 18640 shared_flag='${wl}-bM:SRE' 18641 fi 18642 fi 18643 fi 18644 18645 # It seems that -bexpall does not export symbols beginning with 18646 # underscore (_), so it is better to generate a list of symbols to export. 18647 always_export_symbols_GCJ=yes 18648 if test "$aix_use_runtimelinking" = yes; then 18649 # Warning - without using the other runtime loading flags (-brtl), 18650 # -berok will link without error, but may produce a broken library. 18651 allow_undefined_flag_GCJ='-berok' 18652 # Determine the default libpath from the value encoded in an empty executable. 18653 cat >conftest.$ac_ext <<_ACEOF 18654/* confdefs.h. */ 18655_ACEOF 18656cat confdefs.h >>conftest.$ac_ext 18657cat >>conftest.$ac_ext <<_ACEOF 18658/* end confdefs.h. */ 18659 18660int 18661main () 18662{ 18663 18664 ; 18665 return 0; 18666} 18667_ACEOF 18668rm -f conftest.$ac_objext conftest$ac_exeext 18669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18670 (eval $ac_link) 2>conftest.er1 18671 ac_status=$? 18672 grep -v '^ *+' conftest.er1 >conftest.err 18673 rm -f conftest.er1 18674 cat conftest.err >&5 18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18676 (exit $ac_status); } && 18677 { ac_try='test -z "$ac_c_werror_flag" 18678 || test ! -s conftest.err' 18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18680 (eval $ac_try) 2>&5 18681 ac_status=$? 18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18683 (exit $ac_status); }; } && 18684 { ac_try='test -s conftest$ac_exeext' 18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18686 (eval $ac_try) 2>&5 18687 ac_status=$? 18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18689 (exit $ac_status); }; }; then 18690 18691aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18692}'` 18693# Check for a 64-bit object if we didn't find anything. 18694if 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; } 18695}'`; fi 18696else 18697 echo "$as_me: failed program was:" >&5 18698sed 's/^/| /' conftest.$ac_ext >&5 18699 18700fi 18701rm -f conftest.err conftest.$ac_objext \ 18702 conftest$ac_exeext conftest.$ac_ext 18703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18704 18705 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18706 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18707 else 18708 if test "$host_cpu" = ia64; then 18709 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18710 allow_undefined_flag_GCJ="-z nodefs" 18711 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 18712 else 18713 # Determine the default libpath from the value encoded in an empty executable. 18714 cat >conftest.$ac_ext <<_ACEOF 18715/* confdefs.h. */ 18716_ACEOF 18717cat confdefs.h >>conftest.$ac_ext 18718cat >>conftest.$ac_ext <<_ACEOF 18719/* end confdefs.h. */ 18720 18721int 18722main () 18723{ 18724 18725 ; 18726 return 0; 18727} 18728_ACEOF 18729rm -f conftest.$ac_objext conftest$ac_exeext 18730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18731 (eval $ac_link) 2>conftest.er1 18732 ac_status=$? 18733 grep -v '^ *+' conftest.er1 >conftest.err 18734 rm -f conftest.er1 18735 cat conftest.err >&5 18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18737 (exit $ac_status); } && 18738 { ac_try='test -z "$ac_c_werror_flag" 18739 || test ! -s conftest.err' 18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18741 (eval $ac_try) 2>&5 18742 ac_status=$? 18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18744 (exit $ac_status); }; } && 18745 { ac_try='test -s conftest$ac_exeext' 18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18747 (eval $ac_try) 2>&5 18748 ac_status=$? 18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18750 (exit $ac_status); }; }; then 18751 18752aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18753}'` 18754# Check for a 64-bit object if we didn't find anything. 18755if 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; } 18756}'`; fi 18757else 18758 echo "$as_me: failed program was:" >&5 18759sed 's/^/| /' conftest.$ac_ext >&5 18760 18761fi 18762rm -f conftest.err conftest.$ac_objext \ 18763 conftest$ac_exeext conftest.$ac_ext 18764if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18765 18766 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18767 # Warning - without using the other run time loading flags, 18768 # -berok will link without error, but may produce a broken library. 18769 no_undefined_flag_GCJ=' ${wl}-bernotok' 18770 allow_undefined_flag_GCJ=' ${wl}-berok' 18771 # -bexpall does not export symbols beginning with underscore (_) 18772 always_export_symbols_GCJ=yes 18773 # Exported symbols can be pulled into shared objects from archives 18774 whole_archive_flag_spec_GCJ=' ' 18775 archive_cmds_need_lc_GCJ=yes 18776 # This is similar to how AIX traditionally builds its shared libraries. 18777 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18778 fi 18779 fi 18780 ;; 18781 18782 amigaos*) 18783 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)' 18784 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18785 hardcode_minus_L_GCJ=yes 18786 # see comment about different semantics on the GNU ld section 18787 ld_shlibs_GCJ=no 18788 ;; 18789 18790 bsdi[45]*) 18791 export_dynamic_flag_spec_GCJ=-rdynamic 18792 ;; 18793 18794 cygwin* | mingw* | pw32*) 18795 # When not using gcc, we currently assume that we are using 18796 # Microsoft Visual C++. 18797 # hardcode_libdir_flag_spec is actually meaningless, as there is 18798 # no search path for DLLs. 18799 hardcode_libdir_flag_spec_GCJ=' ' 18800 allow_undefined_flag_GCJ=unsupported 18801 # Tell ltmain to make .lib files, not .a files. 18802 libext=lib 18803 # Tell ltmain to make .dll files, not .so files. 18804 shrext_cmds=".dll" 18805 # FIXME: Setting linknames here is a bad hack. 18806 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18807 # The linker will automatically build a .lib file if we build a DLL. 18808 old_archive_From_new_cmds_GCJ='true' 18809 # FIXME: Should let the user specify the lib program. 18810 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18811 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18812 enable_shared_with_static_runtimes_GCJ=yes 18813 ;; 18814 18815 darwin* | rhapsody*) 18816 case $host_os in 18817 rhapsody* | darwin1.[012]) 18818 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18819 ;; 18820 *) # Darwin 1.3 on 18821 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18822 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18823 else 18824 case ${MACOSX_DEPLOYMENT_TARGET} in 18825 10.[012]) 18826 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18827 ;; 18828 10.*) 18829 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18830 ;; 18831 esac 18832 fi 18833 ;; 18834 esac 18835 archive_cmds_need_lc_GCJ=no 18836 hardcode_direct_GCJ=no 18837 hardcode_automatic_GCJ=yes 18838 hardcode_shlibpath_var_GCJ=unsupported 18839 whole_archive_flag_spec_GCJ='' 18840 link_all_deplibs_GCJ=yes 18841 if test "$GCC" = yes ; then 18842 output_verbose_link_cmd='echo' 18843 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18844 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18846 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}' 18847 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}' 18848 else 18849 case $cc_basename in 18850 xlc*) 18851 output_verbose_link_cmd='echo' 18852 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18853 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18854 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18855 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}' 18856 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}' 18857 ;; 18858 *) 18859 ld_shlibs_GCJ=no 18860 ;; 18861 esac 18862 fi 18863 ;; 18864 18865 dgux*) 18866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18867 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18868 hardcode_shlibpath_var_GCJ=no 18869 ;; 18870 18871 freebsd1*) 18872 ld_shlibs_GCJ=no 18873 ;; 18874 18875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18876 # support. Future versions do this automatically, but an explicit c++rt0.o 18877 # does not break anything, and helps significantly (at the cost of a little 18878 # extra space). 18879 freebsd2.2*) 18880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18881 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18882 hardcode_direct_GCJ=yes 18883 hardcode_shlibpath_var_GCJ=no 18884 ;; 18885 18886 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18887 freebsd2*) 18888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18889 hardcode_direct_GCJ=yes 18890 hardcode_minus_L_GCJ=yes 18891 hardcode_shlibpath_var_GCJ=no 18892 ;; 18893 18894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18895 freebsd* | kfreebsd*-gnu | dragonfly*) 18896 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18897 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18898 hardcode_direct_GCJ=yes 18899 hardcode_shlibpath_var_GCJ=no 18900 ;; 18901 18902 hpux9*) 18903 if test "$GCC" = yes; then 18904 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' 18905 else 18906 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' 18907 fi 18908 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18909 hardcode_libdir_separator_GCJ=: 18910 hardcode_direct_GCJ=yes 18911 18912 # hardcode_minus_L: Not really in the search PATH, 18913 # but as the default location of the library. 18914 hardcode_minus_L_GCJ=yes 18915 export_dynamic_flag_spec_GCJ='${wl}-E' 18916 ;; 18917 18918 hpux10* | hpux11*) 18919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18920 case $host_cpu in 18921 hppa*64*|ia64*) 18922 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18923 ;; 18924 *) 18925 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18926 ;; 18927 esac 18928 else 18929 case $host_cpu in 18930 hppa*64*|ia64*) 18931 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 18932 ;; 18933 *) 18934 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18935 ;; 18936 esac 18937 fi 18938 if test "$with_gnu_ld" = no; then 18939 case $host_cpu in 18940 hppa*64*) 18941 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18942 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18943 hardcode_libdir_separator_GCJ=: 18944 hardcode_direct_GCJ=no 18945 hardcode_shlibpath_var_GCJ=no 18946 ;; 18947 ia64*) 18948 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18949 hardcode_direct_GCJ=no 18950 hardcode_shlibpath_var_GCJ=no 18951 18952 # hardcode_minus_L: Not really in the search PATH, 18953 # but as the default location of the library. 18954 hardcode_minus_L_GCJ=yes 18955 ;; 18956 *) 18957 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18958 hardcode_libdir_separator_GCJ=: 18959 hardcode_direct_GCJ=yes 18960 export_dynamic_flag_spec_GCJ='${wl}-E' 18961 18962 # hardcode_minus_L: Not really in the search PATH, 18963 # but as the default location of the library. 18964 hardcode_minus_L_GCJ=yes 18965 ;; 18966 esac 18967 fi 18968 ;; 18969 18970 irix5* | irix6* | nonstopux*) 18971 if test "$GCC" = yes; then 18972 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' 18973 else 18974 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' 18975 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18976 fi 18977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18978 hardcode_libdir_separator_GCJ=: 18979 link_all_deplibs_GCJ=yes 18980 ;; 18981 18982 netbsd*) 18983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18984 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18985 else 18986 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18987 fi 18988 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18989 hardcode_direct_GCJ=yes 18990 hardcode_shlibpath_var_GCJ=no 18991 ;; 18992 18993 newsos6) 18994 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18995 hardcode_direct_GCJ=yes 18996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18997 hardcode_libdir_separator_GCJ=: 18998 hardcode_shlibpath_var_GCJ=no 18999 ;; 19000 19001 openbsd*) 19002 hardcode_direct_GCJ=yes 19003 hardcode_shlibpath_var_GCJ=no 19004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19005 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19006 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19007 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19008 export_dynamic_flag_spec_GCJ='${wl}-E' 19009 else 19010 case $host_os in 19011 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19012 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19013 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19014 ;; 19015 *) 19016 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19018 ;; 19019 esac 19020 fi 19021 ;; 19022 19023 os2*) 19024 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19025 hardcode_minus_L_GCJ=yes 19026 allow_undefined_flag_GCJ=unsupported 19027 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' 19028 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19029 ;; 19030 19031 osf3*) 19032 if test "$GCC" = yes; then 19033 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19034 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' 19035 else 19036 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19037 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' 19038 fi 19039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19040 hardcode_libdir_separator_GCJ=: 19041 ;; 19042 19043 osf4* | osf5*) # as osf3* with the addition of -msym flag 19044 if test "$GCC" = yes; then 19045 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19046 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' 19047 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19048 else 19049 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19050 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' 19051 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~ 19052 $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' 19053 19054 # Both c and cxx compiler support -rpath directly 19055 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19056 fi 19057 hardcode_libdir_separator_GCJ=: 19058 ;; 19059 19060 sco3.2v5*) 19061 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19062 hardcode_shlibpath_var_GCJ=no 19063 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19064 runpath_var=LD_RUN_PATH 19065 hardcode_runpath_var=yes 19066 ;; 19067 19068 solaris*) 19069 no_undefined_flag_GCJ=' -z text' 19070 if test "$GCC" = yes; then 19071 wlarc='${wl}' 19072 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19073 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19074 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19075 else 19076 wlarc='' 19077 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19078 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19080 fi 19081 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19082 hardcode_shlibpath_var_GCJ=no 19083 case $host_os in 19084 solaris2.[0-5] | solaris2.[0-5].*) ;; 19085 *) 19086 # The compiler driver will combine linker options so we 19087 # cannot just pass the convience library names through 19088 # without $wl, iff we do not link with $LD. 19089 # Luckily, gcc supports the same syntax we need for Sun Studio. 19090 # Supported since Solaris 2.6 (maybe 2.5.1?) 19091 case $wlarc in 19092 '') 19093 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 19094 *) 19095 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' ;; 19096 esac ;; 19097 esac 19098 link_all_deplibs_GCJ=yes 19099 ;; 19100 19101 sunos4*) 19102 if test "x$host_vendor" = xsequent; then 19103 # Use $CC to link under sequent, because it throws in some extra .o 19104 # files that make .init and .fini sections work. 19105 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19106 else 19107 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19108 fi 19109 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19110 hardcode_direct_GCJ=yes 19111 hardcode_minus_L_GCJ=yes 19112 hardcode_shlibpath_var_GCJ=no 19113 ;; 19114 19115 sysv4) 19116 case $host_vendor in 19117 sni) 19118 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19119 hardcode_direct_GCJ=yes # is this really true??? 19120 ;; 19121 siemens) 19122 ## LD is ld it makes a PLAMLIB 19123 ## CC just makes a GrossModule. 19124 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19125 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19126 hardcode_direct_GCJ=no 19127 ;; 19128 motorola) 19129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19130 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19131 ;; 19132 esac 19133 runpath_var='LD_RUN_PATH' 19134 hardcode_shlibpath_var_GCJ=no 19135 ;; 19136 19137 sysv4.3*) 19138 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19139 hardcode_shlibpath_var_GCJ=no 19140 export_dynamic_flag_spec_GCJ='-Bexport' 19141 ;; 19142 19143 sysv4*MP*) 19144 if test -d /usr/nec; then 19145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19146 hardcode_shlibpath_var_GCJ=no 19147 runpath_var=LD_RUN_PATH 19148 hardcode_runpath_var=yes 19149 ld_shlibs_GCJ=yes 19150 fi 19151 ;; 19152 19153 sysv4.2uw2*) 19154 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19155 hardcode_direct_GCJ=yes 19156 hardcode_minus_L_GCJ=no 19157 hardcode_shlibpath_var_GCJ=no 19158 hardcode_runpath_var=yes 19159 runpath_var=LD_RUN_PATH 19160 ;; 19161 19162 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 19163 no_undefined_flag_GCJ='${wl}-z ${wl}text' 19164 if test "$GCC" = yes; then 19165 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19166 else 19167 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19168 fi 19169 runpath_var='LD_RUN_PATH' 19170 hardcode_shlibpath_var_GCJ=no 19171 ;; 19172 19173 sysv5*) 19174 no_undefined_flag_GCJ=' -z text' 19175 # $CC -shared without GNU ld will not create a library from C++ 19176 # object files and a static libstdc++, better avoid it by now 19177 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19178 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19179 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19180 hardcode_libdir_flag_spec_GCJ= 19181 hardcode_shlibpath_var_GCJ=no 19182 runpath_var='LD_RUN_PATH' 19183 ;; 19184 19185 uts4*) 19186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19187 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19188 hardcode_shlibpath_var_GCJ=no 19189 ;; 19190 19191 *) 19192 ld_shlibs_GCJ=no 19193 ;; 19194 esac 19195 fi 19196 19197echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19198echo "${ECHO_T}$ld_shlibs_GCJ" >&6 19199test "$ld_shlibs_GCJ" = no && can_build_shared=no 19200 19201variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19202if test "$GCC" = yes; then 19203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19204fi 19205 19206# 19207# Do we need to explicitly link libc? 19208# 19209case "x$archive_cmds_need_lc_GCJ" in 19210x|xyes) 19211 # Assume -lc should be added 19212 archive_cmds_need_lc_GCJ=yes 19213 19214 if test "$enable_shared" = yes && test "$GCC" = yes; then 19215 case $archive_cmds_GCJ in 19216 *'~'*) 19217 # FIXME: we may have to deal with multi-command sequences. 19218 ;; 19219 '$CC '*) 19220 # Test whether the compiler implicitly links with -lc since on some 19221 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19222 # to ld, don't add -lc before -lgcc. 19223 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19224echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 19225 $rm conftest* 19226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19227 19228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19229 (eval $ac_compile) 2>&5 19230 ac_status=$? 19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19232 (exit $ac_status); } 2>conftest.err; then 19233 soname=conftest 19234 lib=conftest 19235 libobjs=conftest.$ac_objext 19236 deplibs= 19237 wl=$lt_prog_compiler_wl_GCJ 19238 compiler_flags=-v 19239 linker_flags=-v 19240 verstring= 19241 output_objdir=. 19242 libname=conftest 19243 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19244 allow_undefined_flag_GCJ= 19245 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19246 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19247 ac_status=$? 19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19249 (exit $ac_status); } 19250 then 19251 archive_cmds_need_lc_GCJ=no 19252 else 19253 archive_cmds_need_lc_GCJ=yes 19254 fi 19255 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19256 else 19257 cat conftest.err 1>&5 19258 fi 19259 $rm conftest* 19260 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19261echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 19262 ;; 19263 esac 19264 fi 19265 ;; 19266esac 19267 19268echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19269echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 19270library_names_spec= 19271libname_spec='lib$name' 19272soname_spec= 19273shrext_cmds=".so" 19274postinstall_cmds= 19275postuninstall_cmds= 19276finish_cmds= 19277finish_eval= 19278shlibpath_var= 19279shlibpath_overrides_runpath=unknown 19280version_type=none 19281dynamic_linker="$host_os ld.so" 19282sys_lib_dlsearch_path_spec="/lib /usr/lib" 19283if test "$GCC" = yes; then 19284 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19285 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 19286 # if the path contains ";" then we assume it to be the separator 19287 # otherwise default to the standard path separator (i.e. ":") - it is 19288 # assumed that no part of a normal pathname contains ";" but that should 19289 # okay in the real world where ";" in dirpaths is itself problematic. 19290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19291 else 19292 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19293 fi 19294else 19295 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19296fi 19297need_lib_prefix=unknown 19298hardcode_into_libs=no 19299 19300# when you set need_version to no, make sure it does not cause -set_version 19301# flags to be left without arguments 19302need_version=unknown 19303 19304case $host_os in 19305aix3*) 19306 version_type=linux 19307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19308 shlibpath_var=LIBPATH 19309 19310 # AIX 3 has no versioning support, so we append a major version to the name. 19311 soname_spec='${libname}${release}${shared_ext}$major' 19312 ;; 19313 19314aix4* | aix5*) 19315 version_type=linux 19316 need_lib_prefix=no 19317 need_version=no 19318 hardcode_into_libs=yes 19319 if test "$host_cpu" = ia64; then 19320 # AIX 5 supports IA64 19321 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19322 shlibpath_var=LD_LIBRARY_PATH 19323 else 19324 # With GCC up to 2.95.x, collect2 would create an import file 19325 # for dependence libraries. The import file would start with 19326 # the line `#! .'. This would cause the generated library to 19327 # depend on `.', always an invalid library. This was fixed in 19328 # development snapshots of GCC prior to 3.0. 19329 case $host_os in 19330 aix4 | aix4.[01] | aix4.[01].*) 19331 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19332 echo ' yes ' 19333 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19334 : 19335 else 19336 can_build_shared=no 19337 fi 19338 ;; 19339 esac 19340 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19341 # soname into executable. Probably we can add versioning support to 19342 # collect2, so additional links can be useful in future. 19343 if test "$aix_use_runtimelinking" = yes; then 19344 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19345 # instead of lib<name>.a to let people know that these are not 19346 # typical AIX shared libraries. 19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19348 else 19349 # We preserve .a as extension for shared libraries through AIX4.2 19350 # and later when we are not doing run time linking. 19351 library_names_spec='${libname}${release}.a $libname.a' 19352 soname_spec='${libname}${release}${shared_ext}$major' 19353 fi 19354 shlibpath_var=LIBPATH 19355 fi 19356 ;; 19357 19358amigaos*) 19359 library_names_spec='$libname.ixlibrary $libname.a' 19360 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19361 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' 19362 ;; 19363 19364beos*) 19365 library_names_spec='${libname}${shared_ext}' 19366 dynamic_linker="$host_os ld.so" 19367 shlibpath_var=LIBRARY_PATH 19368 ;; 19369 19370bsdi[45]*) 19371 version_type=linux 19372 need_version=no 19373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19374 soname_spec='${libname}${release}${shared_ext}$major' 19375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19376 shlibpath_var=LD_LIBRARY_PATH 19377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19379 # the default ld.so.conf also contains /usr/contrib/lib and 19380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19381 # libtool to hard-code these into programs 19382 ;; 19383 19384cygwin* | mingw* | pw32*) 19385 version_type=windows 19386 shrext_cmds=".dll" 19387 need_version=no 19388 need_lib_prefix=no 19389 19390 case $GCC,$host_os in 19391 yes,cygwin* | yes,mingw* | yes,pw32*) 19392 library_names_spec='$libname.dll.a' 19393 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19394 postinstall_cmds='base_file=`basename \${file}`~ 19395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19396 dldir=$destdir/`dirname \$dlpath`~ 19397 test -d \$dldir || mkdir -p \$dldir~ 19398 $install_prog $dir/$dlname \$dldir/$dlname~ 19399 chmod a+x \$dldir/$dlname' 19400 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19401 dlpath=$dir/\$dldll~ 19402 $rm \$dlpath' 19403 shlibpath_overrides_runpath=yes 19404 19405 case $host_os in 19406 cygwin*) 19407 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19408 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19409 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19410 ;; 19411 mingw*) 19412 # MinGW DLLs use traditional 'lib' prefix 19413 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19414 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19415 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19416 # It is most probably a Windows format PATH printed by 19417 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19418 # path with ; separators, and with drive letters. We can handle the 19419 # drive letters (cygwin fileutils understands them), so leave them, 19420 # especially as we might pass files found there to a mingw objdump, 19421 # which wouldn't understand a cygwinified path. Ahh. 19422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19423 else 19424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19425 fi 19426 ;; 19427 pw32*) 19428 # pw32 DLLs use 'pw' prefix rather than 'lib' 19429 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19430 ;; 19431 esac 19432 ;; 19433 19434 *) 19435 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19436 ;; 19437 esac 19438 dynamic_linker='Win32 ld.exe' 19439 # FIXME: first we should search . and the directory the executable is in 19440 shlibpath_var=PATH 19441 ;; 19442 19443darwin* | rhapsody*) 19444 dynamic_linker="$host_os dyld" 19445 version_type=darwin 19446 need_lib_prefix=no 19447 need_version=no 19448 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19449 soname_spec='${libname}${release}${major}$shared_ext' 19450 shlibpath_overrides_runpath=yes 19451 shlibpath_var=DYLD_LIBRARY_PATH 19452 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19453 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19454 if test "$GCC" = yes; then 19455 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"` 19456 else 19457 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19458 fi 19459 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19460 ;; 19461 19462dgux*) 19463 version_type=linux 19464 need_lib_prefix=no 19465 need_version=no 19466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19467 soname_spec='${libname}${release}${shared_ext}$major' 19468 shlibpath_var=LD_LIBRARY_PATH 19469 ;; 19470 19471freebsd1*) 19472 dynamic_linker=no 19473 ;; 19474 19475kfreebsd*-gnu) 19476 version_type=linux 19477 need_lib_prefix=no 19478 need_version=no 19479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19480 soname_spec='${libname}${release}${shared_ext}$major' 19481 shlibpath_var=LD_LIBRARY_PATH 19482 shlibpath_overrides_runpath=no 19483 hardcode_into_libs=yes 19484 dynamic_linker='GNU ld.so' 19485 ;; 19486 19487freebsd* | dragonfly*) 19488 # DragonFly does not have aout. When/if they implement a new 19489 # versioning mechanism, adjust this. 19490 if test -x /usr/bin/objformat; then 19491 objformat=`/usr/bin/objformat` 19492 else 19493 case $host_os in 19494 freebsd[123]*) objformat=aout ;; 19495 *) objformat=elf ;; 19496 esac 19497 fi 19498 version_type=freebsd-$objformat 19499 case $version_type in 19500 freebsd-elf*) 19501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19502 need_version=no 19503 need_lib_prefix=no 19504 ;; 19505 freebsd-*) 19506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19507 need_version=yes 19508 ;; 19509 esac 19510 shlibpath_var=LD_LIBRARY_PATH 19511 case $host_os in 19512 freebsd2*) 19513 shlibpath_overrides_runpath=yes 19514 ;; 19515 freebsd3.[01]* | freebsdelf3.[01]*) 19516 shlibpath_overrides_runpath=yes 19517 hardcode_into_libs=yes 19518 ;; 19519 *) # from 3.2 on 19520 shlibpath_overrides_runpath=no 19521 hardcode_into_libs=yes 19522 ;; 19523 esac 19524 ;; 19525 19526gnu*) 19527 version_type=linux 19528 need_lib_prefix=no 19529 need_version=no 19530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19531 soname_spec='${libname}${release}${shared_ext}$major' 19532 shlibpath_var=LD_LIBRARY_PATH 19533 hardcode_into_libs=yes 19534 ;; 19535 19536hpux9* | hpux10* | hpux11*) 19537 # Give a soname corresponding to the major version so that dld.sl refuses to 19538 # link against other versions. 19539 version_type=sunos 19540 need_lib_prefix=no 19541 need_version=no 19542 case $host_cpu in 19543 ia64*) 19544 shrext_cmds='.so' 19545 hardcode_into_libs=yes 19546 dynamic_linker="$host_os dld.so" 19547 shlibpath_var=LD_LIBRARY_PATH 19548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19550 soname_spec='${libname}${release}${shared_ext}$major' 19551 if test "X$HPUX_IA64_MODE" = X32; then 19552 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19553 else 19554 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19555 fi 19556 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19557 ;; 19558 hppa*64*) 19559 shrext_cmds='.sl' 19560 hardcode_into_libs=yes 19561 dynamic_linker="$host_os dld.sl" 19562 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19565 soname_spec='${libname}${release}${shared_ext}$major' 19566 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19568 ;; 19569 *) 19570 shrext_cmds='.sl' 19571 dynamic_linker="$host_os dld.sl" 19572 shlibpath_var=SHLIB_PATH 19573 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19575 soname_spec='${libname}${release}${shared_ext}$major' 19576 ;; 19577 esac 19578 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19579 postinstall_cmds='chmod 555 $lib' 19580 ;; 19581 19582irix5* | irix6* | nonstopux*) 19583 case $host_os in 19584 nonstopux*) version_type=nonstopux ;; 19585 *) 19586 if test "$lt_cv_prog_gnu_ld" = yes; then 19587 version_type=linux 19588 else 19589 version_type=irix 19590 fi ;; 19591 esac 19592 need_lib_prefix=no 19593 need_version=no 19594 soname_spec='${libname}${release}${shared_ext}$major' 19595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19596 case $host_os in 19597 irix5* | nonstopux*) 19598 libsuff= shlibsuff= 19599 ;; 19600 *) 19601 case $LD in # libtool.m4 will add one of these switches to LD 19602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19603 libsuff= shlibsuff= libmagic=32-bit;; 19604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19605 libsuff=32 shlibsuff=N32 libmagic=N32;; 19606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19607 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19608 *) libsuff= shlibsuff= libmagic=never-match;; 19609 esac 19610 ;; 19611 esac 19612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19613 shlibpath_overrides_runpath=no 19614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19616 hardcode_into_libs=yes 19617 ;; 19618 19619# No shared lib support for Linux oldld, aout, or coff. 19620linux*oldld* | linux*aout* | linux*coff*) 19621 dynamic_linker=no 19622 ;; 19623 19624# This must be Linux ELF. 19625linux*) 19626 version_type=linux 19627 need_lib_prefix=no 19628 need_version=no 19629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19630 soname_spec='${libname}${release}${shared_ext}$major' 19631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19632 shlibpath_var=LD_LIBRARY_PATH 19633 shlibpath_overrides_runpath=no 19634 # This implies no fast_install, which is unacceptable. 19635 # Some rework will be needed to allow for fast_install 19636 # before this can be enabled. 19637 hardcode_into_libs=yes 19638 19639 # Append ld.so.conf contents to the search path 19640 if test -f /etc/ld.so.conf; then 19641 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 19642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19643 fi 19644 19645 # We used to test for /lib/ld.so.1 and disable shared libraries on 19646 # powerpc, because MkLinux only supported shared libraries with the 19647 # GNU dynamic linker. Since this was broken with cross compilers, 19648 # most powerpc-linux boxes support dynamic linking these days and 19649 # people can always --disable-shared, the test was removed, and we 19650 # assume the GNU/Linux dynamic linker is in use. 19651 dynamic_linker='GNU/Linux ld.so' 19652 ;; 19653 19654knetbsd*-gnu) 19655 version_type=linux 19656 need_lib_prefix=no 19657 need_version=no 19658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19659 soname_spec='${libname}${release}${shared_ext}$major' 19660 shlibpath_var=LD_LIBRARY_PATH 19661 shlibpath_overrides_runpath=no 19662 hardcode_into_libs=yes 19663 dynamic_linker='GNU ld.so' 19664 ;; 19665 19666netbsd*) 19667 version_type=sunos 19668 need_lib_prefix=no 19669 need_version=no 19670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19673 dynamic_linker='NetBSD (a.out) ld.so' 19674 else 19675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19676 soname_spec='${libname}${release}${shared_ext}$major' 19677 dynamic_linker='NetBSD ld.elf_so' 19678 fi 19679 shlibpath_var=LD_LIBRARY_PATH 19680 shlibpath_overrides_runpath=yes 19681 hardcode_into_libs=yes 19682 ;; 19683 19684newsos6) 19685 version_type=linux 19686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19687 shlibpath_var=LD_LIBRARY_PATH 19688 shlibpath_overrides_runpath=yes 19689 ;; 19690 19691nto-qnx*) 19692 version_type=linux 19693 need_lib_prefix=no 19694 need_version=no 19695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19696 soname_spec='${libname}${release}${shared_ext}$major' 19697 shlibpath_var=LD_LIBRARY_PATH 19698 shlibpath_overrides_runpath=yes 19699 ;; 19700 19701openbsd*) 19702 version_type=sunos 19703 need_lib_prefix=no 19704 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19705 case $host_os in 19706 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19707 *) need_version=no ;; 19708 esac 19709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19711 shlibpath_var=LD_LIBRARY_PATH 19712 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19713 case $host_os in 19714 openbsd2.[89] | openbsd2.[89].*) 19715 shlibpath_overrides_runpath=no 19716 ;; 19717 *) 19718 shlibpath_overrides_runpath=yes 19719 ;; 19720 esac 19721 else 19722 shlibpath_overrides_runpath=yes 19723 fi 19724 ;; 19725 19726os2*) 19727 libname_spec='$name' 19728 shrext_cmds=".dll" 19729 need_lib_prefix=no 19730 library_names_spec='$libname${shared_ext} $libname.a' 19731 dynamic_linker='OS/2 ld.exe' 19732 shlibpath_var=LIBPATH 19733 ;; 19734 19735osf3* | osf4* | osf5*) 19736 version_type=osf 19737 need_lib_prefix=no 19738 need_version=no 19739 soname_spec='${libname}${release}${shared_ext}$major' 19740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19741 shlibpath_var=LD_LIBRARY_PATH 19742 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19743 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19744 ;; 19745 19746sco3.2v5*) 19747 version_type=osf 19748 soname_spec='${libname}${release}${shared_ext}$major' 19749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19750 shlibpath_var=LD_LIBRARY_PATH 19751 ;; 19752 19753solaris*) 19754 version_type=linux 19755 need_lib_prefix=no 19756 need_version=no 19757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19758 soname_spec='${libname}${release}${shared_ext}$major' 19759 shlibpath_var=LD_LIBRARY_PATH 19760 shlibpath_overrides_runpath=yes 19761 hardcode_into_libs=yes 19762 # ldd complains unless libraries are executable 19763 postinstall_cmds='chmod +x $lib' 19764 ;; 19765 19766sunos4*) 19767 version_type=sunos 19768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19769 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19770 shlibpath_var=LD_LIBRARY_PATH 19771 shlibpath_overrides_runpath=yes 19772 if test "$with_gnu_ld" = yes; then 19773 need_lib_prefix=no 19774 fi 19775 need_version=yes 19776 ;; 19777 19778sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19779 version_type=linux 19780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19781 soname_spec='${libname}${release}${shared_ext}$major' 19782 shlibpath_var=LD_LIBRARY_PATH 19783 case $host_vendor in 19784 sni) 19785 shlibpath_overrides_runpath=no 19786 need_lib_prefix=no 19787 export_dynamic_flag_spec='${wl}-Blargedynsym' 19788 runpath_var=LD_RUN_PATH 19789 ;; 19790 siemens) 19791 need_lib_prefix=no 19792 ;; 19793 motorola) 19794 need_lib_prefix=no 19795 need_version=no 19796 shlibpath_overrides_runpath=no 19797 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19798 ;; 19799 esac 19800 ;; 19801 19802sysv4*MP*) 19803 if test -d /usr/nec ;then 19804 version_type=linux 19805 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19806 soname_spec='$libname${shared_ext}.$major' 19807 shlibpath_var=LD_LIBRARY_PATH 19808 fi 19809 ;; 19810 19811uts4*) 19812 version_type=linux 19813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19814 soname_spec='${libname}${release}${shared_ext}$major' 19815 shlibpath_var=LD_LIBRARY_PATH 19816 ;; 19817 19818*) 19819 dynamic_linker=no 19820 ;; 19821esac 19822echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19823echo "${ECHO_T}$dynamic_linker" >&6 19824test "$dynamic_linker" = no && can_build_shared=no 19825 19826echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19827echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19828hardcode_action_GCJ= 19829if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19830 test -n "$runpath_var_GCJ" || \ 19831 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19832 19833 # We can hardcode non-existant directories. 19834 if test "$hardcode_direct_GCJ" != no && 19835 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19836 # have to relink, otherwise we might link with an installed library 19837 # when we should be linking with a yet-to-be-installed one 19838 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19839 test "$hardcode_minus_L_GCJ" != no; then 19840 # Linking always hardcodes the temporary library directory. 19841 hardcode_action_GCJ=relink 19842 else 19843 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19844 hardcode_action_GCJ=immediate 19845 fi 19846else 19847 # We cannot hardcode anything, or else we can only hardcode existing 19848 # directories. 19849 hardcode_action_GCJ=unsupported 19850fi 19851echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19852echo "${ECHO_T}$hardcode_action_GCJ" >&6 19853 19854if test "$hardcode_action_GCJ" = relink; then 19855 # Fast installation is not supported 19856 enable_fast_install=no 19857elif test "$shlibpath_overrides_runpath" = yes || 19858 test "$enable_shared" = no; then 19859 # Fast installation is not necessary 19860 enable_fast_install=needless 19861fi 19862 19863striplib= 19864old_striplib= 19865echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 19866echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 19867if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 19868 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19869 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19870 echo "$as_me:$LINENO: result: yes" >&5 19871echo "${ECHO_T}yes" >&6 19872else 19873# FIXME - insert some real tests, host_os isn't really good enough 19874 case $host_os in 19875 darwin*) 19876 if test -n "$STRIP" ; then 19877 striplib="$STRIP -x" 19878 echo "$as_me:$LINENO: result: yes" >&5 19879echo "${ECHO_T}yes" >&6 19880 else 19881 echo "$as_me:$LINENO: result: no" >&5 19882echo "${ECHO_T}no" >&6 19883fi 19884 ;; 19885 *) 19886 echo "$as_me:$LINENO: result: no" >&5 19887echo "${ECHO_T}no" >&6 19888 ;; 19889 esac 19890fi 19891 19892if test "x$enable_dlopen" != xyes; then 19893 enable_dlopen=unknown 19894 enable_dlopen_self=unknown 19895 enable_dlopen_self_static=unknown 19896else 19897 lt_cv_dlopen=no 19898 lt_cv_dlopen_libs= 19899 19900 case $host_os in 19901 beos*) 19902 lt_cv_dlopen="load_add_on" 19903 lt_cv_dlopen_libs= 19904 lt_cv_dlopen_self=yes 19905 ;; 19906 19907 mingw* | pw32*) 19908 lt_cv_dlopen="LoadLibrary" 19909 lt_cv_dlopen_libs= 19910 ;; 19911 19912 cygwin*) 19913 lt_cv_dlopen="dlopen" 19914 lt_cv_dlopen_libs= 19915 ;; 19916 19917 darwin*) 19918 # if libdl is installed we need to link against it 19919 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19920echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 19921if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19922 echo $ECHO_N "(cached) $ECHO_C" >&6 19923else 19924 ac_check_lib_save_LIBS=$LIBS 19925LIBS="-ldl $LIBS" 19926cat >conftest.$ac_ext <<_ACEOF 19927/* confdefs.h. */ 19928_ACEOF 19929cat confdefs.h >>conftest.$ac_ext 19930cat >>conftest.$ac_ext <<_ACEOF 19931/* end confdefs.h. */ 19932 19933/* Override any gcc2 internal prototype to avoid an error. */ 19934#ifdef __cplusplus 19935extern "C" 19936#endif 19937/* We use char because int might match the return type of a gcc2 19938 builtin and then its argument prototype would still apply. */ 19939char dlopen (); 19940int 19941main () 19942{ 19943dlopen (); 19944 ; 19945 return 0; 19946} 19947_ACEOF 19948rm -f conftest.$ac_objext conftest$ac_exeext 19949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19950 (eval $ac_link) 2>conftest.er1 19951 ac_status=$? 19952 grep -v '^ *+' conftest.er1 >conftest.err 19953 rm -f conftest.er1 19954 cat conftest.err >&5 19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19956 (exit $ac_status); } && 19957 { ac_try='test -z "$ac_c_werror_flag" 19958 || test ! -s conftest.err' 19959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19960 (eval $ac_try) 2>&5 19961 ac_status=$? 19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19963 (exit $ac_status); }; } && 19964 { ac_try='test -s conftest$ac_exeext' 19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19966 (eval $ac_try) 2>&5 19967 ac_status=$? 19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19969 (exit $ac_status); }; }; then 19970 ac_cv_lib_dl_dlopen=yes 19971else 19972 echo "$as_me: failed program was:" >&5 19973sed 's/^/| /' conftest.$ac_ext >&5 19974 19975ac_cv_lib_dl_dlopen=no 19976fi 19977rm -f conftest.err conftest.$ac_objext \ 19978 conftest$ac_exeext conftest.$ac_ext 19979LIBS=$ac_check_lib_save_LIBS 19980fi 19981echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19982echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 19983if test $ac_cv_lib_dl_dlopen = yes; then 19984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 19985else 19986 19987 lt_cv_dlopen="dyld" 19988 lt_cv_dlopen_libs= 19989 lt_cv_dlopen_self=yes 19990 19991fi 19992 19993 ;; 19994 19995 *) 19996 echo "$as_me:$LINENO: checking for shl_load" >&5 19997echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 19998if test "${ac_cv_func_shl_load+set}" = set; then 19999 echo $ECHO_N "(cached) $ECHO_C" >&6 20000else 20001 cat >conftest.$ac_ext <<_ACEOF 20002/* confdefs.h. */ 20003_ACEOF 20004cat confdefs.h >>conftest.$ac_ext 20005cat >>conftest.$ac_ext <<_ACEOF 20006/* end confdefs.h. */ 20007/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 20008 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20009#define shl_load innocuous_shl_load 20010 20011/* System header to define __stub macros and hopefully few prototypes, 20012 which can conflict with char shl_load (); below. 20013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20014 <limits.h> exists even on freestanding compilers. */ 20015 20016#ifdef __STDC__ 20017# include <limits.h> 20018#else 20019# include <assert.h> 20020#endif 20021 20022#undef shl_load 20023 20024/* Override any gcc2 internal prototype to avoid an error. */ 20025#ifdef __cplusplus 20026extern "C" 20027{ 20028#endif 20029/* We use char because int might match the return type of a gcc2 20030 builtin and then its argument prototype would still apply. */ 20031char shl_load (); 20032/* The GNU C library defines this for functions which it implements 20033 to always fail with ENOSYS. Some functions are actually named 20034 something starting with __ and the normal name is an alias. */ 20035#if defined (__stub_shl_load) || defined (__stub___shl_load) 20036choke me 20037#else 20038char (*f) () = shl_load; 20039#endif 20040#ifdef __cplusplus 20041} 20042#endif 20043 20044int 20045main () 20046{ 20047return f != shl_load; 20048 ; 20049 return 0; 20050} 20051_ACEOF 20052rm -f conftest.$ac_objext conftest$ac_exeext 20053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20054 (eval $ac_link) 2>conftest.er1 20055 ac_status=$? 20056 grep -v '^ *+' conftest.er1 >conftest.err 20057 rm -f conftest.er1 20058 cat conftest.err >&5 20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20060 (exit $ac_status); } && 20061 { ac_try='test -z "$ac_c_werror_flag" 20062 || test ! -s conftest.err' 20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20064 (eval $ac_try) 2>&5 20065 ac_status=$? 20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20067 (exit $ac_status); }; } && 20068 { ac_try='test -s conftest$ac_exeext' 20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20070 (eval $ac_try) 2>&5 20071 ac_status=$? 20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20073 (exit $ac_status); }; }; then 20074 ac_cv_func_shl_load=yes 20075else 20076 echo "$as_me: failed program was:" >&5 20077sed 's/^/| /' conftest.$ac_ext >&5 20078 20079ac_cv_func_shl_load=no 20080fi 20081rm -f conftest.err conftest.$ac_objext \ 20082 conftest$ac_exeext conftest.$ac_ext 20083fi 20084echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 20085echo "${ECHO_T}$ac_cv_func_shl_load" >&6 20086if test $ac_cv_func_shl_load = yes; then 20087 lt_cv_dlopen="shl_load" 20088else 20089 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 20090echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 20091if test "${ac_cv_lib_dld_shl_load+set}" = set; then 20092 echo $ECHO_N "(cached) $ECHO_C" >&6 20093else 20094 ac_check_lib_save_LIBS=$LIBS 20095LIBS="-ldld $LIBS" 20096cat >conftest.$ac_ext <<_ACEOF 20097/* confdefs.h. */ 20098_ACEOF 20099cat confdefs.h >>conftest.$ac_ext 20100cat >>conftest.$ac_ext <<_ACEOF 20101/* end confdefs.h. */ 20102 20103/* Override any gcc2 internal prototype to avoid an error. */ 20104#ifdef __cplusplus 20105extern "C" 20106#endif 20107/* We use char because int might match the return type of a gcc2 20108 builtin and then its argument prototype would still apply. */ 20109char shl_load (); 20110int 20111main () 20112{ 20113shl_load (); 20114 ; 20115 return 0; 20116} 20117_ACEOF 20118rm -f conftest.$ac_objext conftest$ac_exeext 20119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20120 (eval $ac_link) 2>conftest.er1 20121 ac_status=$? 20122 grep -v '^ *+' conftest.er1 >conftest.err 20123 rm -f conftest.er1 20124 cat conftest.err >&5 20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20126 (exit $ac_status); } && 20127 { ac_try='test -z "$ac_c_werror_flag" 20128 || test ! -s conftest.err' 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); }; } && 20134 { ac_try='test -s conftest$ac_exeext' 20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20136 (eval $ac_try) 2>&5 20137 ac_status=$? 20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20139 (exit $ac_status); }; }; then 20140 ac_cv_lib_dld_shl_load=yes 20141else 20142 echo "$as_me: failed program was:" >&5 20143sed 's/^/| /' conftest.$ac_ext >&5 20144 20145ac_cv_lib_dld_shl_load=no 20146fi 20147rm -f conftest.err conftest.$ac_objext \ 20148 conftest$ac_exeext conftest.$ac_ext 20149LIBS=$ac_check_lib_save_LIBS 20150fi 20151echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 20152echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 20153if test $ac_cv_lib_dld_shl_load = yes; then 20154 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 20155else 20156 echo "$as_me:$LINENO: checking for dlopen" >&5 20157echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 20158if test "${ac_cv_func_dlopen+set}" = set; then 20159 echo $ECHO_N "(cached) $ECHO_C" >&6 20160else 20161 cat >conftest.$ac_ext <<_ACEOF 20162/* confdefs.h. */ 20163_ACEOF 20164cat confdefs.h >>conftest.$ac_ext 20165cat >>conftest.$ac_ext <<_ACEOF 20166/* end confdefs.h. */ 20167/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 20168 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20169#define dlopen innocuous_dlopen 20170 20171/* System header to define __stub macros and hopefully few prototypes, 20172 which can conflict with char dlopen (); below. 20173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20174 <limits.h> exists even on freestanding compilers. */ 20175 20176#ifdef __STDC__ 20177# include <limits.h> 20178#else 20179# include <assert.h> 20180#endif 20181 20182#undef dlopen 20183 20184/* Override any gcc2 internal prototype to avoid an error. */ 20185#ifdef __cplusplus 20186extern "C" 20187{ 20188#endif 20189/* We use char because int might match the return type of a gcc2 20190 builtin and then its argument prototype would still apply. */ 20191char dlopen (); 20192/* The GNU C library defines this for functions which it implements 20193 to always fail with ENOSYS. Some functions are actually named 20194 something starting with __ and the normal name is an alias. */ 20195#if defined (__stub_dlopen) || defined (__stub___dlopen) 20196choke me 20197#else 20198char (*f) () = dlopen; 20199#endif 20200#ifdef __cplusplus 20201} 20202#endif 20203 20204int 20205main () 20206{ 20207return f != dlopen; 20208 ; 20209 return 0; 20210} 20211_ACEOF 20212rm -f conftest.$ac_objext conftest$ac_exeext 20213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20214 (eval $ac_link) 2>conftest.er1 20215 ac_status=$? 20216 grep -v '^ *+' conftest.er1 >conftest.err 20217 rm -f conftest.er1 20218 cat conftest.err >&5 20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20220 (exit $ac_status); } && 20221 { ac_try='test -z "$ac_c_werror_flag" 20222 || test ! -s conftest.err' 20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20224 (eval $ac_try) 2>&5 20225 ac_status=$? 20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20227 (exit $ac_status); }; } && 20228 { ac_try='test -s conftest$ac_exeext' 20229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20230 (eval $ac_try) 2>&5 20231 ac_status=$? 20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20233 (exit $ac_status); }; }; then 20234 ac_cv_func_dlopen=yes 20235else 20236 echo "$as_me: failed program was:" >&5 20237sed 's/^/| /' conftest.$ac_ext >&5 20238 20239ac_cv_func_dlopen=no 20240fi 20241rm -f conftest.err conftest.$ac_objext \ 20242 conftest$ac_exeext conftest.$ac_ext 20243fi 20244echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 20245echo "${ECHO_T}$ac_cv_func_dlopen" >&6 20246if test $ac_cv_func_dlopen = yes; then 20247 lt_cv_dlopen="dlopen" 20248else 20249 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20250echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 20251if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20252 echo $ECHO_N "(cached) $ECHO_C" >&6 20253else 20254 ac_check_lib_save_LIBS=$LIBS 20255LIBS="-ldl $LIBS" 20256cat >conftest.$ac_ext <<_ACEOF 20257/* confdefs.h. */ 20258_ACEOF 20259cat confdefs.h >>conftest.$ac_ext 20260cat >>conftest.$ac_ext <<_ACEOF 20261/* end confdefs.h. */ 20262 20263/* Override any gcc2 internal prototype to avoid an error. */ 20264#ifdef __cplusplus 20265extern "C" 20266#endif 20267/* We use char because int might match the return type of a gcc2 20268 builtin and then its argument prototype would still apply. */ 20269char dlopen (); 20270int 20271main () 20272{ 20273dlopen (); 20274 ; 20275 return 0; 20276} 20277_ACEOF 20278rm -f conftest.$ac_objext conftest$ac_exeext 20279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20280 (eval $ac_link) 2>conftest.er1 20281 ac_status=$? 20282 grep -v '^ *+' conftest.er1 >conftest.err 20283 rm -f conftest.er1 20284 cat conftest.err >&5 20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20286 (exit $ac_status); } && 20287 { ac_try='test -z "$ac_c_werror_flag" 20288 || test ! -s conftest.err' 20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20290 (eval $ac_try) 2>&5 20291 ac_status=$? 20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20293 (exit $ac_status); }; } && 20294 { ac_try='test -s conftest$ac_exeext' 20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20296 (eval $ac_try) 2>&5 20297 ac_status=$? 20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20299 (exit $ac_status); }; }; then 20300 ac_cv_lib_dl_dlopen=yes 20301else 20302 echo "$as_me: failed program was:" >&5 20303sed 's/^/| /' conftest.$ac_ext >&5 20304 20305ac_cv_lib_dl_dlopen=no 20306fi 20307rm -f conftest.err conftest.$ac_objext \ 20308 conftest$ac_exeext conftest.$ac_ext 20309LIBS=$ac_check_lib_save_LIBS 20310fi 20311echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20312echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20313if test $ac_cv_lib_dl_dlopen = yes; then 20314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 20315else 20316 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 20317echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 20318if test "${ac_cv_lib_svld_dlopen+set}" = set; then 20319 echo $ECHO_N "(cached) $ECHO_C" >&6 20320else 20321 ac_check_lib_save_LIBS=$LIBS 20322LIBS="-lsvld $LIBS" 20323cat >conftest.$ac_ext <<_ACEOF 20324/* confdefs.h. */ 20325_ACEOF 20326cat confdefs.h >>conftest.$ac_ext 20327cat >>conftest.$ac_ext <<_ACEOF 20328/* end confdefs.h. */ 20329 20330/* Override any gcc2 internal prototype to avoid an error. */ 20331#ifdef __cplusplus 20332extern "C" 20333#endif 20334/* We use char because int might match the return type of a gcc2 20335 builtin and then its argument prototype would still apply. */ 20336char dlopen (); 20337int 20338main () 20339{ 20340dlopen (); 20341 ; 20342 return 0; 20343} 20344_ACEOF 20345rm -f conftest.$ac_objext conftest$ac_exeext 20346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20347 (eval $ac_link) 2>conftest.er1 20348 ac_status=$? 20349 grep -v '^ *+' conftest.er1 >conftest.err 20350 rm -f conftest.er1 20351 cat conftest.err >&5 20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20353 (exit $ac_status); } && 20354 { ac_try='test -z "$ac_c_werror_flag" 20355 || test ! -s conftest.err' 20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20357 (eval $ac_try) 2>&5 20358 ac_status=$? 20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20360 (exit $ac_status); }; } && 20361 { ac_try='test -s conftest$ac_exeext' 20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20363 (eval $ac_try) 2>&5 20364 ac_status=$? 20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20366 (exit $ac_status); }; }; then 20367 ac_cv_lib_svld_dlopen=yes 20368else 20369 echo "$as_me: failed program was:" >&5 20370sed 's/^/| /' conftest.$ac_ext >&5 20371 20372ac_cv_lib_svld_dlopen=no 20373fi 20374rm -f conftest.err conftest.$ac_objext \ 20375 conftest$ac_exeext conftest.$ac_ext 20376LIBS=$ac_check_lib_save_LIBS 20377fi 20378echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 20379echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 20380if test $ac_cv_lib_svld_dlopen = yes; then 20381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 20382else 20383 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 20384echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 20385if test "${ac_cv_lib_dld_dld_link+set}" = set; then 20386 echo $ECHO_N "(cached) $ECHO_C" >&6 20387else 20388 ac_check_lib_save_LIBS=$LIBS 20389LIBS="-ldld $LIBS" 20390cat >conftest.$ac_ext <<_ACEOF 20391/* confdefs.h. */ 20392_ACEOF 20393cat confdefs.h >>conftest.$ac_ext 20394cat >>conftest.$ac_ext <<_ACEOF 20395/* end confdefs.h. */ 20396 20397/* Override any gcc2 internal prototype to avoid an error. */ 20398#ifdef __cplusplus 20399extern "C" 20400#endif 20401/* We use char because int might match the return type of a gcc2 20402 builtin and then its argument prototype would still apply. */ 20403char dld_link (); 20404int 20405main () 20406{ 20407dld_link (); 20408 ; 20409 return 0; 20410} 20411_ACEOF 20412rm -f conftest.$ac_objext conftest$ac_exeext 20413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20414 (eval $ac_link) 2>conftest.er1 20415 ac_status=$? 20416 grep -v '^ *+' conftest.er1 >conftest.err 20417 rm -f conftest.er1 20418 cat conftest.err >&5 20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20420 (exit $ac_status); } && 20421 { ac_try='test -z "$ac_c_werror_flag" 20422 || test ! -s conftest.err' 20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20424 (eval $ac_try) 2>&5 20425 ac_status=$? 20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20427 (exit $ac_status); }; } && 20428 { ac_try='test -s conftest$ac_exeext' 20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20430 (eval $ac_try) 2>&5 20431 ac_status=$? 20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20433 (exit $ac_status); }; }; then 20434 ac_cv_lib_dld_dld_link=yes 20435else 20436 echo "$as_me: failed program was:" >&5 20437sed 's/^/| /' conftest.$ac_ext >&5 20438 20439ac_cv_lib_dld_dld_link=no 20440fi 20441rm -f conftest.err conftest.$ac_objext \ 20442 conftest$ac_exeext conftest.$ac_ext 20443LIBS=$ac_check_lib_save_LIBS 20444fi 20445echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 20446echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 20447if test $ac_cv_lib_dld_dld_link = yes; then 20448 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 20449fi 20450 20451 20452fi 20453 20454 20455fi 20456 20457 20458fi 20459 20460 20461fi 20462 20463 20464fi 20465 20466 ;; 20467 esac 20468 20469 if test "x$lt_cv_dlopen" != xno; then 20470 enable_dlopen=yes 20471 else 20472 enable_dlopen=no 20473 fi 20474 20475 case $lt_cv_dlopen in 20476 dlopen) 20477 save_CPPFLAGS="$CPPFLAGS" 20478 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20479 20480 save_LDFLAGS="$LDFLAGS" 20481 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20482 20483 save_LIBS="$LIBS" 20484 LIBS="$lt_cv_dlopen_libs $LIBS" 20485 20486 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 20487echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 20488if test "${lt_cv_dlopen_self+set}" = set; then 20489 echo $ECHO_N "(cached) $ECHO_C" >&6 20490else 20491 if test "$cross_compiling" = yes; then : 20492 lt_cv_dlopen_self=cross 20493else 20494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20495 lt_status=$lt_dlunknown 20496 cat > conftest.$ac_ext <<EOF 20497#line 20497 "configure" 20498#include "confdefs.h" 20499 20500#if HAVE_DLFCN_H 20501#include <dlfcn.h> 20502#endif 20503 20504#include <stdio.h> 20505 20506#ifdef RTLD_GLOBAL 20507# define LT_DLGLOBAL RTLD_GLOBAL 20508#else 20509# ifdef DL_GLOBAL 20510# define LT_DLGLOBAL DL_GLOBAL 20511# else 20512# define LT_DLGLOBAL 0 20513# endif 20514#endif 20515 20516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20517 find out it does not work in some platform. */ 20518#ifndef LT_DLLAZY_OR_NOW 20519# ifdef RTLD_LAZY 20520# define LT_DLLAZY_OR_NOW RTLD_LAZY 20521# else 20522# ifdef DL_LAZY 20523# define LT_DLLAZY_OR_NOW DL_LAZY 20524# else 20525# ifdef RTLD_NOW 20526# define LT_DLLAZY_OR_NOW RTLD_NOW 20527# else 20528# ifdef DL_NOW 20529# define LT_DLLAZY_OR_NOW DL_NOW 20530# else 20531# define LT_DLLAZY_OR_NOW 0 20532# endif 20533# endif 20534# endif 20535# endif 20536#endif 20537 20538#ifdef __cplusplus 20539extern "C" void exit (int); 20540#endif 20541 20542void fnord() { int i=42;} 20543int main () 20544{ 20545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20546 int status = $lt_dlunknown; 20547 20548 if (self) 20549 { 20550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20551 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20552 /* dlclose (self); */ 20553 } 20554 20555 exit (status); 20556} 20557EOF 20558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20559 (eval $ac_link) 2>&5 20560 ac_status=$? 20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20562 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20563 (./conftest; exit; ) >&5 2>/dev/null 20564 lt_status=$? 20565 case x$lt_status in 20566 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20567 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20568 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 20569 esac 20570 else : 20571 # compilation failed 20572 lt_cv_dlopen_self=no 20573 fi 20574fi 20575rm -fr conftest* 20576 20577 20578fi 20579echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 20580echo "${ECHO_T}$lt_cv_dlopen_self" >&6 20581 20582 if test "x$lt_cv_dlopen_self" = xyes; then 20583 LDFLAGS="$LDFLAGS $link_static_flag" 20584 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 20585echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 20586if test "${lt_cv_dlopen_self_static+set}" = set; then 20587 echo $ECHO_N "(cached) $ECHO_C" >&6 20588else 20589 if test "$cross_compiling" = yes; then : 20590 lt_cv_dlopen_self_static=cross 20591else 20592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20593 lt_status=$lt_dlunknown 20594 cat > conftest.$ac_ext <<EOF 20595#line 20595 "configure" 20596#include "confdefs.h" 20597 20598#if HAVE_DLFCN_H 20599#include <dlfcn.h> 20600#endif 20601 20602#include <stdio.h> 20603 20604#ifdef RTLD_GLOBAL 20605# define LT_DLGLOBAL RTLD_GLOBAL 20606#else 20607# ifdef DL_GLOBAL 20608# define LT_DLGLOBAL DL_GLOBAL 20609# else 20610# define LT_DLGLOBAL 0 20611# endif 20612#endif 20613 20614/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20615 find out it does not work in some platform. */ 20616#ifndef LT_DLLAZY_OR_NOW 20617# ifdef RTLD_LAZY 20618# define LT_DLLAZY_OR_NOW RTLD_LAZY 20619# else 20620# ifdef DL_LAZY 20621# define LT_DLLAZY_OR_NOW DL_LAZY 20622# else 20623# ifdef RTLD_NOW 20624# define LT_DLLAZY_OR_NOW RTLD_NOW 20625# else 20626# ifdef DL_NOW 20627# define LT_DLLAZY_OR_NOW DL_NOW 20628# else 20629# define LT_DLLAZY_OR_NOW 0 20630# endif 20631# endif 20632# endif 20633# endif 20634#endif 20635 20636#ifdef __cplusplus 20637extern "C" void exit (int); 20638#endif 20639 20640void fnord() { int i=42;} 20641int main () 20642{ 20643 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20644 int status = $lt_dlunknown; 20645 20646 if (self) 20647 { 20648 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20649 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20650 /* dlclose (self); */ 20651 } 20652 20653 exit (status); 20654} 20655EOF 20656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20657 (eval $ac_link) 2>&5 20658 ac_status=$? 20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20661 (./conftest; exit; ) >&5 2>/dev/null 20662 lt_status=$? 20663 case x$lt_status in 20664 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20665 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20666 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 20667 esac 20668 else : 20669 # compilation failed 20670 lt_cv_dlopen_self_static=no 20671 fi 20672fi 20673rm -fr conftest* 20674 20675 20676fi 20677echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 20678echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 20679 fi 20680 20681 CPPFLAGS="$save_CPPFLAGS" 20682 LDFLAGS="$save_LDFLAGS" 20683 LIBS="$save_LIBS" 20684 ;; 20685 esac 20686 20687 case $lt_cv_dlopen_self in 20688 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20689 *) enable_dlopen_self=unknown ;; 20690 esac 20691 20692 case $lt_cv_dlopen_self_static in 20693 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20694 *) enable_dlopen_self_static=unknown ;; 20695 esac 20696fi 20697 20698 20699# The else clause should only fire when bootstrapping the 20700# libtool distribution, otherwise you forgot to ship ltmain.sh 20701# with your package, and you will get complaints that there are 20702# no rules to generate ltmain.sh. 20703if test -f "$ltmain"; then 20704 # See if we are running on zsh, and set the options which allow our commands through 20705 # without removal of \ escapes. 20706 if test -n "${ZSH_VERSION+set}" ; then 20707 setopt NO_GLOB_SUBST 20708 fi 20709 # Now quote all the things that may contain metacharacters while being 20710 # careful not to overquote the AC_SUBSTed values. We take copies of the 20711 # variables and quote the copies for generation of the libtool script. 20712 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 20713 SED SHELL STRIP \ 20714 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20715 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20716 deplibs_check_method reload_flag reload_cmds need_locks \ 20717 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20718 lt_cv_sys_global_symbol_to_c_name_address \ 20719 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20720 old_postinstall_cmds old_postuninstall_cmds \ 20721 compiler_GCJ \ 20722 CC_GCJ \ 20723 LD_GCJ \ 20724 lt_prog_compiler_wl_GCJ \ 20725 lt_prog_compiler_pic_GCJ \ 20726 lt_prog_compiler_static_GCJ \ 20727 lt_prog_compiler_no_builtin_flag_GCJ \ 20728 export_dynamic_flag_spec_GCJ \ 20729 thread_safe_flag_spec_GCJ \ 20730 whole_archive_flag_spec_GCJ \ 20731 enable_shared_with_static_runtimes_GCJ \ 20732 old_archive_cmds_GCJ \ 20733 old_archive_from_new_cmds_GCJ \ 20734 predep_objects_GCJ \ 20735 postdep_objects_GCJ \ 20736 predeps_GCJ \ 20737 postdeps_GCJ \ 20738 compiler_lib_search_path_GCJ \ 20739 archive_cmds_GCJ \ 20740 archive_expsym_cmds_GCJ \ 20741 postinstall_cmds_GCJ \ 20742 postuninstall_cmds_GCJ \ 20743 old_archive_from_expsyms_cmds_GCJ \ 20744 allow_undefined_flag_GCJ \ 20745 no_undefined_flag_GCJ \ 20746 export_symbols_cmds_GCJ \ 20747 hardcode_libdir_flag_spec_GCJ \ 20748 hardcode_libdir_flag_spec_ld_GCJ \ 20749 hardcode_libdir_separator_GCJ \ 20750 hardcode_automatic_GCJ \ 20751 module_cmds_GCJ \ 20752 module_expsym_cmds_GCJ \ 20753 lt_cv_prog_compiler_c_o_GCJ \ 20754 exclude_expsyms_GCJ \ 20755 include_expsyms_GCJ; do 20756 20757 case $var in 20758 old_archive_cmds_GCJ | \ 20759 old_archive_from_new_cmds_GCJ | \ 20760 archive_cmds_GCJ | \ 20761 archive_expsym_cmds_GCJ | \ 20762 module_cmds_GCJ | \ 20763 module_expsym_cmds_GCJ | \ 20764 old_archive_from_expsyms_cmds_GCJ | \ 20765 export_symbols_cmds_GCJ | \ 20766 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20767 postinstall_cmds | postuninstall_cmds | \ 20768 old_postinstall_cmds | old_postuninstall_cmds | \ 20769 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20770 # Double-quote double-evaled strings. 20771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20772 ;; 20773 *) 20774 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20775 ;; 20776 esac 20777 done 20778 20779 case $lt_echo in 20780 *'\$0 --fallback-echo"') 20781 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20782 ;; 20783 esac 20784 20785cfgfile="$ofile" 20786 20787 cat <<__EOF__ >> "$cfgfile" 20788# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20789 20790# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20791 20792# Shell to use when invoking shell scripts. 20793SHELL=$lt_SHELL 20794 20795# Whether or not to build shared libraries. 20796build_libtool_libs=$enable_shared 20797 20798# Whether or not to build static libraries. 20799build_old_libs=$enable_static 20800 20801# Whether or not to add -lc for building shared libraries. 20802build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20803 20804# Whether or not to disallow shared libs when runtime libs are static 20805allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20806 20807# Whether or not to optimize for fast installation. 20808fast_install=$enable_fast_install 20809 20810# The host system. 20811host_alias=$host_alias 20812host=$host 20813host_os=$host_os 20814 20815# The build system. 20816build_alias=$build_alias 20817build=$build 20818build_os=$build_os 20819 20820# An echo program that does not interpret backslashes. 20821echo=$lt_echo 20822 20823# The archiver. 20824AR=$lt_AR 20825AR_FLAGS=$lt_AR_FLAGS 20826 20827# A C compiler. 20828LTCC=$lt_LTCC 20829 20830# A language-specific compiler. 20831CC=$lt_compiler_GCJ 20832 20833# Is the compiler the GNU C compiler? 20834with_gcc=$GCC_GCJ 20835 20836# An ERE matcher. 20837EGREP=$lt_EGREP 20838 20839# The linker used to build libraries. 20840LD=$lt_LD_GCJ 20841 20842# Whether we need hard or soft links. 20843LN_S=$lt_LN_S 20844 20845# A BSD-compatible nm program. 20846NM=$lt_NM 20847 20848# A symbol stripping program 20849STRIP=$lt_STRIP 20850 20851# Used to examine libraries when file_magic_cmd begins "file" 20852MAGIC_CMD=$MAGIC_CMD 20853 20854# Used on cygwin: DLL creation program. 20855DLLTOOL="$DLLTOOL" 20856 20857# Used on cygwin: object dumper. 20858OBJDUMP="$OBJDUMP" 20859 20860# Used on cygwin: assembler. 20861AS="$AS" 20862 20863# The name of the directory that contains temporary libtool files. 20864objdir=$objdir 20865 20866# How to create reloadable object files. 20867reload_flag=$lt_reload_flag 20868reload_cmds=$lt_reload_cmds 20869 20870# How to pass a linker flag through the compiler. 20871wl=$lt_lt_prog_compiler_wl_GCJ 20872 20873# Object file suffix (normally "o"). 20874objext="$ac_objext" 20875 20876# Old archive suffix (normally "a"). 20877libext="$libext" 20878 20879# Shared library suffix (normally ".so"). 20880shrext_cmds='$shrext_cmds' 20881 20882# Executable file suffix (normally ""). 20883exeext="$exeext" 20884 20885# Additional compiler flags for building library objects. 20886pic_flag=$lt_lt_prog_compiler_pic_GCJ 20887pic_mode=$pic_mode 20888 20889# What is the maximum length of a command? 20890max_cmd_len=$lt_cv_sys_max_cmd_len 20891 20892# Does compiler simultaneously support -c and -o options? 20893compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20894 20895# Must we lock files when doing compilation? 20896need_locks=$lt_need_locks 20897 20898# Do we need the lib prefix for modules? 20899need_lib_prefix=$need_lib_prefix 20900 20901# Do we need a version for libraries? 20902need_version=$need_version 20903 20904# Whether dlopen is supported. 20905dlopen_support=$enable_dlopen 20906 20907# Whether dlopen of programs is supported. 20908dlopen_self=$enable_dlopen_self 20909 20910# Whether dlopen of statically linked programs is supported. 20911dlopen_self_static=$enable_dlopen_self_static 20912 20913# Compiler flag to prevent dynamic linking. 20914link_static_flag=$lt_lt_prog_compiler_static_GCJ 20915 20916# Compiler flag to turn off builtin functions. 20917no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20918 20919# Compiler flag to allow reflexive dlopens. 20920export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20921 20922# Compiler flag to generate shared objects directly from archives. 20923whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20924 20925# Compiler flag to generate thread-safe objects. 20926thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20927 20928# Library versioning type. 20929version_type=$version_type 20930 20931# Format of library name prefix. 20932libname_spec=$lt_libname_spec 20933 20934# List of archive names. First name is the real one, the rest are links. 20935# The last name is the one that the linker finds with -lNAME. 20936library_names_spec=$lt_library_names_spec 20937 20938# The coded name of the library, if different from the real name. 20939soname_spec=$lt_soname_spec 20940 20941# Commands used to build and install an old-style archive. 20942RANLIB=$lt_RANLIB 20943old_archive_cmds=$lt_old_archive_cmds_GCJ 20944old_postinstall_cmds=$lt_old_postinstall_cmds 20945old_postuninstall_cmds=$lt_old_postuninstall_cmds 20946 20947# Create an old-style archive from a shared archive. 20948old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20949 20950# Create a temporary old-style archive to link instead of a shared archive. 20951old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20952 20953# Commands used to build and install a shared archive. 20954archive_cmds=$lt_archive_cmds_GCJ 20955archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20956postinstall_cmds=$lt_postinstall_cmds 20957postuninstall_cmds=$lt_postuninstall_cmds 20958 20959# Commands used to build a loadable module (assumed same as above if empty) 20960module_cmds=$lt_module_cmds_GCJ 20961module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20962 20963# Commands to strip libraries. 20964old_striplib=$lt_old_striplib 20965striplib=$lt_striplib 20966 20967# Dependencies to place before the objects being linked to create a 20968# shared library. 20969predep_objects=$lt_predep_objects_GCJ 20970 20971# Dependencies to place after the objects being linked to create a 20972# shared library. 20973postdep_objects=$lt_postdep_objects_GCJ 20974 20975# Dependencies to place before the objects being linked to create a 20976# shared library. 20977predeps=$lt_predeps_GCJ 20978 20979# Dependencies to place after the objects being linked to create a 20980# shared library. 20981postdeps=$lt_postdeps_GCJ 20982 20983# The library search path used internally by the compiler when linking 20984# a shared library. 20985compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 20986 20987# Method to check whether dependent libraries are shared objects. 20988deplibs_check_method=$lt_deplibs_check_method 20989 20990# Command to use when deplibs_check_method == file_magic. 20991file_magic_cmd=$lt_file_magic_cmd 20992 20993# Flag that allows shared libraries with undefined symbols to be built. 20994allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20995 20996# Flag that forces no undefined symbols. 20997no_undefined_flag=$lt_no_undefined_flag_GCJ 20998 20999# Commands used to finish a libtool library installation in a directory. 21000finish_cmds=$lt_finish_cmds 21001 21002# Same as above, but a single script fragment to be evaled but not shown. 21003finish_eval=$lt_finish_eval 21004 21005# Take the output of nm and produce a listing of raw symbols and C names. 21006global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21007 21008# Transform the output of nm in a proper C declaration 21009global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21010 21011# Transform the output of nm in a C name address pair 21012global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21013 21014# This is the shared library runtime path variable. 21015runpath_var=$runpath_var 21016 21017# This is the shared library path variable. 21018shlibpath_var=$shlibpath_var 21019 21020# Is shlibpath searched before the hard-coded library search path? 21021shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21022 21023# How to hardcode a shared library path into an executable. 21024hardcode_action=$hardcode_action_GCJ 21025 21026# Whether we should hardcode library paths into libraries. 21027hardcode_into_libs=$hardcode_into_libs 21028 21029# Flag to hardcode \$libdir into a binary during linking. 21030# This must work even if \$libdir does not exist. 21031hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 21032 21033# If ld is used when linking, flag to hardcode \$libdir into 21034# a binary during linking. This must work even if \$libdir does 21035# not exist. 21036hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 21037 21038# Whether we need a single -rpath flag with a separated argument. 21039hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 21040 21041# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21042# resulting binary. 21043hardcode_direct=$hardcode_direct_GCJ 21044 21045# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21046# resulting binary. 21047hardcode_minus_L=$hardcode_minus_L_GCJ 21048 21049# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21050# the resulting binary. 21051hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 21052 21053# Set to yes if building a shared library automatically hardcodes DIR into the library 21054# and all subsequent libraries and executables linked against it. 21055hardcode_automatic=$hardcode_automatic_GCJ 21056 21057# Variables whose values should be saved in libtool wrapper scripts and 21058# restored at relink time. 21059variables_saved_for_relink="$variables_saved_for_relink" 21060 21061# Whether libtool must link a program against all its dependency libraries. 21062link_all_deplibs=$link_all_deplibs_GCJ 21063 21064# Compile-time system search path for libraries 21065sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21066 21067# Run-time system search path for libraries 21068sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21069 21070# Fix the shell variable \$srcfile for the compiler. 21071fix_srcfile_path="$fix_srcfile_path_GCJ" 21072 21073# Set to yes if exported symbols are required. 21074always_export_symbols=$always_export_symbols_GCJ 21075 21076# The commands to list exported symbols. 21077export_symbols_cmds=$lt_export_symbols_cmds_GCJ 21078 21079# The commands to extract the exported symbol list from a shared archive. 21080extract_expsyms_cmds=$lt_extract_expsyms_cmds 21081 21082# Symbols that should not be listed in the preloaded symbols. 21083exclude_expsyms=$lt_exclude_expsyms_GCJ 21084 21085# Symbols that must always be exported. 21086include_expsyms=$lt_include_expsyms_GCJ 21087 21088# ### END LIBTOOL TAG CONFIG: $tagname 21089 21090__EOF__ 21091 21092 21093else 21094 # If there is no Makefile yet, we rely on a make rule to execute 21095 # `config.status --recheck' to rerun these tests and create the 21096 # libtool script then. 21097 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21098 if test -f "$ltmain_in"; then 21099 test -f Makefile && make "$ltmain" 21100 fi 21101fi 21102 21103 21104ac_ext=c 21105ac_cpp='$CPP $CPPFLAGS' 21106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21108ac_compiler_gnu=$ac_cv_c_compiler_gnu 21109 21110CC="$lt_save_CC" 21111 21112 else 21113 tagname="" 21114 fi 21115 ;; 21116 21117 RC) 21118 21119 21120 21121# Source file extension for RC test sources. 21122ac_ext=rc 21123 21124# Object file extension for compiled RC test sources. 21125objext=o 21126objext_RC=$objext 21127 21128# Code to be used in simple compile tests 21129lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 21130 21131# Code to be used in simple link tests 21132lt_simple_link_test_code="$lt_simple_compile_test_code" 21133 21134# ltmain only uses $CC for tagged configurations so make sure $CC is set. 21135 21136# If no C compiler was specified, use CC. 21137LTCC=${LTCC-"$CC"} 21138 21139# Allow CC to be a program name with arguments. 21140compiler=$CC 21141 21142 21143# save warnings/boilerplate of simple test code 21144ac_outfile=conftest.$ac_objext 21145printf "$lt_simple_compile_test_code" >conftest.$ac_ext 21146eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 21147_lt_compiler_boilerplate=`cat conftest.err` 21148$rm conftest* 21149 21150ac_outfile=conftest.$ac_objext 21151printf "$lt_simple_link_test_code" >conftest.$ac_ext 21152eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 21153_lt_linker_boilerplate=`cat conftest.err` 21154$rm conftest* 21155 21156 21157# Allow CC to be a program name with arguments. 21158lt_save_CC="$CC" 21159CC=${RC-"windres"} 21160compiler=$CC 21161compiler_RC=$CC 21162for cc_temp in $compiler""; do 21163 case $cc_temp in 21164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21166 \-*) ;; 21167 *) break;; 21168 esac 21169done 21170cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 21171 21172lt_cv_prog_compiler_c_o_RC=yes 21173 21174# The else clause should only fire when bootstrapping the 21175# libtool distribution, otherwise you forgot to ship ltmain.sh 21176# with your package, and you will get complaints that there are 21177# no rules to generate ltmain.sh. 21178if test -f "$ltmain"; then 21179 # See if we are running on zsh, and set the options which allow our commands through 21180 # without removal of \ escapes. 21181 if test -n "${ZSH_VERSION+set}" ; then 21182 setopt NO_GLOB_SUBST 21183 fi 21184 # Now quote all the things that may contain metacharacters while being 21185 # careful not to overquote the AC_SUBSTed values. We take copies of the 21186 # variables and quote the copies for generation of the libtool script. 21187 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 21188 SED SHELL STRIP \ 21189 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 21190 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 21191 deplibs_check_method reload_flag reload_cmds need_locks \ 21192 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 21193 lt_cv_sys_global_symbol_to_c_name_address \ 21194 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 21195 old_postinstall_cmds old_postuninstall_cmds \ 21196 compiler_RC \ 21197 CC_RC \ 21198 LD_RC \ 21199 lt_prog_compiler_wl_RC \ 21200 lt_prog_compiler_pic_RC \ 21201 lt_prog_compiler_static_RC \ 21202 lt_prog_compiler_no_builtin_flag_RC \ 21203 export_dynamic_flag_spec_RC \ 21204 thread_safe_flag_spec_RC \ 21205 whole_archive_flag_spec_RC \ 21206 enable_shared_with_static_runtimes_RC \ 21207 old_archive_cmds_RC \ 21208 old_archive_from_new_cmds_RC \ 21209 predep_objects_RC \ 21210 postdep_objects_RC \ 21211 predeps_RC \ 21212 postdeps_RC \ 21213 compiler_lib_search_path_RC \ 21214 archive_cmds_RC \ 21215 archive_expsym_cmds_RC \ 21216 postinstall_cmds_RC \ 21217 postuninstall_cmds_RC \ 21218 old_archive_from_expsyms_cmds_RC \ 21219 allow_undefined_flag_RC \ 21220 no_undefined_flag_RC \ 21221 export_symbols_cmds_RC \ 21222 hardcode_libdir_flag_spec_RC \ 21223 hardcode_libdir_flag_spec_ld_RC \ 21224 hardcode_libdir_separator_RC \ 21225 hardcode_automatic_RC \ 21226 module_cmds_RC \ 21227 module_expsym_cmds_RC \ 21228 lt_cv_prog_compiler_c_o_RC \ 21229 exclude_expsyms_RC \ 21230 include_expsyms_RC; do 21231 21232 case $var in 21233 old_archive_cmds_RC | \ 21234 old_archive_from_new_cmds_RC | \ 21235 archive_cmds_RC | \ 21236 archive_expsym_cmds_RC | \ 21237 module_cmds_RC | \ 21238 module_expsym_cmds_RC | \ 21239 old_archive_from_expsyms_cmds_RC | \ 21240 export_symbols_cmds_RC | \ 21241 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 21242 postinstall_cmds | postuninstall_cmds | \ 21243 old_postinstall_cmds | old_postuninstall_cmds | \ 21244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 21245 # Double-quote double-evaled strings. 21246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 21247 ;; 21248 *) 21249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 21250 ;; 21251 esac 21252 done 21253 21254 case $lt_echo in 21255 *'\$0 --fallback-echo"') 21256 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 21257 ;; 21258 esac 21259 21260cfgfile="$ofile" 21261 21262 cat <<__EOF__ >> "$cfgfile" 21263# ### BEGIN LIBTOOL TAG CONFIG: $tagname 21264 21265# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21266 21267# Shell to use when invoking shell scripts. 21268SHELL=$lt_SHELL 21269 21270# Whether or not to build shared libraries. 21271build_libtool_libs=$enable_shared 21272 21273# Whether or not to build static libraries. 21274build_old_libs=$enable_static 21275 21276# Whether or not to add -lc for building shared libraries. 21277build_libtool_need_lc=$archive_cmds_need_lc_RC 21278 21279# Whether or not to disallow shared libs when runtime libs are static 21280allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 21281 21282# Whether or not to optimize for fast installation. 21283fast_install=$enable_fast_install 21284 21285# The host system. 21286host_alias=$host_alias 21287host=$host 21288host_os=$host_os 21289 21290# The build system. 21291build_alias=$build_alias 21292build=$build 21293build_os=$build_os 21294 21295# An echo program that does not interpret backslashes. 21296echo=$lt_echo 21297 21298# The archiver. 21299AR=$lt_AR 21300AR_FLAGS=$lt_AR_FLAGS 21301 21302# A C compiler. 21303LTCC=$lt_LTCC 21304 21305# A language-specific compiler. 21306CC=$lt_compiler_RC 21307 21308# Is the compiler the GNU C compiler? 21309with_gcc=$GCC_RC 21310 21311# An ERE matcher. 21312EGREP=$lt_EGREP 21313 21314# The linker used to build libraries. 21315LD=$lt_LD_RC 21316 21317# Whether we need hard or soft links. 21318LN_S=$lt_LN_S 21319 21320# A BSD-compatible nm program. 21321NM=$lt_NM 21322 21323# A symbol stripping program 21324STRIP=$lt_STRIP 21325 21326# Used to examine libraries when file_magic_cmd begins "file" 21327MAGIC_CMD=$MAGIC_CMD 21328 21329# Used on cygwin: DLL creation program. 21330DLLTOOL="$DLLTOOL" 21331 21332# Used on cygwin: object dumper. 21333OBJDUMP="$OBJDUMP" 21334 21335# Used on cygwin: assembler. 21336AS="$AS" 21337 21338# The name of the directory that contains temporary libtool files. 21339objdir=$objdir 21340 21341# How to create reloadable object files. 21342reload_flag=$lt_reload_flag 21343reload_cmds=$lt_reload_cmds 21344 21345# How to pass a linker flag through the compiler. 21346wl=$lt_lt_prog_compiler_wl_RC 21347 21348# Object file suffix (normally "o"). 21349objext="$ac_objext" 21350 21351# Old archive suffix (normally "a"). 21352libext="$libext" 21353 21354# Shared library suffix (normally ".so"). 21355shrext_cmds='$shrext_cmds' 21356 21357# Executable file suffix (normally ""). 21358exeext="$exeext" 21359 21360# Additional compiler flags for building library objects. 21361pic_flag=$lt_lt_prog_compiler_pic_RC 21362pic_mode=$pic_mode 21363 21364# What is the maximum length of a command? 21365max_cmd_len=$lt_cv_sys_max_cmd_len 21366 21367# Does compiler simultaneously support -c and -o options? 21368compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 21369 21370# Must we lock files when doing compilation? 21371need_locks=$lt_need_locks 21372 21373# Do we need the lib prefix for modules? 21374need_lib_prefix=$need_lib_prefix 21375 21376# Do we need a version for libraries? 21377need_version=$need_version 21378 21379# Whether dlopen is supported. 21380dlopen_support=$enable_dlopen 21381 21382# Whether dlopen of programs is supported. 21383dlopen_self=$enable_dlopen_self 21384 21385# Whether dlopen of statically linked programs is supported. 21386dlopen_self_static=$enable_dlopen_self_static 21387 21388# Compiler flag to prevent dynamic linking. 21389link_static_flag=$lt_lt_prog_compiler_static_RC 21390 21391# Compiler flag to turn off builtin functions. 21392no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 21393 21394# Compiler flag to allow reflexive dlopens. 21395export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 21396 21397# Compiler flag to generate shared objects directly from archives. 21398whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 21399 21400# Compiler flag to generate thread-safe objects. 21401thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 21402 21403# Library versioning type. 21404version_type=$version_type 21405 21406# Format of library name prefix. 21407libname_spec=$lt_libname_spec 21408 21409# List of archive names. First name is the real one, the rest are links. 21410# The last name is the one that the linker finds with -lNAME. 21411library_names_spec=$lt_library_names_spec 21412 21413# The coded name of the library, if different from the real name. 21414soname_spec=$lt_soname_spec 21415 21416# Commands used to build and install an old-style archive. 21417RANLIB=$lt_RANLIB 21418old_archive_cmds=$lt_old_archive_cmds_RC 21419old_postinstall_cmds=$lt_old_postinstall_cmds 21420old_postuninstall_cmds=$lt_old_postuninstall_cmds 21421 21422# Create an old-style archive from a shared archive. 21423old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 21424 21425# Create a temporary old-style archive to link instead of a shared archive. 21426old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 21427 21428# Commands used to build and install a shared archive. 21429archive_cmds=$lt_archive_cmds_RC 21430archive_expsym_cmds=$lt_archive_expsym_cmds_RC 21431postinstall_cmds=$lt_postinstall_cmds 21432postuninstall_cmds=$lt_postuninstall_cmds 21433 21434# Commands used to build a loadable module (assumed same as above if empty) 21435module_cmds=$lt_module_cmds_RC 21436module_expsym_cmds=$lt_module_expsym_cmds_RC 21437 21438# Commands to strip libraries. 21439old_striplib=$lt_old_striplib 21440striplib=$lt_striplib 21441 21442# Dependencies to place before the objects being linked to create a 21443# shared library. 21444predep_objects=$lt_predep_objects_RC 21445 21446# Dependencies to place after the objects being linked to create a 21447# shared library. 21448postdep_objects=$lt_postdep_objects_RC 21449 21450# Dependencies to place before the objects being linked to create a 21451# shared library. 21452predeps=$lt_predeps_RC 21453 21454# Dependencies to place after the objects being linked to create a 21455# shared library. 21456postdeps=$lt_postdeps_RC 21457 21458# The library search path used internally by the compiler when linking 21459# a shared library. 21460compiler_lib_search_path=$lt_compiler_lib_search_path_RC 21461 21462# Method to check whether dependent libraries are shared objects. 21463deplibs_check_method=$lt_deplibs_check_method 21464 21465# Command to use when deplibs_check_method == file_magic. 21466file_magic_cmd=$lt_file_magic_cmd 21467 21468# Flag that allows shared libraries with undefined symbols to be built. 21469allow_undefined_flag=$lt_allow_undefined_flag_RC 21470 21471# Flag that forces no undefined symbols. 21472no_undefined_flag=$lt_no_undefined_flag_RC 21473 21474# Commands used to finish a libtool library installation in a directory. 21475finish_cmds=$lt_finish_cmds 21476 21477# Same as above, but a single script fragment to be evaled but not shown. 21478finish_eval=$lt_finish_eval 21479 21480# Take the output of nm and produce a listing of raw symbols and C names. 21481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21482 21483# Transform the output of nm in a proper C declaration 21484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21485 21486# Transform the output of nm in a C name address pair 21487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21488 21489# This is the shared library runtime path variable. 21490runpath_var=$runpath_var 21491 21492# This is the shared library path variable. 21493shlibpath_var=$shlibpath_var 21494 21495# Is shlibpath searched before the hard-coded library search path? 21496shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21497 21498# How to hardcode a shared library path into an executable. 21499hardcode_action=$hardcode_action_RC 21500 21501# Whether we should hardcode library paths into libraries. 21502hardcode_into_libs=$hardcode_into_libs 21503 21504# Flag to hardcode \$libdir into a binary during linking. 21505# This must work even if \$libdir does not exist. 21506hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 21507 21508# If ld is used when linking, flag to hardcode \$libdir into 21509# a binary during linking. This must work even if \$libdir does 21510# not exist. 21511hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 21512 21513# Whether we need a single -rpath flag with a separated argument. 21514hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 21515 21516# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21517# resulting binary. 21518hardcode_direct=$hardcode_direct_RC 21519 21520# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21521# resulting binary. 21522hardcode_minus_L=$hardcode_minus_L_RC 21523 21524# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21525# the resulting binary. 21526hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 21527 21528# Set to yes if building a shared library automatically hardcodes DIR into the library 21529# and all subsequent libraries and executables linked against it. 21530hardcode_automatic=$hardcode_automatic_RC 21531 21532# Variables whose values should be saved in libtool wrapper scripts and 21533# restored at relink time. 21534variables_saved_for_relink="$variables_saved_for_relink" 21535 21536# Whether libtool must link a program against all its dependency libraries. 21537link_all_deplibs=$link_all_deplibs_RC 21538 21539# Compile-time system search path for libraries 21540sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21541 21542# Run-time system search path for libraries 21543sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21544 21545# Fix the shell variable \$srcfile for the compiler. 21546fix_srcfile_path="$fix_srcfile_path_RC" 21547 21548# Set to yes if exported symbols are required. 21549always_export_symbols=$always_export_symbols_RC 21550 21551# The commands to list exported symbols. 21552export_symbols_cmds=$lt_export_symbols_cmds_RC 21553 21554# The commands to extract the exported symbol list from a shared archive. 21555extract_expsyms_cmds=$lt_extract_expsyms_cmds 21556 21557# Symbols that should not be listed in the preloaded symbols. 21558exclude_expsyms=$lt_exclude_expsyms_RC 21559 21560# Symbols that must always be exported. 21561include_expsyms=$lt_include_expsyms_RC 21562 21563# ### END LIBTOOL TAG CONFIG: $tagname 21564 21565__EOF__ 21566 21567 21568else 21569 # If there is no Makefile yet, we rely on a make rule to execute 21570 # `config.status --recheck' to rerun these tests and create the 21571 # libtool script then. 21572 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21573 if test -f "$ltmain_in"; then 21574 test -f Makefile && make "$ltmain" 21575 fi 21576fi 21577 21578 21579ac_ext=c 21580ac_cpp='$CPP $CPPFLAGS' 21581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21583ac_compiler_gnu=$ac_cv_c_compiler_gnu 21584 21585CC="$lt_save_CC" 21586 21587 ;; 21588 21589 *) 21590 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 21591echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 21592 { (exit 1); exit 1; }; } 21593 ;; 21594 esac 21595 21596 # Append the new tag name to the list of available tags. 21597 if test -n "$tagname" ; then 21598 available_tags="$available_tags $tagname" 21599 fi 21600 fi 21601 done 21602 IFS="$lt_save_ifs" 21603 21604 # Now substitute the updated list of available tags. 21605 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 21606 mv "${ofile}T" "$ofile" 21607 chmod +x "$ofile" 21608 else 21609 rm -f "${ofile}T" 21610 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 21611echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 21612 { (exit 1); exit 1; }; } 21613 fi 21614fi 21615 21616 21617 21618# This can be used to rebuild libtool when needed 21619LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 21620 21621# Always use our own libtool. 21622LIBTOOL='$(SHELL) $(top_builddir)/libtool' 21623 21624# Prevent multiple expansion 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646# Checks for libraries. 21647 21648# Check whether --with-dbflib or --without-dbflib was given. 21649if test "${with_dbflib+set}" = set; then 21650 withval="$with_dbflib" 21651 21652fi; 21653if test -r ${withval}/include/dbf.h ; then 21654 DBFLIB_LIBDIR=-L${withval}/lib 21655 DBFLIB_INCLUDEDIR=-I${withval}/include 21656else 21657 DBFLIB_LIBDIR=-L/usr 21658 DBFLIB_INCLUDEDIR=-I/usr/include 21659fi 21660 21661echo "$as_me:$LINENO: checking for dbf_Open in -ldbf" >&5 21662echo $ECHO_N "checking for dbf_Open in -ldbf... $ECHO_C" >&6 21663if test "${ac_cv_lib_dbf_dbf_Open+set}" = set; then 21664 echo $ECHO_N "(cached) $ECHO_C" >&6 21665else 21666 ac_check_lib_save_LIBS=$LIBS 21667LIBS="-ldbf "$DBFLIB_LIBDIR" $LIBS" 21668cat >conftest.$ac_ext <<_ACEOF 21669/* confdefs.h. */ 21670_ACEOF 21671cat confdefs.h >>conftest.$ac_ext 21672cat >>conftest.$ac_ext <<_ACEOF 21673/* end confdefs.h. */ 21674 21675/* Override any gcc2 internal prototype to avoid an error. */ 21676#ifdef __cplusplus 21677extern "C" 21678#endif 21679/* We use char because int might match the return type of a gcc2 21680 builtin and then its argument prototype would still apply. */ 21681char dbf_Open (); 21682int 21683main () 21684{ 21685dbf_Open (); 21686 ; 21687 return 0; 21688} 21689_ACEOF 21690rm -f conftest.$ac_objext conftest$ac_exeext 21691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21692 (eval $ac_link) 2>conftest.er1 21693 ac_status=$? 21694 grep -v '^ *+' conftest.er1 >conftest.err 21695 rm -f conftest.er1 21696 cat conftest.err >&5 21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21698 (exit $ac_status); } && 21699 { ac_try='test -z "$ac_c_werror_flag" 21700 || test ! -s conftest.err' 21701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21702 (eval $ac_try) 2>&5 21703 ac_status=$? 21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21705 (exit $ac_status); }; } && 21706 { ac_try='test -s conftest$ac_exeext' 21707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21708 (eval $ac_try) 2>&5 21709 ac_status=$? 21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21711 (exit $ac_status); }; }; then 21712 ac_cv_lib_dbf_dbf_Open=yes 21713else 21714 echo "$as_me: failed program was:" >&5 21715sed 's/^/| /' conftest.$ac_ext >&5 21716 21717ac_cv_lib_dbf_dbf_Open=no 21718fi 21719rm -f conftest.err conftest.$ac_objext \ 21720 conftest$ac_exeext conftest.$ac_ext 21721LIBS=$ac_check_lib_save_LIBS 21722fi 21723echo "$as_me:$LINENO: result: $ac_cv_lib_dbf_dbf_Open" >&5 21724echo "${ECHO_T}$ac_cv_lib_dbf_dbf_Open" >&6 21725if test $ac_cv_lib_dbf_dbf_Open = yes; then 21726 DBFLIB_LIBDIR="$DBFLIB_LIBDIR" 21727else 21728 { { echo "$as_me:$LINENO: error: libdbf not found. You will need at least libdbf 0.3.0" >&5 21729echo "$as_me: error: libdbf not found. You will need at least libdbf 0.3.0" >&2;} 21730 { (exit 1); exit 1; }; } 21731fi 21732 21733 21734DBFLIB_LIBS=-ldbf 21735 21736 21737# Checks for header files. 21738echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21739echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 21740if test "${ac_cv_header_stdc+set}" = set; then 21741 echo $ECHO_N "(cached) $ECHO_C" >&6 21742else 21743 cat >conftest.$ac_ext <<_ACEOF 21744/* confdefs.h. */ 21745_ACEOF 21746cat confdefs.h >>conftest.$ac_ext 21747cat >>conftest.$ac_ext <<_ACEOF 21748/* end confdefs.h. */ 21749#include <stdlib.h> 21750#include <stdarg.h> 21751#include <string.h> 21752#include <float.h> 21753 21754int 21755main () 21756{ 21757 21758 ; 21759 return 0; 21760} 21761_ACEOF 21762rm -f conftest.$ac_objext 21763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21764 (eval $ac_compile) 2>conftest.er1 21765 ac_status=$? 21766 grep -v '^ *+' conftest.er1 >conftest.err 21767 rm -f conftest.er1 21768 cat conftest.err >&5 21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21770 (exit $ac_status); } && 21771 { ac_try='test -z "$ac_c_werror_flag" 21772 || test ! -s conftest.err' 21773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21774 (eval $ac_try) 2>&5 21775 ac_status=$? 21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21777 (exit $ac_status); }; } && 21778 { ac_try='test -s conftest.$ac_objext' 21779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21780 (eval $ac_try) 2>&5 21781 ac_status=$? 21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21783 (exit $ac_status); }; }; then 21784 ac_cv_header_stdc=yes 21785else 21786 echo "$as_me: failed program was:" >&5 21787sed 's/^/| /' conftest.$ac_ext >&5 21788 21789ac_cv_header_stdc=no 21790fi 21791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21792 21793if test $ac_cv_header_stdc = yes; then 21794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21795 cat >conftest.$ac_ext <<_ACEOF 21796/* confdefs.h. */ 21797_ACEOF 21798cat confdefs.h >>conftest.$ac_ext 21799cat >>conftest.$ac_ext <<_ACEOF 21800/* end confdefs.h. */ 21801#include <string.h> 21802 21803_ACEOF 21804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21805 $EGREP "memchr" >/dev/null 2>&1; then 21806 : 21807else 21808 ac_cv_header_stdc=no 21809fi 21810rm -f conftest* 21811 21812fi 21813 21814if test $ac_cv_header_stdc = yes; then 21815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21816 cat >conftest.$ac_ext <<_ACEOF 21817/* confdefs.h. */ 21818_ACEOF 21819cat confdefs.h >>conftest.$ac_ext 21820cat >>conftest.$ac_ext <<_ACEOF 21821/* end confdefs.h. */ 21822#include <stdlib.h> 21823 21824_ACEOF 21825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21826 $EGREP "free" >/dev/null 2>&1; then 21827 : 21828else 21829 ac_cv_header_stdc=no 21830fi 21831rm -f conftest* 21832 21833fi 21834 21835if test $ac_cv_header_stdc = yes; then 21836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21837 if test "$cross_compiling" = yes; then 21838 : 21839else 21840 cat >conftest.$ac_ext <<_ACEOF 21841/* confdefs.h. */ 21842_ACEOF 21843cat confdefs.h >>conftest.$ac_ext 21844cat >>conftest.$ac_ext <<_ACEOF 21845/* end confdefs.h. */ 21846#include <ctype.h> 21847#if ((' ' & 0x0FF) == 0x020) 21848# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21849# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21850#else 21851# define ISLOWER(c) \ 21852 (('a' <= (c) && (c) <= 'i') \ 21853 || ('j' <= (c) && (c) <= 'r') \ 21854 || ('s' <= (c) && (c) <= 'z')) 21855# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21856#endif 21857 21858#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21859int 21860main () 21861{ 21862 int i; 21863 for (i = 0; i < 256; i++) 21864 if (XOR (islower (i), ISLOWER (i)) 21865 || toupper (i) != TOUPPER (i)) 21866 exit(2); 21867 exit (0); 21868} 21869_ACEOF 21870rm -f conftest$ac_exeext 21871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21872 (eval $ac_link) 2>&5 21873 ac_status=$? 21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21877 (eval $ac_try) 2>&5 21878 ac_status=$? 21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21880 (exit $ac_status); }; }; then 21881 : 21882else 21883 echo "$as_me: program exited with status $ac_status" >&5 21884echo "$as_me: failed program was:" >&5 21885sed 's/^/| /' conftest.$ac_ext >&5 21886 21887( exit $ac_status ) 21888ac_cv_header_stdc=no 21889fi 21890rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21891fi 21892fi 21893fi 21894echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21895echo "${ECHO_T}$ac_cv_header_stdc" >&6 21896if test $ac_cv_header_stdc = yes; then 21897 21898cat >>confdefs.h <<\_ACEOF 21899#define STDC_HEADERS 1 21900_ACEOF 21901 21902fi 21903 21904 21905 21906 21907 21908 21909for ac_header in fcntl.h limits.h stdlib.h string.h unistd.h 21910do 21911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21912if eval "test \"\${$as_ac_Header+set}\" = set"; then 21913 echo "$as_me:$LINENO: checking for $ac_header" >&5 21914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21915if eval "test \"\${$as_ac_Header+set}\" = set"; then 21916 echo $ECHO_N "(cached) $ECHO_C" >&6 21917fi 21918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21920else 21921 # Is the header compilable? 21922echo "$as_me:$LINENO: checking $ac_header usability" >&5 21923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21924cat >conftest.$ac_ext <<_ACEOF 21925/* confdefs.h. */ 21926_ACEOF 21927cat confdefs.h >>conftest.$ac_ext 21928cat >>conftest.$ac_ext <<_ACEOF 21929/* end confdefs.h. */ 21930$ac_includes_default 21931#include <$ac_header> 21932_ACEOF 21933rm -f conftest.$ac_objext 21934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21935 (eval $ac_compile) 2>conftest.er1 21936 ac_status=$? 21937 grep -v '^ *+' conftest.er1 >conftest.err 21938 rm -f conftest.er1 21939 cat conftest.err >&5 21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21941 (exit $ac_status); } && 21942 { ac_try='test -z "$ac_c_werror_flag" 21943 || test ! -s conftest.err' 21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21945 (eval $ac_try) 2>&5 21946 ac_status=$? 21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21948 (exit $ac_status); }; } && 21949 { ac_try='test -s conftest.$ac_objext' 21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21951 (eval $ac_try) 2>&5 21952 ac_status=$? 21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21954 (exit $ac_status); }; }; then 21955 ac_header_compiler=yes 21956else 21957 echo "$as_me: failed program was:" >&5 21958sed 's/^/| /' conftest.$ac_ext >&5 21959 21960ac_header_compiler=no 21961fi 21962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21964echo "${ECHO_T}$ac_header_compiler" >&6 21965 21966# Is the header present? 21967echo "$as_me:$LINENO: checking $ac_header presence" >&5 21968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21969cat >conftest.$ac_ext <<_ACEOF 21970/* confdefs.h. */ 21971_ACEOF 21972cat confdefs.h >>conftest.$ac_ext 21973cat >>conftest.$ac_ext <<_ACEOF 21974/* end confdefs.h. */ 21975#include <$ac_header> 21976_ACEOF 21977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21979 ac_status=$? 21980 grep -v '^ *+' conftest.er1 >conftest.err 21981 rm -f conftest.er1 21982 cat conftest.err >&5 21983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21984 (exit $ac_status); } >/dev/null; then 21985 if test -s conftest.err; then 21986 ac_cpp_err=$ac_c_preproc_warn_flag 21987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21988 else 21989 ac_cpp_err= 21990 fi 21991else 21992 ac_cpp_err=yes 21993fi 21994if test -z "$ac_cpp_err"; then 21995 ac_header_preproc=yes 21996else 21997 echo "$as_me: failed program was:" >&5 21998sed 's/^/| /' conftest.$ac_ext >&5 21999 22000 ac_header_preproc=no 22001fi 22002rm -f conftest.err conftest.$ac_ext 22003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22004echo "${ECHO_T}$ac_header_preproc" >&6 22005 22006# So? What about this header? 22007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22008 yes:no: ) 22009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22012echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22013 ac_header_preproc=yes 22014 ;; 22015 no:yes:* ) 22016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22017echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22019echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22021echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22023echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22027echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22028 ( 22029 cat <<\_ASBOX 22030## ------------------------------------ ## 22031## Report this to http://dbf.berlios.de ## 22032## ------------------------------------ ## 22033_ASBOX 22034 ) | 22035 sed "s/^/$as_me: WARNING: /" >&2 22036 ;; 22037esac 22038echo "$as_me:$LINENO: checking for $ac_header" >&5 22039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22040if eval "test \"\${$as_ac_Header+set}\" = set"; then 22041 echo $ECHO_N "(cached) $ECHO_C" >&6 22042else 22043 eval "$as_ac_Header=\$ac_header_preproc" 22044fi 22045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22047 22048fi 22049if test `eval echo '${'$as_ac_Header'}'` = yes; then 22050 cat >>confdefs.h <<_ACEOF 22051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22052_ACEOF 22053 22054fi 22055 22056done 22057 22058 22059# Checks for typedefs, structures, and compiler characteristics. 22060echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 22061echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 22062if test "${ac_cv_c_const+set}" = set; then 22063 echo $ECHO_N "(cached) $ECHO_C" >&6 22064else 22065 cat >conftest.$ac_ext <<_ACEOF 22066/* confdefs.h. */ 22067_ACEOF 22068cat confdefs.h >>conftest.$ac_ext 22069cat >>conftest.$ac_ext <<_ACEOF 22070/* end confdefs.h. */ 22071 22072int 22073main () 22074{ 22075/* FIXME: Include the comments suggested by Paul. */ 22076#ifndef __cplusplus 22077 /* Ultrix mips cc rejects this. */ 22078 typedef int charset[2]; 22079 const charset x; 22080 /* SunOS 4.1.1 cc rejects this. */ 22081 char const *const *ccp; 22082 char **p; 22083 /* NEC SVR4.0.2 mips cc rejects this. */ 22084 struct point {int x, y;}; 22085 static struct point const zero = {0,0}; 22086 /* AIX XL C 1.02.0.0 rejects this. 22087 It does not let you subtract one const X* pointer from another in 22088 an arm of an if-expression whose if-part is not a constant 22089 expression */ 22090 const char *g = "string"; 22091 ccp = &g + (g ? g-g : 0); 22092 /* HPUX 7.0 cc rejects these. */ 22093 ++ccp; 22094 p = (char**) ccp; 22095 ccp = (char const *const *) p; 22096 { /* SCO 3.2v4 cc rejects this. */ 22097 char *t; 22098 char const *s = 0 ? (char *) 0 : (char const *) 0; 22099 22100 *t++ = 0; 22101 } 22102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22103 int x[] = {25, 17}; 22104 const int *foo = &x[0]; 22105 ++foo; 22106 } 22107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22108 typedef const int *iptr; 22109 iptr p = 0; 22110 ++p; 22111 } 22112 { /* AIX XL C 1.02.0.0 rejects this saying 22113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22114 struct s { int j; const int *ap[3]; }; 22115 struct s *b; b->j = 5; 22116 } 22117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22118 const int foo = 10; 22119 } 22120#endif 22121 22122 ; 22123 return 0; 22124} 22125_ACEOF 22126rm -f conftest.$ac_objext 22127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22128 (eval $ac_compile) 2>conftest.er1 22129 ac_status=$? 22130 grep -v '^ *+' conftest.er1 >conftest.err 22131 rm -f conftest.er1 22132 cat conftest.err >&5 22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22134 (exit $ac_status); } && 22135 { ac_try='test -z "$ac_c_werror_flag" 22136 || test ! -s conftest.err' 22137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22138 (eval $ac_try) 2>&5 22139 ac_status=$? 22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22141 (exit $ac_status); }; } && 22142 { ac_try='test -s conftest.$ac_objext' 22143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22144 (eval $ac_try) 2>&5 22145 ac_status=$? 22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22147 (exit $ac_status); }; }; then 22148 ac_cv_c_const=yes 22149else 22150 echo "$as_me: failed program was:" >&5 22151sed 's/^/| /' conftest.$ac_ext >&5 22152 22153ac_cv_c_const=no 22154fi 22155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22156fi 22157echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 22158echo "${ECHO_T}$ac_cv_c_const" >&6 22159if test $ac_cv_c_const = no; then 22160 22161cat >>confdefs.h <<\_ACEOF 22162#define const 22163_ACEOF 22164 22165fi 22166 22167echo "$as_me:$LINENO: checking for size_t" >&5 22168echo $ECHO_N "checking for size_t... $ECHO_C" >&6 22169if test "${ac_cv_type_size_t+set}" = set; then 22170 echo $ECHO_N "(cached) $ECHO_C" >&6 22171else 22172 cat >conftest.$ac_ext <<_ACEOF 22173/* confdefs.h. */ 22174_ACEOF 22175cat confdefs.h >>conftest.$ac_ext 22176cat >>conftest.$ac_ext <<_ACEOF 22177/* end confdefs.h. */ 22178$ac_includes_default 22179int 22180main () 22181{ 22182if ((size_t *) 0) 22183 return 0; 22184if (sizeof (size_t)) 22185 return 0; 22186 ; 22187 return 0; 22188} 22189_ACEOF 22190rm -f conftest.$ac_objext 22191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22192 (eval $ac_compile) 2>conftest.er1 22193 ac_status=$? 22194 grep -v '^ *+' conftest.er1 >conftest.err 22195 rm -f conftest.er1 22196 cat conftest.err >&5 22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22198 (exit $ac_status); } && 22199 { ac_try='test -z "$ac_c_werror_flag" 22200 || test ! -s conftest.err' 22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22202 (eval $ac_try) 2>&5 22203 ac_status=$? 22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22205 (exit $ac_status); }; } && 22206 { ac_try='test -s conftest.$ac_objext' 22207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22208 (eval $ac_try) 2>&5 22209 ac_status=$? 22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22211 (exit $ac_status); }; }; then 22212 ac_cv_type_size_t=yes 22213else 22214 echo "$as_me: failed program was:" >&5 22215sed 's/^/| /' conftest.$ac_ext >&5 22216 22217ac_cv_type_size_t=no 22218fi 22219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22220fi 22221echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 22222echo "${ECHO_T}$ac_cv_type_size_t" >&6 22223if test $ac_cv_type_size_t = yes; then 22224 : 22225else 22226 22227cat >>confdefs.h <<_ACEOF 22228#define size_t unsigned 22229_ACEOF 22230 22231fi 22232 22233 22234# Checks for library functions. 22235 22236for ac_header in stdlib.h 22237do 22238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22239if eval "test \"\${$as_ac_Header+set}\" = set"; then 22240 echo "$as_me:$LINENO: checking for $ac_header" >&5 22241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22242if eval "test \"\${$as_ac_Header+set}\" = set"; then 22243 echo $ECHO_N "(cached) $ECHO_C" >&6 22244fi 22245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22247else 22248 # Is the header compilable? 22249echo "$as_me:$LINENO: checking $ac_header usability" >&5 22250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 22251cat >conftest.$ac_ext <<_ACEOF 22252/* confdefs.h. */ 22253_ACEOF 22254cat confdefs.h >>conftest.$ac_ext 22255cat >>conftest.$ac_ext <<_ACEOF 22256/* end confdefs.h. */ 22257$ac_includes_default 22258#include <$ac_header> 22259_ACEOF 22260rm -f conftest.$ac_objext 22261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22262 (eval $ac_compile) 2>conftest.er1 22263 ac_status=$? 22264 grep -v '^ *+' conftest.er1 >conftest.err 22265 rm -f conftest.er1 22266 cat conftest.err >&5 22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22268 (exit $ac_status); } && 22269 { ac_try='test -z "$ac_c_werror_flag" 22270 || test ! -s conftest.err' 22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22272 (eval $ac_try) 2>&5 22273 ac_status=$? 22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22275 (exit $ac_status); }; } && 22276 { ac_try='test -s conftest.$ac_objext' 22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22278 (eval $ac_try) 2>&5 22279 ac_status=$? 22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22281 (exit $ac_status); }; }; then 22282 ac_header_compiler=yes 22283else 22284 echo "$as_me: failed program was:" >&5 22285sed 's/^/| /' conftest.$ac_ext >&5 22286 22287ac_header_compiler=no 22288fi 22289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22291echo "${ECHO_T}$ac_header_compiler" >&6 22292 22293# Is the header present? 22294echo "$as_me:$LINENO: checking $ac_header presence" >&5 22295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 22296cat >conftest.$ac_ext <<_ACEOF 22297/* confdefs.h. */ 22298_ACEOF 22299cat confdefs.h >>conftest.$ac_ext 22300cat >>conftest.$ac_ext <<_ACEOF 22301/* end confdefs.h. */ 22302#include <$ac_header> 22303_ACEOF 22304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22306 ac_status=$? 22307 grep -v '^ *+' conftest.er1 >conftest.err 22308 rm -f conftest.er1 22309 cat conftest.err >&5 22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22311 (exit $ac_status); } >/dev/null; then 22312 if test -s conftest.err; then 22313 ac_cpp_err=$ac_c_preproc_warn_flag 22314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22315 else 22316 ac_cpp_err= 22317 fi 22318else 22319 ac_cpp_err=yes 22320fi 22321if test -z "$ac_cpp_err"; then 22322 ac_header_preproc=yes 22323else 22324 echo "$as_me: failed program was:" >&5 22325sed 's/^/| /' conftest.$ac_ext >&5 22326 22327 ac_header_preproc=no 22328fi 22329rm -f conftest.err conftest.$ac_ext 22330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22331echo "${ECHO_T}$ac_header_preproc" >&6 22332 22333# So? What about this header? 22334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22335 yes:no: ) 22336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22340 ac_header_preproc=yes 22341 ;; 22342 no:yes:* ) 22343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22355 ( 22356 cat <<\_ASBOX 22357## ------------------------------------ ## 22358## Report this to http://dbf.berlios.de ## 22359## ------------------------------------ ## 22360_ASBOX 22361 ) | 22362 sed "s/^/$as_me: WARNING: /" >&2 22363 ;; 22364esac 22365echo "$as_me:$LINENO: checking for $ac_header" >&5 22366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22367if eval "test \"\${$as_ac_Header+set}\" = set"; then 22368 echo $ECHO_N "(cached) $ECHO_C" >&6 22369else 22370 eval "$as_ac_Header=\$ac_header_preproc" 22371fi 22372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22374 22375fi 22376if test `eval echo '${'$as_ac_Header'}'` = yes; then 22377 cat >>confdefs.h <<_ACEOF 22378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22379_ACEOF 22380 22381fi 22382 22383done 22384 22385echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 22386echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 22387if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 22388 echo $ECHO_N "(cached) $ECHO_C" >&6 22389else 22390 if test "$cross_compiling" = yes; then 22391 ac_cv_func_malloc_0_nonnull=no 22392else 22393 cat >conftest.$ac_ext <<_ACEOF 22394/* confdefs.h. */ 22395_ACEOF 22396cat confdefs.h >>conftest.$ac_ext 22397cat >>conftest.$ac_ext <<_ACEOF 22398/* end confdefs.h. */ 22399#if STDC_HEADERS || HAVE_STDLIB_H 22400# include <stdlib.h> 22401#else 22402char *malloc (); 22403#endif 22404 22405int 22406main () 22407{ 22408exit (malloc (0) ? 0 : 1); 22409 ; 22410 return 0; 22411} 22412_ACEOF 22413rm -f conftest$ac_exeext 22414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22415 (eval $ac_link) 2>&5 22416 ac_status=$? 22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22420 (eval $ac_try) 2>&5 22421 ac_status=$? 22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22423 (exit $ac_status); }; }; then 22424 ac_cv_func_malloc_0_nonnull=yes 22425else 22426 echo "$as_me: program exited with status $ac_status" >&5 22427echo "$as_me: failed program was:" >&5 22428sed 's/^/| /' conftest.$ac_ext >&5 22429 22430( exit $ac_status ) 22431ac_cv_func_malloc_0_nonnull=no 22432fi 22433rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22434fi 22435fi 22436echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 22437echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 22438if test $ac_cv_func_malloc_0_nonnull = yes; then 22439 22440cat >>confdefs.h <<\_ACEOF 22441#define HAVE_MALLOC 1 22442_ACEOF 22443 22444else 22445 cat >>confdefs.h <<\_ACEOF 22446#define HAVE_MALLOC 0 22447_ACEOF 22448 22449 case $LIBOBJS in 22450 "malloc.$ac_objext" | \ 22451 *" malloc.$ac_objext" | \ 22452 "malloc.$ac_objext "* | \ 22453 *" malloc.$ac_objext "* ) ;; 22454 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; 22455esac 22456 22457 22458cat >>confdefs.h <<\_ACEOF 22459#define malloc rpl_malloc 22460_ACEOF 22461 22462fi 22463 22464 22465 22466 22467# Extract the first word of "docbook-to-man", so it can be a program name with args. 22468set dummy docbook-to-man; ac_word=$2 22469echo "$as_me:$LINENO: checking for $ac_word" >&5 22470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22471if test "${ac_cv_prog_DOC_TO_MAN+set}" = set; then 22472 echo $ECHO_N "(cached) $ECHO_C" >&6 22473else 22474 if test -n "$DOC_TO_MAN"; then 22475 ac_cv_prog_DOC_TO_MAN="$DOC_TO_MAN" # Let the user override the test. 22476else 22477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22478for as_dir in $PATH 22479do 22480 IFS=$as_save_IFS 22481 test -z "$as_dir" && as_dir=. 22482 for ac_exec_ext in '' $ac_executable_extensions; do 22483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22484 ac_cv_prog_DOC_TO_MAN="docbook-to-man" 22485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22486 break 2 22487 fi 22488done 22489done 22490 22491fi 22492fi 22493DOC_TO_MAN=$ac_cv_prog_DOC_TO_MAN 22494if test -n "$DOC_TO_MAN"; then 22495 echo "$as_me:$LINENO: result: $DOC_TO_MAN" >&5 22496echo "${ECHO_T}$DOC_TO_MAN" >&6 22497else 22498 echo "$as_me:$LINENO: result: no" >&5 22499echo "${ECHO_T}no" >&6 22500fi 22501 22502if test ! "$DOC_TO_MAN" ; then 22503 DOCDIR= 22504 echo "$as_me:$LINENO: result: docbook-to-man could not be found. I will not build man pages!" >&5 22505echo "${ECHO_T}docbook-to-man could not be found. I will not build man pages!" >&6 22506else 22507 DOCDIR=man 22508fi 22509 22510 22511 22512 22513 22514 22515 22516 22517 ac_config_files="$ac_config_files dbf.spec Makefile man/Makefile src/Makefile po/Makefile.in" 22518cat >confcache <<\_ACEOF 22519# This file is a shell script that caches the results of configure 22520# tests run on this system so they can be shared between configure 22521# scripts and configure runs, see configure's option --config-cache. 22522# It is not useful on other systems. If it contains results you don't 22523# want to keep, you may remove or edit it. 22524# 22525# config.status only pays attention to the cache file if you give it 22526# the --recheck option to rerun configure. 22527# 22528# `ac_cv_env_foo' variables (set or unset) will be overridden when 22529# loading this file, other *unset* `ac_cv_foo' will be assigned the 22530# following values. 22531 22532_ACEOF 22533 22534# The following way of writing the cache mishandles newlines in values, 22535# but we know of no workaround that is simple, portable, and efficient. 22536# So, don't put newlines in cache variables' values. 22537# Ultrix sh set writes to stderr and can't be redirected directly, 22538# and sets the high bit in the cache file unless we assign to the vars. 22539{ 22540 (set) 2>&1 | 22541 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22542 *ac_space=\ *) 22543 # `set' does not quote correctly, so add quotes (double-quote 22544 # substitution turns \\\\ into \\, and sed turns \\ into \). 22545 sed -n \ 22546 "s/'/'\\\\''/g; 22547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22548 ;; 22549 *) 22550 # `set' quotes correctly as required by POSIX, so do not add quotes. 22551 sed -n \ 22552 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22553 ;; 22554 esac; 22555} | 22556 sed ' 22557 t clear 22558 : clear 22559 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22560 t end 22561 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22562 : end' >>confcache 22563if diff $cache_file confcache >/dev/null 2>&1; then :; else 22564 if test -w $cache_file; then 22565 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22566 cat confcache >$cache_file 22567 else 22568 echo "not updating unwritable cache $cache_file" 22569 fi 22570fi 22571rm -f confcache 22572 22573test "x$prefix" = xNONE && prefix=$ac_default_prefix 22574# Let make expand exec_prefix. 22575test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22576 22577# VPATH may cause trouble with some makes, so we remove $(srcdir), 22578# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22579# trailing colons and then remove the whole line if VPATH becomes empty 22580# (actually we leave an empty line to preserve line numbers). 22581if test "x$srcdir" = x.; then 22582 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22583s/:*\$(srcdir):*/:/; 22584s/:*\${srcdir}:*/:/; 22585s/:*@srcdir@:*/:/; 22586s/^\([^=]*=[ ]*\):*/\1/; 22587s/:*$//; 22588s/^[^=]*=[ ]*$//; 22589}' 22590fi 22591 22592DEFS=-DHAVE_CONFIG_H 22593 22594ac_libobjs= 22595ac_ltlibobjs= 22596for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22597 # 1. Remove the extension, and $U if already installed. 22598 ac_i=`echo "$ac_i" | 22599 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22600 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22601 # will be set to the directory where LIBOBJS objects are built. 22602 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22603 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22604done 22605LIBOBJS=$ac_libobjs 22606 22607LTLIBOBJS=$ac_ltlibobjs 22608 22609 22610if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22611 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22612Usually this means the macro was only invoked conditionally." >&5 22613echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22614Usually this means the macro was only invoked conditionally." >&2;} 22615 { (exit 1); exit 1; }; } 22616fi 22617 22618 22619 mv -f po/POTFILES po/POTFILES.tmp 22620 sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES 22621 rm -f po/POTFILES.tmp 22622 22623 22624if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22625 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22626Usually this means the macro was only invoked conditionally." >&5 22627echo "$as_me: error: conditional \"AMDEP\" was never defined. 22628Usually this means the macro was only invoked conditionally." >&2;} 22629 { (exit 1); exit 1; }; } 22630fi 22631if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22632 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22633Usually this means the macro was only invoked conditionally." >&5 22634echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22635Usually this means the macro was only invoked conditionally." >&2;} 22636 { (exit 1); exit 1; }; } 22637fi 22638if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22639 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22640Usually this means the macro was only invoked conditionally." >&5 22641echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22642Usually this means the macro was only invoked conditionally." >&2;} 22643 { (exit 1); exit 1; }; } 22644fi 22645 22646: ${CONFIG_STATUS=./config.status} 22647ac_clean_files_save=$ac_clean_files 22648ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22649{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22650echo "$as_me: creating $CONFIG_STATUS" >&6;} 22651cat >$CONFIG_STATUS <<_ACEOF 22652#! $SHELL 22653# Generated by $as_me. 22654# Run this file to recreate the current configuration. 22655# Compiler output produced by configure, useful for debugging 22656# configure, is in config.log if it exists. 22657 22658debug=false 22659ac_cs_recheck=false 22660ac_cs_silent=false 22661SHELL=\${CONFIG_SHELL-$SHELL} 22662_ACEOF 22663 22664cat >>$CONFIG_STATUS <<\_ACEOF 22665## --------------------- ## 22666## M4sh Initialization. ## 22667## --------------------- ## 22668 22669# Be Bourne compatible 22670if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22671 emulate sh 22672 NULLCMD=: 22673 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22674 # is contrary to our usage. Disable this feature. 22675 alias -g '${1+"$@"}'='"$@"' 22676elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22677 set -o posix 22678fi 22679DUALCASE=1; export DUALCASE # for MKS sh 22680 22681# Support unset when possible. 22682if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22683 as_unset=unset 22684else 22685 as_unset=false 22686fi 22687 22688 22689# Work around bugs in pre-3.0 UWIN ksh. 22690$as_unset ENV MAIL MAILPATH 22691PS1='$ ' 22692PS2='> ' 22693PS4='+ ' 22694 22695# NLS nuisances. 22696for as_var in \ 22697 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22698 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22699 LC_TELEPHONE LC_TIME 22700do 22701 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22702 eval $as_var=C; export $as_var 22703 else 22704 $as_unset $as_var 22705 fi 22706done 22707 22708# Required to use basename. 22709if expr a : '\(a\)' >/dev/null 2>&1; then 22710 as_expr=expr 22711else 22712 as_expr=false 22713fi 22714 22715if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22716 as_basename=basename 22717else 22718 as_basename=false 22719fi 22720 22721 22722# Name of the executable. 22723as_me=`$as_basename "$0" || 22724$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22725 X"$0" : 'X\(//\)$' \| \ 22726 X"$0" : 'X\(/\)$' \| \ 22727 . : '\(.\)' 2>/dev/null || 22728echo X/"$0" | 22729 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22730 /^X\/\(\/\/\)$/{ s//\1/; q; } 22731 /^X\/\(\/\).*/{ s//\1/; q; } 22732 s/.*/./; q'` 22733 22734 22735# PATH needs CR, and LINENO needs CR and PATH. 22736# Avoid depending upon Character Ranges. 22737as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22738as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22739as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22740as_cr_digits='0123456789' 22741as_cr_alnum=$as_cr_Letters$as_cr_digits 22742 22743# The user is always right. 22744if test "${PATH_SEPARATOR+set}" != set; then 22745 echo "#! /bin/sh" >conf$$.sh 22746 echo "exit 0" >>conf$$.sh 22747 chmod +x conf$$.sh 22748 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22749 PATH_SEPARATOR=';' 22750 else 22751 PATH_SEPARATOR=: 22752 fi 22753 rm -f conf$$.sh 22754fi 22755 22756 22757 as_lineno_1=$LINENO 22758 as_lineno_2=$LINENO 22759 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22760 test "x$as_lineno_1" != "x$as_lineno_2" && 22761 test "x$as_lineno_3" = "x$as_lineno_2" || { 22762 # Find who we are. Look in the path if we contain no path at all 22763 # relative or not. 22764 case $0 in 22765 *[\\/]* ) as_myself=$0 ;; 22766 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22767for as_dir in $PATH 22768do 22769 IFS=$as_save_IFS 22770 test -z "$as_dir" && as_dir=. 22771 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22772done 22773 22774 ;; 22775 esac 22776 # We did not find ourselves, most probably we were run as `sh COMMAND' 22777 # in which case we are not to be found in the path. 22778 if test "x$as_myself" = x; then 22779 as_myself=$0 22780 fi 22781 if test ! -f "$as_myself"; then 22782 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22783echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22784 { (exit 1); exit 1; }; } 22785 fi 22786 case $CONFIG_SHELL in 22787 '') 22788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22789for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22790do 22791 IFS=$as_save_IFS 22792 test -z "$as_dir" && as_dir=. 22793 for as_base in sh bash ksh sh5; do 22794 case $as_dir in 22795 /*) 22796 if ("$as_dir/$as_base" -c ' 22797 as_lineno_1=$LINENO 22798 as_lineno_2=$LINENO 22799 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22800 test "x$as_lineno_1" != "x$as_lineno_2" && 22801 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22802 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22803 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22804 CONFIG_SHELL=$as_dir/$as_base 22805 export CONFIG_SHELL 22806 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22807 fi;; 22808 esac 22809 done 22810done 22811;; 22812 esac 22813 22814 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22815 # uniformly replaced by the line number. The first 'sed' inserts a 22816 # line-number line before each line; the second 'sed' does the real 22817 # work. The second script uses 'N' to pair each line-number line 22818 # with the numbered line, and appends trailing '-' during 22819 # substitution so that $LINENO is not a special case at line end. 22820 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22821 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22822 sed '=' <$as_myself | 22823 sed ' 22824 N 22825 s,$,-, 22826 : loop 22827 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22828 t loop 22829 s,-$,, 22830 s,^['$as_cr_digits']*\n,, 22831 ' >$as_me.lineno && 22832 chmod +x $as_me.lineno || 22833 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22834echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22835 { (exit 1); exit 1; }; } 22836 22837 # Don't try to exec as it changes $[0], causing all sort of problems 22838 # (the dirname of $[0] is not the place where we might find the 22839 # original and so on. Autoconf is especially sensible to this). 22840 . ./$as_me.lineno 22841 # Exit status is that of the last command. 22842 exit 22843} 22844 22845 22846case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22847 *c*,-n*) ECHO_N= ECHO_C=' 22848' ECHO_T=' ' ;; 22849 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22850 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22851esac 22852 22853if expr a : '\(a\)' >/dev/null 2>&1; then 22854 as_expr=expr 22855else 22856 as_expr=false 22857fi 22858 22859rm -f conf$$ conf$$.exe conf$$.file 22860echo >conf$$.file 22861if ln -s conf$$.file conf$$ 2>/dev/null; then 22862 # We could just check for DJGPP; but this test a) works b) is more generic 22863 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22864 if test -f conf$$.exe; then 22865 # Don't use ln at all; we don't have any links 22866 as_ln_s='cp -p' 22867 else 22868 as_ln_s='ln -s' 22869 fi 22870elif ln conf$$.file conf$$ 2>/dev/null; then 22871 as_ln_s=ln 22872else 22873 as_ln_s='cp -p' 22874fi 22875rm -f conf$$ conf$$.exe conf$$.file 22876 22877if mkdir -p . 2>/dev/null; then 22878 as_mkdir_p=: 22879else 22880 test -d ./-p && rmdir ./-p 22881 as_mkdir_p=false 22882fi 22883 22884as_executable_p="test -f" 22885 22886# Sed expression to map a string onto a valid CPP name. 22887as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22888 22889# Sed expression to map a string onto a valid variable name. 22890as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22891 22892 22893# IFS 22894# We need space, tab and new line, in precisely that order. 22895as_nl=' 22896' 22897IFS=" $as_nl" 22898 22899# CDPATH. 22900$as_unset CDPATH 22901 22902exec 6>&1 22903 22904# Open the log real soon, to keep \$[0] and so on meaningful, and to 22905# report actual input values of CONFIG_FILES etc. instead of their 22906# values after options handling. Logging --version etc. is OK. 22907exec 5>>config.log 22908{ 22909 echo 22910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22911## Running $as_me. ## 22912_ASBOX 22913} >&5 22914cat >&5 <<_CSEOF 22915 22916This file was extended by dbf $as_me 0.9.0, which was 22917generated by GNU Autoconf 2.59. Invocation command line was 22918 22919 CONFIG_FILES = $CONFIG_FILES 22920 CONFIG_HEADERS = $CONFIG_HEADERS 22921 CONFIG_LINKS = $CONFIG_LINKS 22922 CONFIG_COMMANDS = $CONFIG_COMMANDS 22923 $ $0 $@ 22924 22925_CSEOF 22926echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22927echo >&5 22928_ACEOF 22929 22930# Files that config.status was made for. 22931if test -n "$ac_config_files"; then 22932 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22933fi 22934 22935if test -n "$ac_config_headers"; then 22936 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22937fi 22938 22939if test -n "$ac_config_links"; then 22940 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22941fi 22942 22943if test -n "$ac_config_commands"; then 22944 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22945fi 22946 22947cat >>$CONFIG_STATUS <<\_ACEOF 22948 22949ac_cs_usage="\ 22950\`$as_me' instantiates files from templates according to the 22951current configuration. 22952 22953Usage: $0 [OPTIONS] [FILE]... 22954 22955 -h, --help print this help, then exit 22956 -V, --version print version number, then exit 22957 -q, --quiet do not print progress messages 22958 -d, --debug don't remove temporary files 22959 --recheck update $as_me by reconfiguring in the same conditions 22960 --file=FILE[:TEMPLATE] 22961 instantiate the configuration file FILE 22962 --header=FILE[:TEMPLATE] 22963 instantiate the configuration header FILE 22964 22965Configuration files: 22966$config_files 22967 22968Configuration headers: 22969$config_headers 22970 22971Configuration commands: 22972$config_commands 22973 22974Report bugs to <bug-autoconf@gnu.org>." 22975_ACEOF 22976 22977cat >>$CONFIG_STATUS <<_ACEOF 22978ac_cs_version="\\ 22979dbf config.status 0.9.0 22980configured by $0, generated by GNU Autoconf 2.59, 22981 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22982 22983Copyright (C) 2003 Free Software Foundation, Inc. 22984This config.status script is free software; the Free Software Foundation 22985gives unlimited permission to copy, distribute and modify it." 22986srcdir=$srcdir 22987INSTALL="$INSTALL" 22988_ACEOF 22989 22990cat >>$CONFIG_STATUS <<\_ACEOF 22991# If no file are specified by the user, then we need to provide default 22992# value. By we need to know if files were specified by the user. 22993ac_need_defaults=: 22994while test $# != 0 22995do 22996 case $1 in 22997 --*=*) 22998 ac_option=`expr "x$1" : 'x\([^=]*\)='` 22999 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23000 ac_shift=: 23001 ;; 23002 -*) 23003 ac_option=$1 23004 ac_optarg=$2 23005 ac_shift=shift 23006 ;; 23007 *) # This is not an option, so the user has probably given explicit 23008 # arguments. 23009 ac_option=$1 23010 ac_need_defaults=false;; 23011 esac 23012 23013 case $ac_option in 23014 # Handling of the options. 23015_ACEOF 23016cat >>$CONFIG_STATUS <<\_ACEOF 23017 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23018 ac_cs_recheck=: ;; 23019 --version | --vers* | -V ) 23020 echo "$ac_cs_version"; exit 0 ;; 23021 --he | --h) 23022 # Conflict between --help and --header 23023 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23024Try \`$0 --help' for more information." >&5 23025echo "$as_me: error: ambiguous option: $1 23026Try \`$0 --help' for more information." >&2;} 23027 { (exit 1); exit 1; }; };; 23028 --help | --hel | -h ) 23029 echo "$ac_cs_usage"; exit 0 ;; 23030 --debug | --d* | -d ) 23031 debug=: ;; 23032 --file | --fil | --fi | --f ) 23033 $ac_shift 23034 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23035 ac_need_defaults=false;; 23036 --header | --heade | --head | --hea ) 23037 $ac_shift 23038 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23039 ac_need_defaults=false;; 23040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23041 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23042 ac_cs_silent=: ;; 23043 23044 # This is an error. 23045 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23046Try \`$0 --help' for more information." >&5 23047echo "$as_me: error: unrecognized option: $1 23048Try \`$0 --help' for more information." >&2;} 23049 { (exit 1); exit 1; }; } ;; 23050 23051 *) ac_config_targets="$ac_config_targets $1" ;; 23052 23053 esac 23054 shift 23055done 23056 23057ac_configure_extra_args= 23058 23059if $ac_cs_silent; then 23060 exec 6>/dev/null 23061 ac_configure_extra_args="$ac_configure_extra_args --silent" 23062fi 23063 23064_ACEOF 23065cat >>$CONFIG_STATUS <<_ACEOF 23066if \$ac_cs_recheck; then 23067 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23068 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23069fi 23070 23071_ACEOF 23072 23073cat >>$CONFIG_STATUS <<_ACEOF 23074# 23075# INIT-COMMANDS section. 23076# 23077 23078INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir} 23079INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}' 23080MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}' 23081XGETTEXT='${INTLTOOL_XGETTEXT}' 23082AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23083 23084 23085_ACEOF 23086 23087 23088 23089cat >>$CONFIG_STATUS <<\_ACEOF 23090for ac_config_target in $ac_config_targets 23091do 23092 case "$ac_config_target" in 23093 # Handling of arguments. 23094 "dbf.spec" ) CONFIG_FILES="$CONFIG_FILES dbf.spec" ;; 23095 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23096 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23097 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23098 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 23099 "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;; 23100 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23101 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 23102 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23103 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23104echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23105 { (exit 1); exit 1; }; };; 23106 esac 23107done 23108 23109# If the user did not use the arguments to specify the items to instantiate, 23110# then the envvar interface is used. Set only those that are not. 23111# We use the long form for the default assignment because of an extremely 23112# bizarre bug on SunOS 4.1.3. 23113if $ac_need_defaults; then 23114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23117fi 23118 23119# Have a temporary directory for convenience. Make it in the build tree 23120# simply because there is no reason to put it here, and in addition, 23121# creating and moving files from /tmp can sometimes cause problems. 23122# Create a temporary directory, and hook for its removal unless debugging. 23123$debug || 23124{ 23125 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23126 trap '{ (exit 1); exit 1; }' 1 2 13 15 23127} 23128 23129# Create a (secure) tmp directory for tmp files. 23130 23131{ 23132 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23133 test -n "$tmp" && test -d "$tmp" 23134} || 23135{ 23136 tmp=./confstat$$-$RANDOM 23137 (umask 077 && mkdir $tmp) 23138} || 23139{ 23140 echo "$me: cannot create a temporary directory in ." >&2 23141 { (exit 1); exit 1; } 23142} 23143 23144_ACEOF 23145 23146cat >>$CONFIG_STATUS <<_ACEOF 23147 23148# 23149# CONFIG_FILES section. 23150# 23151 23152# No need to generate the scripts if there are no CONFIG_FILES. 23153# This happens for instance when ./config.status config.h 23154if test -n "\$CONFIG_FILES"; then 23155 # Protect against being on the right side of a sed subst in config.status. 23156 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23157 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23158s,@SHELL@,$SHELL,;t t 23159s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23160s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23161s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23162s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23163s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23164s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23165s,@exec_prefix@,$exec_prefix,;t t 23166s,@prefix@,$prefix,;t t 23167s,@program_transform_name@,$program_transform_name,;t t 23168s,@bindir@,$bindir,;t t 23169s,@sbindir@,$sbindir,;t t 23170s,@libexecdir@,$libexecdir,;t t 23171s,@datadir@,$datadir,;t t 23172s,@sysconfdir@,$sysconfdir,;t t 23173s,@sharedstatedir@,$sharedstatedir,;t t 23174s,@localstatedir@,$localstatedir,;t t 23175s,@libdir@,$libdir,;t t 23176s,@includedir@,$includedir,;t t 23177s,@oldincludedir@,$oldincludedir,;t t 23178s,@infodir@,$infodir,;t t 23179s,@mandir@,$mandir,;t t 23180s,@build_alias@,$build_alias,;t t 23181s,@host_alias@,$host_alias,;t t 23182s,@target_alias@,$target_alias,;t t 23183s,@DEFS@,$DEFS,;t t 23184s,@ECHO_C@,$ECHO_C,;t t 23185s,@ECHO_N@,$ECHO_N,;t t 23186s,@ECHO_T@,$ECHO_T,;t t 23187s,@LIBS@,$LIBS,;t t 23188s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23189s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23190s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23191s,@CYGPATH_W@,$CYGPATH_W,;t t 23192s,@PACKAGE@,$PACKAGE,;t t 23193s,@VERSION@,$VERSION,;t t 23194s,@ACLOCAL@,$ACLOCAL,;t t 23195s,@AUTOCONF@,$AUTOCONF,;t t 23196s,@AUTOMAKE@,$AUTOMAKE,;t t 23197s,@AUTOHEADER@,$AUTOHEADER,;t t 23198s,@MAKEINFO@,$MAKEINFO,;t t 23199s,@install_sh@,$install_sh,;t t 23200s,@STRIP@,$STRIP,;t t 23201s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23202s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 23203s,@mkdir_p@,$mkdir_p,;t t 23204s,@AWK@,$AWK,;t t 23205s,@SET_MAKE@,$SET_MAKE,;t t 23206s,@am__leading_dot@,$am__leading_dot,;t t 23207s,@AMTAR@,$AMTAR,;t t 23208s,@am__tar@,$am__tar,;t t 23209s,@am__untar@,$am__untar,;t t 23210s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 23211s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 23212s,@MAINT@,$MAINT,;t t 23213s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t 23214s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t 23215s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t 23216s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t 23217s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t 23218s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t 23219s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t 23220s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t 23221s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t 23222s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t 23223s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t 23224s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t 23225s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t 23226s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t 23227s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t 23228s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t 23229s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t 23230s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t 23231s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t 23232s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t 23233s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t 23234s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t 23235s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t 23236s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t 23237s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t 23238s,@CC@,$CC,;t t 23239s,@CFLAGS@,$CFLAGS,;t t 23240s,@LDFLAGS@,$LDFLAGS,;t t 23241s,@CPPFLAGS@,$CPPFLAGS,;t t 23242s,@ac_ct_CC@,$ac_ct_CC,;t t 23243s,@EXEEXT@,$EXEEXT,;t t 23244s,@OBJEXT@,$OBJEXT,;t t 23245s,@DEPDIR@,$DEPDIR,;t t 23246s,@am__include@,$am__include,;t t 23247s,@am__quote@,$am__quote,;t t 23248s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 23249s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 23250s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 23251s,@CCDEPMODE@,$CCDEPMODE,;t t 23252s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 23253s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 23254s,@LN_S@,$LN_S,;t t 23255s,@CPP@,$CPP,;t t 23256s,@EGREP@,$EGREP,;t t 23257s,@USE_NLS@,$USE_NLS,;t t 23258s,@MSGFMT@,$MSGFMT,;t t 23259s,@GMSGFMT@,$GMSGFMT,;t t 23260s,@XGETTEXT@,$XGETTEXT,;t t 23261s,@CATALOGS@,$CATALOGS,;t t 23262s,@CATOBJEXT@,$CATOBJEXT,;t t 23263s,@DATADIRNAME@,$DATADIRNAME,;t t 23264s,@GMOFILES@,$GMOFILES,;t t 23265s,@INSTOBJEXT@,$INSTOBJEXT,;t t 23266s,@INTLLIBS@,$INTLLIBS,;t t 23267s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t 23268s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t 23269s,@POFILES@,$POFILES,;t t 23270s,@POSUB@,$POSUB,;t t 23271s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 23272s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t 23273s,@build@,$build,;t t 23274s,@build_cpu@,$build_cpu,;t t 23275s,@build_vendor@,$build_vendor,;t t 23276s,@build_os@,$build_os,;t t 23277s,@host@,$host,;t t 23278s,@host_cpu@,$host_cpu,;t t 23279s,@host_vendor@,$host_vendor,;t t 23280s,@host_os@,$host_os,;t t 23281s,@ECHO@,$ECHO,;t t 23282s,@AR@,$AR,;t t 23283s,@ac_ct_AR@,$ac_ct_AR,;t t 23284s,@RANLIB@,$RANLIB,;t t 23285s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23286s,@CXX@,$CXX,;t t 23287s,@CXXFLAGS@,$CXXFLAGS,;t t 23288s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23289s,@CXXDEPMODE@,$CXXDEPMODE,;t t 23290s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 23291s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 23292s,@CXXCPP@,$CXXCPP,;t t 23293s,@F77@,$F77,;t t 23294s,@FFLAGS@,$FFLAGS,;t t 23295s,@ac_ct_F77@,$ac_ct_F77,;t t 23296s,@LIBTOOL@,$LIBTOOL,;t t 23297s,@LIBOBJS@,$LIBOBJS,;t t 23298s,@DOC_TO_MAN@,$DOC_TO_MAN,;t t 23299s,@DBFLIB_LIBDIR@,$DBFLIB_LIBDIR,;t t 23300s,@DBFLIB_LIBS@,$DBFLIB_LIBS,;t t 23301s,@DBFLIB_INCLUDEDIR@,$DBFLIB_INCLUDEDIR,;t t 23302s,@DOCDIR@,$DOCDIR,;t t 23303s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23304CEOF 23305 23306_ACEOF 23307 23308 cat >>$CONFIG_STATUS <<\_ACEOF 23309 # Split the substitutions into bite-sized pieces for seds with 23310 # small command number limits, like on Digital OSF/1 and HP-UX. 23311 ac_max_sed_lines=48 23312 ac_sed_frag=1 # Number of current file. 23313 ac_beg=1 # First line for current file. 23314 ac_end=$ac_max_sed_lines # Line after last line for current file. 23315 ac_more_lines=: 23316 ac_sed_cmds= 23317 while $ac_more_lines; do 23318 if test $ac_beg -gt 1; then 23319 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23320 else 23321 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23322 fi 23323 if test ! -s $tmp/subs.frag; then 23324 ac_more_lines=false 23325 else 23326 # The purpose of the label and of the branching condition is to 23327 # speed up the sed processing (if there are no `@' at all, there 23328 # is no need to browse any of the substitutions). 23329 # These are the two extra sed commands mentioned above. 23330 (echo ':t 23331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23332 if test -z "$ac_sed_cmds"; then 23333 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23334 else 23335 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23336 fi 23337 ac_sed_frag=`expr $ac_sed_frag + 1` 23338 ac_beg=$ac_end 23339 ac_end=`expr $ac_end + $ac_max_sed_lines` 23340 fi 23341 done 23342 if test -z "$ac_sed_cmds"; then 23343 ac_sed_cmds=cat 23344 fi 23345fi # test -n "$CONFIG_FILES" 23346 23347_ACEOF 23348cat >>$CONFIG_STATUS <<\_ACEOF 23349for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23351 case $ac_file in 23352 - | *:- | *:-:* ) # input from stdin 23353 cat >$tmp/stdin 23354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23358 * ) ac_file_in=$ac_file.in ;; 23359 esac 23360 23361 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23362 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23363$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23364 X"$ac_file" : 'X\(//\)[^/]' \| \ 23365 X"$ac_file" : 'X\(//\)$' \| \ 23366 X"$ac_file" : 'X\(/\)' \| \ 23367 . : '\(.\)' 2>/dev/null || 23368echo X"$ac_file" | 23369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23370 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23371 /^X\(\/\/\)$/{ s//\1/; q; } 23372 /^X\(\/\).*/{ s//\1/; q; } 23373 s/.*/./; q'` 23374 { if $as_mkdir_p; then 23375 mkdir -p "$ac_dir" 23376 else 23377 as_dir="$ac_dir" 23378 as_dirs= 23379 while test ! -d "$as_dir"; do 23380 as_dirs="$as_dir $as_dirs" 23381 as_dir=`(dirname "$as_dir") 2>/dev/null || 23382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23383 X"$as_dir" : 'X\(//\)[^/]' \| \ 23384 X"$as_dir" : 'X\(//\)$' \| \ 23385 X"$as_dir" : 'X\(/\)' \| \ 23386 . : '\(.\)' 2>/dev/null || 23387echo X"$as_dir" | 23388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23389 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23390 /^X\(\/\/\)$/{ s//\1/; q; } 23391 /^X\(\/\).*/{ s//\1/; q; } 23392 s/.*/./; q'` 23393 done 23394 test ! -n "$as_dirs" || mkdir $as_dirs 23395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23396echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23397 { (exit 1); exit 1; }; }; } 23398 23399 ac_builddir=. 23400 23401if test "$ac_dir" != .; then 23402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23403 # A "../" for each directory in $ac_dir_suffix. 23404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23405else 23406 ac_dir_suffix= ac_top_builddir= 23407fi 23408 23409case $srcdir in 23410 .) # No --srcdir option. We are building in place. 23411 ac_srcdir=. 23412 if test -z "$ac_top_builddir"; then 23413 ac_top_srcdir=. 23414 else 23415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23416 fi ;; 23417 [\\/]* | ?:[\\/]* ) # Absolute path. 23418 ac_srcdir=$srcdir$ac_dir_suffix; 23419 ac_top_srcdir=$srcdir ;; 23420 *) # Relative path. 23421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23422 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23423esac 23424 23425# Do not use `cd foo && pwd` to compute absolute paths, because 23426# the directories may not exist. 23427case `pwd` in 23428.) ac_abs_builddir="$ac_dir";; 23429*) 23430 case "$ac_dir" in 23431 .) ac_abs_builddir=`pwd`;; 23432 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23433 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23434 esac;; 23435esac 23436case $ac_abs_builddir in 23437.) ac_abs_top_builddir=${ac_top_builddir}.;; 23438*) 23439 case ${ac_top_builddir}. in 23440 .) ac_abs_top_builddir=$ac_abs_builddir;; 23441 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23442 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23443 esac;; 23444esac 23445case $ac_abs_builddir in 23446.) ac_abs_srcdir=$ac_srcdir;; 23447*) 23448 case $ac_srcdir in 23449 .) ac_abs_srcdir=$ac_abs_builddir;; 23450 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23451 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23452 esac;; 23453esac 23454case $ac_abs_builddir in 23455.) ac_abs_top_srcdir=$ac_top_srcdir;; 23456*) 23457 case $ac_top_srcdir in 23458 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23459 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23460 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23461 esac;; 23462esac 23463 23464 23465 case $INSTALL in 23466 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23467 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23468 esac 23469 23470 if test x"$ac_file" != x-; then 23471 { echo "$as_me:$LINENO: creating $ac_file" >&5 23472echo "$as_me: creating $ac_file" >&6;} 23473 rm -f "$ac_file" 23474 fi 23475 # Let's still pretend it is `configure' which instantiates (i.e., don't 23476 # use $as_me), people would be surprised to read: 23477 # /* config.h. Generated by config.status. */ 23478 if test x"$ac_file" = x-; then 23479 configure_input= 23480 else 23481 configure_input="$ac_file. " 23482 fi 23483 configure_input=$configure_input"Generated from `echo $ac_file_in | 23484 sed 's,.*/,,'` by configure." 23485 23486 # First look for the input files in the build tree, otherwise in the 23487 # src tree. 23488 ac_file_inputs=`IFS=: 23489 for f in $ac_file_in; do 23490 case $f in 23491 -) echo $tmp/stdin ;; 23492 [\\/$]*) 23493 # Absolute (can't be DOS-style, as IFS=:) 23494 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23495echo "$as_me: error: cannot find input file: $f" >&2;} 23496 { (exit 1); exit 1; }; } 23497 echo "$f";; 23498 *) # Relative 23499 if test -f "$f"; then 23500 # Build tree 23501 echo "$f" 23502 elif test -f "$srcdir/$f"; then 23503 # Source tree 23504 echo "$srcdir/$f" 23505 else 23506 # /dev/null tree 23507 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23508echo "$as_me: error: cannot find input file: $f" >&2;} 23509 { (exit 1); exit 1; }; } 23510 fi;; 23511 esac 23512 done` || { (exit 1); exit 1; } 23513_ACEOF 23514cat >>$CONFIG_STATUS <<_ACEOF 23515 sed "$ac_vpsub 23516$extrasub 23517_ACEOF 23518cat >>$CONFIG_STATUS <<\_ACEOF 23519:t 23520/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23521s,@configure_input@,$configure_input,;t t 23522s,@srcdir@,$ac_srcdir,;t t 23523s,@abs_srcdir@,$ac_abs_srcdir,;t t 23524s,@top_srcdir@,$ac_top_srcdir,;t t 23525s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23526s,@builddir@,$ac_builddir,;t t 23527s,@abs_builddir@,$ac_abs_builddir,;t t 23528s,@top_builddir@,$ac_top_builddir,;t t 23529s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23530s,@INSTALL@,$ac_INSTALL,;t t 23531" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23532 rm -f $tmp/stdin 23533 if test x"$ac_file" != x-; then 23534 mv $tmp/out $ac_file 23535 else 23536 cat $tmp/out 23537 rm -f $tmp/out 23538 fi 23539 23540done 23541_ACEOF 23542cat >>$CONFIG_STATUS <<\_ACEOF 23543 23544# 23545# CONFIG_HEADER section. 23546# 23547 23548# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23549# NAME is the cpp macro being defined and VALUE is the value it is being given. 23550# 23551# ac_d sets the value in "#define NAME VALUE" lines. 23552ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23553ac_dB='[ ].*$,\1#\2' 23554ac_dC=' ' 23555ac_dD=',;t' 23556# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23557ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23558ac_uB='$,\1#\2define\3' 23559ac_uC=' ' 23560ac_uD=',;t' 23561 23562for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23564 case $ac_file in 23565 - | *:- | *:-:* ) # input from stdin 23566 cat >$tmp/stdin 23567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23571 * ) ac_file_in=$ac_file.in ;; 23572 esac 23573 23574 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23575echo "$as_me: creating $ac_file" >&6;} 23576 23577 # First look for the input files in the build tree, otherwise in the 23578 # src tree. 23579 ac_file_inputs=`IFS=: 23580 for f in $ac_file_in; do 23581 case $f in 23582 -) echo $tmp/stdin ;; 23583 [\\/$]*) 23584 # Absolute (can't be DOS-style, as IFS=:) 23585 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23586echo "$as_me: error: cannot find input file: $f" >&2;} 23587 { (exit 1); exit 1; }; } 23588 # Do quote $f, to prevent DOS paths from being IFS'd. 23589 echo "$f";; 23590 *) # Relative 23591 if test -f "$f"; then 23592 # Build tree 23593 echo "$f" 23594 elif test -f "$srcdir/$f"; then 23595 # Source tree 23596 echo "$srcdir/$f" 23597 else 23598 # /dev/null tree 23599 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23600echo "$as_me: error: cannot find input file: $f" >&2;} 23601 { (exit 1); exit 1; }; } 23602 fi;; 23603 esac 23604 done` || { (exit 1); exit 1; } 23605 # Remove the trailing spaces. 23606 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23607 23608_ACEOF 23609 23610# Transform confdefs.h into two sed scripts, `conftest.defines' and 23611# `conftest.undefs', that substitutes the proper values into 23612# config.h.in to produce config.h. The first handles `#define' 23613# templates, and the second `#undef' templates. 23614# And first: Protect against being on the right side of a sed subst in 23615# config.status. Protect against being in an unquoted here document 23616# in config.status. 23617rm -f conftest.defines conftest.undefs 23618# Using a here document instead of a string reduces the quoting nightmare. 23619# Putting comments in sed scripts is not portable. 23620# 23621# `end' is used to avoid that the second main sed command (meant for 23622# 0-ary CPP macros) applies to n-ary macro definitions. 23623# See the Autoconf documentation for `clear'. 23624cat >confdef2sed.sed <<\_ACEOF 23625s/[\\&,]/\\&/g 23626s,[\\$`],\\&,g 23627t clear 23628: clear 23629s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23630t end 23631s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23632: end 23633_ACEOF 23634# If some macros were called several times there might be several times 23635# the same #defines, which is useless. Nevertheless, we may not want to 23636# sort them, since we want the *last* AC-DEFINE to be honored. 23637uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23638sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23639rm -f confdef2sed.sed 23640 23641# This sed command replaces #undef with comments. This is necessary, for 23642# example, in the case of _POSIX_SOURCE, which is predefined and required 23643# on some systems where configure will not decide to define it. 23644cat >>conftest.undefs <<\_ACEOF 23645s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23646_ACEOF 23647 23648# Break up conftest.defines because some shells have a limit on the size 23649# of here documents, and old seds have small limits too (100 cmds). 23650echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23651echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23652echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23653echo ' :' >>$CONFIG_STATUS 23654rm -f conftest.tail 23655while grep . conftest.defines >/dev/null 23656do 23657 # Write a limited-size here document to $tmp/defines.sed. 23658 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23659 # Speed up: don't consider the non `#define' lines. 23660 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23661 # Work around the forget-to-reset-the-flag bug. 23662 echo 't clr' >>$CONFIG_STATUS 23663 echo ': clr' >>$CONFIG_STATUS 23664 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23665 echo 'CEOF 23666 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23667 rm -f $tmp/in 23668 mv $tmp/out $tmp/in 23669' >>$CONFIG_STATUS 23670 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23671 rm -f conftest.defines 23672 mv conftest.tail conftest.defines 23673done 23674rm -f conftest.defines 23675echo ' fi # grep' >>$CONFIG_STATUS 23676echo >>$CONFIG_STATUS 23677 23678# Break up conftest.undefs because some shells have a limit on the size 23679# of here documents, and old seds have small limits too (100 cmds). 23680echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23681rm -f conftest.tail 23682while grep . conftest.undefs >/dev/null 23683do 23684 # Write a limited-size here document to $tmp/undefs.sed. 23685 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23686 # Speed up: don't consider the non `#undef' 23687 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23688 # Work around the forget-to-reset-the-flag bug. 23689 echo 't clr' >>$CONFIG_STATUS 23690 echo ': clr' >>$CONFIG_STATUS 23691 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23692 echo 'CEOF 23693 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23694 rm -f $tmp/in 23695 mv $tmp/out $tmp/in 23696' >>$CONFIG_STATUS 23697 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23698 rm -f conftest.undefs 23699 mv conftest.tail conftest.undefs 23700done 23701rm -f conftest.undefs 23702 23703cat >>$CONFIG_STATUS <<\_ACEOF 23704 # Let's still pretend it is `configure' which instantiates (i.e., don't 23705 # use $as_me), people would be surprised to read: 23706 # /* config.h. Generated by config.status. */ 23707 if test x"$ac_file" = x-; then 23708 echo "/* Generated by configure. */" >$tmp/config.h 23709 else 23710 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23711 fi 23712 cat $tmp/in >>$tmp/config.h 23713 rm -f $tmp/in 23714 if test x"$ac_file" != x-; then 23715 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23716 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23717echo "$as_me: $ac_file is unchanged" >&6;} 23718 else 23719 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23720$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23721 X"$ac_file" : 'X\(//\)[^/]' \| \ 23722 X"$ac_file" : 'X\(//\)$' \| \ 23723 X"$ac_file" : 'X\(/\)' \| \ 23724 . : '\(.\)' 2>/dev/null || 23725echo X"$ac_file" | 23726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23727 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23728 /^X\(\/\/\)$/{ s//\1/; q; } 23729 /^X\(\/\).*/{ s//\1/; q; } 23730 s/.*/./; q'` 23731 { if $as_mkdir_p; then 23732 mkdir -p "$ac_dir" 23733 else 23734 as_dir="$ac_dir" 23735 as_dirs= 23736 while test ! -d "$as_dir"; do 23737 as_dirs="$as_dir $as_dirs" 23738 as_dir=`(dirname "$as_dir") 2>/dev/null || 23739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23740 X"$as_dir" : 'X\(//\)[^/]' \| \ 23741 X"$as_dir" : 'X\(//\)$' \| \ 23742 X"$as_dir" : 'X\(/\)' \| \ 23743 . : '\(.\)' 2>/dev/null || 23744echo X"$as_dir" | 23745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23746 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23747 /^X\(\/\/\)$/{ s//\1/; q; } 23748 /^X\(\/\).*/{ s//\1/; q; } 23749 s/.*/./; q'` 23750 done 23751 test ! -n "$as_dirs" || mkdir $as_dirs 23752 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23753echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23754 { (exit 1); exit 1; }; }; } 23755 23756 rm -f $ac_file 23757 mv $tmp/config.h $ac_file 23758 fi 23759 else 23760 cat $tmp/config.h 23761 rm -f $tmp/config.h 23762 fi 23763# Compute $ac_file's index in $config_headers. 23764_am_stamp_count=1 23765for _am_header in $config_headers :; do 23766 case $_am_header in 23767 $ac_file | $ac_file:* ) 23768 break ;; 23769 * ) 23770 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23771 esac 23772done 23773echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 23774$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23775 X$ac_file : 'X\(//\)[^/]' \| \ 23776 X$ac_file : 'X\(//\)$' \| \ 23777 X$ac_file : 'X\(/\)' \| \ 23778 . : '\(.\)' 2>/dev/null || 23779echo X$ac_file | 23780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23781 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23782 /^X\(\/\/\)$/{ s//\1/; q; } 23783 /^X\(\/\).*/{ s//\1/; q; } 23784 s/.*/./; q'`/stamp-h$_am_stamp_count 23785done 23786_ACEOF 23787cat >>$CONFIG_STATUS <<\_ACEOF 23788 23789# 23790# CONFIG_COMMANDS section. 23791# 23792for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23793 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23794 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23795 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23796$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23797 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23798 X"$ac_dest" : 'X\(//\)$' \| \ 23799 X"$ac_dest" : 'X\(/\)' \| \ 23800 . : '\(.\)' 2>/dev/null || 23801echo X"$ac_dest" | 23802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23803 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23804 /^X\(\/\/\)$/{ s//\1/; q; } 23805 /^X\(\/\).*/{ s//\1/; q; } 23806 s/.*/./; q'` 23807 { if $as_mkdir_p; then 23808 mkdir -p "$ac_dir" 23809 else 23810 as_dir="$ac_dir" 23811 as_dirs= 23812 while test ! -d "$as_dir"; do 23813 as_dirs="$as_dir $as_dirs" 23814 as_dir=`(dirname "$as_dir") 2>/dev/null || 23815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23816 X"$as_dir" : 'X\(//\)[^/]' \| \ 23817 X"$as_dir" : 'X\(//\)$' \| \ 23818 X"$as_dir" : 'X\(/\)' \| \ 23819 . : '\(.\)' 2>/dev/null || 23820echo X"$as_dir" | 23821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23822 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23823 /^X\(\/\/\)$/{ s//\1/; q; } 23824 /^X\(\/\).*/{ s//\1/; q; } 23825 s/.*/./; q'` 23826 done 23827 test ! -n "$as_dirs" || mkdir $as_dirs 23828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23829echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23830 { (exit 1); exit 1; }; }; } 23831 23832 ac_builddir=. 23833 23834if test "$ac_dir" != .; then 23835 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23836 # A "../" for each directory in $ac_dir_suffix. 23837 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23838else 23839 ac_dir_suffix= ac_top_builddir= 23840fi 23841 23842case $srcdir in 23843 .) # No --srcdir option. We are building in place. 23844 ac_srcdir=. 23845 if test -z "$ac_top_builddir"; then 23846 ac_top_srcdir=. 23847 else 23848 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23849 fi ;; 23850 [\\/]* | ?:[\\/]* ) # Absolute path. 23851 ac_srcdir=$srcdir$ac_dir_suffix; 23852 ac_top_srcdir=$srcdir ;; 23853 *) # Relative path. 23854 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23855 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23856esac 23857 23858# Do not use `cd foo && pwd` to compute absolute paths, because 23859# the directories may not exist. 23860case `pwd` in 23861.) ac_abs_builddir="$ac_dir";; 23862*) 23863 case "$ac_dir" in 23864 .) ac_abs_builddir=`pwd`;; 23865 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23866 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23867 esac;; 23868esac 23869case $ac_abs_builddir in 23870.) ac_abs_top_builddir=${ac_top_builddir}.;; 23871*) 23872 case ${ac_top_builddir}. in 23873 .) ac_abs_top_builddir=$ac_abs_builddir;; 23874 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23875 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23876 esac;; 23877esac 23878case $ac_abs_builddir in 23879.) ac_abs_srcdir=$ac_srcdir;; 23880*) 23881 case $ac_srcdir in 23882 .) ac_abs_srcdir=$ac_abs_builddir;; 23883 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23884 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23885 esac;; 23886esac 23887case $ac_abs_builddir in 23888.) ac_abs_top_srcdir=$ac_top_srcdir;; 23889*) 23890 case $ac_top_srcdir in 23891 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23892 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23893 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23894 esac;; 23895esac 23896 23897 23898 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23899echo "$as_me: executing $ac_dest commands" >&6;} 23900 case $ac_dest in 23901 intltool ) 23902 23903intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \ 23904 -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \ 23905 -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \ 23906 -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \ 23907 -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \ 23908 -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'" 23909 23910eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \ 23911 > intltool-extract.out 23912if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then 23913 rm -f intltool-extract.out 23914else 23915 mv -f intltool-extract.out intltool-extract 23916fi 23917chmod ugo+x intltool-extract 23918chmod u+w intltool-extract 23919 23920eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \ 23921 > intltool-merge.out 23922if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then 23923 rm -f intltool-merge.out 23924else 23925 mv -f intltool-merge.out intltool-merge 23926fi 23927chmod ugo+x intltool-merge 23928chmod u+w intltool-merge 23929 23930eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \ 23931 > intltool-update.out 23932if cmp -s intltool-update intltool-update.out 2>/dev/null; then 23933 rm -f intltool-update.out 23934else 23935 mv -f intltool-update.out intltool-update 23936fi 23937chmod ugo+x intltool-update 23938chmod u+w intltool-update 23939 23940 ;; 23941 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23942 # Strip MF so we end up with the name of the file. 23943 mf=`echo "$mf" | sed -e 's/:.*$//'` 23944 # Check whether this is an Automake generated Makefile or not. 23945 # We used to match only the files named `Makefile.in', but 23946 # some people rename them; so instead we look at the file content. 23947 # Grep'ing the first line is not enough: some people post-process 23948 # each Makefile.in and add a new line on top of each file to say so. 23949 # So let's grep whole file. 23950 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23951 dirpart=`(dirname "$mf") 2>/dev/null || 23952$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23953 X"$mf" : 'X\(//\)[^/]' \| \ 23954 X"$mf" : 'X\(//\)$' \| \ 23955 X"$mf" : 'X\(/\)' \| \ 23956 . : '\(.\)' 2>/dev/null || 23957echo X"$mf" | 23958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23959 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23960 /^X\(\/\/\)$/{ s//\1/; q; } 23961 /^X\(\/\).*/{ s//\1/; q; } 23962 s/.*/./; q'` 23963 else 23964 continue 23965 fi 23966 # Extract the definition of DEPDIR, am__include, and am__quote 23967 # from the Makefile without running `make'. 23968 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23969 test -z "$DEPDIR" && continue 23970 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23971 test -z "am__include" && continue 23972 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23973 # When using ansi2knr, U may be empty or an underscore; expand it 23974 U=`sed -n 's/^U = //p' < "$mf"` 23975 # Find all dependency output files, they are included files with 23976 # $(DEPDIR) in their names. We invoke sed twice because it is the 23977 # simplest approach to changing $(DEPDIR) to its actual value in the 23978 # expansion. 23979 for file in `sed -n " 23980 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23981 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23982 # Make sure the directory exists. 23983 test -f "$dirpart/$file" && continue 23984 fdir=`(dirname "$file") 2>/dev/null || 23985$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23986 X"$file" : 'X\(//\)[^/]' \| \ 23987 X"$file" : 'X\(//\)$' \| \ 23988 X"$file" : 'X\(/\)' \| \ 23989 . : '\(.\)' 2>/dev/null || 23990echo X"$file" | 23991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23992 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23993 /^X\(\/\/\)$/{ s//\1/; q; } 23994 /^X\(\/\).*/{ s//\1/; q; } 23995 s/.*/./; q'` 23996 { if $as_mkdir_p; then 23997 mkdir -p $dirpart/$fdir 23998 else 23999 as_dir=$dirpart/$fdir 24000 as_dirs= 24001 while test ! -d "$as_dir"; do 24002 as_dirs="$as_dir $as_dirs" 24003 as_dir=`(dirname "$as_dir") 2>/dev/null || 24004$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24005 X"$as_dir" : 'X\(//\)[^/]' \| \ 24006 X"$as_dir" : 'X\(//\)$' \| \ 24007 X"$as_dir" : 'X\(/\)' \| \ 24008 . : '\(.\)' 2>/dev/null || 24009echo X"$as_dir" | 24010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24011 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24012 /^X\(\/\/\)$/{ s//\1/; q; } 24013 /^X\(\/\).*/{ s//\1/; q; } 24014 s/.*/./; q'` 24015 done 24016 test ! -n "$as_dirs" || mkdir $as_dirs 24017 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 24018echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24019 { (exit 1); exit 1; }; }; } 24020 24021 # echo "creating $dirpart/$file" 24022 echo '# dummy' > "$dirpart/$file" 24023 done 24024done 24025 ;; 24026 default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*) 24027 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 24028 esac ;; 24029 esac 24030done 24031_ACEOF 24032 24033cat >>$CONFIG_STATUS <<\_ACEOF 24034 24035{ (exit 0); exit 0; } 24036_ACEOF 24037chmod +x $CONFIG_STATUS 24038ac_clean_files=$ac_clean_files_save 24039 24040 24041# configure is writing to config.log, and then calls config.status. 24042# config.status does its own redirection, appending to config.log. 24043# Unfortunately, on DOS this fails, as config.log is still kept open 24044# by configure, so config.status won't be able to write to it; its 24045# output is simply discarded. So we exec the FD to /dev/null, 24046# effectively closing config.log, so it can be properly (re)opened and 24047# appended to by config.status. When coming back to configure, we 24048# need to make the FD available again. 24049if test "$no_create" != yes; then 24050 ac_cs_success=: 24051 ac_config_status_args= 24052 test "$silent" = yes && 24053 ac_config_status_args="$ac_config_status_args --quiet" 24054 exec 5>/dev/null 24055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24056 exec 5>>config.log 24057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24058 # would make configure fail if this is the last instruction. 24059 $ac_cs_success || { (exit 1); exit 1; } 24060fi 24061 24062