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 LIB@&t@OBJS 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 2278############################################################################ 2279## Take this bit from AM_PROG_MKDIR_P to set mkdir_p for automake 1.4 users 2280############################################################################ 2281if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2282 # Keeping the `.' argument allows $(mkdir_p) to be used without 2283 # argument. Indeed, we sometimes output rules like 2284 # $(mkdir_p) $(somedir) 2285 # where $(somedir) is conditionally defined. 2286 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 2287 # expensive solution, as it forces Make to start a sub-shell.) 2288 mkdir_p='mkdir -p -- .' 2289else 2290 # On NextStep and OpenStep, the `mkdir' command does not 2291 # recognize any option. It will interpret all options as 2292 # directories to create, and then abort because `.' already 2293 # exists. 2294 for d in ./-p ./--version; 2295 do 2296 test -d $d && rmdir $d 2297 done 2298 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2299 if test -f "$ac_aux_dir/mkinstalldirs"; then 2300 mkdir_p='$(mkinstalldirs)' 2301 else 2302 mkdir_p='$(install_sh) -d' 2303 fi 2304fi 2305 2306 2307 2308# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT. 2309 2310 ac_config_commands="$ac_config_commands intltool" 2311 2312 2313 2314 2315# Checks for programs. 2316ac_ext=c 2317ac_cpp='$CPP $CPPFLAGS' 2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2320ac_compiler_gnu=$ac_cv_c_compiler_gnu 2321if test -n "$ac_tool_prefix"; then 2322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2323set dummy ${ac_tool_prefix}gcc; ac_word=$2 2324echo "$as_me:$LINENO: checking for $ac_word" >&5 2325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2326if test "${ac_cv_prog_CC+set}" = set; then 2327 echo $ECHO_N "(cached) $ECHO_C" >&6 2328else 2329 if test -n "$CC"; then 2330 ac_cv_prog_CC="$CC" # Let the user override the test. 2331else 2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2333for as_dir in $PATH 2334do 2335 IFS=$as_save_IFS 2336 test -z "$as_dir" && as_dir=. 2337 for ac_exec_ext in '' $ac_executable_extensions; do 2338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2339 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2341 break 2 2342 fi 2343done 2344done 2345 2346fi 2347fi 2348CC=$ac_cv_prog_CC 2349if test -n "$CC"; then 2350 echo "$as_me:$LINENO: result: $CC" >&5 2351echo "${ECHO_T}$CC" >&6 2352else 2353 echo "$as_me:$LINENO: result: no" >&5 2354echo "${ECHO_T}no" >&6 2355fi 2356 2357fi 2358if test -z "$ac_cv_prog_CC"; then 2359 ac_ct_CC=$CC 2360 # Extract the first word of "gcc", so it can be a program name with args. 2361set dummy gcc; ac_word=$2 2362echo "$as_me:$LINENO: checking for $ac_word" >&5 2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2365 echo $ECHO_N "(cached) $ECHO_C" >&6 2366else 2367 if test -n "$ac_ct_CC"; then 2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2369else 2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2371for as_dir in $PATH 2372do 2373 IFS=$as_save_IFS 2374 test -z "$as_dir" && as_dir=. 2375 for ac_exec_ext in '' $ac_executable_extensions; do 2376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2377 ac_cv_prog_ac_ct_CC="gcc" 2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2379 break 2 2380 fi 2381done 2382done 2383 2384fi 2385fi 2386ac_ct_CC=$ac_cv_prog_ac_ct_CC 2387if test -n "$ac_ct_CC"; then 2388 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2389echo "${ECHO_T}$ac_ct_CC" >&6 2390else 2391 echo "$as_me:$LINENO: result: no" >&5 2392echo "${ECHO_T}no" >&6 2393fi 2394 2395 CC=$ac_ct_CC 2396else 2397 CC="$ac_cv_prog_CC" 2398fi 2399 2400if test -z "$CC"; then 2401 if test -n "$ac_tool_prefix"; then 2402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2403set dummy ${ac_tool_prefix}cc; ac_word=$2 2404echo "$as_me:$LINENO: checking for $ac_word" >&5 2405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2406if test "${ac_cv_prog_CC+set}" = set; then 2407 echo $ECHO_N "(cached) $ECHO_C" >&6 2408else 2409 if test -n "$CC"; then 2410 ac_cv_prog_CC="$CC" # Let the user override the test. 2411else 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2419 ac_cv_prog_CC="${ac_tool_prefix}cc" 2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2421 break 2 2422 fi 2423done 2424done 2425 2426fi 2427fi 2428CC=$ac_cv_prog_CC 2429if test -n "$CC"; then 2430 echo "$as_me:$LINENO: result: $CC" >&5 2431echo "${ECHO_T}$CC" >&6 2432else 2433 echo "$as_me:$LINENO: result: no" >&5 2434echo "${ECHO_T}no" >&6 2435fi 2436 2437fi 2438if test -z "$ac_cv_prog_CC"; then 2439 ac_ct_CC=$CC 2440 # Extract the first word of "cc", so it can be a program name with args. 2441set dummy cc; ac_word=$2 2442echo "$as_me:$LINENO: checking for $ac_word" >&5 2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2444if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2445 echo $ECHO_N "(cached) $ECHO_C" >&6 2446else 2447 if test -n "$ac_ct_CC"; then 2448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2449else 2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451for as_dir in $PATH 2452do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2457 ac_cv_prog_ac_ct_CC="cc" 2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461done 2462done 2463 2464fi 2465fi 2466ac_ct_CC=$ac_cv_prog_ac_ct_CC 2467if test -n "$ac_ct_CC"; then 2468 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2469echo "${ECHO_T}$ac_ct_CC" >&6 2470else 2471 echo "$as_me:$LINENO: result: no" >&5 2472echo "${ECHO_T}no" >&6 2473fi 2474 2475 CC=$ac_ct_CC 2476else 2477 CC="$ac_cv_prog_CC" 2478fi 2479 2480fi 2481if test -z "$CC"; then 2482 # Extract the first word of "cc", so it can be a program name with args. 2483set dummy cc; ac_word=$2 2484echo "$as_me:$LINENO: checking for $ac_word" >&5 2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2486if test "${ac_cv_prog_CC+set}" = set; then 2487 echo $ECHO_N "(cached) $ECHO_C" >&6 2488else 2489 if test -n "$CC"; then 2490 ac_cv_prog_CC="$CC" # Let the user override the test. 2491else 2492 ac_prog_rejected=no 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494for as_dir in $PATH 2495do 2496 IFS=$as_save_IFS 2497 test -z "$as_dir" && as_dir=. 2498 for ac_exec_ext in '' $ac_executable_extensions; do 2499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2500 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2501 ac_prog_rejected=yes 2502 continue 2503 fi 2504 ac_cv_prog_CC="cc" 2505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2506 break 2 2507 fi 2508done 2509done 2510 2511if test $ac_prog_rejected = yes; then 2512 # We found a bogon in the path, so make sure we never use it. 2513 set dummy $ac_cv_prog_CC 2514 shift 2515 if test $@%:@ != 0; then 2516 # We chose a different compiler from the bogus one. 2517 # However, it has the same basename, so the bogon will be chosen 2518 # first if we set CC to just the basename; use the full file name. 2519 shift 2520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2521 fi 2522fi 2523fi 2524fi 2525CC=$ac_cv_prog_CC 2526if test -n "$CC"; then 2527 echo "$as_me:$LINENO: result: $CC" >&5 2528echo "${ECHO_T}$CC" >&6 2529else 2530 echo "$as_me:$LINENO: result: no" >&5 2531echo "${ECHO_T}no" >&6 2532fi 2533 2534fi 2535if test -z "$CC"; then 2536 if test -n "$ac_tool_prefix"; then 2537 for ac_prog in cl 2538 do 2539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2540set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2541echo "$as_me:$LINENO: checking for $ac_word" >&5 2542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2543if test "${ac_cv_prog_CC+set}" = set; then 2544 echo $ECHO_N "(cached) $ECHO_C" >&6 2545else 2546 if test -n "$CC"; then 2547 ac_cv_prog_CC="$CC" # Let the user override the test. 2548else 2549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2550for as_dir in $PATH 2551do 2552 IFS=$as_save_IFS 2553 test -z "$as_dir" && as_dir=. 2554 for ac_exec_ext in '' $ac_executable_extensions; do 2555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2556 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2558 break 2 2559 fi 2560done 2561done 2562 2563fi 2564fi 2565CC=$ac_cv_prog_CC 2566if test -n "$CC"; then 2567 echo "$as_me:$LINENO: result: $CC" >&5 2568echo "${ECHO_T}$CC" >&6 2569else 2570 echo "$as_me:$LINENO: result: no" >&5 2571echo "${ECHO_T}no" >&6 2572fi 2573 2574 test -n "$CC" && break 2575 done 2576fi 2577if test -z "$CC"; then 2578 ac_ct_CC=$CC 2579 for ac_prog in cl 2580do 2581 # Extract the first word of "$ac_prog", so it can be a program name with args. 2582set dummy $ac_prog; ac_word=$2 2583echo "$as_me:$LINENO: checking for $ac_word" >&5 2584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2586 echo $ECHO_N "(cached) $ECHO_C" >&6 2587else 2588 if test -n "$ac_ct_CC"; then 2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2590else 2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2592for as_dir in $PATH 2593do 2594 IFS=$as_save_IFS 2595 test -z "$as_dir" && as_dir=. 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2598 ac_cv_prog_ac_ct_CC="$ac_prog" 2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2600 break 2 2601 fi 2602done 2603done 2604 2605fi 2606fi 2607ac_ct_CC=$ac_cv_prog_ac_ct_CC 2608if test -n "$ac_ct_CC"; then 2609 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2610echo "${ECHO_T}$ac_ct_CC" >&6 2611else 2612 echo "$as_me:$LINENO: result: no" >&5 2613echo "${ECHO_T}no" >&6 2614fi 2615 2616 test -n "$ac_ct_CC" && break 2617done 2618 2619 CC=$ac_ct_CC 2620fi 2621 2622fi 2623 2624 2625test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2626See \`config.log' for more details." >&5 2627echo "$as_me: error: no acceptable C compiler found in \$PATH 2628See \`config.log' for more details." >&2;} 2629 { (exit 1); exit 1; }; } 2630 2631# Provide some information about the compiler. 2632echo "$as_me:$LINENO:" \ 2633 "checking for C compiler version" >&5 2634ac_compiler=`set X $ac_compile; echo $2` 2635{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2636 (eval $ac_compiler --version </dev/null >&5) 2>&5 2637 ac_status=$? 2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 (exit $ac_status); } 2640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2641 (eval $ac_compiler -v </dev/null >&5) 2>&5 2642 ac_status=$? 2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2644 (exit $ac_status); } 2645{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2646 (eval $ac_compiler -V </dev/null >&5) 2>&5 2647 ac_status=$? 2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2649 (exit $ac_status); } 2650 2651cat >conftest.$ac_ext <<_ACEOF 2652/* confdefs.h. */ 2653_ACEOF 2654cat confdefs.h >>conftest.$ac_ext 2655cat >>conftest.$ac_ext <<_ACEOF 2656/* end confdefs.h. */ 2657 2658int 2659main () 2660{ 2661 2662 ; 2663 return 0; 2664} 2665_ACEOF 2666ac_clean_files_save=$ac_clean_files 2667ac_clean_files="$ac_clean_files a.out a.exe b.out" 2668# Try to create an executable without -o first, disregard a.out. 2669# It will help us diagnose broken compilers, and finding out an intuition 2670# of exeext. 2671echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2672echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2673ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2674if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2675 (eval $ac_link_default) 2>&5 2676 ac_status=$? 2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2678 (exit $ac_status); }; then 2679 # Find the output, starting from the most likely. This scheme is 2680# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2681# resort. 2682 2683# Be careful to initialize this variable, since it used to be cached. 2684# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2685ac_cv_exeext= 2686# b.out is created by i960 compilers. 2687for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2688do 2689 test -f "$ac_file" || continue 2690 case $ac_file in 2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2692 ;; 2693 conftest.$ac_ext ) 2694 # This is the source file. 2695 ;; 2696 [ab].out ) 2697 # We found the default executable, but exeext='' is most 2698 # certainly right. 2699 break;; 2700 *.* ) 2701 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2702 # FIXME: I believe we export ac_cv_exeext for Libtool, 2703 # but it would be cool to find out if it's true. Does anybody 2704 # maintain Libtool? --akim. 2705 export ac_cv_exeext 2706 break;; 2707 * ) 2708 break;; 2709 esac 2710done 2711else 2712 echo "$as_me: failed program was:" >&5 2713sed 's/^/| /' conftest.$ac_ext >&5 2714 2715{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2716See \`config.log' for more details." >&5 2717echo "$as_me: error: C compiler cannot create executables 2718See \`config.log' for more details." >&2;} 2719 { (exit 77); exit 77; }; } 2720fi 2721 2722ac_exeext=$ac_cv_exeext 2723echo "$as_me:$LINENO: result: $ac_file" >&5 2724echo "${ECHO_T}$ac_file" >&6 2725 2726# Check the compiler produces executables we can run. If not, either 2727# the compiler is broken, or we cross compile. 2728echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2729echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2730# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2731# If not cross compiling, check that we can run a simple program. 2732if test "$cross_compiling" != yes; then 2733 if { ac_try='./$ac_file' 2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2735 (eval $ac_try) 2>&5 2736 ac_status=$? 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); }; }; then 2739 cross_compiling=no 2740 else 2741 if test "$cross_compiling" = maybe; then 2742 cross_compiling=yes 2743 else 2744 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2745If you meant to cross compile, use \`--host'. 2746See \`config.log' for more details." >&5 2747echo "$as_me: error: cannot run C compiled programs. 2748If you meant to cross compile, use \`--host'. 2749See \`config.log' for more details." >&2;} 2750 { (exit 1); exit 1; }; } 2751 fi 2752 fi 2753fi 2754echo "$as_me:$LINENO: result: yes" >&5 2755echo "${ECHO_T}yes" >&6 2756 2757rm -f a.out a.exe conftest$ac_cv_exeext b.out 2758ac_clean_files=$ac_clean_files_save 2759# Check the compiler produces executables we can run. If not, either 2760# the compiler is broken, or we cross compile. 2761echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2762echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2763echo "$as_me:$LINENO: result: $cross_compiling" >&5 2764echo "${ECHO_T}$cross_compiling" >&6 2765 2766echo "$as_me:$LINENO: checking for suffix of executables" >&5 2767echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2769 (eval $ac_link) 2>&5 2770 ac_status=$? 2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2772 (exit $ac_status); }; then 2773 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2774# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2775# work properly (i.e., refer to `conftest.exe'), while it won't with 2776# `rm'. 2777for ac_file in conftest.exe conftest conftest.*; do 2778 test -f "$ac_file" || continue 2779 case $ac_file in 2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2782 export ac_cv_exeext 2783 break;; 2784 * ) break;; 2785 esac 2786done 2787else 2788 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2789See \`config.log' for more details." >&5 2790echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2791See \`config.log' for more details." >&2;} 2792 { (exit 1); exit 1; }; } 2793fi 2794 2795rm -f conftest$ac_cv_exeext 2796echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2797echo "${ECHO_T}$ac_cv_exeext" >&6 2798 2799rm -f conftest.$ac_ext 2800EXEEXT=$ac_cv_exeext 2801ac_exeext=$EXEEXT 2802echo "$as_me:$LINENO: checking for suffix of object files" >&5 2803echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2804if test "${ac_cv_objext+set}" = set; then 2805 echo $ECHO_N "(cached) $ECHO_C" >&6 2806else 2807 cat >conftest.$ac_ext <<_ACEOF 2808/* confdefs.h. */ 2809_ACEOF 2810cat confdefs.h >>conftest.$ac_ext 2811cat >>conftest.$ac_ext <<_ACEOF 2812/* end confdefs.h. */ 2813 2814int 2815main () 2816{ 2817 2818 ; 2819 return 0; 2820} 2821_ACEOF 2822rm -f conftest.o conftest.obj 2823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2824 (eval $ac_compile) 2>&5 2825 ac_status=$? 2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2827 (exit $ac_status); }; then 2828 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2829 case $ac_file in 2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2832 break;; 2833 esac 2834done 2835else 2836 echo "$as_me: failed program was:" >&5 2837sed 's/^/| /' conftest.$ac_ext >&5 2838 2839{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2840See \`config.log' for more details." >&5 2841echo "$as_me: error: cannot compute suffix of object files: cannot compile 2842See \`config.log' for more details." >&2;} 2843 { (exit 1); exit 1; }; } 2844fi 2845 2846rm -f conftest.$ac_cv_objext conftest.$ac_ext 2847fi 2848echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2849echo "${ECHO_T}$ac_cv_objext" >&6 2850OBJEXT=$ac_cv_objext 2851ac_objext=$OBJEXT 2852echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2853echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2854if test "${ac_cv_c_compiler_gnu+set}" = set; then 2855 echo $ECHO_N "(cached) $ECHO_C" >&6 2856else 2857 cat >conftest.$ac_ext <<_ACEOF 2858/* confdefs.h. */ 2859_ACEOF 2860cat confdefs.h >>conftest.$ac_ext 2861cat >>conftest.$ac_ext <<_ACEOF 2862/* end confdefs.h. */ 2863 2864int 2865main () 2866{ 2867#ifndef __GNUC__ 2868 choke me 2869#endif 2870 2871 ; 2872 return 0; 2873} 2874_ACEOF 2875rm -f conftest.$ac_objext 2876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2877 (eval $ac_compile) 2>conftest.er1 2878 ac_status=$? 2879 grep -v '^ *+' conftest.er1 >conftest.err 2880 rm -f conftest.er1 2881 cat conftest.err >&5 2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2883 (exit $ac_status); } && 2884 { ac_try='test -z "$ac_c_werror_flag" 2885 || test ! -s conftest.err' 2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2887 (eval $ac_try) 2>&5 2888 ac_status=$? 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2890 (exit $ac_status); }; } && 2891 { ac_try='test -s conftest.$ac_objext' 2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2893 (eval $ac_try) 2>&5 2894 ac_status=$? 2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2896 (exit $ac_status); }; }; then 2897 ac_compiler_gnu=yes 2898else 2899 echo "$as_me: failed program was:" >&5 2900sed 's/^/| /' conftest.$ac_ext >&5 2901 2902ac_compiler_gnu=no 2903fi 2904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2905ac_cv_c_compiler_gnu=$ac_compiler_gnu 2906 2907fi 2908echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2909echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2910GCC=`test $ac_compiler_gnu = yes && echo yes` 2911ac_test_CFLAGS=${CFLAGS+set} 2912ac_save_CFLAGS=$CFLAGS 2913CFLAGS="-g" 2914echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2915echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2916if test "${ac_cv_prog_cc_g+set}" = set; then 2917 echo $ECHO_N "(cached) $ECHO_C" >&6 2918else 2919 cat >conftest.$ac_ext <<_ACEOF 2920/* confdefs.h. */ 2921_ACEOF 2922cat confdefs.h >>conftest.$ac_ext 2923cat >>conftest.$ac_ext <<_ACEOF 2924/* end confdefs.h. */ 2925 2926int 2927main () 2928{ 2929 2930 ; 2931 return 0; 2932} 2933_ACEOF 2934rm -f conftest.$ac_objext 2935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2936 (eval $ac_compile) 2>conftest.er1 2937 ac_status=$? 2938 grep -v '^ *+' conftest.er1 >conftest.err 2939 rm -f conftest.er1 2940 cat conftest.err >&5 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2942 (exit $ac_status); } && 2943 { ac_try='test -z "$ac_c_werror_flag" 2944 || test ! -s conftest.err' 2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2946 (eval $ac_try) 2>&5 2947 ac_status=$? 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); }; } && 2950 { ac_try='test -s conftest.$ac_objext' 2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2952 (eval $ac_try) 2>&5 2953 ac_status=$? 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); }; }; then 2956 ac_cv_prog_cc_g=yes 2957else 2958 echo "$as_me: failed program was:" >&5 2959sed 's/^/| /' conftest.$ac_ext >&5 2960 2961ac_cv_prog_cc_g=no 2962fi 2963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2964fi 2965echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2966echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2967if test "$ac_test_CFLAGS" = set; then 2968 CFLAGS=$ac_save_CFLAGS 2969elif test $ac_cv_prog_cc_g = yes; then 2970 if test "$GCC" = yes; then 2971 CFLAGS="-g -O2" 2972 else 2973 CFLAGS="-g" 2974 fi 2975else 2976 if test "$GCC" = yes; then 2977 CFLAGS="-O2" 2978 else 2979 CFLAGS= 2980 fi 2981fi 2982echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2983echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2984if test "${ac_cv_prog_cc_stdc+set}" = set; then 2985 echo $ECHO_N "(cached) $ECHO_C" >&6 2986else 2987 ac_cv_prog_cc_stdc=no 2988ac_save_CC=$CC 2989cat >conftest.$ac_ext <<_ACEOF 2990/* confdefs.h. */ 2991_ACEOF 2992cat confdefs.h >>conftest.$ac_ext 2993cat >>conftest.$ac_ext <<_ACEOF 2994/* end confdefs.h. */ 2995#include <stdarg.h> 2996#include <stdio.h> 2997#include <sys/types.h> 2998#include <sys/stat.h> 2999/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3000struct buf { int x; }; 3001FILE * (*rcsopen) (struct buf *, struct stat *, int); 3002static char *e (p, i) 3003 char **p; 3004 int i; 3005{ 3006 return p[i]; 3007} 3008static char *f (char * (*g) (char **, int), char **p, ...) 3009{ 3010 char *s; 3011 va_list v; 3012 va_start (v,p); 3013 s = g (p, va_arg (v,int)); 3014 va_end (v); 3015 return s; 3016} 3017 3018/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3019 function prototypes and stuff, but not '\xHH' hex character constants. 3020 These don't provoke an error unfortunately, instead are silently treated 3021 as 'x'. The following induces an error, until -std1 is added to get 3022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3023 array size at least. It's necessary to write '\x00'==0 to get something 3024 that's true only with -std1. */ 3025int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3026 3027int test (int i, double x); 3028struct s1 {int (*f) (int a);}; 3029struct s2 {int (*f) (double a);}; 3030int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3031int argc; 3032char **argv; 3033int 3034main () 3035{ 3036return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3037 ; 3038 return 0; 3039} 3040_ACEOF 3041# Don't try gcc -ansi; that turns off useful extensions and 3042# breaks some systems' header files. 3043# AIX -qlanglvl=ansi 3044# Ultrix and OSF/1 -std1 3045# HP-UX 10.20 and later -Ae 3046# HP-UX older versions -Aa -D_HPUX_SOURCE 3047# SVR4 -Xc -D__EXTENSIONS__ 3048for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3049do 3050 CC="$ac_save_CC $ac_arg" 3051 rm -f conftest.$ac_objext 3052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3053 (eval $ac_compile) 2>conftest.er1 3054 ac_status=$? 3055 grep -v '^ *+' conftest.er1 >conftest.err 3056 rm -f conftest.er1 3057 cat conftest.err >&5 3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); } && 3060 { ac_try='test -z "$ac_c_werror_flag" 3061 || test ! -s conftest.err' 3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3063 (eval $ac_try) 2>&5 3064 ac_status=$? 3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3066 (exit $ac_status); }; } && 3067 { ac_try='test -s conftest.$ac_objext' 3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3069 (eval $ac_try) 2>&5 3070 ac_status=$? 3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072 (exit $ac_status); }; }; then 3073 ac_cv_prog_cc_stdc=$ac_arg 3074break 3075else 3076 echo "$as_me: failed program was:" >&5 3077sed 's/^/| /' conftest.$ac_ext >&5 3078 3079fi 3080rm -f conftest.err conftest.$ac_objext 3081done 3082rm -f conftest.$ac_ext conftest.$ac_objext 3083CC=$ac_save_CC 3084 3085fi 3086 3087case "x$ac_cv_prog_cc_stdc" in 3088 x|xno) 3089 echo "$as_me:$LINENO: result: none needed" >&5 3090echo "${ECHO_T}none needed" >&6 ;; 3091 *) 3092 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3093echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3094 CC="$CC $ac_cv_prog_cc_stdc" ;; 3095esac 3096 3097# Some people use a C++ compiler to compile C. Since we use `exit', 3098# in C++ we need to declare it. In case someone uses the same compiler 3099# for both compiling C and C++ we need to have the C++ compiler decide 3100# the declaration of exit, since it's the most demanding environment. 3101cat >conftest.$ac_ext <<_ACEOF 3102@%:@ifndef __cplusplus 3103 choke me 3104@%:@endif 3105_ACEOF 3106rm -f conftest.$ac_objext 3107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3108 (eval $ac_compile) 2>conftest.er1 3109 ac_status=$? 3110 grep -v '^ *+' conftest.er1 >conftest.err 3111 rm -f conftest.er1 3112 cat conftest.err >&5 3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3114 (exit $ac_status); } && 3115 { ac_try='test -z "$ac_c_werror_flag" 3116 || test ! -s conftest.err' 3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3118 (eval $ac_try) 2>&5 3119 ac_status=$? 3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3121 (exit $ac_status); }; } && 3122 { ac_try='test -s conftest.$ac_objext' 3123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3124 (eval $ac_try) 2>&5 3125 ac_status=$? 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); }; }; then 3128 for ac_declaration in \ 3129 '' \ 3130 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3131 'extern "C" void std::exit (int); using std::exit;' \ 3132 'extern "C" void exit (int) throw ();' \ 3133 'extern "C" void exit (int);' \ 3134 'void exit (int);' 3135do 3136 cat >conftest.$ac_ext <<_ACEOF 3137/* confdefs.h. */ 3138_ACEOF 3139cat confdefs.h >>conftest.$ac_ext 3140cat >>conftest.$ac_ext <<_ACEOF 3141/* end confdefs.h. */ 3142$ac_declaration 3143@%:@include <stdlib.h> 3144int 3145main () 3146{ 3147exit (42); 3148 ; 3149 return 0; 3150} 3151_ACEOF 3152rm -f conftest.$ac_objext 3153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3154 (eval $ac_compile) 2>conftest.er1 3155 ac_status=$? 3156 grep -v '^ *+' conftest.er1 >conftest.err 3157 rm -f conftest.er1 3158 cat conftest.err >&5 3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160 (exit $ac_status); } && 3161 { ac_try='test -z "$ac_c_werror_flag" 3162 || test ! -s conftest.err' 3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3164 (eval $ac_try) 2>&5 3165 ac_status=$? 3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 (exit $ac_status); }; } && 3168 { ac_try='test -s conftest.$ac_objext' 3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3170 (eval $ac_try) 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); }; }; then 3174 : 3175else 3176 echo "$as_me: failed program was:" >&5 3177sed 's/^/| /' conftest.$ac_ext >&5 3178 3179continue 3180fi 3181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3182 cat >conftest.$ac_ext <<_ACEOF 3183/* confdefs.h. */ 3184_ACEOF 3185cat confdefs.h >>conftest.$ac_ext 3186cat >>conftest.$ac_ext <<_ACEOF 3187/* end confdefs.h. */ 3188$ac_declaration 3189int 3190main () 3191{ 3192exit (42); 3193 ; 3194 return 0; 3195} 3196_ACEOF 3197rm -f conftest.$ac_objext 3198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3199 (eval $ac_compile) 2>conftest.er1 3200 ac_status=$? 3201 grep -v '^ *+' conftest.er1 >conftest.err 3202 rm -f conftest.er1 3203 cat conftest.err >&5 3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3205 (exit $ac_status); } && 3206 { ac_try='test -z "$ac_c_werror_flag" 3207 || test ! -s conftest.err' 3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3209 (eval $ac_try) 2>&5 3210 ac_status=$? 3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3212 (exit $ac_status); }; } && 3213 { ac_try='test -s conftest.$ac_objext' 3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3215 (eval $ac_try) 2>&5 3216 ac_status=$? 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); }; }; then 3219 break 3220else 3221 echo "$as_me: failed program was:" >&5 3222sed 's/^/| /' conftest.$ac_ext >&5 3223 3224fi 3225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3226done 3227rm -f conftest* 3228if test -n "$ac_declaration"; then 3229 echo '#ifdef __cplusplus' >>confdefs.h 3230 echo $ac_declaration >>confdefs.h 3231 echo '#endif' >>confdefs.h 3232fi 3233 3234else 3235 echo "$as_me: failed program was:" >&5 3236sed 's/^/| /' conftest.$ac_ext >&5 3237 3238fi 3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3240ac_ext=c 3241ac_cpp='$CPP $CPPFLAGS' 3242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3244ac_compiler_gnu=$ac_cv_c_compiler_gnu 3245DEPDIR="${am__leading_dot}deps" 3246 3247 ac_config_commands="$ac_config_commands depfiles" 3248 3249 3250am_make=${MAKE-make} 3251cat > confinc << 'END' 3252am__doit: 3253 @echo done 3254.PHONY: am__doit 3255END 3256# If we don't find an include directive, just comment out the code. 3257echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3258echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3259am__include="#" 3260am__quote= 3261_am_result=none 3262# First try GNU make style include. 3263echo "include confinc" > confmf 3264# We grep out `Entering directory' and `Leaving directory' 3265# messages which can occur if `w' ends up in MAKEFLAGS. 3266# In particular we don't look at `^make:' because GNU make might 3267# be invoked under some other name (usually "gmake"), in which 3268# case it prints its new name instead of `make'. 3269if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3270 am__include=include 3271 am__quote= 3272 _am_result=GNU 3273fi 3274# Now try BSD make style include. 3275if test "$am__include" = "#"; then 3276 echo '.include "confinc"' > confmf 3277 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3278 am__include=.include 3279 am__quote="\"" 3280 _am_result=BSD 3281 fi 3282fi 3283 3284 3285echo "$as_me:$LINENO: result: $_am_result" >&5 3286echo "${ECHO_T}$_am_result" >&6 3287rm -f confinc confmf 3288 3289# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3290if test "${enable_dependency_tracking+set}" = set; then 3291 enableval="$enable_dependency_tracking" 3292 3293fi; 3294if test "x$enable_dependency_tracking" != xno; then 3295 am_depcomp="$ac_aux_dir/depcomp" 3296 AMDEPBACKSLASH='\' 3297fi 3298 3299 3300if test "x$enable_dependency_tracking" != xno; then 3301 AMDEP_TRUE= 3302 AMDEP_FALSE='#' 3303else 3304 AMDEP_TRUE='#' 3305 AMDEP_FALSE= 3306fi 3307 3308 3309 3310 3311depcc="$CC" am_compiler_list= 3312 3313echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3314echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3315if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3316 echo $ECHO_N "(cached) $ECHO_C" >&6 3317else 3318 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3319 # We make a subdir and do the tests there. Otherwise we can end up 3320 # making bogus files that we don't know about and never remove. For 3321 # instance it was reported that on HP-UX the gcc test will end up 3322 # making a dummy file named `D' -- because `-MD' means `put the output 3323 # in D'. 3324 mkdir conftest.dir 3325 # Copy depcomp to subdir because otherwise we won't find it if we're 3326 # using a relative directory. 3327 cp "$am_depcomp" conftest.dir 3328 cd conftest.dir 3329 # We will build objects and dependencies in a subdirectory because 3330 # it helps to detect inapplicable dependency modes. For instance 3331 # both Tru64's cc and ICC support -MD to output dependencies as a 3332 # side effect of compilation, but ICC will put the dependencies in 3333 # the current directory while Tru64 will put them in the object 3334 # directory. 3335 mkdir sub 3336 3337 am_cv_CC_dependencies_compiler_type=none 3338 if test "$am_compiler_list" = ""; then 3339 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3340 fi 3341 for depmode in $am_compiler_list; do 3342 # Setup a source with many dependencies, because some compilers 3343 # like to wrap large dependency lists on column 80 (with \), and 3344 # we should not choose a depcomp mode which is confused by this. 3345 # 3346 # We need to recreate these files for each test, as the compiler may 3347 # overwrite some of them when testing with obscure command lines. 3348 # This happens at least with the AIX C compiler. 3349 : > sub/conftest.c 3350 for i in 1 2 3 4 5 6; do 3351 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3352 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3353 # Solaris 8's {/usr,}/bin/sh. 3354 touch sub/conftst$i.h 3355 done 3356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3357 3358 case $depmode in 3359 nosideeffect) 3360 # after this tag, mechanisms are not by side-effect, so they'll 3361 # only be used when explicitly requested 3362 if test "x$enable_dependency_tracking" = xyes; then 3363 continue 3364 else 3365 break 3366 fi 3367 ;; 3368 none) break ;; 3369 esac 3370 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3371 # mode. It turns out that the SunPro C++ compiler does not properly 3372 # handle `-M -o', and we need to detect this. 3373 if depmode=$depmode \ 3374 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3375 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3376 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3377 >/dev/null 2>conftest.err && 3378 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3379 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3380 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3381 # icc doesn't choke on unknown options, it will just issue warnings 3382 # or remarks (even with -Werror). So we grep stderr for any message 3383 # that says an option was ignored or not supported. 3384 # When given -MP, icc 7.0 and 7.1 complain thusly: 3385 # icc: Command line warning: ignoring option '-M'; no argument required 3386 # The diagnosis changed in icc 8.0: 3387 # icc: Command line remark: option '-MP' not supported 3388 if (grep 'ignoring option' conftest.err || 3389 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3390 am_cv_CC_dependencies_compiler_type=$depmode 3391 break 3392 fi 3393 fi 3394 done 3395 3396 cd .. 3397 rm -rf conftest.dir 3398else 3399 am_cv_CC_dependencies_compiler_type=none 3400fi 3401 3402fi 3403echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3404echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3405CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3406 3407 3408 3409if 3410 test "x$enable_dependency_tracking" != xno \ 3411 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3412 am__fastdepCC_TRUE= 3413 am__fastdepCC_FALSE='#' 3414else 3415 am__fastdepCC_TRUE='#' 3416 am__fastdepCC_FALSE= 3417fi 3418 3419 3420# Find a good install program. We prefer a C program (faster), 3421# so one script is as good as another. But avoid the broken or 3422# incompatible versions: 3423# SysV /etc/install, /usr/sbin/install 3424# SunOS /usr/etc/install 3425# IRIX /sbin/install 3426# AIX /bin/install 3427# AmigaOS /C/install, which installs bootblocks on floppy discs 3428# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3429# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3430# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3431# OS/2's system install, which has a completely different semantic 3432# ./install, which can be erroneously created by make from ./install.sh. 3433echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3434echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3435if test -z "$INSTALL"; then 3436if test "${ac_cv_path_install+set}" = set; then 3437 echo $ECHO_N "(cached) $ECHO_C" >&6 3438else 3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3440for as_dir in $PATH 3441do 3442 IFS=$as_save_IFS 3443 test -z "$as_dir" && as_dir=. 3444 # Account for people who put trailing slashes in PATH elements. 3445case $as_dir/ in 3446 ./ | .// | /cC/* | \ 3447 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3448 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3449 /usr/ucb/* ) ;; 3450 *) 3451 # OSF1 and SCO ODT 3.0 have their own names for install. 3452 # Don't use installbsd from OSF since it installs stuff as root 3453 # by default. 3454 for ac_prog in ginstall scoinst install; do 3455 for ac_exec_ext in '' $ac_executable_extensions; do 3456 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3457 if test $ac_prog = install && 3458 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3459 # AIX install. It has an incompatible calling convention. 3460 : 3461 elif test $ac_prog = install && 3462 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3463 # program-specific install script used by HP pwplus--don't use. 3464 : 3465 else 3466 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3467 break 3 3468 fi 3469 fi 3470 done 3471 done 3472 ;; 3473esac 3474done 3475 3476 3477fi 3478 if test "${ac_cv_path_install+set}" = set; then 3479 INSTALL=$ac_cv_path_install 3480 else 3481 # As a last resort, use the slow shell script. We don't cache a 3482 # path for INSTALL within a source directory, because that will 3483 # break other packages using the cache if that directory is 3484 # removed, or if the path is relative. 3485 INSTALL=$ac_install_sh 3486 fi 3487fi 3488echo "$as_me:$LINENO: result: $INSTALL" >&5 3489echo "${ECHO_T}$INSTALL" >&6 3490 3491# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3492# It thinks the first close brace ends the variable substitution. 3493test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3494 3495test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3496 3497test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3498 3499echo "$as_me:$LINENO: checking whether ln -s works" >&5 3500echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3501LN_S=$as_ln_s 3502if test "$LN_S" = "ln -s"; then 3503 echo "$as_me:$LINENO: result: yes" >&5 3504echo "${ECHO_T}yes" >&6 3505else 3506 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3507echo "${ECHO_T}no, using $LN_S" >&6 3508fi 3509 3510echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3511echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3512set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3513if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3514 echo $ECHO_N "(cached) $ECHO_C" >&6 3515else 3516 cat >conftest.make <<\_ACEOF 3517all: 3518 @echo 'ac_maketemp="$(MAKE)"' 3519_ACEOF 3520# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3521eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3522if test -n "$ac_maketemp"; then 3523 eval ac_cv_prog_make_${ac_make}_set=yes 3524else 3525 eval ac_cv_prog_make_${ac_make}_set=no 3526fi 3527rm -f conftest.make 3528fi 3529if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3530 echo "$as_me:$LINENO: result: yes" >&5 3531echo "${ECHO_T}yes" >&6 3532 SET_MAKE= 3533else 3534 echo "$as_me:$LINENO: result: no" >&5 3535echo "${ECHO_T}no" >&6 3536 SET_MAKE="MAKE=${MAKE-make}" 3537fi 3538 3539 3540ALL_LINGUAS="de" 3541 3542ac_ext=c 3543ac_cpp='$CPP $CPPFLAGS' 3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3546ac_compiler_gnu=$ac_cv_c_compiler_gnu 3547echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3548echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3549# On Suns, sometimes $CPP names a directory. 3550if test -n "$CPP" && test -d "$CPP"; then 3551 CPP= 3552fi 3553if test -z "$CPP"; then 3554 if test "${ac_cv_prog_CPP+set}" = set; then 3555 echo $ECHO_N "(cached) $ECHO_C" >&6 3556else 3557 # Double quotes because CPP needs to be expanded 3558 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3559 do 3560 ac_preproc_ok=false 3561for ac_c_preproc_warn_flag in '' yes 3562do 3563 # Use a header file that comes with gcc, so configuring glibc 3564 # with a fresh cross-compiler works. 3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3566 # <limits.h> exists even on freestanding compilers. 3567 # On the NeXT, cc -E runs the code through the compiler's parser, 3568 # not just through cpp. "Syntax error" is here to catch this case. 3569 cat >conftest.$ac_ext <<_ACEOF 3570/* confdefs.h. */ 3571_ACEOF 3572cat confdefs.h >>conftest.$ac_ext 3573cat >>conftest.$ac_ext <<_ACEOF 3574/* end confdefs.h. */ 3575@%:@ifdef __STDC__ 3576@%:@ include <limits.h> 3577@%:@else 3578@%:@ include <assert.h> 3579@%:@endif 3580 Syntax error 3581_ACEOF 3582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3584 ac_status=$? 3585 grep -v '^ *+' conftest.er1 >conftest.err 3586 rm -f conftest.er1 3587 cat conftest.err >&5 3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3589 (exit $ac_status); } >/dev/null; then 3590 if test -s conftest.err; then 3591 ac_cpp_err=$ac_c_preproc_warn_flag 3592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3593 else 3594 ac_cpp_err= 3595 fi 3596else 3597 ac_cpp_err=yes 3598fi 3599if test -z "$ac_cpp_err"; then 3600 : 3601else 3602 echo "$as_me: failed program was:" >&5 3603sed 's/^/| /' conftest.$ac_ext >&5 3604 3605 # Broken: fails on valid input. 3606continue 3607fi 3608rm -f conftest.err conftest.$ac_ext 3609 3610 # OK, works on sane cases. Now check whether non-existent headers 3611 # can be detected and how. 3612 cat >conftest.$ac_ext <<_ACEOF 3613/* confdefs.h. */ 3614_ACEOF 3615cat confdefs.h >>conftest.$ac_ext 3616cat >>conftest.$ac_ext <<_ACEOF 3617/* end confdefs.h. */ 3618@%:@include <ac_nonexistent.h> 3619_ACEOF 3620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3622 ac_status=$? 3623 grep -v '^ *+' conftest.er1 >conftest.err 3624 rm -f conftest.er1 3625 cat conftest.err >&5 3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3627 (exit $ac_status); } >/dev/null; then 3628 if test -s conftest.err; then 3629 ac_cpp_err=$ac_c_preproc_warn_flag 3630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3631 else 3632 ac_cpp_err= 3633 fi 3634else 3635 ac_cpp_err=yes 3636fi 3637if test -z "$ac_cpp_err"; then 3638 # Broken: success on invalid input. 3639continue 3640else 3641 echo "$as_me: failed program was:" >&5 3642sed 's/^/| /' conftest.$ac_ext >&5 3643 3644 # Passes both tests. 3645ac_preproc_ok=: 3646break 3647fi 3648rm -f conftest.err conftest.$ac_ext 3649 3650done 3651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3652rm -f conftest.err conftest.$ac_ext 3653if $ac_preproc_ok; then 3654 break 3655fi 3656 3657 done 3658 ac_cv_prog_CPP=$CPP 3659 3660fi 3661 CPP=$ac_cv_prog_CPP 3662else 3663 ac_cv_prog_CPP=$CPP 3664fi 3665echo "$as_me:$LINENO: result: $CPP" >&5 3666echo "${ECHO_T}$CPP" >&6 3667ac_preproc_ok=false 3668for ac_c_preproc_warn_flag in '' yes 3669do 3670 # Use a header file that comes with gcc, so configuring glibc 3671 # with a fresh cross-compiler works. 3672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3673 # <limits.h> exists even on freestanding compilers. 3674 # On the NeXT, cc -E runs the code through the compiler's parser, 3675 # not just through cpp. "Syntax error" is here to catch this case. 3676 cat >conftest.$ac_ext <<_ACEOF 3677/* confdefs.h. */ 3678_ACEOF 3679cat confdefs.h >>conftest.$ac_ext 3680cat >>conftest.$ac_ext <<_ACEOF 3681/* end confdefs.h. */ 3682@%:@ifdef __STDC__ 3683@%:@ include <limits.h> 3684@%:@else 3685@%:@ include <assert.h> 3686@%:@endif 3687 Syntax error 3688_ACEOF 3689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3691 ac_status=$? 3692 grep -v '^ *+' conftest.er1 >conftest.err 3693 rm -f conftest.er1 3694 cat conftest.err >&5 3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3696 (exit $ac_status); } >/dev/null; then 3697 if test -s conftest.err; then 3698 ac_cpp_err=$ac_c_preproc_warn_flag 3699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3700 else 3701 ac_cpp_err= 3702 fi 3703else 3704 ac_cpp_err=yes 3705fi 3706if test -z "$ac_cpp_err"; then 3707 : 3708else 3709 echo "$as_me: failed program was:" >&5 3710sed 's/^/| /' conftest.$ac_ext >&5 3711 3712 # Broken: fails on valid input. 3713continue 3714fi 3715rm -f conftest.err conftest.$ac_ext 3716 3717 # OK, works on sane cases. Now check whether non-existent headers 3718 # can be detected and how. 3719 cat >conftest.$ac_ext <<_ACEOF 3720/* confdefs.h. */ 3721_ACEOF 3722cat confdefs.h >>conftest.$ac_ext 3723cat >>conftest.$ac_ext <<_ACEOF 3724/* end confdefs.h. */ 3725@%:@include <ac_nonexistent.h> 3726_ACEOF 3727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3729 ac_status=$? 3730 grep -v '^ *+' conftest.er1 >conftest.err 3731 rm -f conftest.er1 3732 cat conftest.err >&5 3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3734 (exit $ac_status); } >/dev/null; then 3735 if test -s conftest.err; then 3736 ac_cpp_err=$ac_c_preproc_warn_flag 3737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3738 else 3739 ac_cpp_err= 3740 fi 3741else 3742 ac_cpp_err=yes 3743fi 3744if test -z "$ac_cpp_err"; then 3745 # Broken: success on invalid input. 3746continue 3747else 3748 echo "$as_me: failed program was:" >&5 3749sed 's/^/| /' conftest.$ac_ext >&5 3750 3751 # Passes both tests. 3752ac_preproc_ok=: 3753break 3754fi 3755rm -f conftest.err conftest.$ac_ext 3756 3757done 3758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3759rm -f conftest.err conftest.$ac_ext 3760if $ac_preproc_ok; then 3761 : 3762else 3763 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3764See \`config.log' for more details." >&5 3765echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3766See \`config.log' for more details." >&2;} 3767 { (exit 1); exit 1; }; } 3768fi 3769 3770ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775 3776 3777echo "$as_me:$LINENO: checking for egrep" >&5 3778echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3779if test "${ac_cv_prog_egrep+set}" = set; then 3780 echo $ECHO_N "(cached) $ECHO_C" >&6 3781else 3782 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3783 then ac_cv_prog_egrep='grep -E' 3784 else ac_cv_prog_egrep='egrep' 3785 fi 3786fi 3787echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3788echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3789 EGREP=$ac_cv_prog_egrep 3790 3791 3792echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3793echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3794if test "${ac_cv_header_stdc+set}" = set; then 3795 echo $ECHO_N "(cached) $ECHO_C" >&6 3796else 3797 cat >conftest.$ac_ext <<_ACEOF 3798/* confdefs.h. */ 3799_ACEOF 3800cat confdefs.h >>conftest.$ac_ext 3801cat >>conftest.$ac_ext <<_ACEOF 3802/* end confdefs.h. */ 3803#include <stdlib.h> 3804#include <stdarg.h> 3805#include <string.h> 3806#include <float.h> 3807 3808int 3809main () 3810{ 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816rm -f conftest.$ac_objext 3817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3818 (eval $ac_compile) 2>conftest.er1 3819 ac_status=$? 3820 grep -v '^ *+' conftest.er1 >conftest.err 3821 rm -f conftest.er1 3822 cat conftest.err >&5 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3824 (exit $ac_status); } && 3825 { ac_try='test -z "$ac_c_werror_flag" 3826 || test ! -s conftest.err' 3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3828 (eval $ac_try) 2>&5 3829 ac_status=$? 3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3831 (exit $ac_status); }; } && 3832 { ac_try='test -s conftest.$ac_objext' 3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3834 (eval $ac_try) 2>&5 3835 ac_status=$? 3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 (exit $ac_status); }; }; then 3838 ac_cv_header_stdc=yes 3839else 3840 echo "$as_me: failed program was:" >&5 3841sed 's/^/| /' conftest.$ac_ext >&5 3842 3843ac_cv_header_stdc=no 3844fi 3845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3846 3847if test $ac_cv_header_stdc = yes; then 3848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3849 cat >conftest.$ac_ext <<_ACEOF 3850/* confdefs.h. */ 3851_ACEOF 3852cat confdefs.h >>conftest.$ac_ext 3853cat >>conftest.$ac_ext <<_ACEOF 3854/* end confdefs.h. */ 3855#include <string.h> 3856 3857_ACEOF 3858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3859 $EGREP "memchr" >/dev/null 2>&1; then 3860 : 3861else 3862 ac_cv_header_stdc=no 3863fi 3864rm -f conftest* 3865 3866fi 3867 3868if test $ac_cv_header_stdc = yes; then 3869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3870 cat >conftest.$ac_ext <<_ACEOF 3871/* confdefs.h. */ 3872_ACEOF 3873cat confdefs.h >>conftest.$ac_ext 3874cat >>conftest.$ac_ext <<_ACEOF 3875/* end confdefs.h. */ 3876#include <stdlib.h> 3877 3878_ACEOF 3879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3880 $EGREP "free" >/dev/null 2>&1; then 3881 : 3882else 3883 ac_cv_header_stdc=no 3884fi 3885rm -f conftest* 3886 3887fi 3888 3889if test $ac_cv_header_stdc = yes; then 3890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3891 if test "$cross_compiling" = yes; then 3892 : 3893else 3894 cat >conftest.$ac_ext <<_ACEOF 3895/* confdefs.h. */ 3896_ACEOF 3897cat confdefs.h >>conftest.$ac_ext 3898cat >>conftest.$ac_ext <<_ACEOF 3899/* end confdefs.h. */ 3900#include <ctype.h> 3901#if ((' ' & 0x0FF) == 0x020) 3902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3904#else 3905# define ISLOWER(c) \ 3906 (('a' <= (c) && (c) <= 'i') \ 3907 || ('j' <= (c) && (c) <= 'r') \ 3908 || ('s' <= (c) && (c) <= 'z')) 3909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3910#endif 3911 3912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3913int 3914main () 3915{ 3916 int i; 3917 for (i = 0; i < 256; i++) 3918 if (XOR (islower (i), ISLOWER (i)) 3919 || toupper (i) != TOUPPER (i)) 3920 exit(2); 3921 exit (0); 3922} 3923_ACEOF 3924rm -f conftest$ac_exeext 3925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3926 (eval $ac_link) 2>&5 3927 ac_status=$? 3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3931 (eval $ac_try) 2>&5 3932 ac_status=$? 3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3934 (exit $ac_status); }; }; then 3935 : 3936else 3937 echo "$as_me: program exited with status $ac_status" >&5 3938echo "$as_me: failed program was:" >&5 3939sed 's/^/| /' conftest.$ac_ext >&5 3940 3941( exit $ac_status ) 3942ac_cv_header_stdc=no 3943fi 3944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3945fi 3946fi 3947fi 3948echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3949echo "${ECHO_T}$ac_cv_header_stdc" >&6 3950if test $ac_cv_header_stdc = yes; then 3951 3952cat >>confdefs.h <<\_ACEOF 3953@%:@define STDC_HEADERS 1 3954_ACEOF 3955 3956fi 3957 3958# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3969 inttypes.h stdint.h unistd.h 3970do 3971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3972echo "$as_me:$LINENO: checking for $ac_header" >&5 3973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3974if eval "test \"\${$as_ac_Header+set}\" = set"; then 3975 echo $ECHO_N "(cached) $ECHO_C" >&6 3976else 3977 cat >conftest.$ac_ext <<_ACEOF 3978/* confdefs.h. */ 3979_ACEOF 3980cat confdefs.h >>conftest.$ac_ext 3981cat >>conftest.$ac_ext <<_ACEOF 3982/* end confdefs.h. */ 3983$ac_includes_default 3984 3985@%:@include <$ac_header> 3986_ACEOF 3987rm -f conftest.$ac_objext 3988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3989 (eval $ac_compile) 2>conftest.er1 3990 ac_status=$? 3991 grep -v '^ *+' conftest.er1 >conftest.err 3992 rm -f conftest.er1 3993 cat conftest.err >&5 3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3995 (exit $ac_status); } && 3996 { ac_try='test -z "$ac_c_werror_flag" 3997 || test ! -s conftest.err' 3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3999 (eval $ac_try) 2>&5 4000 ac_status=$? 4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4002 (exit $ac_status); }; } && 4003 { ac_try='test -s conftest.$ac_objext' 4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4005 (eval $ac_try) 2>&5 4006 ac_status=$? 4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4008 (exit $ac_status); }; }; then 4009 eval "$as_ac_Header=yes" 4010else 4011 echo "$as_me: failed program was:" >&5 4012sed 's/^/| /' conftest.$ac_ext >&5 4013 4014eval "$as_ac_Header=no" 4015fi 4016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4017fi 4018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4020if test `eval echo '${'$as_ac_Header'}'` = yes; then 4021 cat >>confdefs.h <<_ACEOF 4022@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4023_ACEOF 4024 4025fi 4026 4027done 4028 4029 4030 4031 4032for ac_header in locale.h 4033do 4034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4035if eval "test \"\${$as_ac_Header+set}\" = set"; then 4036 echo "$as_me:$LINENO: checking for $ac_header" >&5 4037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4038if eval "test \"\${$as_ac_Header+set}\" = set"; then 4039 echo $ECHO_N "(cached) $ECHO_C" >&6 4040fi 4041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4043else 4044 # Is the header compilable? 4045echo "$as_me:$LINENO: checking $ac_header usability" >&5 4046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4047cat >conftest.$ac_ext <<_ACEOF 4048/* confdefs.h. */ 4049_ACEOF 4050cat confdefs.h >>conftest.$ac_ext 4051cat >>conftest.$ac_ext <<_ACEOF 4052/* end confdefs.h. */ 4053$ac_includes_default 4054@%:@include <$ac_header> 4055_ACEOF 4056rm -f conftest.$ac_objext 4057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4058 (eval $ac_compile) 2>conftest.er1 4059 ac_status=$? 4060 grep -v '^ *+' conftest.er1 >conftest.err 4061 rm -f conftest.er1 4062 cat conftest.err >&5 4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4064 (exit $ac_status); } && 4065 { ac_try='test -z "$ac_c_werror_flag" 4066 || test ! -s conftest.err' 4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4068 (eval $ac_try) 2>&5 4069 ac_status=$? 4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 (exit $ac_status); }; } && 4072 { ac_try='test -s conftest.$ac_objext' 4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4074 (eval $ac_try) 2>&5 4075 ac_status=$? 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); }; }; then 4078 ac_header_compiler=yes 4079else 4080 echo "$as_me: failed program was:" >&5 4081sed 's/^/| /' conftest.$ac_ext >&5 4082 4083ac_header_compiler=no 4084fi 4085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4087echo "${ECHO_T}$ac_header_compiler" >&6 4088 4089# Is the header present? 4090echo "$as_me:$LINENO: checking $ac_header presence" >&5 4091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4092cat >conftest.$ac_ext <<_ACEOF 4093/* confdefs.h. */ 4094_ACEOF 4095cat confdefs.h >>conftest.$ac_ext 4096cat >>conftest.$ac_ext <<_ACEOF 4097/* end confdefs.h. */ 4098@%:@include <$ac_header> 4099_ACEOF 4100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4102 ac_status=$? 4103 grep -v '^ *+' conftest.er1 >conftest.err 4104 rm -f conftest.er1 4105 cat conftest.err >&5 4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); } >/dev/null; then 4108 if test -s conftest.err; then 4109 ac_cpp_err=$ac_c_preproc_warn_flag 4110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4111 else 4112 ac_cpp_err= 4113 fi 4114else 4115 ac_cpp_err=yes 4116fi 4117if test -z "$ac_cpp_err"; then 4118 ac_header_preproc=yes 4119else 4120 echo "$as_me: failed program was:" >&5 4121sed 's/^/| /' conftest.$ac_ext >&5 4122 4123 ac_header_preproc=no 4124fi 4125rm -f conftest.err conftest.$ac_ext 4126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4127echo "${ECHO_T}$ac_header_preproc" >&6 4128 4129# So? What about this header? 4130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4131 yes:no: ) 4132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4136 ac_header_preproc=yes 4137 ;; 4138 no:yes:* ) 4139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4151 ( 4152 cat <<\_ASBOX 4153@%:@@%:@ ------------------------------------ @%:@@%:@ 4154@%:@@%:@ Report this to http://dbf.berlios.de @%:@@%:@ 4155@%:@@%:@ ------------------------------------ @%:@@%:@ 4156_ASBOX 4157 ) | 4158 sed "s/^/$as_me: WARNING: /" >&2 4159 ;; 4160esac 4161echo "$as_me:$LINENO: checking for $ac_header" >&5 4162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4163if eval "test \"\${$as_ac_Header+set}\" = set"; then 4164 echo $ECHO_N "(cached) $ECHO_C" >&6 4165else 4166 eval "$as_ac_Header=\$ac_header_preproc" 4167fi 4168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4170 4171fi 4172if test `eval echo '${'$as_ac_Header'}'` = yes; then 4173 cat >>confdefs.h <<_ACEOF 4174@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4175_ACEOF 4176 4177fi 4178 4179done 4180 4181 if test $ac_cv_header_locale_h = yes; then 4182 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 4183echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 4184if test "${am_cv_val_LC_MESSAGES+set}" = set; then 4185 echo $ECHO_N "(cached) $ECHO_C" >&6 4186else 4187 cat >conftest.$ac_ext <<_ACEOF 4188/* confdefs.h. */ 4189_ACEOF 4190cat confdefs.h >>conftest.$ac_ext 4191cat >>conftest.$ac_ext <<_ACEOF 4192/* end confdefs.h. */ 4193#include <locale.h> 4194int 4195main () 4196{ 4197return LC_MESSAGES 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202rm -f conftest.$ac_objext conftest$ac_exeext 4203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4204 (eval $ac_link) 2>conftest.er1 4205 ac_status=$? 4206 grep -v '^ *+' conftest.er1 >conftest.err 4207 rm -f conftest.er1 4208 cat conftest.err >&5 4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4210 (exit $ac_status); } && 4211 { ac_try='test -z "$ac_c_werror_flag" 4212 || test ! -s conftest.err' 4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4214 (eval $ac_try) 2>&5 4215 ac_status=$? 4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4217 (exit $ac_status); }; } && 4218 { ac_try='test -s conftest$ac_exeext' 4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4220 (eval $ac_try) 2>&5 4221 ac_status=$? 4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4223 (exit $ac_status); }; }; then 4224 am_cv_val_LC_MESSAGES=yes 4225else 4226 echo "$as_me: failed program was:" >&5 4227sed 's/^/| /' conftest.$ac_ext >&5 4228 4229am_cv_val_LC_MESSAGES=no 4230fi 4231rm -f conftest.err conftest.$ac_objext \ 4232 conftest$ac_exeext conftest.$ac_ext 4233fi 4234echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 4235echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 4236 if test $am_cv_val_LC_MESSAGES = yes; then 4237 4238cat >>confdefs.h <<\_ACEOF 4239@%:@define HAVE_LC_MESSAGES 1 4240_ACEOF 4241 4242 fi 4243 fi 4244 USE_NLS=yes 4245 4246 4247 gt_cv_have_gettext=no 4248 4249 CATOBJEXT=NONE 4250 XGETTEXT=: 4251 INTLLIBS= 4252 4253 if test "${ac_cv_header_libintl_h+set}" = set; then 4254 echo "$as_me:$LINENO: checking for libintl.h" >&5 4255echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 4256if test "${ac_cv_header_libintl_h+set}" = set; then 4257 echo $ECHO_N "(cached) $ECHO_C" >&6 4258fi 4259echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 4260echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 4261else 4262 # Is the header compilable? 4263echo "$as_me:$LINENO: checking libintl.h usability" >&5 4264echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 4265cat >conftest.$ac_ext <<_ACEOF 4266/* confdefs.h. */ 4267_ACEOF 4268cat confdefs.h >>conftest.$ac_ext 4269cat >>conftest.$ac_ext <<_ACEOF 4270/* end confdefs.h. */ 4271$ac_includes_default 4272@%:@include <libintl.h> 4273_ACEOF 4274rm -f conftest.$ac_objext 4275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4276 (eval $ac_compile) 2>conftest.er1 4277 ac_status=$? 4278 grep -v '^ *+' conftest.er1 >conftest.err 4279 rm -f conftest.er1 4280 cat conftest.err >&5 4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4282 (exit $ac_status); } && 4283 { ac_try='test -z "$ac_c_werror_flag" 4284 || test ! -s conftest.err' 4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4286 (eval $ac_try) 2>&5 4287 ac_status=$? 4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); }; } && 4290 { ac_try='test -s conftest.$ac_objext' 4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4292 (eval $ac_try) 2>&5 4293 ac_status=$? 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4295 (exit $ac_status); }; }; then 4296 ac_header_compiler=yes 4297else 4298 echo "$as_me: failed program was:" >&5 4299sed 's/^/| /' conftest.$ac_ext >&5 4300 4301ac_header_compiler=no 4302fi 4303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4305echo "${ECHO_T}$ac_header_compiler" >&6 4306 4307# Is the header present? 4308echo "$as_me:$LINENO: checking libintl.h presence" >&5 4309echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 4310cat >conftest.$ac_ext <<_ACEOF 4311/* confdefs.h. */ 4312_ACEOF 4313cat confdefs.h >>conftest.$ac_ext 4314cat >>conftest.$ac_ext <<_ACEOF 4315/* end confdefs.h. */ 4316@%:@include <libintl.h> 4317_ACEOF 4318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4320 ac_status=$? 4321 grep -v '^ *+' conftest.er1 >conftest.err 4322 rm -f conftest.er1 4323 cat conftest.err >&5 4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 (exit $ac_status); } >/dev/null; then 4326 if test -s conftest.err; then 4327 ac_cpp_err=$ac_c_preproc_warn_flag 4328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4329 else 4330 ac_cpp_err= 4331 fi 4332else 4333 ac_cpp_err=yes 4334fi 4335if test -z "$ac_cpp_err"; then 4336 ac_header_preproc=yes 4337else 4338 echo "$as_me: failed program was:" >&5 4339sed 's/^/| /' conftest.$ac_ext >&5 4340 4341 ac_header_preproc=no 4342fi 4343rm -f conftest.err conftest.$ac_ext 4344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4345echo "${ECHO_T}$ac_header_preproc" >&6 4346 4347# So? What about this header? 4348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4349 yes:no: ) 4350 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 4351echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4352 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 4353echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 4354 ac_header_preproc=yes 4355 ;; 4356 no:yes:* ) 4357 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 4358echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 4359 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 4360echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 4361 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 4362echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 4363 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 4364echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 4365 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 4366echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 4367 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 4368echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 4369 ( 4370 cat <<\_ASBOX 4371@%:@@%:@ ------------------------------------ @%:@@%:@ 4372@%:@@%:@ Report this to http://dbf.berlios.de @%:@@%:@ 4373@%:@@%:@ ------------------------------------ @%:@@%:@ 4374_ASBOX 4375 ) | 4376 sed "s/^/$as_me: WARNING: /" >&2 4377 ;; 4378esac 4379echo "$as_me:$LINENO: checking for libintl.h" >&5 4380echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 4381if test "${ac_cv_header_libintl_h+set}" = set; then 4382 echo $ECHO_N "(cached) $ECHO_C" >&6 4383else 4384 ac_cv_header_libintl_h=$ac_header_preproc 4385fi 4386echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 4387echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 4388 4389fi 4390if test $ac_cv_header_libintl_h = yes; then 4391 gt_cv_func_dgettext_libintl="no" 4392 libintl_extra_libs="" 4393 4394 # 4395 # First check in libc 4396 # 4397 echo "$as_me:$LINENO: checking for ngettext in libc" >&5 4398echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6 4399if test "${gt_cv_func_ngettext_libc+set}" = set; then 4400 echo $ECHO_N "(cached) $ECHO_C" >&6 4401else 4402 cat >conftest.$ac_ext <<_ACEOF 4403/* confdefs.h. */ 4404_ACEOF 4405cat confdefs.h >>conftest.$ac_ext 4406cat >>conftest.$ac_ext <<_ACEOF 4407/* end confdefs.h. */ 4408 4409#include <libintl.h> 4410 4411int 4412main () 4413{ 4414return !ngettext ("","", 1) 4415 ; 4416 return 0; 4417} 4418_ACEOF 4419rm -f conftest.$ac_objext conftest$ac_exeext 4420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4421 (eval $ac_link) 2>conftest.er1 4422 ac_status=$? 4423 grep -v '^ *+' conftest.er1 >conftest.err 4424 rm -f conftest.er1 4425 cat conftest.err >&5 4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4427 (exit $ac_status); } && 4428 { ac_try='test -z "$ac_c_werror_flag" 4429 || test ! -s conftest.err' 4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4431 (eval $ac_try) 2>&5 4432 ac_status=$? 4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4434 (exit $ac_status); }; } && 4435 { ac_try='test -s conftest$ac_exeext' 4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4437 (eval $ac_try) 2>&5 4438 ac_status=$? 4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4440 (exit $ac_status); }; }; then 4441 gt_cv_func_ngettext_libc=yes 4442else 4443 echo "$as_me: failed program was:" >&5 4444sed 's/^/| /' conftest.$ac_ext >&5 4445 4446gt_cv_func_ngettext_libc=no 4447fi 4448rm -f conftest.err conftest.$ac_objext \ 4449 conftest$ac_exeext conftest.$ac_ext 4450 4451fi 4452echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 4453echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6 4454 4455 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 4456 echo "$as_me:$LINENO: checking for dgettext in libc" >&5 4457echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6 4458if test "${gt_cv_func_dgettext_libc+set}" = set; then 4459 echo $ECHO_N "(cached) $ECHO_C" >&6 4460else 4461 cat >conftest.$ac_ext <<_ACEOF 4462/* confdefs.h. */ 4463_ACEOF 4464cat confdefs.h >>conftest.$ac_ext 4465cat >>conftest.$ac_ext <<_ACEOF 4466/* end confdefs.h. */ 4467 4468#include <libintl.h> 4469 4470int 4471main () 4472{ 4473return !dgettext ("","") 4474 ; 4475 return 0; 4476} 4477_ACEOF 4478rm -f conftest.$ac_objext conftest$ac_exeext 4479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4480 (eval $ac_link) 2>conftest.er1 4481 ac_status=$? 4482 grep -v '^ *+' conftest.er1 >conftest.err 4483 rm -f conftest.er1 4484 cat conftest.err >&5 4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4486 (exit $ac_status); } && 4487 { ac_try='test -z "$ac_c_werror_flag" 4488 || test ! -s conftest.err' 4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4490 (eval $ac_try) 2>&5 4491 ac_status=$? 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; } && 4494 { ac_try='test -s conftest$ac_exeext' 4495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4496 (eval $ac_try) 2>&5 4497 ac_status=$? 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4499 (exit $ac_status); }; }; then 4500 gt_cv_func_dgettext_libc=yes 4501else 4502 echo "$as_me: failed program was:" >&5 4503sed 's/^/| /' conftest.$ac_ext >&5 4504 4505gt_cv_func_dgettext_libc=no 4506fi 4507rm -f conftest.err conftest.$ac_objext \ 4508 conftest$ac_exeext conftest.$ac_ext 4509 4510fi 4511echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 4512echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6 4513 fi 4514 4515 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 4516 4517for ac_func in bind_textdomain_codeset 4518do 4519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4520echo "$as_me:$LINENO: checking for $ac_func" >&5 4521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4522if eval "test \"\${$as_ac_var+set}\" = set"; then 4523 echo $ECHO_N "(cached) $ECHO_C" >&6 4524else 4525 cat >conftest.$ac_ext <<_ACEOF 4526/* confdefs.h. */ 4527_ACEOF 4528cat confdefs.h >>conftest.$ac_ext 4529cat >>conftest.$ac_ext <<_ACEOF 4530/* end confdefs.h. */ 4531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4532 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4533#define $ac_func innocuous_$ac_func 4534 4535/* System header to define __stub macros and hopefully few prototypes, 4536 which can conflict with char $ac_func (); below. 4537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4538 <limits.h> exists even on freestanding compilers. */ 4539 4540#ifdef __STDC__ 4541# include <limits.h> 4542#else 4543# include <assert.h> 4544#endif 4545 4546#undef $ac_func 4547 4548/* Override any gcc2 internal prototype to avoid an error. */ 4549#ifdef __cplusplus 4550extern "C" 4551{ 4552#endif 4553/* We use char because int might match the return type of a gcc2 4554 builtin and then its argument prototype would still apply. */ 4555char $ac_func (); 4556/* The GNU C library defines this for functions which it implements 4557 to always fail with ENOSYS. Some functions are actually named 4558 something starting with __ and the normal name is an alias. */ 4559#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4560choke me 4561#else 4562char (*f) () = $ac_func; 4563#endif 4564#ifdef __cplusplus 4565} 4566#endif 4567 4568int 4569main () 4570{ 4571return f != $ac_func; 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576rm -f conftest.$ac_objext conftest$ac_exeext 4577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4578 (eval $ac_link) 2>conftest.er1 4579 ac_status=$? 4580 grep -v '^ *+' conftest.er1 >conftest.err 4581 rm -f conftest.er1 4582 cat conftest.err >&5 4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4584 (exit $ac_status); } && 4585 { ac_try='test -z "$ac_c_werror_flag" 4586 || test ! -s conftest.err' 4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4588 (eval $ac_try) 2>&5 4589 ac_status=$? 4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4591 (exit $ac_status); }; } && 4592 { ac_try='test -s conftest$ac_exeext' 4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4594 (eval $ac_try) 2>&5 4595 ac_status=$? 4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); }; }; then 4598 eval "$as_ac_var=yes" 4599else 4600 echo "$as_me: failed program was:" >&5 4601sed 's/^/| /' conftest.$ac_ext >&5 4602 4603eval "$as_ac_var=no" 4604fi 4605rm -f conftest.err conftest.$ac_objext \ 4606 conftest$ac_exeext conftest.$ac_ext 4607fi 4608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4609echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4610if test `eval echo '${'$as_ac_var'}'` = yes; then 4611 cat >>confdefs.h <<_ACEOF 4612@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4613_ACEOF 4614 4615fi 4616done 4617 4618 fi 4619 4620 # 4621 # If we don't have everything we want, check in libintl 4622 # 4623 if test "$gt_cv_func_dgettext_libc" != "yes" \ 4624 || test "$gt_cv_func_ngettext_libc" != "yes" \ 4625 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 4626 4627 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 4628echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 4629if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 4630 echo $ECHO_N "(cached) $ECHO_C" >&6 4631else 4632 ac_check_lib_save_LIBS=$LIBS 4633LIBS="-lintl $LIBS" 4634cat >conftest.$ac_ext <<_ACEOF 4635/* confdefs.h. */ 4636_ACEOF 4637cat confdefs.h >>conftest.$ac_ext 4638cat >>conftest.$ac_ext <<_ACEOF 4639/* end confdefs.h. */ 4640 4641/* Override any gcc2 internal prototype to avoid an error. */ 4642#ifdef __cplusplus 4643extern "C" 4644#endif 4645/* We use char because int might match the return type of a gcc2 4646 builtin and then its argument prototype would still apply. */ 4647char bindtextdomain (); 4648int 4649main () 4650{ 4651bindtextdomain (); 4652 ; 4653 return 0; 4654} 4655_ACEOF 4656rm -f conftest.$ac_objext conftest$ac_exeext 4657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4658 (eval $ac_link) 2>conftest.er1 4659 ac_status=$? 4660 grep -v '^ *+' conftest.er1 >conftest.err 4661 rm -f conftest.er1 4662 cat conftest.err >&5 4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4664 (exit $ac_status); } && 4665 { ac_try='test -z "$ac_c_werror_flag" 4666 || test ! -s conftest.err' 4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4668 (eval $ac_try) 2>&5 4669 ac_status=$? 4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4671 (exit $ac_status); }; } && 4672 { ac_try='test -s conftest$ac_exeext' 4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4674 (eval $ac_try) 2>&5 4675 ac_status=$? 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677 (exit $ac_status); }; }; then 4678 ac_cv_lib_intl_bindtextdomain=yes 4679else 4680 echo "$as_me: failed program was:" >&5 4681sed 's/^/| /' conftest.$ac_ext >&5 4682 4683ac_cv_lib_intl_bindtextdomain=no 4684fi 4685rm -f conftest.err conftest.$ac_objext \ 4686 conftest$ac_exeext conftest.$ac_ext 4687LIBS=$ac_check_lib_save_LIBS 4688fi 4689echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 4690echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 4691if test $ac_cv_lib_intl_bindtextdomain = yes; then 4692 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 4693echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6 4694if test "${ac_cv_lib_intl_ngettext+set}" = set; then 4695 echo $ECHO_N "(cached) $ECHO_C" >&6 4696else 4697 ac_check_lib_save_LIBS=$LIBS 4698LIBS="-lintl $LIBS" 4699cat >conftest.$ac_ext <<_ACEOF 4700/* confdefs.h. */ 4701_ACEOF 4702cat confdefs.h >>conftest.$ac_ext 4703cat >>conftest.$ac_ext <<_ACEOF 4704/* end confdefs.h. */ 4705 4706/* Override any gcc2 internal prototype to avoid an error. */ 4707#ifdef __cplusplus 4708extern "C" 4709#endif 4710/* We use char because int might match the return type of a gcc2 4711 builtin and then its argument prototype would still apply. */ 4712char ngettext (); 4713int 4714main () 4715{ 4716ngettext (); 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721rm -f conftest.$ac_objext conftest$ac_exeext 4722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4723 (eval $ac_link) 2>conftest.er1 4724 ac_status=$? 4725 grep -v '^ *+' conftest.er1 >conftest.err 4726 rm -f conftest.er1 4727 cat conftest.err >&5 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); } && 4730 { ac_try='test -z "$ac_c_werror_flag" 4731 || test ! -s conftest.err' 4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4733 (eval $ac_try) 2>&5 4734 ac_status=$? 4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4736 (exit $ac_status); }; } && 4737 { ac_try='test -s conftest$ac_exeext' 4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4739 (eval $ac_try) 2>&5 4740 ac_status=$? 4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4742 (exit $ac_status); }; }; then 4743 ac_cv_lib_intl_ngettext=yes 4744else 4745 echo "$as_me: failed program was:" >&5 4746sed 's/^/| /' conftest.$ac_ext >&5 4747 4748ac_cv_lib_intl_ngettext=no 4749fi 4750rm -f conftest.err conftest.$ac_objext \ 4751 conftest$ac_exeext conftest.$ac_ext 4752LIBS=$ac_check_lib_save_LIBS 4753fi 4754echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 4755echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6 4756if test $ac_cv_lib_intl_ngettext = yes; then 4757 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 4758echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 4759if test "${ac_cv_lib_intl_dgettext+set}" = set; then 4760 echo $ECHO_N "(cached) $ECHO_C" >&6 4761else 4762 ac_check_lib_save_LIBS=$LIBS 4763LIBS="-lintl $LIBS" 4764cat >conftest.$ac_ext <<_ACEOF 4765/* confdefs.h. */ 4766_ACEOF 4767cat confdefs.h >>conftest.$ac_ext 4768cat >>conftest.$ac_ext <<_ACEOF 4769/* end confdefs.h. */ 4770 4771/* Override any gcc2 internal prototype to avoid an error. */ 4772#ifdef __cplusplus 4773extern "C" 4774#endif 4775/* We use char because int might match the return type of a gcc2 4776 builtin and then its argument prototype would still apply. */ 4777char dgettext (); 4778int 4779main () 4780{ 4781dgettext (); 4782 ; 4783 return 0; 4784} 4785_ACEOF 4786rm -f conftest.$ac_objext conftest$ac_exeext 4787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4788 (eval $ac_link) 2>conftest.er1 4789 ac_status=$? 4790 grep -v '^ *+' conftest.er1 >conftest.err 4791 rm -f conftest.er1 4792 cat conftest.err >&5 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); } && 4795 { ac_try='test -z "$ac_c_werror_flag" 4796 || test ! -s conftest.err' 4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4798 (eval $ac_try) 2>&5 4799 ac_status=$? 4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); }; } && 4802 { ac_try='test -s conftest$ac_exeext' 4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4804 (eval $ac_try) 2>&5 4805 ac_status=$? 4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4807 (exit $ac_status); }; }; then 4808 ac_cv_lib_intl_dgettext=yes 4809else 4810 echo "$as_me: failed program was:" >&5 4811sed 's/^/| /' conftest.$ac_ext >&5 4812 4813ac_cv_lib_intl_dgettext=no 4814fi 4815rm -f conftest.err conftest.$ac_objext \ 4816 conftest$ac_exeext conftest.$ac_ext 4817LIBS=$ac_check_lib_save_LIBS 4818fi 4819echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 4820echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 4821if test $ac_cv_lib_intl_dgettext = yes; then 4822 gt_cv_func_dgettext_libintl=yes 4823fi 4824 4825fi 4826 4827fi 4828 4829 4830 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 4831 echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 4832echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6 4833 echo "$as_me:$LINENO: result: " >&5 4834echo "${ECHO_T}" >&6 4835 echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 4836echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6 4837if test "${ac_cv_lib_intl_ngettext+set}" = set; then 4838 echo $ECHO_N "(cached) $ECHO_C" >&6 4839else 4840 ac_check_lib_save_LIBS=$LIBS 4841LIBS="-lintl -liconv $LIBS" 4842cat >conftest.$ac_ext <<_ACEOF 4843/* confdefs.h. */ 4844_ACEOF 4845cat confdefs.h >>conftest.$ac_ext 4846cat >>conftest.$ac_ext <<_ACEOF 4847/* end confdefs.h. */ 4848 4849/* Override any gcc2 internal prototype to avoid an error. */ 4850#ifdef __cplusplus 4851extern "C" 4852#endif 4853/* We use char because int might match the return type of a gcc2 4854 builtin and then its argument prototype would still apply. */ 4855char ngettext (); 4856int 4857main () 4858{ 4859ngettext (); 4860 ; 4861 return 0; 4862} 4863_ACEOF 4864rm -f conftest.$ac_objext conftest$ac_exeext 4865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4866 (eval $ac_link) 2>conftest.er1 4867 ac_status=$? 4868 grep -v '^ *+' conftest.er1 >conftest.err 4869 rm -f conftest.er1 4870 cat conftest.err >&5 4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4872 (exit $ac_status); } && 4873 { ac_try='test -z "$ac_c_werror_flag" 4874 || test ! -s conftest.err' 4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4876 (eval $ac_try) 2>&5 4877 ac_status=$? 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); }; } && 4880 { ac_try='test -s conftest$ac_exeext' 4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4882 (eval $ac_try) 2>&5 4883 ac_status=$? 4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4885 (exit $ac_status); }; }; then 4886 ac_cv_lib_intl_ngettext=yes 4887else 4888 echo "$as_me: failed program was:" >&5 4889sed 's/^/| /' conftest.$ac_ext >&5 4890 4891ac_cv_lib_intl_ngettext=no 4892fi 4893rm -f conftest.err conftest.$ac_objext \ 4894 conftest$ac_exeext conftest.$ac_ext 4895LIBS=$ac_check_lib_save_LIBS 4896fi 4897echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 4898echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6 4899if test $ac_cv_lib_intl_ngettext = yes; then 4900 echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 4901echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6 4902if test "${ac_cv_lib_intl_dcgettext+set}" = set; then 4903 echo $ECHO_N "(cached) $ECHO_C" >&6 4904else 4905 ac_check_lib_save_LIBS=$LIBS 4906LIBS="-lintl -liconv $LIBS" 4907cat >conftest.$ac_ext <<_ACEOF 4908/* confdefs.h. */ 4909_ACEOF 4910cat confdefs.h >>conftest.$ac_ext 4911cat >>conftest.$ac_ext <<_ACEOF 4912/* end confdefs.h. */ 4913 4914/* Override any gcc2 internal prototype to avoid an error. */ 4915#ifdef __cplusplus 4916extern "C" 4917#endif 4918/* We use char because int might match the return type of a gcc2 4919 builtin and then its argument prototype would still apply. */ 4920char dcgettext (); 4921int 4922main () 4923{ 4924dcgettext (); 4925 ; 4926 return 0; 4927} 4928_ACEOF 4929rm -f conftest.$ac_objext conftest$ac_exeext 4930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4931 (eval $ac_link) 2>conftest.er1 4932 ac_status=$? 4933 grep -v '^ *+' conftest.er1 >conftest.err 4934 rm -f conftest.er1 4935 cat conftest.err >&5 4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4937 (exit $ac_status); } && 4938 { ac_try='test -z "$ac_c_werror_flag" 4939 || test ! -s conftest.err' 4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4941 (eval $ac_try) 2>&5 4942 ac_status=$? 4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4944 (exit $ac_status); }; } && 4945 { ac_try='test -s conftest$ac_exeext' 4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4947 (eval $ac_try) 2>&5 4948 ac_status=$? 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); }; }; then 4951 ac_cv_lib_intl_dcgettext=yes 4952else 4953 echo "$as_me: failed program was:" >&5 4954sed 's/^/| /' conftest.$ac_ext >&5 4955 4956ac_cv_lib_intl_dcgettext=no 4957fi 4958rm -f conftest.err conftest.$ac_objext \ 4959 conftest$ac_exeext conftest.$ac_ext 4960LIBS=$ac_check_lib_save_LIBS 4961fi 4962echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 4963echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6 4964if test $ac_cv_lib_intl_dcgettext = yes; then 4965 gt_cv_func_dgettext_libintl=yes 4966 libintl_extra_libs=-liconv 4967else 4968 : 4969fi 4970 4971else 4972 : 4973fi 4974 4975 fi 4976 4977 # 4978 # If we found libintl, then check in it for bind_textdomain_codeset(); 4979 # we'll prefer libc if neither have bind_textdomain_codeset(), 4980 # and both have dgettext and ngettext 4981 # 4982 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 4983 glib_save_LIBS="$LIBS" 4984 LIBS="$LIBS -lintl $libintl_extra_libs" 4985 unset ac_cv_func_bind_textdomain_codeset 4986 4987for ac_func in bind_textdomain_codeset 4988do 4989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4990echo "$as_me:$LINENO: checking for $ac_func" >&5 4991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4992if eval "test \"\${$as_ac_var+set}\" = set"; then 4993 echo $ECHO_N "(cached) $ECHO_C" >&6 4994else 4995 cat >conftest.$ac_ext <<_ACEOF 4996/* confdefs.h. */ 4997_ACEOF 4998cat confdefs.h >>conftest.$ac_ext 4999cat >>conftest.$ac_ext <<_ACEOF 5000/* end confdefs.h. */ 5001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5002 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5003#define $ac_func innocuous_$ac_func 5004 5005/* System header to define __stub macros and hopefully few prototypes, 5006 which can conflict with char $ac_func (); below. 5007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5008 <limits.h> exists even on freestanding compilers. */ 5009 5010#ifdef __STDC__ 5011# include <limits.h> 5012#else 5013# include <assert.h> 5014#endif 5015 5016#undef $ac_func 5017 5018/* Override any gcc2 internal prototype to avoid an error. */ 5019#ifdef __cplusplus 5020extern "C" 5021{ 5022#endif 5023/* We use char because int might match the return type of a gcc2 5024 builtin and then its argument prototype would still apply. */ 5025char $ac_func (); 5026/* The GNU C library defines this for functions which it implements 5027 to always fail with ENOSYS. Some functions are actually named 5028 something starting with __ and the normal name is an alias. */ 5029#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5030choke me 5031#else 5032char (*f) () = $ac_func; 5033#endif 5034#ifdef __cplusplus 5035} 5036#endif 5037 5038int 5039main () 5040{ 5041return f != $ac_func; 5042 ; 5043 return 0; 5044} 5045_ACEOF 5046rm -f conftest.$ac_objext conftest$ac_exeext 5047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5048 (eval $ac_link) 2>conftest.er1 5049 ac_status=$? 5050 grep -v '^ *+' conftest.er1 >conftest.err 5051 rm -f conftest.er1 5052 cat conftest.err >&5 5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5054 (exit $ac_status); } && 5055 { ac_try='test -z "$ac_c_werror_flag" 5056 || test ! -s conftest.err' 5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5058 (eval $ac_try) 2>&5 5059 ac_status=$? 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); }; } && 5062 { ac_try='test -s conftest$ac_exeext' 5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5064 (eval $ac_try) 2>&5 5065 ac_status=$? 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); }; }; then 5068 eval "$as_ac_var=yes" 5069else 5070 echo "$as_me: failed program was:" >&5 5071sed 's/^/| /' conftest.$ac_ext >&5 5072 5073eval "$as_ac_var=no" 5074fi 5075rm -f conftest.err conftest.$ac_objext \ 5076 conftest$ac_exeext conftest.$ac_ext 5077fi 5078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5080if test `eval echo '${'$as_ac_var'}'` = yes; then 5081 cat >>confdefs.h <<_ACEOF 5082@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5083_ACEOF 5084 5085fi 5086done 5087 5088 LIBS="$glib_save_LIBS" 5089 5090 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 5091 gt_cv_func_dgettext_libc=no 5092 else 5093 if test "$gt_cv_func_dgettext_libc" = "yes" \ 5094 && test "$gt_cv_func_ngettext_libc" = "yes"; then 5095 gt_cv_func_dgettext_libintl=no 5096 fi 5097 fi 5098 fi 5099 fi 5100 5101 if test "$gt_cv_func_dgettext_libc" = "yes" \ 5102 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 5103 gt_cv_have_gettext=yes 5104 fi 5105 5106 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 5107 INTLLIBS="-lintl $libintl_extra_libs" 5108 fi 5109 5110 if test "$gt_cv_have_gettext" = "yes"; then 5111 5112cat >>confdefs.h <<\_ACEOF 5113@%:@define HAVE_GETTEXT 1 5114_ACEOF 5115 5116 # Extract the first word of "msgfmt", so it can be a program name with args. 5117set dummy msgfmt; ac_word=$2 5118echo "$as_me:$LINENO: checking for $ac_word" >&5 5119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5120if test "${ac_cv_path_MSGFMT+set}" = set; then 5121 echo $ECHO_N "(cached) $ECHO_C" >&6 5122else 5123 case "$MSGFMT" in 5124 /*) 5125 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5126 ;; 5127 *) 5128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5129 for ac_dir in $PATH; do 5130 test -z "$ac_dir" && ac_dir=. 5131 if test -f $ac_dir/$ac_word; then 5132 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 5133 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 5134 break 5135 fi 5136 fi 5137 done 5138 IFS="$ac_save_ifs" 5139 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 5140 ;; 5141esac 5142fi 5143MSGFMT="$ac_cv_path_MSGFMT" 5144if test "$MSGFMT" != "no"; then 5145 echo "$as_me:$LINENO: result: $MSGFMT" >&5 5146echo "${ECHO_T}$MSGFMT" >&6 5147else 5148 echo "$as_me:$LINENO: result: no" >&5 5149echo "${ECHO_T}no" >&6 5150fi 5151 if test "$MSGFMT" != "no"; then 5152 glib_save_LIBS="$LIBS" 5153 LIBS="$LIBS $INTLLIBS" 5154 5155for ac_func in dcgettext 5156do 5157as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5158echo "$as_me:$LINENO: checking for $ac_func" >&5 5159echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5160if eval "test \"\${$as_ac_var+set}\" = set"; then 5161 echo $ECHO_N "(cached) $ECHO_C" >&6 5162else 5163 cat >conftest.$ac_ext <<_ACEOF 5164/* confdefs.h. */ 5165_ACEOF 5166cat confdefs.h >>conftest.$ac_ext 5167cat >>conftest.$ac_ext <<_ACEOF 5168/* end confdefs.h. */ 5169/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5170 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5171#define $ac_func innocuous_$ac_func 5172 5173/* System header to define __stub macros and hopefully few prototypes, 5174 which can conflict with char $ac_func (); below. 5175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5176 <limits.h> exists even on freestanding compilers. */ 5177 5178#ifdef __STDC__ 5179# include <limits.h> 5180#else 5181# include <assert.h> 5182#endif 5183 5184#undef $ac_func 5185 5186/* Override any gcc2 internal prototype to avoid an error. */ 5187#ifdef __cplusplus 5188extern "C" 5189{ 5190#endif 5191/* We use char because int might match the return type of a gcc2 5192 builtin and then its argument prototype would still apply. */ 5193char $ac_func (); 5194/* The GNU C library defines this for functions which it implements 5195 to always fail with ENOSYS. Some functions are actually named 5196 something starting with __ and the normal name is an alias. */ 5197#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5198choke me 5199#else 5200char (*f) () = $ac_func; 5201#endif 5202#ifdef __cplusplus 5203} 5204#endif 5205 5206int 5207main () 5208{ 5209return f != $ac_func; 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214rm -f conftest.$ac_objext conftest$ac_exeext 5215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5216 (eval $ac_link) 2>conftest.er1 5217 ac_status=$? 5218 grep -v '^ *+' conftest.er1 >conftest.err 5219 rm -f conftest.er1 5220 cat conftest.err >&5 5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5222 (exit $ac_status); } && 5223 { ac_try='test -z "$ac_c_werror_flag" 5224 || test ! -s conftest.err' 5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5226 (eval $ac_try) 2>&5 5227 ac_status=$? 5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5229 (exit $ac_status); }; } && 5230 { ac_try='test -s conftest$ac_exeext' 5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5232 (eval $ac_try) 2>&5 5233 ac_status=$? 5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5235 (exit $ac_status); }; }; then 5236 eval "$as_ac_var=yes" 5237else 5238 echo "$as_me: failed program was:" >&5 5239sed 's/^/| /' conftest.$ac_ext >&5 5240 5241eval "$as_ac_var=no" 5242fi 5243rm -f conftest.err conftest.$ac_objext \ 5244 conftest$ac_exeext conftest.$ac_ext 5245fi 5246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5247echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5248if test `eval echo '${'$as_ac_var'}'` = yes; then 5249 cat >>confdefs.h <<_ACEOF 5250@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5251_ACEOF 5252 5253fi 5254done 5255 5256 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5257set dummy gmsgfmt; ac_word=$2 5258echo "$as_me:$LINENO: checking for $ac_word" >&5 5259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5260if test "${ac_cv_path_GMSGFMT+set}" = set; then 5261 echo $ECHO_N "(cached) $ECHO_C" >&6 5262else 5263 case $GMSGFMT in 5264 [\\/]* | ?:[\\/]*) 5265 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5266 ;; 5267 *) 5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269for as_dir in $PATH 5270do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5275 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280done 5281 5282 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5283 ;; 5284esac 5285fi 5286GMSGFMT=$ac_cv_path_GMSGFMT 5287 5288if test -n "$GMSGFMT"; then 5289 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 5290echo "${ECHO_T}$GMSGFMT" >&6 5291else 5292 echo "$as_me:$LINENO: result: no" >&5 5293echo "${ECHO_T}no" >&6 5294fi 5295 5296 # Extract the first word of "xgettext", so it can be a program name with args. 5297set dummy xgettext; ac_word=$2 5298echo "$as_me:$LINENO: checking for $ac_word" >&5 5299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5300if test "${ac_cv_path_XGETTEXT+set}" = set; then 5301 echo $ECHO_N "(cached) $ECHO_C" >&6 5302else 5303 case "$XGETTEXT" in 5304 /*) 5305 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5306 ;; 5307 *) 5308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 5309 for ac_dir in $PATH; do 5310 test -z "$ac_dir" && ac_dir=. 5311 if test -f $ac_dir/$ac_word; then 5312 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 5313 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 5314 break 5315 fi 5316 fi 5317 done 5318 IFS="$ac_save_ifs" 5319 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5320 ;; 5321esac 5322fi 5323XGETTEXT="$ac_cv_path_XGETTEXT" 5324if test "$XGETTEXT" != ":"; then 5325 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 5326echo "${ECHO_T}$XGETTEXT" >&6 5327else 5328 echo "$as_me:$LINENO: result: no" >&5 5329echo "${ECHO_T}no" >&6 5330fi 5331 5332 cat >conftest.$ac_ext <<_ACEOF 5333/* confdefs.h. */ 5334_ACEOF 5335cat confdefs.h >>conftest.$ac_ext 5336cat >>conftest.$ac_ext <<_ACEOF 5337/* end confdefs.h. */ 5338 5339int 5340main () 5341{ 5342extern int _nl_msg_cat_cntr; 5343 return _nl_msg_cat_cntr 5344 ; 5345 return 0; 5346} 5347_ACEOF 5348rm -f conftest.$ac_objext conftest$ac_exeext 5349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5350 (eval $ac_link) 2>conftest.er1 5351 ac_status=$? 5352 grep -v '^ *+' conftest.er1 >conftest.err 5353 rm -f conftest.er1 5354 cat conftest.err >&5 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 (exit $ac_status); } && 5357 { ac_try='test -z "$ac_c_werror_flag" 5358 || test ! -s conftest.err' 5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5360 (eval $ac_try) 2>&5 5361 ac_status=$? 5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5363 (exit $ac_status); }; } && 5364 { ac_try='test -s conftest$ac_exeext' 5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5366 (eval $ac_try) 2>&5 5367 ac_status=$? 5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5369 (exit $ac_status); }; }; then 5370 CATOBJEXT=.gmo 5371 DATADIRNAME=share 5372else 5373 echo "$as_me: failed program was:" >&5 5374sed 's/^/| /' conftest.$ac_ext >&5 5375 5376case $host in 5377 *-*-solaris*) 5378 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 5379echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6 5380if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 5381 echo $ECHO_N "(cached) $ECHO_C" >&6 5382else 5383 cat >conftest.$ac_ext <<_ACEOF 5384/* confdefs.h. */ 5385_ACEOF 5386cat confdefs.h >>conftest.$ac_ext 5387cat >>conftest.$ac_ext <<_ACEOF 5388/* end confdefs.h. */ 5389/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 5390 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5391#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 5392 5393/* System header to define __stub macros and hopefully few prototypes, 5394 which can conflict with char bind_textdomain_codeset (); below. 5395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5396 <limits.h> exists even on freestanding compilers. */ 5397 5398#ifdef __STDC__ 5399# include <limits.h> 5400#else 5401# include <assert.h> 5402#endif 5403 5404#undef bind_textdomain_codeset 5405 5406/* Override any gcc2 internal prototype to avoid an error. */ 5407#ifdef __cplusplus 5408extern "C" 5409{ 5410#endif 5411/* We use char because int might match the return type of a gcc2 5412 builtin and then its argument prototype would still apply. */ 5413char bind_textdomain_codeset (); 5414/* The GNU C library defines this for functions which it implements 5415 to always fail with ENOSYS. Some functions are actually named 5416 something starting with __ and the normal name is an alias. */ 5417#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset) 5418choke me 5419#else 5420char (*f) () = bind_textdomain_codeset; 5421#endif 5422#ifdef __cplusplus 5423} 5424#endif 5425 5426int 5427main () 5428{ 5429return f != bind_textdomain_codeset; 5430 ; 5431 return 0; 5432} 5433_ACEOF 5434rm -f conftest.$ac_objext conftest$ac_exeext 5435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5436 (eval $ac_link) 2>conftest.er1 5437 ac_status=$? 5438 grep -v '^ *+' conftest.er1 >conftest.err 5439 rm -f conftest.er1 5440 cat conftest.err >&5 5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5442 (exit $ac_status); } && 5443 { ac_try='test -z "$ac_c_werror_flag" 5444 || test ! -s conftest.err' 5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5446 (eval $ac_try) 2>&5 5447 ac_status=$? 5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5449 (exit $ac_status); }; } && 5450 { ac_try='test -s conftest$ac_exeext' 5451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5452 (eval $ac_try) 2>&5 5453 ac_status=$? 5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5455 (exit $ac_status); }; }; then 5456 ac_cv_func_bind_textdomain_codeset=yes 5457else 5458 echo "$as_me: failed program was:" >&5 5459sed 's/^/| /' conftest.$ac_ext >&5 5460 5461ac_cv_func_bind_textdomain_codeset=no 5462fi 5463rm -f conftest.err conftest.$ac_objext \ 5464 conftest$ac_exeext conftest.$ac_ext 5465fi 5466echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 5467echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6 5468if test $ac_cv_func_bind_textdomain_codeset = yes; then 5469 CATOBJEXT=.gmo 5470 DATADIRNAME=share 5471else 5472 CATOBJEXT=.mo 5473 DATADIRNAME=lib 5474fi 5475 5476 ;; 5477 *) 5478 CATOBJEXT=.mo 5479 DATADIRNAME=lib 5480 ;; 5481 esac 5482fi 5483rm -f conftest.err conftest.$ac_objext \ 5484 conftest$ac_exeext conftest.$ac_ext 5485 LIBS="$glib_save_LIBS" 5486 INSTOBJEXT=.mo 5487 else 5488 gt_cv_have_gettext=no 5489 fi 5490 fi 5491 5492fi 5493 5494 5495 5496 if test "$gt_cv_have_gettext" = "yes" ; then 5497 5498cat >>confdefs.h <<\_ACEOF 5499@%:@define ENABLE_NLS 1 5500_ACEOF 5501 5502 fi 5503 5504 if test "$XGETTEXT" != ":"; then 5505 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 5506 : ; 5507 else 5508 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 5509echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 5510 XGETTEXT=":" 5511 fi 5512 fi 5513 5514 # We need to process the po/ directory. 5515 POSUB=po 5516 5517 ac_config_commands="$ac_config_commands default-1" 5518 5519 5520 for lang in $ALL_LINGUAS; do 5521 GMOFILES="$GMOFILES $lang.gmo" 5522 POFILES="$POFILES $lang.po" 5523 done 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 if test "$gt_cv_have_gettext" = "yes"; then 5538 if test "x$ALL_LINGUAS" = "x"; then 5539 LINGUAS= 5540 else 5541 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 5542echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 5543 NEW_LINGUAS= 5544 for presentlang in $ALL_LINGUAS; do 5545 useit=no 5546 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 5547 desiredlanguages="$LINGUAS" 5548 else 5549 desiredlanguages="$ALL_LINGUAS" 5550 fi 5551 for desiredlang in $desiredlanguages; do 5552 # Use the presentlang catalog if desiredlang is 5553 # a. equal to presentlang, or 5554 # b. a variant of presentlang (because in this case, 5555 # presentlang can be used as a fallback for messages 5556 # which are not translated in the desiredlang catalog). 5557 case "$desiredlang" in 5558 "$presentlang"*) useit=yes;; 5559 esac 5560 done 5561 if test $useit = yes; then 5562 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 5563 fi 5564 done 5565 LINGUAS=$NEW_LINGUAS 5566 echo "$as_me:$LINENO: result: $LINGUAS" >&5 5567echo "${ECHO_T}$LINGUAS" >&6 5568 fi 5569 5570 if test -n "$LINGUAS"; then 5571 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 5572 fi 5573 fi 5574 5575 MKINSTALLDIRS= 5576 if test -n "$ac_aux_dir"; then 5577 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 5578 fi 5579 if test -z "$MKINSTALLDIRS"; then 5580 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5581 fi 5582 5583 5584 test -d po || mkdir po 5585 if test "x$srcdir" != "x."; then 5586 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 5587 posrcprefix="$srcdir/" 5588 else 5589 posrcprefix="../$srcdir/" 5590 fi 5591 else 5592 posrcprefix="../" 5593 fi 5594 rm -f po/POTFILES 5595 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 5596 < $srcdir/po/POTFILES.in > po/POTFILES 5597 5598GETTEXT_PACKAGE=dbf 5599 5600 5601cat >>confdefs.h <<_ACEOF 5602@%:@define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 5603_ACEOF 5604 5605 5606# Check whether --enable-shared or --disable-shared was given. 5607if test "${enable_shared+set}" = set; then 5608 enableval="$enable_shared" 5609 p=${PACKAGE-default} 5610 case $enableval in 5611 yes) enable_shared=yes ;; 5612 no) enable_shared=no ;; 5613 *) 5614 enable_shared=no 5615 # Look at the argument we got. We use all the common list separators. 5616 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5617 for pkg in $enableval; do 5618 IFS="$lt_save_ifs" 5619 if test "X$pkg" = "X$p"; then 5620 enable_shared=yes 5621 fi 5622 done 5623 IFS="$lt_save_ifs" 5624 ;; 5625 esac 5626else 5627 enable_shared=yes 5628fi; 5629 5630# Check whether --enable-static or --disable-static was given. 5631if test "${enable_static+set}" = set; then 5632 enableval="$enable_static" 5633 p=${PACKAGE-default} 5634 case $enableval in 5635 yes) enable_static=yes ;; 5636 no) enable_static=no ;; 5637 *) 5638 enable_static=no 5639 # Look at the argument we got. We use all the common list separators. 5640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5641 for pkg in $enableval; do 5642 IFS="$lt_save_ifs" 5643 if test "X$pkg" = "X$p"; then 5644 enable_static=yes 5645 fi 5646 done 5647 IFS="$lt_save_ifs" 5648 ;; 5649 esac 5650else 5651 enable_static=yes 5652fi; 5653 5654# Check whether --enable-fast-install or --disable-fast-install was given. 5655if test "${enable_fast_install+set}" = set; then 5656 enableval="$enable_fast_install" 5657 p=${PACKAGE-default} 5658 case $enableval in 5659 yes) enable_fast_install=yes ;; 5660 no) enable_fast_install=no ;; 5661 *) 5662 enable_fast_install=no 5663 # Look at the argument we got. We use all the common list separators. 5664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5665 for pkg in $enableval; do 5666 IFS="$lt_save_ifs" 5667 if test "X$pkg" = "X$p"; then 5668 enable_fast_install=yes 5669 fi 5670 done 5671 IFS="$lt_save_ifs" 5672 ;; 5673 esac 5674else 5675 enable_fast_install=yes 5676fi; 5677 5678# Make sure we can run config.sub. 5679$ac_config_sub sun4 >/dev/null 2>&1 || 5680 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 5681echo "$as_me: error: cannot run $ac_config_sub" >&2;} 5682 { (exit 1); exit 1; }; } 5683 5684echo "$as_me:$LINENO: checking build system type" >&5 5685echo $ECHO_N "checking build system type... $ECHO_C" >&6 5686if test "${ac_cv_build+set}" = set; then 5687 echo $ECHO_N "(cached) $ECHO_C" >&6 5688else 5689 ac_cv_build_alias=$build_alias 5690test -z "$ac_cv_build_alias" && 5691 ac_cv_build_alias=`$ac_config_guess` 5692test -z "$ac_cv_build_alias" && 5693 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 5694echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 5695 { (exit 1); exit 1; }; } 5696ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 5697 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 5698echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 5699 { (exit 1); exit 1; }; } 5700 5701fi 5702echo "$as_me:$LINENO: result: $ac_cv_build" >&5 5703echo "${ECHO_T}$ac_cv_build" >&6 5704build=$ac_cv_build 5705build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5706build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5707build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5708 5709 5710echo "$as_me:$LINENO: checking host system type" >&5 5711echo $ECHO_N "checking host system type... $ECHO_C" >&6 5712if test "${ac_cv_host+set}" = set; then 5713 echo $ECHO_N "(cached) $ECHO_C" >&6 5714else 5715 ac_cv_host_alias=$host_alias 5716test -z "$ac_cv_host_alias" && 5717 ac_cv_host_alias=$ac_cv_build_alias 5718ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 5719 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 5720echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 5721 { (exit 1); exit 1; }; } 5722 5723fi 5724echo "$as_me:$LINENO: result: $ac_cv_host" >&5 5725echo "${ECHO_T}$ac_cv_host" >&6 5726host=$ac_cv_host 5727host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 5728host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 5729host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 5730 5731 5732echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5733echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 5734if test "${lt_cv_path_SED+set}" = set; then 5735 echo $ECHO_N "(cached) $ECHO_C" >&6 5736else 5737 # Loop through the user's path and test for sed and gsed. 5738# Then use that list of sed's as ones to test for truncation. 5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5740for as_dir in $PATH 5741do 5742 IFS=$as_save_IFS 5743 test -z "$as_dir" && as_dir=. 5744 for lt_ac_prog in sed gsed; do 5745 for ac_exec_ext in '' $ac_executable_extensions; do 5746 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 5747 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5748 fi 5749 done 5750 done 5751done 5752lt_ac_max=0 5753lt_ac_count=0 5754# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5755# along with /bin/sed that truncates output. 5756for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5757 test ! -f $lt_ac_sed && continue 5758 cat /dev/null > conftest.in 5759 lt_ac_count=0 5760 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5761 # Check for GNU sed and select it if it is found. 5762 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5763 lt_cv_path_SED=$lt_ac_sed 5764 break 5765 fi 5766 while true; do 5767 cat conftest.in conftest.in >conftest.tmp 5768 mv conftest.tmp conftest.in 5769 cp conftest.in conftest.nl 5770 echo >>conftest.nl 5771 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5772 cmp -s conftest.out conftest.nl || break 5773 # 10000 chars as input seems more than enough 5774 test $lt_ac_count -gt 10 && break 5775 lt_ac_count=`expr $lt_ac_count + 1` 5776 if test $lt_ac_count -gt $lt_ac_max; then 5777 lt_ac_max=$lt_ac_count 5778 lt_cv_path_SED=$lt_ac_sed 5779 fi 5780 done 5781done 5782 5783fi 5784 5785SED=$lt_cv_path_SED 5786echo "$as_me:$LINENO: result: $SED" >&5 5787echo "${ECHO_T}$SED" >&6 5788 5789 5790# Check whether --with-gnu-ld or --without-gnu-ld was given. 5791if test "${with_gnu_ld+set}" = set; then 5792 withval="$with_gnu_ld" 5793 test "$withval" = no || with_gnu_ld=yes 5794else 5795 with_gnu_ld=no 5796fi; 5797ac_prog=ld 5798if test "$GCC" = yes; then 5799 # Check if gcc -print-prog-name=ld gives a path. 5800 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5801echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 5802 case $host in 5803 *-*-mingw*) 5804 # gcc leaves a trailing carriage return which upsets mingw 5805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5806 *) 5807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5808 esac 5809 case $ac_prog in 5810 # Accept absolute paths. 5811 [\\/]* | ?:[\\/]*) 5812 re_direlt='/[^/][^/]*/\.\./' 5813 # Canonicalize the pathname of ld 5814 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5815 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5816 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5817 done 5818 test -z "$LD" && LD="$ac_prog" 5819 ;; 5820 "") 5821 # If it fails, then pretend we aren't using GCC. 5822 ac_prog=ld 5823 ;; 5824 *) 5825 # If it is relative, then search for the first ld in PATH. 5826 with_gnu_ld=unknown 5827 ;; 5828 esac 5829elif test "$with_gnu_ld" = yes; then 5830 echo "$as_me:$LINENO: checking for GNU ld" >&5 5831echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 5832else 5833 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5834echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 5835fi 5836if test "${lt_cv_path_LD+set}" = set; then 5837 echo $ECHO_N "(cached) $ECHO_C" >&6 5838else 5839 if test -z "$LD"; then 5840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5841 for ac_dir in $PATH; do 5842 IFS="$lt_save_ifs" 5843 test -z "$ac_dir" && ac_dir=. 5844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5845 lt_cv_path_LD="$ac_dir/$ac_prog" 5846 # Check to see if the program is GNU ld. I'd rather use --version, 5847 # but apparently some variants of GNU ld only accept -v. 5848 # Break only if it was the GNU/non-GNU ld that we prefer. 5849 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5850 *GNU* | *'with BFD'*) 5851 test "$with_gnu_ld" != no && break 5852 ;; 5853 *) 5854 test "$with_gnu_ld" != yes && break 5855 ;; 5856 esac 5857 fi 5858 done 5859 IFS="$lt_save_ifs" 5860else 5861 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5862fi 5863fi 5864 5865LD="$lt_cv_path_LD" 5866if test -n "$LD"; then 5867 echo "$as_me:$LINENO: result: $LD" >&5 5868echo "${ECHO_T}$LD" >&6 5869else 5870 echo "$as_me:$LINENO: result: no" >&5 5871echo "${ECHO_T}no" >&6 5872fi 5873test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5874echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5875 { (exit 1); exit 1; }; } 5876echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5877echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 5878if test "${lt_cv_prog_gnu_ld+set}" = set; then 5879 echo $ECHO_N "(cached) $ECHO_C" >&6 5880else 5881 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5882case `$LD -v 2>&1 </dev/null` in 5883*GNU* | *'with BFD'*) 5884 lt_cv_prog_gnu_ld=yes 5885 ;; 5886*) 5887 lt_cv_prog_gnu_ld=no 5888 ;; 5889esac 5890fi 5891echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5892echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 5893with_gnu_ld=$lt_cv_prog_gnu_ld 5894 5895 5896echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5897echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 5898if test "${lt_cv_ld_reload_flag+set}" = set; then 5899 echo $ECHO_N "(cached) $ECHO_C" >&6 5900else 5901 lt_cv_ld_reload_flag='-r' 5902fi 5903echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5904echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 5905reload_flag=$lt_cv_ld_reload_flag 5906case $reload_flag in 5907"" | " "*) ;; 5908*) reload_flag=" $reload_flag" ;; 5909esac 5910reload_cmds='$LD$reload_flag -o $output$reload_objs' 5911case $host_os in 5912 darwin*) 5913 if test "$GCC" = yes; then 5914 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 5915 else 5916 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5917 fi 5918 ;; 5919esac 5920 5921echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5922echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 5923if test "${lt_cv_path_NM+set}" = set; then 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 5925else 5926 if test -n "$NM"; then 5927 # Let the user override the test. 5928 lt_cv_path_NM="$NM" 5929else 5930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5931 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 5932 IFS="$lt_save_ifs" 5933 test -z "$ac_dir" && ac_dir=. 5934 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 5935 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5936 # Check to see if the nm accepts a BSD-compat flag. 5937 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5938 # nm: unknown option "B" ignored 5939 # Tru64's nm complains that /dev/null is an invalid object file 5940 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5941 */dev/null* | *'Invalid file or object type'*) 5942 lt_cv_path_NM="$tmp_nm -B" 5943 break 5944 ;; 5945 *) 5946 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5947 */dev/null*) 5948 lt_cv_path_NM="$tmp_nm -p" 5949 break 5950 ;; 5951 *) 5952 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5953 continue # so that we can try to find one that supports BSD flags 5954 ;; 5955 esac 5956 esac 5957 fi 5958 done 5959 IFS="$lt_save_ifs" 5960 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5961fi 5962fi 5963echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5964echo "${ECHO_T}$lt_cv_path_NM" >&6 5965NM="$lt_cv_path_NM" 5966 5967echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 5968echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 5969if test "${lt_cv_deplibs_check_method+set}" = set; then 5970 echo $ECHO_N "(cached) $ECHO_C" >&6 5971else 5972 lt_cv_file_magic_cmd='$MAGIC_CMD' 5973lt_cv_file_magic_test_file= 5974lt_cv_deplibs_check_method='unknown' 5975# Need to set the preceding variable on all platforms that support 5976# interlibrary dependencies. 5977# 'none' -- dependencies not supported. 5978# `unknown' -- same as none, but documents that we really don't know. 5979# 'pass_all' -- all dependencies passed with no checks. 5980# 'test_compile' -- check by making test program. 5981# 'file_magic [[regex]]' -- check by looking for files in library path 5982# which responds to the $file_magic_cmd with a given extended regex. 5983# If you have `file' or equivalent on your system and you're not sure 5984# whether `pass_all' will *always* work, you probably want this one. 5985 5986case $host_os in 5987aix4* | aix5*) 5988 lt_cv_deplibs_check_method=pass_all 5989 ;; 5990 5991beos*) 5992 lt_cv_deplibs_check_method=pass_all 5993 ;; 5994 5995bsdi[45]*) 5996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5997 lt_cv_file_magic_cmd='/usr/bin/file -L' 5998 lt_cv_file_magic_test_file=/shlib/libc.so 5999 ;; 6000 6001cygwin*) 6002 # func_win32_libid is a shell function defined in ltmain.sh 6003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6004 lt_cv_file_magic_cmd='func_win32_libid' 6005 ;; 6006 6007mingw* | pw32*) 6008 # Base MSYS/MinGW do not provide the 'file' command needed by 6009 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 6010 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6011 lt_cv_file_magic_cmd='$OBJDUMP -f' 6012 ;; 6013 6014darwin* | rhapsody*) 6015 lt_cv_deplibs_check_method=pass_all 6016 ;; 6017 6018freebsd* | kfreebsd*-gnu | dragonfly*) 6019 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6020 case $host_cpu in 6021 i*86 ) 6022 # Not sure whether the presence of OpenBSD here was a mistake. 6023 # Let's accept both of them until this is cleared up. 6024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6025 lt_cv_file_magic_cmd=/usr/bin/file 6026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6027 ;; 6028 esac 6029 else 6030 lt_cv_deplibs_check_method=pass_all 6031 fi 6032 ;; 6033 6034gnu*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 6038hpux10.20* | hpux11*) 6039 lt_cv_file_magic_cmd=/usr/bin/file 6040 case $host_cpu in 6041 ia64*) 6042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6044 ;; 6045 hppa*64*) 6046 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]' 6047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6048 ;; 6049 *) 6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6051 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6052 ;; 6053 esac 6054 ;; 6055 6056irix5* | irix6* | nonstopux*) 6057 case $LD in 6058 *-32|*"-32 ") libmagic=32-bit;; 6059 *-n32|*"-n32 ") libmagic=N32;; 6060 *-64|*"-64 ") libmagic=64-bit;; 6061 *) libmagic=never-match;; 6062 esac 6063 lt_cv_deplibs_check_method=pass_all 6064 ;; 6065 6066# This must be Linux ELF. 6067linux*) 6068 lt_cv_deplibs_check_method=pass_all 6069 ;; 6070 6071netbsd*) 6072 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6074 else 6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6076 fi 6077 ;; 6078 6079newos6*) 6080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6081 lt_cv_file_magic_cmd=/usr/bin/file 6082 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6083 ;; 6084 6085nto-qnx*) 6086 lt_cv_deplibs_check_method=unknown 6087 ;; 6088 6089openbsd*) 6090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6092 else 6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6094 fi 6095 ;; 6096 6097osf3* | osf4* | osf5*) 6098 lt_cv_deplibs_check_method=pass_all 6099 ;; 6100 6101sco3.2v5*) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 6105solaris*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 6109sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6110 case $host_vendor in 6111 motorola) 6112 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]' 6113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6114 ;; 6115 ncr) 6116 lt_cv_deplibs_check_method=pass_all 6117 ;; 6118 sequent) 6119 lt_cv_file_magic_cmd='/bin/file' 6120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6121 ;; 6122 sni) 6123 lt_cv_file_magic_cmd='/bin/file' 6124 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6125 lt_cv_file_magic_test_file=/lib/libc.so 6126 ;; 6127 siemens) 6128 lt_cv_deplibs_check_method=pass_all 6129 ;; 6130 esac 6131 ;; 6132 6133sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 6134 lt_cv_deplibs_check_method=pass_all 6135 ;; 6136esac 6137 6138fi 6139echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6140echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 6141file_magic_cmd=$lt_cv_file_magic_cmd 6142deplibs_check_method=$lt_cv_deplibs_check_method 6143test -z "$deplibs_check_method" && deplibs_check_method=unknown 6144 6145 6146 6147 6148# If no C compiler was specified, use CC. 6149LTCC=${LTCC-"$CC"} 6150 6151# Allow CC to be a program name with arguments. 6152compiler=$CC 6153 6154# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6155if test "${enable_libtool_lock+set}" = set; then 6156 enableval="$enable_libtool_lock" 6157 6158fi; 6159test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6160 6161# Some flags need to be propagated to the compiler or linker for good 6162# libtool support. 6163case $host in 6164ia64-*-hpux*) 6165 # Find out which ABI we are using. 6166 echo 'int i;' > conftest.$ac_ext 6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6168 (eval $ac_compile) 2>&5 6169 ac_status=$? 6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6171 (exit $ac_status); }; then 6172 case `/usr/bin/file conftest.$ac_objext` in 6173 *ELF-32*) 6174 HPUX_IA64_MODE="32" 6175 ;; 6176 *ELF-64*) 6177 HPUX_IA64_MODE="64" 6178 ;; 6179 esac 6180 fi 6181 rm -rf conftest* 6182 ;; 6183*-*-irix6*) 6184 # Find out which ABI we are using. 6185 echo '#line __oline__ "configure"' > conftest.$ac_ext 6186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6187 (eval $ac_compile) 2>&5 6188 ac_status=$? 6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6190 (exit $ac_status); }; then 6191 if test "$lt_cv_prog_gnu_ld" = yes; then 6192 case `/usr/bin/file conftest.$ac_objext` in 6193 *32-bit*) 6194 LD="${LD-ld} -melf32bsmip" 6195 ;; 6196 *N32*) 6197 LD="${LD-ld} -melf32bmipn32" 6198 ;; 6199 *64-bit*) 6200 LD="${LD-ld} -melf64bmip" 6201 ;; 6202 esac 6203 else 6204 case `/usr/bin/file conftest.$ac_objext` in 6205 *32-bit*) 6206 LD="${LD-ld} -32" 6207 ;; 6208 *N32*) 6209 LD="${LD-ld} -n32" 6210 ;; 6211 *64-bit*) 6212 LD="${LD-ld} -64" 6213 ;; 6214 esac 6215 fi 6216 fi 6217 rm -rf conftest* 6218 ;; 6219 6220x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 6221 # Find out which ABI we are using. 6222 echo 'int i;' > conftest.$ac_ext 6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6224 (eval $ac_compile) 2>&5 6225 ac_status=$? 6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6227 (exit $ac_status); }; then 6228 case `/usr/bin/file conftest.o` in 6229 *32-bit*) 6230 case $host in 6231 x86_64-*linux*) 6232 LD="${LD-ld} -m elf_i386" 6233 ;; 6234 ppc64-*linux*|powerpc64-*linux*) 6235 LD="${LD-ld} -m elf32ppclinux" 6236 ;; 6237 s390x-*linux*) 6238 LD="${LD-ld} -m elf_s390" 6239 ;; 6240 sparc64-*linux*) 6241 LD="${LD-ld} -m elf32_sparc" 6242 ;; 6243 esac 6244 ;; 6245 *64-bit*) 6246 case $host in 6247 x86_64-*linux*) 6248 LD="${LD-ld} -m elf_x86_64" 6249 ;; 6250 ppc*-*linux*|powerpc*-*linux*) 6251 LD="${LD-ld} -m elf64ppc" 6252 ;; 6253 s390*-*linux*) 6254 LD="${LD-ld} -m elf64_s390" 6255 ;; 6256 sparc*-*linux*) 6257 LD="${LD-ld} -m elf64_sparc" 6258 ;; 6259 esac 6260 ;; 6261 esac 6262 fi 6263 rm -rf conftest* 6264 ;; 6265 6266*-*-sco3.2v5*) 6267 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6268 SAVE_CFLAGS="$CFLAGS" 6269 CFLAGS="$CFLAGS -belf" 6270 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 6271echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 6272if test "${lt_cv_cc_needs_belf+set}" = set; then 6273 echo $ECHO_N "(cached) $ECHO_C" >&6 6274else 6275 ac_ext=c 6276ac_cpp='$CPP $CPPFLAGS' 6277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6279ac_compiler_gnu=$ac_cv_c_compiler_gnu 6280 6281 cat >conftest.$ac_ext <<_ACEOF 6282/* confdefs.h. */ 6283_ACEOF 6284cat confdefs.h >>conftest.$ac_ext 6285cat >>conftest.$ac_ext <<_ACEOF 6286/* end confdefs.h. */ 6287 6288int 6289main () 6290{ 6291 6292 ; 6293 return 0; 6294} 6295_ACEOF 6296rm -f conftest.$ac_objext conftest$ac_exeext 6297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6298 (eval $ac_link) 2>conftest.er1 6299 ac_status=$? 6300 grep -v '^ *+' conftest.er1 >conftest.err 6301 rm -f conftest.er1 6302 cat conftest.err >&5 6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6304 (exit $ac_status); } && 6305 { ac_try='test -z "$ac_c_werror_flag" 6306 || test ! -s conftest.err' 6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6308 (eval $ac_try) 2>&5 6309 ac_status=$? 6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6311 (exit $ac_status); }; } && 6312 { ac_try='test -s conftest$ac_exeext' 6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6314 (eval $ac_try) 2>&5 6315 ac_status=$? 6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6317 (exit $ac_status); }; }; then 6318 lt_cv_cc_needs_belf=yes 6319else 6320 echo "$as_me: failed program was:" >&5 6321sed 's/^/| /' conftest.$ac_ext >&5 6322 6323lt_cv_cc_needs_belf=no 6324fi 6325rm -f conftest.err conftest.$ac_objext \ 6326 conftest$ac_exeext conftest.$ac_ext 6327 ac_ext=c 6328ac_cpp='$CPP $CPPFLAGS' 6329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6331ac_compiler_gnu=$ac_cv_c_compiler_gnu 6332 6333fi 6334echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 6335echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 6336 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6337 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6338 CFLAGS="$SAVE_CFLAGS" 6339 fi 6340 ;; 6341 6342esac 6343 6344need_locks="$enable_libtool_lock" 6345 6346 6347 6348for ac_header in dlfcn.h 6349do 6350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6351if eval "test \"\${$as_ac_Header+set}\" = set"; then 6352 echo "$as_me:$LINENO: checking for $ac_header" >&5 6353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6354if eval "test \"\${$as_ac_Header+set}\" = set"; then 6355 echo $ECHO_N "(cached) $ECHO_C" >&6 6356fi 6357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6359else 6360 # Is the header compilable? 6361echo "$as_me:$LINENO: checking $ac_header usability" >&5 6362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6363cat >conftest.$ac_ext <<_ACEOF 6364/* confdefs.h. */ 6365_ACEOF 6366cat confdefs.h >>conftest.$ac_ext 6367cat >>conftest.$ac_ext <<_ACEOF 6368/* end confdefs.h. */ 6369$ac_includes_default 6370@%:@include <$ac_header> 6371_ACEOF 6372rm -f conftest.$ac_objext 6373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6374 (eval $ac_compile) 2>conftest.er1 6375 ac_status=$? 6376 grep -v '^ *+' conftest.er1 >conftest.err 6377 rm -f conftest.er1 6378 cat conftest.err >&5 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); } && 6381 { ac_try='test -z "$ac_c_werror_flag" 6382 || test ! -s conftest.err' 6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6384 (eval $ac_try) 2>&5 6385 ac_status=$? 6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6387 (exit $ac_status); }; } && 6388 { ac_try='test -s conftest.$ac_objext' 6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6390 (eval $ac_try) 2>&5 6391 ac_status=$? 6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6393 (exit $ac_status); }; }; then 6394 ac_header_compiler=yes 6395else 6396 echo "$as_me: failed program was:" >&5 6397sed 's/^/| /' conftest.$ac_ext >&5 6398 6399ac_header_compiler=no 6400fi 6401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6402echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6403echo "${ECHO_T}$ac_header_compiler" >&6 6404 6405# Is the header present? 6406echo "$as_me:$LINENO: checking $ac_header presence" >&5 6407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6408cat >conftest.$ac_ext <<_ACEOF 6409/* confdefs.h. */ 6410_ACEOF 6411cat confdefs.h >>conftest.$ac_ext 6412cat >>conftest.$ac_ext <<_ACEOF 6413/* end confdefs.h. */ 6414@%:@include <$ac_header> 6415_ACEOF 6416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6418 ac_status=$? 6419 grep -v '^ *+' conftest.er1 >conftest.err 6420 rm -f conftest.er1 6421 cat conftest.err >&5 6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6423 (exit $ac_status); } >/dev/null; then 6424 if test -s conftest.err; then 6425 ac_cpp_err=$ac_c_preproc_warn_flag 6426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6427 else 6428 ac_cpp_err= 6429 fi 6430else 6431 ac_cpp_err=yes 6432fi 6433if test -z "$ac_cpp_err"; then 6434 ac_header_preproc=yes 6435else 6436 echo "$as_me: failed program was:" >&5 6437sed 's/^/| /' conftest.$ac_ext >&5 6438 6439 ac_header_preproc=no 6440fi 6441rm -f conftest.err conftest.$ac_ext 6442echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6443echo "${ECHO_T}$ac_header_preproc" >&6 6444 6445# So? What about this header? 6446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6447 yes:no: ) 6448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6452 ac_header_preproc=yes 6453 ;; 6454 no:yes:* ) 6455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6467 ( 6468 cat <<\_ASBOX 6469@%:@@%:@ ------------------------------------ @%:@@%:@ 6470@%:@@%:@ Report this to http://dbf.berlios.de @%:@@%:@ 6471@%:@@%:@ ------------------------------------ @%:@@%:@ 6472_ASBOX 6473 ) | 6474 sed "s/^/$as_me: WARNING: /" >&2 6475 ;; 6476esac 6477echo "$as_me:$LINENO: checking for $ac_header" >&5 6478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6479if eval "test \"\${$as_ac_Header+set}\" = set"; then 6480 echo $ECHO_N "(cached) $ECHO_C" >&6 6481else 6482 eval "$as_ac_Header=\$ac_header_preproc" 6483fi 6484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6486 6487fi 6488if test `eval echo '${'$as_ac_Header'}'` = yes; then 6489 cat >>confdefs.h <<_ACEOF 6490@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6491_ACEOF 6492 6493fi 6494 6495done 6496 6497ac_ext=cc 6498ac_cpp='$CXXCPP $CPPFLAGS' 6499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6502if test -n "$ac_tool_prefix"; then 6503 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 6504 do 6505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6506set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6507echo "$as_me:$LINENO: checking for $ac_word" >&5 6508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6509if test "${ac_cv_prog_CXX+set}" = set; then 6510 echo $ECHO_N "(cached) $ECHO_C" >&6 6511else 6512 if test -n "$CXX"; then 6513 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6514else 6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516for as_dir in $PATH 6517do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for ac_exec_ext in '' $ac_executable_extensions; do 6521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6522 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6524 break 2 6525 fi 6526done 6527done 6528 6529fi 6530fi 6531CXX=$ac_cv_prog_CXX 6532if test -n "$CXX"; then 6533 echo "$as_me:$LINENO: result: $CXX" >&5 6534echo "${ECHO_T}$CXX" >&6 6535else 6536 echo "$as_me:$LINENO: result: no" >&5 6537echo "${ECHO_T}no" >&6 6538fi 6539 6540 test -n "$CXX" && break 6541 done 6542fi 6543if test -z "$CXX"; then 6544 ac_ct_CXX=$CXX 6545 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 6546do 6547 # Extract the first word of "$ac_prog", so it can be a program name with args. 6548set dummy $ac_prog; ac_word=$2 6549echo "$as_me:$LINENO: checking for $ac_word" >&5 6550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6551if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6552 echo $ECHO_N "(cached) $ECHO_C" >&6 6553else 6554 if test -n "$ac_ct_CXX"; then 6555 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6556else 6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6558for as_dir in $PATH 6559do 6560 IFS=$as_save_IFS 6561 test -z "$as_dir" && as_dir=. 6562 for ac_exec_ext in '' $ac_executable_extensions; do 6563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6564 ac_cv_prog_ac_ct_CXX="$ac_prog" 6565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6566 break 2 6567 fi 6568done 6569done 6570 6571fi 6572fi 6573ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6574if test -n "$ac_ct_CXX"; then 6575 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6576echo "${ECHO_T}$ac_ct_CXX" >&6 6577else 6578 echo "$as_me:$LINENO: result: no" >&5 6579echo "${ECHO_T}no" >&6 6580fi 6581 6582 test -n "$ac_ct_CXX" && break 6583done 6584test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 6585 6586 CXX=$ac_ct_CXX 6587fi 6588 6589 6590# Provide some information about the compiler. 6591echo "$as_me:$LINENO:" \ 6592 "checking for C++ compiler version" >&5 6593ac_compiler=`set X $ac_compile; echo $2` 6594{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 6595 (eval $ac_compiler --version </dev/null >&5) 2>&5 6596 ac_status=$? 6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6598 (exit $ac_status); } 6599{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 6600 (eval $ac_compiler -v </dev/null >&5) 2>&5 6601 ac_status=$? 6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6603 (exit $ac_status); } 6604{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 6605 (eval $ac_compiler -V </dev/null >&5) 2>&5 6606 ac_status=$? 6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6608 (exit $ac_status); } 6609 6610echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6611echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 6612if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6613 echo $ECHO_N "(cached) $ECHO_C" >&6 6614else 6615 cat >conftest.$ac_ext <<_ACEOF 6616/* confdefs.h. */ 6617_ACEOF 6618cat confdefs.h >>conftest.$ac_ext 6619cat >>conftest.$ac_ext <<_ACEOF 6620/* end confdefs.h. */ 6621 6622int 6623main () 6624{ 6625#ifndef __GNUC__ 6626 choke me 6627#endif 6628 6629 ; 6630 return 0; 6631} 6632_ACEOF 6633rm -f conftest.$ac_objext 6634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6635 (eval $ac_compile) 2>conftest.er1 6636 ac_status=$? 6637 grep -v '^ *+' conftest.er1 >conftest.err 6638 rm -f conftest.er1 6639 cat conftest.err >&5 6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6641 (exit $ac_status); } && 6642 { ac_try='test -z "$ac_cxx_werror_flag" 6643 || test ! -s conftest.err' 6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6645 (eval $ac_try) 2>&5 6646 ac_status=$? 6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6648 (exit $ac_status); }; } && 6649 { ac_try='test -s conftest.$ac_objext' 6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6651 (eval $ac_try) 2>&5 6652 ac_status=$? 6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6654 (exit $ac_status); }; }; then 6655 ac_compiler_gnu=yes 6656else 6657 echo "$as_me: failed program was:" >&5 6658sed 's/^/| /' conftest.$ac_ext >&5 6659 6660ac_compiler_gnu=no 6661fi 6662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6663ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6664 6665fi 6666echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6667echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 6668GXX=`test $ac_compiler_gnu = yes && echo yes` 6669ac_test_CXXFLAGS=${CXXFLAGS+set} 6670ac_save_CXXFLAGS=$CXXFLAGS 6671CXXFLAGS="-g" 6672echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6673echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 6674if test "${ac_cv_prog_cxx_g+set}" = set; then 6675 echo $ECHO_N "(cached) $ECHO_C" >&6 6676else 6677 cat >conftest.$ac_ext <<_ACEOF 6678/* confdefs.h. */ 6679_ACEOF 6680cat confdefs.h >>conftest.$ac_ext 6681cat >>conftest.$ac_ext <<_ACEOF 6682/* end confdefs.h. */ 6683 6684int 6685main () 6686{ 6687 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692rm -f conftest.$ac_objext 6693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6694 (eval $ac_compile) 2>conftest.er1 6695 ac_status=$? 6696 grep -v '^ *+' conftest.er1 >conftest.err 6697 rm -f conftest.er1 6698 cat conftest.err >&5 6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6700 (exit $ac_status); } && 6701 { ac_try='test -z "$ac_cxx_werror_flag" 6702 || test ! -s conftest.err' 6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6704 (eval $ac_try) 2>&5 6705 ac_status=$? 6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6707 (exit $ac_status); }; } && 6708 { ac_try='test -s conftest.$ac_objext' 6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6710 (eval $ac_try) 2>&5 6711 ac_status=$? 6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6713 (exit $ac_status); }; }; then 6714 ac_cv_prog_cxx_g=yes 6715else 6716 echo "$as_me: failed program was:" >&5 6717sed 's/^/| /' conftest.$ac_ext >&5 6718 6719ac_cv_prog_cxx_g=no 6720fi 6721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6722fi 6723echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6724echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 6725if test "$ac_test_CXXFLAGS" = set; then 6726 CXXFLAGS=$ac_save_CXXFLAGS 6727elif test $ac_cv_prog_cxx_g = yes; then 6728 if test "$GXX" = yes; then 6729 CXXFLAGS="-g -O2" 6730 else 6731 CXXFLAGS="-g" 6732 fi 6733else 6734 if test "$GXX" = yes; then 6735 CXXFLAGS="-O2" 6736 else 6737 CXXFLAGS= 6738 fi 6739fi 6740for ac_declaration in \ 6741 '' \ 6742 'extern "C" void std::exit (int) throw (); using std::exit;' \ 6743 'extern "C" void std::exit (int); using std::exit;' \ 6744 'extern "C" void exit (int) throw ();' \ 6745 'extern "C" void exit (int);' \ 6746 'void exit (int);' 6747do 6748 cat >conftest.$ac_ext <<_ACEOF 6749/* confdefs.h. */ 6750_ACEOF 6751cat confdefs.h >>conftest.$ac_ext 6752cat >>conftest.$ac_ext <<_ACEOF 6753/* end confdefs.h. */ 6754$ac_declaration 6755@%:@include <stdlib.h> 6756int 6757main () 6758{ 6759exit (42); 6760 ; 6761 return 0; 6762} 6763_ACEOF 6764rm -f conftest.$ac_objext 6765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6766 (eval $ac_compile) 2>conftest.er1 6767 ac_status=$? 6768 grep -v '^ *+' conftest.er1 >conftest.err 6769 rm -f conftest.er1 6770 cat conftest.err >&5 6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6772 (exit $ac_status); } && 6773 { ac_try='test -z "$ac_cxx_werror_flag" 6774 || test ! -s conftest.err' 6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6776 (eval $ac_try) 2>&5 6777 ac_status=$? 6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6779 (exit $ac_status); }; } && 6780 { ac_try='test -s conftest.$ac_objext' 6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6782 (eval $ac_try) 2>&5 6783 ac_status=$? 6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6785 (exit $ac_status); }; }; then 6786 : 6787else 6788 echo "$as_me: failed program was:" >&5 6789sed 's/^/| /' conftest.$ac_ext >&5 6790 6791continue 6792fi 6793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6794 cat >conftest.$ac_ext <<_ACEOF 6795/* confdefs.h. */ 6796_ACEOF 6797cat confdefs.h >>conftest.$ac_ext 6798cat >>conftest.$ac_ext <<_ACEOF 6799/* end confdefs.h. */ 6800$ac_declaration 6801int 6802main () 6803{ 6804exit (42); 6805 ; 6806 return 0; 6807} 6808_ACEOF 6809rm -f conftest.$ac_objext 6810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6811 (eval $ac_compile) 2>conftest.er1 6812 ac_status=$? 6813 grep -v '^ *+' conftest.er1 >conftest.err 6814 rm -f conftest.er1 6815 cat conftest.err >&5 6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6817 (exit $ac_status); } && 6818 { ac_try='test -z "$ac_cxx_werror_flag" 6819 || test ! -s conftest.err' 6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6821 (eval $ac_try) 2>&5 6822 ac_status=$? 6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6824 (exit $ac_status); }; } && 6825 { ac_try='test -s conftest.$ac_objext' 6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6827 (eval $ac_try) 2>&5 6828 ac_status=$? 6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6830 (exit $ac_status); }; }; then 6831 break 6832else 6833 echo "$as_me: failed program was:" >&5 6834sed 's/^/| /' conftest.$ac_ext >&5 6835 6836fi 6837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6838done 6839rm -f conftest* 6840if test -n "$ac_declaration"; then 6841 echo '#ifdef __cplusplus' >>confdefs.h 6842 echo $ac_declaration >>confdefs.h 6843 echo '#endif' >>confdefs.h 6844fi 6845 6846ac_ext=cc 6847ac_cpp='$CXXCPP $CPPFLAGS' 6848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6851 6852depcc="$CXX" am_compiler_list= 6853 6854echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6855echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 6856if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6857 echo $ECHO_N "(cached) $ECHO_C" >&6 6858else 6859 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6860 # We make a subdir and do the tests there. Otherwise we can end up 6861 # making bogus files that we don't know about and never remove. For 6862 # instance it was reported that on HP-UX the gcc test will end up 6863 # making a dummy file named `D' -- because `-MD' means `put the output 6864 # in D'. 6865 mkdir conftest.dir 6866 # Copy depcomp to subdir because otherwise we won't find it if we're 6867 # using a relative directory. 6868 cp "$am_depcomp" conftest.dir 6869 cd conftest.dir 6870 # We will build objects and dependencies in a subdirectory because 6871 # it helps to detect inapplicable dependency modes. For instance 6872 # both Tru64's cc and ICC support -MD to output dependencies as a 6873 # side effect of compilation, but ICC will put the dependencies in 6874 # the current directory while Tru64 will put them in the object 6875 # directory. 6876 mkdir sub 6877 6878 am_cv_CXX_dependencies_compiler_type=none 6879 if test "$am_compiler_list" = ""; then 6880 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6881 fi 6882 for depmode in $am_compiler_list; do 6883 # Setup a source with many dependencies, because some compilers 6884 # like to wrap large dependency lists on column 80 (with \), and 6885 # we should not choose a depcomp mode which is confused by this. 6886 # 6887 # We need to recreate these files for each test, as the compiler may 6888 # overwrite some of them when testing with obscure command lines. 6889 # This happens at least with the AIX C compiler. 6890 : > sub/conftest.c 6891 for i in 1 2 3 4 5 6; do 6892 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6893 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6894 # Solaris 8's {/usr,}/bin/sh. 6895 touch sub/conftst$i.h 6896 done 6897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6898 6899 case $depmode in 6900 nosideeffect) 6901 # after this tag, mechanisms are not by side-effect, so they'll 6902 # only be used when explicitly requested 6903 if test "x$enable_dependency_tracking" = xyes; then 6904 continue 6905 else 6906 break 6907 fi 6908 ;; 6909 none) break ;; 6910 esac 6911 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6912 # mode. It turns out that the SunPro C++ compiler does not properly 6913 # handle `-M -o', and we need to detect this. 6914 if depmode=$depmode \ 6915 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6917 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6918 >/dev/null 2>conftest.err && 6919 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6920 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6921 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6922 # icc doesn't choke on unknown options, it will just issue warnings 6923 # or remarks (even with -Werror). So we grep stderr for any message 6924 # that says an option was ignored or not supported. 6925 # When given -MP, icc 7.0 and 7.1 complain thusly: 6926 # icc: Command line warning: ignoring option '-M'; no argument required 6927 # The diagnosis changed in icc 8.0: 6928 # icc: Command line remark: option '-MP' not supported 6929 if (grep 'ignoring option' conftest.err || 6930 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6931 am_cv_CXX_dependencies_compiler_type=$depmode 6932 break 6933 fi 6934 fi 6935 done 6936 6937 cd .. 6938 rm -rf conftest.dir 6939else 6940 am_cv_CXX_dependencies_compiler_type=none 6941fi 6942 6943fi 6944echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6945echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 6946CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6947 6948 6949 6950if 6951 test "x$enable_dependency_tracking" != xno \ 6952 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6953 am__fastdepCXX_TRUE= 6954 am__fastdepCXX_FALSE='#' 6955else 6956 am__fastdepCXX_TRUE='#' 6957 am__fastdepCXX_FALSE= 6958fi 6959 6960 6961 6962 6963if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6964 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6965 (test "X$CXX" != "Xg++"))) ; then 6966 ac_ext=cc 6967ac_cpp='$CXXCPP $CPPFLAGS' 6968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6971echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6972echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6973if test -z "$CXXCPP"; then 6974 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6975 echo $ECHO_N "(cached) $ECHO_C" >&6 6976else 6977 # Double quotes because CXXCPP needs to be expanded 6978 for CXXCPP in "$CXX -E" "/lib/cpp" 6979 do 6980 ac_preproc_ok=false 6981for ac_cxx_preproc_warn_flag in '' yes 6982do 6983 # Use a header file that comes with gcc, so configuring glibc 6984 # with a fresh cross-compiler works. 6985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6986 # <limits.h> exists even on freestanding compilers. 6987 # On the NeXT, cc -E runs the code through the compiler's parser, 6988 # not just through cpp. "Syntax error" is here to catch this case. 6989 cat >conftest.$ac_ext <<_ACEOF 6990/* confdefs.h. */ 6991_ACEOF 6992cat confdefs.h >>conftest.$ac_ext 6993cat >>conftest.$ac_ext <<_ACEOF 6994/* end confdefs.h. */ 6995@%:@ifdef __STDC__ 6996@%:@ include <limits.h> 6997@%:@else 6998@%:@ include <assert.h> 6999@%:@endif 7000 Syntax error 7001_ACEOF 7002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7004 ac_status=$? 7005 grep -v '^ *+' conftest.er1 >conftest.err 7006 rm -f conftest.er1 7007 cat conftest.err >&5 7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7009 (exit $ac_status); } >/dev/null; then 7010 if test -s conftest.err; then 7011 ac_cpp_err=$ac_cxx_preproc_warn_flag 7012 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7013 else 7014 ac_cpp_err= 7015 fi 7016else 7017 ac_cpp_err=yes 7018fi 7019if test -z "$ac_cpp_err"; then 7020 : 7021else 7022 echo "$as_me: failed program was:" >&5 7023sed 's/^/| /' conftest.$ac_ext >&5 7024 7025 # Broken: fails on valid input. 7026continue 7027fi 7028rm -f conftest.err conftest.$ac_ext 7029 7030 # OK, works on sane cases. Now check whether non-existent headers 7031 # can be detected and how. 7032 cat >conftest.$ac_ext <<_ACEOF 7033/* confdefs.h. */ 7034_ACEOF 7035cat confdefs.h >>conftest.$ac_ext 7036cat >>conftest.$ac_ext <<_ACEOF 7037/* end confdefs.h. */ 7038@%:@include <ac_nonexistent.h> 7039_ACEOF 7040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7042 ac_status=$? 7043 grep -v '^ *+' conftest.er1 >conftest.err 7044 rm -f conftest.er1 7045 cat conftest.err >&5 7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7047 (exit $ac_status); } >/dev/null; then 7048 if test -s conftest.err; then 7049 ac_cpp_err=$ac_cxx_preproc_warn_flag 7050 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7051 else 7052 ac_cpp_err= 7053 fi 7054else 7055 ac_cpp_err=yes 7056fi 7057if test -z "$ac_cpp_err"; then 7058 # Broken: success on invalid input. 7059continue 7060else 7061 echo "$as_me: failed program was:" >&5 7062sed 's/^/| /' conftest.$ac_ext >&5 7063 7064 # Passes both tests. 7065ac_preproc_ok=: 7066break 7067fi 7068rm -f conftest.err conftest.$ac_ext 7069 7070done 7071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7072rm -f conftest.err conftest.$ac_ext 7073if $ac_preproc_ok; then 7074 break 7075fi 7076 7077 done 7078 ac_cv_prog_CXXCPP=$CXXCPP 7079 7080fi 7081 CXXCPP=$ac_cv_prog_CXXCPP 7082else 7083 ac_cv_prog_CXXCPP=$CXXCPP 7084fi 7085echo "$as_me:$LINENO: result: $CXXCPP" >&5 7086echo "${ECHO_T}$CXXCPP" >&6 7087ac_preproc_ok=false 7088for ac_cxx_preproc_warn_flag in '' yes 7089do 7090 # Use a header file that comes with gcc, so configuring glibc 7091 # with a fresh cross-compiler works. 7092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7093 # <limits.h> exists even on freestanding compilers. 7094 # On the NeXT, cc -E runs the code through the compiler's parser, 7095 # not just through cpp. "Syntax error" is here to catch this case. 7096 cat >conftest.$ac_ext <<_ACEOF 7097/* confdefs.h. */ 7098_ACEOF 7099cat confdefs.h >>conftest.$ac_ext 7100cat >>conftest.$ac_ext <<_ACEOF 7101/* end confdefs.h. */ 7102@%:@ifdef __STDC__ 7103@%:@ include <limits.h> 7104@%:@else 7105@%:@ include <assert.h> 7106@%:@endif 7107 Syntax error 7108_ACEOF 7109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7111 ac_status=$? 7112 grep -v '^ *+' conftest.er1 >conftest.err 7113 rm -f conftest.er1 7114 cat conftest.err >&5 7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7116 (exit $ac_status); } >/dev/null; then 7117 if test -s conftest.err; then 7118 ac_cpp_err=$ac_cxx_preproc_warn_flag 7119 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7120 else 7121 ac_cpp_err= 7122 fi 7123else 7124 ac_cpp_err=yes 7125fi 7126if test -z "$ac_cpp_err"; then 7127 : 7128else 7129 echo "$as_me: failed program was:" >&5 7130sed 's/^/| /' conftest.$ac_ext >&5 7131 7132 # Broken: fails on valid input. 7133continue 7134fi 7135rm -f conftest.err conftest.$ac_ext 7136 7137 # OK, works on sane cases. Now check whether non-existent headers 7138 # can be detected and how. 7139 cat >conftest.$ac_ext <<_ACEOF 7140/* confdefs.h. */ 7141_ACEOF 7142cat confdefs.h >>conftest.$ac_ext 7143cat >>conftest.$ac_ext <<_ACEOF 7144/* end confdefs.h. */ 7145@%:@include <ac_nonexistent.h> 7146_ACEOF 7147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7149 ac_status=$? 7150 grep -v '^ *+' conftest.er1 >conftest.err 7151 rm -f conftest.er1 7152 cat conftest.err >&5 7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7154 (exit $ac_status); } >/dev/null; then 7155 if test -s conftest.err; then 7156 ac_cpp_err=$ac_cxx_preproc_warn_flag 7157 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 7158 else 7159 ac_cpp_err= 7160 fi 7161else 7162 ac_cpp_err=yes 7163fi 7164if test -z "$ac_cpp_err"; then 7165 # Broken: success on invalid input. 7166continue 7167else 7168 echo "$as_me: failed program was:" >&5 7169sed 's/^/| /' conftest.$ac_ext >&5 7170 7171 # Passes both tests. 7172ac_preproc_ok=: 7173break 7174fi 7175rm -f conftest.err conftest.$ac_ext 7176 7177done 7178# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7179rm -f conftest.err conftest.$ac_ext 7180if $ac_preproc_ok; then 7181 : 7182else 7183 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7184See \`config.log' for more details." >&5 7185echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7186See \`config.log' for more details." >&2;} 7187 { (exit 1); exit 1; }; } 7188fi 7189 7190ac_ext=cc 7191ac_cpp='$CXXCPP $CPPFLAGS' 7192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7195 7196fi 7197 7198 7199ac_ext=f 7200ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7201ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7202ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7203if test -n "$ac_tool_prefix"; then 7204 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 7205 do 7206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7207set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7208echo "$as_me:$LINENO: checking for $ac_word" >&5 7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7210if test "${ac_cv_prog_F77+set}" = set; then 7211 echo $ECHO_N "(cached) $ECHO_C" >&6 7212else 7213 if test -n "$F77"; then 7214 ac_cv_prog_F77="$F77" # Let the user override the test. 7215else 7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217for as_dir in $PATH 7218do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7223 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227done 7228done 7229 7230fi 7231fi 7232F77=$ac_cv_prog_F77 7233if test -n "$F77"; then 7234 echo "$as_me:$LINENO: result: $F77" >&5 7235echo "${ECHO_T}$F77" >&6 7236else 7237 echo "$as_me:$LINENO: result: no" >&5 7238echo "${ECHO_T}no" >&6 7239fi 7240 7241 test -n "$F77" && break 7242 done 7243fi 7244if test -z "$F77"; then 7245 ac_ct_F77=$F77 7246 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 7247do 7248 # Extract the first word of "$ac_prog", so it can be a program name with args. 7249set dummy $ac_prog; ac_word=$2 7250echo "$as_me:$LINENO: checking for $ac_word" >&5 7251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7252if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 7253 echo $ECHO_N "(cached) $ECHO_C" >&6 7254else 7255 if test -n "$ac_ct_F77"; then 7256 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 7257else 7258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7259for as_dir in $PATH 7260do 7261 IFS=$as_save_IFS 7262 test -z "$as_dir" && as_dir=. 7263 for ac_exec_ext in '' $ac_executable_extensions; do 7264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7265 ac_cv_prog_ac_ct_F77="$ac_prog" 7266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7267 break 2 7268 fi 7269done 7270done 7271 7272fi 7273fi 7274ac_ct_F77=$ac_cv_prog_ac_ct_F77 7275if test -n "$ac_ct_F77"; then 7276 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 7277echo "${ECHO_T}$ac_ct_F77" >&6 7278else 7279 echo "$as_me:$LINENO: result: no" >&5 7280echo "${ECHO_T}no" >&6 7281fi 7282 7283 test -n "$ac_ct_F77" && break 7284done 7285 7286 F77=$ac_ct_F77 7287fi 7288 7289 7290# Provide some information about the compiler. 7291echo "$as_me:__oline__:" \ 7292 "checking for Fortran 77 compiler version" >&5 7293ac_compiler=`set X $ac_compile; echo $2` 7294{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 7295 (eval $ac_compiler --version </dev/null >&5) 2>&5 7296 ac_status=$? 7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7298 (exit $ac_status); } 7299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 7300 (eval $ac_compiler -v </dev/null >&5) 2>&5 7301 ac_status=$? 7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7303 (exit $ac_status); } 7304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 7305 (eval $ac_compiler -V </dev/null >&5) 2>&5 7306 ac_status=$? 7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7308 (exit $ac_status); } 7309rm -f a.out 7310 7311# If we don't use `.F' as extension, the preprocessor is not run on the 7312# input file. (Note that this only needs to work for GNU compilers.) 7313ac_save_ext=$ac_ext 7314ac_ext=F 7315echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 7316echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 7317if test "${ac_cv_f77_compiler_gnu+set}" = set; then 7318 echo $ECHO_N "(cached) $ECHO_C" >&6 7319else 7320 cat >conftest.$ac_ext <<_ACEOF 7321 program main 7322#ifndef __GNUC__ 7323 choke me 7324#endif 7325 7326 end 7327_ACEOF 7328rm -f conftest.$ac_objext 7329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7330 (eval $ac_compile) 2>conftest.er1 7331 ac_status=$? 7332 grep -v '^ *+' conftest.er1 >conftest.err 7333 rm -f conftest.er1 7334 cat conftest.err >&5 7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7336 (exit $ac_status); } && 7337 { ac_try='test -z "$ac_f77_werror_flag" 7338 || test ! -s conftest.err' 7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7340 (eval $ac_try) 2>&5 7341 ac_status=$? 7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7343 (exit $ac_status); }; } && 7344 { ac_try='test -s conftest.$ac_objext' 7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7346 (eval $ac_try) 2>&5 7347 ac_status=$? 7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7349 (exit $ac_status); }; }; then 7350 ac_compiler_gnu=yes 7351else 7352 echo "$as_me: failed program was:" >&5 7353sed 's/^/| /' conftest.$ac_ext >&5 7354 7355ac_compiler_gnu=no 7356fi 7357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7358ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7359 7360fi 7361echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7362echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 7363ac_ext=$ac_save_ext 7364ac_test_FFLAGS=${FFLAGS+set} 7365ac_save_FFLAGS=$FFLAGS 7366FFLAGS= 7367echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7368echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 7369if test "${ac_cv_prog_f77_g+set}" = set; then 7370 echo $ECHO_N "(cached) $ECHO_C" >&6 7371else 7372 FFLAGS=-g 7373cat >conftest.$ac_ext <<_ACEOF 7374 program main 7375 7376 end 7377_ACEOF 7378rm -f conftest.$ac_objext 7379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7380 (eval $ac_compile) 2>conftest.er1 7381 ac_status=$? 7382 grep -v '^ *+' conftest.er1 >conftest.err 7383 rm -f conftest.er1 7384 cat conftest.err >&5 7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7386 (exit $ac_status); } && 7387 { ac_try='test -z "$ac_f77_werror_flag" 7388 || test ! -s conftest.err' 7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7390 (eval $ac_try) 2>&5 7391 ac_status=$? 7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7393 (exit $ac_status); }; } && 7394 { ac_try='test -s conftest.$ac_objext' 7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7396 (eval $ac_try) 2>&5 7397 ac_status=$? 7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7399 (exit $ac_status); }; }; then 7400 ac_cv_prog_f77_g=yes 7401else 7402 echo "$as_me: failed program was:" >&5 7403sed 's/^/| /' conftest.$ac_ext >&5 7404 7405ac_cv_prog_f77_g=no 7406fi 7407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7408 7409fi 7410echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7411echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 7412if test "$ac_test_FFLAGS" = set; then 7413 FFLAGS=$ac_save_FFLAGS 7414elif test $ac_cv_prog_f77_g = yes; then 7415 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7416 FFLAGS="-g -O2" 7417 else 7418 FFLAGS="-g" 7419 fi 7420else 7421 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7422 FFLAGS="-O2" 7423 else 7424 FFLAGS= 7425 fi 7426fi 7427 7428G77=`test $ac_compiler_gnu = yes && echo yes` 7429ac_ext=c 7430ac_cpp='$CPP $CPPFLAGS' 7431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7433ac_compiler_gnu=$ac_cv_c_compiler_gnu 7434 7435 7436 7437# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7438 7439# find the maximum length of command line arguments 7440echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7441echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 7442if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7443 echo $ECHO_N "(cached) $ECHO_C" >&6 7444else 7445 i=0 7446 teststring="ABCD" 7447 7448 case $build_os in 7449 msdosdjgpp*) 7450 # On DJGPP, this test can blow up pretty badly due to problems in libc 7451 # (any single argument exceeding 2000 bytes causes a buffer overrun 7452 # during glob expansion). Even if it were fixed, the result of this 7453 # check would be larger than it should be. 7454 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7455 ;; 7456 7457 gnu*) 7458 # Under GNU Hurd, this test is not required because there is 7459 # no limit to the length of command line arguments. 7460 # Libtool will interpret -1 as no limit whatsoever 7461 lt_cv_sys_max_cmd_len=-1; 7462 ;; 7463 7464 cygwin* | mingw*) 7465 # On Win9x/ME, this test blows up -- it succeeds, but takes 7466 # about 5 minutes as the teststring grows exponentially. 7467 # Worse, since 9x/ME are not pre-emptively multitasking, 7468 # you end up with a "frozen" computer, even though with patience 7469 # the test eventually succeeds (with a max line length of 256k). 7470 # Instead, let's just punt: use the minimum linelength reported by 7471 # all of the supported platforms: 8192 (on NT/2K/XP). 7472 lt_cv_sys_max_cmd_len=8192; 7473 ;; 7474 7475 amigaos*) 7476 # On AmigaOS with pdksh, this test takes hours, literally. 7477 # So we just punt and use a minimum line length of 8192. 7478 lt_cv_sys_max_cmd_len=8192; 7479 ;; 7480 7481 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7482 # This has been around since 386BSD, at least. Likely further. 7483 if test -x /sbin/sysctl; then 7484 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7485 elif test -x /usr/sbin/sysctl; then 7486 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7487 else 7488 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7489 fi 7490 # And add a safety zone 7491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7493 ;; 7494 osf*) 7495 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7496 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7497 # nice to cause kernel panics so lets avoid the loop below. 7498 # First set a reasonable default. 7499 lt_cv_sys_max_cmd_len=16384 7500 # 7501 if test -x /sbin/sysconfig; then 7502 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7503 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7504 esac 7505 fi 7506 ;; 7507 *) 7508 # If test is not a shell built-in, we'll probably end up computing a 7509 # maximum length that is only half of the actual maximum length, but 7510 # we can't tell. 7511 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7512 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7513 = "XX$teststring") >/dev/null 2>&1 && 7514 new_result=`expr "X$teststring" : ".*" 2>&1` && 7515 lt_cv_sys_max_cmd_len=$new_result && 7516 test $i != 17 # 1/2 MB should be enough 7517 do 7518 i=`expr $i + 1` 7519 teststring=$teststring$teststring 7520 done 7521 teststring= 7522 # Add a significant safety factor because C++ compilers can tack on massive 7523 # amounts of additional arguments before passing them to the linker. 7524 # It appears as though 1/2 is a usable value. 7525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7526 ;; 7527 esac 7528 7529fi 7530 7531if test -n $lt_cv_sys_max_cmd_len ; then 7532 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7533echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 7534else 7535 echo "$as_me:$LINENO: result: none" >&5 7536echo "${ECHO_T}none" >&6 7537fi 7538 7539 7540 7541 7542# Check for command to grab the raw symbol name followed by C symbol from nm. 7543echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7544echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 7545if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7546 echo $ECHO_N "(cached) $ECHO_C" >&6 7547else 7548 7549# These are sane defaults that work on at least a few old systems. 7550# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7551 7552# Character class describing NM global symbol codes. 7553symcode='[BCDEGRST]' 7554 7555# Regexp to match symbols that can be accessed directly from C. 7556sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7557 7558# Transform an extracted symbol line into a proper C declaration 7559lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7560 7561# Transform an extracted symbol line into symbol name and symbol address 7562lt_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'" 7563 7564# Define system-specific variables. 7565case $host_os in 7566aix*) 7567 symcode='[BCDT]' 7568 ;; 7569cygwin* | mingw* | pw32*) 7570 symcode='[ABCDGISTW]' 7571 ;; 7572hpux*) # Its linker distinguishes data from code symbols 7573 if test "$host_cpu" = ia64; then 7574 symcode='[ABCDEGRST]' 7575 fi 7576 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7577 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'" 7578 ;; 7579linux*) 7580 if test "$host_cpu" = ia64; then 7581 symcode='[ABCDGIRSTW]' 7582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7583 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'" 7584 fi 7585 ;; 7586irix* | nonstopux*) 7587 symcode='[BCDEGRST]' 7588 ;; 7589osf*) 7590 symcode='[BCDEGQRST]' 7591 ;; 7592solaris* | sysv5*) 7593 symcode='[BDRT]' 7594 ;; 7595sysv4) 7596 symcode='[DFNSTU]' 7597 ;; 7598esac 7599 7600# Handle CRLF in mingw tool chain 7601opt_cr= 7602case $build_os in 7603mingw*) 7604 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7605 ;; 7606esac 7607 7608# If we're using GNU nm, then use its standard symbol codes. 7609case `$NM -V 2>&1` in 7610*GNU* | *'with BFD'*) 7611 symcode='[ABCDGIRSTW]' ;; 7612esac 7613 7614# Try without a prefix undercore, then with it. 7615for ac_symprfx in "" "_"; do 7616 7617 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7618 symxfrm="\\1 $ac_symprfx\\2 \\2" 7619 7620 # Write the raw and C identifiers. 7621 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7622 7623 # Check to see that the pipe works correctly. 7624 pipe_works=no 7625 7626 rm -f conftest* 7627 cat > conftest.$ac_ext <<EOF 7628#ifdef __cplusplus 7629extern "C" { 7630#endif 7631char nm_test_var; 7632void nm_test_func(){} 7633#ifdef __cplusplus 7634} 7635#endif 7636int main(){nm_test_var='a';nm_test_func();return(0);} 7637EOF 7638 7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7640 (eval $ac_compile) 2>&5 7641 ac_status=$? 7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7643 (exit $ac_status); }; then 7644 # Now try to grab the symbols. 7645 nlist=conftest.nm 7646 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7647 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7648 ac_status=$? 7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7650 (exit $ac_status); } && test -s "$nlist"; then 7651 # Try sorting and uniquifying the output. 7652 if sort "$nlist" | uniq > "$nlist"T; then 7653 mv -f "$nlist"T "$nlist" 7654 else 7655 rm -f "$nlist"T 7656 fi 7657 7658 # Make sure that we snagged all the symbols we need. 7659 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7660 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7661 cat <<EOF > conftest.$ac_ext 7662#ifdef __cplusplus 7663extern "C" { 7664#endif 7665 7666EOF 7667 # Now generate the symbol file. 7668 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7669 7670 cat <<EOF >> conftest.$ac_ext 7671#if defined (__STDC__) && __STDC__ 7672# define lt_ptr_t void * 7673#else 7674# define lt_ptr_t char * 7675# define const 7676#endif 7677 7678/* The mapping between symbol names and symbols. */ 7679const struct { 7680 const char *name; 7681 lt_ptr_t address; 7682} 7683lt_preloaded_symbols[] = 7684{ 7685EOF 7686 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7687 cat <<\EOF >> conftest.$ac_ext 7688 {0, (lt_ptr_t) 0} 7689}; 7690 7691#ifdef __cplusplus 7692} 7693#endif 7694EOF 7695 # Now try linking the two files. 7696 mv conftest.$ac_objext conftstm.$ac_objext 7697 lt_save_LIBS="$LIBS" 7698 lt_save_CFLAGS="$CFLAGS" 7699 LIBS="conftstm.$ac_objext" 7700 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7702 (eval $ac_link) 2>&5 7703 ac_status=$? 7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7705 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7706 pipe_works=yes 7707 fi 7708 LIBS="$lt_save_LIBS" 7709 CFLAGS="$lt_save_CFLAGS" 7710 else 7711 echo "cannot find nm_test_func in $nlist" >&5 7712 fi 7713 else 7714 echo "cannot find nm_test_var in $nlist" >&5 7715 fi 7716 else 7717 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7718 fi 7719 else 7720 echo "$progname: failed program was:" >&5 7721 cat conftest.$ac_ext >&5 7722 fi 7723 rm -f conftest* conftst* 7724 7725 # Do not use the global_symbol_pipe unless it works. 7726 if test "$pipe_works" = yes; then 7727 break 7728 else 7729 lt_cv_sys_global_symbol_pipe= 7730 fi 7731done 7732 7733fi 7734 7735if test -z "$lt_cv_sys_global_symbol_pipe"; then 7736 lt_cv_sys_global_symbol_to_cdecl= 7737fi 7738if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7739 echo "$as_me:$LINENO: result: failed" >&5 7740echo "${ECHO_T}failed" >&6 7741else 7742 echo "$as_me:$LINENO: result: ok" >&5 7743echo "${ECHO_T}ok" >&6 7744fi 7745 7746echo "$as_me:$LINENO: checking for objdir" >&5 7747echo $ECHO_N "checking for objdir... $ECHO_C" >&6 7748if test "${lt_cv_objdir+set}" = set; then 7749 echo $ECHO_N "(cached) $ECHO_C" >&6 7750else 7751 rm -f .libs 2>/dev/null 7752mkdir .libs 2>/dev/null 7753if test -d .libs; then 7754 lt_cv_objdir=.libs 7755else 7756 # MS-DOS does not allow filenames that begin with a dot. 7757 lt_cv_objdir=_libs 7758fi 7759rmdir .libs 2>/dev/null 7760fi 7761echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7762echo "${ECHO_T}$lt_cv_objdir" >&6 7763objdir=$lt_cv_objdir 7764 7765 7766 7767 7768 7769case $host_os in 7770aix3*) 7771 # AIX sometimes has problems with the GCC collect2 program. For some 7772 # reason, if we set the COLLECT_NAMES environment variable, the problems 7773 # vanish in a puff of smoke. 7774 if test "X${COLLECT_NAMES+set}" != Xset; then 7775 COLLECT_NAMES= 7776 export COLLECT_NAMES 7777 fi 7778 ;; 7779esac 7780 7781# Sed substitution that helps us do robust quoting. It backslashifies 7782# metacharacters that are still active within double-quoted strings. 7783Xsed='sed -e 1s/^X//' 7784sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7785 7786# Same as above, but do not quote variable references. 7787double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7788 7789# Sed substitution to delay expansion of an escaped shell variable in a 7790# double_quote_subst'ed string. 7791delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7792 7793# Sed substitution to avoid accidental globbing in evaled expressions 7794no_glob_subst='s/\*/\\\*/g' 7795 7796# Constants: 7797rm="rm -f" 7798 7799# Global variables: 7800default_ofile=libtool 7801can_build_shared=yes 7802 7803# All known linkers require a `.a' archive for static linking (except MSVC, 7804# which needs '.lib'). 7805libext=a 7806ltmain="$ac_aux_dir/ltmain.sh" 7807ofile="$default_ofile" 7808with_gnu_ld="$lt_cv_prog_gnu_ld" 7809 7810if test -n "$ac_tool_prefix"; then 7811 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7812set dummy ${ac_tool_prefix}ar; ac_word=$2 7813echo "$as_me:$LINENO: checking for $ac_word" >&5 7814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7815if test "${ac_cv_prog_AR+set}" = set; then 7816 echo $ECHO_N "(cached) $ECHO_C" >&6 7817else 7818 if test -n "$AR"; then 7819 ac_cv_prog_AR="$AR" # Let the user override the test. 7820else 7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7822for as_dir in $PATH 7823do 7824 IFS=$as_save_IFS 7825 test -z "$as_dir" && as_dir=. 7826 for ac_exec_ext in '' $ac_executable_extensions; do 7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7828 ac_cv_prog_AR="${ac_tool_prefix}ar" 7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7830 break 2 7831 fi 7832done 7833done 7834 7835fi 7836fi 7837AR=$ac_cv_prog_AR 7838if test -n "$AR"; then 7839 echo "$as_me:$LINENO: result: $AR" >&5 7840echo "${ECHO_T}$AR" >&6 7841else 7842 echo "$as_me:$LINENO: result: no" >&5 7843echo "${ECHO_T}no" >&6 7844fi 7845 7846fi 7847if test -z "$ac_cv_prog_AR"; then 7848 ac_ct_AR=$AR 7849 # Extract the first word of "ar", so it can be a program name with args. 7850set dummy ar; ac_word=$2 7851echo "$as_me:$LINENO: checking for $ac_word" >&5 7852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7853if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7854 echo $ECHO_N "(cached) $ECHO_C" >&6 7855else 7856 if test -n "$ac_ct_AR"; then 7857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7858else 7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860for as_dir in $PATH 7861do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7866 ac_cv_prog_ac_ct_AR="ar" 7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871done 7872 7873 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 7874fi 7875fi 7876ac_ct_AR=$ac_cv_prog_ac_ct_AR 7877if test -n "$ac_ct_AR"; then 7878 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7879echo "${ECHO_T}$ac_ct_AR" >&6 7880else 7881 echo "$as_me:$LINENO: result: no" >&5 7882echo "${ECHO_T}no" >&6 7883fi 7884 7885 AR=$ac_ct_AR 7886else 7887 AR="$ac_cv_prog_AR" 7888fi 7889 7890if test -n "$ac_tool_prefix"; then 7891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7892set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7893echo "$as_me:$LINENO: checking for $ac_word" >&5 7894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7895if test "${ac_cv_prog_RANLIB+set}" = set; then 7896 echo $ECHO_N "(cached) $ECHO_C" >&6 7897else 7898 if test -n "$RANLIB"; then 7899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7900else 7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7902for as_dir in $PATH 7903do 7904 IFS=$as_save_IFS 7905 test -z "$as_dir" && as_dir=. 7906 for ac_exec_ext in '' $ac_executable_extensions; do 7907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7910 break 2 7911 fi 7912done 7913done 7914 7915fi 7916fi 7917RANLIB=$ac_cv_prog_RANLIB 7918if test -n "$RANLIB"; then 7919 echo "$as_me:$LINENO: result: $RANLIB" >&5 7920echo "${ECHO_T}$RANLIB" >&6 7921else 7922 echo "$as_me:$LINENO: result: no" >&5 7923echo "${ECHO_T}no" >&6 7924fi 7925 7926fi 7927if test -z "$ac_cv_prog_RANLIB"; then 7928 ac_ct_RANLIB=$RANLIB 7929 # Extract the first word of "ranlib", so it can be a program name with args. 7930set dummy ranlib; ac_word=$2 7931echo "$as_me:$LINENO: checking for $ac_word" >&5 7932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7933if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7934 echo $ECHO_N "(cached) $ECHO_C" >&6 7935else 7936 if test -n "$ac_ct_RANLIB"; then 7937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7938else 7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7940for as_dir in $PATH 7941do 7942 IFS=$as_save_IFS 7943 test -z "$as_dir" && as_dir=. 7944 for ac_exec_ext in '' $ac_executable_extensions; do 7945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7946 ac_cv_prog_ac_ct_RANLIB="ranlib" 7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7948 break 2 7949 fi 7950done 7951done 7952 7953 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 7954fi 7955fi 7956ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7957if test -n "$ac_ct_RANLIB"; then 7958 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7959echo "${ECHO_T}$ac_ct_RANLIB" >&6 7960else 7961 echo "$as_me:$LINENO: result: no" >&5 7962echo "${ECHO_T}no" >&6 7963fi 7964 7965 RANLIB=$ac_ct_RANLIB 7966else 7967 RANLIB="$ac_cv_prog_RANLIB" 7968fi 7969 7970if test -n "$ac_tool_prefix"; then 7971 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7972set dummy ${ac_tool_prefix}strip; ac_word=$2 7973echo "$as_me:$LINENO: checking for $ac_word" >&5 7974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7975if test "${ac_cv_prog_STRIP+set}" = set; then 7976 echo $ECHO_N "(cached) $ECHO_C" >&6 7977else 7978 if test -n "$STRIP"; then 7979 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7980else 7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7982for as_dir in $PATH 7983do 7984 IFS=$as_save_IFS 7985 test -z "$as_dir" && as_dir=. 7986 for ac_exec_ext in '' $ac_executable_extensions; do 7987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7988 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7990 break 2 7991 fi 7992done 7993done 7994 7995fi 7996fi 7997STRIP=$ac_cv_prog_STRIP 7998if test -n "$STRIP"; then 7999 echo "$as_me:$LINENO: result: $STRIP" >&5 8000echo "${ECHO_T}$STRIP" >&6 8001else 8002 echo "$as_me:$LINENO: result: no" >&5 8003echo "${ECHO_T}no" >&6 8004fi 8005 8006fi 8007if test -z "$ac_cv_prog_STRIP"; then 8008 ac_ct_STRIP=$STRIP 8009 # Extract the first word of "strip", so it can be a program name with args. 8010set dummy strip; ac_word=$2 8011echo "$as_me:$LINENO: checking for $ac_word" >&5 8012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8013if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8014 echo $ECHO_N "(cached) $ECHO_C" >&6 8015else 8016 if test -n "$ac_ct_STRIP"; then 8017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8018else 8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8020for as_dir in $PATH 8021do 8022 IFS=$as_save_IFS 8023 test -z "$as_dir" && as_dir=. 8024 for ac_exec_ext in '' $ac_executable_extensions; do 8025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8026 ac_cv_prog_ac_ct_STRIP="strip" 8027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8028 break 2 8029 fi 8030done 8031done 8032 8033 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 8034fi 8035fi 8036ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8037if test -n "$ac_ct_STRIP"; then 8038 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8039echo "${ECHO_T}$ac_ct_STRIP" >&6 8040else 8041 echo "$as_me:$LINENO: result: no" >&5 8042echo "${ECHO_T}no" >&6 8043fi 8044 8045 STRIP=$ac_ct_STRIP 8046else 8047 STRIP="$ac_cv_prog_STRIP" 8048fi 8049 8050 8051old_CC="$CC" 8052old_CFLAGS="$CFLAGS" 8053 8054# Set sane defaults for various variables 8055test -z "$AR" && AR=ar 8056test -z "$AR_FLAGS" && AR_FLAGS=cru 8057test -z "$AS" && AS=as 8058test -z "$CC" && CC=cc 8059test -z "$LTCC" && LTCC=$CC 8060test -z "$DLLTOOL" && DLLTOOL=dlltool 8061test -z "$LD" && LD=ld 8062test -z "$LN_S" && LN_S="ln -s" 8063test -z "$MAGIC_CMD" && MAGIC_CMD=file 8064test -z "$NM" && NM=nm 8065test -z "$SED" && SED=sed 8066test -z "$OBJDUMP" && OBJDUMP=objdump 8067test -z "$RANLIB" && RANLIB=: 8068test -z "$STRIP" && STRIP=: 8069test -z "$ac_objext" && ac_objext=o 8070 8071# Determine commands to create old-style static archives. 8072old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8073old_postinstall_cmds='chmod 644 $oldlib' 8074old_postuninstall_cmds= 8075 8076if test -n "$RANLIB"; then 8077 case $host_os in 8078 openbsd*) 8079 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8080 ;; 8081 *) 8082 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8083 ;; 8084 esac 8085 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8086fi 8087 8088for cc_temp in $compiler""; do 8089 case $cc_temp in 8090 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8091 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8092 \-*) ;; 8093 *) break;; 8094 esac 8095done 8096cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8097 8098 8099# Only perform the check for file, if the check method requires it 8100case $deplibs_check_method in 8101file_magic*) 8102 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8103 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8104echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 8105if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8106 echo $ECHO_N "(cached) $ECHO_C" >&6 8107else 8108 case $MAGIC_CMD in 8109[\\/*] | ?:[\\/]*) 8110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8111 ;; 8112*) 8113 lt_save_MAGIC_CMD="$MAGIC_CMD" 8114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8116 for ac_dir in $ac_dummy; do 8117 IFS="$lt_save_ifs" 8118 test -z "$ac_dir" && ac_dir=. 8119 if test -f $ac_dir/${ac_tool_prefix}file; then 8120 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8121 if test -n "$file_magic_test_file"; then 8122 case $deplibs_check_method in 8123 "file_magic "*) 8124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8127 $EGREP "$file_magic_regex" > /dev/null; then 8128 : 8129 else 8130 cat <<EOF 1>&2 8131 8132*** Warning: the command libtool uses to detect shared libraries, 8133*** $file_magic_cmd, produces output that libtool cannot recognize. 8134*** The result is that libtool may fail to recognize shared libraries 8135*** as such. This will affect the creation of libtool libraries that 8136*** depend on shared libraries, but programs linked with such libtool 8137*** libraries will work regardless of this problem. Nevertheless, you 8138*** may want to report the problem to your system manager and/or to 8139*** bug-libtool@gnu.org 8140 8141EOF 8142 fi ;; 8143 esac 8144 fi 8145 break 8146 fi 8147 done 8148 IFS="$lt_save_ifs" 8149 MAGIC_CMD="$lt_save_MAGIC_CMD" 8150 ;; 8151esac 8152fi 8153 8154MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8155if test -n "$MAGIC_CMD"; then 8156 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8157echo "${ECHO_T}$MAGIC_CMD" >&6 8158else 8159 echo "$as_me:$LINENO: result: no" >&5 8160echo "${ECHO_T}no" >&6 8161fi 8162 8163if test -z "$lt_cv_path_MAGIC_CMD"; then 8164 if test -n "$ac_tool_prefix"; then 8165 echo "$as_me:$LINENO: checking for file" >&5 8166echo $ECHO_N "checking for file... $ECHO_C" >&6 8167if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8168 echo $ECHO_N "(cached) $ECHO_C" >&6 8169else 8170 case $MAGIC_CMD in 8171[\\/*] | ?:[\\/]*) 8172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8173 ;; 8174*) 8175 lt_save_MAGIC_CMD="$MAGIC_CMD" 8176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8178 for ac_dir in $ac_dummy; do 8179 IFS="$lt_save_ifs" 8180 test -z "$ac_dir" && ac_dir=. 8181 if test -f $ac_dir/file; then 8182 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8183 if test -n "$file_magic_test_file"; then 8184 case $deplibs_check_method in 8185 "file_magic "*) 8186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8189 $EGREP "$file_magic_regex" > /dev/null; then 8190 : 8191 else 8192 cat <<EOF 1>&2 8193 8194*** Warning: the command libtool uses to detect shared libraries, 8195*** $file_magic_cmd, produces output that libtool cannot recognize. 8196*** The result is that libtool may fail to recognize shared libraries 8197*** as such. This will affect the creation of libtool libraries that 8198*** depend on shared libraries, but programs linked with such libtool 8199*** libraries will work regardless of this problem. Nevertheless, you 8200*** may want to report the problem to your system manager and/or to 8201*** bug-libtool@gnu.org 8202 8203EOF 8204 fi ;; 8205 esac 8206 fi 8207 break 8208 fi 8209 done 8210 IFS="$lt_save_ifs" 8211 MAGIC_CMD="$lt_save_MAGIC_CMD" 8212 ;; 8213esac 8214fi 8215 8216MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8217if test -n "$MAGIC_CMD"; then 8218 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8219echo "${ECHO_T}$MAGIC_CMD" >&6 8220else 8221 echo "$as_me:$LINENO: result: no" >&5 8222echo "${ECHO_T}no" >&6 8223fi 8224 8225 else 8226 MAGIC_CMD=: 8227 fi 8228fi 8229 8230 fi 8231 ;; 8232esac 8233 8234enable_dlopen=no 8235enable_win32_dll=no 8236 8237# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8238if test "${enable_libtool_lock+set}" = set; then 8239 enableval="$enable_libtool_lock" 8240 8241fi; 8242test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8243 8244 8245# Check whether --with-pic or --without-pic was given. 8246if test "${with_pic+set}" = set; then 8247 withval="$with_pic" 8248 pic_mode="$withval" 8249else 8250 pic_mode=default 8251fi; 8252test -z "$pic_mode" && pic_mode=default 8253 8254# Use C for the default configuration in the libtool script 8255tagname= 8256lt_save_CC="$CC" 8257ac_ext=c 8258ac_cpp='$CPP $CPPFLAGS' 8259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8261ac_compiler_gnu=$ac_cv_c_compiler_gnu 8262 8263 8264# Source file extension for C test sources. 8265ac_ext=c 8266 8267# Object file extension for compiled C test sources. 8268objext=o 8269objext=$objext 8270 8271# Code to be used in simple compile tests 8272lt_simple_compile_test_code="int some_variable = 0;\n" 8273 8274# Code to be used in simple link tests 8275lt_simple_link_test_code='int main(){return(0);}\n' 8276 8277 8278# If no C compiler was specified, use CC. 8279LTCC=${LTCC-"$CC"} 8280 8281# Allow CC to be a program name with arguments. 8282compiler=$CC 8283 8284 8285# save warnings/boilerplate of simple test code 8286ac_outfile=conftest.$ac_objext 8287printf "$lt_simple_compile_test_code" >conftest.$ac_ext 8288eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 8289_lt_compiler_boilerplate=`cat conftest.err` 8290$rm conftest* 8291 8292ac_outfile=conftest.$ac_objext 8293printf "$lt_simple_link_test_code" >conftest.$ac_ext 8294eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 8295_lt_linker_boilerplate=`cat conftest.err` 8296$rm conftest* 8297 8298 8299# 8300# Check for any special shared library compilation flags. 8301# 8302lt_prog_cc_shlib= 8303if test "$GCC" = no; then 8304 case $host_os in 8305 sco3.2v5*) 8306 lt_prog_cc_shlib='-belf' 8307 ;; 8308 esac 8309fi 8310if test -n "$lt_prog_cc_shlib"; then 8311 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 8312echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 8313 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 8314 else 8315 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 8316echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 8317 lt_cv_prog_cc_can_build_shared=no 8318 fi 8319fi 8320 8321 8322# 8323# Check to make sure the static flag actually works. 8324# 8325echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 8326echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 8327if test "${lt_prog_compiler_static_works+set}" = set; then 8328 echo $ECHO_N "(cached) $ECHO_C" >&6 8329else 8330 lt_prog_compiler_static_works=no 8331 save_LDFLAGS="$LDFLAGS" 8332 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 8333 printf "$lt_simple_link_test_code" > conftest.$ac_ext 8334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8335 # The linker can only warn and ignore the option if not recognized 8336 # So say no if there are warnings 8337 if test -s conftest.err; then 8338 # Append any errors to the config.log. 8339 cat conftest.err 1>&5 8340 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 8341 $SED '/^$/d' conftest.err >conftest.er2 8342 if diff conftest.exp conftest.er2 >/dev/null; then 8343 lt_prog_compiler_static_works=yes 8344 fi 8345 else 8346 lt_prog_compiler_static_works=yes 8347 fi 8348 fi 8349 $rm conftest* 8350 LDFLAGS="$save_LDFLAGS" 8351 8352fi 8353echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8354echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 8355 8356if test x"$lt_prog_compiler_static_works" = xyes; then 8357 : 8358else 8359 lt_prog_compiler_static= 8360fi 8361 8362 8363 8364## CAVEAT EMPTOR: 8365## There is no encapsulation within the following macros, do not change 8366## the running order or otherwise move them around unless you know exactly 8367## what you are doing... 8368 8369lt_prog_compiler_no_builtin_flag= 8370 8371if test "$GCC" = yes; then 8372 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8373 8374 8375echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8376echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 8377if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8378 echo $ECHO_N "(cached) $ECHO_C" >&6 8379else 8380 lt_cv_prog_compiler_rtti_exceptions=no 8381 ac_outfile=conftest.$ac_objext 8382 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8383 lt_compiler_flag="-fno-rtti -fno-exceptions" 8384 # Insert the option either (1) after the last *FLAGS variable, or 8385 # (2) before a word containing "conftest.", or (3) at the end. 8386 # Note that $ac_compile itself does not contain backslashes and begins 8387 # with a dollar sign (not a hyphen), so the echo should work correctly. 8388 # The option is referenced via a variable to avoid confusing sed. 8389 lt_compile=`echo "$ac_compile" | $SED \ 8390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8392 -e 's:$: $lt_compiler_flag:'` 8393 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 8394 (eval "$lt_compile" 2>conftest.err) 8395 ac_status=$? 8396 cat conftest.err >&5 8397 echo "$as_me:__oline__: \$? = $ac_status" >&5 8398 if (exit $ac_status) && test -s "$ac_outfile"; then 8399 # The compiler can only warn and ignore the option if not recognized 8400 # So say no if there are warnings other than the usual output. 8401 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 8402 $SED '/^$/d' conftest.err >conftest.er2 8403 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 8404 lt_cv_prog_compiler_rtti_exceptions=yes 8405 fi 8406 fi 8407 $rm conftest* 8408 8409fi 8410echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8411echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 8412 8413if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8414 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8415else 8416 : 8417fi 8418 8419fi 8420 8421lt_prog_compiler_wl= 8422lt_prog_compiler_pic= 8423lt_prog_compiler_static= 8424 8425echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8426echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 8427 8428 if test "$GCC" = yes; then 8429 lt_prog_compiler_wl='-Wl,' 8430 lt_prog_compiler_static='-static' 8431 8432 case $host_os in 8433 aix*) 8434 # All AIX code is PIC. 8435 if test "$host_cpu" = ia64; then 8436 # AIX 5 now supports IA64 processor 8437 lt_prog_compiler_static='-Bstatic' 8438 fi 8439 ;; 8440 8441 amigaos*) 8442 # FIXME: we need at least 68020 code to build shared libraries, but 8443 # adding the `-m68020' flag to GCC prevents building anything better, 8444 # like `-m68040'. 8445 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8446 ;; 8447 8448 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8449 # PIC is the default for these OSes. 8450 ;; 8451 8452 mingw* | pw32* | os2*) 8453 # This hack is so that the source file can tell whether it is being 8454 # built for inclusion in a dll (and should export symbols for example). 8455 lt_prog_compiler_pic='-DDLL_EXPORT' 8456 ;; 8457 8458 darwin* | rhapsody*) 8459 # PIC is the default on this platform 8460 # Common symbols not allowed in MH_DYLIB files 8461 lt_prog_compiler_pic='-fno-common' 8462 ;; 8463 8464 msdosdjgpp*) 8465 # Just because we use GCC doesn't mean we suddenly get shared libraries 8466 # on systems that don't support them. 8467 lt_prog_compiler_can_build_shared=no 8468 enable_shared=no 8469 ;; 8470 8471 sysv4*MP*) 8472 if test -d /usr/nec; then 8473 lt_prog_compiler_pic=-Kconform_pic 8474 fi 8475 ;; 8476 8477 hpux*) 8478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8479 # not for PA HP-UX. 8480 case $host_cpu in 8481 hppa*64*|ia64*) 8482 # +Z the default 8483 ;; 8484 *) 8485 lt_prog_compiler_pic='-fPIC' 8486 ;; 8487 esac 8488 ;; 8489 8490 *) 8491 lt_prog_compiler_pic='-fPIC' 8492 ;; 8493 esac 8494 else 8495 # PORTME Check for flag to pass linker flags through the system compiler. 8496 case $host_os in 8497 aix*) 8498 lt_prog_compiler_wl='-Wl,' 8499 if test "$host_cpu" = ia64; then 8500 # AIX 5 now supports IA64 processor 8501 lt_prog_compiler_static='-Bstatic' 8502 else 8503 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8504 fi 8505 ;; 8506 darwin*) 8507 # PIC is the default on this platform 8508 # Common symbols not allowed in MH_DYLIB files 8509 case $cc_basename in 8510 xlc*) 8511 lt_prog_compiler_pic='-qnocommon' 8512 lt_prog_compiler_wl='-Wl,' 8513 ;; 8514 esac 8515 ;; 8516 8517 mingw* | pw32* | os2*) 8518 # This hack is so that the source file can tell whether it is being 8519 # built for inclusion in a dll (and should export symbols for example). 8520 lt_prog_compiler_pic='-DDLL_EXPORT' 8521 ;; 8522 8523 hpux9* | hpux10* | hpux11*) 8524 lt_prog_compiler_wl='-Wl,' 8525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8526 # not for PA HP-UX. 8527 case $host_cpu in 8528 hppa*64*|ia64*) 8529 # +Z the default 8530 ;; 8531 *) 8532 lt_prog_compiler_pic='+Z' 8533 ;; 8534 esac 8535 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8536 lt_prog_compiler_static='${wl}-a ${wl}archive' 8537 ;; 8538 8539 irix5* | irix6* | nonstopux*) 8540 lt_prog_compiler_wl='-Wl,' 8541 # PIC (with -KPIC) is the default. 8542 lt_prog_compiler_static='-non_shared' 8543 ;; 8544 8545 newsos6) 8546 lt_prog_compiler_pic='-KPIC' 8547 lt_prog_compiler_static='-Bstatic' 8548 ;; 8549 8550 linux*) 8551 case $cc_basename in 8552 icc* | ecc*) 8553 lt_prog_compiler_wl='-Wl,' 8554 lt_prog_compiler_pic='-KPIC' 8555 lt_prog_compiler_static='-static' 8556 ;; 8557 pgcc* | pgf77* | pgf90* | pgf95*) 8558 # Portland Group compilers (*not* the Pentium gcc compiler, 8559 # which looks to be a dead project) 8560 lt_prog_compiler_wl='-Wl,' 8561 lt_prog_compiler_pic='-fpic' 8562 lt_prog_compiler_static='-Bstatic' 8563 ;; 8564 ccc*) 8565 lt_prog_compiler_wl='-Wl,' 8566 # All Alpha code is PIC. 8567 lt_prog_compiler_static='-non_shared' 8568 ;; 8569 esac 8570 ;; 8571 8572 osf3* | osf4* | osf5*) 8573 lt_prog_compiler_wl='-Wl,' 8574 # All OSF/1 code is PIC. 8575 lt_prog_compiler_static='-non_shared' 8576 ;; 8577 8578 sco3.2v5*) 8579 lt_prog_compiler_pic='-Kpic' 8580 lt_prog_compiler_static='-dn' 8581 ;; 8582 8583 solaris*) 8584 lt_prog_compiler_pic='-KPIC' 8585 lt_prog_compiler_static='-Bstatic' 8586 case $cc_basename in 8587 f77* | f90* | f95*) 8588 lt_prog_compiler_wl='-Qoption ld ';; 8589 *) 8590 lt_prog_compiler_wl='-Wl,';; 8591 esac 8592 ;; 8593 8594 sunos4*) 8595 lt_prog_compiler_wl='-Qoption ld ' 8596 lt_prog_compiler_pic='-PIC' 8597 lt_prog_compiler_static='-Bstatic' 8598 ;; 8599 8600 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8601 lt_prog_compiler_wl='-Wl,' 8602 lt_prog_compiler_pic='-KPIC' 8603 lt_prog_compiler_static='-Bstatic' 8604 ;; 8605 8606 sysv4*MP*) 8607 if test -d /usr/nec ;then 8608 lt_prog_compiler_pic='-Kconform_pic' 8609 lt_prog_compiler_static='-Bstatic' 8610 fi 8611 ;; 8612 8613 unicos*) 8614 lt_prog_compiler_wl='-Wl,' 8615 lt_prog_compiler_can_build_shared=no 8616 ;; 8617 8618 uts4*) 8619 lt_prog_compiler_pic='-pic' 8620 lt_prog_compiler_static='-Bstatic' 8621 ;; 8622 8623 *) 8624 lt_prog_compiler_can_build_shared=no 8625 ;; 8626 esac 8627 fi 8628 8629echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8630echo "${ECHO_T}$lt_prog_compiler_pic" >&6 8631 8632# 8633# Check to make sure the PIC flag actually works. 8634# 8635if test -n "$lt_prog_compiler_pic"; then 8636 8637echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8638echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 8639if test "${lt_prog_compiler_pic_works+set}" = set; then 8640 echo $ECHO_N "(cached) $ECHO_C" >&6 8641else 8642 lt_prog_compiler_pic_works=no 8643 ac_outfile=conftest.$ac_objext 8644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8645 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8646 # Insert the option either (1) after the last *FLAGS variable, or 8647 # (2) before a word containing "conftest.", or (3) at the end. 8648 # Note that $ac_compile itself does not contain backslashes and begins 8649 # with a dollar sign (not a hyphen), so the echo should work correctly. 8650 # The option is referenced via a variable to avoid confusing sed. 8651 lt_compile=`echo "$ac_compile" | $SED \ 8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8654 -e 's:$: $lt_compiler_flag:'` 8655 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 8656 (eval "$lt_compile" 2>conftest.err) 8657 ac_status=$? 8658 cat conftest.err >&5 8659 echo "$as_me:__oline__: \$? = $ac_status" >&5 8660 if (exit $ac_status) && test -s "$ac_outfile"; then 8661 # The compiler can only warn and ignore the option if not recognized 8662 # So say no if there are warnings other than the usual output. 8663 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 8664 $SED '/^$/d' conftest.err >conftest.er2 8665 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 8666 lt_prog_compiler_pic_works=yes 8667 fi 8668 fi 8669 $rm conftest* 8670 8671fi 8672echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 8673echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 8674 8675if test x"$lt_prog_compiler_pic_works" = xyes; then 8676 case $lt_prog_compiler_pic in 8677 "" | " "*) ;; 8678 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8679 esac 8680else 8681 lt_prog_compiler_pic= 8682 lt_prog_compiler_can_build_shared=no 8683fi 8684 8685fi 8686case $host_os in 8687 # For platforms which do not support PIC, -DPIC is meaningless: 8688 *djgpp*) 8689 lt_prog_compiler_pic= 8690 ;; 8691 *) 8692 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8693 ;; 8694esac 8695 8696echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8697echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 8698if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8699 echo $ECHO_N "(cached) $ECHO_C" >&6 8700else 8701 lt_cv_prog_compiler_c_o=no 8702 $rm -r conftest 2>/dev/null 8703 mkdir conftest 8704 cd conftest 8705 mkdir out 8706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8707 8708 lt_compiler_flag="-o out/conftest2.$ac_objext" 8709 # Insert the option either (1) after the last *FLAGS variable, or 8710 # (2) before a word containing "conftest.", or (3) at the end. 8711 # Note that $ac_compile itself does not contain backslashes and begins 8712 # with a dollar sign (not a hyphen), so the echo should work correctly. 8713 lt_compile=`echo "$ac_compile" | $SED \ 8714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8716 -e 's:$: $lt_compiler_flag:'` 8717 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 8718 (eval "$lt_compile" 2>out/conftest.err) 8719 ac_status=$? 8720 cat out/conftest.err >&5 8721 echo "$as_me:__oline__: \$? = $ac_status" >&5 8722 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8723 then 8724 # The compiler can only warn and ignore the option if not recognized 8725 # So say no if there are warnings 8726 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 8727 $SED '/^$/d' out/conftest.err >out/conftest.er2 8728 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8729 lt_cv_prog_compiler_c_o=yes 8730 fi 8731 fi 8732 chmod u+w . 2>&5 8733 $rm conftest* 8734 # SGI C++ compiler will create directory out/ii_files/ for 8735 # template instantiation 8736 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8737 $rm out/* && rmdir out 8738 cd .. 8739 rmdir conftest 8740 $rm conftest* 8741 8742fi 8743echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8744echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 8745 8746 8747hard_links="nottested" 8748if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8749 # do not overwrite the value of need_locks provided by the user 8750 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8751echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 8752 hard_links=yes 8753 $rm conftest* 8754 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8755 touch conftest.a 8756 ln conftest.a conftest.b 2>&5 || hard_links=no 8757 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8758 echo "$as_me:$LINENO: result: $hard_links" >&5 8759echo "${ECHO_T}$hard_links" >&6 8760 if test "$hard_links" = no; then 8761 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8762echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8763 need_locks=warn 8764 fi 8765else 8766 need_locks=no 8767fi 8768 8769echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8770echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8771 8772 runpath_var= 8773 allow_undefined_flag= 8774 enable_shared_with_static_runtimes=no 8775 archive_cmds= 8776 archive_expsym_cmds= 8777 old_archive_From_new_cmds= 8778 old_archive_from_expsyms_cmds= 8779 export_dynamic_flag_spec= 8780 whole_archive_flag_spec= 8781 thread_safe_flag_spec= 8782 hardcode_libdir_flag_spec= 8783 hardcode_libdir_flag_spec_ld= 8784 hardcode_libdir_separator= 8785 hardcode_direct=no 8786 hardcode_minus_L=no 8787 hardcode_shlibpath_var=unsupported 8788 link_all_deplibs=unknown 8789 hardcode_automatic=no 8790 module_cmds= 8791 module_expsym_cmds= 8792 always_export_symbols=no 8793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8794 # include_expsyms should be a list of space-separated symbols to be *always* 8795 # included in the symbol list 8796 include_expsyms= 8797 # exclude_expsyms can be an extended regexp of symbols to exclude 8798 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8799 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8800 # as well as any symbol that contains `d'. 8801 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8802 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8803 # platforms (ab)use it in PIC code, but their linkers get confused if 8804 # the symbol is explicitly referenced. Since portable code cannot 8805 # rely on this symbol name, it's probably fine to never include it in 8806 # preloaded symbol tables. 8807 extract_expsyms_cmds= 8808 # Just being paranoid about ensuring that cc_basename is set. 8809 for cc_temp in $compiler""; do 8810 case $cc_temp in 8811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8813 \-*) ;; 8814 *) break;; 8815 esac 8816done 8817cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8818 8819 case $host_os in 8820 cygwin* | mingw* | pw32*) 8821 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8822 # When not using gcc, we currently assume that we are using 8823 # Microsoft Visual C++. 8824 if test "$GCC" != yes; then 8825 with_gnu_ld=no 8826 fi 8827 ;; 8828 openbsd*) 8829 with_gnu_ld=no 8830 ;; 8831 esac 8832 8833 ld_shlibs=yes 8834 if test "$with_gnu_ld" = yes; then 8835 # If archive_cmds runs LD, not CC, wlarc should be empty 8836 wlarc='${wl}' 8837 8838 # Set some defaults for GNU ld with shared library support. These 8839 # are reset later if shared libraries are not supported. Putting them 8840 # here allows them to be overridden if necessary. 8841 runpath_var=LD_RUN_PATH 8842 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8843 export_dynamic_flag_spec='${wl}--export-dynamic' 8844 # ancient GNU ld didn't support --whole-archive et. al. 8845 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8846 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8847 else 8848 whole_archive_flag_spec= 8849 fi 8850 supports_anon_versioning=no 8851 case `$LD -v 2>/dev/null` in 8852 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8853 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8854 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8855 *\ 2.11.*) ;; # other 2.11 versions 8856 *) supports_anon_versioning=yes ;; 8857 esac 8858 8859 # See if GNU ld supports shared libraries. 8860 case $host_os in 8861 aix3* | aix4* | aix5*) 8862 # On AIX/PPC, the GNU linker is very broken 8863 if test "$host_cpu" != ia64; then 8864 ld_shlibs=no 8865 cat <<EOF 1>&2 8866 8867*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8868*** to be unable to reliably create shared libraries on AIX. 8869*** Therefore, libtool is disabling shared libraries support. If you 8870*** really care for shared libraries, you may want to modify your PATH 8871*** so that a non-GNU linker is found, and then restart. 8872 8873EOF 8874 fi 8875 ;; 8876 8877 amigaos*) 8878 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)' 8879 hardcode_libdir_flag_spec='-L$libdir' 8880 hardcode_minus_L=yes 8881 8882 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8883 # that the semantics of dynamic libraries on AmigaOS, at least up 8884 # to version 4, is to share data among multiple programs linked 8885 # with the same dynamic library. Since this doesn't match the 8886 # behavior of shared libraries on other platforms, we can't use 8887 # them. 8888 ld_shlibs=no 8889 ;; 8890 8891 beos*) 8892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8893 allow_undefined_flag=unsupported 8894 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8895 # support --undefined. This deserves some investigation. FIXME 8896 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8897 else 8898 ld_shlibs=no 8899 fi 8900 ;; 8901 8902 cygwin* | mingw* | pw32*) 8903 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8904 # as there is no search path for DLLs. 8905 hardcode_libdir_flag_spec='-L$libdir' 8906 allow_undefined_flag=unsupported 8907 always_export_symbols=no 8908 enable_shared_with_static_runtimes=yes 8909 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 8910 8911 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 8913 # If the export-symbols file already is a .def file (1st line 8914 # is EXPORTS), use it as is; otherwise, prepend... 8915 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8916 cp $export_symbols $output_objdir/$soname.def; 8917 else 8918 echo EXPORTS > $output_objdir/$soname.def; 8919 cat $export_symbols >> $output_objdir/$soname.def; 8920 fi~ 8921 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 8922 else 8923 ld_shlibs=no 8924 fi 8925 ;; 8926 8927 linux*) 8928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8929 tmp_addflag= 8930 case $cc_basename,$host_cpu in 8931 pgcc*) # Portland Group C compiler 8932 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' 8933 tmp_addflag=' $pic_flag' 8934 ;; 8935 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8936 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' 8937 tmp_addflag=' $pic_flag -Mnomain' ;; 8938 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8939 tmp_addflag=' -i_dynamic' ;; 8940 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8941 tmp_addflag=' -i_dynamic -nofor_main' ;; 8942 ifc* | ifort*) # Intel Fortran compiler 8943 tmp_addflag=' -nofor_main' ;; 8944 esac 8945 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8946 8947 if test $supports_anon_versioning = yes; then 8948 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8949 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8950 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8951 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8952 fi 8953 else 8954 ld_shlibs=no 8955 fi 8956 ;; 8957 8958 netbsd*) 8959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8961 wlarc= 8962 else 8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8965 fi 8966 ;; 8967 8968 solaris* | sysv5*) 8969 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8970 ld_shlibs=no 8971 cat <<EOF 1>&2 8972 8973*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8974*** create shared libraries on Solaris systems. Therefore, libtool 8975*** is disabling shared libraries support. We urge you to upgrade GNU 8976*** binutils to release 2.9.1 or newer. Another option is to modify 8977*** your PATH or compiler configuration so that the native linker is 8978*** used, and then restart. 8979 8980EOF 8981 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8984 else 8985 ld_shlibs=no 8986 fi 8987 ;; 8988 8989 sunos4*) 8990 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8991 wlarc= 8992 hardcode_direct=yes 8993 hardcode_shlibpath_var=no 8994 ;; 8995 8996 *) 8997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9000 else 9001 ld_shlibs=no 9002 fi 9003 ;; 9004 esac 9005 9006 if test "$ld_shlibs" = no; then 9007 runpath_var= 9008 hardcode_libdir_flag_spec= 9009 export_dynamic_flag_spec= 9010 whole_archive_flag_spec= 9011 fi 9012 else 9013 # PORTME fill in a description of your system's linker (not GNU ld) 9014 case $host_os in 9015 aix3*) 9016 allow_undefined_flag=unsupported 9017 always_export_symbols=yes 9018 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' 9019 # Note: this linker hardcodes the directories in LIBPATH if there 9020 # are no directories specified by -L. 9021 hardcode_minus_L=yes 9022 if test "$GCC" = yes && test -z "$link_static_flag"; then 9023 # Neither direct hardcoding nor static linking is supported with a 9024 # broken collect2. 9025 hardcode_direct=unsupported 9026 fi 9027 ;; 9028 9029 aix4* | aix5*) 9030 if test "$host_cpu" = ia64; then 9031 # On IA64, the linker does run time linking by default, so we don't 9032 # have to do anything special. 9033 aix_use_runtimelinking=no 9034 exp_sym_flag='-Bexport' 9035 no_entry_flag="" 9036 else 9037 # If we're using GNU nm, then we don't want the "-C" option. 9038 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9039 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9040 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' 9041 else 9042 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' 9043 fi 9044 aix_use_runtimelinking=no 9045 9046 # Test if we are trying to use run time linking or normal 9047 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9048 # need to do runtime linking. 9049 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9050 for ld_flag in $LDFLAGS; do 9051 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9052 aix_use_runtimelinking=yes 9053 break 9054 fi 9055 done 9056 esac 9057 9058 exp_sym_flag='-bexport' 9059 no_entry_flag='-bnoentry' 9060 fi 9061 9062 # When large executables or shared objects are built, AIX ld can 9063 # have problems creating the table of contents. If linking a library 9064 # or program results in "error TOC overflow" add -mminimal-toc to 9065 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9066 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9067 9068 archive_cmds='' 9069 hardcode_direct=yes 9070 hardcode_libdir_separator=':' 9071 link_all_deplibs=yes 9072 9073 if test "$GCC" = yes; then 9074 case $host_os in aix4.[012]|aix4.[012].*) 9075 # We only want to do this on AIX 4.2 and lower, the check 9076 # below for broken collect2 doesn't work under 4.3+ 9077 collect2name=`${CC} -print-prog-name=collect2` 9078 if test -f "$collect2name" && \ 9079 strings "$collect2name" | grep resolve_lib_name >/dev/null 9080 then 9081 # We have reworked collect2 9082 hardcode_direct=yes 9083 else 9084 # We have old collect2 9085 hardcode_direct=unsupported 9086 # It fails to find uninstalled libraries when the uninstalled 9087 # path is not listed in the libpath. Setting hardcode_minus_L 9088 # to unsupported forces relinking 9089 hardcode_minus_L=yes 9090 hardcode_libdir_flag_spec='-L$libdir' 9091 hardcode_libdir_separator= 9092 fi 9093 esac 9094 shared_flag='-shared' 9095 if test "$aix_use_runtimelinking" = yes; then 9096 shared_flag="$shared_flag "'${wl}-G' 9097 fi 9098 else 9099 # not using gcc 9100 if test "$host_cpu" = ia64; then 9101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9102 # chokes on -Wl,-G. The following line is correct: 9103 shared_flag='-G' 9104 else 9105 if test "$aix_use_runtimelinking" = yes; then 9106 shared_flag='${wl}-G' 9107 else 9108 shared_flag='${wl}-bM:SRE' 9109 fi 9110 fi 9111 fi 9112 9113 # It seems that -bexpall does not export symbols beginning with 9114 # underscore (_), so it is better to generate a list of symbols to export. 9115 always_export_symbols=yes 9116 if test "$aix_use_runtimelinking" = yes; then 9117 # Warning - without using the other runtime loading flags (-brtl), 9118 # -berok will link without error, but may produce a broken library. 9119 allow_undefined_flag='-berok' 9120 # Determine the default libpath from the value encoded in an empty executable. 9121 cat >conftest.$ac_ext <<_ACEOF 9122/* confdefs.h. */ 9123_ACEOF 9124cat confdefs.h >>conftest.$ac_ext 9125cat >>conftest.$ac_ext <<_ACEOF 9126/* end confdefs.h. */ 9127 9128int 9129main () 9130{ 9131 9132 ; 9133 return 0; 9134} 9135_ACEOF 9136rm -f conftest.$ac_objext conftest$ac_exeext 9137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9138 (eval $ac_link) 2>conftest.er1 9139 ac_status=$? 9140 grep -v '^ *+' conftest.er1 >conftest.err 9141 rm -f conftest.er1 9142 cat conftest.err >&5 9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9144 (exit $ac_status); } && 9145 { ac_try='test -z "$ac_c_werror_flag" 9146 || test ! -s conftest.err' 9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9148 (eval $ac_try) 2>&5 9149 ac_status=$? 9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9151 (exit $ac_status); }; } && 9152 { ac_try='test -s conftest$ac_exeext' 9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9154 (eval $ac_try) 2>&5 9155 ac_status=$? 9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9157 (exit $ac_status); }; }; then 9158 9159aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9160}'` 9161# Check for a 64-bit object if we didn't find anything. 9162if 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; } 9163}'`; fi 9164else 9165 echo "$as_me: failed program was:" >&5 9166sed 's/^/| /' conftest.$ac_ext >&5 9167 9168fi 9169rm -f conftest.err conftest.$ac_objext \ 9170 conftest$ac_exeext conftest.$ac_ext 9171if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9172 9173 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9174 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" 9175 else 9176 if test "$host_cpu" = ia64; then 9177 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9178 allow_undefined_flag="-z nodefs" 9179 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" 9180 else 9181 # Determine the default libpath from the value encoded in an empty executable. 9182 cat >conftest.$ac_ext <<_ACEOF 9183/* confdefs.h. */ 9184_ACEOF 9185cat confdefs.h >>conftest.$ac_ext 9186cat >>conftest.$ac_ext <<_ACEOF 9187/* end confdefs.h. */ 9188 9189int 9190main () 9191{ 9192 9193 ; 9194 return 0; 9195} 9196_ACEOF 9197rm -f conftest.$ac_objext conftest$ac_exeext 9198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9199 (eval $ac_link) 2>conftest.er1 9200 ac_status=$? 9201 grep -v '^ *+' conftest.er1 >conftest.err 9202 rm -f conftest.er1 9203 cat conftest.err >&5 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9205 (exit $ac_status); } && 9206 { ac_try='test -z "$ac_c_werror_flag" 9207 || test ! -s conftest.err' 9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9209 (eval $ac_try) 2>&5 9210 ac_status=$? 9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9212 (exit $ac_status); }; } && 9213 { ac_try='test -s conftest$ac_exeext' 9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9215 (eval $ac_try) 2>&5 9216 ac_status=$? 9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218 (exit $ac_status); }; }; then 9219 9220aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9221}'` 9222# Check for a 64-bit object if we didn't find anything. 9223if 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; } 9224}'`; fi 9225else 9226 echo "$as_me: failed program was:" >&5 9227sed 's/^/| /' conftest.$ac_ext >&5 9228 9229fi 9230rm -f conftest.err conftest.$ac_objext \ 9231 conftest$ac_exeext conftest.$ac_ext 9232if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9233 9234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9235 # Warning - without using the other run time loading flags, 9236 # -berok will link without error, but may produce a broken library. 9237 no_undefined_flag=' ${wl}-bernotok' 9238 allow_undefined_flag=' ${wl}-berok' 9239 # -bexpall does not export symbols beginning with underscore (_) 9240 always_export_symbols=yes 9241 # Exported symbols can be pulled into shared objects from archives 9242 whole_archive_flag_spec=' ' 9243 archive_cmds_need_lc=yes 9244 # This is similar to how AIX traditionally builds its shared libraries. 9245 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' 9246 fi 9247 fi 9248 ;; 9249 9250 amigaos*) 9251 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)' 9252 hardcode_libdir_flag_spec='-L$libdir' 9253 hardcode_minus_L=yes 9254 # see comment about different semantics on the GNU ld section 9255 ld_shlibs=no 9256 ;; 9257 9258 bsdi[45]*) 9259 export_dynamic_flag_spec=-rdynamic 9260 ;; 9261 9262 cygwin* | mingw* | pw32*) 9263 # When not using gcc, we currently assume that we are using 9264 # Microsoft Visual C++. 9265 # hardcode_libdir_flag_spec is actually meaningless, as there is 9266 # no search path for DLLs. 9267 hardcode_libdir_flag_spec=' ' 9268 allow_undefined_flag=unsupported 9269 # Tell ltmain to make .lib files, not .a files. 9270 libext=lib 9271 # Tell ltmain to make .dll files, not .so files. 9272 shrext_cmds=".dll" 9273 # FIXME: Setting linknames here is a bad hack. 9274 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9275 # The linker will automatically build a .lib file if we build a DLL. 9276 old_archive_From_new_cmds='true' 9277 # FIXME: Should let the user specify the lib program. 9278 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9279 fix_srcfile_path='`cygpath -w "$srcfile"`' 9280 enable_shared_with_static_runtimes=yes 9281 ;; 9282 9283 darwin* | rhapsody*) 9284 case $host_os in 9285 rhapsody* | darwin1.[012]) 9286 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9287 ;; 9288 *) # Darwin 1.3 on 9289 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9290 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9291 else 9292 case ${MACOSX_DEPLOYMENT_TARGET} in 9293 10.[012]) 9294 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9295 ;; 9296 10.*) 9297 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9298 ;; 9299 esac 9300 fi 9301 ;; 9302 esac 9303 archive_cmds_need_lc=no 9304 hardcode_direct=no 9305 hardcode_automatic=yes 9306 hardcode_shlibpath_var=unsupported 9307 whole_archive_flag_spec='' 9308 link_all_deplibs=yes 9309 if test "$GCC" = yes ; then 9310 output_verbose_link_cmd='echo' 9311 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9312 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9313 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9314 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}' 9315 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}' 9316 else 9317 case $cc_basename in 9318 xlc*) 9319 output_verbose_link_cmd='echo' 9320 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 9321 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9322 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9323 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}' 9324 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}' 9325 ;; 9326 *) 9327 ld_shlibs=no 9328 ;; 9329 esac 9330 fi 9331 ;; 9332 9333 dgux*) 9334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9335 hardcode_libdir_flag_spec='-L$libdir' 9336 hardcode_shlibpath_var=no 9337 ;; 9338 9339 freebsd1*) 9340 ld_shlibs=no 9341 ;; 9342 9343 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9344 # support. Future versions do this automatically, but an explicit c++rt0.o 9345 # does not break anything, and helps significantly (at the cost of a little 9346 # extra space). 9347 freebsd2.2*) 9348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9349 hardcode_libdir_flag_spec='-R$libdir' 9350 hardcode_direct=yes 9351 hardcode_shlibpath_var=no 9352 ;; 9353 9354 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9355 freebsd2*) 9356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9357 hardcode_direct=yes 9358 hardcode_minus_L=yes 9359 hardcode_shlibpath_var=no 9360 ;; 9361 9362 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9363 freebsd* | kfreebsd*-gnu | dragonfly*) 9364 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9365 hardcode_libdir_flag_spec='-R$libdir' 9366 hardcode_direct=yes 9367 hardcode_shlibpath_var=no 9368 ;; 9369 9370 hpux9*) 9371 if test "$GCC" = yes; then 9372 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' 9373 else 9374 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' 9375 fi 9376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9377 hardcode_libdir_separator=: 9378 hardcode_direct=yes 9379 9380 # hardcode_minus_L: Not really in the search PATH, 9381 # but as the default location of the library. 9382 hardcode_minus_L=yes 9383 export_dynamic_flag_spec='${wl}-E' 9384 ;; 9385 9386 hpux10* | hpux11*) 9387 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9388 case $host_cpu in 9389 hppa*64*|ia64*) 9390 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9391 ;; 9392 *) 9393 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9394 ;; 9395 esac 9396 else 9397 case $host_cpu in 9398 hppa*64*|ia64*) 9399 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 9400 ;; 9401 *) 9402 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9403 ;; 9404 esac 9405 fi 9406 if test "$with_gnu_ld" = no; then 9407 case $host_cpu in 9408 hppa*64*) 9409 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9410 hardcode_libdir_flag_spec_ld='+b $libdir' 9411 hardcode_libdir_separator=: 9412 hardcode_direct=no 9413 hardcode_shlibpath_var=no 9414 ;; 9415 ia64*) 9416 hardcode_libdir_flag_spec='-L$libdir' 9417 hardcode_direct=no 9418 hardcode_shlibpath_var=no 9419 9420 # hardcode_minus_L: Not really in the search PATH, 9421 # but as the default location of the library. 9422 hardcode_minus_L=yes 9423 ;; 9424 *) 9425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9426 hardcode_libdir_separator=: 9427 hardcode_direct=yes 9428 export_dynamic_flag_spec='${wl}-E' 9429 9430 # hardcode_minus_L: Not really in the search PATH, 9431 # but as the default location of the library. 9432 hardcode_minus_L=yes 9433 ;; 9434 esac 9435 fi 9436 ;; 9437 9438 irix5* | irix6* | nonstopux*) 9439 if test "$GCC" = yes; then 9440 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' 9441 else 9442 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' 9443 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9444 fi 9445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9446 hardcode_libdir_separator=: 9447 link_all_deplibs=yes 9448 ;; 9449 9450 netbsd*) 9451 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9453 else 9454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9455 fi 9456 hardcode_libdir_flag_spec='-R$libdir' 9457 hardcode_direct=yes 9458 hardcode_shlibpath_var=no 9459 ;; 9460 9461 newsos6) 9462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9463 hardcode_direct=yes 9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9465 hardcode_libdir_separator=: 9466 hardcode_shlibpath_var=no 9467 ;; 9468 9469 openbsd*) 9470 hardcode_direct=yes 9471 hardcode_shlibpath_var=no 9472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9474 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9475 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9476 export_dynamic_flag_spec='${wl}-E' 9477 else 9478 case $host_os in 9479 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9480 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9481 hardcode_libdir_flag_spec='-R$libdir' 9482 ;; 9483 *) 9484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9485 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9486 ;; 9487 esac 9488 fi 9489 ;; 9490 9491 os2*) 9492 hardcode_libdir_flag_spec='-L$libdir' 9493 hardcode_minus_L=yes 9494 allow_undefined_flag=unsupported 9495 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' 9496 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9497 ;; 9498 9499 osf3*) 9500 if test "$GCC" = yes; then 9501 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9502 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' 9503 else 9504 allow_undefined_flag=' -expect_unresolved \*' 9505 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' 9506 fi 9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9508 hardcode_libdir_separator=: 9509 ;; 9510 9511 osf4* | osf5*) # as osf3* with the addition of -msym flag 9512 if test "$GCC" = yes; then 9513 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9514 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' 9515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9516 else 9517 allow_undefined_flag=' -expect_unresolved \*' 9518 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' 9519 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9520 $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' 9521 9522 # Both c and cxx compiler support -rpath directly 9523 hardcode_libdir_flag_spec='-rpath $libdir' 9524 fi 9525 hardcode_libdir_separator=: 9526 ;; 9527 9528 sco3.2v5*) 9529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9530 hardcode_shlibpath_var=no 9531 export_dynamic_flag_spec='${wl}-Bexport' 9532 runpath_var=LD_RUN_PATH 9533 hardcode_runpath_var=yes 9534 ;; 9535 9536 solaris*) 9537 no_undefined_flag=' -z text' 9538 if test "$GCC" = yes; then 9539 wlarc='${wl}' 9540 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9541 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9542 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9543 else 9544 wlarc='' 9545 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9546 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9547 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9548 fi 9549 hardcode_libdir_flag_spec='-R$libdir' 9550 hardcode_shlibpath_var=no 9551 case $host_os in 9552 solaris2.[0-5] | solaris2.[0-5].*) ;; 9553 *) 9554 # The compiler driver will combine linker options so we 9555 # cannot just pass the convience library names through 9556 # without $wl, iff we do not link with $LD. 9557 # Luckily, gcc supports the same syntax we need for Sun Studio. 9558 # Supported since Solaris 2.6 (maybe 2.5.1?) 9559 case $wlarc in 9560 '') 9561 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 9562 *) 9563 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' ;; 9564 esac ;; 9565 esac 9566 link_all_deplibs=yes 9567 ;; 9568 9569 sunos4*) 9570 if test "x$host_vendor" = xsequent; then 9571 # Use $CC to link under sequent, because it throws in some extra .o 9572 # files that make .init and .fini sections work. 9573 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9574 else 9575 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9576 fi 9577 hardcode_libdir_flag_spec='-L$libdir' 9578 hardcode_direct=yes 9579 hardcode_minus_L=yes 9580 hardcode_shlibpath_var=no 9581 ;; 9582 9583 sysv4) 9584 case $host_vendor in 9585 sni) 9586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9587 hardcode_direct=yes # is this really true??? 9588 ;; 9589 siemens) 9590 ## LD is ld it makes a PLAMLIB 9591 ## CC just makes a GrossModule. 9592 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9593 reload_cmds='$CC -r -o $output$reload_objs' 9594 hardcode_direct=no 9595 ;; 9596 motorola) 9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9598 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9599 ;; 9600 esac 9601 runpath_var='LD_RUN_PATH' 9602 hardcode_shlibpath_var=no 9603 ;; 9604 9605 sysv4.3*) 9606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9607 hardcode_shlibpath_var=no 9608 export_dynamic_flag_spec='-Bexport' 9609 ;; 9610 9611 sysv4*MP*) 9612 if test -d /usr/nec; then 9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9614 hardcode_shlibpath_var=no 9615 runpath_var=LD_RUN_PATH 9616 hardcode_runpath_var=yes 9617 ld_shlibs=yes 9618 fi 9619 ;; 9620 9621 sysv4.2uw2*) 9622 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9623 hardcode_direct=yes 9624 hardcode_minus_L=no 9625 hardcode_shlibpath_var=no 9626 hardcode_runpath_var=yes 9627 runpath_var=LD_RUN_PATH 9628 ;; 9629 9630 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 9631 no_undefined_flag='${wl}-z ${wl}text' 9632 if test "$GCC" = yes; then 9633 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9634 else 9635 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9636 fi 9637 runpath_var='LD_RUN_PATH' 9638 hardcode_shlibpath_var=no 9639 ;; 9640 9641 sysv5*) 9642 no_undefined_flag=' -z text' 9643 # $CC -shared without GNU ld will not create a library from C++ 9644 # object files and a static libstdc++, better avoid it by now 9645 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9646 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9648 hardcode_libdir_flag_spec= 9649 hardcode_shlibpath_var=no 9650 runpath_var='LD_RUN_PATH' 9651 ;; 9652 9653 uts4*) 9654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9655 hardcode_libdir_flag_spec='-L$libdir' 9656 hardcode_shlibpath_var=no 9657 ;; 9658 9659 *) 9660 ld_shlibs=no 9661 ;; 9662 esac 9663 fi 9664 9665echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9666echo "${ECHO_T}$ld_shlibs" >&6 9667test "$ld_shlibs" = no && can_build_shared=no 9668 9669variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9670if test "$GCC" = yes; then 9671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9672fi 9673 9674# 9675# Do we need to explicitly link libc? 9676# 9677case "x$archive_cmds_need_lc" in 9678x|xyes) 9679 # Assume -lc should be added 9680 archive_cmds_need_lc=yes 9681 9682 if test "$enable_shared" = yes && test "$GCC" = yes; then 9683 case $archive_cmds in 9684 *'~'*) 9685 # FIXME: we may have to deal with multi-command sequences. 9686 ;; 9687 '$CC '*) 9688 # Test whether the compiler implicitly links with -lc since on some 9689 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9690 # to ld, don't add -lc before -lgcc. 9691 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9692echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 9693 $rm conftest* 9694 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9695 9696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9697 (eval $ac_compile) 2>&5 9698 ac_status=$? 9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9700 (exit $ac_status); } 2>conftest.err; then 9701 soname=conftest 9702 lib=conftest 9703 libobjs=conftest.$ac_objext 9704 deplibs= 9705 wl=$lt_prog_compiler_wl 9706 compiler_flags=-v 9707 linker_flags=-v 9708 verstring= 9709 output_objdir=. 9710 libname=conftest 9711 lt_save_allow_undefined_flag=$allow_undefined_flag 9712 allow_undefined_flag= 9713 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9714 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9715 ac_status=$? 9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9717 (exit $ac_status); } 9718 then 9719 archive_cmds_need_lc=no 9720 else 9721 archive_cmds_need_lc=yes 9722 fi 9723 allow_undefined_flag=$lt_save_allow_undefined_flag 9724 else 9725 cat conftest.err 1>&5 9726 fi 9727 $rm conftest* 9728 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9729echo "${ECHO_T}$archive_cmds_need_lc" >&6 9730 ;; 9731 esac 9732 fi 9733 ;; 9734esac 9735 9736echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9737echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 9738library_names_spec= 9739libname_spec='lib$name' 9740soname_spec= 9741shrext_cmds=".so" 9742postinstall_cmds= 9743postuninstall_cmds= 9744finish_cmds= 9745finish_eval= 9746shlibpath_var= 9747shlibpath_overrides_runpath=unknown 9748version_type=none 9749dynamic_linker="$host_os ld.so" 9750sys_lib_dlsearch_path_spec="/lib /usr/lib" 9751if test "$GCC" = yes; then 9752 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9753 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9754 # if the path contains ";" then we assume it to be the separator 9755 # otherwise default to the standard path separator (i.e. ":") - it is 9756 # assumed that no part of a normal pathname contains ";" but that should 9757 # okay in the real world where ";" in dirpaths is itself problematic. 9758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9759 else 9760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9761 fi 9762else 9763 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9764fi 9765need_lib_prefix=unknown 9766hardcode_into_libs=no 9767 9768# when you set need_version to no, make sure it does not cause -set_version 9769# flags to be left without arguments 9770need_version=unknown 9771 9772case $host_os in 9773aix3*) 9774 version_type=linux 9775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9776 shlibpath_var=LIBPATH 9777 9778 # AIX 3 has no versioning support, so we append a major version to the name. 9779 soname_spec='${libname}${release}${shared_ext}$major' 9780 ;; 9781 9782aix4* | aix5*) 9783 version_type=linux 9784 need_lib_prefix=no 9785 need_version=no 9786 hardcode_into_libs=yes 9787 if test "$host_cpu" = ia64; then 9788 # AIX 5 supports IA64 9789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9790 shlibpath_var=LD_LIBRARY_PATH 9791 else 9792 # With GCC up to 2.95.x, collect2 would create an import file 9793 # for dependence libraries. The import file would start with 9794 # the line `#! .'. This would cause the generated library to 9795 # depend on `.', always an invalid library. This was fixed in 9796 # development snapshots of GCC prior to 3.0. 9797 case $host_os in 9798 aix4 | aix4.[01] | aix4.[01].*) 9799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9800 echo ' yes ' 9801 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9802 : 9803 else 9804 can_build_shared=no 9805 fi 9806 ;; 9807 esac 9808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9809 # soname into executable. Probably we can add versioning support to 9810 # collect2, so additional links can be useful in future. 9811 if test "$aix_use_runtimelinking" = yes; then 9812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9813 # instead of lib<name>.a to let people know that these are not 9814 # typical AIX shared libraries. 9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9816 else 9817 # We preserve .a as extension for shared libraries through AIX4.2 9818 # and later when we are not doing run time linking. 9819 library_names_spec='${libname}${release}.a $libname.a' 9820 soname_spec='${libname}${release}${shared_ext}$major' 9821 fi 9822 shlibpath_var=LIBPATH 9823 fi 9824 ;; 9825 9826amigaos*) 9827 library_names_spec='$libname.ixlibrary $libname.a' 9828 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9829 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' 9830 ;; 9831 9832beos*) 9833 library_names_spec='${libname}${shared_ext}' 9834 dynamic_linker="$host_os ld.so" 9835 shlibpath_var=LIBRARY_PATH 9836 ;; 9837 9838bsdi[45]*) 9839 version_type=linux 9840 need_version=no 9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9842 soname_spec='${libname}${release}${shared_ext}$major' 9843 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9844 shlibpath_var=LD_LIBRARY_PATH 9845 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9846 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9847 # the default ld.so.conf also contains /usr/contrib/lib and 9848 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9849 # libtool to hard-code these into programs 9850 ;; 9851 9852cygwin* | mingw* | pw32*) 9853 version_type=windows 9854 shrext_cmds=".dll" 9855 need_version=no 9856 need_lib_prefix=no 9857 9858 case $GCC,$host_os in 9859 yes,cygwin* | yes,mingw* | yes,pw32*) 9860 library_names_spec='$libname.dll.a' 9861 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9862 postinstall_cmds='base_file=`basename \${file}`~ 9863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9864 dldir=$destdir/`dirname \$dlpath`~ 9865 test -d \$dldir || mkdir -p \$dldir~ 9866 $install_prog $dir/$dlname \$dldir/$dlname~ 9867 chmod a+x \$dldir/$dlname' 9868 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9869 dlpath=$dir/\$dldll~ 9870 $rm \$dlpath' 9871 shlibpath_overrides_runpath=yes 9872 9873 case $host_os in 9874 cygwin*) 9875 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9876 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9877 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9878 ;; 9879 mingw*) 9880 # MinGW DLLs use traditional 'lib' prefix 9881 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9882 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9883 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9884 # It is most probably a Windows format PATH printed by 9885 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9886 # path with ; separators, and with drive letters. We can handle the 9887 # drive letters (cygwin fileutils understands them), so leave them, 9888 # especially as we might pass files found there to a mingw objdump, 9889 # which wouldn't understand a cygwinified path. Ahh. 9890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9891 else 9892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9893 fi 9894 ;; 9895 pw32*) 9896 # pw32 DLLs use 'pw' prefix rather than 'lib' 9897 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9898 ;; 9899 esac 9900 ;; 9901 9902 *) 9903 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9904 ;; 9905 esac 9906 dynamic_linker='Win32 ld.exe' 9907 # FIXME: first we should search . and the directory the executable is in 9908 shlibpath_var=PATH 9909 ;; 9910 9911darwin* | rhapsody*) 9912 dynamic_linker="$host_os dyld" 9913 version_type=darwin 9914 need_lib_prefix=no 9915 need_version=no 9916 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9917 soname_spec='${libname}${release}${major}$shared_ext' 9918 shlibpath_overrides_runpath=yes 9919 shlibpath_var=DYLD_LIBRARY_PATH 9920 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9921 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9922 if test "$GCC" = yes; then 9923 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"` 9924 else 9925 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9926 fi 9927 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9928 ;; 9929 9930dgux*) 9931 version_type=linux 9932 need_lib_prefix=no 9933 need_version=no 9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9935 soname_spec='${libname}${release}${shared_ext}$major' 9936 shlibpath_var=LD_LIBRARY_PATH 9937 ;; 9938 9939freebsd1*) 9940 dynamic_linker=no 9941 ;; 9942 9943kfreebsd*-gnu) 9944 version_type=linux 9945 need_lib_prefix=no 9946 need_version=no 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9948 soname_spec='${libname}${release}${shared_ext}$major' 9949 shlibpath_var=LD_LIBRARY_PATH 9950 shlibpath_overrides_runpath=no 9951 hardcode_into_libs=yes 9952 dynamic_linker='GNU ld.so' 9953 ;; 9954 9955freebsd* | dragonfly*) 9956 # DragonFly does not have aout. When/if they implement a new 9957 # versioning mechanism, adjust this. 9958 if test -x /usr/bin/objformat; then 9959 objformat=`/usr/bin/objformat` 9960 else 9961 case $host_os in 9962 freebsd[123]*) objformat=aout ;; 9963 *) objformat=elf ;; 9964 esac 9965 fi 9966 version_type=freebsd-$objformat 9967 case $version_type in 9968 freebsd-elf*) 9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9970 need_version=no 9971 need_lib_prefix=no 9972 ;; 9973 freebsd-*) 9974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9975 need_version=yes 9976 ;; 9977 esac 9978 shlibpath_var=LD_LIBRARY_PATH 9979 case $host_os in 9980 freebsd2*) 9981 shlibpath_overrides_runpath=yes 9982 ;; 9983 freebsd3.[01]* | freebsdelf3.[01]*) 9984 shlibpath_overrides_runpath=yes 9985 hardcode_into_libs=yes 9986 ;; 9987 *) # from 3.2 on 9988 shlibpath_overrides_runpath=no 9989 hardcode_into_libs=yes 9990 ;; 9991 esac 9992 ;; 9993 9994gnu*) 9995 version_type=linux 9996 need_lib_prefix=no 9997 need_version=no 9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9999 soname_spec='${libname}${release}${shared_ext}$major' 10000 shlibpath_var=LD_LIBRARY_PATH 10001 hardcode_into_libs=yes 10002 ;; 10003 10004hpux9* | hpux10* | hpux11*) 10005 # Give a soname corresponding to the major version so that dld.sl refuses to 10006 # link against other versions. 10007 version_type=sunos 10008 need_lib_prefix=no 10009 need_version=no 10010 case $host_cpu in 10011 ia64*) 10012 shrext_cmds='.so' 10013 hardcode_into_libs=yes 10014 dynamic_linker="$host_os dld.so" 10015 shlibpath_var=LD_LIBRARY_PATH 10016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10018 soname_spec='${libname}${release}${shared_ext}$major' 10019 if test "X$HPUX_IA64_MODE" = X32; then 10020 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10021 else 10022 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10023 fi 10024 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10025 ;; 10026 hppa*64*) 10027 shrext_cmds='.sl' 10028 hardcode_into_libs=yes 10029 dynamic_linker="$host_os dld.sl" 10030 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10033 soname_spec='${libname}${release}${shared_ext}$major' 10034 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10036 ;; 10037 *) 10038 shrext_cmds='.sl' 10039 dynamic_linker="$host_os dld.sl" 10040 shlibpath_var=SHLIB_PATH 10041 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10043 soname_spec='${libname}${release}${shared_ext}$major' 10044 ;; 10045 esac 10046 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10047 postinstall_cmds='chmod 555 $lib' 10048 ;; 10049 10050irix5* | irix6* | nonstopux*) 10051 case $host_os in 10052 nonstopux*) version_type=nonstopux ;; 10053 *) 10054 if test "$lt_cv_prog_gnu_ld" = yes; then 10055 version_type=linux 10056 else 10057 version_type=irix 10058 fi ;; 10059 esac 10060 need_lib_prefix=no 10061 need_version=no 10062 soname_spec='${libname}${release}${shared_ext}$major' 10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10064 case $host_os in 10065 irix5* | nonstopux*) 10066 libsuff= shlibsuff= 10067 ;; 10068 *) 10069 case $LD in # libtool.m4 will add one of these switches to LD 10070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10071 libsuff= shlibsuff= libmagic=32-bit;; 10072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10073 libsuff=32 shlibsuff=N32 libmagic=N32;; 10074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10075 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10076 *) libsuff= shlibsuff= libmagic=never-match;; 10077 esac 10078 ;; 10079 esac 10080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10081 shlibpath_overrides_runpath=no 10082 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10083 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10084 hardcode_into_libs=yes 10085 ;; 10086 10087# No shared lib support for Linux oldld, aout, or coff. 10088linux*oldld* | linux*aout* | linux*coff*) 10089 dynamic_linker=no 10090 ;; 10091 10092# This must be Linux ELF. 10093linux*) 10094 version_type=linux 10095 need_lib_prefix=no 10096 need_version=no 10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10098 soname_spec='${libname}${release}${shared_ext}$major' 10099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10100 shlibpath_var=LD_LIBRARY_PATH 10101 shlibpath_overrides_runpath=no 10102 # This implies no fast_install, which is unacceptable. 10103 # Some rework will be needed to allow for fast_install 10104 # before this can be enabled. 10105 hardcode_into_libs=yes 10106 10107 # Append ld.so.conf contents to the search path 10108 if test -f /etc/ld.so.conf; then 10109 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' ' '` 10110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10111 fi 10112 10113 # We used to test for /lib/ld.so.1 and disable shared libraries on 10114 # powerpc, because MkLinux only supported shared libraries with the 10115 # GNU dynamic linker. Since this was broken with cross compilers, 10116 # most powerpc-linux boxes support dynamic linking these days and 10117 # people can always --disable-shared, the test was removed, and we 10118 # assume the GNU/Linux dynamic linker is in use. 10119 dynamic_linker='GNU/Linux ld.so' 10120 ;; 10121 10122knetbsd*-gnu) 10123 version_type=linux 10124 need_lib_prefix=no 10125 need_version=no 10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10127 soname_spec='${libname}${release}${shared_ext}$major' 10128 shlibpath_var=LD_LIBRARY_PATH 10129 shlibpath_overrides_runpath=no 10130 hardcode_into_libs=yes 10131 dynamic_linker='GNU ld.so' 10132 ;; 10133 10134netbsd*) 10135 version_type=sunos 10136 need_lib_prefix=no 10137 need_version=no 10138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10141 dynamic_linker='NetBSD (a.out) ld.so' 10142 else 10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10144 soname_spec='${libname}${release}${shared_ext}$major' 10145 dynamic_linker='NetBSD ld.elf_so' 10146 fi 10147 shlibpath_var=LD_LIBRARY_PATH 10148 shlibpath_overrides_runpath=yes 10149 hardcode_into_libs=yes 10150 ;; 10151 10152newsos6) 10153 version_type=linux 10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10155 shlibpath_var=LD_LIBRARY_PATH 10156 shlibpath_overrides_runpath=yes 10157 ;; 10158 10159nto-qnx*) 10160 version_type=linux 10161 need_lib_prefix=no 10162 need_version=no 10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10164 soname_spec='${libname}${release}${shared_ext}$major' 10165 shlibpath_var=LD_LIBRARY_PATH 10166 shlibpath_overrides_runpath=yes 10167 ;; 10168 10169openbsd*) 10170 version_type=sunos 10171 need_lib_prefix=no 10172 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10173 case $host_os in 10174 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10175 *) need_version=no ;; 10176 esac 10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10179 shlibpath_var=LD_LIBRARY_PATH 10180 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10181 case $host_os in 10182 openbsd2.[89] | openbsd2.[89].*) 10183 shlibpath_overrides_runpath=no 10184 ;; 10185 *) 10186 shlibpath_overrides_runpath=yes 10187 ;; 10188 esac 10189 else 10190 shlibpath_overrides_runpath=yes 10191 fi 10192 ;; 10193 10194os2*) 10195 libname_spec='$name' 10196 shrext_cmds=".dll" 10197 need_lib_prefix=no 10198 library_names_spec='$libname${shared_ext} $libname.a' 10199 dynamic_linker='OS/2 ld.exe' 10200 shlibpath_var=LIBPATH 10201 ;; 10202 10203osf3* | osf4* | osf5*) 10204 version_type=osf 10205 need_lib_prefix=no 10206 need_version=no 10207 soname_spec='${libname}${release}${shared_ext}$major' 10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10209 shlibpath_var=LD_LIBRARY_PATH 10210 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10211 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10212 ;; 10213 10214sco3.2v5*) 10215 version_type=osf 10216 soname_spec='${libname}${release}${shared_ext}$major' 10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10218 shlibpath_var=LD_LIBRARY_PATH 10219 ;; 10220 10221solaris*) 10222 version_type=linux 10223 need_lib_prefix=no 10224 need_version=no 10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10226 soname_spec='${libname}${release}${shared_ext}$major' 10227 shlibpath_var=LD_LIBRARY_PATH 10228 shlibpath_overrides_runpath=yes 10229 hardcode_into_libs=yes 10230 # ldd complains unless libraries are executable 10231 postinstall_cmds='chmod +x $lib' 10232 ;; 10233 10234sunos4*) 10235 version_type=sunos 10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10238 shlibpath_var=LD_LIBRARY_PATH 10239 shlibpath_overrides_runpath=yes 10240 if test "$with_gnu_ld" = yes; then 10241 need_lib_prefix=no 10242 fi 10243 need_version=yes 10244 ;; 10245 10246sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10247 version_type=linux 10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10249 soname_spec='${libname}${release}${shared_ext}$major' 10250 shlibpath_var=LD_LIBRARY_PATH 10251 case $host_vendor in 10252 sni) 10253 shlibpath_overrides_runpath=no 10254 need_lib_prefix=no 10255 export_dynamic_flag_spec='${wl}-Blargedynsym' 10256 runpath_var=LD_RUN_PATH 10257 ;; 10258 siemens) 10259 need_lib_prefix=no 10260 ;; 10261 motorola) 10262 need_lib_prefix=no 10263 need_version=no 10264 shlibpath_overrides_runpath=no 10265 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10266 ;; 10267 esac 10268 ;; 10269 10270sysv4*MP*) 10271 if test -d /usr/nec ;then 10272 version_type=linux 10273 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10274 soname_spec='$libname${shared_ext}.$major' 10275 shlibpath_var=LD_LIBRARY_PATH 10276 fi 10277 ;; 10278 10279uts4*) 10280 version_type=linux 10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10282 soname_spec='${libname}${release}${shared_ext}$major' 10283 shlibpath_var=LD_LIBRARY_PATH 10284 ;; 10285 10286*) 10287 dynamic_linker=no 10288 ;; 10289esac 10290echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10291echo "${ECHO_T}$dynamic_linker" >&6 10292test "$dynamic_linker" = no && can_build_shared=no 10293 10294echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10295echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10296hardcode_action= 10297if test -n "$hardcode_libdir_flag_spec" || \ 10298 test -n "$runpath_var" || \ 10299 test "X$hardcode_automatic" = "Xyes" ; then 10300 10301 # We can hardcode non-existant directories. 10302 if test "$hardcode_direct" != no && 10303 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10304 # have to relink, otherwise we might link with an installed library 10305 # when we should be linking with a yet-to-be-installed one 10306 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10307 test "$hardcode_minus_L" != no; then 10308 # Linking always hardcodes the temporary library directory. 10309 hardcode_action=relink 10310 else 10311 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10312 hardcode_action=immediate 10313 fi 10314else 10315 # We cannot hardcode anything, or else we can only hardcode existing 10316 # directories. 10317 hardcode_action=unsupported 10318fi 10319echo "$as_me:$LINENO: result: $hardcode_action" >&5 10320echo "${ECHO_T}$hardcode_action" >&6 10321 10322if test "$hardcode_action" = relink; then 10323 # Fast installation is not supported 10324 enable_fast_install=no 10325elif test "$shlibpath_overrides_runpath" = yes || 10326 test "$enable_shared" = no; then 10327 # Fast installation is not necessary 10328 enable_fast_install=needless 10329fi 10330 10331striplib= 10332old_striplib= 10333echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10334echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10335if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10336 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10337 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10338 echo "$as_me:$LINENO: result: yes" >&5 10339echo "${ECHO_T}yes" >&6 10340else 10341# FIXME - insert some real tests, host_os isn't really good enough 10342 case $host_os in 10343 darwin*) 10344 if test -n "$STRIP" ; then 10345 striplib="$STRIP -x" 10346 echo "$as_me:$LINENO: result: yes" >&5 10347echo "${ECHO_T}yes" >&6 10348 else 10349 echo "$as_me:$LINENO: result: no" >&5 10350echo "${ECHO_T}no" >&6 10351fi 10352 ;; 10353 *) 10354 echo "$as_me:$LINENO: result: no" >&5 10355echo "${ECHO_T}no" >&6 10356 ;; 10357 esac 10358fi 10359 10360if test "x$enable_dlopen" != xyes; then 10361 enable_dlopen=unknown 10362 enable_dlopen_self=unknown 10363 enable_dlopen_self_static=unknown 10364else 10365 lt_cv_dlopen=no 10366 lt_cv_dlopen_libs= 10367 10368 case $host_os in 10369 beos*) 10370 lt_cv_dlopen="load_add_on" 10371 lt_cv_dlopen_libs= 10372 lt_cv_dlopen_self=yes 10373 ;; 10374 10375 mingw* | pw32*) 10376 lt_cv_dlopen="LoadLibrary" 10377 lt_cv_dlopen_libs= 10378 ;; 10379 10380 cygwin*) 10381 lt_cv_dlopen="dlopen" 10382 lt_cv_dlopen_libs= 10383 ;; 10384 10385 darwin*) 10386 # if libdl is installed we need to link against it 10387 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10388echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10389if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10390 echo $ECHO_N "(cached) $ECHO_C" >&6 10391else 10392 ac_check_lib_save_LIBS=$LIBS 10393LIBS="-ldl $LIBS" 10394cat >conftest.$ac_ext <<_ACEOF 10395/* confdefs.h. */ 10396_ACEOF 10397cat confdefs.h >>conftest.$ac_ext 10398cat >>conftest.$ac_ext <<_ACEOF 10399/* end confdefs.h. */ 10400 10401/* Override any gcc2 internal prototype to avoid an error. */ 10402#ifdef __cplusplus 10403extern "C" 10404#endif 10405/* We use char because int might match the return type of a gcc2 10406 builtin and then its argument prototype would still apply. */ 10407char dlopen (); 10408int 10409main () 10410{ 10411dlopen (); 10412 ; 10413 return 0; 10414} 10415_ACEOF 10416rm -f conftest.$ac_objext conftest$ac_exeext 10417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10418 (eval $ac_link) 2>conftest.er1 10419 ac_status=$? 10420 grep -v '^ *+' conftest.er1 >conftest.err 10421 rm -f conftest.er1 10422 cat conftest.err >&5 10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10424 (exit $ac_status); } && 10425 { ac_try='test -z "$ac_c_werror_flag" 10426 || test ! -s conftest.err' 10427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10428 (eval $ac_try) 2>&5 10429 ac_status=$? 10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10431 (exit $ac_status); }; } && 10432 { ac_try='test -s conftest$ac_exeext' 10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10434 (eval $ac_try) 2>&5 10435 ac_status=$? 10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10437 (exit $ac_status); }; }; then 10438 ac_cv_lib_dl_dlopen=yes 10439else 10440 echo "$as_me: failed program was:" >&5 10441sed 's/^/| /' conftest.$ac_ext >&5 10442 10443ac_cv_lib_dl_dlopen=no 10444fi 10445rm -f conftest.err conftest.$ac_objext \ 10446 conftest$ac_exeext conftest.$ac_ext 10447LIBS=$ac_check_lib_save_LIBS 10448fi 10449echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10451if test $ac_cv_lib_dl_dlopen = yes; then 10452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10453else 10454 10455 lt_cv_dlopen="dyld" 10456 lt_cv_dlopen_libs= 10457 lt_cv_dlopen_self=yes 10458 10459fi 10460 10461 ;; 10462 10463 *) 10464 echo "$as_me:$LINENO: checking for shl_load" >&5 10465echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10466if test "${ac_cv_func_shl_load+set}" = set; then 10467 echo $ECHO_N "(cached) $ECHO_C" >&6 10468else 10469 cat >conftest.$ac_ext <<_ACEOF 10470/* confdefs.h. */ 10471_ACEOF 10472cat confdefs.h >>conftest.$ac_ext 10473cat >>conftest.$ac_ext <<_ACEOF 10474/* end confdefs.h. */ 10475/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10476 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10477#define shl_load innocuous_shl_load 10478 10479/* System header to define __stub macros and hopefully few prototypes, 10480 which can conflict with char shl_load (); below. 10481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10482 <limits.h> exists even on freestanding compilers. */ 10483 10484#ifdef __STDC__ 10485# include <limits.h> 10486#else 10487# include <assert.h> 10488#endif 10489 10490#undef shl_load 10491 10492/* Override any gcc2 internal prototype to avoid an error. */ 10493#ifdef __cplusplus 10494extern "C" 10495{ 10496#endif 10497/* We use char because int might match the return type of a gcc2 10498 builtin and then its argument prototype would still apply. */ 10499char shl_load (); 10500/* The GNU C library defines this for functions which it implements 10501 to always fail with ENOSYS. Some functions are actually named 10502 something starting with __ and the normal name is an alias. */ 10503#if defined (__stub_shl_load) || defined (__stub___shl_load) 10504choke me 10505#else 10506char (*f) () = shl_load; 10507#endif 10508#ifdef __cplusplus 10509} 10510#endif 10511 10512int 10513main () 10514{ 10515return f != shl_load; 10516 ; 10517 return 0; 10518} 10519_ACEOF 10520rm -f conftest.$ac_objext conftest$ac_exeext 10521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10522 (eval $ac_link) 2>conftest.er1 10523 ac_status=$? 10524 grep -v '^ *+' conftest.er1 >conftest.err 10525 rm -f conftest.er1 10526 cat conftest.err >&5 10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10528 (exit $ac_status); } && 10529 { ac_try='test -z "$ac_c_werror_flag" 10530 || test ! -s conftest.err' 10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10532 (eval $ac_try) 2>&5 10533 ac_status=$? 10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10535 (exit $ac_status); }; } && 10536 { ac_try='test -s conftest$ac_exeext' 10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10538 (eval $ac_try) 2>&5 10539 ac_status=$? 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10541 (exit $ac_status); }; }; then 10542 ac_cv_func_shl_load=yes 10543else 10544 echo "$as_me: failed program was:" >&5 10545sed 's/^/| /' conftest.$ac_ext >&5 10546 10547ac_cv_func_shl_load=no 10548fi 10549rm -f conftest.err conftest.$ac_objext \ 10550 conftest$ac_exeext conftest.$ac_ext 10551fi 10552echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10553echo "${ECHO_T}$ac_cv_func_shl_load" >&6 10554if test $ac_cv_func_shl_load = yes; then 10555 lt_cv_dlopen="shl_load" 10556else 10557 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10558echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 10559if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10560 echo $ECHO_N "(cached) $ECHO_C" >&6 10561else 10562 ac_check_lib_save_LIBS=$LIBS 10563LIBS="-ldld $LIBS" 10564cat >conftest.$ac_ext <<_ACEOF 10565/* confdefs.h. */ 10566_ACEOF 10567cat confdefs.h >>conftest.$ac_ext 10568cat >>conftest.$ac_ext <<_ACEOF 10569/* end confdefs.h. */ 10570 10571/* Override any gcc2 internal prototype to avoid an error. */ 10572#ifdef __cplusplus 10573extern "C" 10574#endif 10575/* We use char because int might match the return type of a gcc2 10576 builtin and then its argument prototype would still apply. */ 10577char shl_load (); 10578int 10579main () 10580{ 10581shl_load (); 10582 ; 10583 return 0; 10584} 10585_ACEOF 10586rm -f conftest.$ac_objext conftest$ac_exeext 10587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10588 (eval $ac_link) 2>conftest.er1 10589 ac_status=$? 10590 grep -v '^ *+' conftest.er1 >conftest.err 10591 rm -f conftest.er1 10592 cat conftest.err >&5 10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10594 (exit $ac_status); } && 10595 { ac_try='test -z "$ac_c_werror_flag" 10596 || test ! -s conftest.err' 10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10598 (eval $ac_try) 2>&5 10599 ac_status=$? 10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10601 (exit $ac_status); }; } && 10602 { ac_try='test -s conftest$ac_exeext' 10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10604 (eval $ac_try) 2>&5 10605 ac_status=$? 10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10607 (exit $ac_status); }; }; then 10608 ac_cv_lib_dld_shl_load=yes 10609else 10610 echo "$as_me: failed program was:" >&5 10611sed 's/^/| /' conftest.$ac_ext >&5 10612 10613ac_cv_lib_dld_shl_load=no 10614fi 10615rm -f conftest.err conftest.$ac_objext \ 10616 conftest$ac_exeext conftest.$ac_ext 10617LIBS=$ac_check_lib_save_LIBS 10618fi 10619echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10620echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 10621if test $ac_cv_lib_dld_shl_load = yes; then 10622 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10623else 10624 echo "$as_me:$LINENO: checking for dlopen" >&5 10625echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 10626if test "${ac_cv_func_dlopen+set}" = set; then 10627 echo $ECHO_N "(cached) $ECHO_C" >&6 10628else 10629 cat >conftest.$ac_ext <<_ACEOF 10630/* confdefs.h. */ 10631_ACEOF 10632cat confdefs.h >>conftest.$ac_ext 10633cat >>conftest.$ac_ext <<_ACEOF 10634/* end confdefs.h. */ 10635/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10636 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10637#define dlopen innocuous_dlopen 10638 10639/* System header to define __stub macros and hopefully few prototypes, 10640 which can conflict with char dlopen (); below. 10641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10642 <limits.h> exists even on freestanding compilers. */ 10643 10644#ifdef __STDC__ 10645# include <limits.h> 10646#else 10647# include <assert.h> 10648#endif 10649 10650#undef dlopen 10651 10652/* Override any gcc2 internal prototype to avoid an error. */ 10653#ifdef __cplusplus 10654extern "C" 10655{ 10656#endif 10657/* We use char because int might match the return type of a gcc2 10658 builtin and then its argument prototype would still apply. */ 10659char dlopen (); 10660/* The GNU C library defines this for functions which it implements 10661 to always fail with ENOSYS. Some functions are actually named 10662 something starting with __ and the normal name is an alias. */ 10663#if defined (__stub_dlopen) || defined (__stub___dlopen) 10664choke me 10665#else 10666char (*f) () = dlopen; 10667#endif 10668#ifdef __cplusplus 10669} 10670#endif 10671 10672int 10673main () 10674{ 10675return f != dlopen; 10676 ; 10677 return 0; 10678} 10679_ACEOF 10680rm -f conftest.$ac_objext conftest$ac_exeext 10681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10682 (eval $ac_link) 2>conftest.er1 10683 ac_status=$? 10684 grep -v '^ *+' conftest.er1 >conftest.err 10685 rm -f conftest.er1 10686 cat conftest.err >&5 10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10688 (exit $ac_status); } && 10689 { ac_try='test -z "$ac_c_werror_flag" 10690 || test ! -s conftest.err' 10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10692 (eval $ac_try) 2>&5 10693 ac_status=$? 10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10695 (exit $ac_status); }; } && 10696 { ac_try='test -s conftest$ac_exeext' 10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10698 (eval $ac_try) 2>&5 10699 ac_status=$? 10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10701 (exit $ac_status); }; }; then 10702 ac_cv_func_dlopen=yes 10703else 10704 echo "$as_me: failed program was:" >&5 10705sed 's/^/| /' conftest.$ac_ext >&5 10706 10707ac_cv_func_dlopen=no 10708fi 10709rm -f conftest.err conftest.$ac_objext \ 10710 conftest$ac_exeext conftest.$ac_ext 10711fi 10712echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10713echo "${ECHO_T}$ac_cv_func_dlopen" >&6 10714if test $ac_cv_func_dlopen = yes; then 10715 lt_cv_dlopen="dlopen" 10716else 10717 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10718echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10719if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10720 echo $ECHO_N "(cached) $ECHO_C" >&6 10721else 10722 ac_check_lib_save_LIBS=$LIBS 10723LIBS="-ldl $LIBS" 10724cat >conftest.$ac_ext <<_ACEOF 10725/* confdefs.h. */ 10726_ACEOF 10727cat confdefs.h >>conftest.$ac_ext 10728cat >>conftest.$ac_ext <<_ACEOF 10729/* end confdefs.h. */ 10730 10731/* Override any gcc2 internal prototype to avoid an error. */ 10732#ifdef __cplusplus 10733extern "C" 10734#endif 10735/* We use char because int might match the return type of a gcc2 10736 builtin and then its argument prototype would still apply. */ 10737char dlopen (); 10738int 10739main () 10740{ 10741dlopen (); 10742 ; 10743 return 0; 10744} 10745_ACEOF 10746rm -f conftest.$ac_objext conftest$ac_exeext 10747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10748 (eval $ac_link) 2>conftest.er1 10749 ac_status=$? 10750 grep -v '^ *+' conftest.er1 >conftest.err 10751 rm -f conftest.er1 10752 cat conftest.err >&5 10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10754 (exit $ac_status); } && 10755 { ac_try='test -z "$ac_c_werror_flag" 10756 || test ! -s conftest.err' 10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10758 (eval $ac_try) 2>&5 10759 ac_status=$? 10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10761 (exit $ac_status); }; } && 10762 { ac_try='test -s conftest$ac_exeext' 10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10764 (eval $ac_try) 2>&5 10765 ac_status=$? 10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10767 (exit $ac_status); }; }; then 10768 ac_cv_lib_dl_dlopen=yes 10769else 10770 echo "$as_me: failed program was:" >&5 10771sed 's/^/| /' conftest.$ac_ext >&5 10772 10773ac_cv_lib_dl_dlopen=no 10774fi 10775rm -f conftest.err conftest.$ac_objext \ 10776 conftest$ac_exeext conftest.$ac_ext 10777LIBS=$ac_check_lib_save_LIBS 10778fi 10779echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10780echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10781if test $ac_cv_lib_dl_dlopen = yes; then 10782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10783else 10784 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10785echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 10786if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10787 echo $ECHO_N "(cached) $ECHO_C" >&6 10788else 10789 ac_check_lib_save_LIBS=$LIBS 10790LIBS="-lsvld $LIBS" 10791cat >conftest.$ac_ext <<_ACEOF 10792/* confdefs.h. */ 10793_ACEOF 10794cat confdefs.h >>conftest.$ac_ext 10795cat >>conftest.$ac_ext <<_ACEOF 10796/* end confdefs.h. */ 10797 10798/* Override any gcc2 internal prototype to avoid an error. */ 10799#ifdef __cplusplus 10800extern "C" 10801#endif 10802/* We use char because int might match the return type of a gcc2 10803 builtin and then its argument prototype would still apply. */ 10804char dlopen (); 10805int 10806main () 10807{ 10808dlopen (); 10809 ; 10810 return 0; 10811} 10812_ACEOF 10813rm -f conftest.$ac_objext conftest$ac_exeext 10814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10815 (eval $ac_link) 2>conftest.er1 10816 ac_status=$? 10817 grep -v '^ *+' conftest.er1 >conftest.err 10818 rm -f conftest.er1 10819 cat conftest.err >&5 10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10821 (exit $ac_status); } && 10822 { ac_try='test -z "$ac_c_werror_flag" 10823 || test ! -s conftest.err' 10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10825 (eval $ac_try) 2>&5 10826 ac_status=$? 10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10828 (exit $ac_status); }; } && 10829 { ac_try='test -s conftest$ac_exeext' 10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10831 (eval $ac_try) 2>&5 10832 ac_status=$? 10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10834 (exit $ac_status); }; }; then 10835 ac_cv_lib_svld_dlopen=yes 10836else 10837 echo "$as_me: failed program was:" >&5 10838sed 's/^/| /' conftest.$ac_ext >&5 10839 10840ac_cv_lib_svld_dlopen=no 10841fi 10842rm -f conftest.err conftest.$ac_objext \ 10843 conftest$ac_exeext conftest.$ac_ext 10844LIBS=$ac_check_lib_save_LIBS 10845fi 10846echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10847echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 10848if test $ac_cv_lib_svld_dlopen = yes; then 10849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10850else 10851 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10852echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 10853if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10854 echo $ECHO_N "(cached) $ECHO_C" >&6 10855else 10856 ac_check_lib_save_LIBS=$LIBS 10857LIBS="-ldld $LIBS" 10858cat >conftest.$ac_ext <<_ACEOF 10859/* confdefs.h. */ 10860_ACEOF 10861cat confdefs.h >>conftest.$ac_ext 10862cat >>conftest.$ac_ext <<_ACEOF 10863/* end confdefs.h. */ 10864 10865/* Override any gcc2 internal prototype to avoid an error. */ 10866#ifdef __cplusplus 10867extern "C" 10868#endif 10869/* We use char because int might match the return type of a gcc2 10870 builtin and then its argument prototype would still apply. */ 10871char dld_link (); 10872int 10873main () 10874{ 10875dld_link (); 10876 ; 10877 return 0; 10878} 10879_ACEOF 10880rm -f conftest.$ac_objext conftest$ac_exeext 10881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10882 (eval $ac_link) 2>conftest.er1 10883 ac_status=$? 10884 grep -v '^ *+' conftest.er1 >conftest.err 10885 rm -f conftest.er1 10886 cat conftest.err >&5 10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10888 (exit $ac_status); } && 10889 { ac_try='test -z "$ac_c_werror_flag" 10890 || test ! -s conftest.err' 10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10892 (eval $ac_try) 2>&5 10893 ac_status=$? 10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10895 (exit $ac_status); }; } && 10896 { ac_try='test -s conftest$ac_exeext' 10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10898 (eval $ac_try) 2>&5 10899 ac_status=$? 10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10901 (exit $ac_status); }; }; then 10902 ac_cv_lib_dld_dld_link=yes 10903else 10904 echo "$as_me: failed program was:" >&5 10905sed 's/^/| /' conftest.$ac_ext >&5 10906 10907ac_cv_lib_dld_dld_link=no 10908fi 10909rm -f conftest.err conftest.$ac_objext \ 10910 conftest$ac_exeext conftest.$ac_ext 10911LIBS=$ac_check_lib_save_LIBS 10912fi 10913echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10914echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 10915if test $ac_cv_lib_dld_dld_link = yes; then 10916 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10917fi 10918 10919 10920fi 10921 10922 10923fi 10924 10925 10926fi 10927 10928 10929fi 10930 10931 10932fi 10933 10934 ;; 10935 esac 10936 10937 if test "x$lt_cv_dlopen" != xno; then 10938 enable_dlopen=yes 10939 else 10940 enable_dlopen=no 10941 fi 10942 10943 case $lt_cv_dlopen in 10944 dlopen) 10945 save_CPPFLAGS="$CPPFLAGS" 10946 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10947 10948 save_LDFLAGS="$LDFLAGS" 10949 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10950 10951 save_LIBS="$LIBS" 10952 LIBS="$lt_cv_dlopen_libs $LIBS" 10953 10954 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10955echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 10956if test "${lt_cv_dlopen_self+set}" = set; then 10957 echo $ECHO_N "(cached) $ECHO_C" >&6 10958else 10959 if test "$cross_compiling" = yes; then : 10960 lt_cv_dlopen_self=cross 10961else 10962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10963 lt_status=$lt_dlunknown 10964 cat > conftest.$ac_ext <<EOF 10965#line __oline__ "configure" 10966#include "confdefs.h" 10967 10968#if HAVE_DLFCN_H 10969#include <dlfcn.h> 10970#endif 10971 10972#include <stdio.h> 10973 10974#ifdef RTLD_GLOBAL 10975# define LT_DLGLOBAL RTLD_GLOBAL 10976#else 10977# ifdef DL_GLOBAL 10978# define LT_DLGLOBAL DL_GLOBAL 10979# else 10980# define LT_DLGLOBAL 0 10981# endif 10982#endif 10983 10984/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10985 find out it does not work in some platform. */ 10986#ifndef LT_DLLAZY_OR_NOW 10987# ifdef RTLD_LAZY 10988# define LT_DLLAZY_OR_NOW RTLD_LAZY 10989# else 10990# ifdef DL_LAZY 10991# define LT_DLLAZY_OR_NOW DL_LAZY 10992# else 10993# ifdef RTLD_NOW 10994# define LT_DLLAZY_OR_NOW RTLD_NOW 10995# else 10996# ifdef DL_NOW 10997# define LT_DLLAZY_OR_NOW DL_NOW 10998# else 10999# define LT_DLLAZY_OR_NOW 0 11000# endif 11001# endif 11002# endif 11003# endif 11004#endif 11005 11006#ifdef __cplusplus 11007extern "C" void exit (int); 11008#endif 11009 11010void fnord() { int i=42;} 11011int main () 11012{ 11013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11014 int status = $lt_dlunknown; 11015 11016 if (self) 11017 { 11018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11020 /* dlclose (self); */ 11021 } 11022 11023 exit (status); 11024} 11025EOF 11026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11027 (eval $ac_link) 2>&5 11028 ac_status=$? 11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11030 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11031 (./conftest; exit; ) >&5 2>/dev/null 11032 lt_status=$? 11033 case x$lt_status in 11034 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11035 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11036 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 11037 esac 11038 else : 11039 # compilation failed 11040 lt_cv_dlopen_self=no 11041 fi 11042fi 11043rm -fr conftest* 11044 11045 11046fi 11047echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11048echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11049 11050 if test "x$lt_cv_dlopen_self" = xyes; then 11051 LDFLAGS="$LDFLAGS $link_static_flag" 11052 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11053echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11054if test "${lt_cv_dlopen_self_static+set}" = set; then 11055 echo $ECHO_N "(cached) $ECHO_C" >&6 11056else 11057 if test "$cross_compiling" = yes; then : 11058 lt_cv_dlopen_self_static=cross 11059else 11060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11061 lt_status=$lt_dlunknown 11062 cat > conftest.$ac_ext <<EOF 11063#line __oline__ "configure" 11064#include "confdefs.h" 11065 11066#if HAVE_DLFCN_H 11067#include <dlfcn.h> 11068#endif 11069 11070#include <stdio.h> 11071 11072#ifdef RTLD_GLOBAL 11073# define LT_DLGLOBAL RTLD_GLOBAL 11074#else 11075# ifdef DL_GLOBAL 11076# define LT_DLGLOBAL DL_GLOBAL 11077# else 11078# define LT_DLGLOBAL 0 11079# endif 11080#endif 11081 11082/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11083 find out it does not work in some platform. */ 11084#ifndef LT_DLLAZY_OR_NOW 11085# ifdef RTLD_LAZY 11086# define LT_DLLAZY_OR_NOW RTLD_LAZY 11087# else 11088# ifdef DL_LAZY 11089# define LT_DLLAZY_OR_NOW DL_LAZY 11090# else 11091# ifdef RTLD_NOW 11092# define LT_DLLAZY_OR_NOW RTLD_NOW 11093# else 11094# ifdef DL_NOW 11095# define LT_DLLAZY_OR_NOW DL_NOW 11096# else 11097# define LT_DLLAZY_OR_NOW 0 11098# endif 11099# endif 11100# endif 11101# endif 11102#endif 11103 11104#ifdef __cplusplus 11105extern "C" void exit (int); 11106#endif 11107 11108void fnord() { int i=42;} 11109int main () 11110{ 11111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11112 int status = $lt_dlunknown; 11113 11114 if (self) 11115 { 11116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11117 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11118 /* dlclose (self); */ 11119 } 11120 11121 exit (status); 11122} 11123EOF 11124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11125 (eval $ac_link) 2>&5 11126 ac_status=$? 11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11128 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11129 (./conftest; exit; ) >&5 2>/dev/null 11130 lt_status=$? 11131 case x$lt_status in 11132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11134 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 11135 esac 11136 else : 11137 # compilation failed 11138 lt_cv_dlopen_self_static=no 11139 fi 11140fi 11141rm -fr conftest* 11142 11143 11144fi 11145echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11146echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11147 fi 11148 11149 CPPFLAGS="$save_CPPFLAGS" 11150 LDFLAGS="$save_LDFLAGS" 11151 LIBS="$save_LIBS" 11152 ;; 11153 esac 11154 11155 case $lt_cv_dlopen_self in 11156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11157 *) enable_dlopen_self=unknown ;; 11158 esac 11159 11160 case $lt_cv_dlopen_self_static in 11161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11162 *) enable_dlopen_self_static=unknown ;; 11163 esac 11164fi 11165 11166 11167# Report which librarie types wil actually be built 11168echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11169echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 11170echo "$as_me:$LINENO: result: $can_build_shared" >&5 11171echo "${ECHO_T}$can_build_shared" >&6 11172 11173echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11174echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 11175test "$can_build_shared" = "no" && enable_shared=no 11176 11177# On AIX, shared libraries and static libraries use the same namespace, and 11178# are all built from PIC. 11179case $host_os in 11180aix3*) 11181 test "$enable_shared" = yes && enable_static=no 11182 if test -n "$RANLIB"; then 11183 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11184 postinstall_cmds='$RANLIB $lib' 11185 fi 11186 ;; 11187 11188aix4* | aix5*) 11189 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11190 test "$enable_shared" = yes && enable_static=no 11191 fi 11192 ;; 11193esac 11194echo "$as_me:$LINENO: result: $enable_shared" >&5 11195echo "${ECHO_T}$enable_shared" >&6 11196 11197echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11198echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 11199# Make sure either enable_shared or enable_static is yes. 11200test "$enable_shared" = yes || enable_static=yes 11201echo "$as_me:$LINENO: result: $enable_static" >&5 11202echo "${ECHO_T}$enable_static" >&6 11203 11204# The else clause should only fire when bootstrapping the 11205# libtool distribution, otherwise you forgot to ship ltmain.sh 11206# with your package, and you will get complaints that there are 11207# no rules to generate ltmain.sh. 11208if test -f "$ltmain"; then 11209 # See if we are running on zsh, and set the options which allow our commands through 11210 # without removal of \ escapes. 11211 if test -n "${ZSH_VERSION+set}" ; then 11212 setopt NO_GLOB_SUBST 11213 fi 11214 # Now quote all the things that may contain metacharacters while being 11215 # careful not to overquote the AC_SUBSTed values. We take copies of the 11216 # variables and quote the copies for generation of the libtool script. 11217 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 11218 SED SHELL STRIP \ 11219 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11220 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11221 deplibs_check_method reload_flag reload_cmds need_locks \ 11222 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11223 lt_cv_sys_global_symbol_to_c_name_address \ 11224 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11225 old_postinstall_cmds old_postuninstall_cmds \ 11226 compiler \ 11227 CC \ 11228 LD \ 11229 lt_prog_compiler_wl \ 11230 lt_prog_compiler_pic \ 11231 lt_prog_compiler_static \ 11232 lt_prog_compiler_no_builtin_flag \ 11233 export_dynamic_flag_spec \ 11234 thread_safe_flag_spec \ 11235 whole_archive_flag_spec \ 11236 enable_shared_with_static_runtimes \ 11237 old_archive_cmds \ 11238 old_archive_from_new_cmds \ 11239 predep_objects \ 11240 postdep_objects \ 11241 predeps \ 11242 postdeps \ 11243 compiler_lib_search_path \ 11244 archive_cmds \ 11245 archive_expsym_cmds \ 11246 postinstall_cmds \ 11247 postuninstall_cmds \ 11248 old_archive_from_expsyms_cmds \ 11249 allow_undefined_flag \ 11250 no_undefined_flag \ 11251 export_symbols_cmds \ 11252 hardcode_libdir_flag_spec \ 11253 hardcode_libdir_flag_spec_ld \ 11254 hardcode_libdir_separator \ 11255 hardcode_automatic \ 11256 module_cmds \ 11257 module_expsym_cmds \ 11258 lt_cv_prog_compiler_c_o \ 11259 exclude_expsyms \ 11260 include_expsyms; do 11261 11262 case $var in 11263 old_archive_cmds | \ 11264 old_archive_from_new_cmds | \ 11265 archive_cmds | \ 11266 archive_expsym_cmds | \ 11267 module_cmds | \ 11268 module_expsym_cmds | \ 11269 old_archive_from_expsyms_cmds | \ 11270 export_symbols_cmds | \ 11271 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11272 postinstall_cmds | postuninstall_cmds | \ 11273 old_postinstall_cmds | old_postuninstall_cmds | \ 11274 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11275 # Double-quote double-evaled strings. 11276 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11277 ;; 11278 *) 11279 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11280 ;; 11281 esac 11282 done 11283 11284 case $lt_echo in 11285 *'\$0 --fallback-echo"') 11286 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11287 ;; 11288 esac 11289 11290cfgfile="${ofile}T" 11291 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11292 $rm -f "$cfgfile" 11293 { echo "$as_me:$LINENO: creating $ofile" >&5 11294echo "$as_me: creating $ofile" >&6;} 11295 11296 cat <<__EOF__ >> "$cfgfile" 11297#! $SHELL 11298 11299# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11300# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11301# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11302# 11303# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11304# Free Software Foundation, Inc. 11305# 11306# This file is part of GNU Libtool: 11307# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11308# 11309# This program is free software; you can redistribute it and/or modify 11310# it under the terms of the GNU General Public License as published by 11311# the Free Software Foundation; either version 2 of the License, or 11312# (at your option) any later version. 11313# 11314# This program is distributed in the hope that it will be useful, but 11315# WITHOUT ANY WARRANTY; without even the implied warranty of 11316# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11317# General Public License for more details. 11318# 11319# You should have received a copy of the GNU General Public License 11320# along with this program; if not, write to the Free Software 11321# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11322# 11323# As a special exception to the GNU General Public License, if you 11324# distribute this file as part of a program that contains a 11325# configuration script generated by Autoconf, you may include it under 11326# the same distribution terms that you use for the rest of that program. 11327 11328# A sed program that does not truncate output. 11329SED=$lt_SED 11330 11331# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11332Xsed="$SED -e 1s/^X//" 11333 11334# The HP-UX ksh and POSIX shell print the target directory to stdout 11335# if CDPATH is set. 11336(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11337 11338# The names of the tagged configurations supported by this script. 11339available_tags= 11340 11341# ### BEGIN LIBTOOL CONFIG 11342 11343# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11344 11345# Shell to use when invoking shell scripts. 11346SHELL=$lt_SHELL 11347 11348# Whether or not to build shared libraries. 11349build_libtool_libs=$enable_shared 11350 11351# Whether or not to build static libraries. 11352build_old_libs=$enable_static 11353 11354# Whether or not to add -lc for building shared libraries. 11355build_libtool_need_lc=$archive_cmds_need_lc 11356 11357# Whether or not to disallow shared libs when runtime libs are static 11358allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11359 11360# Whether or not to optimize for fast installation. 11361fast_install=$enable_fast_install 11362 11363# The host system. 11364host_alias=$host_alias 11365host=$host 11366host_os=$host_os 11367 11368# The build system. 11369build_alias=$build_alias 11370build=$build 11371build_os=$build_os 11372 11373# An echo program that does not interpret backslashes. 11374echo=$lt_echo 11375 11376# The archiver. 11377AR=$lt_AR 11378AR_FLAGS=$lt_AR_FLAGS 11379 11380# A C compiler. 11381LTCC=$lt_LTCC 11382 11383# A language-specific compiler. 11384CC=$lt_compiler 11385 11386# Is the compiler the GNU C compiler? 11387with_gcc=$GCC 11388 11389# An ERE matcher. 11390EGREP=$lt_EGREP 11391 11392# The linker used to build libraries. 11393LD=$lt_LD 11394 11395# Whether we need hard or soft links. 11396LN_S=$lt_LN_S 11397 11398# A BSD-compatible nm program. 11399NM=$lt_NM 11400 11401# A symbol stripping program 11402STRIP=$lt_STRIP 11403 11404# Used to examine libraries when file_magic_cmd begins "file" 11405MAGIC_CMD=$MAGIC_CMD 11406 11407# Used on cygwin: DLL creation program. 11408DLLTOOL="$DLLTOOL" 11409 11410# Used on cygwin: object dumper. 11411OBJDUMP="$OBJDUMP" 11412 11413# Used on cygwin: assembler. 11414AS="$AS" 11415 11416# The name of the directory that contains temporary libtool files. 11417objdir=$objdir 11418 11419# How to create reloadable object files. 11420reload_flag=$lt_reload_flag 11421reload_cmds=$lt_reload_cmds 11422 11423# How to pass a linker flag through the compiler. 11424wl=$lt_lt_prog_compiler_wl 11425 11426# Object file suffix (normally "o"). 11427objext="$ac_objext" 11428 11429# Old archive suffix (normally "a"). 11430libext="$libext" 11431 11432# Shared library suffix (normally ".so"). 11433shrext_cmds='$shrext_cmds' 11434 11435# Executable file suffix (normally ""). 11436exeext="$exeext" 11437 11438# Additional compiler flags for building library objects. 11439pic_flag=$lt_lt_prog_compiler_pic 11440pic_mode=$pic_mode 11441 11442# What is the maximum length of a command? 11443max_cmd_len=$lt_cv_sys_max_cmd_len 11444 11445# Does compiler simultaneously support -c and -o options? 11446compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11447 11448# Must we lock files when doing compilation? 11449need_locks=$lt_need_locks 11450 11451# Do we need the lib prefix for modules? 11452need_lib_prefix=$need_lib_prefix 11453 11454# Do we need a version for libraries? 11455need_version=$need_version 11456 11457# Whether dlopen is supported. 11458dlopen_support=$enable_dlopen 11459 11460# Whether dlopen of programs is supported. 11461dlopen_self=$enable_dlopen_self 11462 11463# Whether dlopen of statically linked programs is supported. 11464dlopen_self_static=$enable_dlopen_self_static 11465 11466# Compiler flag to prevent dynamic linking. 11467link_static_flag=$lt_lt_prog_compiler_static 11468 11469# Compiler flag to turn off builtin functions. 11470no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11471 11472# Compiler flag to allow reflexive dlopens. 11473export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11474 11475# Compiler flag to generate shared objects directly from archives. 11476whole_archive_flag_spec=$lt_whole_archive_flag_spec 11477 11478# Compiler flag to generate thread-safe objects. 11479thread_safe_flag_spec=$lt_thread_safe_flag_spec 11480 11481# Library versioning type. 11482version_type=$version_type 11483 11484# Format of library name prefix. 11485libname_spec=$lt_libname_spec 11486 11487# List of archive names. First name is the real one, the rest are links. 11488# The last name is the one that the linker finds with -lNAME. 11489library_names_spec=$lt_library_names_spec 11490 11491# The coded name of the library, if different from the real name. 11492soname_spec=$lt_soname_spec 11493 11494# Commands used to build and install an old-style archive. 11495RANLIB=$lt_RANLIB 11496old_archive_cmds=$lt_old_archive_cmds 11497old_postinstall_cmds=$lt_old_postinstall_cmds 11498old_postuninstall_cmds=$lt_old_postuninstall_cmds 11499 11500# Create an old-style archive from a shared archive. 11501old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11502 11503# Create a temporary old-style archive to link instead of a shared archive. 11504old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11505 11506# Commands used to build and install a shared archive. 11507archive_cmds=$lt_archive_cmds 11508archive_expsym_cmds=$lt_archive_expsym_cmds 11509postinstall_cmds=$lt_postinstall_cmds 11510postuninstall_cmds=$lt_postuninstall_cmds 11511 11512# Commands used to build a loadable module (assumed same as above if empty) 11513module_cmds=$lt_module_cmds 11514module_expsym_cmds=$lt_module_expsym_cmds 11515 11516# Commands to strip libraries. 11517old_striplib=$lt_old_striplib 11518striplib=$lt_striplib 11519 11520# Dependencies to place before the objects being linked to create a 11521# shared library. 11522predep_objects=$lt_predep_objects 11523 11524# Dependencies to place after the objects being linked to create a 11525# shared library. 11526postdep_objects=$lt_postdep_objects 11527 11528# Dependencies to place before the objects being linked to create a 11529# shared library. 11530predeps=$lt_predeps 11531 11532# Dependencies to place after the objects being linked to create a 11533# shared library. 11534postdeps=$lt_postdeps 11535 11536# The library search path used internally by the compiler when linking 11537# a shared library. 11538compiler_lib_search_path=$lt_compiler_lib_search_path 11539 11540# Method to check whether dependent libraries are shared objects. 11541deplibs_check_method=$lt_deplibs_check_method 11542 11543# Command to use when deplibs_check_method == file_magic. 11544file_magic_cmd=$lt_file_magic_cmd 11545 11546# Flag that allows shared libraries with undefined symbols to be built. 11547allow_undefined_flag=$lt_allow_undefined_flag 11548 11549# Flag that forces no undefined symbols. 11550no_undefined_flag=$lt_no_undefined_flag 11551 11552# Commands used to finish a libtool library installation in a directory. 11553finish_cmds=$lt_finish_cmds 11554 11555# Same as above, but a single script fragment to be evaled but not shown. 11556finish_eval=$lt_finish_eval 11557 11558# Take the output of nm and produce a listing of raw symbols and C names. 11559global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11560 11561# Transform the output of nm in a proper C declaration 11562global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11563 11564# Transform the output of nm in a C name address pair 11565global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11566 11567# This is the shared library runtime path variable. 11568runpath_var=$runpath_var 11569 11570# This is the shared library path variable. 11571shlibpath_var=$shlibpath_var 11572 11573# Is shlibpath searched before the hard-coded library search path? 11574shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11575 11576# How to hardcode a shared library path into an executable. 11577hardcode_action=$hardcode_action 11578 11579# Whether we should hardcode library paths into libraries. 11580hardcode_into_libs=$hardcode_into_libs 11581 11582# Flag to hardcode \$libdir into a binary during linking. 11583# This must work even if \$libdir does not exist. 11584hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11585 11586# If ld is used when linking, flag to hardcode \$libdir into 11587# a binary during linking. This must work even if \$libdir does 11588# not exist. 11589hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11590 11591# Whether we need a single -rpath flag with a separated argument. 11592hardcode_libdir_separator=$lt_hardcode_libdir_separator 11593 11594# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11595# resulting binary. 11596hardcode_direct=$hardcode_direct 11597 11598# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11599# resulting binary. 11600hardcode_minus_L=$hardcode_minus_L 11601 11602# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11603# the resulting binary. 11604hardcode_shlibpath_var=$hardcode_shlibpath_var 11605 11606# Set to yes if building a shared library automatically hardcodes DIR into the library 11607# and all subsequent libraries and executables linked against it. 11608hardcode_automatic=$hardcode_automatic 11609 11610# Variables whose values should be saved in libtool wrapper scripts and 11611# restored at relink time. 11612variables_saved_for_relink="$variables_saved_for_relink" 11613 11614# Whether libtool must link a program against all its dependency libraries. 11615link_all_deplibs=$link_all_deplibs 11616 11617# Compile-time system search path for libraries 11618sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11619 11620# Run-time system search path for libraries 11621sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11622 11623# Fix the shell variable \$srcfile for the compiler. 11624fix_srcfile_path="$fix_srcfile_path" 11625 11626# Set to yes if exported symbols are required. 11627always_export_symbols=$always_export_symbols 11628 11629# The commands to list exported symbols. 11630export_symbols_cmds=$lt_export_symbols_cmds 11631 11632# The commands to extract the exported symbol list from a shared archive. 11633extract_expsyms_cmds=$lt_extract_expsyms_cmds 11634 11635# Symbols that should not be listed in the preloaded symbols. 11636exclude_expsyms=$lt_exclude_expsyms 11637 11638# Symbols that must always be exported. 11639include_expsyms=$lt_include_expsyms 11640 11641# ### END LIBTOOL CONFIG 11642 11643__EOF__ 11644 11645 11646 case $host_os in 11647 aix3*) 11648 cat <<\EOF >> "$cfgfile" 11649 11650# AIX sometimes has problems with the GCC collect2 program. For some 11651# reason, if we set the COLLECT_NAMES environment variable, the problems 11652# vanish in a puff of smoke. 11653if test "X${COLLECT_NAMES+set}" != Xset; then 11654 COLLECT_NAMES= 11655 export COLLECT_NAMES 11656fi 11657EOF 11658 ;; 11659 esac 11660 11661 # We use sed instead of cat because bash on DJGPP gets confused if 11662 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11663 # text mode, it properly converts lines to CR/LF. This bash problem 11664 # is reportedly fixed, but why not run on old versions too? 11665 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11666 11667 mv -f "$cfgfile" "$ofile" || \ 11668 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11669 chmod +x "$ofile" 11670 11671else 11672 # If there is no Makefile yet, we rely on a make rule to execute 11673 # `config.status --recheck' to rerun these tests and create the 11674 # libtool script then. 11675 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11676 if test -f "$ltmain_in"; then 11677 test -f Makefile && make "$ltmain" 11678 fi 11679fi 11680 11681 11682ac_ext=c 11683ac_cpp='$CPP $CPPFLAGS' 11684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11686ac_compiler_gnu=$ac_cv_c_compiler_gnu 11687 11688CC="$lt_save_CC" 11689 11690 11691# Check whether --with-tags or --without-tags was given. 11692if test "${with_tags+set}" = set; then 11693 withval="$with_tags" 11694 tagnames="$withval" 11695fi; 11696 11697if test -f "$ltmain" && test -n "$tagnames"; then 11698 if test ! -f "${ofile}"; then 11699 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11700echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11701 fi 11702 11703 if test -z "$LTCC"; then 11704 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11705 if test -z "$LTCC"; then 11706 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11707echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11708 else 11709 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11710echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11711 fi 11712 fi 11713 11714 # Extract list of available tagged configurations in $ofile. 11715 # Note that this assumes the entire list is on one line. 11716 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11717 11718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11719 for tagname in $tagnames; do 11720 IFS="$lt_save_ifs" 11721 # Check whether tagname contains only valid characters 11722 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11723 "") ;; 11724 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11725echo "$as_me: error: invalid tag name: $tagname" >&2;} 11726 { (exit 1); exit 1; }; } 11727 ;; 11728 esac 11729 11730 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11731 then 11732 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11733echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11734 { (exit 1); exit 1; }; } 11735 fi 11736 11737 # Update the list of available tags. 11738 if test -n "$tagname"; then 11739 echo appending configuration tag \"$tagname\" to $ofile 11740 11741 case $tagname in 11742 CXX) 11743 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11744 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11745 (test "X$CXX" != "Xg++"))) ; then 11746 ac_ext=cc 11747ac_cpp='$CXXCPP $CPPFLAGS' 11748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11751 11752 11753 11754 11755archive_cmds_need_lc_CXX=no 11756allow_undefined_flag_CXX= 11757always_export_symbols_CXX=no 11758archive_expsym_cmds_CXX= 11759export_dynamic_flag_spec_CXX= 11760hardcode_direct_CXX=no 11761hardcode_libdir_flag_spec_CXX= 11762hardcode_libdir_flag_spec_ld_CXX= 11763hardcode_libdir_separator_CXX= 11764hardcode_minus_L_CXX=no 11765hardcode_automatic_CXX=no 11766module_cmds_CXX= 11767module_expsym_cmds_CXX= 11768link_all_deplibs_CXX=unknown 11769old_archive_cmds_CXX=$old_archive_cmds 11770no_undefined_flag_CXX= 11771whole_archive_flag_spec_CXX= 11772enable_shared_with_static_runtimes_CXX=no 11773 11774# Dependencies to place before and after the object being linked: 11775predep_objects_CXX= 11776postdep_objects_CXX= 11777predeps_CXX= 11778postdeps_CXX= 11779compiler_lib_search_path_CXX= 11780 11781# Source file extension for C++ test sources. 11782ac_ext=cpp 11783 11784# Object file extension for compiled C++ test sources. 11785objext=o 11786objext_CXX=$objext 11787 11788# Code to be used in simple compile tests 11789lt_simple_compile_test_code="int some_variable = 0;\n" 11790 11791# Code to be used in simple link tests 11792lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 11793 11794# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11795 11796# If no C compiler was specified, use CC. 11797LTCC=${LTCC-"$CC"} 11798 11799# Allow CC to be a program name with arguments. 11800compiler=$CC 11801 11802 11803# save warnings/boilerplate of simple test code 11804ac_outfile=conftest.$ac_objext 11805printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11806eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 11807_lt_compiler_boilerplate=`cat conftest.err` 11808$rm conftest* 11809 11810ac_outfile=conftest.$ac_objext 11811printf "$lt_simple_link_test_code" >conftest.$ac_ext 11812eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 11813_lt_linker_boilerplate=`cat conftest.err` 11814$rm conftest* 11815 11816 11817# Allow CC to be a program name with arguments. 11818lt_save_CC=$CC 11819lt_save_LD=$LD 11820lt_save_GCC=$GCC 11821GCC=$GXX 11822lt_save_with_gnu_ld=$with_gnu_ld 11823lt_save_path_LD=$lt_cv_path_LD 11824if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11825 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11826else 11827 unset lt_cv_prog_gnu_ld 11828fi 11829if test -n "${lt_cv_path_LDCXX+set}"; then 11830 lt_cv_path_LD=$lt_cv_path_LDCXX 11831else 11832 unset lt_cv_path_LD 11833fi 11834test -z "${LDCXX+set}" || LD=$LDCXX 11835CC=${CXX-"c++"} 11836compiler=$CC 11837compiler_CXX=$CC 11838for cc_temp in $compiler""; do 11839 case $cc_temp in 11840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11842 \-*) ;; 11843 *) break;; 11844 esac 11845done 11846cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11847 11848 11849# We don't want -fno-exception wen compiling C++ code, so set the 11850# no_builtin_flag separately 11851if test "$GXX" = yes; then 11852 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11853else 11854 lt_prog_compiler_no_builtin_flag_CXX= 11855fi 11856 11857if test "$GXX" = yes; then 11858 # Set up default GNU C++ configuration 11859 11860 11861# Check whether --with-gnu-ld or --without-gnu-ld was given. 11862if test "${with_gnu_ld+set}" = set; then 11863 withval="$with_gnu_ld" 11864 test "$withval" = no || with_gnu_ld=yes 11865else 11866 with_gnu_ld=no 11867fi; 11868ac_prog=ld 11869if test "$GCC" = yes; then 11870 # Check if gcc -print-prog-name=ld gives a path. 11871 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11872echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 11873 case $host in 11874 *-*-mingw*) 11875 # gcc leaves a trailing carriage return which upsets mingw 11876 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11877 *) 11878 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11879 esac 11880 case $ac_prog in 11881 # Accept absolute paths. 11882 [\\/]* | ?:[\\/]*) 11883 re_direlt='/[^/][^/]*/\.\./' 11884 # Canonicalize the pathname of ld 11885 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11886 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11887 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11888 done 11889 test -z "$LD" && LD="$ac_prog" 11890 ;; 11891 "") 11892 # If it fails, then pretend we aren't using GCC. 11893 ac_prog=ld 11894 ;; 11895 *) 11896 # If it is relative, then search for the first ld in PATH. 11897 with_gnu_ld=unknown 11898 ;; 11899 esac 11900elif test "$with_gnu_ld" = yes; then 11901 echo "$as_me:$LINENO: checking for GNU ld" >&5 11902echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 11903else 11904 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11905echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 11906fi 11907if test "${lt_cv_path_LD+set}" = set; then 11908 echo $ECHO_N "(cached) $ECHO_C" >&6 11909else 11910 if test -z "$LD"; then 11911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11912 for ac_dir in $PATH; do 11913 IFS="$lt_save_ifs" 11914 test -z "$ac_dir" && ac_dir=. 11915 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11916 lt_cv_path_LD="$ac_dir/$ac_prog" 11917 # Check to see if the program is GNU ld. I'd rather use --version, 11918 # but apparently some variants of GNU ld only accept -v. 11919 # Break only if it was the GNU/non-GNU ld that we prefer. 11920 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11921 *GNU* | *'with BFD'*) 11922 test "$with_gnu_ld" != no && break 11923 ;; 11924 *) 11925 test "$with_gnu_ld" != yes && break 11926 ;; 11927 esac 11928 fi 11929 done 11930 IFS="$lt_save_ifs" 11931else 11932 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11933fi 11934fi 11935 11936LD="$lt_cv_path_LD" 11937if test -n "$LD"; then 11938 echo "$as_me:$LINENO: result: $LD" >&5 11939echo "${ECHO_T}$LD" >&6 11940else 11941 echo "$as_me:$LINENO: result: no" >&5 11942echo "${ECHO_T}no" >&6 11943fi 11944test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11945echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11946 { (exit 1); exit 1; }; } 11947echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11948echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 11949if test "${lt_cv_prog_gnu_ld+set}" = set; then 11950 echo $ECHO_N "(cached) $ECHO_C" >&6 11951else 11952 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11953case `$LD -v 2>&1 </dev/null` in 11954*GNU* | *'with BFD'*) 11955 lt_cv_prog_gnu_ld=yes 11956 ;; 11957*) 11958 lt_cv_prog_gnu_ld=no 11959 ;; 11960esac 11961fi 11962echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11963echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 11964with_gnu_ld=$lt_cv_prog_gnu_ld 11965 11966 11967 11968 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11969 # archiving commands below assume that GNU ld is being used. 11970 if test "$with_gnu_ld" = yes; then 11971 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11972 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' 11973 11974 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11976 11977 # If archive_cmds runs LD, not CC, wlarc should be empty 11978 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11979 # investigate it a little bit more. (MM) 11980 wlarc='${wl}' 11981 11982 # ancient GNU ld didn't support --whole-archive et. al. 11983 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11984 grep 'no-whole-archive' > /dev/null; then 11985 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11986 else 11987 whole_archive_flag_spec_CXX= 11988 fi 11989 else 11990 with_gnu_ld=no 11991 wlarc= 11992 11993 # A generic and very simple default shared library creation 11994 # command for GNU C++ for the case where it uses the native 11995 # linker, instead of GNU ld. If possible, this setting should 11996 # overridden to take advantage of the native linker features on 11997 # the platform it is being used on. 11998 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11999 fi 12000 12001 # Commands to make compiler produce verbose output that lists 12002 # what "hidden" libraries, object files and flags are used when 12003 # linking a shared library. 12004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12005 12006else 12007 GXX=no 12008 with_gnu_ld=no 12009 wlarc= 12010fi 12011 12012# PORTME: fill in a description of your system's C++ link characteristics 12013echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12014echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12015ld_shlibs_CXX=yes 12016case $host_os in 12017 aix3*) 12018 # FIXME: insert proper C++ library support 12019 ld_shlibs_CXX=no 12020 ;; 12021 aix4* | aix5*) 12022 if test "$host_cpu" = ia64; then 12023 # On IA64, the linker does run time linking by default, so we don't 12024 # have to do anything special. 12025 aix_use_runtimelinking=no 12026 exp_sym_flag='-Bexport' 12027 no_entry_flag="" 12028 else 12029 aix_use_runtimelinking=no 12030 12031 # Test if we are trying to use run time linking or normal 12032 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12033 # need to do runtime linking. 12034 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12035 for ld_flag in $LDFLAGS; do 12036 case $ld_flag in 12037 *-brtl*) 12038 aix_use_runtimelinking=yes 12039 break 12040 ;; 12041 esac 12042 done 12043 esac 12044 12045 exp_sym_flag='-bexport' 12046 no_entry_flag='-bnoentry' 12047 fi 12048 12049 # When large executables or shared objects are built, AIX ld can 12050 # have problems creating the table of contents. If linking a library 12051 # or program results in "error TOC overflow" add -mminimal-toc to 12052 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12053 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12054 12055 archive_cmds_CXX='' 12056 hardcode_direct_CXX=yes 12057 hardcode_libdir_separator_CXX=':' 12058 link_all_deplibs_CXX=yes 12059 12060 if test "$GXX" = yes; then 12061 case $host_os in aix4.[012]|aix4.[012].*) 12062 # We only want to do this on AIX 4.2 and lower, the check 12063 # below for broken collect2 doesn't work under 4.3+ 12064 collect2name=`${CC} -print-prog-name=collect2` 12065 if test -f "$collect2name" && \ 12066 strings "$collect2name" | grep resolve_lib_name >/dev/null 12067 then 12068 # We have reworked collect2 12069 hardcode_direct_CXX=yes 12070 else 12071 # We have old collect2 12072 hardcode_direct_CXX=unsupported 12073 # It fails to find uninstalled libraries when the uninstalled 12074 # path is not listed in the libpath. Setting hardcode_minus_L 12075 # to unsupported forces relinking 12076 hardcode_minus_L_CXX=yes 12077 hardcode_libdir_flag_spec_CXX='-L$libdir' 12078 hardcode_libdir_separator_CXX= 12079 fi 12080 esac 12081 shared_flag='-shared' 12082 if test "$aix_use_runtimelinking" = yes; then 12083 shared_flag="$shared_flag "'${wl}-G' 12084 fi 12085 else 12086 # not using gcc 12087 if test "$host_cpu" = ia64; then 12088 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12089 # chokes on -Wl,-G. The following line is correct: 12090 shared_flag='-G' 12091 else 12092 if test "$aix_use_runtimelinking" = yes; then 12093 shared_flag='${wl}-G' 12094 else 12095 shared_flag='${wl}-bM:SRE' 12096 fi 12097 fi 12098 fi 12099 12100 # It seems that -bexpall does not export symbols beginning with 12101 # underscore (_), so it is better to generate a list of symbols to export. 12102 always_export_symbols_CXX=yes 12103 if test "$aix_use_runtimelinking" = yes; then 12104 # Warning - without using the other runtime loading flags (-brtl), 12105 # -berok will link without error, but may produce a broken library. 12106 allow_undefined_flag_CXX='-berok' 12107 # Determine the default libpath from the value encoded in an empty executable. 12108 cat >conftest.$ac_ext <<_ACEOF 12109/* confdefs.h. */ 12110_ACEOF 12111cat confdefs.h >>conftest.$ac_ext 12112cat >>conftest.$ac_ext <<_ACEOF 12113/* end confdefs.h. */ 12114 12115int 12116main () 12117{ 12118 12119 ; 12120 return 0; 12121} 12122_ACEOF 12123rm -f conftest.$ac_objext conftest$ac_exeext 12124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12125 (eval $ac_link) 2>conftest.er1 12126 ac_status=$? 12127 grep -v '^ *+' conftest.er1 >conftest.err 12128 rm -f conftest.er1 12129 cat conftest.err >&5 12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12131 (exit $ac_status); } && 12132 { ac_try='test -z "$ac_cxx_werror_flag" 12133 || test ! -s conftest.err' 12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12135 (eval $ac_try) 2>&5 12136 ac_status=$? 12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12138 (exit $ac_status); }; } && 12139 { ac_try='test -s conftest$ac_exeext' 12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12141 (eval $ac_try) 2>&5 12142 ac_status=$? 12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12144 (exit $ac_status); }; }; then 12145 12146aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12147}'` 12148# Check for a 64-bit object if we didn't find anything. 12149if 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; } 12150}'`; fi 12151else 12152 echo "$as_me: failed program was:" >&5 12153sed 's/^/| /' conftest.$ac_ext >&5 12154 12155fi 12156rm -f conftest.err conftest.$ac_objext \ 12157 conftest$ac_exeext conftest.$ac_ext 12158if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12159 12160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12161 12162 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" 12163 else 12164 if test "$host_cpu" = ia64; then 12165 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12166 allow_undefined_flag_CXX="-z nodefs" 12167 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" 12168 else 12169 # Determine the default libpath from the value encoded in an empty executable. 12170 cat >conftest.$ac_ext <<_ACEOF 12171/* confdefs.h. */ 12172_ACEOF 12173cat confdefs.h >>conftest.$ac_ext 12174cat >>conftest.$ac_ext <<_ACEOF 12175/* end confdefs.h. */ 12176 12177int 12178main () 12179{ 12180 12181 ; 12182 return 0; 12183} 12184_ACEOF 12185rm -f conftest.$ac_objext conftest$ac_exeext 12186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12187 (eval $ac_link) 2>conftest.er1 12188 ac_status=$? 12189 grep -v '^ *+' conftest.er1 >conftest.err 12190 rm -f conftest.er1 12191 cat conftest.err >&5 12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12193 (exit $ac_status); } && 12194 { ac_try='test -z "$ac_cxx_werror_flag" 12195 || test ! -s conftest.err' 12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12197 (eval $ac_try) 2>&5 12198 ac_status=$? 12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12200 (exit $ac_status); }; } && 12201 { ac_try='test -s conftest$ac_exeext' 12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12203 (eval $ac_try) 2>&5 12204 ac_status=$? 12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12206 (exit $ac_status); }; }; then 12207 12208aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12209}'` 12210# Check for a 64-bit object if we didn't find anything. 12211if 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; } 12212}'`; fi 12213else 12214 echo "$as_me: failed program was:" >&5 12215sed 's/^/| /' conftest.$ac_ext >&5 12216 12217fi 12218rm -f conftest.err conftest.$ac_objext \ 12219 conftest$ac_exeext conftest.$ac_ext 12220if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12221 12222 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12223 # Warning - without using the other run time loading flags, 12224 # -berok will link without error, but may produce a broken library. 12225 no_undefined_flag_CXX=' ${wl}-bernotok' 12226 allow_undefined_flag_CXX=' ${wl}-berok' 12227 # -bexpall does not export symbols beginning with underscore (_) 12228 always_export_symbols_CXX=yes 12229 # Exported symbols can be pulled into shared objects from archives 12230 whole_archive_flag_spec_CXX=' ' 12231 archive_cmds_need_lc_CXX=yes 12232 # This is similar to how AIX traditionally builds its shared libraries. 12233 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' 12234 fi 12235 fi 12236 ;; 12237 chorus*) 12238 case $cc_basename in 12239 *) 12240 # FIXME: insert proper C++ library support 12241 ld_shlibs_CXX=no 12242 ;; 12243 esac 12244 ;; 12245 12246 12247 cygwin* | mingw* | pw32*) 12248 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12249 # as there is no search path for DLLs. 12250 hardcode_libdir_flag_spec_CXX='-L$libdir' 12251 allow_undefined_flag_CXX=unsupported 12252 always_export_symbols_CXX=no 12253 enable_shared_with_static_runtimes_CXX=yes 12254 12255 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12256 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' 12257 # If the export-symbols file already is a .def file (1st line 12258 # is EXPORTS), use it as is; otherwise, prepend... 12259 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12260 cp $export_symbols $output_objdir/$soname.def; 12261 else 12262 echo EXPORTS > $output_objdir/$soname.def; 12263 cat $export_symbols >> $output_objdir/$soname.def; 12264 fi~ 12265 $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' 12266 else 12267 ld_shlibs_CXX=no 12268 fi 12269 ;; 12270 darwin* | rhapsody*) 12271 case $host_os in 12272 rhapsody* | darwin1.[012]) 12273 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 12274 ;; 12275 *) # Darwin 1.3 on 12276 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12277 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12278 else 12279 case ${MACOSX_DEPLOYMENT_TARGET} in 12280 10.[012]) 12281 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 12282 ;; 12283 10.*) 12284 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 12285 ;; 12286 esac 12287 fi 12288 ;; 12289 esac 12290 archive_cmds_need_lc_CXX=no 12291 hardcode_direct_CXX=no 12292 hardcode_automatic_CXX=yes 12293 hardcode_shlibpath_var_CXX=unsupported 12294 whole_archive_flag_spec_CXX='' 12295 link_all_deplibs_CXX=yes 12296 12297 if test "$GXX" = yes ; then 12298 lt_int_apple_cc_single_mod=no 12299 output_verbose_link_cmd='echo' 12300 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 12301 lt_int_apple_cc_single_mod=yes 12302 fi 12303 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12304 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12305 else 12306 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' 12307 fi 12308 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12309 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12310 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12311 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}' 12312 else 12313 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}' 12314 fi 12315 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}' 12316 else 12317 case $cc_basename in 12318 xlc*) 12319 output_verbose_link_cmd='echo' 12320 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' 12321 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12322 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12323 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}' 12324 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}' 12325 ;; 12326 *) 12327 ld_shlibs_CXX=no 12328 ;; 12329 esac 12330 fi 12331 ;; 12332 12333 dgux*) 12334 case $cc_basename in 12335 ec++*) 12336 # FIXME: insert proper C++ library support 12337 ld_shlibs_CXX=no 12338 ;; 12339 ghcx*) 12340 # Green Hills C++ Compiler 12341 # FIXME: insert proper C++ library support 12342 ld_shlibs_CXX=no 12343 ;; 12344 *) 12345 # FIXME: insert proper C++ library support 12346 ld_shlibs_CXX=no 12347 ;; 12348 esac 12349 ;; 12350 freebsd[12]*) 12351 # C++ shared libraries reported to be fairly broken before switch to ELF 12352 ld_shlibs_CXX=no 12353 ;; 12354 freebsd-elf*) 12355 archive_cmds_need_lc_CXX=no 12356 ;; 12357 freebsd* | kfreebsd*-gnu | dragonfly*) 12358 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12359 # conventions 12360 ld_shlibs_CXX=yes 12361 ;; 12362 gnu*) 12363 ;; 12364 hpux9*) 12365 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12366 hardcode_libdir_separator_CXX=: 12367 export_dynamic_flag_spec_CXX='${wl}-E' 12368 hardcode_direct_CXX=yes 12369 hardcode_minus_L_CXX=yes # Not in the search PATH, 12370 # but as the default 12371 # location of the library. 12372 12373 case $cc_basename in 12374 CC*) 12375 # FIXME: insert proper C++ library support 12376 ld_shlibs_CXX=no 12377 ;; 12378 aCC*) 12379 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' 12380 # Commands to make compiler produce verbose output that lists 12381 # what "hidden" libraries, object files and flags are used when 12382 # linking a shared library. 12383 # 12384 # There doesn't appear to be a way to prevent this compiler from 12385 # explicitly linking system object files so we need to strip them 12386 # from the output so that they don't get included in the library 12387 # dependencies. 12388 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' 12389 ;; 12390 *) 12391 if test "$GXX" = yes; then 12392 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' 12393 else 12394 # FIXME: insert proper C++ library support 12395 ld_shlibs_CXX=no 12396 fi 12397 ;; 12398 esac 12399 ;; 12400 hpux10*|hpux11*) 12401 if test $with_gnu_ld = no; then 12402 case $host_cpu in 12403 hppa*64*) 12404 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12405 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12406 hardcode_libdir_separator_CXX=: 12407 ;; 12408 ia64*) 12409 hardcode_libdir_flag_spec_CXX='-L$libdir' 12410 ;; 12411 *) 12412 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12413 hardcode_libdir_separator_CXX=: 12414 export_dynamic_flag_spec_CXX='${wl}-E' 12415 ;; 12416 esac 12417 fi 12418 case $host_cpu in 12419 hppa*64*) 12420 hardcode_direct_CXX=no 12421 hardcode_shlibpath_var_CXX=no 12422 ;; 12423 ia64*) 12424 hardcode_direct_CXX=no 12425 hardcode_shlibpath_var_CXX=no 12426 hardcode_minus_L_CXX=yes # Not in the search PATH, 12427 # but as the default 12428 # location of the library. 12429 ;; 12430 *) 12431 hardcode_direct_CXX=yes 12432 hardcode_minus_L_CXX=yes # Not in the search PATH, 12433 # but as the default 12434 # location of the library. 12435 ;; 12436 esac 12437 12438 case $cc_basename in 12439 CC*) 12440 # FIXME: insert proper C++ library support 12441 ld_shlibs_CXX=no 12442 ;; 12443 aCC*) 12444 case $host_cpu in 12445 hppa*64*|ia64*) 12446 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12447 ;; 12448 *) 12449 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12450 ;; 12451 esac 12452 # Commands to make compiler produce verbose output that lists 12453 # what "hidden" libraries, object files and flags are used when 12454 # linking a shared library. 12455 # 12456 # There doesn't appear to be a way to prevent this compiler from 12457 # explicitly linking system object files so we need to strip them 12458 # from the output so that they don't get included in the library 12459 # dependencies. 12460 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' 12461 ;; 12462 *) 12463 if test "$GXX" = yes; then 12464 if test $with_gnu_ld = no; then 12465 case $host_cpu in 12466 ia64*|hppa*64*) 12467 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12468 ;; 12469 *) 12470 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' 12471 ;; 12472 esac 12473 fi 12474 else 12475 # FIXME: insert proper C++ library support 12476 ld_shlibs_CXX=no 12477 fi 12478 ;; 12479 esac 12480 ;; 12481 irix5* | irix6*) 12482 case $cc_basename in 12483 CC*) 12484 # SGI C++ 12485 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' 12486 12487 # Archives containing C++ object files must be created using 12488 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12489 # necessary to make sure instantiated templates are included 12490 # in the archive. 12491 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12492 ;; 12493 *) 12494 if test "$GXX" = yes; then 12495 if test "$with_gnu_ld" = no; then 12496 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' 12497 else 12498 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' 12499 fi 12500 fi 12501 link_all_deplibs_CXX=yes 12502 ;; 12503 esac 12504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12505 hardcode_libdir_separator_CXX=: 12506 ;; 12507 linux*) 12508 case $cc_basename in 12509 KCC*) 12510 # Kuck and Associates, Inc. (KAI) C++ Compiler 12511 12512 # KCC will only create a shared library if the output file 12513 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12514 # to its proper name (with version) after linking. 12515 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' 12516 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' 12517 # Commands to make compiler produce verbose output that lists 12518 # what "hidden" libraries, object files and flags are used when 12519 # linking a shared library. 12520 # 12521 # There doesn't appear to be a way to prevent this compiler from 12522 # explicitly linking system object files so we need to strip them 12523 # from the output so that they don't get included in the library 12524 # dependencies. 12525 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' 12526 12527 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12529 12530 # Archives containing C++ object files must be created using 12531 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12532 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12533 ;; 12534 icpc*) 12535 # Intel C++ 12536 with_gnu_ld=yes 12537 # version 8.0 and above of icpc choke on multiply defined symbols 12538 # if we add $predep_objects and $postdep_objects, however 7.1 and 12539 # earlier do not add the objects themselves. 12540 case `$CC -V 2>&1` in 12541 *"Version 7."*) 12542 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12543 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' 12544 ;; 12545 *) # Version 8.0 or newer 12546 tmp_idyn= 12547 case $host_cpu in 12548 ia64*) tmp_idyn=' -i_dynamic';; 12549 esac 12550 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12551 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' 12552 ;; 12553 esac 12554 archive_cmds_need_lc_CXX=no 12555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12556 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12557 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12558 ;; 12559 pgCC*) 12560 # Portland Group C++ compiler 12561 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12562 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' 12563 12564 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12566 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' 12567 ;; 12568 cxx*) 12569 # Compaq C++ 12570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12571 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' 12572 12573 runpath_var=LD_RUN_PATH 12574 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12575 hardcode_libdir_separator_CXX=: 12576 12577 # Commands to make compiler produce verbose output that lists 12578 # what "hidden" libraries, object files and flags are used when 12579 # linking a shared library. 12580 # 12581 # There doesn't appear to be a way to prevent this compiler from 12582 # explicitly linking system object files so we need to strip them 12583 # from the output so that they don't get included in the library 12584 # dependencies. 12585 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' 12586 ;; 12587 esac 12588 ;; 12589 lynxos*) 12590 # FIXME: insert proper C++ library support 12591 ld_shlibs_CXX=no 12592 ;; 12593 m88k*) 12594 # FIXME: insert proper C++ library support 12595 ld_shlibs_CXX=no 12596 ;; 12597 mvs*) 12598 case $cc_basename in 12599 cxx*) 12600 # FIXME: insert proper C++ library support 12601 ld_shlibs_CXX=no 12602 ;; 12603 *) 12604 # FIXME: insert proper C++ library support 12605 ld_shlibs_CXX=no 12606 ;; 12607 esac 12608 ;; 12609 netbsd*) 12610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12611 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12612 wlarc= 12613 hardcode_libdir_flag_spec_CXX='-R$libdir' 12614 hardcode_direct_CXX=yes 12615 hardcode_shlibpath_var_CXX=no 12616 fi 12617 # Workaround some broken pre-1.5 toolchains 12618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12619 ;; 12620 openbsd2*) 12621 # C++ shared libraries are fairly broken 12622 ld_shlibs_CXX=no 12623 ;; 12624 openbsd*) 12625 hardcode_direct_CXX=yes 12626 hardcode_shlibpath_var_CXX=no 12627 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12630 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12631 export_dynamic_flag_spec_CXX='${wl}-E' 12632 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12633 fi 12634 output_verbose_link_cmd='echo' 12635 ;; 12636 osf3*) 12637 case $cc_basename in 12638 KCC*) 12639 # Kuck and Associates, Inc. (KAI) C++ Compiler 12640 12641 # KCC will only create a shared library if the output file 12642 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12643 # to its proper name (with version) after linking. 12644 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' 12645 12646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12647 hardcode_libdir_separator_CXX=: 12648 12649 # Archives containing C++ object files must be created using 12650 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12651 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12652 12653 ;; 12654 RCC*) 12655 # Rational C++ 2.4.1 12656 # FIXME: insert proper C++ library support 12657 ld_shlibs_CXX=no 12658 ;; 12659 cxx*) 12660 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12661 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' 12662 12663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12664 hardcode_libdir_separator_CXX=: 12665 12666 # Commands to make compiler produce verbose output that lists 12667 # what "hidden" libraries, object files and flags are used when 12668 # linking a shared library. 12669 # 12670 # There doesn't appear to be a way to prevent this compiler from 12671 # explicitly linking system object files so we need to strip them 12672 # from the output so that they don't get included in the library 12673 # dependencies. 12674 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' 12675 ;; 12676 *) 12677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12679 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' 12680 12681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12682 hardcode_libdir_separator_CXX=: 12683 12684 # Commands to make compiler produce verbose output that lists 12685 # what "hidden" libraries, object files and flags are used when 12686 # linking a shared library. 12687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12688 12689 else 12690 # FIXME: insert proper C++ library support 12691 ld_shlibs_CXX=no 12692 fi 12693 ;; 12694 esac 12695 ;; 12696 osf4* | osf5*) 12697 case $cc_basename in 12698 KCC*) 12699 # Kuck and Associates, Inc. (KAI) C++ Compiler 12700 12701 # KCC will only create a shared library if the output file 12702 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12703 # to its proper name (with version) after linking. 12704 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' 12705 12706 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12707 hardcode_libdir_separator_CXX=: 12708 12709 # Archives containing C++ object files must be created using 12710 # the KAI C++ compiler. 12711 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12712 ;; 12713 RCC*) 12714 # Rational C++ 2.4.1 12715 # FIXME: insert proper C++ library support 12716 ld_shlibs_CXX=no 12717 ;; 12718 cxx*) 12719 allow_undefined_flag_CXX=' -expect_unresolved \*' 12720 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' 12721 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12722 echo "-hidden">> $lib.exp~ 12723 $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~ 12724 $rm $lib.exp' 12725 12726 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12727 hardcode_libdir_separator_CXX=: 12728 12729 # Commands to make compiler produce verbose output that lists 12730 # what "hidden" libraries, object files and flags are used when 12731 # linking a shared library. 12732 # 12733 # There doesn't appear to be a way to prevent this compiler from 12734 # explicitly linking system object files so we need to strip them 12735 # from the output so that they don't get included in the library 12736 # dependencies. 12737 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' 12738 ;; 12739 *) 12740 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12741 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12742 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' 12743 12744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12745 hardcode_libdir_separator_CXX=: 12746 12747 # Commands to make compiler produce verbose output that lists 12748 # what "hidden" libraries, object files and flags are used when 12749 # linking a shared library. 12750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12751 12752 else 12753 # FIXME: insert proper C++ library support 12754 ld_shlibs_CXX=no 12755 fi 12756 ;; 12757 esac 12758 ;; 12759 psos*) 12760 # FIXME: insert proper C++ library support 12761 ld_shlibs_CXX=no 12762 ;; 12763 sco*) 12764 archive_cmds_need_lc_CXX=no 12765 case $cc_basename in 12766 CC*) 12767 # FIXME: insert proper C++ library support 12768 ld_shlibs_CXX=no 12769 ;; 12770 *) 12771 # FIXME: insert proper C++ library support 12772 ld_shlibs_CXX=no 12773 ;; 12774 esac 12775 ;; 12776 sunos4*) 12777 case $cc_basename in 12778 CC*) 12779 # Sun C++ 4.x 12780 # FIXME: insert proper C++ library support 12781 ld_shlibs_CXX=no 12782 ;; 12783 lcc*) 12784 # Lucid 12785 # FIXME: insert proper C++ library support 12786 ld_shlibs_CXX=no 12787 ;; 12788 *) 12789 # FIXME: insert proper C++ library support 12790 ld_shlibs_CXX=no 12791 ;; 12792 esac 12793 ;; 12794 solaris*) 12795 case $cc_basename in 12796 CC*) 12797 # Sun C++ 4.2, 5.x and Centerline C++ 12798 archive_cmds_need_lc_CXX=yes 12799 no_undefined_flag_CXX=' -zdefs' 12800 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12801 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12802 $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' 12803 12804 hardcode_libdir_flag_spec_CXX='-R$libdir' 12805 hardcode_shlibpath_var_CXX=no 12806 case $host_os in 12807 solaris2.[0-5] | solaris2.[0-5].*) ;; 12808 *) 12809 # The C++ compiler is used as linker so we must use $wl 12810 # flag to pass the commands to the underlying system 12811 # linker. We must also pass each convience library through 12812 # to the system linker between allextract/defaultextract. 12813 # The C++ compiler will combine linker options so we 12814 # cannot just pass the convience library names through 12815 # without $wl. 12816 # Supported since Solaris 2.6 (maybe 2.5.1?) 12817 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' 12818 ;; 12819 esac 12820 link_all_deplibs_CXX=yes 12821 12822 output_verbose_link_cmd='echo' 12823 12824 # Archives containing C++ object files must be created using 12825 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12826 # necessary to make sure instantiated templates are included 12827 # in the archive. 12828 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12829 ;; 12830 gcx*) 12831 # Green Hills C++ Compiler 12832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12833 12834 # The C++ compiler must be used to create the archive. 12835 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12836 ;; 12837 *) 12838 # GNU C++ compiler with Solaris linker 12839 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12840 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12841 if $CC --version | grep -v '^2\.7' > /dev/null; then 12842 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12843 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12844 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12845 12846 # Commands to make compiler produce verbose output that lists 12847 # what "hidden" libraries, object files and flags are used when 12848 # linking a shared library. 12849 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12850 else 12851 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12852 # platform. 12853 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12854 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12855 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12856 12857 # Commands to make compiler produce verbose output that lists 12858 # what "hidden" libraries, object files and flags are used when 12859 # linking a shared library. 12860 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12861 fi 12862 12863 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12864 fi 12865 ;; 12866 esac 12867 ;; 12868 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 12869 archive_cmds_need_lc_CXX=no 12870 ;; 12871 tandem*) 12872 case $cc_basename in 12873 NCC*) 12874 # NonStop-UX NCC 3.20 12875 # FIXME: insert proper C++ library support 12876 ld_shlibs_CXX=no 12877 ;; 12878 *) 12879 # FIXME: insert proper C++ library support 12880 ld_shlibs_CXX=no 12881 ;; 12882 esac 12883 ;; 12884 vxworks*) 12885 # FIXME: insert proper C++ library support 12886 ld_shlibs_CXX=no 12887 ;; 12888 *) 12889 # FIXME: insert proper C++ library support 12890 ld_shlibs_CXX=no 12891 ;; 12892esac 12893echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12894echo "${ECHO_T}$ld_shlibs_CXX" >&6 12895test "$ld_shlibs_CXX" = no && can_build_shared=no 12896 12897GCC_CXX="$GXX" 12898LD_CXX="$LD" 12899 12900## CAVEAT EMPTOR: 12901## There is no encapsulation within the following macros, do not change 12902## the running order or otherwise move them around unless you know exactly 12903## what you are doing... 12904 12905cat > conftest.$ac_ext <<EOF 12906class Foo 12907{ 12908public: 12909 Foo (void) { a = 0; } 12910private: 12911 int a; 12912}; 12913EOF 12914 12915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12916 (eval $ac_compile) 2>&5 12917 ac_status=$? 12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12919 (exit $ac_status); }; then 12920 # Parse the compiler output and extract the necessary 12921 # objects, libraries and library flags. 12922 12923 # Sentinel used to keep track of whether or not we are before 12924 # the conftest object file. 12925 pre_test_object_deps_done=no 12926 12927 # The `*' in the case matches for architectures that use `case' in 12928 # $output_verbose_cmd can trigger glob expansion during the loop 12929 # eval without this substitution. 12930 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12931 12932 for p in `eval $output_verbose_link_cmd`; do 12933 case $p in 12934 12935 -L* | -R* | -l*) 12936 # Some compilers place space between "-{L,R}" and the path. 12937 # Remove the space. 12938 if test $p = "-L" \ 12939 || test $p = "-R"; then 12940 prev=$p 12941 continue 12942 else 12943 prev= 12944 fi 12945 12946 if test "$pre_test_object_deps_done" = no; then 12947 case $p in 12948 -L* | -R*) 12949 # Internal compiler library paths should come after those 12950 # provided the user. The postdeps already come after the 12951 # user supplied libs so there is no need to process them. 12952 if test -z "$compiler_lib_search_path_CXX"; then 12953 compiler_lib_search_path_CXX="${prev}${p}" 12954 else 12955 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12956 fi 12957 ;; 12958 # The "-l" case would never come before the object being 12959 # linked, so don't bother handling this case. 12960 esac 12961 else 12962 if test -z "$postdeps_CXX"; then 12963 postdeps_CXX="${prev}${p}" 12964 else 12965 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12966 fi 12967 fi 12968 ;; 12969 12970 *.$objext) 12971 # This assumes that the test object file only shows up 12972 # once in the compiler output. 12973 if test "$p" = "conftest.$objext"; then 12974 pre_test_object_deps_done=yes 12975 continue 12976 fi 12977 12978 if test "$pre_test_object_deps_done" = no; then 12979 if test -z "$predep_objects_CXX"; then 12980 predep_objects_CXX="$p" 12981 else 12982 predep_objects_CXX="$predep_objects_CXX $p" 12983 fi 12984 else 12985 if test -z "$postdep_objects_CXX"; then 12986 postdep_objects_CXX="$p" 12987 else 12988 postdep_objects_CXX="$postdep_objects_CXX $p" 12989 fi 12990 fi 12991 ;; 12992 12993 *) ;; # Ignore the rest. 12994 12995 esac 12996 done 12997 12998 # Clean up. 12999 rm -f a.out a.exe 13000else 13001 echo "libtool.m4: error: problem compiling CXX test program" 13002fi 13003 13004$rm -f confest.$objext 13005 13006# PORTME: override above test on systems where it is broken 13007case $host_os in 13008solaris*) 13009 case $cc_basename in 13010 CC*) 13011 # Adding this requires a known-good setup of shared libraries for 13012 # Sun compiler versions before 5.6, else PIC objects from an old 13013 # archive will be linked into the output, leading to subtle bugs. 13014 postdeps_CXX='-lCstd -lCrun' 13015 ;; 13016 esac 13017esac 13018 13019 13020case " $postdeps_CXX " in 13021*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13022esac 13023 13024lt_prog_compiler_wl_CXX= 13025lt_prog_compiler_pic_CXX= 13026lt_prog_compiler_static_CXX= 13027 13028echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13029echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13030 13031 # C++ specific cases for pic, static, wl, etc. 13032 if test "$GXX" = yes; then 13033 lt_prog_compiler_wl_CXX='-Wl,' 13034 lt_prog_compiler_static_CXX='-static' 13035 13036 case $host_os in 13037 aix*) 13038 # All AIX code is PIC. 13039 if test "$host_cpu" = ia64; then 13040 # AIX 5 now supports IA64 processor 13041 lt_prog_compiler_static_CXX='-Bstatic' 13042 fi 13043 ;; 13044 amigaos*) 13045 # FIXME: we need at least 68020 code to build shared libraries, but 13046 # adding the `-m68020' flag to GCC prevents building anything better, 13047 # like `-m68040'. 13048 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13049 ;; 13050 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13051 # PIC is the default for these OSes. 13052 ;; 13053 mingw* | os2* | pw32*) 13054 # This hack is so that the source file can tell whether it is being 13055 # built for inclusion in a dll (and should export symbols for example). 13056 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13057 ;; 13058 darwin* | rhapsody*) 13059 # PIC is the default on this platform 13060 # Common symbols not allowed in MH_DYLIB files 13061 lt_prog_compiler_pic_CXX='-fno-common' 13062 ;; 13063 *djgpp*) 13064 # DJGPP does not support shared libraries at all 13065 lt_prog_compiler_pic_CXX= 13066 ;; 13067 sysv4*MP*) 13068 if test -d /usr/nec; then 13069 lt_prog_compiler_pic_CXX=-Kconform_pic 13070 fi 13071 ;; 13072 hpux*) 13073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13074 # not for PA HP-UX. 13075 case $host_cpu in 13076 hppa*64*|ia64*) 13077 ;; 13078 *) 13079 lt_prog_compiler_pic_CXX='-fPIC' 13080 ;; 13081 esac 13082 ;; 13083 *) 13084 lt_prog_compiler_pic_CXX='-fPIC' 13085 ;; 13086 esac 13087 else 13088 case $host_os in 13089 aix4* | aix5*) 13090 # All AIX code is PIC. 13091 if test "$host_cpu" = ia64; then 13092 # AIX 5 now supports IA64 processor 13093 lt_prog_compiler_static_CXX='-Bstatic' 13094 else 13095 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13096 fi 13097 ;; 13098 chorus*) 13099 case $cc_basename in 13100 cxch68*) 13101 # Green Hills C++ Compiler 13102 # _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" 13103 ;; 13104 esac 13105 ;; 13106 darwin*) 13107 # PIC is the default on this platform 13108 # Common symbols not allowed in MH_DYLIB files 13109 case $cc_basename in 13110 xlc*) 13111 lt_prog_compiler_pic_CXX='-qnocommon' 13112 lt_prog_compiler_wl_CXX='-Wl,' 13113 ;; 13114 esac 13115 ;; 13116 dgux*) 13117 case $cc_basename in 13118 ec++*) 13119 lt_prog_compiler_pic_CXX='-KPIC' 13120 ;; 13121 ghcx*) 13122 # Green Hills C++ Compiler 13123 lt_prog_compiler_pic_CXX='-pic' 13124 ;; 13125 *) 13126 ;; 13127 esac 13128 ;; 13129 freebsd* | kfreebsd*-gnu | dragonfly*) 13130 # FreeBSD uses GNU C++ 13131 ;; 13132 hpux9* | hpux10* | hpux11*) 13133 case $cc_basename in 13134 CC*) 13135 lt_prog_compiler_wl_CXX='-Wl,' 13136 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 13137 if test "$host_cpu" != ia64; then 13138 lt_prog_compiler_pic_CXX='+Z' 13139 fi 13140 ;; 13141 aCC*) 13142 lt_prog_compiler_wl_CXX='-Wl,' 13143 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 13144 case $host_cpu in 13145 hppa*64*|ia64*) 13146 # +Z the default 13147 ;; 13148 *) 13149 lt_prog_compiler_pic_CXX='+Z' 13150 ;; 13151 esac 13152 ;; 13153 *) 13154 ;; 13155 esac 13156 ;; 13157 irix5* | irix6* | nonstopux*) 13158 case $cc_basename in 13159 CC*) 13160 lt_prog_compiler_wl_CXX='-Wl,' 13161 lt_prog_compiler_static_CXX='-non_shared' 13162 # CC pic flag -KPIC is the default. 13163 ;; 13164 *) 13165 ;; 13166 esac 13167 ;; 13168 linux*) 13169 case $cc_basename in 13170 KCC*) 13171 # KAI C++ Compiler 13172 lt_prog_compiler_wl_CXX='--backend -Wl,' 13173 lt_prog_compiler_pic_CXX='-fPIC' 13174 ;; 13175 icpc* | ecpc*) 13176 # Intel C++ 13177 lt_prog_compiler_wl_CXX='-Wl,' 13178 lt_prog_compiler_pic_CXX='-KPIC' 13179 lt_prog_compiler_static_CXX='-static' 13180 ;; 13181 pgCC*) 13182 # Portland Group C++ compiler. 13183 lt_prog_compiler_wl_CXX='-Wl,' 13184 lt_prog_compiler_pic_CXX='-fpic' 13185 lt_prog_compiler_static_CXX='-Bstatic' 13186 ;; 13187 cxx*) 13188 # Compaq C++ 13189 # Make sure the PIC flag is empty. It appears that all Alpha 13190 # Linux and Compaq Tru64 Unix objects are PIC. 13191 lt_prog_compiler_pic_CXX= 13192 lt_prog_compiler_static_CXX='-non_shared' 13193 ;; 13194 *) 13195 ;; 13196 esac 13197 ;; 13198 lynxos*) 13199 ;; 13200 m88k*) 13201 ;; 13202 mvs*) 13203 case $cc_basename in 13204 cxx*) 13205 lt_prog_compiler_pic_CXX='-W c,exportall' 13206 ;; 13207 *) 13208 ;; 13209 esac 13210 ;; 13211 netbsd*) 13212 ;; 13213 osf3* | osf4* | osf5*) 13214 case $cc_basename in 13215 KCC*) 13216 lt_prog_compiler_wl_CXX='--backend -Wl,' 13217 ;; 13218 RCC*) 13219 # Rational C++ 2.4.1 13220 lt_prog_compiler_pic_CXX='-pic' 13221 ;; 13222 cxx*) 13223 # Digital/Compaq C++ 13224 lt_prog_compiler_wl_CXX='-Wl,' 13225 # Make sure the PIC flag is empty. It appears that all Alpha 13226 # Linux and Compaq Tru64 Unix objects are PIC. 13227 lt_prog_compiler_pic_CXX= 13228 lt_prog_compiler_static_CXX='-non_shared' 13229 ;; 13230 *) 13231 ;; 13232 esac 13233 ;; 13234 psos*) 13235 ;; 13236 sco*) 13237 case $cc_basename in 13238 CC*) 13239 lt_prog_compiler_pic_CXX='-fPIC' 13240 ;; 13241 *) 13242 ;; 13243 esac 13244 ;; 13245 solaris*) 13246 case $cc_basename in 13247 CC*) 13248 # Sun C++ 4.2, 5.x and Centerline C++ 13249 lt_prog_compiler_pic_CXX='-KPIC' 13250 lt_prog_compiler_static_CXX='-Bstatic' 13251 lt_prog_compiler_wl_CXX='-Qoption ld ' 13252 ;; 13253 gcx*) 13254 # Green Hills C++ Compiler 13255 lt_prog_compiler_pic_CXX='-PIC' 13256 ;; 13257 *) 13258 ;; 13259 esac 13260 ;; 13261 sunos4*) 13262 case $cc_basename in 13263 CC*) 13264 # Sun C++ 4.x 13265 lt_prog_compiler_pic_CXX='-pic' 13266 lt_prog_compiler_static_CXX='-Bstatic' 13267 ;; 13268 lcc*) 13269 # Lucid 13270 lt_prog_compiler_pic_CXX='-pic' 13271 ;; 13272 *) 13273 ;; 13274 esac 13275 ;; 13276 tandem*) 13277 case $cc_basename in 13278 NCC*) 13279 # NonStop-UX NCC 3.20 13280 lt_prog_compiler_pic_CXX='-KPIC' 13281 ;; 13282 *) 13283 ;; 13284 esac 13285 ;; 13286 unixware*) 13287 ;; 13288 vxworks*) 13289 ;; 13290 *) 13291 lt_prog_compiler_can_build_shared_CXX=no 13292 ;; 13293 esac 13294 fi 13295 13296echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13297echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13298 13299# 13300# Check to make sure the PIC flag actually works. 13301# 13302if test -n "$lt_prog_compiler_pic_CXX"; then 13303 13304echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13305echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13306if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13307 echo $ECHO_N "(cached) $ECHO_C" >&6 13308else 13309 lt_prog_compiler_pic_works_CXX=no 13310 ac_outfile=conftest.$ac_objext 13311 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13312 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13313 # Insert the option either (1) after the last *FLAGS variable, or 13314 # (2) before a word containing "conftest.", or (3) at the end. 13315 # Note that $ac_compile itself does not contain backslashes and begins 13316 # with a dollar sign (not a hyphen), so the echo should work correctly. 13317 # The option is referenced via a variable to avoid confusing sed. 13318 lt_compile=`echo "$ac_compile" | $SED \ 13319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13321 -e 's:$: $lt_compiler_flag:'` 13322 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13323 (eval "$lt_compile" 2>conftest.err) 13324 ac_status=$? 13325 cat conftest.err >&5 13326 echo "$as_me:__oline__: \$? = $ac_status" >&5 13327 if (exit $ac_status) && test -s "$ac_outfile"; then 13328 # The compiler can only warn and ignore the option if not recognized 13329 # So say no if there are warnings other than the usual output. 13330 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13331 $SED '/^$/d' conftest.err >conftest.er2 13332 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13333 lt_prog_compiler_pic_works_CXX=yes 13334 fi 13335 fi 13336 $rm conftest* 13337 13338fi 13339echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13340echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13341 13342if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13343 case $lt_prog_compiler_pic_CXX in 13344 "" | " "*) ;; 13345 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13346 esac 13347else 13348 lt_prog_compiler_pic_CXX= 13349 lt_prog_compiler_can_build_shared_CXX=no 13350fi 13351 13352fi 13353case $host_os in 13354 # For platforms which do not support PIC, -DPIC is meaningless: 13355 *djgpp*) 13356 lt_prog_compiler_pic_CXX= 13357 ;; 13358 *) 13359 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13360 ;; 13361esac 13362 13363echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13364echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13365if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13366 echo $ECHO_N "(cached) $ECHO_C" >&6 13367else 13368 lt_cv_prog_compiler_c_o_CXX=no 13369 $rm -r conftest 2>/dev/null 13370 mkdir conftest 13371 cd conftest 13372 mkdir out 13373 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13374 13375 lt_compiler_flag="-o out/conftest2.$ac_objext" 13376 # Insert the option either (1) after the last *FLAGS variable, or 13377 # (2) before a word containing "conftest.", or (3) at the end. 13378 # Note that $ac_compile itself does not contain backslashes and begins 13379 # with a dollar sign (not a hyphen), so the echo should work correctly. 13380 lt_compile=`echo "$ac_compile" | $SED \ 13381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13383 -e 's:$: $lt_compiler_flag:'` 13384 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13385 (eval "$lt_compile" 2>out/conftest.err) 13386 ac_status=$? 13387 cat out/conftest.err >&5 13388 echo "$as_me:__oline__: \$? = $ac_status" >&5 13389 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13390 then 13391 # The compiler can only warn and ignore the option if not recognized 13392 # So say no if there are warnings 13393 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13394 $SED '/^$/d' out/conftest.err >out/conftest.er2 13395 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13396 lt_cv_prog_compiler_c_o_CXX=yes 13397 fi 13398 fi 13399 chmod u+w . 2>&5 13400 $rm conftest* 13401 # SGI C++ compiler will create directory out/ii_files/ for 13402 # template instantiation 13403 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13404 $rm out/* && rmdir out 13405 cd .. 13406 rmdir conftest 13407 $rm conftest* 13408 13409fi 13410echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13411echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13412 13413 13414hard_links="nottested" 13415if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13416 # do not overwrite the value of need_locks provided by the user 13417 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13418echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13419 hard_links=yes 13420 $rm conftest* 13421 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13422 touch conftest.a 13423 ln conftest.a conftest.b 2>&5 || hard_links=no 13424 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13425 echo "$as_me:$LINENO: result: $hard_links" >&5 13426echo "${ECHO_T}$hard_links" >&6 13427 if test "$hard_links" = no; then 13428 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13429echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13430 need_locks=warn 13431 fi 13432else 13433 need_locks=no 13434fi 13435 13436echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13437echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13438 13439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13440 case $host_os in 13441 aix4* | aix5*) 13442 # If we're using GNU nm, then we don't want the "-C" option. 13443 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13444 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13445 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' 13446 else 13447 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' 13448 fi 13449 ;; 13450 pw32*) 13451 export_symbols_cmds_CXX="$ltdll_cmds" 13452 ;; 13453 cygwin* | mingw*) 13454 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' 13455 ;; 13456 *) 13457 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13458 ;; 13459 esac 13460 13461echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13462echo "${ECHO_T}$ld_shlibs_CXX" >&6 13463test "$ld_shlibs_CXX" = no && can_build_shared=no 13464 13465variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13466if test "$GCC" = yes; then 13467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13468fi 13469 13470# 13471# Do we need to explicitly link libc? 13472# 13473case "x$archive_cmds_need_lc_CXX" in 13474x|xyes) 13475 # Assume -lc should be added 13476 archive_cmds_need_lc_CXX=yes 13477 13478 if test "$enable_shared" = yes && test "$GCC" = yes; then 13479 case $archive_cmds_CXX in 13480 *'~'*) 13481 # FIXME: we may have to deal with multi-command sequences. 13482 ;; 13483 '$CC '*) 13484 # Test whether the compiler implicitly links with -lc since on some 13485 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13486 # to ld, don't add -lc before -lgcc. 13487 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13488echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13489 $rm conftest* 13490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13491 13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13493 (eval $ac_compile) 2>&5 13494 ac_status=$? 13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13496 (exit $ac_status); } 2>conftest.err; then 13497 soname=conftest 13498 lib=conftest 13499 libobjs=conftest.$ac_objext 13500 deplibs= 13501 wl=$lt_prog_compiler_wl_CXX 13502 compiler_flags=-v 13503 linker_flags=-v 13504 verstring= 13505 output_objdir=. 13506 libname=conftest 13507 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13508 allow_undefined_flag_CXX= 13509 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13510 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13511 ac_status=$? 13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13513 (exit $ac_status); } 13514 then 13515 archive_cmds_need_lc_CXX=no 13516 else 13517 archive_cmds_need_lc_CXX=yes 13518 fi 13519 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13520 else 13521 cat conftest.err 1>&5 13522 fi 13523 $rm conftest* 13524 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13525echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13526 ;; 13527 esac 13528 fi 13529 ;; 13530esac 13531 13532echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13533echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13534library_names_spec= 13535libname_spec='lib$name' 13536soname_spec= 13537shrext_cmds=".so" 13538postinstall_cmds= 13539postuninstall_cmds= 13540finish_cmds= 13541finish_eval= 13542shlibpath_var= 13543shlibpath_overrides_runpath=unknown 13544version_type=none 13545dynamic_linker="$host_os ld.so" 13546sys_lib_dlsearch_path_spec="/lib /usr/lib" 13547if test "$GCC" = yes; then 13548 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13549 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13550 # if the path contains ";" then we assume it to be the separator 13551 # otherwise default to the standard path separator (i.e. ":") - it is 13552 # assumed that no part of a normal pathname contains ";" but that should 13553 # okay in the real world where ";" in dirpaths is itself problematic. 13554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13555 else 13556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13557 fi 13558else 13559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13560fi 13561need_lib_prefix=unknown 13562hardcode_into_libs=no 13563 13564# when you set need_version to no, make sure it does not cause -set_version 13565# flags to be left without arguments 13566need_version=unknown 13567 13568case $host_os in 13569aix3*) 13570 version_type=linux 13571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13572 shlibpath_var=LIBPATH 13573 13574 # AIX 3 has no versioning support, so we append a major version to the name. 13575 soname_spec='${libname}${release}${shared_ext}$major' 13576 ;; 13577 13578aix4* | aix5*) 13579 version_type=linux 13580 need_lib_prefix=no 13581 need_version=no 13582 hardcode_into_libs=yes 13583 if test "$host_cpu" = ia64; then 13584 # AIX 5 supports IA64 13585 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13586 shlibpath_var=LD_LIBRARY_PATH 13587 else 13588 # With GCC up to 2.95.x, collect2 would create an import file 13589 # for dependence libraries. The import file would start with 13590 # the line `#! .'. This would cause the generated library to 13591 # depend on `.', always an invalid library. This was fixed in 13592 # development snapshots of GCC prior to 3.0. 13593 case $host_os in 13594 aix4 | aix4.[01] | aix4.[01].*) 13595 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13596 echo ' yes ' 13597 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13598 : 13599 else 13600 can_build_shared=no 13601 fi 13602 ;; 13603 esac 13604 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13605 # soname into executable. Probably we can add versioning support to 13606 # collect2, so additional links can be useful in future. 13607 if test "$aix_use_runtimelinking" = yes; then 13608 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13609 # instead of lib<name>.a to let people know that these are not 13610 # typical AIX shared libraries. 13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13612 else 13613 # We preserve .a as extension for shared libraries through AIX4.2 13614 # and later when we are not doing run time linking. 13615 library_names_spec='${libname}${release}.a $libname.a' 13616 soname_spec='${libname}${release}${shared_ext}$major' 13617 fi 13618 shlibpath_var=LIBPATH 13619 fi 13620 ;; 13621 13622amigaos*) 13623 library_names_spec='$libname.ixlibrary $libname.a' 13624 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13625 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' 13626 ;; 13627 13628beos*) 13629 library_names_spec='${libname}${shared_ext}' 13630 dynamic_linker="$host_os ld.so" 13631 shlibpath_var=LIBRARY_PATH 13632 ;; 13633 13634bsdi[45]*) 13635 version_type=linux 13636 need_version=no 13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13638 soname_spec='${libname}${release}${shared_ext}$major' 13639 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13640 shlibpath_var=LD_LIBRARY_PATH 13641 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13642 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13643 # the default ld.so.conf also contains /usr/contrib/lib and 13644 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13645 # libtool to hard-code these into programs 13646 ;; 13647 13648cygwin* | mingw* | pw32*) 13649 version_type=windows 13650 shrext_cmds=".dll" 13651 need_version=no 13652 need_lib_prefix=no 13653 13654 case $GCC,$host_os in 13655 yes,cygwin* | yes,mingw* | yes,pw32*) 13656 library_names_spec='$libname.dll.a' 13657 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13658 postinstall_cmds='base_file=`basename \${file}`~ 13659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13660 dldir=$destdir/`dirname \$dlpath`~ 13661 test -d \$dldir || mkdir -p \$dldir~ 13662 $install_prog $dir/$dlname \$dldir/$dlname~ 13663 chmod a+x \$dldir/$dlname' 13664 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13665 dlpath=$dir/\$dldll~ 13666 $rm \$dlpath' 13667 shlibpath_overrides_runpath=yes 13668 13669 case $host_os in 13670 cygwin*) 13671 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13672 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13673 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13674 ;; 13675 mingw*) 13676 # MinGW DLLs use traditional 'lib' prefix 13677 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13678 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13679 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13680 # It is most probably a Windows format PATH printed by 13681 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13682 # path with ; separators, and with drive letters. We can handle the 13683 # drive letters (cygwin fileutils understands them), so leave them, 13684 # especially as we might pass files found there to a mingw objdump, 13685 # which wouldn't understand a cygwinified path. Ahh. 13686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13687 else 13688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13689 fi 13690 ;; 13691 pw32*) 13692 # pw32 DLLs use 'pw' prefix rather than 'lib' 13693 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13694 ;; 13695 esac 13696 ;; 13697 13698 *) 13699 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13700 ;; 13701 esac 13702 dynamic_linker='Win32 ld.exe' 13703 # FIXME: first we should search . and the directory the executable is in 13704 shlibpath_var=PATH 13705 ;; 13706 13707darwin* | rhapsody*) 13708 dynamic_linker="$host_os dyld" 13709 version_type=darwin 13710 need_lib_prefix=no 13711 need_version=no 13712 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13713 soname_spec='${libname}${release}${major}$shared_ext' 13714 shlibpath_overrides_runpath=yes 13715 shlibpath_var=DYLD_LIBRARY_PATH 13716 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13717 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13718 if test "$GCC" = yes; then 13719 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"` 13720 else 13721 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13722 fi 13723 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13724 ;; 13725 13726dgux*) 13727 version_type=linux 13728 need_lib_prefix=no 13729 need_version=no 13730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13731 soname_spec='${libname}${release}${shared_ext}$major' 13732 shlibpath_var=LD_LIBRARY_PATH 13733 ;; 13734 13735freebsd1*) 13736 dynamic_linker=no 13737 ;; 13738 13739kfreebsd*-gnu) 13740 version_type=linux 13741 need_lib_prefix=no 13742 need_version=no 13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13744 soname_spec='${libname}${release}${shared_ext}$major' 13745 shlibpath_var=LD_LIBRARY_PATH 13746 shlibpath_overrides_runpath=no 13747 hardcode_into_libs=yes 13748 dynamic_linker='GNU ld.so' 13749 ;; 13750 13751freebsd* | dragonfly*) 13752 # DragonFly does not have aout. When/if they implement a new 13753 # versioning mechanism, adjust this. 13754 if test -x /usr/bin/objformat; then 13755 objformat=`/usr/bin/objformat` 13756 else 13757 case $host_os in 13758 freebsd[123]*) objformat=aout ;; 13759 *) objformat=elf ;; 13760 esac 13761 fi 13762 version_type=freebsd-$objformat 13763 case $version_type in 13764 freebsd-elf*) 13765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13766 need_version=no 13767 need_lib_prefix=no 13768 ;; 13769 freebsd-*) 13770 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13771 need_version=yes 13772 ;; 13773 esac 13774 shlibpath_var=LD_LIBRARY_PATH 13775 case $host_os in 13776 freebsd2*) 13777 shlibpath_overrides_runpath=yes 13778 ;; 13779 freebsd3.[01]* | freebsdelf3.[01]*) 13780 shlibpath_overrides_runpath=yes 13781 hardcode_into_libs=yes 13782 ;; 13783 *) # from 3.2 on 13784 shlibpath_overrides_runpath=no 13785 hardcode_into_libs=yes 13786 ;; 13787 esac 13788 ;; 13789 13790gnu*) 13791 version_type=linux 13792 need_lib_prefix=no 13793 need_version=no 13794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13795 soname_spec='${libname}${release}${shared_ext}$major' 13796 shlibpath_var=LD_LIBRARY_PATH 13797 hardcode_into_libs=yes 13798 ;; 13799 13800hpux9* | hpux10* | hpux11*) 13801 # Give a soname corresponding to the major version so that dld.sl refuses to 13802 # link against other versions. 13803 version_type=sunos 13804 need_lib_prefix=no 13805 need_version=no 13806 case $host_cpu in 13807 ia64*) 13808 shrext_cmds='.so' 13809 hardcode_into_libs=yes 13810 dynamic_linker="$host_os dld.so" 13811 shlibpath_var=LD_LIBRARY_PATH 13812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13814 soname_spec='${libname}${release}${shared_ext}$major' 13815 if test "X$HPUX_IA64_MODE" = X32; then 13816 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13817 else 13818 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13819 fi 13820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13821 ;; 13822 hppa*64*) 13823 shrext_cmds='.sl' 13824 hardcode_into_libs=yes 13825 dynamic_linker="$host_os dld.sl" 13826 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13829 soname_spec='${libname}${release}${shared_ext}$major' 13830 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13832 ;; 13833 *) 13834 shrext_cmds='.sl' 13835 dynamic_linker="$host_os dld.sl" 13836 shlibpath_var=SHLIB_PATH 13837 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13839 soname_spec='${libname}${release}${shared_ext}$major' 13840 ;; 13841 esac 13842 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13843 postinstall_cmds='chmod 555 $lib' 13844 ;; 13845 13846irix5* | irix6* | nonstopux*) 13847 case $host_os in 13848 nonstopux*) version_type=nonstopux ;; 13849 *) 13850 if test "$lt_cv_prog_gnu_ld" = yes; then 13851 version_type=linux 13852 else 13853 version_type=irix 13854 fi ;; 13855 esac 13856 need_lib_prefix=no 13857 need_version=no 13858 soname_spec='${libname}${release}${shared_ext}$major' 13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13860 case $host_os in 13861 irix5* | nonstopux*) 13862 libsuff= shlibsuff= 13863 ;; 13864 *) 13865 case $LD in # libtool.m4 will add one of these switches to LD 13866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13867 libsuff= shlibsuff= libmagic=32-bit;; 13868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13869 libsuff=32 shlibsuff=N32 libmagic=N32;; 13870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13871 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13872 *) libsuff= shlibsuff= libmagic=never-match;; 13873 esac 13874 ;; 13875 esac 13876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13877 shlibpath_overrides_runpath=no 13878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13880 hardcode_into_libs=yes 13881 ;; 13882 13883# No shared lib support for Linux oldld, aout, or coff. 13884linux*oldld* | linux*aout* | linux*coff*) 13885 dynamic_linker=no 13886 ;; 13887 13888# This must be Linux ELF. 13889linux*) 13890 version_type=linux 13891 need_lib_prefix=no 13892 need_version=no 13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13894 soname_spec='${libname}${release}${shared_ext}$major' 13895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13896 shlibpath_var=LD_LIBRARY_PATH 13897 shlibpath_overrides_runpath=no 13898 # This implies no fast_install, which is unacceptable. 13899 # Some rework will be needed to allow for fast_install 13900 # before this can be enabled. 13901 hardcode_into_libs=yes 13902 13903 # Append ld.so.conf contents to the search path 13904 if test -f /etc/ld.so.conf; then 13905 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' ' '` 13906 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13907 fi 13908 13909 # We used to test for /lib/ld.so.1 and disable shared libraries on 13910 # powerpc, because MkLinux only supported shared libraries with the 13911 # GNU dynamic linker. Since this was broken with cross compilers, 13912 # most powerpc-linux boxes support dynamic linking these days and 13913 # people can always --disable-shared, the test was removed, and we 13914 # assume the GNU/Linux dynamic linker is in use. 13915 dynamic_linker='GNU/Linux ld.so' 13916 ;; 13917 13918knetbsd*-gnu) 13919 version_type=linux 13920 need_lib_prefix=no 13921 need_version=no 13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13923 soname_spec='${libname}${release}${shared_ext}$major' 13924 shlibpath_var=LD_LIBRARY_PATH 13925 shlibpath_overrides_runpath=no 13926 hardcode_into_libs=yes 13927 dynamic_linker='GNU ld.so' 13928 ;; 13929 13930netbsd*) 13931 version_type=sunos 13932 need_lib_prefix=no 13933 need_version=no 13934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13937 dynamic_linker='NetBSD (a.out) ld.so' 13938 else 13939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13940 soname_spec='${libname}${release}${shared_ext}$major' 13941 dynamic_linker='NetBSD ld.elf_so' 13942 fi 13943 shlibpath_var=LD_LIBRARY_PATH 13944 shlibpath_overrides_runpath=yes 13945 hardcode_into_libs=yes 13946 ;; 13947 13948newsos6) 13949 version_type=linux 13950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13951 shlibpath_var=LD_LIBRARY_PATH 13952 shlibpath_overrides_runpath=yes 13953 ;; 13954 13955nto-qnx*) 13956 version_type=linux 13957 need_lib_prefix=no 13958 need_version=no 13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13960 soname_spec='${libname}${release}${shared_ext}$major' 13961 shlibpath_var=LD_LIBRARY_PATH 13962 shlibpath_overrides_runpath=yes 13963 ;; 13964 13965openbsd*) 13966 version_type=sunos 13967 need_lib_prefix=no 13968 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13969 case $host_os in 13970 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13971 *) need_version=no ;; 13972 esac 13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13975 shlibpath_var=LD_LIBRARY_PATH 13976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13977 case $host_os in 13978 openbsd2.[89] | openbsd2.[89].*) 13979 shlibpath_overrides_runpath=no 13980 ;; 13981 *) 13982 shlibpath_overrides_runpath=yes 13983 ;; 13984 esac 13985 else 13986 shlibpath_overrides_runpath=yes 13987 fi 13988 ;; 13989 13990os2*) 13991 libname_spec='$name' 13992 shrext_cmds=".dll" 13993 need_lib_prefix=no 13994 library_names_spec='$libname${shared_ext} $libname.a' 13995 dynamic_linker='OS/2 ld.exe' 13996 shlibpath_var=LIBPATH 13997 ;; 13998 13999osf3* | osf4* | osf5*) 14000 version_type=osf 14001 need_lib_prefix=no 14002 need_version=no 14003 soname_spec='${libname}${release}${shared_ext}$major' 14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14005 shlibpath_var=LD_LIBRARY_PATH 14006 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14007 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14008 ;; 14009 14010sco3.2v5*) 14011 version_type=osf 14012 soname_spec='${libname}${release}${shared_ext}$major' 14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14014 shlibpath_var=LD_LIBRARY_PATH 14015 ;; 14016 14017solaris*) 14018 version_type=linux 14019 need_lib_prefix=no 14020 need_version=no 14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14022 soname_spec='${libname}${release}${shared_ext}$major' 14023 shlibpath_var=LD_LIBRARY_PATH 14024 shlibpath_overrides_runpath=yes 14025 hardcode_into_libs=yes 14026 # ldd complains unless libraries are executable 14027 postinstall_cmds='chmod +x $lib' 14028 ;; 14029 14030sunos4*) 14031 version_type=sunos 14032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14033 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14034 shlibpath_var=LD_LIBRARY_PATH 14035 shlibpath_overrides_runpath=yes 14036 if test "$with_gnu_ld" = yes; then 14037 need_lib_prefix=no 14038 fi 14039 need_version=yes 14040 ;; 14041 14042sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14043 version_type=linux 14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14045 soname_spec='${libname}${release}${shared_ext}$major' 14046 shlibpath_var=LD_LIBRARY_PATH 14047 case $host_vendor in 14048 sni) 14049 shlibpath_overrides_runpath=no 14050 need_lib_prefix=no 14051 export_dynamic_flag_spec='${wl}-Blargedynsym' 14052 runpath_var=LD_RUN_PATH 14053 ;; 14054 siemens) 14055 need_lib_prefix=no 14056 ;; 14057 motorola) 14058 need_lib_prefix=no 14059 need_version=no 14060 shlibpath_overrides_runpath=no 14061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14062 ;; 14063 esac 14064 ;; 14065 14066sysv4*MP*) 14067 if test -d /usr/nec ;then 14068 version_type=linux 14069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14070 soname_spec='$libname${shared_ext}.$major' 14071 shlibpath_var=LD_LIBRARY_PATH 14072 fi 14073 ;; 14074 14075uts4*) 14076 version_type=linux 14077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14078 soname_spec='${libname}${release}${shared_ext}$major' 14079 shlibpath_var=LD_LIBRARY_PATH 14080 ;; 14081 14082*) 14083 dynamic_linker=no 14084 ;; 14085esac 14086echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14087echo "${ECHO_T}$dynamic_linker" >&6 14088test "$dynamic_linker" = no && can_build_shared=no 14089 14090echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14091echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14092hardcode_action_CXX= 14093if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14094 test -n "$runpath_var_CXX" || \ 14095 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14096 14097 # We can hardcode non-existant directories. 14098 if test "$hardcode_direct_CXX" != no && 14099 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14100 # have to relink, otherwise we might link with an installed library 14101 # when we should be linking with a yet-to-be-installed one 14102 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14103 test "$hardcode_minus_L_CXX" != no; then 14104 # Linking always hardcodes the temporary library directory. 14105 hardcode_action_CXX=relink 14106 else 14107 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14108 hardcode_action_CXX=immediate 14109 fi 14110else 14111 # We cannot hardcode anything, or else we can only hardcode existing 14112 # directories. 14113 hardcode_action_CXX=unsupported 14114fi 14115echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14116echo "${ECHO_T}$hardcode_action_CXX" >&6 14117 14118if test "$hardcode_action_CXX" = relink; then 14119 # Fast installation is not supported 14120 enable_fast_install=no 14121elif test "$shlibpath_overrides_runpath" = yes || 14122 test "$enable_shared" = no; then 14123 # Fast installation is not necessary 14124 enable_fast_install=needless 14125fi 14126 14127striplib= 14128old_striplib= 14129echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 14130echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 14131if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 14132 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14133 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14134 echo "$as_me:$LINENO: result: yes" >&5 14135echo "${ECHO_T}yes" >&6 14136else 14137# FIXME - insert some real tests, host_os isn't really good enough 14138 case $host_os in 14139 darwin*) 14140 if test -n "$STRIP" ; then 14141 striplib="$STRIP -x" 14142 echo "$as_me:$LINENO: result: yes" >&5 14143echo "${ECHO_T}yes" >&6 14144 else 14145 echo "$as_me:$LINENO: result: no" >&5 14146echo "${ECHO_T}no" >&6 14147fi 14148 ;; 14149 *) 14150 echo "$as_me:$LINENO: result: no" >&5 14151echo "${ECHO_T}no" >&6 14152 ;; 14153 esac 14154fi 14155 14156if test "x$enable_dlopen" != xyes; then 14157 enable_dlopen=unknown 14158 enable_dlopen_self=unknown 14159 enable_dlopen_self_static=unknown 14160else 14161 lt_cv_dlopen=no 14162 lt_cv_dlopen_libs= 14163 14164 case $host_os in 14165 beos*) 14166 lt_cv_dlopen="load_add_on" 14167 lt_cv_dlopen_libs= 14168 lt_cv_dlopen_self=yes 14169 ;; 14170 14171 mingw* | pw32*) 14172 lt_cv_dlopen="LoadLibrary" 14173 lt_cv_dlopen_libs= 14174 ;; 14175 14176 cygwin*) 14177 lt_cv_dlopen="dlopen" 14178 lt_cv_dlopen_libs= 14179 ;; 14180 14181 darwin*) 14182 # if libdl is installed we need to link against it 14183 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14184echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14185if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14186 echo $ECHO_N "(cached) $ECHO_C" >&6 14187else 14188 ac_check_lib_save_LIBS=$LIBS 14189LIBS="-ldl $LIBS" 14190cat >conftest.$ac_ext <<_ACEOF 14191/* confdefs.h. */ 14192_ACEOF 14193cat confdefs.h >>conftest.$ac_ext 14194cat >>conftest.$ac_ext <<_ACEOF 14195/* end confdefs.h. */ 14196 14197/* Override any gcc2 internal prototype to avoid an error. */ 14198#ifdef __cplusplus 14199extern "C" 14200#endif 14201/* We use char because int might match the return type of a gcc2 14202 builtin and then its argument prototype would still apply. */ 14203char dlopen (); 14204int 14205main () 14206{ 14207dlopen (); 14208 ; 14209 return 0; 14210} 14211_ACEOF 14212rm -f conftest.$ac_objext conftest$ac_exeext 14213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14214 (eval $ac_link) 2>conftest.er1 14215 ac_status=$? 14216 grep -v '^ *+' conftest.er1 >conftest.err 14217 rm -f conftest.er1 14218 cat conftest.err >&5 14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14220 (exit $ac_status); } && 14221 { ac_try='test -z "$ac_cxx_werror_flag" 14222 || test ! -s conftest.err' 14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14224 (eval $ac_try) 2>&5 14225 ac_status=$? 14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14227 (exit $ac_status); }; } && 14228 { ac_try='test -s conftest$ac_exeext' 14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14230 (eval $ac_try) 2>&5 14231 ac_status=$? 14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14233 (exit $ac_status); }; }; then 14234 ac_cv_lib_dl_dlopen=yes 14235else 14236 echo "$as_me: failed program was:" >&5 14237sed 's/^/| /' conftest.$ac_ext >&5 14238 14239ac_cv_lib_dl_dlopen=no 14240fi 14241rm -f conftest.err conftest.$ac_objext \ 14242 conftest$ac_exeext conftest.$ac_ext 14243LIBS=$ac_check_lib_save_LIBS 14244fi 14245echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14246echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14247if test $ac_cv_lib_dl_dlopen = yes; then 14248 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14249else 14250 14251 lt_cv_dlopen="dyld" 14252 lt_cv_dlopen_libs= 14253 lt_cv_dlopen_self=yes 14254 14255fi 14256 14257 ;; 14258 14259 *) 14260 echo "$as_me:$LINENO: checking for shl_load" >&5 14261echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 14262if test "${ac_cv_func_shl_load+set}" = set; then 14263 echo $ECHO_N "(cached) $ECHO_C" >&6 14264else 14265 cat >conftest.$ac_ext <<_ACEOF 14266/* confdefs.h. */ 14267_ACEOF 14268cat confdefs.h >>conftest.$ac_ext 14269cat >>conftest.$ac_ext <<_ACEOF 14270/* end confdefs.h. */ 14271/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 14272 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14273#define shl_load innocuous_shl_load 14274 14275/* System header to define __stub macros and hopefully few prototypes, 14276 which can conflict with char shl_load (); below. 14277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14278 <limits.h> exists even on freestanding compilers. */ 14279 14280#ifdef __STDC__ 14281# include <limits.h> 14282#else 14283# include <assert.h> 14284#endif 14285 14286#undef shl_load 14287 14288/* Override any gcc2 internal prototype to avoid an error. */ 14289#ifdef __cplusplus 14290extern "C" 14291{ 14292#endif 14293/* We use char because int might match the return type of a gcc2 14294 builtin and then its argument prototype would still apply. */ 14295char shl_load (); 14296/* The GNU C library defines this for functions which it implements 14297 to always fail with ENOSYS. Some functions are actually named 14298 something starting with __ and the normal name is an alias. */ 14299#if defined (__stub_shl_load) || defined (__stub___shl_load) 14300choke me 14301#else 14302char (*f) () = shl_load; 14303#endif 14304#ifdef __cplusplus 14305} 14306#endif 14307 14308int 14309main () 14310{ 14311return f != shl_load; 14312 ; 14313 return 0; 14314} 14315_ACEOF 14316rm -f conftest.$ac_objext conftest$ac_exeext 14317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14318 (eval $ac_link) 2>conftest.er1 14319 ac_status=$? 14320 grep -v '^ *+' conftest.er1 >conftest.err 14321 rm -f conftest.er1 14322 cat conftest.err >&5 14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14324 (exit $ac_status); } && 14325 { ac_try='test -z "$ac_cxx_werror_flag" 14326 || test ! -s conftest.err' 14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14328 (eval $ac_try) 2>&5 14329 ac_status=$? 14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14331 (exit $ac_status); }; } && 14332 { ac_try='test -s conftest$ac_exeext' 14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14334 (eval $ac_try) 2>&5 14335 ac_status=$? 14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14337 (exit $ac_status); }; }; then 14338 ac_cv_func_shl_load=yes 14339else 14340 echo "$as_me: failed program was:" >&5 14341sed 's/^/| /' conftest.$ac_ext >&5 14342 14343ac_cv_func_shl_load=no 14344fi 14345rm -f conftest.err conftest.$ac_objext \ 14346 conftest$ac_exeext conftest.$ac_ext 14347fi 14348echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 14349echo "${ECHO_T}$ac_cv_func_shl_load" >&6 14350if test $ac_cv_func_shl_load = yes; then 14351 lt_cv_dlopen="shl_load" 14352else 14353 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 14354echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 14355if test "${ac_cv_lib_dld_shl_load+set}" = set; then 14356 echo $ECHO_N "(cached) $ECHO_C" >&6 14357else 14358 ac_check_lib_save_LIBS=$LIBS 14359LIBS="-ldld $LIBS" 14360cat >conftest.$ac_ext <<_ACEOF 14361/* confdefs.h. */ 14362_ACEOF 14363cat confdefs.h >>conftest.$ac_ext 14364cat >>conftest.$ac_ext <<_ACEOF 14365/* end confdefs.h. */ 14366 14367/* Override any gcc2 internal prototype to avoid an error. */ 14368#ifdef __cplusplus 14369extern "C" 14370#endif 14371/* We use char because int might match the return type of a gcc2 14372 builtin and then its argument prototype would still apply. */ 14373char shl_load (); 14374int 14375main () 14376{ 14377shl_load (); 14378 ; 14379 return 0; 14380} 14381_ACEOF 14382rm -f conftest.$ac_objext conftest$ac_exeext 14383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14384 (eval $ac_link) 2>conftest.er1 14385 ac_status=$? 14386 grep -v '^ *+' conftest.er1 >conftest.err 14387 rm -f conftest.er1 14388 cat conftest.err >&5 14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14390 (exit $ac_status); } && 14391 { ac_try='test -z "$ac_cxx_werror_flag" 14392 || test ! -s conftest.err' 14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14394 (eval $ac_try) 2>&5 14395 ac_status=$? 14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14397 (exit $ac_status); }; } && 14398 { ac_try='test -s conftest$ac_exeext' 14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14400 (eval $ac_try) 2>&5 14401 ac_status=$? 14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14403 (exit $ac_status); }; }; then 14404 ac_cv_lib_dld_shl_load=yes 14405else 14406 echo "$as_me: failed program was:" >&5 14407sed 's/^/| /' conftest.$ac_ext >&5 14408 14409ac_cv_lib_dld_shl_load=no 14410fi 14411rm -f conftest.err conftest.$ac_objext \ 14412 conftest$ac_exeext conftest.$ac_ext 14413LIBS=$ac_check_lib_save_LIBS 14414fi 14415echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 14416echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 14417if test $ac_cv_lib_dld_shl_load = yes; then 14418 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 14419else 14420 echo "$as_me:$LINENO: checking for dlopen" >&5 14421echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 14422if test "${ac_cv_func_dlopen+set}" = set; then 14423 echo $ECHO_N "(cached) $ECHO_C" >&6 14424else 14425 cat >conftest.$ac_ext <<_ACEOF 14426/* confdefs.h. */ 14427_ACEOF 14428cat confdefs.h >>conftest.$ac_ext 14429cat >>conftest.$ac_ext <<_ACEOF 14430/* end confdefs.h. */ 14431/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 14432 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14433#define dlopen innocuous_dlopen 14434 14435/* System header to define __stub macros and hopefully few prototypes, 14436 which can conflict with char dlopen (); below. 14437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14438 <limits.h> exists even on freestanding compilers. */ 14439 14440#ifdef __STDC__ 14441# include <limits.h> 14442#else 14443# include <assert.h> 14444#endif 14445 14446#undef dlopen 14447 14448/* Override any gcc2 internal prototype to avoid an error. */ 14449#ifdef __cplusplus 14450extern "C" 14451{ 14452#endif 14453/* We use char because int might match the return type of a gcc2 14454 builtin and then its argument prototype would still apply. */ 14455char dlopen (); 14456/* The GNU C library defines this for functions which it implements 14457 to always fail with ENOSYS. Some functions are actually named 14458 something starting with __ and the normal name is an alias. */ 14459#if defined (__stub_dlopen) || defined (__stub___dlopen) 14460choke me 14461#else 14462char (*f) () = dlopen; 14463#endif 14464#ifdef __cplusplus 14465} 14466#endif 14467 14468int 14469main () 14470{ 14471return f != dlopen; 14472 ; 14473 return 0; 14474} 14475_ACEOF 14476rm -f conftest.$ac_objext conftest$ac_exeext 14477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14478 (eval $ac_link) 2>conftest.er1 14479 ac_status=$? 14480 grep -v '^ *+' conftest.er1 >conftest.err 14481 rm -f conftest.er1 14482 cat conftest.err >&5 14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14484 (exit $ac_status); } && 14485 { ac_try='test -z "$ac_cxx_werror_flag" 14486 || test ! -s conftest.err' 14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14488 (eval $ac_try) 2>&5 14489 ac_status=$? 14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14491 (exit $ac_status); }; } && 14492 { ac_try='test -s conftest$ac_exeext' 14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14494 (eval $ac_try) 2>&5 14495 ac_status=$? 14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14497 (exit $ac_status); }; }; then 14498 ac_cv_func_dlopen=yes 14499else 14500 echo "$as_me: failed program was:" >&5 14501sed 's/^/| /' conftest.$ac_ext >&5 14502 14503ac_cv_func_dlopen=no 14504fi 14505rm -f conftest.err conftest.$ac_objext \ 14506 conftest$ac_exeext conftest.$ac_ext 14507fi 14508echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 14509echo "${ECHO_T}$ac_cv_func_dlopen" >&6 14510if test $ac_cv_func_dlopen = yes; then 14511 lt_cv_dlopen="dlopen" 14512else 14513 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14514echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14515if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14516 echo $ECHO_N "(cached) $ECHO_C" >&6 14517else 14518 ac_check_lib_save_LIBS=$LIBS 14519LIBS="-ldl $LIBS" 14520cat >conftest.$ac_ext <<_ACEOF 14521/* confdefs.h. */ 14522_ACEOF 14523cat confdefs.h >>conftest.$ac_ext 14524cat >>conftest.$ac_ext <<_ACEOF 14525/* end confdefs.h. */ 14526 14527/* Override any gcc2 internal prototype to avoid an error. */ 14528#ifdef __cplusplus 14529extern "C" 14530#endif 14531/* We use char because int might match the return type of a gcc2 14532 builtin and then its argument prototype would still apply. */ 14533char dlopen (); 14534int 14535main () 14536{ 14537dlopen (); 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542rm -f conftest.$ac_objext conftest$ac_exeext 14543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14544 (eval $ac_link) 2>conftest.er1 14545 ac_status=$? 14546 grep -v '^ *+' conftest.er1 >conftest.err 14547 rm -f conftest.er1 14548 cat conftest.err >&5 14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14550 (exit $ac_status); } && 14551 { ac_try='test -z "$ac_cxx_werror_flag" 14552 || test ! -s conftest.err' 14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14554 (eval $ac_try) 2>&5 14555 ac_status=$? 14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14557 (exit $ac_status); }; } && 14558 { ac_try='test -s conftest$ac_exeext' 14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14560 (eval $ac_try) 2>&5 14561 ac_status=$? 14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14563 (exit $ac_status); }; }; then 14564 ac_cv_lib_dl_dlopen=yes 14565else 14566 echo "$as_me: failed program was:" >&5 14567sed 's/^/| /' conftest.$ac_ext >&5 14568 14569ac_cv_lib_dl_dlopen=no 14570fi 14571rm -f conftest.err conftest.$ac_objext \ 14572 conftest$ac_exeext conftest.$ac_ext 14573LIBS=$ac_check_lib_save_LIBS 14574fi 14575echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14576echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14577if test $ac_cv_lib_dl_dlopen = yes; then 14578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14579else 14580 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 14581echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 14582if test "${ac_cv_lib_svld_dlopen+set}" = set; then 14583 echo $ECHO_N "(cached) $ECHO_C" >&6 14584else 14585 ac_check_lib_save_LIBS=$LIBS 14586LIBS="-lsvld $LIBS" 14587cat >conftest.$ac_ext <<_ACEOF 14588/* confdefs.h. */ 14589_ACEOF 14590cat confdefs.h >>conftest.$ac_ext 14591cat >>conftest.$ac_ext <<_ACEOF 14592/* end confdefs.h. */ 14593 14594/* Override any gcc2 internal prototype to avoid an error. */ 14595#ifdef __cplusplus 14596extern "C" 14597#endif 14598/* We use char because int might match the return type of a gcc2 14599 builtin and then its argument prototype would still apply. */ 14600char dlopen (); 14601int 14602main () 14603{ 14604dlopen (); 14605 ; 14606 return 0; 14607} 14608_ACEOF 14609rm -f conftest.$ac_objext conftest$ac_exeext 14610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14611 (eval $ac_link) 2>conftest.er1 14612 ac_status=$? 14613 grep -v '^ *+' conftest.er1 >conftest.err 14614 rm -f conftest.er1 14615 cat conftest.err >&5 14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14617 (exit $ac_status); } && 14618 { ac_try='test -z "$ac_cxx_werror_flag" 14619 || test ! -s conftest.err' 14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14621 (eval $ac_try) 2>&5 14622 ac_status=$? 14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14624 (exit $ac_status); }; } && 14625 { ac_try='test -s conftest$ac_exeext' 14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14627 (eval $ac_try) 2>&5 14628 ac_status=$? 14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14630 (exit $ac_status); }; }; then 14631 ac_cv_lib_svld_dlopen=yes 14632else 14633 echo "$as_me: failed program was:" >&5 14634sed 's/^/| /' conftest.$ac_ext >&5 14635 14636ac_cv_lib_svld_dlopen=no 14637fi 14638rm -f conftest.err conftest.$ac_objext \ 14639 conftest$ac_exeext conftest.$ac_ext 14640LIBS=$ac_check_lib_save_LIBS 14641fi 14642echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 14643echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 14644if test $ac_cv_lib_svld_dlopen = yes; then 14645 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 14646else 14647 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 14648echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 14649if test "${ac_cv_lib_dld_dld_link+set}" = set; then 14650 echo $ECHO_N "(cached) $ECHO_C" >&6 14651else 14652 ac_check_lib_save_LIBS=$LIBS 14653LIBS="-ldld $LIBS" 14654cat >conftest.$ac_ext <<_ACEOF 14655/* confdefs.h. */ 14656_ACEOF 14657cat confdefs.h >>conftest.$ac_ext 14658cat >>conftest.$ac_ext <<_ACEOF 14659/* end confdefs.h. */ 14660 14661/* Override any gcc2 internal prototype to avoid an error. */ 14662#ifdef __cplusplus 14663extern "C" 14664#endif 14665/* We use char because int might match the return type of a gcc2 14666 builtin and then its argument prototype would still apply. */ 14667char dld_link (); 14668int 14669main () 14670{ 14671dld_link (); 14672 ; 14673 return 0; 14674} 14675_ACEOF 14676rm -f conftest.$ac_objext conftest$ac_exeext 14677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14678 (eval $ac_link) 2>conftest.er1 14679 ac_status=$? 14680 grep -v '^ *+' conftest.er1 >conftest.err 14681 rm -f conftest.er1 14682 cat conftest.err >&5 14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14684 (exit $ac_status); } && 14685 { ac_try='test -z "$ac_cxx_werror_flag" 14686 || test ! -s conftest.err' 14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14688 (eval $ac_try) 2>&5 14689 ac_status=$? 14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14691 (exit $ac_status); }; } && 14692 { ac_try='test -s conftest$ac_exeext' 14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14694 (eval $ac_try) 2>&5 14695 ac_status=$? 14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14697 (exit $ac_status); }; }; then 14698 ac_cv_lib_dld_dld_link=yes 14699else 14700 echo "$as_me: failed program was:" >&5 14701sed 's/^/| /' conftest.$ac_ext >&5 14702 14703ac_cv_lib_dld_dld_link=no 14704fi 14705rm -f conftest.err conftest.$ac_objext \ 14706 conftest$ac_exeext conftest.$ac_ext 14707LIBS=$ac_check_lib_save_LIBS 14708fi 14709echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 14710echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 14711if test $ac_cv_lib_dld_dld_link = yes; then 14712 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 14713fi 14714 14715 14716fi 14717 14718 14719fi 14720 14721 14722fi 14723 14724 14725fi 14726 14727 14728fi 14729 14730 ;; 14731 esac 14732 14733 if test "x$lt_cv_dlopen" != xno; then 14734 enable_dlopen=yes 14735 else 14736 enable_dlopen=no 14737 fi 14738 14739 case $lt_cv_dlopen in 14740 dlopen) 14741 save_CPPFLAGS="$CPPFLAGS" 14742 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14743 14744 save_LDFLAGS="$LDFLAGS" 14745 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14746 14747 save_LIBS="$LIBS" 14748 LIBS="$lt_cv_dlopen_libs $LIBS" 14749 14750 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 14751echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 14752if test "${lt_cv_dlopen_self+set}" = set; then 14753 echo $ECHO_N "(cached) $ECHO_C" >&6 14754else 14755 if test "$cross_compiling" = yes; then : 14756 lt_cv_dlopen_self=cross 14757else 14758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14759 lt_status=$lt_dlunknown 14760 cat > conftest.$ac_ext <<EOF 14761#line __oline__ "configure" 14762#include "confdefs.h" 14763 14764#if HAVE_DLFCN_H 14765#include <dlfcn.h> 14766#endif 14767 14768#include <stdio.h> 14769 14770#ifdef RTLD_GLOBAL 14771# define LT_DLGLOBAL RTLD_GLOBAL 14772#else 14773# ifdef DL_GLOBAL 14774# define LT_DLGLOBAL DL_GLOBAL 14775# else 14776# define LT_DLGLOBAL 0 14777# endif 14778#endif 14779 14780/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14781 find out it does not work in some platform. */ 14782#ifndef LT_DLLAZY_OR_NOW 14783# ifdef RTLD_LAZY 14784# define LT_DLLAZY_OR_NOW RTLD_LAZY 14785# else 14786# ifdef DL_LAZY 14787# define LT_DLLAZY_OR_NOW DL_LAZY 14788# else 14789# ifdef RTLD_NOW 14790# define LT_DLLAZY_OR_NOW RTLD_NOW 14791# else 14792# ifdef DL_NOW 14793# define LT_DLLAZY_OR_NOW DL_NOW 14794# else 14795# define LT_DLLAZY_OR_NOW 0 14796# endif 14797# endif 14798# endif 14799# endif 14800#endif 14801 14802#ifdef __cplusplus 14803extern "C" void exit (int); 14804#endif 14805 14806void fnord() { int i=42;} 14807int main () 14808{ 14809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14810 int status = $lt_dlunknown; 14811 14812 if (self) 14813 { 14814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14815 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14816 /* dlclose (self); */ 14817 } 14818 14819 exit (status); 14820} 14821EOF 14822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14823 (eval $ac_link) 2>&5 14824 ac_status=$? 14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14826 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 14827 (./conftest; exit; ) >&5 2>/dev/null 14828 lt_status=$? 14829 case x$lt_status in 14830 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14831 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14832 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 14833 esac 14834 else : 14835 # compilation failed 14836 lt_cv_dlopen_self=no 14837 fi 14838fi 14839rm -fr conftest* 14840 14841 14842fi 14843echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 14844echo "${ECHO_T}$lt_cv_dlopen_self" >&6 14845 14846 if test "x$lt_cv_dlopen_self" = xyes; then 14847 LDFLAGS="$LDFLAGS $link_static_flag" 14848 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 14849echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 14850if test "${lt_cv_dlopen_self_static+set}" = set; then 14851 echo $ECHO_N "(cached) $ECHO_C" >&6 14852else 14853 if test "$cross_compiling" = yes; then : 14854 lt_cv_dlopen_self_static=cross 14855else 14856 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14857 lt_status=$lt_dlunknown 14858 cat > conftest.$ac_ext <<EOF 14859#line __oline__ "configure" 14860#include "confdefs.h" 14861 14862#if HAVE_DLFCN_H 14863#include <dlfcn.h> 14864#endif 14865 14866#include <stdio.h> 14867 14868#ifdef RTLD_GLOBAL 14869# define LT_DLGLOBAL RTLD_GLOBAL 14870#else 14871# ifdef DL_GLOBAL 14872# define LT_DLGLOBAL DL_GLOBAL 14873# else 14874# define LT_DLGLOBAL 0 14875# endif 14876#endif 14877 14878/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14879 find out it does not work in some platform. */ 14880#ifndef LT_DLLAZY_OR_NOW 14881# ifdef RTLD_LAZY 14882# define LT_DLLAZY_OR_NOW RTLD_LAZY 14883# else 14884# ifdef DL_LAZY 14885# define LT_DLLAZY_OR_NOW DL_LAZY 14886# else 14887# ifdef RTLD_NOW 14888# define LT_DLLAZY_OR_NOW RTLD_NOW 14889# else 14890# ifdef DL_NOW 14891# define LT_DLLAZY_OR_NOW DL_NOW 14892# else 14893# define LT_DLLAZY_OR_NOW 0 14894# endif 14895# endif 14896# endif 14897# endif 14898#endif 14899 14900#ifdef __cplusplus 14901extern "C" void exit (int); 14902#endif 14903 14904void fnord() { int i=42;} 14905int main () 14906{ 14907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14908 int status = $lt_dlunknown; 14909 14910 if (self) 14911 { 14912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14913 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14914 /* dlclose (self); */ 14915 } 14916 14917 exit (status); 14918} 14919EOF 14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14921 (eval $ac_link) 2>&5 14922 ac_status=$? 14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14924 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 14925 (./conftest; exit; ) >&5 2>/dev/null 14926 lt_status=$? 14927 case x$lt_status in 14928 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14929 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14930 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 14931 esac 14932 else : 14933 # compilation failed 14934 lt_cv_dlopen_self_static=no 14935 fi 14936fi 14937rm -fr conftest* 14938 14939 14940fi 14941echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 14942echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 14943 fi 14944 14945 CPPFLAGS="$save_CPPFLAGS" 14946 LDFLAGS="$save_LDFLAGS" 14947 LIBS="$save_LIBS" 14948 ;; 14949 esac 14950 14951 case $lt_cv_dlopen_self in 14952 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14953 *) enable_dlopen_self=unknown ;; 14954 esac 14955 14956 case $lt_cv_dlopen_self_static in 14957 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14958 *) enable_dlopen_self_static=unknown ;; 14959 esac 14960fi 14961 14962 14963# The else clause should only fire when bootstrapping the 14964# libtool distribution, otherwise you forgot to ship ltmain.sh 14965# with your package, and you will get complaints that there are 14966# no rules to generate ltmain.sh. 14967if test -f "$ltmain"; then 14968 # See if we are running on zsh, and set the options which allow our commands through 14969 # without removal of \ escapes. 14970 if test -n "${ZSH_VERSION+set}" ; then 14971 setopt NO_GLOB_SUBST 14972 fi 14973 # Now quote all the things that may contain metacharacters while being 14974 # careful not to overquote the AC_SUBSTed values. We take copies of the 14975 # variables and quote the copies for generation of the libtool script. 14976 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 14977 SED SHELL STRIP \ 14978 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14979 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14980 deplibs_check_method reload_flag reload_cmds need_locks \ 14981 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14982 lt_cv_sys_global_symbol_to_c_name_address \ 14983 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14984 old_postinstall_cmds old_postuninstall_cmds \ 14985 compiler_CXX \ 14986 CC_CXX \ 14987 LD_CXX \ 14988 lt_prog_compiler_wl_CXX \ 14989 lt_prog_compiler_pic_CXX \ 14990 lt_prog_compiler_static_CXX \ 14991 lt_prog_compiler_no_builtin_flag_CXX \ 14992 export_dynamic_flag_spec_CXX \ 14993 thread_safe_flag_spec_CXX \ 14994 whole_archive_flag_spec_CXX \ 14995 enable_shared_with_static_runtimes_CXX \ 14996 old_archive_cmds_CXX \ 14997 old_archive_from_new_cmds_CXX \ 14998 predep_objects_CXX \ 14999 postdep_objects_CXX \ 15000 predeps_CXX \ 15001 postdeps_CXX \ 15002 compiler_lib_search_path_CXX \ 15003 archive_cmds_CXX \ 15004 archive_expsym_cmds_CXX \ 15005 postinstall_cmds_CXX \ 15006 postuninstall_cmds_CXX \ 15007 old_archive_from_expsyms_cmds_CXX \ 15008 allow_undefined_flag_CXX \ 15009 no_undefined_flag_CXX \ 15010 export_symbols_cmds_CXX \ 15011 hardcode_libdir_flag_spec_CXX \ 15012 hardcode_libdir_flag_spec_ld_CXX \ 15013 hardcode_libdir_separator_CXX \ 15014 hardcode_automatic_CXX \ 15015 module_cmds_CXX \ 15016 module_expsym_cmds_CXX \ 15017 lt_cv_prog_compiler_c_o_CXX \ 15018 exclude_expsyms_CXX \ 15019 include_expsyms_CXX; do 15020 15021 case $var in 15022 old_archive_cmds_CXX | \ 15023 old_archive_from_new_cmds_CXX | \ 15024 archive_cmds_CXX | \ 15025 archive_expsym_cmds_CXX | \ 15026 module_cmds_CXX | \ 15027 module_expsym_cmds_CXX | \ 15028 old_archive_from_expsyms_cmds_CXX | \ 15029 export_symbols_cmds_CXX | \ 15030 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15031 postinstall_cmds | postuninstall_cmds | \ 15032 old_postinstall_cmds | old_postuninstall_cmds | \ 15033 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15034 # Double-quote double-evaled strings. 15035 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15036 ;; 15037 *) 15038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15039 ;; 15040 esac 15041 done 15042 15043 case $lt_echo in 15044 *'\$0 --fallback-echo"') 15045 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15046 ;; 15047 esac 15048 15049cfgfile="$ofile" 15050 15051 cat <<__EOF__ >> "$cfgfile" 15052# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15053 15054# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15055 15056# Shell to use when invoking shell scripts. 15057SHELL=$lt_SHELL 15058 15059# Whether or not to build shared libraries. 15060build_libtool_libs=$enable_shared 15061 15062# Whether or not to build static libraries. 15063build_old_libs=$enable_static 15064 15065# Whether or not to add -lc for building shared libraries. 15066build_libtool_need_lc=$archive_cmds_need_lc_CXX 15067 15068# Whether or not to disallow shared libs when runtime libs are static 15069allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 15070 15071# Whether or not to optimize for fast installation. 15072fast_install=$enable_fast_install 15073 15074# The host system. 15075host_alias=$host_alias 15076host=$host 15077host_os=$host_os 15078 15079# The build system. 15080build_alias=$build_alias 15081build=$build 15082build_os=$build_os 15083 15084# An echo program that does not interpret backslashes. 15085echo=$lt_echo 15086 15087# The archiver. 15088AR=$lt_AR 15089AR_FLAGS=$lt_AR_FLAGS 15090 15091# A C compiler. 15092LTCC=$lt_LTCC 15093 15094# A language-specific compiler. 15095CC=$lt_compiler_CXX 15096 15097# Is the compiler the GNU C compiler? 15098with_gcc=$GCC_CXX 15099 15100# An ERE matcher. 15101EGREP=$lt_EGREP 15102 15103# The linker used to build libraries. 15104LD=$lt_LD_CXX 15105 15106# Whether we need hard or soft links. 15107LN_S=$lt_LN_S 15108 15109# A BSD-compatible nm program. 15110NM=$lt_NM 15111 15112# A symbol stripping program 15113STRIP=$lt_STRIP 15114 15115# Used to examine libraries when file_magic_cmd begins "file" 15116MAGIC_CMD=$MAGIC_CMD 15117 15118# Used on cygwin: DLL creation program. 15119DLLTOOL="$DLLTOOL" 15120 15121# Used on cygwin: object dumper. 15122OBJDUMP="$OBJDUMP" 15123 15124# Used on cygwin: assembler. 15125AS="$AS" 15126 15127# The name of the directory that contains temporary libtool files. 15128objdir=$objdir 15129 15130# How to create reloadable object files. 15131reload_flag=$lt_reload_flag 15132reload_cmds=$lt_reload_cmds 15133 15134# How to pass a linker flag through the compiler. 15135wl=$lt_lt_prog_compiler_wl_CXX 15136 15137# Object file suffix (normally "o"). 15138objext="$ac_objext" 15139 15140# Old archive suffix (normally "a"). 15141libext="$libext" 15142 15143# Shared library suffix (normally ".so"). 15144shrext_cmds='$shrext_cmds' 15145 15146# Executable file suffix (normally ""). 15147exeext="$exeext" 15148 15149# Additional compiler flags for building library objects. 15150pic_flag=$lt_lt_prog_compiler_pic_CXX 15151pic_mode=$pic_mode 15152 15153# What is the maximum length of a command? 15154max_cmd_len=$lt_cv_sys_max_cmd_len 15155 15156# Does compiler simultaneously support -c and -o options? 15157compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 15158 15159# Must we lock files when doing compilation? 15160need_locks=$lt_need_locks 15161 15162# Do we need the lib prefix for modules? 15163need_lib_prefix=$need_lib_prefix 15164 15165# Do we need a version for libraries? 15166need_version=$need_version 15167 15168# Whether dlopen is supported. 15169dlopen_support=$enable_dlopen 15170 15171# Whether dlopen of programs is supported. 15172dlopen_self=$enable_dlopen_self 15173 15174# Whether dlopen of statically linked programs is supported. 15175dlopen_self_static=$enable_dlopen_self_static 15176 15177# Compiler flag to prevent dynamic linking. 15178link_static_flag=$lt_lt_prog_compiler_static_CXX 15179 15180# Compiler flag to turn off builtin functions. 15181no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15182 15183# Compiler flag to allow reflexive dlopens. 15184export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15185 15186# Compiler flag to generate shared objects directly from archives. 15187whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15188 15189# Compiler flag to generate thread-safe objects. 15190thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15191 15192# Library versioning type. 15193version_type=$version_type 15194 15195# Format of library name prefix. 15196libname_spec=$lt_libname_spec 15197 15198# List of archive names. First name is the real one, the rest are links. 15199# The last name is the one that the linker finds with -lNAME. 15200library_names_spec=$lt_library_names_spec 15201 15202# The coded name of the library, if different from the real name. 15203soname_spec=$lt_soname_spec 15204 15205# Commands used to build and install an old-style archive. 15206RANLIB=$lt_RANLIB 15207old_archive_cmds=$lt_old_archive_cmds_CXX 15208old_postinstall_cmds=$lt_old_postinstall_cmds 15209old_postuninstall_cmds=$lt_old_postuninstall_cmds 15210 15211# Create an old-style archive from a shared archive. 15212old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15213 15214# Create a temporary old-style archive to link instead of a shared archive. 15215old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15216 15217# Commands used to build and install a shared archive. 15218archive_cmds=$lt_archive_cmds_CXX 15219archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15220postinstall_cmds=$lt_postinstall_cmds 15221postuninstall_cmds=$lt_postuninstall_cmds 15222 15223# Commands used to build a loadable module (assumed same as above if empty) 15224module_cmds=$lt_module_cmds_CXX 15225module_expsym_cmds=$lt_module_expsym_cmds_CXX 15226 15227# Commands to strip libraries. 15228old_striplib=$lt_old_striplib 15229striplib=$lt_striplib 15230 15231# Dependencies to place before the objects being linked to create a 15232# shared library. 15233predep_objects=$lt_predep_objects_CXX 15234 15235# Dependencies to place after the objects being linked to create a 15236# shared library. 15237postdep_objects=$lt_postdep_objects_CXX 15238 15239# Dependencies to place before the objects being linked to create a 15240# shared library. 15241predeps=$lt_predeps_CXX 15242 15243# Dependencies to place after the objects being linked to create a 15244# shared library. 15245postdeps=$lt_postdeps_CXX 15246 15247# The library search path used internally by the compiler when linking 15248# a shared library. 15249compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15250 15251# Method to check whether dependent libraries are shared objects. 15252deplibs_check_method=$lt_deplibs_check_method 15253 15254# Command to use when deplibs_check_method == file_magic. 15255file_magic_cmd=$lt_file_magic_cmd 15256 15257# Flag that allows shared libraries with undefined symbols to be built. 15258allow_undefined_flag=$lt_allow_undefined_flag_CXX 15259 15260# Flag that forces no undefined symbols. 15261no_undefined_flag=$lt_no_undefined_flag_CXX 15262 15263# Commands used to finish a libtool library installation in a directory. 15264finish_cmds=$lt_finish_cmds 15265 15266# Same as above, but a single script fragment to be evaled but not shown. 15267finish_eval=$lt_finish_eval 15268 15269# Take the output of nm and produce a listing of raw symbols and C names. 15270global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15271 15272# Transform the output of nm in a proper C declaration 15273global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15274 15275# Transform the output of nm in a C name address pair 15276global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15277 15278# This is the shared library runtime path variable. 15279runpath_var=$runpath_var 15280 15281# This is the shared library path variable. 15282shlibpath_var=$shlibpath_var 15283 15284# Is shlibpath searched before the hard-coded library search path? 15285shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15286 15287# How to hardcode a shared library path into an executable. 15288hardcode_action=$hardcode_action_CXX 15289 15290# Whether we should hardcode library paths into libraries. 15291hardcode_into_libs=$hardcode_into_libs 15292 15293# Flag to hardcode \$libdir into a binary during linking. 15294# This must work even if \$libdir does not exist. 15295hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15296 15297# If ld is used when linking, flag to hardcode \$libdir into 15298# a binary during linking. This must work even if \$libdir does 15299# not exist. 15300hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15301 15302# Whether we need a single -rpath flag with a separated argument. 15303hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15304 15305# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15306# resulting binary. 15307hardcode_direct=$hardcode_direct_CXX 15308 15309# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15310# resulting binary. 15311hardcode_minus_L=$hardcode_minus_L_CXX 15312 15313# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15314# the resulting binary. 15315hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15316 15317# Set to yes if building a shared library automatically hardcodes DIR into the library 15318# and all subsequent libraries and executables linked against it. 15319hardcode_automatic=$hardcode_automatic_CXX 15320 15321# Variables whose values should be saved in libtool wrapper scripts and 15322# restored at relink time. 15323variables_saved_for_relink="$variables_saved_for_relink" 15324 15325# Whether libtool must link a program against all its dependency libraries. 15326link_all_deplibs=$link_all_deplibs_CXX 15327 15328# Compile-time system search path for libraries 15329sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15330 15331# Run-time system search path for libraries 15332sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15333 15334# Fix the shell variable \$srcfile for the compiler. 15335fix_srcfile_path="$fix_srcfile_path_CXX" 15336 15337# Set to yes if exported symbols are required. 15338always_export_symbols=$always_export_symbols_CXX 15339 15340# The commands to list exported symbols. 15341export_symbols_cmds=$lt_export_symbols_cmds_CXX 15342 15343# The commands to extract the exported symbol list from a shared archive. 15344extract_expsyms_cmds=$lt_extract_expsyms_cmds 15345 15346# Symbols that should not be listed in the preloaded symbols. 15347exclude_expsyms=$lt_exclude_expsyms_CXX 15348 15349# Symbols that must always be exported. 15350include_expsyms=$lt_include_expsyms_CXX 15351 15352# ### END LIBTOOL TAG CONFIG: $tagname 15353 15354__EOF__ 15355 15356 15357else 15358 # If there is no Makefile yet, we rely on a make rule to execute 15359 # `config.status --recheck' to rerun these tests and create the 15360 # libtool script then. 15361 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15362 if test -f "$ltmain_in"; then 15363 test -f Makefile && make "$ltmain" 15364 fi 15365fi 15366 15367 15368ac_ext=c 15369ac_cpp='$CPP $CPPFLAGS' 15370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15372ac_compiler_gnu=$ac_cv_c_compiler_gnu 15373 15374CC=$lt_save_CC 15375LDCXX=$LD 15376LD=$lt_save_LD 15377GCC=$lt_save_GCC 15378with_gnu_ldcxx=$with_gnu_ld 15379with_gnu_ld=$lt_save_with_gnu_ld 15380lt_cv_path_LDCXX=$lt_cv_path_LD 15381lt_cv_path_LD=$lt_save_path_LD 15382lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15383lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15384 15385 else 15386 tagname="" 15387 fi 15388 ;; 15389 15390 F77) 15391 if test -n "$F77" && test "X$F77" != "Xno"; then 15392 15393ac_ext=f 15394ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15395ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15396ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15397 15398 15399archive_cmds_need_lc_F77=no 15400allow_undefined_flag_F77= 15401always_export_symbols_F77=no 15402archive_expsym_cmds_F77= 15403export_dynamic_flag_spec_F77= 15404hardcode_direct_F77=no 15405hardcode_libdir_flag_spec_F77= 15406hardcode_libdir_flag_spec_ld_F77= 15407hardcode_libdir_separator_F77= 15408hardcode_minus_L_F77=no 15409hardcode_automatic_F77=no 15410module_cmds_F77= 15411module_expsym_cmds_F77= 15412link_all_deplibs_F77=unknown 15413old_archive_cmds_F77=$old_archive_cmds 15414no_undefined_flag_F77= 15415whole_archive_flag_spec_F77= 15416enable_shared_with_static_runtimes_F77=no 15417 15418# Source file extension for f77 test sources. 15419ac_ext=f 15420 15421# Object file extension for compiled f77 test sources. 15422objext=o 15423objext_F77=$objext 15424 15425# Code to be used in simple compile tests 15426lt_simple_compile_test_code=" subroutine t\n return\n end\n" 15427 15428# Code to be used in simple link tests 15429lt_simple_link_test_code=" program t\n end\n" 15430 15431# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15432 15433# If no C compiler was specified, use CC. 15434LTCC=${LTCC-"$CC"} 15435 15436# Allow CC to be a program name with arguments. 15437compiler=$CC 15438 15439 15440# save warnings/boilerplate of simple test code 15441ac_outfile=conftest.$ac_objext 15442printf "$lt_simple_compile_test_code" >conftest.$ac_ext 15443eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15444_lt_compiler_boilerplate=`cat conftest.err` 15445$rm conftest* 15446 15447ac_outfile=conftest.$ac_objext 15448printf "$lt_simple_link_test_code" >conftest.$ac_ext 15449eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 15450_lt_linker_boilerplate=`cat conftest.err` 15451$rm conftest* 15452 15453 15454# Allow CC to be a program name with arguments. 15455lt_save_CC="$CC" 15456CC=${F77-"f77"} 15457compiler=$CC 15458compiler_F77=$CC 15459for cc_temp in $compiler""; do 15460 case $cc_temp in 15461 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15462 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15463 \-*) ;; 15464 *) break;; 15465 esac 15466done 15467cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15468 15469 15470echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15471echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 15472echo "$as_me:$LINENO: result: $can_build_shared" >&5 15473echo "${ECHO_T}$can_build_shared" >&6 15474 15475echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15476echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 15477test "$can_build_shared" = "no" && enable_shared=no 15478 15479# On AIX, shared libraries and static libraries use the same namespace, and 15480# are all built from PIC. 15481case $host_os in 15482aix3*) 15483 test "$enable_shared" = yes && enable_static=no 15484 if test -n "$RANLIB"; then 15485 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15486 postinstall_cmds='$RANLIB $lib' 15487 fi 15488 ;; 15489aix4* | aix5*) 15490 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15491 test "$enable_shared" = yes && enable_static=no 15492 fi 15493 ;; 15494esac 15495echo "$as_me:$LINENO: result: $enable_shared" >&5 15496echo "${ECHO_T}$enable_shared" >&6 15497 15498echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15499echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 15500# Make sure either enable_shared or enable_static is yes. 15501test "$enable_shared" = yes || enable_static=yes 15502echo "$as_me:$LINENO: result: $enable_static" >&5 15503echo "${ECHO_T}$enable_static" >&6 15504 15505test "$ld_shlibs_F77" = no && can_build_shared=no 15506 15507GCC_F77="$G77" 15508LD_F77="$LD" 15509 15510lt_prog_compiler_wl_F77= 15511lt_prog_compiler_pic_F77= 15512lt_prog_compiler_static_F77= 15513 15514echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15515echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15516 15517 if test "$GCC" = yes; then 15518 lt_prog_compiler_wl_F77='-Wl,' 15519 lt_prog_compiler_static_F77='-static' 15520 15521 case $host_os in 15522 aix*) 15523 # All AIX code is PIC. 15524 if test "$host_cpu" = ia64; then 15525 # AIX 5 now supports IA64 processor 15526 lt_prog_compiler_static_F77='-Bstatic' 15527 fi 15528 ;; 15529 15530 amigaos*) 15531 # FIXME: we need at least 68020 code to build shared libraries, but 15532 # adding the `-m68020' flag to GCC prevents building anything better, 15533 # like `-m68040'. 15534 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15535 ;; 15536 15537 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15538 # PIC is the default for these OSes. 15539 ;; 15540 15541 mingw* | pw32* | os2*) 15542 # This hack is so that the source file can tell whether it is being 15543 # built for inclusion in a dll (and should export symbols for example). 15544 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15545 ;; 15546 15547 darwin* | rhapsody*) 15548 # PIC is the default on this platform 15549 # Common symbols not allowed in MH_DYLIB files 15550 lt_prog_compiler_pic_F77='-fno-common' 15551 ;; 15552 15553 msdosdjgpp*) 15554 # Just because we use GCC doesn't mean we suddenly get shared libraries 15555 # on systems that don't support them. 15556 lt_prog_compiler_can_build_shared_F77=no 15557 enable_shared=no 15558 ;; 15559 15560 sysv4*MP*) 15561 if test -d /usr/nec; then 15562 lt_prog_compiler_pic_F77=-Kconform_pic 15563 fi 15564 ;; 15565 15566 hpux*) 15567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15568 # not for PA HP-UX. 15569 case $host_cpu in 15570 hppa*64*|ia64*) 15571 # +Z the default 15572 ;; 15573 *) 15574 lt_prog_compiler_pic_F77='-fPIC' 15575 ;; 15576 esac 15577 ;; 15578 15579 *) 15580 lt_prog_compiler_pic_F77='-fPIC' 15581 ;; 15582 esac 15583 else 15584 # PORTME Check for flag to pass linker flags through the system compiler. 15585 case $host_os in 15586 aix*) 15587 lt_prog_compiler_wl_F77='-Wl,' 15588 if test "$host_cpu" = ia64; then 15589 # AIX 5 now supports IA64 processor 15590 lt_prog_compiler_static_F77='-Bstatic' 15591 else 15592 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15593 fi 15594 ;; 15595 darwin*) 15596 # PIC is the default on this platform 15597 # Common symbols not allowed in MH_DYLIB files 15598 case $cc_basename in 15599 xlc*) 15600 lt_prog_compiler_pic_F77='-qnocommon' 15601 lt_prog_compiler_wl_F77='-Wl,' 15602 ;; 15603 esac 15604 ;; 15605 15606 mingw* | pw32* | os2*) 15607 # This hack is so that the source file can tell whether it is being 15608 # built for inclusion in a dll (and should export symbols for example). 15609 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15610 ;; 15611 15612 hpux9* | hpux10* | hpux11*) 15613 lt_prog_compiler_wl_F77='-Wl,' 15614 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15615 # not for PA HP-UX. 15616 case $host_cpu in 15617 hppa*64*|ia64*) 15618 # +Z the default 15619 ;; 15620 *) 15621 lt_prog_compiler_pic_F77='+Z' 15622 ;; 15623 esac 15624 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15625 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15626 ;; 15627 15628 irix5* | irix6* | nonstopux*) 15629 lt_prog_compiler_wl_F77='-Wl,' 15630 # PIC (with -KPIC) is the default. 15631 lt_prog_compiler_static_F77='-non_shared' 15632 ;; 15633 15634 newsos6) 15635 lt_prog_compiler_pic_F77='-KPIC' 15636 lt_prog_compiler_static_F77='-Bstatic' 15637 ;; 15638 15639 linux*) 15640 case $cc_basename in 15641 icc* | ecc*) 15642 lt_prog_compiler_wl_F77='-Wl,' 15643 lt_prog_compiler_pic_F77='-KPIC' 15644 lt_prog_compiler_static_F77='-static' 15645 ;; 15646 pgcc* | pgf77* | pgf90* | pgf95*) 15647 # Portland Group compilers (*not* the Pentium gcc compiler, 15648 # which looks to be a dead project) 15649 lt_prog_compiler_wl_F77='-Wl,' 15650 lt_prog_compiler_pic_F77='-fpic' 15651 lt_prog_compiler_static_F77='-Bstatic' 15652 ;; 15653 ccc*) 15654 lt_prog_compiler_wl_F77='-Wl,' 15655 # All Alpha code is PIC. 15656 lt_prog_compiler_static_F77='-non_shared' 15657 ;; 15658 esac 15659 ;; 15660 15661 osf3* | osf4* | osf5*) 15662 lt_prog_compiler_wl_F77='-Wl,' 15663 # All OSF/1 code is PIC. 15664 lt_prog_compiler_static_F77='-non_shared' 15665 ;; 15666 15667 sco3.2v5*) 15668 lt_prog_compiler_pic_F77='-Kpic' 15669 lt_prog_compiler_static_F77='-dn' 15670 ;; 15671 15672 solaris*) 15673 lt_prog_compiler_pic_F77='-KPIC' 15674 lt_prog_compiler_static_F77='-Bstatic' 15675 case $cc_basename in 15676 f77* | f90* | f95*) 15677 lt_prog_compiler_wl_F77='-Qoption ld ';; 15678 *) 15679 lt_prog_compiler_wl_F77='-Wl,';; 15680 esac 15681 ;; 15682 15683 sunos4*) 15684 lt_prog_compiler_wl_F77='-Qoption ld ' 15685 lt_prog_compiler_pic_F77='-PIC' 15686 lt_prog_compiler_static_F77='-Bstatic' 15687 ;; 15688 15689 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15690 lt_prog_compiler_wl_F77='-Wl,' 15691 lt_prog_compiler_pic_F77='-KPIC' 15692 lt_prog_compiler_static_F77='-Bstatic' 15693 ;; 15694 15695 sysv4*MP*) 15696 if test -d /usr/nec ;then 15697 lt_prog_compiler_pic_F77='-Kconform_pic' 15698 lt_prog_compiler_static_F77='-Bstatic' 15699 fi 15700 ;; 15701 15702 unicos*) 15703 lt_prog_compiler_wl_F77='-Wl,' 15704 lt_prog_compiler_can_build_shared_F77=no 15705 ;; 15706 15707 uts4*) 15708 lt_prog_compiler_pic_F77='-pic' 15709 lt_prog_compiler_static_F77='-Bstatic' 15710 ;; 15711 15712 *) 15713 lt_prog_compiler_can_build_shared_F77=no 15714 ;; 15715 esac 15716 fi 15717 15718echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15719echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 15720 15721# 15722# Check to make sure the PIC flag actually works. 15723# 15724if test -n "$lt_prog_compiler_pic_F77"; then 15725 15726echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15727echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 15728if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 15729 echo $ECHO_N "(cached) $ECHO_C" >&6 15730else 15731 lt_prog_compiler_pic_works_F77=no 15732 ac_outfile=conftest.$ac_objext 15733 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15734 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15735 # Insert the option either (1) after the last *FLAGS variable, or 15736 # (2) before a word containing "conftest.", or (3) at the end. 15737 # Note that $ac_compile itself does not contain backslashes and begins 15738 # with a dollar sign (not a hyphen), so the echo should work correctly. 15739 # The option is referenced via a variable to avoid confusing sed. 15740 lt_compile=`echo "$ac_compile" | $SED \ 15741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15743 -e 's:$: $lt_compiler_flag:'` 15744 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 15745 (eval "$lt_compile" 2>conftest.err) 15746 ac_status=$? 15747 cat conftest.err >&5 15748 echo "$as_me:__oline__: \$? = $ac_status" >&5 15749 if (exit $ac_status) && test -s "$ac_outfile"; then 15750 # The compiler can only warn and ignore the option if not recognized 15751 # So say no if there are warnings other than the usual output. 15752 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 15753 $SED '/^$/d' conftest.err >conftest.er2 15754 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 15755 lt_prog_compiler_pic_works_F77=yes 15756 fi 15757 fi 15758 $rm conftest* 15759 15760fi 15761echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 15762echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 15763 15764if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 15765 case $lt_prog_compiler_pic_F77 in 15766 "" | " "*) ;; 15767 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15768 esac 15769else 15770 lt_prog_compiler_pic_F77= 15771 lt_prog_compiler_can_build_shared_F77=no 15772fi 15773 15774fi 15775case $host_os in 15776 # For platforms which do not support PIC, -DPIC is meaningless: 15777 *djgpp*) 15778 lt_prog_compiler_pic_F77= 15779 ;; 15780 *) 15781 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15782 ;; 15783esac 15784 15785echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15786echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15787if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15788 echo $ECHO_N "(cached) $ECHO_C" >&6 15789else 15790 lt_cv_prog_compiler_c_o_F77=no 15791 $rm -r conftest 2>/dev/null 15792 mkdir conftest 15793 cd conftest 15794 mkdir out 15795 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15796 15797 lt_compiler_flag="-o out/conftest2.$ac_objext" 15798 # Insert the option either (1) after the last *FLAGS variable, or 15799 # (2) before a word containing "conftest.", or (3) at the end. 15800 # Note that $ac_compile itself does not contain backslashes and begins 15801 # with a dollar sign (not a hyphen), so the echo should work correctly. 15802 lt_compile=`echo "$ac_compile" | $SED \ 15803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15805 -e 's:$: $lt_compiler_flag:'` 15806 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 15807 (eval "$lt_compile" 2>out/conftest.err) 15808 ac_status=$? 15809 cat out/conftest.err >&5 15810 echo "$as_me:__oline__: \$? = $ac_status" >&5 15811 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15812 then 15813 # The compiler can only warn and ignore the option if not recognized 15814 # So say no if there are warnings 15815 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 15816 $SED '/^$/d' out/conftest.err >out/conftest.er2 15817 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15818 lt_cv_prog_compiler_c_o_F77=yes 15819 fi 15820 fi 15821 chmod u+w . 2>&5 15822 $rm conftest* 15823 # SGI C++ compiler will create directory out/ii_files/ for 15824 # template instantiation 15825 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15826 $rm out/* && rmdir out 15827 cd .. 15828 rmdir conftest 15829 $rm conftest* 15830 15831fi 15832echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15833echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 15834 15835 15836hard_links="nottested" 15837if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15838 # do not overwrite the value of need_locks provided by the user 15839 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15840echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15841 hard_links=yes 15842 $rm conftest* 15843 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15844 touch conftest.a 15845 ln conftest.a conftest.b 2>&5 || hard_links=no 15846 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15847 echo "$as_me:$LINENO: result: $hard_links" >&5 15848echo "${ECHO_T}$hard_links" >&6 15849 if test "$hard_links" = no; then 15850 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15851echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15852 need_locks=warn 15853 fi 15854else 15855 need_locks=no 15856fi 15857 15858echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15859echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15860 15861 runpath_var= 15862 allow_undefined_flag_F77= 15863 enable_shared_with_static_runtimes_F77=no 15864 archive_cmds_F77= 15865 archive_expsym_cmds_F77= 15866 old_archive_From_new_cmds_F77= 15867 old_archive_from_expsyms_cmds_F77= 15868 export_dynamic_flag_spec_F77= 15869 whole_archive_flag_spec_F77= 15870 thread_safe_flag_spec_F77= 15871 hardcode_libdir_flag_spec_F77= 15872 hardcode_libdir_flag_spec_ld_F77= 15873 hardcode_libdir_separator_F77= 15874 hardcode_direct_F77=no 15875 hardcode_minus_L_F77=no 15876 hardcode_shlibpath_var_F77=unsupported 15877 link_all_deplibs_F77=unknown 15878 hardcode_automatic_F77=no 15879 module_cmds_F77= 15880 module_expsym_cmds_F77= 15881 always_export_symbols_F77=no 15882 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15883 # include_expsyms should be a list of space-separated symbols to be *always* 15884 # included in the symbol list 15885 include_expsyms_F77= 15886 # exclude_expsyms can be an extended regexp of symbols to exclude 15887 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15888 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15889 # as well as any symbol that contains `d'. 15890 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 15891 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15892 # platforms (ab)use it in PIC code, but their linkers get confused if 15893 # the symbol is explicitly referenced. Since portable code cannot 15894 # rely on this symbol name, it's probably fine to never include it in 15895 # preloaded symbol tables. 15896 extract_expsyms_cmds= 15897 # Just being paranoid about ensuring that cc_basename is set. 15898 for cc_temp in $compiler""; do 15899 case $cc_temp in 15900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15902 \-*) ;; 15903 *) break;; 15904 esac 15905done 15906cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15907 15908 case $host_os in 15909 cygwin* | mingw* | pw32*) 15910 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15911 # When not using gcc, we currently assume that we are using 15912 # Microsoft Visual C++. 15913 if test "$GCC" != yes; then 15914 with_gnu_ld=no 15915 fi 15916 ;; 15917 openbsd*) 15918 with_gnu_ld=no 15919 ;; 15920 esac 15921 15922 ld_shlibs_F77=yes 15923 if test "$with_gnu_ld" = yes; then 15924 # If archive_cmds runs LD, not CC, wlarc should be empty 15925 wlarc='${wl}' 15926 15927 # Set some defaults for GNU ld with shared library support. These 15928 # are reset later if shared libraries are not supported. Putting them 15929 # here allows them to be overridden if necessary. 15930 runpath_var=LD_RUN_PATH 15931 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15932 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15933 # ancient GNU ld didn't support --whole-archive et. al. 15934 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15935 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15936 else 15937 whole_archive_flag_spec_F77= 15938 fi 15939 supports_anon_versioning=no 15940 case `$LD -v 2>/dev/null` in 15941 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15942 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15943 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15944 *\ 2.11.*) ;; # other 2.11 versions 15945 *) supports_anon_versioning=yes ;; 15946 esac 15947 15948 # See if GNU ld supports shared libraries. 15949 case $host_os in 15950 aix3* | aix4* | aix5*) 15951 # On AIX/PPC, the GNU linker is very broken 15952 if test "$host_cpu" != ia64; then 15953 ld_shlibs_F77=no 15954 cat <<EOF 1>&2 15955 15956*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15957*** to be unable to reliably create shared libraries on AIX. 15958*** Therefore, libtool is disabling shared libraries support. If you 15959*** really care for shared libraries, you may want to modify your PATH 15960*** so that a non-GNU linker is found, and then restart. 15961 15962EOF 15963 fi 15964 ;; 15965 15966 amigaos*) 15967 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)' 15968 hardcode_libdir_flag_spec_F77='-L$libdir' 15969 hardcode_minus_L_F77=yes 15970 15971 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15972 # that the semantics of dynamic libraries on AmigaOS, at least up 15973 # to version 4, is to share data among multiple programs linked 15974 # with the same dynamic library. Since this doesn't match the 15975 # behavior of shared libraries on other platforms, we can't use 15976 # them. 15977 ld_shlibs_F77=no 15978 ;; 15979 15980 beos*) 15981 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15982 allow_undefined_flag_F77=unsupported 15983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15984 # support --undefined. This deserves some investigation. FIXME 15985 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15986 else 15987 ld_shlibs_F77=no 15988 fi 15989 ;; 15990 15991 cygwin* | mingw* | pw32*) 15992 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15993 # as there is no search path for DLLs. 15994 hardcode_libdir_flag_spec_F77='-L$libdir' 15995 allow_undefined_flag_F77=unsupported 15996 always_export_symbols_F77=no 15997 enable_shared_with_static_runtimes_F77=yes 15998 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15999 16000 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16001 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 16002 # If the export-symbols file already is a .def file (1st line 16003 # is EXPORTS), use it as is; otherwise, prepend... 16004 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16005 cp $export_symbols $output_objdir/$soname.def; 16006 else 16007 echo EXPORTS > $output_objdir/$soname.def; 16008 cat $export_symbols >> $output_objdir/$soname.def; 16009 fi~ 16010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 16011 else 16012 ld_shlibs_F77=no 16013 fi 16014 ;; 16015 16016 linux*) 16017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16018 tmp_addflag= 16019 case $cc_basename,$host_cpu in 16020 pgcc*) # Portland Group C compiler 16021 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' 16022 tmp_addflag=' $pic_flag' 16023 ;; 16024 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16025 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' 16026 tmp_addflag=' $pic_flag -Mnomain' ;; 16027 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16028 tmp_addflag=' -i_dynamic' ;; 16029 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16030 tmp_addflag=' -i_dynamic -nofor_main' ;; 16031 ifc* | ifort*) # Intel Fortran compiler 16032 tmp_addflag=' -nofor_main' ;; 16033 esac 16034 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16035 16036 if test $supports_anon_versioning = yes; then 16037 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 16038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16039 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16040 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16041 fi 16042 else 16043 ld_shlibs_F77=no 16044 fi 16045 ;; 16046 16047 netbsd*) 16048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16049 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16050 wlarc= 16051 else 16052 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16053 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16054 fi 16055 ;; 16056 16057 solaris* | sysv5*) 16058 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16059 ld_shlibs_F77=no 16060 cat <<EOF 1>&2 16061 16062*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16063*** create shared libraries on Solaris systems. Therefore, libtool 16064*** is disabling shared libraries support. We urge you to upgrade GNU 16065*** binutils to release 2.9.1 or newer. Another option is to modify 16066*** your PATH or compiler configuration so that the native linker is 16067*** used, and then restart. 16068 16069EOF 16070 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16071 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16072 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16073 else 16074 ld_shlibs_F77=no 16075 fi 16076 ;; 16077 16078 sunos4*) 16079 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16080 wlarc= 16081 hardcode_direct_F77=yes 16082 hardcode_shlibpath_var_F77=no 16083 ;; 16084 16085 *) 16086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16087 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16088 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16089 else 16090 ld_shlibs_F77=no 16091 fi 16092 ;; 16093 esac 16094 16095 if test "$ld_shlibs_F77" = no; then 16096 runpath_var= 16097 hardcode_libdir_flag_spec_F77= 16098 export_dynamic_flag_spec_F77= 16099 whole_archive_flag_spec_F77= 16100 fi 16101 else 16102 # PORTME fill in a description of your system's linker (not GNU ld) 16103 case $host_os in 16104 aix3*) 16105 allow_undefined_flag_F77=unsupported 16106 always_export_symbols_F77=yes 16107 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' 16108 # Note: this linker hardcodes the directories in LIBPATH if there 16109 # are no directories specified by -L. 16110 hardcode_minus_L_F77=yes 16111 if test "$GCC" = yes && test -z "$link_static_flag"; then 16112 # Neither direct hardcoding nor static linking is supported with a 16113 # broken collect2. 16114 hardcode_direct_F77=unsupported 16115 fi 16116 ;; 16117 16118 aix4* | aix5*) 16119 if test "$host_cpu" = ia64; then 16120 # On IA64, the linker does run time linking by default, so we don't 16121 # have to do anything special. 16122 aix_use_runtimelinking=no 16123 exp_sym_flag='-Bexport' 16124 no_entry_flag="" 16125 else 16126 # If we're using GNU nm, then we don't want the "-C" option. 16127 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16128 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16129 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' 16130 else 16131 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' 16132 fi 16133 aix_use_runtimelinking=no 16134 16135 # Test if we are trying to use run time linking or normal 16136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16137 # need to do runtime linking. 16138 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16139 for ld_flag in $LDFLAGS; do 16140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16141 aix_use_runtimelinking=yes 16142 break 16143 fi 16144 done 16145 esac 16146 16147 exp_sym_flag='-bexport' 16148 no_entry_flag='-bnoentry' 16149 fi 16150 16151 # When large executables or shared objects are built, AIX ld can 16152 # have problems creating the table of contents. If linking a library 16153 # or program results in "error TOC overflow" add -mminimal-toc to 16154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16156 16157 archive_cmds_F77='' 16158 hardcode_direct_F77=yes 16159 hardcode_libdir_separator_F77=':' 16160 link_all_deplibs_F77=yes 16161 16162 if test "$GCC" = yes; then 16163 case $host_os in aix4.[012]|aix4.[012].*) 16164 # We only want to do this on AIX 4.2 and lower, the check 16165 # below for broken collect2 doesn't work under 4.3+ 16166 collect2name=`${CC} -print-prog-name=collect2` 16167 if test -f "$collect2name" && \ 16168 strings "$collect2name" | grep resolve_lib_name >/dev/null 16169 then 16170 # We have reworked collect2 16171 hardcode_direct_F77=yes 16172 else 16173 # We have old collect2 16174 hardcode_direct_F77=unsupported 16175 # It fails to find uninstalled libraries when the uninstalled 16176 # path is not listed in the libpath. Setting hardcode_minus_L 16177 # to unsupported forces relinking 16178 hardcode_minus_L_F77=yes 16179 hardcode_libdir_flag_spec_F77='-L$libdir' 16180 hardcode_libdir_separator_F77= 16181 fi 16182 esac 16183 shared_flag='-shared' 16184 if test "$aix_use_runtimelinking" = yes; then 16185 shared_flag="$shared_flag "'${wl}-G' 16186 fi 16187 else 16188 # not using gcc 16189 if test "$host_cpu" = ia64; then 16190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16191 # chokes on -Wl,-G. The following line is correct: 16192 shared_flag='-G' 16193 else 16194 if test "$aix_use_runtimelinking" = yes; then 16195 shared_flag='${wl}-G' 16196 else 16197 shared_flag='${wl}-bM:SRE' 16198 fi 16199 fi 16200 fi 16201 16202 # It seems that -bexpall does not export symbols beginning with 16203 # underscore (_), so it is better to generate a list of symbols to export. 16204 always_export_symbols_F77=yes 16205 if test "$aix_use_runtimelinking" = yes; then 16206 # Warning - without using the other runtime loading flags (-brtl), 16207 # -berok will link without error, but may produce a broken library. 16208 allow_undefined_flag_F77='-berok' 16209 # Determine the default libpath from the value encoded in an empty executable. 16210 cat >conftest.$ac_ext <<_ACEOF 16211 program main 16212 16213 end 16214_ACEOF 16215rm -f conftest.$ac_objext conftest$ac_exeext 16216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16217 (eval $ac_link) 2>conftest.er1 16218 ac_status=$? 16219 grep -v '^ *+' conftest.er1 >conftest.err 16220 rm -f conftest.er1 16221 cat conftest.err >&5 16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16223 (exit $ac_status); } && 16224 { ac_try='test -z "$ac_f77_werror_flag" 16225 || test ! -s conftest.err' 16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16227 (eval $ac_try) 2>&5 16228 ac_status=$? 16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16230 (exit $ac_status); }; } && 16231 { ac_try='test -s conftest$ac_exeext' 16232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16233 (eval $ac_try) 2>&5 16234 ac_status=$? 16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16236 (exit $ac_status); }; }; then 16237 16238aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16239}'` 16240# Check for a 64-bit object if we didn't find anything. 16241if 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; } 16242}'`; fi 16243else 16244 echo "$as_me: failed program was:" >&5 16245sed 's/^/| /' conftest.$ac_ext >&5 16246 16247fi 16248rm -f conftest.err conftest.$ac_objext \ 16249 conftest$ac_exeext conftest.$ac_ext 16250if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16251 16252 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16253 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" 16254 else 16255 if test "$host_cpu" = ia64; then 16256 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16257 allow_undefined_flag_F77="-z nodefs" 16258 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" 16259 else 16260 # Determine the default libpath from the value encoded in an empty executable. 16261 cat >conftest.$ac_ext <<_ACEOF 16262 program main 16263 16264 end 16265_ACEOF 16266rm -f conftest.$ac_objext conftest$ac_exeext 16267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16268 (eval $ac_link) 2>conftest.er1 16269 ac_status=$? 16270 grep -v '^ *+' conftest.er1 >conftest.err 16271 rm -f conftest.er1 16272 cat conftest.err >&5 16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16274 (exit $ac_status); } && 16275 { ac_try='test -z "$ac_f77_werror_flag" 16276 || test ! -s conftest.err' 16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16278 (eval $ac_try) 2>&5 16279 ac_status=$? 16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16281 (exit $ac_status); }; } && 16282 { ac_try='test -s conftest$ac_exeext' 16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16284 (eval $ac_try) 2>&5 16285 ac_status=$? 16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16287 (exit $ac_status); }; }; then 16288 16289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16290}'` 16291# Check for a 64-bit object if we didn't find anything. 16292if 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; } 16293}'`; fi 16294else 16295 echo "$as_me: failed program was:" >&5 16296sed 's/^/| /' conftest.$ac_ext >&5 16297 16298fi 16299rm -f conftest.err conftest.$ac_objext \ 16300 conftest$ac_exeext conftest.$ac_ext 16301if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16302 16303 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16304 # Warning - without using the other run time loading flags, 16305 # -berok will link without error, but may produce a broken library. 16306 no_undefined_flag_F77=' ${wl}-bernotok' 16307 allow_undefined_flag_F77=' ${wl}-berok' 16308 # -bexpall does not export symbols beginning with underscore (_) 16309 always_export_symbols_F77=yes 16310 # Exported symbols can be pulled into shared objects from archives 16311 whole_archive_flag_spec_F77=' ' 16312 archive_cmds_need_lc_F77=yes 16313 # This is similar to how AIX traditionally builds its shared libraries. 16314 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' 16315 fi 16316 fi 16317 ;; 16318 16319 amigaos*) 16320 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)' 16321 hardcode_libdir_flag_spec_F77='-L$libdir' 16322 hardcode_minus_L_F77=yes 16323 # see comment about different semantics on the GNU ld section 16324 ld_shlibs_F77=no 16325 ;; 16326 16327 bsdi[45]*) 16328 export_dynamic_flag_spec_F77=-rdynamic 16329 ;; 16330 16331 cygwin* | mingw* | pw32*) 16332 # When not using gcc, we currently assume that we are using 16333 # Microsoft Visual C++. 16334 # hardcode_libdir_flag_spec is actually meaningless, as there is 16335 # no search path for DLLs. 16336 hardcode_libdir_flag_spec_F77=' ' 16337 allow_undefined_flag_F77=unsupported 16338 # Tell ltmain to make .lib files, not .a files. 16339 libext=lib 16340 # Tell ltmain to make .dll files, not .so files. 16341 shrext_cmds=".dll" 16342 # FIXME: Setting linknames here is a bad hack. 16343 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16344 # The linker will automatically build a .lib file if we build a DLL. 16345 old_archive_From_new_cmds_F77='true' 16346 # FIXME: Should let the user specify the lib program. 16347 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 16348 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 16349 enable_shared_with_static_runtimes_F77=yes 16350 ;; 16351 16352 darwin* | rhapsody*) 16353 case $host_os in 16354 rhapsody* | darwin1.[012]) 16355 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 16356 ;; 16357 *) # Darwin 1.3 on 16358 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16359 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16360 else 16361 case ${MACOSX_DEPLOYMENT_TARGET} in 16362 10.[012]) 16363 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16364 ;; 16365 10.*) 16366 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 16367 ;; 16368 esac 16369 fi 16370 ;; 16371 esac 16372 archive_cmds_need_lc_F77=no 16373 hardcode_direct_F77=no 16374 hardcode_automatic_F77=yes 16375 hardcode_shlibpath_var_F77=unsupported 16376 whole_archive_flag_spec_F77='' 16377 link_all_deplibs_F77=yes 16378 if test "$GCC" = yes ; then 16379 output_verbose_link_cmd='echo' 16380 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16381 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16382 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16383 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}' 16384 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}' 16385 else 16386 case $cc_basename in 16387 xlc*) 16388 output_verbose_link_cmd='echo' 16389 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 16390 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16391 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16392 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}' 16393 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}' 16394 ;; 16395 *) 16396 ld_shlibs_F77=no 16397 ;; 16398 esac 16399 fi 16400 ;; 16401 16402 dgux*) 16403 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16404 hardcode_libdir_flag_spec_F77='-L$libdir' 16405 hardcode_shlibpath_var_F77=no 16406 ;; 16407 16408 freebsd1*) 16409 ld_shlibs_F77=no 16410 ;; 16411 16412 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16413 # support. Future versions do this automatically, but an explicit c++rt0.o 16414 # does not break anything, and helps significantly (at the cost of a little 16415 # extra space). 16416 freebsd2.2*) 16417 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16418 hardcode_libdir_flag_spec_F77='-R$libdir' 16419 hardcode_direct_F77=yes 16420 hardcode_shlibpath_var_F77=no 16421 ;; 16422 16423 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16424 freebsd2*) 16425 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16426 hardcode_direct_F77=yes 16427 hardcode_minus_L_F77=yes 16428 hardcode_shlibpath_var_F77=no 16429 ;; 16430 16431 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16432 freebsd* | kfreebsd*-gnu | dragonfly*) 16433 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16434 hardcode_libdir_flag_spec_F77='-R$libdir' 16435 hardcode_direct_F77=yes 16436 hardcode_shlibpath_var_F77=no 16437 ;; 16438 16439 hpux9*) 16440 if test "$GCC" = yes; then 16441 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' 16442 else 16443 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' 16444 fi 16445 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16446 hardcode_libdir_separator_F77=: 16447 hardcode_direct_F77=yes 16448 16449 # hardcode_minus_L: Not really in the search PATH, 16450 # but as the default location of the library. 16451 hardcode_minus_L_F77=yes 16452 export_dynamic_flag_spec_F77='${wl}-E' 16453 ;; 16454 16455 hpux10* | hpux11*) 16456 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16457 case $host_cpu in 16458 hppa*64*|ia64*) 16459 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16460 ;; 16461 *) 16462 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16463 ;; 16464 esac 16465 else 16466 case $host_cpu in 16467 hppa*64*|ia64*) 16468 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16469 ;; 16470 *) 16471 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16472 ;; 16473 esac 16474 fi 16475 if test "$with_gnu_ld" = no; then 16476 case $host_cpu in 16477 hppa*64*) 16478 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16479 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16480 hardcode_libdir_separator_F77=: 16481 hardcode_direct_F77=no 16482 hardcode_shlibpath_var_F77=no 16483 ;; 16484 ia64*) 16485 hardcode_libdir_flag_spec_F77='-L$libdir' 16486 hardcode_direct_F77=no 16487 hardcode_shlibpath_var_F77=no 16488 16489 # hardcode_minus_L: Not really in the search PATH, 16490 # but as the default location of the library. 16491 hardcode_minus_L_F77=yes 16492 ;; 16493 *) 16494 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16495 hardcode_libdir_separator_F77=: 16496 hardcode_direct_F77=yes 16497 export_dynamic_flag_spec_F77='${wl}-E' 16498 16499 # hardcode_minus_L: Not really in the search PATH, 16500 # but as the default location of the library. 16501 hardcode_minus_L_F77=yes 16502 ;; 16503 esac 16504 fi 16505 ;; 16506 16507 irix5* | irix6* | nonstopux*) 16508 if test "$GCC" = yes; then 16509 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' 16510 else 16511 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' 16512 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16513 fi 16514 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16515 hardcode_libdir_separator_F77=: 16516 link_all_deplibs_F77=yes 16517 ;; 16518 16519 netbsd*) 16520 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16521 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16522 else 16523 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16524 fi 16525 hardcode_libdir_flag_spec_F77='-R$libdir' 16526 hardcode_direct_F77=yes 16527 hardcode_shlibpath_var_F77=no 16528 ;; 16529 16530 newsos6) 16531 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16532 hardcode_direct_F77=yes 16533 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16534 hardcode_libdir_separator_F77=: 16535 hardcode_shlibpath_var_F77=no 16536 ;; 16537 16538 openbsd*) 16539 hardcode_direct_F77=yes 16540 hardcode_shlibpath_var_F77=no 16541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16542 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16543 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16544 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16545 export_dynamic_flag_spec_F77='${wl}-E' 16546 else 16547 case $host_os in 16548 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16549 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16550 hardcode_libdir_flag_spec_F77='-R$libdir' 16551 ;; 16552 *) 16553 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16554 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16555 ;; 16556 esac 16557 fi 16558 ;; 16559 16560 os2*) 16561 hardcode_libdir_flag_spec_F77='-L$libdir' 16562 hardcode_minus_L_F77=yes 16563 allow_undefined_flag_F77=unsupported 16564 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' 16565 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16566 ;; 16567 16568 osf3*) 16569 if test "$GCC" = yes; then 16570 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16571 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' 16572 else 16573 allow_undefined_flag_F77=' -expect_unresolved \*' 16574 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' 16575 fi 16576 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16577 hardcode_libdir_separator_F77=: 16578 ;; 16579 16580 osf4* | osf5*) # as osf3* with the addition of -msym flag 16581 if test "$GCC" = yes; then 16582 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16583 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' 16584 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16585 else 16586 allow_undefined_flag_F77=' -expect_unresolved \*' 16587 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' 16588 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~ 16589 $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' 16590 16591 # Both c and cxx compiler support -rpath directly 16592 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16593 fi 16594 hardcode_libdir_separator_F77=: 16595 ;; 16596 16597 sco3.2v5*) 16598 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16599 hardcode_shlibpath_var_F77=no 16600 export_dynamic_flag_spec_F77='${wl}-Bexport' 16601 runpath_var=LD_RUN_PATH 16602 hardcode_runpath_var=yes 16603 ;; 16604 16605 solaris*) 16606 no_undefined_flag_F77=' -z text' 16607 if test "$GCC" = yes; then 16608 wlarc='${wl}' 16609 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16610 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16611 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16612 else 16613 wlarc='' 16614 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16615 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16616 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16617 fi 16618 hardcode_libdir_flag_spec_F77='-R$libdir' 16619 hardcode_shlibpath_var_F77=no 16620 case $host_os in 16621 solaris2.[0-5] | solaris2.[0-5].*) ;; 16622 *) 16623 # The compiler driver will combine linker options so we 16624 # cannot just pass the convience library names through 16625 # without $wl, iff we do not link with $LD. 16626 # Luckily, gcc supports the same syntax we need for Sun Studio. 16627 # Supported since Solaris 2.6 (maybe 2.5.1?) 16628 case $wlarc in 16629 '') 16630 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16631 *) 16632 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' ;; 16633 esac ;; 16634 esac 16635 link_all_deplibs_F77=yes 16636 ;; 16637 16638 sunos4*) 16639 if test "x$host_vendor" = xsequent; then 16640 # Use $CC to link under sequent, because it throws in some extra .o 16641 # files that make .init and .fini sections work. 16642 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16643 else 16644 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16645 fi 16646 hardcode_libdir_flag_spec_F77='-L$libdir' 16647 hardcode_direct_F77=yes 16648 hardcode_minus_L_F77=yes 16649 hardcode_shlibpath_var_F77=no 16650 ;; 16651 16652 sysv4) 16653 case $host_vendor in 16654 sni) 16655 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16656 hardcode_direct_F77=yes # is this really true??? 16657 ;; 16658 siemens) 16659 ## LD is ld it makes a PLAMLIB 16660 ## CC just makes a GrossModule. 16661 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16662 reload_cmds_F77='$CC -r -o $output$reload_objs' 16663 hardcode_direct_F77=no 16664 ;; 16665 motorola) 16666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16667 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16668 ;; 16669 esac 16670 runpath_var='LD_RUN_PATH' 16671 hardcode_shlibpath_var_F77=no 16672 ;; 16673 16674 sysv4.3*) 16675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16676 hardcode_shlibpath_var_F77=no 16677 export_dynamic_flag_spec_F77='-Bexport' 16678 ;; 16679 16680 sysv4*MP*) 16681 if test -d /usr/nec; then 16682 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16683 hardcode_shlibpath_var_F77=no 16684 runpath_var=LD_RUN_PATH 16685 hardcode_runpath_var=yes 16686 ld_shlibs_F77=yes 16687 fi 16688 ;; 16689 16690 sysv4.2uw2*) 16691 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16692 hardcode_direct_F77=yes 16693 hardcode_minus_L_F77=no 16694 hardcode_shlibpath_var_F77=no 16695 hardcode_runpath_var=yes 16696 runpath_var=LD_RUN_PATH 16697 ;; 16698 16699 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16700 no_undefined_flag_F77='${wl}-z ${wl}text' 16701 if test "$GCC" = yes; then 16702 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16703 else 16704 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16705 fi 16706 runpath_var='LD_RUN_PATH' 16707 hardcode_shlibpath_var_F77=no 16708 ;; 16709 16710 sysv5*) 16711 no_undefined_flag_F77=' -z text' 16712 # $CC -shared without GNU ld will not create a library from C++ 16713 # object files and a static libstdc++, better avoid it by now 16714 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16715 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16716 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16717 hardcode_libdir_flag_spec_F77= 16718 hardcode_shlibpath_var_F77=no 16719 runpath_var='LD_RUN_PATH' 16720 ;; 16721 16722 uts4*) 16723 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16724 hardcode_libdir_flag_spec_F77='-L$libdir' 16725 hardcode_shlibpath_var_F77=no 16726 ;; 16727 16728 *) 16729 ld_shlibs_F77=no 16730 ;; 16731 esac 16732 fi 16733 16734echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16735echo "${ECHO_T}$ld_shlibs_F77" >&6 16736test "$ld_shlibs_F77" = no && can_build_shared=no 16737 16738variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16739if test "$GCC" = yes; then 16740 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16741fi 16742 16743# 16744# Do we need to explicitly link libc? 16745# 16746case "x$archive_cmds_need_lc_F77" in 16747x|xyes) 16748 # Assume -lc should be added 16749 archive_cmds_need_lc_F77=yes 16750 16751 if test "$enable_shared" = yes && test "$GCC" = yes; then 16752 case $archive_cmds_F77 in 16753 *'~'*) 16754 # FIXME: we may have to deal with multi-command sequences. 16755 ;; 16756 '$CC '*) 16757 # Test whether the compiler implicitly links with -lc since on some 16758 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16759 # to ld, don't add -lc before -lgcc. 16760 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16761echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16762 $rm conftest* 16763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16764 16765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16766 (eval $ac_compile) 2>&5 16767 ac_status=$? 16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16769 (exit $ac_status); } 2>conftest.err; then 16770 soname=conftest 16771 lib=conftest 16772 libobjs=conftest.$ac_objext 16773 deplibs= 16774 wl=$lt_prog_compiler_wl_F77 16775 compiler_flags=-v 16776 linker_flags=-v 16777 verstring= 16778 output_objdir=. 16779 libname=conftest 16780 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16781 allow_undefined_flag_F77= 16782 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16783 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16784 ac_status=$? 16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16786 (exit $ac_status); } 16787 then 16788 archive_cmds_need_lc_F77=no 16789 else 16790 archive_cmds_need_lc_F77=yes 16791 fi 16792 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16793 else 16794 cat conftest.err 1>&5 16795 fi 16796 $rm conftest* 16797 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16798echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 16799 ;; 16800 esac 16801 fi 16802 ;; 16803esac 16804 16805echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16806echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16807library_names_spec= 16808libname_spec='lib$name' 16809soname_spec= 16810shrext_cmds=".so" 16811postinstall_cmds= 16812postuninstall_cmds= 16813finish_cmds= 16814finish_eval= 16815shlibpath_var= 16816shlibpath_overrides_runpath=unknown 16817version_type=none 16818dynamic_linker="$host_os ld.so" 16819sys_lib_dlsearch_path_spec="/lib /usr/lib" 16820if test "$GCC" = yes; then 16821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16822 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16823 # if the path contains ";" then we assume it to be the separator 16824 # otherwise default to the standard path separator (i.e. ":") - it is 16825 # assumed that no part of a normal pathname contains ";" but that should 16826 # okay in the real world where ";" in dirpaths is itself problematic. 16827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16828 else 16829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16830 fi 16831else 16832 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16833fi 16834need_lib_prefix=unknown 16835hardcode_into_libs=no 16836 16837# when you set need_version to no, make sure it does not cause -set_version 16838# flags to be left without arguments 16839need_version=unknown 16840 16841case $host_os in 16842aix3*) 16843 version_type=linux 16844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16845 shlibpath_var=LIBPATH 16846 16847 # AIX 3 has no versioning support, so we append a major version to the name. 16848 soname_spec='${libname}${release}${shared_ext}$major' 16849 ;; 16850 16851aix4* | aix5*) 16852 version_type=linux 16853 need_lib_prefix=no 16854 need_version=no 16855 hardcode_into_libs=yes 16856 if test "$host_cpu" = ia64; then 16857 # AIX 5 supports IA64 16858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16859 shlibpath_var=LD_LIBRARY_PATH 16860 else 16861 # With GCC up to 2.95.x, collect2 would create an import file 16862 # for dependence libraries. The import file would start with 16863 # the line `#! .'. This would cause the generated library to 16864 # depend on `.', always an invalid library. This was fixed in 16865 # development snapshots of GCC prior to 3.0. 16866 case $host_os in 16867 aix4 | aix4.[01] | aix4.[01].*) 16868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16869 echo ' yes ' 16870 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16871 : 16872 else 16873 can_build_shared=no 16874 fi 16875 ;; 16876 esac 16877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16878 # soname into executable. Probably we can add versioning support to 16879 # collect2, so additional links can be useful in future. 16880 if test "$aix_use_runtimelinking" = yes; then 16881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16882 # instead of lib<name>.a to let people know that these are not 16883 # typical AIX shared libraries. 16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16885 else 16886 # We preserve .a as extension for shared libraries through AIX4.2 16887 # and later when we are not doing run time linking. 16888 library_names_spec='${libname}${release}.a $libname.a' 16889 soname_spec='${libname}${release}${shared_ext}$major' 16890 fi 16891 shlibpath_var=LIBPATH 16892 fi 16893 ;; 16894 16895amigaos*) 16896 library_names_spec='$libname.ixlibrary $libname.a' 16897 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16898 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' 16899 ;; 16900 16901beos*) 16902 library_names_spec='${libname}${shared_ext}' 16903 dynamic_linker="$host_os ld.so" 16904 shlibpath_var=LIBRARY_PATH 16905 ;; 16906 16907bsdi[45]*) 16908 version_type=linux 16909 need_version=no 16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16911 soname_spec='${libname}${release}${shared_ext}$major' 16912 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16913 shlibpath_var=LD_LIBRARY_PATH 16914 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16915 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16916 # the default ld.so.conf also contains /usr/contrib/lib and 16917 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16918 # libtool to hard-code these into programs 16919 ;; 16920 16921cygwin* | mingw* | pw32*) 16922 version_type=windows 16923 shrext_cmds=".dll" 16924 need_version=no 16925 need_lib_prefix=no 16926 16927 case $GCC,$host_os in 16928 yes,cygwin* | yes,mingw* | yes,pw32*) 16929 library_names_spec='$libname.dll.a' 16930 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16931 postinstall_cmds='base_file=`basename \${file}`~ 16932 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16933 dldir=$destdir/`dirname \$dlpath`~ 16934 test -d \$dldir || mkdir -p \$dldir~ 16935 $install_prog $dir/$dlname \$dldir/$dlname~ 16936 chmod a+x \$dldir/$dlname' 16937 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16938 dlpath=$dir/\$dldll~ 16939 $rm \$dlpath' 16940 shlibpath_overrides_runpath=yes 16941 16942 case $host_os in 16943 cygwin*) 16944 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16945 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16946 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16947 ;; 16948 mingw*) 16949 # MinGW DLLs use traditional 'lib' prefix 16950 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16952 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16953 # It is most probably a Windows format PATH printed by 16954 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16955 # path with ; separators, and with drive letters. We can handle the 16956 # drive letters (cygwin fileutils understands them), so leave them, 16957 # especially as we might pass files found there to a mingw objdump, 16958 # which wouldn't understand a cygwinified path. Ahh. 16959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16960 else 16961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16962 fi 16963 ;; 16964 pw32*) 16965 # pw32 DLLs use 'pw' prefix rather than 'lib' 16966 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16967 ;; 16968 esac 16969 ;; 16970 16971 *) 16972 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16973 ;; 16974 esac 16975 dynamic_linker='Win32 ld.exe' 16976 # FIXME: first we should search . and the directory the executable is in 16977 shlibpath_var=PATH 16978 ;; 16979 16980darwin* | rhapsody*) 16981 dynamic_linker="$host_os dyld" 16982 version_type=darwin 16983 need_lib_prefix=no 16984 need_version=no 16985 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16986 soname_spec='${libname}${release}${major}$shared_ext' 16987 shlibpath_overrides_runpath=yes 16988 shlibpath_var=DYLD_LIBRARY_PATH 16989 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16990 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16991 if test "$GCC" = yes; then 16992 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"` 16993 else 16994 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16995 fi 16996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16997 ;; 16998 16999dgux*) 17000 version_type=linux 17001 need_lib_prefix=no 17002 need_version=no 17003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17004 soname_spec='${libname}${release}${shared_ext}$major' 17005 shlibpath_var=LD_LIBRARY_PATH 17006 ;; 17007 17008freebsd1*) 17009 dynamic_linker=no 17010 ;; 17011 17012kfreebsd*-gnu) 17013 version_type=linux 17014 need_lib_prefix=no 17015 need_version=no 17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17017 soname_spec='${libname}${release}${shared_ext}$major' 17018 shlibpath_var=LD_LIBRARY_PATH 17019 shlibpath_overrides_runpath=no 17020 hardcode_into_libs=yes 17021 dynamic_linker='GNU ld.so' 17022 ;; 17023 17024freebsd* | dragonfly*) 17025 # DragonFly does not have aout. When/if they implement a new 17026 # versioning mechanism, adjust this. 17027 if test -x /usr/bin/objformat; then 17028 objformat=`/usr/bin/objformat` 17029 else 17030 case $host_os in 17031 freebsd[123]*) objformat=aout ;; 17032 *) objformat=elf ;; 17033 esac 17034 fi 17035 version_type=freebsd-$objformat 17036 case $version_type in 17037 freebsd-elf*) 17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17039 need_version=no 17040 need_lib_prefix=no 17041 ;; 17042 freebsd-*) 17043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17044 need_version=yes 17045 ;; 17046 esac 17047 shlibpath_var=LD_LIBRARY_PATH 17048 case $host_os in 17049 freebsd2*) 17050 shlibpath_overrides_runpath=yes 17051 ;; 17052 freebsd3.[01]* | freebsdelf3.[01]*) 17053 shlibpath_overrides_runpath=yes 17054 hardcode_into_libs=yes 17055 ;; 17056 *) # from 3.2 on 17057 shlibpath_overrides_runpath=no 17058 hardcode_into_libs=yes 17059 ;; 17060 esac 17061 ;; 17062 17063gnu*) 17064 version_type=linux 17065 need_lib_prefix=no 17066 need_version=no 17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17068 soname_spec='${libname}${release}${shared_ext}$major' 17069 shlibpath_var=LD_LIBRARY_PATH 17070 hardcode_into_libs=yes 17071 ;; 17072 17073hpux9* | hpux10* | hpux11*) 17074 # Give a soname corresponding to the major version so that dld.sl refuses to 17075 # link against other versions. 17076 version_type=sunos 17077 need_lib_prefix=no 17078 need_version=no 17079 case $host_cpu in 17080 ia64*) 17081 shrext_cmds='.so' 17082 hardcode_into_libs=yes 17083 dynamic_linker="$host_os dld.so" 17084 shlibpath_var=LD_LIBRARY_PATH 17085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17087 soname_spec='${libname}${release}${shared_ext}$major' 17088 if test "X$HPUX_IA64_MODE" = X32; then 17089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17090 else 17091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17092 fi 17093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17094 ;; 17095 hppa*64*) 17096 shrext_cmds='.sl' 17097 hardcode_into_libs=yes 17098 dynamic_linker="$host_os dld.sl" 17099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17102 soname_spec='${libname}${release}${shared_ext}$major' 17103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17105 ;; 17106 *) 17107 shrext_cmds='.sl' 17108 dynamic_linker="$host_os dld.sl" 17109 shlibpath_var=SHLIB_PATH 17110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17112 soname_spec='${libname}${release}${shared_ext}$major' 17113 ;; 17114 esac 17115 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17116 postinstall_cmds='chmod 555 $lib' 17117 ;; 17118 17119irix5* | irix6* | nonstopux*) 17120 case $host_os in 17121 nonstopux*) version_type=nonstopux ;; 17122 *) 17123 if test "$lt_cv_prog_gnu_ld" = yes; then 17124 version_type=linux 17125 else 17126 version_type=irix 17127 fi ;; 17128 esac 17129 need_lib_prefix=no 17130 need_version=no 17131 soname_spec='${libname}${release}${shared_ext}$major' 17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17133 case $host_os in 17134 irix5* | nonstopux*) 17135 libsuff= shlibsuff= 17136 ;; 17137 *) 17138 case $LD in # libtool.m4 will add one of these switches to LD 17139 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17140 libsuff= shlibsuff= libmagic=32-bit;; 17141 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17142 libsuff=32 shlibsuff=N32 libmagic=N32;; 17143 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17144 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17145 *) libsuff= shlibsuff= libmagic=never-match;; 17146 esac 17147 ;; 17148 esac 17149 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17150 shlibpath_overrides_runpath=no 17151 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17152 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17153 hardcode_into_libs=yes 17154 ;; 17155 17156# No shared lib support for Linux oldld, aout, or coff. 17157linux*oldld* | linux*aout* | linux*coff*) 17158 dynamic_linker=no 17159 ;; 17160 17161# This must be Linux ELF. 17162linux*) 17163 version_type=linux 17164 need_lib_prefix=no 17165 need_version=no 17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17167 soname_spec='${libname}${release}${shared_ext}$major' 17168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17169 shlibpath_var=LD_LIBRARY_PATH 17170 shlibpath_overrides_runpath=no 17171 # This implies no fast_install, which is unacceptable. 17172 # Some rework will be needed to allow for fast_install 17173 # before this can be enabled. 17174 hardcode_into_libs=yes 17175 17176 # Append ld.so.conf contents to the search path 17177 if test -f /etc/ld.so.conf; then 17178 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' ' '` 17179 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17180 fi 17181 17182 # We used to test for /lib/ld.so.1 and disable shared libraries on 17183 # powerpc, because MkLinux only supported shared libraries with the 17184 # GNU dynamic linker. Since this was broken with cross compilers, 17185 # most powerpc-linux boxes support dynamic linking these days and 17186 # people can always --disable-shared, the test was removed, and we 17187 # assume the GNU/Linux dynamic linker is in use. 17188 dynamic_linker='GNU/Linux ld.so' 17189 ;; 17190 17191knetbsd*-gnu) 17192 version_type=linux 17193 need_lib_prefix=no 17194 need_version=no 17195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17196 soname_spec='${libname}${release}${shared_ext}$major' 17197 shlibpath_var=LD_LIBRARY_PATH 17198 shlibpath_overrides_runpath=no 17199 hardcode_into_libs=yes 17200 dynamic_linker='GNU ld.so' 17201 ;; 17202 17203netbsd*) 17204 version_type=sunos 17205 need_lib_prefix=no 17206 need_version=no 17207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17210 dynamic_linker='NetBSD (a.out) ld.so' 17211 else 17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17213 soname_spec='${libname}${release}${shared_ext}$major' 17214 dynamic_linker='NetBSD ld.elf_so' 17215 fi 17216 shlibpath_var=LD_LIBRARY_PATH 17217 shlibpath_overrides_runpath=yes 17218 hardcode_into_libs=yes 17219 ;; 17220 17221newsos6) 17222 version_type=linux 17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17224 shlibpath_var=LD_LIBRARY_PATH 17225 shlibpath_overrides_runpath=yes 17226 ;; 17227 17228nto-qnx*) 17229 version_type=linux 17230 need_lib_prefix=no 17231 need_version=no 17232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17233 soname_spec='${libname}${release}${shared_ext}$major' 17234 shlibpath_var=LD_LIBRARY_PATH 17235 shlibpath_overrides_runpath=yes 17236 ;; 17237 17238openbsd*) 17239 version_type=sunos 17240 need_lib_prefix=no 17241 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17242 case $host_os in 17243 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17244 *) need_version=no ;; 17245 esac 17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17248 shlibpath_var=LD_LIBRARY_PATH 17249 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17250 case $host_os in 17251 openbsd2.[89] | openbsd2.[89].*) 17252 shlibpath_overrides_runpath=no 17253 ;; 17254 *) 17255 shlibpath_overrides_runpath=yes 17256 ;; 17257 esac 17258 else 17259 shlibpath_overrides_runpath=yes 17260 fi 17261 ;; 17262 17263os2*) 17264 libname_spec='$name' 17265 shrext_cmds=".dll" 17266 need_lib_prefix=no 17267 library_names_spec='$libname${shared_ext} $libname.a' 17268 dynamic_linker='OS/2 ld.exe' 17269 shlibpath_var=LIBPATH 17270 ;; 17271 17272osf3* | osf4* | osf5*) 17273 version_type=osf 17274 need_lib_prefix=no 17275 need_version=no 17276 soname_spec='${libname}${release}${shared_ext}$major' 17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17278 shlibpath_var=LD_LIBRARY_PATH 17279 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17280 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17281 ;; 17282 17283sco3.2v5*) 17284 version_type=osf 17285 soname_spec='${libname}${release}${shared_ext}$major' 17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17287 shlibpath_var=LD_LIBRARY_PATH 17288 ;; 17289 17290solaris*) 17291 version_type=linux 17292 need_lib_prefix=no 17293 need_version=no 17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17295 soname_spec='${libname}${release}${shared_ext}$major' 17296 shlibpath_var=LD_LIBRARY_PATH 17297 shlibpath_overrides_runpath=yes 17298 hardcode_into_libs=yes 17299 # ldd complains unless libraries are executable 17300 postinstall_cmds='chmod +x $lib' 17301 ;; 17302 17303sunos4*) 17304 version_type=sunos 17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17307 shlibpath_var=LD_LIBRARY_PATH 17308 shlibpath_overrides_runpath=yes 17309 if test "$with_gnu_ld" = yes; then 17310 need_lib_prefix=no 17311 fi 17312 need_version=yes 17313 ;; 17314 17315sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17316 version_type=linux 17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17318 soname_spec='${libname}${release}${shared_ext}$major' 17319 shlibpath_var=LD_LIBRARY_PATH 17320 case $host_vendor in 17321 sni) 17322 shlibpath_overrides_runpath=no 17323 need_lib_prefix=no 17324 export_dynamic_flag_spec='${wl}-Blargedynsym' 17325 runpath_var=LD_RUN_PATH 17326 ;; 17327 siemens) 17328 need_lib_prefix=no 17329 ;; 17330 motorola) 17331 need_lib_prefix=no 17332 need_version=no 17333 shlibpath_overrides_runpath=no 17334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17335 ;; 17336 esac 17337 ;; 17338 17339sysv4*MP*) 17340 if test -d /usr/nec ;then 17341 version_type=linux 17342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17343 soname_spec='$libname${shared_ext}.$major' 17344 shlibpath_var=LD_LIBRARY_PATH 17345 fi 17346 ;; 17347 17348uts4*) 17349 version_type=linux 17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17351 soname_spec='${libname}${release}${shared_ext}$major' 17352 shlibpath_var=LD_LIBRARY_PATH 17353 ;; 17354 17355*) 17356 dynamic_linker=no 17357 ;; 17358esac 17359echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17360echo "${ECHO_T}$dynamic_linker" >&6 17361test "$dynamic_linker" = no && can_build_shared=no 17362 17363echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17364echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17365hardcode_action_F77= 17366if test -n "$hardcode_libdir_flag_spec_F77" || \ 17367 test -n "$runpath_var_F77" || \ 17368 test "X$hardcode_automatic_F77" = "Xyes" ; then 17369 17370 # We can hardcode non-existant directories. 17371 if test "$hardcode_direct_F77" != no && 17372 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17373 # have to relink, otherwise we might link with an installed library 17374 # when we should be linking with a yet-to-be-installed one 17375 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17376 test "$hardcode_minus_L_F77" != no; then 17377 # Linking always hardcodes the temporary library directory. 17378 hardcode_action_F77=relink 17379 else 17380 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17381 hardcode_action_F77=immediate 17382 fi 17383else 17384 # We cannot hardcode anything, or else we can only hardcode existing 17385 # directories. 17386 hardcode_action_F77=unsupported 17387fi 17388echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17389echo "${ECHO_T}$hardcode_action_F77" >&6 17390 17391if test "$hardcode_action_F77" = relink; then 17392 # Fast installation is not supported 17393 enable_fast_install=no 17394elif test "$shlibpath_overrides_runpath" = yes || 17395 test "$enable_shared" = no; then 17396 # Fast installation is not necessary 17397 enable_fast_install=needless 17398fi 17399 17400striplib= 17401old_striplib= 17402echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17403echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17404if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17405 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17406 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17407 echo "$as_me:$LINENO: result: yes" >&5 17408echo "${ECHO_T}yes" >&6 17409else 17410# FIXME - insert some real tests, host_os isn't really good enough 17411 case $host_os in 17412 darwin*) 17413 if test -n "$STRIP" ; then 17414 striplib="$STRIP -x" 17415 echo "$as_me:$LINENO: result: yes" >&5 17416echo "${ECHO_T}yes" >&6 17417 else 17418 echo "$as_me:$LINENO: result: no" >&5 17419echo "${ECHO_T}no" >&6 17420fi 17421 ;; 17422 *) 17423 echo "$as_me:$LINENO: result: no" >&5 17424echo "${ECHO_T}no" >&6 17425 ;; 17426 esac 17427fi 17428 17429 17430 17431# The else clause should only fire when bootstrapping the 17432# libtool distribution, otherwise you forgot to ship ltmain.sh 17433# with your package, and you will get complaints that there are 17434# no rules to generate ltmain.sh. 17435if test -f "$ltmain"; then 17436 # See if we are running on zsh, and set the options which allow our commands through 17437 # without removal of \ escapes. 17438 if test -n "${ZSH_VERSION+set}" ; then 17439 setopt NO_GLOB_SUBST 17440 fi 17441 # Now quote all the things that may contain metacharacters while being 17442 # careful not to overquote the AC_SUBSTed values. We take copies of the 17443 # variables and quote the copies for generation of the libtool script. 17444 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 17445 SED SHELL STRIP \ 17446 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17447 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17448 deplibs_check_method reload_flag reload_cmds need_locks \ 17449 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17450 lt_cv_sys_global_symbol_to_c_name_address \ 17451 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17452 old_postinstall_cmds old_postuninstall_cmds \ 17453 compiler_F77 \ 17454 CC_F77 \ 17455 LD_F77 \ 17456 lt_prog_compiler_wl_F77 \ 17457 lt_prog_compiler_pic_F77 \ 17458 lt_prog_compiler_static_F77 \ 17459 lt_prog_compiler_no_builtin_flag_F77 \ 17460 export_dynamic_flag_spec_F77 \ 17461 thread_safe_flag_spec_F77 \ 17462 whole_archive_flag_spec_F77 \ 17463 enable_shared_with_static_runtimes_F77 \ 17464 old_archive_cmds_F77 \ 17465 old_archive_from_new_cmds_F77 \ 17466 predep_objects_F77 \ 17467 postdep_objects_F77 \ 17468 predeps_F77 \ 17469 postdeps_F77 \ 17470 compiler_lib_search_path_F77 \ 17471 archive_cmds_F77 \ 17472 archive_expsym_cmds_F77 \ 17473 postinstall_cmds_F77 \ 17474 postuninstall_cmds_F77 \ 17475 old_archive_from_expsyms_cmds_F77 \ 17476 allow_undefined_flag_F77 \ 17477 no_undefined_flag_F77 \ 17478 export_symbols_cmds_F77 \ 17479 hardcode_libdir_flag_spec_F77 \ 17480 hardcode_libdir_flag_spec_ld_F77 \ 17481 hardcode_libdir_separator_F77 \ 17482 hardcode_automatic_F77 \ 17483 module_cmds_F77 \ 17484 module_expsym_cmds_F77 \ 17485 lt_cv_prog_compiler_c_o_F77 \ 17486 exclude_expsyms_F77 \ 17487 include_expsyms_F77; do 17488 17489 case $var in 17490 old_archive_cmds_F77 | \ 17491 old_archive_from_new_cmds_F77 | \ 17492 archive_cmds_F77 | \ 17493 archive_expsym_cmds_F77 | \ 17494 module_cmds_F77 | \ 17495 module_expsym_cmds_F77 | \ 17496 old_archive_from_expsyms_cmds_F77 | \ 17497 export_symbols_cmds_F77 | \ 17498 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17499 postinstall_cmds | postuninstall_cmds | \ 17500 old_postinstall_cmds | old_postuninstall_cmds | \ 17501 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17502 # Double-quote double-evaled strings. 17503 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17504 ;; 17505 *) 17506 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17507 ;; 17508 esac 17509 done 17510 17511 case $lt_echo in 17512 *'\$0 --fallback-echo"') 17513 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17514 ;; 17515 esac 17516 17517cfgfile="$ofile" 17518 17519 cat <<__EOF__ >> "$cfgfile" 17520# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17521 17522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17523 17524# Shell to use when invoking shell scripts. 17525SHELL=$lt_SHELL 17526 17527# Whether or not to build shared libraries. 17528build_libtool_libs=$enable_shared 17529 17530# Whether or not to build static libraries. 17531build_old_libs=$enable_static 17532 17533# Whether or not to add -lc for building shared libraries. 17534build_libtool_need_lc=$archive_cmds_need_lc_F77 17535 17536# Whether or not to disallow shared libs when runtime libs are static 17537allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17538 17539# Whether or not to optimize for fast installation. 17540fast_install=$enable_fast_install 17541 17542# The host system. 17543host_alias=$host_alias 17544host=$host 17545host_os=$host_os 17546 17547# The build system. 17548build_alias=$build_alias 17549build=$build 17550build_os=$build_os 17551 17552# An echo program that does not interpret backslashes. 17553echo=$lt_echo 17554 17555# The archiver. 17556AR=$lt_AR 17557AR_FLAGS=$lt_AR_FLAGS 17558 17559# A C compiler. 17560LTCC=$lt_LTCC 17561 17562# A language-specific compiler. 17563CC=$lt_compiler_F77 17564 17565# Is the compiler the GNU C compiler? 17566with_gcc=$GCC_F77 17567 17568# An ERE matcher. 17569EGREP=$lt_EGREP 17570 17571# The linker used to build libraries. 17572LD=$lt_LD_F77 17573 17574# Whether we need hard or soft links. 17575LN_S=$lt_LN_S 17576 17577# A BSD-compatible nm program. 17578NM=$lt_NM 17579 17580# A symbol stripping program 17581STRIP=$lt_STRIP 17582 17583# Used to examine libraries when file_magic_cmd begins "file" 17584MAGIC_CMD=$MAGIC_CMD 17585 17586# Used on cygwin: DLL creation program. 17587DLLTOOL="$DLLTOOL" 17588 17589# Used on cygwin: object dumper. 17590OBJDUMP="$OBJDUMP" 17591 17592# Used on cygwin: assembler. 17593AS="$AS" 17594 17595# The name of the directory that contains temporary libtool files. 17596objdir=$objdir 17597 17598# How to create reloadable object files. 17599reload_flag=$lt_reload_flag 17600reload_cmds=$lt_reload_cmds 17601 17602# How to pass a linker flag through the compiler. 17603wl=$lt_lt_prog_compiler_wl_F77 17604 17605# Object file suffix (normally "o"). 17606objext="$ac_objext" 17607 17608# Old archive suffix (normally "a"). 17609libext="$libext" 17610 17611# Shared library suffix (normally ".so"). 17612shrext_cmds='$shrext_cmds' 17613 17614# Executable file suffix (normally ""). 17615exeext="$exeext" 17616 17617# Additional compiler flags for building library objects. 17618pic_flag=$lt_lt_prog_compiler_pic_F77 17619pic_mode=$pic_mode 17620 17621# What is the maximum length of a command? 17622max_cmd_len=$lt_cv_sys_max_cmd_len 17623 17624# Does compiler simultaneously support -c and -o options? 17625compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17626 17627# Must we lock files when doing compilation? 17628need_locks=$lt_need_locks 17629 17630# Do we need the lib prefix for modules? 17631need_lib_prefix=$need_lib_prefix 17632 17633# Do we need a version for libraries? 17634need_version=$need_version 17635 17636# Whether dlopen is supported. 17637dlopen_support=$enable_dlopen 17638 17639# Whether dlopen of programs is supported. 17640dlopen_self=$enable_dlopen_self 17641 17642# Whether dlopen of statically linked programs is supported. 17643dlopen_self_static=$enable_dlopen_self_static 17644 17645# Compiler flag to prevent dynamic linking. 17646link_static_flag=$lt_lt_prog_compiler_static_F77 17647 17648# Compiler flag to turn off builtin functions. 17649no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17650 17651# Compiler flag to allow reflexive dlopens. 17652export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17653 17654# Compiler flag to generate shared objects directly from archives. 17655whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17656 17657# Compiler flag to generate thread-safe objects. 17658thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17659 17660# Library versioning type. 17661version_type=$version_type 17662 17663# Format of library name prefix. 17664libname_spec=$lt_libname_spec 17665 17666# List of archive names. First name is the real one, the rest are links. 17667# The last name is the one that the linker finds with -lNAME. 17668library_names_spec=$lt_library_names_spec 17669 17670# The coded name of the library, if different from the real name. 17671soname_spec=$lt_soname_spec 17672 17673# Commands used to build and install an old-style archive. 17674RANLIB=$lt_RANLIB 17675old_archive_cmds=$lt_old_archive_cmds_F77 17676old_postinstall_cmds=$lt_old_postinstall_cmds 17677old_postuninstall_cmds=$lt_old_postuninstall_cmds 17678 17679# Create an old-style archive from a shared archive. 17680old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17681 17682# Create a temporary old-style archive to link instead of a shared archive. 17683old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17684 17685# Commands used to build and install a shared archive. 17686archive_cmds=$lt_archive_cmds_F77 17687archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17688postinstall_cmds=$lt_postinstall_cmds 17689postuninstall_cmds=$lt_postuninstall_cmds 17690 17691# Commands used to build a loadable module (assumed same as above if empty) 17692module_cmds=$lt_module_cmds_F77 17693module_expsym_cmds=$lt_module_expsym_cmds_F77 17694 17695# Commands to strip libraries. 17696old_striplib=$lt_old_striplib 17697striplib=$lt_striplib 17698 17699# Dependencies to place before the objects being linked to create a 17700# shared library. 17701predep_objects=$lt_predep_objects_F77 17702 17703# Dependencies to place after the objects being linked to create a 17704# shared library. 17705postdep_objects=$lt_postdep_objects_F77 17706 17707# Dependencies to place before the objects being linked to create a 17708# shared library. 17709predeps=$lt_predeps_F77 17710 17711# Dependencies to place after the objects being linked to create a 17712# shared library. 17713postdeps=$lt_postdeps_F77 17714 17715# The library search path used internally by the compiler when linking 17716# a shared library. 17717compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17718 17719# Method to check whether dependent libraries are shared objects. 17720deplibs_check_method=$lt_deplibs_check_method 17721 17722# Command to use when deplibs_check_method == file_magic. 17723file_magic_cmd=$lt_file_magic_cmd 17724 17725# Flag that allows shared libraries with undefined symbols to be built. 17726allow_undefined_flag=$lt_allow_undefined_flag_F77 17727 17728# Flag that forces no undefined symbols. 17729no_undefined_flag=$lt_no_undefined_flag_F77 17730 17731# Commands used to finish a libtool library installation in a directory. 17732finish_cmds=$lt_finish_cmds 17733 17734# Same as above, but a single script fragment to be evaled but not shown. 17735finish_eval=$lt_finish_eval 17736 17737# Take the output of nm and produce a listing of raw symbols and C names. 17738global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17739 17740# Transform the output of nm in a proper C declaration 17741global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17742 17743# Transform the output of nm in a C name address pair 17744global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17745 17746# This is the shared library runtime path variable. 17747runpath_var=$runpath_var 17748 17749# This is the shared library path variable. 17750shlibpath_var=$shlibpath_var 17751 17752# Is shlibpath searched before the hard-coded library search path? 17753shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17754 17755# How to hardcode a shared library path into an executable. 17756hardcode_action=$hardcode_action_F77 17757 17758# Whether we should hardcode library paths into libraries. 17759hardcode_into_libs=$hardcode_into_libs 17760 17761# Flag to hardcode \$libdir into a binary during linking. 17762# This must work even if \$libdir does not exist. 17763hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17764 17765# If ld is used when linking, flag to hardcode \$libdir into 17766# a binary during linking. This must work even if \$libdir does 17767# not exist. 17768hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17769 17770# Whether we need a single -rpath flag with a separated argument. 17771hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17772 17773# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17774# resulting binary. 17775hardcode_direct=$hardcode_direct_F77 17776 17777# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17778# resulting binary. 17779hardcode_minus_L=$hardcode_minus_L_F77 17780 17781# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17782# the resulting binary. 17783hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17784 17785# Set to yes if building a shared library automatically hardcodes DIR into the library 17786# and all subsequent libraries and executables linked against it. 17787hardcode_automatic=$hardcode_automatic_F77 17788 17789# Variables whose values should be saved in libtool wrapper scripts and 17790# restored at relink time. 17791variables_saved_for_relink="$variables_saved_for_relink" 17792 17793# Whether libtool must link a program against all its dependency libraries. 17794link_all_deplibs=$link_all_deplibs_F77 17795 17796# Compile-time system search path for libraries 17797sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17798 17799# Run-time system search path for libraries 17800sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17801 17802# Fix the shell variable \$srcfile for the compiler. 17803fix_srcfile_path="$fix_srcfile_path_F77" 17804 17805# Set to yes if exported symbols are required. 17806always_export_symbols=$always_export_symbols_F77 17807 17808# The commands to list exported symbols. 17809export_symbols_cmds=$lt_export_symbols_cmds_F77 17810 17811# The commands to extract the exported symbol list from a shared archive. 17812extract_expsyms_cmds=$lt_extract_expsyms_cmds 17813 17814# Symbols that should not be listed in the preloaded symbols. 17815exclude_expsyms=$lt_exclude_expsyms_F77 17816 17817# Symbols that must always be exported. 17818include_expsyms=$lt_include_expsyms_F77 17819 17820# ### END LIBTOOL TAG CONFIG: $tagname 17821 17822__EOF__ 17823 17824 17825else 17826 # If there is no Makefile yet, we rely on a make rule to execute 17827 # `config.status --recheck' to rerun these tests and create the 17828 # libtool script then. 17829 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17830 if test -f "$ltmain_in"; then 17831 test -f Makefile && make "$ltmain" 17832 fi 17833fi 17834 17835 17836ac_ext=c 17837ac_cpp='$CPP $CPPFLAGS' 17838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17840ac_compiler_gnu=$ac_cv_c_compiler_gnu 17841 17842CC="$lt_save_CC" 17843 17844 else 17845 tagname="" 17846 fi 17847 ;; 17848 17849 GCJ) 17850 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17851 17852 17853 17854# Source file extension for Java test sources. 17855ac_ext=java 17856 17857# Object file extension for compiled Java test sources. 17858objext=o 17859objext_GCJ=$objext 17860 17861# Code to be used in simple compile tests 17862lt_simple_compile_test_code="class foo {}\n" 17863 17864# Code to be used in simple link tests 17865lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 17866 17867# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17868 17869# If no C compiler was specified, use CC. 17870LTCC=${LTCC-"$CC"} 17871 17872# Allow CC to be a program name with arguments. 17873compiler=$CC 17874 17875 17876# save warnings/boilerplate of simple test code 17877ac_outfile=conftest.$ac_objext 17878printf "$lt_simple_compile_test_code" >conftest.$ac_ext 17879eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 17880_lt_compiler_boilerplate=`cat conftest.err` 17881$rm conftest* 17882 17883ac_outfile=conftest.$ac_objext 17884printf "$lt_simple_link_test_code" >conftest.$ac_ext 17885eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 17886_lt_linker_boilerplate=`cat conftest.err` 17887$rm conftest* 17888 17889 17890# Allow CC to be a program name with arguments. 17891lt_save_CC="$CC" 17892CC=${GCJ-"gcj"} 17893compiler=$CC 17894compiler_GCJ=$CC 17895for cc_temp in $compiler""; do 17896 case $cc_temp in 17897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17899 \-*) ;; 17900 *) break;; 17901 esac 17902done 17903cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17904 17905 17906# GCJ did not exist at the time GCC didn't implicitly link libc in. 17907archive_cmds_need_lc_GCJ=no 17908 17909old_archive_cmds_GCJ=$old_archive_cmds 17910 17911## CAVEAT EMPTOR: 17912## There is no encapsulation within the following macros, do not change 17913## the running order or otherwise move them around unless you know exactly 17914## what you are doing... 17915 17916lt_prog_compiler_no_builtin_flag_GCJ= 17917 17918if test "$GCC" = yes; then 17919 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17920 17921 17922echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17923echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 17924if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17925 echo $ECHO_N "(cached) $ECHO_C" >&6 17926else 17927 lt_cv_prog_compiler_rtti_exceptions=no 17928 ac_outfile=conftest.$ac_objext 17929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17930 lt_compiler_flag="-fno-rtti -fno-exceptions" 17931 # Insert the option either (1) after the last *FLAGS variable, or 17932 # (2) before a word containing "conftest.", or (3) at the end. 17933 # Note that $ac_compile itself does not contain backslashes and begins 17934 # with a dollar sign (not a hyphen), so the echo should work correctly. 17935 # The option is referenced via a variable to avoid confusing sed. 17936 lt_compile=`echo "$ac_compile" | $SED \ 17937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17939 -e 's:$: $lt_compiler_flag:'` 17940 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 17941 (eval "$lt_compile" 2>conftest.err) 17942 ac_status=$? 17943 cat conftest.err >&5 17944 echo "$as_me:__oline__: \$? = $ac_status" >&5 17945 if (exit $ac_status) && test -s "$ac_outfile"; then 17946 # The compiler can only warn and ignore the option if not recognized 17947 # So say no if there are warnings other than the usual output. 17948 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 17949 $SED '/^$/d' conftest.err >conftest.er2 17950 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 17951 lt_cv_prog_compiler_rtti_exceptions=yes 17952 fi 17953 fi 17954 $rm conftest* 17955 17956fi 17957echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17958echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 17959 17960if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17961 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17962else 17963 : 17964fi 17965 17966fi 17967 17968lt_prog_compiler_wl_GCJ= 17969lt_prog_compiler_pic_GCJ= 17970lt_prog_compiler_static_GCJ= 17971 17972echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17973echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 17974 17975 if test "$GCC" = yes; then 17976 lt_prog_compiler_wl_GCJ='-Wl,' 17977 lt_prog_compiler_static_GCJ='-static' 17978 17979 case $host_os in 17980 aix*) 17981 # All AIX code is PIC. 17982 if test "$host_cpu" = ia64; then 17983 # AIX 5 now supports IA64 processor 17984 lt_prog_compiler_static_GCJ='-Bstatic' 17985 fi 17986 ;; 17987 17988 amigaos*) 17989 # FIXME: we need at least 68020 code to build shared libraries, but 17990 # adding the `-m68020' flag to GCC prevents building anything better, 17991 # like `-m68040'. 17992 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17993 ;; 17994 17995 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17996 # PIC is the default for these OSes. 17997 ;; 17998 17999 mingw* | pw32* | os2*) 18000 # This hack is so that the source file can tell whether it is being 18001 # built for inclusion in a dll (and should export symbols for example). 18002 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18003 ;; 18004 18005 darwin* | rhapsody*) 18006 # PIC is the default on this platform 18007 # Common symbols not allowed in MH_DYLIB files 18008 lt_prog_compiler_pic_GCJ='-fno-common' 18009 ;; 18010 18011 msdosdjgpp*) 18012 # Just because we use GCC doesn't mean we suddenly get shared libraries 18013 # on systems that don't support them. 18014 lt_prog_compiler_can_build_shared_GCJ=no 18015 enable_shared=no 18016 ;; 18017 18018 sysv4*MP*) 18019 if test -d /usr/nec; then 18020 lt_prog_compiler_pic_GCJ=-Kconform_pic 18021 fi 18022 ;; 18023 18024 hpux*) 18025 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18026 # not for PA HP-UX. 18027 case $host_cpu in 18028 hppa*64*|ia64*) 18029 # +Z the default 18030 ;; 18031 *) 18032 lt_prog_compiler_pic_GCJ='-fPIC' 18033 ;; 18034 esac 18035 ;; 18036 18037 *) 18038 lt_prog_compiler_pic_GCJ='-fPIC' 18039 ;; 18040 esac 18041 else 18042 # PORTME Check for flag to pass linker flags through the system compiler. 18043 case $host_os in 18044 aix*) 18045 lt_prog_compiler_wl_GCJ='-Wl,' 18046 if test "$host_cpu" = ia64; then 18047 # AIX 5 now supports IA64 processor 18048 lt_prog_compiler_static_GCJ='-Bstatic' 18049 else 18050 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18051 fi 18052 ;; 18053 darwin*) 18054 # PIC is the default on this platform 18055 # Common symbols not allowed in MH_DYLIB files 18056 case $cc_basename in 18057 xlc*) 18058 lt_prog_compiler_pic_GCJ='-qnocommon' 18059 lt_prog_compiler_wl_GCJ='-Wl,' 18060 ;; 18061 esac 18062 ;; 18063 18064 mingw* | pw32* | os2*) 18065 # This hack is so that the source file can tell whether it is being 18066 # built for inclusion in a dll (and should export symbols for example). 18067 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18068 ;; 18069 18070 hpux9* | hpux10* | hpux11*) 18071 lt_prog_compiler_wl_GCJ='-Wl,' 18072 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18073 # not for PA HP-UX. 18074 case $host_cpu in 18075 hppa*64*|ia64*) 18076 # +Z the default 18077 ;; 18078 *) 18079 lt_prog_compiler_pic_GCJ='+Z' 18080 ;; 18081 esac 18082 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18083 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18084 ;; 18085 18086 irix5* | irix6* | nonstopux*) 18087 lt_prog_compiler_wl_GCJ='-Wl,' 18088 # PIC (with -KPIC) is the default. 18089 lt_prog_compiler_static_GCJ='-non_shared' 18090 ;; 18091 18092 newsos6) 18093 lt_prog_compiler_pic_GCJ='-KPIC' 18094 lt_prog_compiler_static_GCJ='-Bstatic' 18095 ;; 18096 18097 linux*) 18098 case $cc_basename in 18099 icc* | ecc*) 18100 lt_prog_compiler_wl_GCJ='-Wl,' 18101 lt_prog_compiler_pic_GCJ='-KPIC' 18102 lt_prog_compiler_static_GCJ='-static' 18103 ;; 18104 pgcc* | pgf77* | pgf90* | pgf95*) 18105 # Portland Group compilers (*not* the Pentium gcc compiler, 18106 # which looks to be a dead project) 18107 lt_prog_compiler_wl_GCJ='-Wl,' 18108 lt_prog_compiler_pic_GCJ='-fpic' 18109 lt_prog_compiler_static_GCJ='-Bstatic' 18110 ;; 18111 ccc*) 18112 lt_prog_compiler_wl_GCJ='-Wl,' 18113 # All Alpha code is PIC. 18114 lt_prog_compiler_static_GCJ='-non_shared' 18115 ;; 18116 esac 18117 ;; 18118 18119 osf3* | osf4* | osf5*) 18120 lt_prog_compiler_wl_GCJ='-Wl,' 18121 # All OSF/1 code is PIC. 18122 lt_prog_compiler_static_GCJ='-non_shared' 18123 ;; 18124 18125 sco3.2v5*) 18126 lt_prog_compiler_pic_GCJ='-Kpic' 18127 lt_prog_compiler_static_GCJ='-dn' 18128 ;; 18129 18130 solaris*) 18131 lt_prog_compiler_pic_GCJ='-KPIC' 18132 lt_prog_compiler_static_GCJ='-Bstatic' 18133 case $cc_basename in 18134 f77* | f90* | f95*) 18135 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 18136 *) 18137 lt_prog_compiler_wl_GCJ='-Wl,';; 18138 esac 18139 ;; 18140 18141 sunos4*) 18142 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18143 lt_prog_compiler_pic_GCJ='-PIC' 18144 lt_prog_compiler_static_GCJ='-Bstatic' 18145 ;; 18146 18147 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18148 lt_prog_compiler_wl_GCJ='-Wl,' 18149 lt_prog_compiler_pic_GCJ='-KPIC' 18150 lt_prog_compiler_static_GCJ='-Bstatic' 18151 ;; 18152 18153 sysv4*MP*) 18154 if test -d /usr/nec ;then 18155 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18156 lt_prog_compiler_static_GCJ='-Bstatic' 18157 fi 18158 ;; 18159 18160 unicos*) 18161 lt_prog_compiler_wl_GCJ='-Wl,' 18162 lt_prog_compiler_can_build_shared_GCJ=no 18163 ;; 18164 18165 uts4*) 18166 lt_prog_compiler_pic_GCJ='-pic' 18167 lt_prog_compiler_static_GCJ='-Bstatic' 18168 ;; 18169 18170 *) 18171 lt_prog_compiler_can_build_shared_GCJ=no 18172 ;; 18173 esac 18174 fi 18175 18176echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18177echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 18178 18179# 18180# Check to make sure the PIC flag actually works. 18181# 18182if test -n "$lt_prog_compiler_pic_GCJ"; then 18183 18184echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18185echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 18186if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 18187 echo $ECHO_N "(cached) $ECHO_C" >&6 18188else 18189 lt_prog_compiler_pic_works_GCJ=no 18190 ac_outfile=conftest.$ac_objext 18191 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18192 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18193 # Insert the option either (1) after the last *FLAGS variable, or 18194 # (2) before a word containing "conftest.", or (3) at the end. 18195 # Note that $ac_compile itself does not contain backslashes and begins 18196 # with a dollar sign (not a hyphen), so the echo should work correctly. 18197 # The option is referenced via a variable to avoid confusing sed. 18198 lt_compile=`echo "$ac_compile" | $SED \ 18199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18201 -e 's:$: $lt_compiler_flag:'` 18202 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 18203 (eval "$lt_compile" 2>conftest.err) 18204 ac_status=$? 18205 cat conftest.err >&5 18206 echo "$as_me:__oline__: \$? = $ac_status" >&5 18207 if (exit $ac_status) && test -s "$ac_outfile"; then 18208 # The compiler can only warn and ignore the option if not recognized 18209 # So say no if there are warnings other than the usual output. 18210 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 18211 $SED '/^$/d' conftest.err >conftest.er2 18212 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 18213 lt_prog_compiler_pic_works_GCJ=yes 18214 fi 18215 fi 18216 $rm conftest* 18217 18218fi 18219echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 18220echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 18221 18222if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 18223 case $lt_prog_compiler_pic_GCJ in 18224 "" | " "*) ;; 18225 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18226 esac 18227else 18228 lt_prog_compiler_pic_GCJ= 18229 lt_prog_compiler_can_build_shared_GCJ=no 18230fi 18231 18232fi 18233case $host_os in 18234 # For platforms which do not support PIC, -DPIC is meaningless: 18235 *djgpp*) 18236 lt_prog_compiler_pic_GCJ= 18237 ;; 18238 *) 18239 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18240 ;; 18241esac 18242 18243echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18244echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 18245if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18246 echo $ECHO_N "(cached) $ECHO_C" >&6 18247else 18248 lt_cv_prog_compiler_c_o_GCJ=no 18249 $rm -r conftest 2>/dev/null 18250 mkdir conftest 18251 cd conftest 18252 mkdir out 18253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18254 18255 lt_compiler_flag="-o out/conftest2.$ac_objext" 18256 # Insert the option either (1) after the last *FLAGS variable, or 18257 # (2) before a word containing "conftest.", or (3) at the end. 18258 # Note that $ac_compile itself does not contain backslashes and begins 18259 # with a dollar sign (not a hyphen), so the echo should work correctly. 18260 lt_compile=`echo "$ac_compile" | $SED \ 18261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18263 -e 's:$: $lt_compiler_flag:'` 18264 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 18265 (eval "$lt_compile" 2>out/conftest.err) 18266 ac_status=$? 18267 cat out/conftest.err >&5 18268 echo "$as_me:__oline__: \$? = $ac_status" >&5 18269 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18270 then 18271 # The compiler can only warn and ignore the option if not recognized 18272 # So say no if there are warnings 18273 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 18274 $SED '/^$/d' out/conftest.err >out/conftest.er2 18275 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18276 lt_cv_prog_compiler_c_o_GCJ=yes 18277 fi 18278 fi 18279 chmod u+w . 2>&5 18280 $rm conftest* 18281 # SGI C++ compiler will create directory out/ii_files/ for 18282 # template instantiation 18283 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18284 $rm out/* && rmdir out 18285 cd .. 18286 rmdir conftest 18287 $rm conftest* 18288 18289fi 18290echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18291echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 18292 18293 18294hard_links="nottested" 18295if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18296 # do not overwrite the value of need_locks provided by the user 18297 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18298echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 18299 hard_links=yes 18300 $rm conftest* 18301 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18302 touch conftest.a 18303 ln conftest.a conftest.b 2>&5 || hard_links=no 18304 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18305 echo "$as_me:$LINENO: result: $hard_links" >&5 18306echo "${ECHO_T}$hard_links" >&6 18307 if test "$hard_links" = no; then 18308 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18309echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18310 need_locks=warn 18311 fi 18312else 18313 need_locks=no 18314fi 18315 18316echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18317echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 18318 18319 runpath_var= 18320 allow_undefined_flag_GCJ= 18321 enable_shared_with_static_runtimes_GCJ=no 18322 archive_cmds_GCJ= 18323 archive_expsym_cmds_GCJ= 18324 old_archive_From_new_cmds_GCJ= 18325 old_archive_from_expsyms_cmds_GCJ= 18326 export_dynamic_flag_spec_GCJ= 18327 whole_archive_flag_spec_GCJ= 18328 thread_safe_flag_spec_GCJ= 18329 hardcode_libdir_flag_spec_GCJ= 18330 hardcode_libdir_flag_spec_ld_GCJ= 18331 hardcode_libdir_separator_GCJ= 18332 hardcode_direct_GCJ=no 18333 hardcode_minus_L_GCJ=no 18334 hardcode_shlibpath_var_GCJ=unsupported 18335 link_all_deplibs_GCJ=unknown 18336 hardcode_automatic_GCJ=no 18337 module_cmds_GCJ= 18338 module_expsym_cmds_GCJ= 18339 always_export_symbols_GCJ=no 18340 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18341 # include_expsyms should be a list of space-separated symbols to be *always* 18342 # included in the symbol list 18343 include_expsyms_GCJ= 18344 # exclude_expsyms can be an extended regexp of symbols to exclude 18345 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18346 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18347 # as well as any symbol that contains `d'. 18348 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 18349 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18350 # platforms (ab)use it in PIC code, but their linkers get confused if 18351 # the symbol is explicitly referenced. Since portable code cannot 18352 # rely on this symbol name, it's probably fine to never include it in 18353 # preloaded symbol tables. 18354 extract_expsyms_cmds= 18355 # Just being paranoid about ensuring that cc_basename is set. 18356 for cc_temp in $compiler""; do 18357 case $cc_temp in 18358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18360 \-*) ;; 18361 *) break;; 18362 esac 18363done 18364cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18365 18366 case $host_os in 18367 cygwin* | mingw* | pw32*) 18368 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18369 # When not using gcc, we currently assume that we are using 18370 # Microsoft Visual C++. 18371 if test "$GCC" != yes; then 18372 with_gnu_ld=no 18373 fi 18374 ;; 18375 openbsd*) 18376 with_gnu_ld=no 18377 ;; 18378 esac 18379 18380 ld_shlibs_GCJ=yes 18381 if test "$with_gnu_ld" = yes; then 18382 # If archive_cmds runs LD, not CC, wlarc should be empty 18383 wlarc='${wl}' 18384 18385 # Set some defaults for GNU ld with shared library support. These 18386 # are reset later if shared libraries are not supported. Putting them 18387 # here allows them to be overridden if necessary. 18388 runpath_var=LD_RUN_PATH 18389 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18390 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18391 # ancient GNU ld didn't support --whole-archive et. al. 18392 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18393 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18394 else 18395 whole_archive_flag_spec_GCJ= 18396 fi 18397 supports_anon_versioning=no 18398 case `$LD -v 2>/dev/null` in 18399 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18400 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18401 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18402 *\ 2.11.*) ;; # other 2.11 versions 18403 *) supports_anon_versioning=yes ;; 18404 esac 18405 18406 # See if GNU ld supports shared libraries. 18407 case $host_os in 18408 aix3* | aix4* | aix5*) 18409 # On AIX/PPC, the GNU linker is very broken 18410 if test "$host_cpu" != ia64; then 18411 ld_shlibs_GCJ=no 18412 cat <<EOF 1>&2 18413 18414*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18415*** to be unable to reliably create shared libraries on AIX. 18416*** Therefore, libtool is disabling shared libraries support. If you 18417*** really care for shared libraries, you may want to modify your PATH 18418*** so that a non-GNU linker is found, and then restart. 18419 18420EOF 18421 fi 18422 ;; 18423 18424 amigaos*) 18425 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)' 18426 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18427 hardcode_minus_L_GCJ=yes 18428 18429 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18430 # that the semantics of dynamic libraries on AmigaOS, at least up 18431 # to version 4, is to share data among multiple programs linked 18432 # with the same dynamic library. Since this doesn't match the 18433 # behavior of shared libraries on other platforms, we can't use 18434 # them. 18435 ld_shlibs_GCJ=no 18436 ;; 18437 18438 beos*) 18439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18440 allow_undefined_flag_GCJ=unsupported 18441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18442 # support --undefined. This deserves some investigation. FIXME 18443 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18444 else 18445 ld_shlibs_GCJ=no 18446 fi 18447 ;; 18448 18449 cygwin* | mingw* | pw32*) 18450 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18451 # as there is no search path for DLLs. 18452 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18453 allow_undefined_flag_GCJ=unsupported 18454 always_export_symbols_GCJ=no 18455 enable_shared_with_static_runtimes_GCJ=yes 18456 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18457 18458 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18459 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 18460 # If the export-symbols file already is a .def file (1st line 18461 # is EXPORTS), use it as is; otherwise, prepend... 18462 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18463 cp $export_symbols $output_objdir/$soname.def; 18464 else 18465 echo EXPORTS > $output_objdir/$soname.def; 18466 cat $export_symbols >> $output_objdir/$soname.def; 18467 fi~ 18468 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib' 18469 else 18470 ld_shlibs_GCJ=no 18471 fi 18472 ;; 18473 18474 linux*) 18475 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18476 tmp_addflag= 18477 case $cc_basename,$host_cpu in 18478 pgcc*) # Portland Group C compiler 18479 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' 18480 tmp_addflag=' $pic_flag' 18481 ;; 18482 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18483 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' 18484 tmp_addflag=' $pic_flag -Mnomain' ;; 18485 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18486 tmp_addflag=' -i_dynamic' ;; 18487 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18488 tmp_addflag=' -i_dynamic -nofor_main' ;; 18489 ifc* | ifort*) # Intel Fortran compiler 18490 tmp_addflag=' -nofor_main' ;; 18491 esac 18492 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18493 18494 if test $supports_anon_versioning = yes; then 18495 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18496 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18497 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18498 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18499 fi 18500 else 18501 ld_shlibs_GCJ=no 18502 fi 18503 ;; 18504 18505 netbsd*) 18506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18507 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18508 wlarc= 18509 else 18510 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18511 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18512 fi 18513 ;; 18514 18515 solaris* | sysv5*) 18516 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18517 ld_shlibs_GCJ=no 18518 cat <<EOF 1>&2 18519 18520*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18521*** create shared libraries on Solaris systems. Therefore, libtool 18522*** is disabling shared libraries support. We urge you to upgrade GNU 18523*** binutils to release 2.9.1 or newer. Another option is to modify 18524*** your PATH or compiler configuration so that the native linker is 18525*** used, and then restart. 18526 18527EOF 18528 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18529 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18530 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18531 else 18532 ld_shlibs_GCJ=no 18533 fi 18534 ;; 18535 18536 sunos4*) 18537 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18538 wlarc= 18539 hardcode_direct_GCJ=yes 18540 hardcode_shlibpath_var_GCJ=no 18541 ;; 18542 18543 *) 18544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18545 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18546 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18547 else 18548 ld_shlibs_GCJ=no 18549 fi 18550 ;; 18551 esac 18552 18553 if test "$ld_shlibs_GCJ" = no; then 18554 runpath_var= 18555 hardcode_libdir_flag_spec_GCJ= 18556 export_dynamic_flag_spec_GCJ= 18557 whole_archive_flag_spec_GCJ= 18558 fi 18559 else 18560 # PORTME fill in a description of your system's linker (not GNU ld) 18561 case $host_os in 18562 aix3*) 18563 allow_undefined_flag_GCJ=unsupported 18564 always_export_symbols_GCJ=yes 18565 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' 18566 # Note: this linker hardcodes the directories in LIBPATH if there 18567 # are no directories specified by -L. 18568 hardcode_minus_L_GCJ=yes 18569 if test "$GCC" = yes && test -z "$link_static_flag"; then 18570 # Neither direct hardcoding nor static linking is supported with a 18571 # broken collect2. 18572 hardcode_direct_GCJ=unsupported 18573 fi 18574 ;; 18575 18576 aix4* | aix5*) 18577 if test "$host_cpu" = ia64; then 18578 # On IA64, the linker does run time linking by default, so we don't 18579 # have to do anything special. 18580 aix_use_runtimelinking=no 18581 exp_sym_flag='-Bexport' 18582 no_entry_flag="" 18583 else 18584 # If we're using GNU nm, then we don't want the "-C" option. 18585 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18586 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18587 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' 18588 else 18589 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' 18590 fi 18591 aix_use_runtimelinking=no 18592 18593 # Test if we are trying to use run time linking or normal 18594 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18595 # need to do runtime linking. 18596 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18597 for ld_flag in $LDFLAGS; do 18598 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18599 aix_use_runtimelinking=yes 18600 break 18601 fi 18602 done 18603 esac 18604 18605 exp_sym_flag='-bexport' 18606 no_entry_flag='-bnoentry' 18607 fi 18608 18609 # When large executables or shared objects are built, AIX ld can 18610 # have problems creating the table of contents. If linking a library 18611 # or program results in "error TOC overflow" add -mminimal-toc to 18612 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18613 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18614 18615 archive_cmds_GCJ='' 18616 hardcode_direct_GCJ=yes 18617 hardcode_libdir_separator_GCJ=':' 18618 link_all_deplibs_GCJ=yes 18619 18620 if test "$GCC" = yes; then 18621 case $host_os in aix4.[012]|aix4.[012].*) 18622 # We only want to do this on AIX 4.2 and lower, the check 18623 # below for broken collect2 doesn't work under 4.3+ 18624 collect2name=`${CC} -print-prog-name=collect2` 18625 if test -f "$collect2name" && \ 18626 strings "$collect2name" | grep resolve_lib_name >/dev/null 18627 then 18628 # We have reworked collect2 18629 hardcode_direct_GCJ=yes 18630 else 18631 # We have old collect2 18632 hardcode_direct_GCJ=unsupported 18633 # It fails to find uninstalled libraries when the uninstalled 18634 # path is not listed in the libpath. Setting hardcode_minus_L 18635 # to unsupported forces relinking 18636 hardcode_minus_L_GCJ=yes 18637 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18638 hardcode_libdir_separator_GCJ= 18639 fi 18640 esac 18641 shared_flag='-shared' 18642 if test "$aix_use_runtimelinking" = yes; then 18643 shared_flag="$shared_flag "'${wl}-G' 18644 fi 18645 else 18646 # not using gcc 18647 if test "$host_cpu" = ia64; then 18648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18649 # chokes on -Wl,-G. The following line is correct: 18650 shared_flag='-G' 18651 else 18652 if test "$aix_use_runtimelinking" = yes; then 18653 shared_flag='${wl}-G' 18654 else 18655 shared_flag='${wl}-bM:SRE' 18656 fi 18657 fi 18658 fi 18659 18660 # It seems that -bexpall does not export symbols beginning with 18661 # underscore (_), so it is better to generate a list of symbols to export. 18662 always_export_symbols_GCJ=yes 18663 if test "$aix_use_runtimelinking" = yes; then 18664 # Warning - without using the other runtime loading flags (-brtl), 18665 # -berok will link without error, but may produce a broken library. 18666 allow_undefined_flag_GCJ='-berok' 18667 # Determine the default libpath from the value encoded in an empty executable. 18668 cat >conftest.$ac_ext <<_ACEOF 18669/* confdefs.h. */ 18670_ACEOF 18671cat confdefs.h >>conftest.$ac_ext 18672cat >>conftest.$ac_ext <<_ACEOF 18673/* end confdefs.h. */ 18674 18675int 18676main () 18677{ 18678 18679 ; 18680 return 0; 18681} 18682_ACEOF 18683rm -f conftest.$ac_objext conftest$ac_exeext 18684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18685 (eval $ac_link) 2>conftest.er1 18686 ac_status=$? 18687 grep -v '^ *+' conftest.er1 >conftest.err 18688 rm -f conftest.er1 18689 cat conftest.err >&5 18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18691 (exit $ac_status); } && 18692 { ac_try='test -z "$ac_c_werror_flag" 18693 || test ! -s conftest.err' 18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18695 (eval $ac_try) 2>&5 18696 ac_status=$? 18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18698 (exit $ac_status); }; } && 18699 { ac_try='test -s conftest$ac_exeext' 18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18701 (eval $ac_try) 2>&5 18702 ac_status=$? 18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18704 (exit $ac_status); }; }; then 18705 18706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18707}'` 18708# Check for a 64-bit object if we didn't find anything. 18709if 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; } 18710}'`; fi 18711else 18712 echo "$as_me: failed program was:" >&5 18713sed 's/^/| /' conftest.$ac_ext >&5 18714 18715fi 18716rm -f conftest.err conftest.$ac_objext \ 18717 conftest$ac_exeext conftest.$ac_ext 18718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18719 18720 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18721 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" 18722 else 18723 if test "$host_cpu" = ia64; then 18724 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18725 allow_undefined_flag_GCJ="-z nodefs" 18726 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" 18727 else 18728 # Determine the default libpath from the value encoded in an empty executable. 18729 cat >conftest.$ac_ext <<_ACEOF 18730/* confdefs.h. */ 18731_ACEOF 18732cat confdefs.h >>conftest.$ac_ext 18733cat >>conftest.$ac_ext <<_ACEOF 18734/* end confdefs.h. */ 18735 18736int 18737main () 18738{ 18739 18740 ; 18741 return 0; 18742} 18743_ACEOF 18744rm -f conftest.$ac_objext conftest$ac_exeext 18745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18746 (eval $ac_link) 2>conftest.er1 18747 ac_status=$? 18748 grep -v '^ *+' conftest.er1 >conftest.err 18749 rm -f conftest.er1 18750 cat conftest.err >&5 18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18752 (exit $ac_status); } && 18753 { ac_try='test -z "$ac_c_werror_flag" 18754 || test ! -s conftest.err' 18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18756 (eval $ac_try) 2>&5 18757 ac_status=$? 18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18759 (exit $ac_status); }; } && 18760 { ac_try='test -s conftest$ac_exeext' 18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18762 (eval $ac_try) 2>&5 18763 ac_status=$? 18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18765 (exit $ac_status); }; }; then 18766 18767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18768}'` 18769# Check for a 64-bit object if we didn't find anything. 18770if 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; } 18771}'`; fi 18772else 18773 echo "$as_me: failed program was:" >&5 18774sed 's/^/| /' conftest.$ac_ext >&5 18775 18776fi 18777rm -f conftest.err conftest.$ac_objext \ 18778 conftest$ac_exeext conftest.$ac_ext 18779if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18780 18781 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18782 # Warning - without using the other run time loading flags, 18783 # -berok will link without error, but may produce a broken library. 18784 no_undefined_flag_GCJ=' ${wl}-bernotok' 18785 allow_undefined_flag_GCJ=' ${wl}-berok' 18786 # -bexpall does not export symbols beginning with underscore (_) 18787 always_export_symbols_GCJ=yes 18788 # Exported symbols can be pulled into shared objects from archives 18789 whole_archive_flag_spec_GCJ=' ' 18790 archive_cmds_need_lc_GCJ=yes 18791 # This is similar to how AIX traditionally builds its shared libraries. 18792 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' 18793 fi 18794 fi 18795 ;; 18796 18797 amigaos*) 18798 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)' 18799 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18800 hardcode_minus_L_GCJ=yes 18801 # see comment about different semantics on the GNU ld section 18802 ld_shlibs_GCJ=no 18803 ;; 18804 18805 bsdi[45]*) 18806 export_dynamic_flag_spec_GCJ=-rdynamic 18807 ;; 18808 18809 cygwin* | mingw* | pw32*) 18810 # When not using gcc, we currently assume that we are using 18811 # Microsoft Visual C++. 18812 # hardcode_libdir_flag_spec is actually meaningless, as there is 18813 # no search path for DLLs. 18814 hardcode_libdir_flag_spec_GCJ=' ' 18815 allow_undefined_flag_GCJ=unsupported 18816 # Tell ltmain to make .lib files, not .a files. 18817 libext=lib 18818 # Tell ltmain to make .dll files, not .so files. 18819 shrext_cmds=".dll" 18820 # FIXME: Setting linknames here is a bad hack. 18821 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18822 # The linker will automatically build a .lib file if we build a DLL. 18823 old_archive_From_new_cmds_GCJ='true' 18824 # FIXME: Should let the user specify the lib program. 18825 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18826 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18827 enable_shared_with_static_runtimes_GCJ=yes 18828 ;; 18829 18830 darwin* | rhapsody*) 18831 case $host_os in 18832 rhapsody* | darwin1.[012]) 18833 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18834 ;; 18835 *) # Darwin 1.3 on 18836 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18837 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18838 else 18839 case ${MACOSX_DEPLOYMENT_TARGET} in 18840 10.[012]) 18841 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18842 ;; 18843 10.*) 18844 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18845 ;; 18846 esac 18847 fi 18848 ;; 18849 esac 18850 archive_cmds_need_lc_GCJ=no 18851 hardcode_direct_GCJ=no 18852 hardcode_automatic_GCJ=yes 18853 hardcode_shlibpath_var_GCJ=unsupported 18854 whole_archive_flag_spec_GCJ='' 18855 link_all_deplibs_GCJ=yes 18856 if test "$GCC" = yes ; then 18857 output_verbose_link_cmd='echo' 18858 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 18859 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18860 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18861 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}' 18862 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}' 18863 else 18864 case $cc_basename in 18865 xlc*) 18866 output_verbose_link_cmd='echo' 18867 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 18868 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18869 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18870 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}' 18871 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}' 18872 ;; 18873 *) 18874 ld_shlibs_GCJ=no 18875 ;; 18876 esac 18877 fi 18878 ;; 18879 18880 dgux*) 18881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18882 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18883 hardcode_shlibpath_var_GCJ=no 18884 ;; 18885 18886 freebsd1*) 18887 ld_shlibs_GCJ=no 18888 ;; 18889 18890 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18891 # support. Future versions do this automatically, but an explicit c++rt0.o 18892 # does not break anything, and helps significantly (at the cost of a little 18893 # extra space). 18894 freebsd2.2*) 18895 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18896 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18897 hardcode_direct_GCJ=yes 18898 hardcode_shlibpath_var_GCJ=no 18899 ;; 18900 18901 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18902 freebsd2*) 18903 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18904 hardcode_direct_GCJ=yes 18905 hardcode_minus_L_GCJ=yes 18906 hardcode_shlibpath_var_GCJ=no 18907 ;; 18908 18909 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18910 freebsd* | kfreebsd*-gnu | dragonfly*) 18911 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18912 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18913 hardcode_direct_GCJ=yes 18914 hardcode_shlibpath_var_GCJ=no 18915 ;; 18916 18917 hpux9*) 18918 if test "$GCC" = yes; then 18919 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' 18920 else 18921 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' 18922 fi 18923 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18924 hardcode_libdir_separator_GCJ=: 18925 hardcode_direct_GCJ=yes 18926 18927 # hardcode_minus_L: Not really in the search PATH, 18928 # but as the default location of the library. 18929 hardcode_minus_L_GCJ=yes 18930 export_dynamic_flag_spec_GCJ='${wl}-E' 18931 ;; 18932 18933 hpux10* | hpux11*) 18934 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18935 case $host_cpu in 18936 hppa*64*|ia64*) 18937 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18938 ;; 18939 *) 18940 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18941 ;; 18942 esac 18943 else 18944 case $host_cpu in 18945 hppa*64*|ia64*) 18946 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 18947 ;; 18948 *) 18949 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18950 ;; 18951 esac 18952 fi 18953 if test "$with_gnu_ld" = no; then 18954 case $host_cpu in 18955 hppa*64*) 18956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18957 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18958 hardcode_libdir_separator_GCJ=: 18959 hardcode_direct_GCJ=no 18960 hardcode_shlibpath_var_GCJ=no 18961 ;; 18962 ia64*) 18963 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18964 hardcode_direct_GCJ=no 18965 hardcode_shlibpath_var_GCJ=no 18966 18967 # hardcode_minus_L: Not really in the search PATH, 18968 # but as the default location of the library. 18969 hardcode_minus_L_GCJ=yes 18970 ;; 18971 *) 18972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18973 hardcode_libdir_separator_GCJ=: 18974 hardcode_direct_GCJ=yes 18975 export_dynamic_flag_spec_GCJ='${wl}-E' 18976 18977 # hardcode_minus_L: Not really in the search PATH, 18978 # but as the default location of the library. 18979 hardcode_minus_L_GCJ=yes 18980 ;; 18981 esac 18982 fi 18983 ;; 18984 18985 irix5* | irix6* | nonstopux*) 18986 if test "$GCC" = yes; then 18987 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' 18988 else 18989 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' 18990 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18991 fi 18992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18993 hardcode_libdir_separator_GCJ=: 18994 link_all_deplibs_GCJ=yes 18995 ;; 18996 18997 netbsd*) 18998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18999 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19000 else 19001 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19002 fi 19003 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19004 hardcode_direct_GCJ=yes 19005 hardcode_shlibpath_var_GCJ=no 19006 ;; 19007 19008 newsos6) 19009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19010 hardcode_direct_GCJ=yes 19011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19012 hardcode_libdir_separator_GCJ=: 19013 hardcode_shlibpath_var_GCJ=no 19014 ;; 19015 19016 openbsd*) 19017 hardcode_direct_GCJ=yes 19018 hardcode_shlibpath_var_GCJ=no 19019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19021 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19023 export_dynamic_flag_spec_GCJ='${wl}-E' 19024 else 19025 case $host_os in 19026 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19027 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19028 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19029 ;; 19030 *) 19031 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19033 ;; 19034 esac 19035 fi 19036 ;; 19037 19038 os2*) 19039 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19040 hardcode_minus_L_GCJ=yes 19041 allow_undefined_flag_GCJ=unsupported 19042 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' 19043 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19044 ;; 19045 19046 osf3*) 19047 if test "$GCC" = yes; then 19048 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19049 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' 19050 else 19051 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19052 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' 19053 fi 19054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19055 hardcode_libdir_separator_GCJ=: 19056 ;; 19057 19058 osf4* | osf5*) # as osf3* with the addition of -msym flag 19059 if test "$GCC" = yes; then 19060 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19061 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' 19062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19063 else 19064 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19065 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' 19066 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~ 19067 $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' 19068 19069 # Both c and cxx compiler support -rpath directly 19070 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19071 fi 19072 hardcode_libdir_separator_GCJ=: 19073 ;; 19074 19075 sco3.2v5*) 19076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19077 hardcode_shlibpath_var_GCJ=no 19078 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19079 runpath_var=LD_RUN_PATH 19080 hardcode_runpath_var=yes 19081 ;; 19082 19083 solaris*) 19084 no_undefined_flag_GCJ=' -z text' 19085 if test "$GCC" = yes; then 19086 wlarc='${wl}' 19087 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19088 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19089 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19090 else 19091 wlarc='' 19092 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19093 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19095 fi 19096 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19097 hardcode_shlibpath_var_GCJ=no 19098 case $host_os in 19099 solaris2.[0-5] | solaris2.[0-5].*) ;; 19100 *) 19101 # The compiler driver will combine linker options so we 19102 # cannot just pass the convience library names through 19103 # without $wl, iff we do not link with $LD. 19104 # Luckily, gcc supports the same syntax we need for Sun Studio. 19105 # Supported since Solaris 2.6 (maybe 2.5.1?) 19106 case $wlarc in 19107 '') 19108 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 19109 *) 19110 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' ;; 19111 esac ;; 19112 esac 19113 link_all_deplibs_GCJ=yes 19114 ;; 19115 19116 sunos4*) 19117 if test "x$host_vendor" = xsequent; then 19118 # Use $CC to link under sequent, because it throws in some extra .o 19119 # files that make .init and .fini sections work. 19120 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19121 else 19122 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19123 fi 19124 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19125 hardcode_direct_GCJ=yes 19126 hardcode_minus_L_GCJ=yes 19127 hardcode_shlibpath_var_GCJ=no 19128 ;; 19129 19130 sysv4) 19131 case $host_vendor in 19132 sni) 19133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19134 hardcode_direct_GCJ=yes # is this really true??? 19135 ;; 19136 siemens) 19137 ## LD is ld it makes a PLAMLIB 19138 ## CC just makes a GrossModule. 19139 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19140 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19141 hardcode_direct_GCJ=no 19142 ;; 19143 motorola) 19144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19145 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19146 ;; 19147 esac 19148 runpath_var='LD_RUN_PATH' 19149 hardcode_shlibpath_var_GCJ=no 19150 ;; 19151 19152 sysv4.3*) 19153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19154 hardcode_shlibpath_var_GCJ=no 19155 export_dynamic_flag_spec_GCJ='-Bexport' 19156 ;; 19157 19158 sysv4*MP*) 19159 if test -d /usr/nec; then 19160 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19161 hardcode_shlibpath_var_GCJ=no 19162 runpath_var=LD_RUN_PATH 19163 hardcode_runpath_var=yes 19164 ld_shlibs_GCJ=yes 19165 fi 19166 ;; 19167 19168 sysv4.2uw2*) 19169 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19170 hardcode_direct_GCJ=yes 19171 hardcode_minus_L_GCJ=no 19172 hardcode_shlibpath_var_GCJ=no 19173 hardcode_runpath_var=yes 19174 runpath_var=LD_RUN_PATH 19175 ;; 19176 19177 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 19178 no_undefined_flag_GCJ='${wl}-z ${wl}text' 19179 if test "$GCC" = yes; then 19180 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19181 else 19182 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19183 fi 19184 runpath_var='LD_RUN_PATH' 19185 hardcode_shlibpath_var_GCJ=no 19186 ;; 19187 19188 sysv5*) 19189 no_undefined_flag_GCJ=' -z text' 19190 # $CC -shared without GNU ld will not create a library from C++ 19191 # object files and a static libstdc++, better avoid it by now 19192 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19193 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19194 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19195 hardcode_libdir_flag_spec_GCJ= 19196 hardcode_shlibpath_var_GCJ=no 19197 runpath_var='LD_RUN_PATH' 19198 ;; 19199 19200 uts4*) 19201 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19202 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19203 hardcode_shlibpath_var_GCJ=no 19204 ;; 19205 19206 *) 19207 ld_shlibs_GCJ=no 19208 ;; 19209 esac 19210 fi 19211 19212echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19213echo "${ECHO_T}$ld_shlibs_GCJ" >&6 19214test "$ld_shlibs_GCJ" = no && can_build_shared=no 19215 19216variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19217if test "$GCC" = yes; then 19218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19219fi 19220 19221# 19222# Do we need to explicitly link libc? 19223# 19224case "x$archive_cmds_need_lc_GCJ" in 19225x|xyes) 19226 # Assume -lc should be added 19227 archive_cmds_need_lc_GCJ=yes 19228 19229 if test "$enable_shared" = yes && test "$GCC" = yes; then 19230 case $archive_cmds_GCJ in 19231 *'~'*) 19232 # FIXME: we may have to deal with multi-command sequences. 19233 ;; 19234 '$CC '*) 19235 # Test whether the compiler implicitly links with -lc since on some 19236 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19237 # to ld, don't add -lc before -lgcc. 19238 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19239echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 19240 $rm conftest* 19241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19242 19243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19244 (eval $ac_compile) 2>&5 19245 ac_status=$? 19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19247 (exit $ac_status); } 2>conftest.err; then 19248 soname=conftest 19249 lib=conftest 19250 libobjs=conftest.$ac_objext 19251 deplibs= 19252 wl=$lt_prog_compiler_wl_GCJ 19253 compiler_flags=-v 19254 linker_flags=-v 19255 verstring= 19256 output_objdir=. 19257 libname=conftest 19258 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19259 allow_undefined_flag_GCJ= 19260 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19261 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19262 ac_status=$? 19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19264 (exit $ac_status); } 19265 then 19266 archive_cmds_need_lc_GCJ=no 19267 else 19268 archive_cmds_need_lc_GCJ=yes 19269 fi 19270 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19271 else 19272 cat conftest.err 1>&5 19273 fi 19274 $rm conftest* 19275 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19276echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 19277 ;; 19278 esac 19279 fi 19280 ;; 19281esac 19282 19283echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19284echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 19285library_names_spec= 19286libname_spec='lib$name' 19287soname_spec= 19288shrext_cmds=".so" 19289postinstall_cmds= 19290postuninstall_cmds= 19291finish_cmds= 19292finish_eval= 19293shlibpath_var= 19294shlibpath_overrides_runpath=unknown 19295version_type=none 19296dynamic_linker="$host_os ld.so" 19297sys_lib_dlsearch_path_spec="/lib /usr/lib" 19298if test "$GCC" = yes; then 19299 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19300 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 19301 # if the path contains ";" then we assume it to be the separator 19302 # otherwise default to the standard path separator (i.e. ":") - it is 19303 # assumed that no part of a normal pathname contains ";" but that should 19304 # okay in the real world where ";" in dirpaths is itself problematic. 19305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19306 else 19307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19308 fi 19309else 19310 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19311fi 19312need_lib_prefix=unknown 19313hardcode_into_libs=no 19314 19315# when you set need_version to no, make sure it does not cause -set_version 19316# flags to be left without arguments 19317need_version=unknown 19318 19319case $host_os in 19320aix3*) 19321 version_type=linux 19322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19323 shlibpath_var=LIBPATH 19324 19325 # AIX 3 has no versioning support, so we append a major version to the name. 19326 soname_spec='${libname}${release}${shared_ext}$major' 19327 ;; 19328 19329aix4* | aix5*) 19330 version_type=linux 19331 need_lib_prefix=no 19332 need_version=no 19333 hardcode_into_libs=yes 19334 if test "$host_cpu" = ia64; then 19335 # AIX 5 supports IA64 19336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19337 shlibpath_var=LD_LIBRARY_PATH 19338 else 19339 # With GCC up to 2.95.x, collect2 would create an import file 19340 # for dependence libraries. The import file would start with 19341 # the line `#! .'. This would cause the generated library to 19342 # depend on `.', always an invalid library. This was fixed in 19343 # development snapshots of GCC prior to 3.0. 19344 case $host_os in 19345 aix4 | aix4.[01] | aix4.[01].*) 19346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19347 echo ' yes ' 19348 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19349 : 19350 else 19351 can_build_shared=no 19352 fi 19353 ;; 19354 esac 19355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19356 # soname into executable. Probably we can add versioning support to 19357 # collect2, so additional links can be useful in future. 19358 if test "$aix_use_runtimelinking" = yes; then 19359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19360 # instead of lib<name>.a to let people know that these are not 19361 # typical AIX shared libraries. 19362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19363 else 19364 # We preserve .a as extension for shared libraries through AIX4.2 19365 # and later when we are not doing run time linking. 19366 library_names_spec='${libname}${release}.a $libname.a' 19367 soname_spec='${libname}${release}${shared_ext}$major' 19368 fi 19369 shlibpath_var=LIBPATH 19370 fi 19371 ;; 19372 19373amigaos*) 19374 library_names_spec='$libname.ixlibrary $libname.a' 19375 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19376 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' 19377 ;; 19378 19379beos*) 19380 library_names_spec='${libname}${shared_ext}' 19381 dynamic_linker="$host_os ld.so" 19382 shlibpath_var=LIBRARY_PATH 19383 ;; 19384 19385bsdi[45]*) 19386 version_type=linux 19387 need_version=no 19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19389 soname_spec='${libname}${release}${shared_ext}$major' 19390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19391 shlibpath_var=LD_LIBRARY_PATH 19392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19394 # the default ld.so.conf also contains /usr/contrib/lib and 19395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19396 # libtool to hard-code these into programs 19397 ;; 19398 19399cygwin* | mingw* | pw32*) 19400 version_type=windows 19401 shrext_cmds=".dll" 19402 need_version=no 19403 need_lib_prefix=no 19404 19405 case $GCC,$host_os in 19406 yes,cygwin* | yes,mingw* | yes,pw32*) 19407 library_names_spec='$libname.dll.a' 19408 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19409 postinstall_cmds='base_file=`basename \${file}`~ 19410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19411 dldir=$destdir/`dirname \$dlpath`~ 19412 test -d \$dldir || mkdir -p \$dldir~ 19413 $install_prog $dir/$dlname \$dldir/$dlname~ 19414 chmod a+x \$dldir/$dlname' 19415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19416 dlpath=$dir/\$dldll~ 19417 $rm \$dlpath' 19418 shlibpath_overrides_runpath=yes 19419 19420 case $host_os in 19421 cygwin*) 19422 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19425 ;; 19426 mingw*) 19427 # MinGW DLLs use traditional 'lib' prefix 19428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19430 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19431 # It is most probably a Windows format PATH printed by 19432 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19433 # path with ; separators, and with drive letters. We can handle the 19434 # drive letters (cygwin fileutils understands them), so leave them, 19435 # especially as we might pass files found there to a mingw objdump, 19436 # which wouldn't understand a cygwinified path. Ahh. 19437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19438 else 19439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19440 fi 19441 ;; 19442 pw32*) 19443 # pw32 DLLs use 'pw' prefix rather than 'lib' 19444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19445 ;; 19446 esac 19447 ;; 19448 19449 *) 19450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19451 ;; 19452 esac 19453 dynamic_linker='Win32 ld.exe' 19454 # FIXME: first we should search . and the directory the executable is in 19455 shlibpath_var=PATH 19456 ;; 19457 19458darwin* | rhapsody*) 19459 dynamic_linker="$host_os dyld" 19460 version_type=darwin 19461 need_lib_prefix=no 19462 need_version=no 19463 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19464 soname_spec='${libname}${release}${major}$shared_ext' 19465 shlibpath_overrides_runpath=yes 19466 shlibpath_var=DYLD_LIBRARY_PATH 19467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19468 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19469 if test "$GCC" = yes; then 19470 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"` 19471 else 19472 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19473 fi 19474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19475 ;; 19476 19477dgux*) 19478 version_type=linux 19479 need_lib_prefix=no 19480 need_version=no 19481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19482 soname_spec='${libname}${release}${shared_ext}$major' 19483 shlibpath_var=LD_LIBRARY_PATH 19484 ;; 19485 19486freebsd1*) 19487 dynamic_linker=no 19488 ;; 19489 19490kfreebsd*-gnu) 19491 version_type=linux 19492 need_lib_prefix=no 19493 need_version=no 19494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19495 soname_spec='${libname}${release}${shared_ext}$major' 19496 shlibpath_var=LD_LIBRARY_PATH 19497 shlibpath_overrides_runpath=no 19498 hardcode_into_libs=yes 19499 dynamic_linker='GNU ld.so' 19500 ;; 19501 19502freebsd* | dragonfly*) 19503 # DragonFly does not have aout. When/if they implement a new 19504 # versioning mechanism, adjust this. 19505 if test -x /usr/bin/objformat; then 19506 objformat=`/usr/bin/objformat` 19507 else 19508 case $host_os in 19509 freebsd[123]*) objformat=aout ;; 19510 *) objformat=elf ;; 19511 esac 19512 fi 19513 version_type=freebsd-$objformat 19514 case $version_type in 19515 freebsd-elf*) 19516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19517 need_version=no 19518 need_lib_prefix=no 19519 ;; 19520 freebsd-*) 19521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19522 need_version=yes 19523 ;; 19524 esac 19525 shlibpath_var=LD_LIBRARY_PATH 19526 case $host_os in 19527 freebsd2*) 19528 shlibpath_overrides_runpath=yes 19529 ;; 19530 freebsd3.[01]* | freebsdelf3.[01]*) 19531 shlibpath_overrides_runpath=yes 19532 hardcode_into_libs=yes 19533 ;; 19534 *) # from 3.2 on 19535 shlibpath_overrides_runpath=no 19536 hardcode_into_libs=yes 19537 ;; 19538 esac 19539 ;; 19540 19541gnu*) 19542 version_type=linux 19543 need_lib_prefix=no 19544 need_version=no 19545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19546 soname_spec='${libname}${release}${shared_ext}$major' 19547 shlibpath_var=LD_LIBRARY_PATH 19548 hardcode_into_libs=yes 19549 ;; 19550 19551hpux9* | hpux10* | hpux11*) 19552 # Give a soname corresponding to the major version so that dld.sl refuses to 19553 # link against other versions. 19554 version_type=sunos 19555 need_lib_prefix=no 19556 need_version=no 19557 case $host_cpu in 19558 ia64*) 19559 shrext_cmds='.so' 19560 hardcode_into_libs=yes 19561 dynamic_linker="$host_os dld.so" 19562 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then 19567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19568 else 19569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19570 fi 19571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19572 ;; 19573 hppa*64*) 19574 shrext_cmds='.sl' 19575 hardcode_into_libs=yes 19576 dynamic_linker="$host_os dld.sl" 19577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19580 soname_spec='${libname}${release}${shared_ext}$major' 19581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19583 ;; 19584 *) 19585 shrext_cmds='.sl' 19586 dynamic_linker="$host_os dld.sl" 19587 shlibpath_var=SHLIB_PATH 19588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19590 soname_spec='${libname}${release}${shared_ext}$major' 19591 ;; 19592 esac 19593 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19594 postinstall_cmds='chmod 555 $lib' 19595 ;; 19596 19597irix5* | irix6* | nonstopux*) 19598 case $host_os in 19599 nonstopux*) version_type=nonstopux ;; 19600 *) 19601 if test "$lt_cv_prog_gnu_ld" = yes; then 19602 version_type=linux 19603 else 19604 version_type=irix 19605 fi ;; 19606 esac 19607 need_lib_prefix=no 19608 need_version=no 19609 soname_spec='${libname}${release}${shared_ext}$major' 19610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19611 case $host_os in 19612 irix5* | nonstopux*) 19613 libsuff= shlibsuff= 19614 ;; 19615 *) 19616 case $LD in # libtool.m4 will add one of these switches to LD 19617 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19618 libsuff= shlibsuff= libmagic=32-bit;; 19619 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19620 libsuff=32 shlibsuff=N32 libmagic=N32;; 19621 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19622 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19623 *) libsuff= shlibsuff= libmagic=never-match;; 19624 esac 19625 ;; 19626 esac 19627 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19628 shlibpath_overrides_runpath=no 19629 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19630 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19631 hardcode_into_libs=yes 19632 ;; 19633 19634# No shared lib support for Linux oldld, aout, or coff. 19635linux*oldld* | linux*aout* | linux*coff*) 19636 dynamic_linker=no 19637 ;; 19638 19639# This must be Linux ELF. 19640linux*) 19641 version_type=linux 19642 need_lib_prefix=no 19643 need_version=no 19644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19645 soname_spec='${libname}${release}${shared_ext}$major' 19646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19647 shlibpath_var=LD_LIBRARY_PATH 19648 shlibpath_overrides_runpath=no 19649 # This implies no fast_install, which is unacceptable. 19650 # Some rework will be needed to allow for fast_install 19651 # before this can be enabled. 19652 hardcode_into_libs=yes 19653 19654 # Append ld.so.conf contents to the search path 19655 if test -f /etc/ld.so.conf; then 19656 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' ' '` 19657 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19658 fi 19659 19660 # We used to test for /lib/ld.so.1 and disable shared libraries on 19661 # powerpc, because MkLinux only supported shared libraries with the 19662 # GNU dynamic linker. Since this was broken with cross compilers, 19663 # most powerpc-linux boxes support dynamic linking these days and 19664 # people can always --disable-shared, the test was removed, and we 19665 # assume the GNU/Linux dynamic linker is in use. 19666 dynamic_linker='GNU/Linux ld.so' 19667 ;; 19668 19669knetbsd*-gnu) 19670 version_type=linux 19671 need_lib_prefix=no 19672 need_version=no 19673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19674 soname_spec='${libname}${release}${shared_ext}$major' 19675 shlibpath_var=LD_LIBRARY_PATH 19676 shlibpath_overrides_runpath=no 19677 hardcode_into_libs=yes 19678 dynamic_linker='GNU ld.so' 19679 ;; 19680 19681netbsd*) 19682 version_type=sunos 19683 need_lib_prefix=no 19684 need_version=no 19685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19688 dynamic_linker='NetBSD (a.out) ld.so' 19689 else 19690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19691 soname_spec='${libname}${release}${shared_ext}$major' 19692 dynamic_linker='NetBSD ld.elf_so' 19693 fi 19694 shlibpath_var=LD_LIBRARY_PATH 19695 shlibpath_overrides_runpath=yes 19696 hardcode_into_libs=yes 19697 ;; 19698 19699newsos6) 19700 version_type=linux 19701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19702 shlibpath_var=LD_LIBRARY_PATH 19703 shlibpath_overrides_runpath=yes 19704 ;; 19705 19706nto-qnx*) 19707 version_type=linux 19708 need_lib_prefix=no 19709 need_version=no 19710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19711 soname_spec='${libname}${release}${shared_ext}$major' 19712 shlibpath_var=LD_LIBRARY_PATH 19713 shlibpath_overrides_runpath=yes 19714 ;; 19715 19716openbsd*) 19717 version_type=sunos 19718 need_lib_prefix=no 19719 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19720 case $host_os in 19721 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19722 *) need_version=no ;; 19723 esac 19724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19726 shlibpath_var=LD_LIBRARY_PATH 19727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19728 case $host_os in 19729 openbsd2.[89] | openbsd2.[89].*) 19730 shlibpath_overrides_runpath=no 19731 ;; 19732 *) 19733 shlibpath_overrides_runpath=yes 19734 ;; 19735 esac 19736 else 19737 shlibpath_overrides_runpath=yes 19738 fi 19739 ;; 19740 19741os2*) 19742 libname_spec='$name' 19743 shrext_cmds=".dll" 19744 need_lib_prefix=no 19745 library_names_spec='$libname${shared_ext} $libname.a' 19746 dynamic_linker='OS/2 ld.exe' 19747 shlibpath_var=LIBPATH 19748 ;; 19749 19750osf3* | osf4* | osf5*) 19751 version_type=osf 19752 need_lib_prefix=no 19753 need_version=no 19754 soname_spec='${libname}${release}${shared_ext}$major' 19755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19756 shlibpath_var=LD_LIBRARY_PATH 19757 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19758 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19759 ;; 19760 19761sco3.2v5*) 19762 version_type=osf 19763 soname_spec='${libname}${release}${shared_ext}$major' 19764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19765 shlibpath_var=LD_LIBRARY_PATH 19766 ;; 19767 19768solaris*) 19769 version_type=linux 19770 need_lib_prefix=no 19771 need_version=no 19772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19773 soname_spec='${libname}${release}${shared_ext}$major' 19774 shlibpath_var=LD_LIBRARY_PATH 19775 shlibpath_overrides_runpath=yes 19776 hardcode_into_libs=yes 19777 # ldd complains unless libraries are executable 19778 postinstall_cmds='chmod +x $lib' 19779 ;; 19780 19781sunos4*) 19782 version_type=sunos 19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19784 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19785 shlibpath_var=LD_LIBRARY_PATH 19786 shlibpath_overrides_runpath=yes 19787 if test "$with_gnu_ld" = yes; then 19788 need_lib_prefix=no 19789 fi 19790 need_version=yes 19791 ;; 19792 19793sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19794 version_type=linux 19795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19796 soname_spec='${libname}${release}${shared_ext}$major' 19797 shlibpath_var=LD_LIBRARY_PATH 19798 case $host_vendor in 19799 sni) 19800 shlibpath_overrides_runpath=no 19801 need_lib_prefix=no 19802 export_dynamic_flag_spec='${wl}-Blargedynsym' 19803 runpath_var=LD_RUN_PATH 19804 ;; 19805 siemens) 19806 need_lib_prefix=no 19807 ;; 19808 motorola) 19809 need_lib_prefix=no 19810 need_version=no 19811 shlibpath_overrides_runpath=no 19812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19813 ;; 19814 esac 19815 ;; 19816 19817sysv4*MP*) 19818 if test -d /usr/nec ;then 19819 version_type=linux 19820 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19821 soname_spec='$libname${shared_ext}.$major' 19822 shlibpath_var=LD_LIBRARY_PATH 19823 fi 19824 ;; 19825 19826uts4*) 19827 version_type=linux 19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19829 soname_spec='${libname}${release}${shared_ext}$major' 19830 shlibpath_var=LD_LIBRARY_PATH 19831 ;; 19832 19833*) 19834 dynamic_linker=no 19835 ;; 19836esac 19837echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19838echo "${ECHO_T}$dynamic_linker" >&6 19839test "$dynamic_linker" = no && can_build_shared=no 19840 19841echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19842echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19843hardcode_action_GCJ= 19844if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19845 test -n "$runpath_var_GCJ" || \ 19846 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19847 19848 # We can hardcode non-existant directories. 19849 if test "$hardcode_direct_GCJ" != no && 19850 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19851 # have to relink, otherwise we might link with an installed library 19852 # when we should be linking with a yet-to-be-installed one 19853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19854 test "$hardcode_minus_L_GCJ" != no; then 19855 # Linking always hardcodes the temporary library directory. 19856 hardcode_action_GCJ=relink 19857 else 19858 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19859 hardcode_action_GCJ=immediate 19860 fi 19861else 19862 # We cannot hardcode anything, or else we can only hardcode existing 19863 # directories. 19864 hardcode_action_GCJ=unsupported 19865fi 19866echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19867echo "${ECHO_T}$hardcode_action_GCJ" >&6 19868 19869if test "$hardcode_action_GCJ" = relink; then 19870 # Fast installation is not supported 19871 enable_fast_install=no 19872elif test "$shlibpath_overrides_runpath" = yes || 19873 test "$enable_shared" = no; then 19874 # Fast installation is not necessary 19875 enable_fast_install=needless 19876fi 19877 19878striplib= 19879old_striplib= 19880echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 19881echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 19882if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 19883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19884 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19885 echo "$as_me:$LINENO: result: yes" >&5 19886echo "${ECHO_T}yes" >&6 19887else 19888# FIXME - insert some real tests, host_os isn't really good enough 19889 case $host_os in 19890 darwin*) 19891 if test -n "$STRIP" ; then 19892 striplib="$STRIP -x" 19893 echo "$as_me:$LINENO: result: yes" >&5 19894echo "${ECHO_T}yes" >&6 19895 else 19896 echo "$as_me:$LINENO: result: no" >&5 19897echo "${ECHO_T}no" >&6 19898fi 19899 ;; 19900 *) 19901 echo "$as_me:$LINENO: result: no" >&5 19902echo "${ECHO_T}no" >&6 19903 ;; 19904 esac 19905fi 19906 19907if test "x$enable_dlopen" != xyes; then 19908 enable_dlopen=unknown 19909 enable_dlopen_self=unknown 19910 enable_dlopen_self_static=unknown 19911else 19912 lt_cv_dlopen=no 19913 lt_cv_dlopen_libs= 19914 19915 case $host_os in 19916 beos*) 19917 lt_cv_dlopen="load_add_on" 19918 lt_cv_dlopen_libs= 19919 lt_cv_dlopen_self=yes 19920 ;; 19921 19922 mingw* | pw32*) 19923 lt_cv_dlopen="LoadLibrary" 19924 lt_cv_dlopen_libs= 19925 ;; 19926 19927 cygwin*) 19928 lt_cv_dlopen="dlopen" 19929 lt_cv_dlopen_libs= 19930 ;; 19931 19932 darwin*) 19933 # if libdl is installed we need to link against it 19934 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19935echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 19936if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19937 echo $ECHO_N "(cached) $ECHO_C" >&6 19938else 19939 ac_check_lib_save_LIBS=$LIBS 19940LIBS="-ldl $LIBS" 19941cat >conftest.$ac_ext <<_ACEOF 19942/* confdefs.h. */ 19943_ACEOF 19944cat confdefs.h >>conftest.$ac_ext 19945cat >>conftest.$ac_ext <<_ACEOF 19946/* end confdefs.h. */ 19947 19948/* Override any gcc2 internal prototype to avoid an error. */ 19949#ifdef __cplusplus 19950extern "C" 19951#endif 19952/* We use char because int might match the return type of a gcc2 19953 builtin and then its argument prototype would still apply. */ 19954char dlopen (); 19955int 19956main () 19957{ 19958dlopen (); 19959 ; 19960 return 0; 19961} 19962_ACEOF 19963rm -f conftest.$ac_objext conftest$ac_exeext 19964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19965 (eval $ac_link) 2>conftest.er1 19966 ac_status=$? 19967 grep -v '^ *+' conftest.er1 >conftest.err 19968 rm -f conftest.er1 19969 cat conftest.err >&5 19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19971 (exit $ac_status); } && 19972 { ac_try='test -z "$ac_c_werror_flag" 19973 || test ! -s conftest.err' 19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19975 (eval $ac_try) 2>&5 19976 ac_status=$? 19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19978 (exit $ac_status); }; } && 19979 { ac_try='test -s conftest$ac_exeext' 19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19981 (eval $ac_try) 2>&5 19982 ac_status=$? 19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19984 (exit $ac_status); }; }; then 19985 ac_cv_lib_dl_dlopen=yes 19986else 19987 echo "$as_me: failed program was:" >&5 19988sed 's/^/| /' conftest.$ac_ext >&5 19989 19990ac_cv_lib_dl_dlopen=no 19991fi 19992rm -f conftest.err conftest.$ac_objext \ 19993 conftest$ac_exeext conftest.$ac_ext 19994LIBS=$ac_check_lib_save_LIBS 19995fi 19996echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 19997echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 19998if test $ac_cv_lib_dl_dlopen = yes; then 19999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 20000else 20001 20002 lt_cv_dlopen="dyld" 20003 lt_cv_dlopen_libs= 20004 lt_cv_dlopen_self=yes 20005 20006fi 20007 20008 ;; 20009 20010 *) 20011 echo "$as_me:$LINENO: checking for shl_load" >&5 20012echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 20013if test "${ac_cv_func_shl_load+set}" = set; then 20014 echo $ECHO_N "(cached) $ECHO_C" >&6 20015else 20016 cat >conftest.$ac_ext <<_ACEOF 20017/* confdefs.h. */ 20018_ACEOF 20019cat confdefs.h >>conftest.$ac_ext 20020cat >>conftest.$ac_ext <<_ACEOF 20021/* end confdefs.h. */ 20022/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 20023 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20024#define shl_load innocuous_shl_load 20025 20026/* System header to define __stub macros and hopefully few prototypes, 20027 which can conflict with char shl_load (); below. 20028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20029 <limits.h> exists even on freestanding compilers. */ 20030 20031#ifdef __STDC__ 20032# include <limits.h> 20033#else 20034# include <assert.h> 20035#endif 20036 20037#undef shl_load 20038 20039/* Override any gcc2 internal prototype to avoid an error. */ 20040#ifdef __cplusplus 20041extern "C" 20042{ 20043#endif 20044/* We use char because int might match the return type of a gcc2 20045 builtin and then its argument prototype would still apply. */ 20046char shl_load (); 20047/* The GNU C library defines this for functions which it implements 20048 to always fail with ENOSYS. Some functions are actually named 20049 something starting with __ and the normal name is an alias. */ 20050#if defined (__stub_shl_load) || defined (__stub___shl_load) 20051choke me 20052#else 20053char (*f) () = shl_load; 20054#endif 20055#ifdef __cplusplus 20056} 20057#endif 20058 20059int 20060main () 20061{ 20062return f != shl_load; 20063 ; 20064 return 0; 20065} 20066_ACEOF 20067rm -f conftest.$ac_objext conftest$ac_exeext 20068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20069 (eval $ac_link) 2>conftest.er1 20070 ac_status=$? 20071 grep -v '^ *+' conftest.er1 >conftest.err 20072 rm -f conftest.er1 20073 cat conftest.err >&5 20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20075 (exit $ac_status); } && 20076 { ac_try='test -z "$ac_c_werror_flag" 20077 || test ! -s conftest.err' 20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20079 (eval $ac_try) 2>&5 20080 ac_status=$? 20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20082 (exit $ac_status); }; } && 20083 { ac_try='test -s conftest$ac_exeext' 20084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20085 (eval $ac_try) 2>&5 20086 ac_status=$? 20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20088 (exit $ac_status); }; }; then 20089 ac_cv_func_shl_load=yes 20090else 20091 echo "$as_me: failed program was:" >&5 20092sed 's/^/| /' conftest.$ac_ext >&5 20093 20094ac_cv_func_shl_load=no 20095fi 20096rm -f conftest.err conftest.$ac_objext \ 20097 conftest$ac_exeext conftest.$ac_ext 20098fi 20099echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 20100echo "${ECHO_T}$ac_cv_func_shl_load" >&6 20101if test $ac_cv_func_shl_load = yes; then 20102 lt_cv_dlopen="shl_load" 20103else 20104 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 20105echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 20106if test "${ac_cv_lib_dld_shl_load+set}" = set; then 20107 echo $ECHO_N "(cached) $ECHO_C" >&6 20108else 20109 ac_check_lib_save_LIBS=$LIBS 20110LIBS="-ldld $LIBS" 20111cat >conftest.$ac_ext <<_ACEOF 20112/* confdefs.h. */ 20113_ACEOF 20114cat confdefs.h >>conftest.$ac_ext 20115cat >>conftest.$ac_ext <<_ACEOF 20116/* end confdefs.h. */ 20117 20118/* Override any gcc2 internal prototype to avoid an error. */ 20119#ifdef __cplusplus 20120extern "C" 20121#endif 20122/* We use char because int might match the return type of a gcc2 20123 builtin and then its argument prototype would still apply. */ 20124char shl_load (); 20125int 20126main () 20127{ 20128shl_load (); 20129 ; 20130 return 0; 20131} 20132_ACEOF 20133rm -f conftest.$ac_objext conftest$ac_exeext 20134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20135 (eval $ac_link) 2>conftest.er1 20136 ac_status=$? 20137 grep -v '^ *+' conftest.er1 >conftest.err 20138 rm -f conftest.er1 20139 cat conftest.err >&5 20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20141 (exit $ac_status); } && 20142 { ac_try='test -z "$ac_c_werror_flag" 20143 || test ! -s conftest.err' 20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20145 (eval $ac_try) 2>&5 20146 ac_status=$? 20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20148 (exit $ac_status); }; } && 20149 { ac_try='test -s conftest$ac_exeext' 20150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20151 (eval $ac_try) 2>&5 20152 ac_status=$? 20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20154 (exit $ac_status); }; }; then 20155 ac_cv_lib_dld_shl_load=yes 20156else 20157 echo "$as_me: failed program was:" >&5 20158sed 's/^/| /' conftest.$ac_ext >&5 20159 20160ac_cv_lib_dld_shl_load=no 20161fi 20162rm -f conftest.err conftest.$ac_objext \ 20163 conftest$ac_exeext conftest.$ac_ext 20164LIBS=$ac_check_lib_save_LIBS 20165fi 20166echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 20167echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 20168if test $ac_cv_lib_dld_shl_load = yes; then 20169 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 20170else 20171 echo "$as_me:$LINENO: checking for dlopen" >&5 20172echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 20173if test "${ac_cv_func_dlopen+set}" = set; then 20174 echo $ECHO_N "(cached) $ECHO_C" >&6 20175else 20176 cat >conftest.$ac_ext <<_ACEOF 20177/* confdefs.h. */ 20178_ACEOF 20179cat confdefs.h >>conftest.$ac_ext 20180cat >>conftest.$ac_ext <<_ACEOF 20181/* end confdefs.h. */ 20182/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 20183 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20184#define dlopen innocuous_dlopen 20185 20186/* System header to define __stub macros and hopefully few prototypes, 20187 which can conflict with char dlopen (); below. 20188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20189 <limits.h> exists even on freestanding compilers. */ 20190 20191#ifdef __STDC__ 20192# include <limits.h> 20193#else 20194# include <assert.h> 20195#endif 20196 20197#undef dlopen 20198 20199/* Override any gcc2 internal prototype to avoid an error. */ 20200#ifdef __cplusplus 20201extern "C" 20202{ 20203#endif 20204/* We use char because int might match the return type of a gcc2 20205 builtin and then its argument prototype would still apply. */ 20206char dlopen (); 20207/* The GNU C library defines this for functions which it implements 20208 to always fail with ENOSYS. Some functions are actually named 20209 something starting with __ and the normal name is an alias. */ 20210#if defined (__stub_dlopen) || defined (__stub___dlopen) 20211choke me 20212#else 20213char (*f) () = dlopen; 20214#endif 20215#ifdef __cplusplus 20216} 20217#endif 20218 20219int 20220main () 20221{ 20222return f != dlopen; 20223 ; 20224 return 0; 20225} 20226_ACEOF 20227rm -f conftest.$ac_objext conftest$ac_exeext 20228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20229 (eval $ac_link) 2>conftest.er1 20230 ac_status=$? 20231 grep -v '^ *+' conftest.er1 >conftest.err 20232 rm -f conftest.er1 20233 cat conftest.err >&5 20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20235 (exit $ac_status); } && 20236 { ac_try='test -z "$ac_c_werror_flag" 20237 || test ! -s conftest.err' 20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20239 (eval $ac_try) 2>&5 20240 ac_status=$? 20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20242 (exit $ac_status); }; } && 20243 { ac_try='test -s conftest$ac_exeext' 20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20245 (eval $ac_try) 2>&5 20246 ac_status=$? 20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20248 (exit $ac_status); }; }; then 20249 ac_cv_func_dlopen=yes 20250else 20251 echo "$as_me: failed program was:" >&5 20252sed 's/^/| /' conftest.$ac_ext >&5 20253 20254ac_cv_func_dlopen=no 20255fi 20256rm -f conftest.err conftest.$ac_objext \ 20257 conftest$ac_exeext conftest.$ac_ext 20258fi 20259echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 20260echo "${ECHO_T}$ac_cv_func_dlopen" >&6 20261if test $ac_cv_func_dlopen = yes; then 20262 lt_cv_dlopen="dlopen" 20263else 20264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20265echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 20266if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20267 echo $ECHO_N "(cached) $ECHO_C" >&6 20268else 20269 ac_check_lib_save_LIBS=$LIBS 20270LIBS="-ldl $LIBS" 20271cat >conftest.$ac_ext <<_ACEOF 20272/* confdefs.h. */ 20273_ACEOF 20274cat confdefs.h >>conftest.$ac_ext 20275cat >>conftest.$ac_ext <<_ACEOF 20276/* end confdefs.h. */ 20277 20278/* Override any gcc2 internal prototype to avoid an error. */ 20279#ifdef __cplusplus 20280extern "C" 20281#endif 20282/* We use char because int might match the return type of a gcc2 20283 builtin and then its argument prototype would still apply. */ 20284char dlopen (); 20285int 20286main () 20287{ 20288dlopen (); 20289 ; 20290 return 0; 20291} 20292_ACEOF 20293rm -f conftest.$ac_objext conftest$ac_exeext 20294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20295 (eval $ac_link) 2>conftest.er1 20296 ac_status=$? 20297 grep -v '^ *+' conftest.er1 >conftest.err 20298 rm -f conftest.er1 20299 cat conftest.err >&5 20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20301 (exit $ac_status); } && 20302 { ac_try='test -z "$ac_c_werror_flag" 20303 || test ! -s conftest.err' 20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20305 (eval $ac_try) 2>&5 20306 ac_status=$? 20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20308 (exit $ac_status); }; } && 20309 { ac_try='test -s conftest$ac_exeext' 20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20311 (eval $ac_try) 2>&5 20312 ac_status=$? 20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20314 (exit $ac_status); }; }; then 20315 ac_cv_lib_dl_dlopen=yes 20316else 20317 echo "$as_me: failed program was:" >&5 20318sed 's/^/| /' conftest.$ac_ext >&5 20319 20320ac_cv_lib_dl_dlopen=no 20321fi 20322rm -f conftest.err conftest.$ac_objext \ 20323 conftest$ac_exeext conftest.$ac_ext 20324LIBS=$ac_check_lib_save_LIBS 20325fi 20326echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20327echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20328if test $ac_cv_lib_dl_dlopen = yes; then 20329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 20330else 20331 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 20332echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 20333if test "${ac_cv_lib_svld_dlopen+set}" = set; then 20334 echo $ECHO_N "(cached) $ECHO_C" >&6 20335else 20336 ac_check_lib_save_LIBS=$LIBS 20337LIBS="-lsvld $LIBS" 20338cat >conftest.$ac_ext <<_ACEOF 20339/* confdefs.h. */ 20340_ACEOF 20341cat confdefs.h >>conftest.$ac_ext 20342cat >>conftest.$ac_ext <<_ACEOF 20343/* end confdefs.h. */ 20344 20345/* Override any gcc2 internal prototype to avoid an error. */ 20346#ifdef __cplusplus 20347extern "C" 20348#endif 20349/* We use char because int might match the return type of a gcc2 20350 builtin and then its argument prototype would still apply. */ 20351char dlopen (); 20352int 20353main () 20354{ 20355dlopen (); 20356 ; 20357 return 0; 20358} 20359_ACEOF 20360rm -f conftest.$ac_objext conftest$ac_exeext 20361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20362 (eval $ac_link) 2>conftest.er1 20363 ac_status=$? 20364 grep -v '^ *+' conftest.er1 >conftest.err 20365 rm -f conftest.er1 20366 cat conftest.err >&5 20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20368 (exit $ac_status); } && 20369 { ac_try='test -z "$ac_c_werror_flag" 20370 || test ! -s conftest.err' 20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20372 (eval $ac_try) 2>&5 20373 ac_status=$? 20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20375 (exit $ac_status); }; } && 20376 { ac_try='test -s conftest$ac_exeext' 20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20378 (eval $ac_try) 2>&5 20379 ac_status=$? 20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20381 (exit $ac_status); }; }; then 20382 ac_cv_lib_svld_dlopen=yes 20383else 20384 echo "$as_me: failed program was:" >&5 20385sed 's/^/| /' conftest.$ac_ext >&5 20386 20387ac_cv_lib_svld_dlopen=no 20388fi 20389rm -f conftest.err conftest.$ac_objext \ 20390 conftest$ac_exeext conftest.$ac_ext 20391LIBS=$ac_check_lib_save_LIBS 20392fi 20393echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 20394echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 20395if test $ac_cv_lib_svld_dlopen = yes; then 20396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 20397else 20398 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 20399echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 20400if test "${ac_cv_lib_dld_dld_link+set}" = set; then 20401 echo $ECHO_N "(cached) $ECHO_C" >&6 20402else 20403 ac_check_lib_save_LIBS=$LIBS 20404LIBS="-ldld $LIBS" 20405cat >conftest.$ac_ext <<_ACEOF 20406/* confdefs.h. */ 20407_ACEOF 20408cat confdefs.h >>conftest.$ac_ext 20409cat >>conftest.$ac_ext <<_ACEOF 20410/* end confdefs.h. */ 20411 20412/* Override any gcc2 internal prototype to avoid an error. */ 20413#ifdef __cplusplus 20414extern "C" 20415#endif 20416/* We use char because int might match the return type of a gcc2 20417 builtin and then its argument prototype would still apply. */ 20418char dld_link (); 20419int 20420main () 20421{ 20422dld_link (); 20423 ; 20424 return 0; 20425} 20426_ACEOF 20427rm -f conftest.$ac_objext conftest$ac_exeext 20428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20429 (eval $ac_link) 2>conftest.er1 20430 ac_status=$? 20431 grep -v '^ *+' conftest.er1 >conftest.err 20432 rm -f conftest.er1 20433 cat conftest.err >&5 20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20435 (exit $ac_status); } && 20436 { ac_try='test -z "$ac_c_werror_flag" 20437 || test ! -s conftest.err' 20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20439 (eval $ac_try) 2>&5 20440 ac_status=$? 20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20442 (exit $ac_status); }; } && 20443 { ac_try='test -s conftest$ac_exeext' 20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20445 (eval $ac_try) 2>&5 20446 ac_status=$? 20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20448 (exit $ac_status); }; }; then 20449 ac_cv_lib_dld_dld_link=yes 20450else 20451 echo "$as_me: failed program was:" >&5 20452sed 's/^/| /' conftest.$ac_ext >&5 20453 20454ac_cv_lib_dld_dld_link=no 20455fi 20456rm -f conftest.err conftest.$ac_objext \ 20457 conftest$ac_exeext conftest.$ac_ext 20458LIBS=$ac_check_lib_save_LIBS 20459fi 20460echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 20461echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 20462if test $ac_cv_lib_dld_dld_link = yes; then 20463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 20464fi 20465 20466 20467fi 20468 20469 20470fi 20471 20472 20473fi 20474 20475 20476fi 20477 20478 20479fi 20480 20481 ;; 20482 esac 20483 20484 if test "x$lt_cv_dlopen" != xno; then 20485 enable_dlopen=yes 20486 else 20487 enable_dlopen=no 20488 fi 20489 20490 case $lt_cv_dlopen in 20491 dlopen) 20492 save_CPPFLAGS="$CPPFLAGS" 20493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20494 20495 save_LDFLAGS="$LDFLAGS" 20496 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20497 20498 save_LIBS="$LIBS" 20499 LIBS="$lt_cv_dlopen_libs $LIBS" 20500 20501 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 20502echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 20503if test "${lt_cv_dlopen_self+set}" = set; then 20504 echo $ECHO_N "(cached) $ECHO_C" >&6 20505else 20506 if test "$cross_compiling" = yes; then : 20507 lt_cv_dlopen_self=cross 20508else 20509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20510 lt_status=$lt_dlunknown 20511 cat > conftest.$ac_ext <<EOF 20512#line __oline__ "configure" 20513#include "confdefs.h" 20514 20515#if HAVE_DLFCN_H 20516#include <dlfcn.h> 20517#endif 20518 20519#include <stdio.h> 20520 20521#ifdef RTLD_GLOBAL 20522# define LT_DLGLOBAL RTLD_GLOBAL 20523#else 20524# ifdef DL_GLOBAL 20525# define LT_DLGLOBAL DL_GLOBAL 20526# else 20527# define LT_DLGLOBAL 0 20528# endif 20529#endif 20530 20531/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20532 find out it does not work in some platform. */ 20533#ifndef LT_DLLAZY_OR_NOW 20534# ifdef RTLD_LAZY 20535# define LT_DLLAZY_OR_NOW RTLD_LAZY 20536# else 20537# ifdef DL_LAZY 20538# define LT_DLLAZY_OR_NOW DL_LAZY 20539# else 20540# ifdef RTLD_NOW 20541# define LT_DLLAZY_OR_NOW RTLD_NOW 20542# else 20543# ifdef DL_NOW 20544# define LT_DLLAZY_OR_NOW DL_NOW 20545# else 20546# define LT_DLLAZY_OR_NOW 0 20547# endif 20548# endif 20549# endif 20550# endif 20551#endif 20552 20553#ifdef __cplusplus 20554extern "C" void exit (int); 20555#endif 20556 20557void fnord() { int i=42;} 20558int main () 20559{ 20560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20561 int status = $lt_dlunknown; 20562 20563 if (self) 20564 { 20565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20567 /* dlclose (self); */ 20568 } 20569 20570 exit (status); 20571} 20572EOF 20573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20574 (eval $ac_link) 2>&5 20575 ac_status=$? 20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20578 (./conftest; exit; ) >&5 2>/dev/null 20579 lt_status=$? 20580 case x$lt_status in 20581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20583 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 20584 esac 20585 else : 20586 # compilation failed 20587 lt_cv_dlopen_self=no 20588 fi 20589fi 20590rm -fr conftest* 20591 20592 20593fi 20594echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 20595echo "${ECHO_T}$lt_cv_dlopen_self" >&6 20596 20597 if test "x$lt_cv_dlopen_self" = xyes; then 20598 LDFLAGS="$LDFLAGS $link_static_flag" 20599 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 20600echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 20601if test "${lt_cv_dlopen_self_static+set}" = set; then 20602 echo $ECHO_N "(cached) $ECHO_C" >&6 20603else 20604 if test "$cross_compiling" = yes; then : 20605 lt_cv_dlopen_self_static=cross 20606else 20607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20608 lt_status=$lt_dlunknown 20609 cat > conftest.$ac_ext <<EOF 20610#line __oline__ "configure" 20611#include "confdefs.h" 20612 20613#if HAVE_DLFCN_H 20614#include <dlfcn.h> 20615#endif 20616 20617#include <stdio.h> 20618 20619#ifdef RTLD_GLOBAL 20620# define LT_DLGLOBAL RTLD_GLOBAL 20621#else 20622# ifdef DL_GLOBAL 20623# define LT_DLGLOBAL DL_GLOBAL 20624# else 20625# define LT_DLGLOBAL 0 20626# endif 20627#endif 20628 20629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20630 find out it does not work in some platform. */ 20631#ifndef LT_DLLAZY_OR_NOW 20632# ifdef RTLD_LAZY 20633# define LT_DLLAZY_OR_NOW RTLD_LAZY 20634# else 20635# ifdef DL_LAZY 20636# define LT_DLLAZY_OR_NOW DL_LAZY 20637# else 20638# ifdef RTLD_NOW 20639# define LT_DLLAZY_OR_NOW RTLD_NOW 20640# else 20641# ifdef DL_NOW 20642# define LT_DLLAZY_OR_NOW DL_NOW 20643# else 20644# define LT_DLLAZY_OR_NOW 0 20645# endif 20646# endif 20647# endif 20648# endif 20649#endif 20650 20651#ifdef __cplusplus 20652extern "C" void exit (int); 20653#endif 20654 20655void fnord() { int i=42;} 20656int main () 20657{ 20658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20659 int status = $lt_dlunknown; 20660 20661 if (self) 20662 { 20663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20665 /* dlclose (self); */ 20666 } 20667 20668 exit (status); 20669} 20670EOF 20671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20672 (eval $ac_link) 2>&5 20673 ac_status=$? 20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20676 (./conftest; exit; ) >&5 2>/dev/null 20677 lt_status=$? 20678 case x$lt_status in 20679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20681 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 20682 esac 20683 else : 20684 # compilation failed 20685 lt_cv_dlopen_self_static=no 20686 fi 20687fi 20688rm -fr conftest* 20689 20690 20691fi 20692echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 20693echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 20694 fi 20695 20696 CPPFLAGS="$save_CPPFLAGS" 20697 LDFLAGS="$save_LDFLAGS" 20698 LIBS="$save_LIBS" 20699 ;; 20700 esac 20701 20702 case $lt_cv_dlopen_self in 20703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20704 *) enable_dlopen_self=unknown ;; 20705 esac 20706 20707 case $lt_cv_dlopen_self_static in 20708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20709 *) enable_dlopen_self_static=unknown ;; 20710 esac 20711fi 20712 20713 20714# The else clause should only fire when bootstrapping the 20715# libtool distribution, otherwise you forgot to ship ltmain.sh 20716# with your package, and you will get complaints that there are 20717# no rules to generate ltmain.sh. 20718if test -f "$ltmain"; then 20719 # See if we are running on zsh, and set the options which allow our commands through 20720 # without removal of \ escapes. 20721 if test -n "${ZSH_VERSION+set}" ; then 20722 setopt NO_GLOB_SUBST 20723 fi 20724 # Now quote all the things that may contain metacharacters while being 20725 # careful not to overquote the AC_SUBSTed values. We take copies of the 20726 # variables and quote the copies for generation of the libtool script. 20727 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 20728 SED SHELL STRIP \ 20729 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20730 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20731 deplibs_check_method reload_flag reload_cmds need_locks \ 20732 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20733 lt_cv_sys_global_symbol_to_c_name_address \ 20734 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20735 old_postinstall_cmds old_postuninstall_cmds \ 20736 compiler_GCJ \ 20737 CC_GCJ \ 20738 LD_GCJ \ 20739 lt_prog_compiler_wl_GCJ \ 20740 lt_prog_compiler_pic_GCJ \ 20741 lt_prog_compiler_static_GCJ \ 20742 lt_prog_compiler_no_builtin_flag_GCJ \ 20743 export_dynamic_flag_spec_GCJ \ 20744 thread_safe_flag_spec_GCJ \ 20745 whole_archive_flag_spec_GCJ \ 20746 enable_shared_with_static_runtimes_GCJ \ 20747 old_archive_cmds_GCJ \ 20748 old_archive_from_new_cmds_GCJ \ 20749 predep_objects_GCJ \ 20750 postdep_objects_GCJ \ 20751 predeps_GCJ \ 20752 postdeps_GCJ \ 20753 compiler_lib_search_path_GCJ \ 20754 archive_cmds_GCJ \ 20755 archive_expsym_cmds_GCJ \ 20756 postinstall_cmds_GCJ \ 20757 postuninstall_cmds_GCJ \ 20758 old_archive_from_expsyms_cmds_GCJ \ 20759 allow_undefined_flag_GCJ \ 20760 no_undefined_flag_GCJ \ 20761 export_symbols_cmds_GCJ \ 20762 hardcode_libdir_flag_spec_GCJ \ 20763 hardcode_libdir_flag_spec_ld_GCJ \ 20764 hardcode_libdir_separator_GCJ \ 20765 hardcode_automatic_GCJ \ 20766 module_cmds_GCJ \ 20767 module_expsym_cmds_GCJ \ 20768 lt_cv_prog_compiler_c_o_GCJ \ 20769 exclude_expsyms_GCJ \ 20770 include_expsyms_GCJ; do 20771 20772 case $var in 20773 old_archive_cmds_GCJ | \ 20774 old_archive_from_new_cmds_GCJ | \ 20775 archive_cmds_GCJ | \ 20776 archive_expsym_cmds_GCJ | \ 20777 module_cmds_GCJ | \ 20778 module_expsym_cmds_GCJ | \ 20779 old_archive_from_expsyms_cmds_GCJ | \ 20780 export_symbols_cmds_GCJ | \ 20781 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20782 postinstall_cmds | postuninstall_cmds | \ 20783 old_postinstall_cmds | old_postuninstall_cmds | \ 20784 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20785 # Double-quote double-evaled strings. 20786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20787 ;; 20788 *) 20789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20790 ;; 20791 esac 20792 done 20793 20794 case $lt_echo in 20795 *'\$0 --fallback-echo"') 20796 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20797 ;; 20798 esac 20799 20800cfgfile="$ofile" 20801 20802 cat <<__EOF__ >> "$cfgfile" 20803# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20804 20805# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20806 20807# Shell to use when invoking shell scripts. 20808SHELL=$lt_SHELL 20809 20810# Whether or not to build shared libraries. 20811build_libtool_libs=$enable_shared 20812 20813# Whether or not to build static libraries. 20814build_old_libs=$enable_static 20815 20816# Whether or not to add -lc for building shared libraries. 20817build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20818 20819# Whether or not to disallow shared libs when runtime libs are static 20820allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20821 20822# Whether or not to optimize for fast installation. 20823fast_install=$enable_fast_install 20824 20825# The host system. 20826host_alias=$host_alias 20827host=$host 20828host_os=$host_os 20829 20830# The build system. 20831build_alias=$build_alias 20832build=$build 20833build_os=$build_os 20834 20835# An echo program that does not interpret backslashes. 20836echo=$lt_echo 20837 20838# The archiver. 20839AR=$lt_AR 20840AR_FLAGS=$lt_AR_FLAGS 20841 20842# A C compiler. 20843LTCC=$lt_LTCC 20844 20845# A language-specific compiler. 20846CC=$lt_compiler_GCJ 20847 20848# Is the compiler the GNU C compiler? 20849with_gcc=$GCC_GCJ 20850 20851# An ERE matcher. 20852EGREP=$lt_EGREP 20853 20854# The linker used to build libraries. 20855LD=$lt_LD_GCJ 20856 20857# Whether we need hard or soft links. 20858LN_S=$lt_LN_S 20859 20860# A BSD-compatible nm program. 20861NM=$lt_NM 20862 20863# A symbol stripping program 20864STRIP=$lt_STRIP 20865 20866# Used to examine libraries when file_magic_cmd begins "file" 20867MAGIC_CMD=$MAGIC_CMD 20868 20869# Used on cygwin: DLL creation program. 20870DLLTOOL="$DLLTOOL" 20871 20872# Used on cygwin: object dumper. 20873OBJDUMP="$OBJDUMP" 20874 20875# Used on cygwin: assembler. 20876AS="$AS" 20877 20878# The name of the directory that contains temporary libtool files. 20879objdir=$objdir 20880 20881# How to create reloadable object files. 20882reload_flag=$lt_reload_flag 20883reload_cmds=$lt_reload_cmds 20884 20885# How to pass a linker flag through the compiler. 20886wl=$lt_lt_prog_compiler_wl_GCJ 20887 20888# Object file suffix (normally "o"). 20889objext="$ac_objext" 20890 20891# Old archive suffix (normally "a"). 20892libext="$libext" 20893 20894# Shared library suffix (normally ".so"). 20895shrext_cmds='$shrext_cmds' 20896 20897# Executable file suffix (normally ""). 20898exeext="$exeext" 20899 20900# Additional compiler flags for building library objects. 20901pic_flag=$lt_lt_prog_compiler_pic_GCJ 20902pic_mode=$pic_mode 20903 20904# What is the maximum length of a command? 20905max_cmd_len=$lt_cv_sys_max_cmd_len 20906 20907# Does compiler simultaneously support -c and -o options? 20908compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20909 20910# Must we lock files when doing compilation? 20911need_locks=$lt_need_locks 20912 20913# Do we need the lib prefix for modules? 20914need_lib_prefix=$need_lib_prefix 20915 20916# Do we need a version for libraries? 20917need_version=$need_version 20918 20919# Whether dlopen is supported. 20920dlopen_support=$enable_dlopen 20921 20922# Whether dlopen of programs is supported. 20923dlopen_self=$enable_dlopen_self 20924 20925# Whether dlopen of statically linked programs is supported. 20926dlopen_self_static=$enable_dlopen_self_static 20927 20928# Compiler flag to prevent dynamic linking. 20929link_static_flag=$lt_lt_prog_compiler_static_GCJ 20930 20931# Compiler flag to turn off builtin functions. 20932no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20933 20934# Compiler flag to allow reflexive dlopens. 20935export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20936 20937# Compiler flag to generate shared objects directly from archives. 20938whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20939 20940# Compiler flag to generate thread-safe objects. 20941thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20942 20943# Library versioning type. 20944version_type=$version_type 20945 20946# Format of library name prefix. 20947libname_spec=$lt_libname_spec 20948 20949# List of archive names. First name is the real one, the rest are links. 20950# The last name is the one that the linker finds with -lNAME. 20951library_names_spec=$lt_library_names_spec 20952 20953# The coded name of the library, if different from the real name. 20954soname_spec=$lt_soname_spec 20955 20956# Commands used to build and install an old-style archive. 20957RANLIB=$lt_RANLIB 20958old_archive_cmds=$lt_old_archive_cmds_GCJ 20959old_postinstall_cmds=$lt_old_postinstall_cmds 20960old_postuninstall_cmds=$lt_old_postuninstall_cmds 20961 20962# Create an old-style archive from a shared archive. 20963old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20964 20965# Create a temporary old-style archive to link instead of a shared archive. 20966old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20967 20968# Commands used to build and install a shared archive. 20969archive_cmds=$lt_archive_cmds_GCJ 20970archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20971postinstall_cmds=$lt_postinstall_cmds 20972postuninstall_cmds=$lt_postuninstall_cmds 20973 20974# Commands used to build a loadable module (assumed same as above if empty) 20975module_cmds=$lt_module_cmds_GCJ 20976module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20977 20978# Commands to strip libraries. 20979old_striplib=$lt_old_striplib 20980striplib=$lt_striplib 20981 20982# Dependencies to place before the objects being linked to create a 20983# shared library. 20984predep_objects=$lt_predep_objects_GCJ 20985 20986# Dependencies to place after the objects being linked to create a 20987# shared library. 20988postdep_objects=$lt_postdep_objects_GCJ 20989 20990# Dependencies to place before the objects being linked to create a 20991# shared library. 20992predeps=$lt_predeps_GCJ 20993 20994# Dependencies to place after the objects being linked to create a 20995# shared library. 20996postdeps=$lt_postdeps_GCJ 20997 20998# The library search path used internally by the compiler when linking 20999# a shared library. 21000compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 21001 21002# Method to check whether dependent libraries are shared objects. 21003deplibs_check_method=$lt_deplibs_check_method 21004 21005# Command to use when deplibs_check_method == file_magic. 21006file_magic_cmd=$lt_file_magic_cmd 21007 21008# Flag that allows shared libraries with undefined symbols to be built. 21009allow_undefined_flag=$lt_allow_undefined_flag_GCJ 21010 21011# Flag that forces no undefined symbols. 21012no_undefined_flag=$lt_no_undefined_flag_GCJ 21013 21014# Commands used to finish a libtool library installation in a directory. 21015finish_cmds=$lt_finish_cmds 21016 21017# Same as above, but a single script fragment to be evaled but not shown. 21018finish_eval=$lt_finish_eval 21019 21020# Take the output of nm and produce a listing of raw symbols and C names. 21021global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21022 21023# Transform the output of nm in a proper C declaration 21024global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21025 21026# Transform the output of nm in a C name address pair 21027global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21028 21029# This is the shared library runtime path variable. 21030runpath_var=$runpath_var 21031 21032# This is the shared library path variable. 21033shlibpath_var=$shlibpath_var 21034 21035# Is shlibpath searched before the hard-coded library search path? 21036shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21037 21038# How to hardcode a shared library path into an executable. 21039hardcode_action=$hardcode_action_GCJ 21040 21041# Whether we should hardcode library paths into libraries. 21042hardcode_into_libs=$hardcode_into_libs 21043 21044# Flag to hardcode \$libdir into a binary during linking. 21045# This must work even if \$libdir does not exist. 21046hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 21047 21048# If ld is used when linking, flag to hardcode \$libdir into 21049# a binary during linking. This must work even if \$libdir does 21050# not exist. 21051hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 21052 21053# Whether we need a single -rpath flag with a separated argument. 21054hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 21055 21056# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21057# resulting binary. 21058hardcode_direct=$hardcode_direct_GCJ 21059 21060# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21061# resulting binary. 21062hardcode_minus_L=$hardcode_minus_L_GCJ 21063 21064# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21065# the resulting binary. 21066hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 21067 21068# Set to yes if building a shared library automatically hardcodes DIR into the library 21069# and all subsequent libraries and executables linked against it. 21070hardcode_automatic=$hardcode_automatic_GCJ 21071 21072# Variables whose values should be saved in libtool wrapper scripts and 21073# restored at relink time. 21074variables_saved_for_relink="$variables_saved_for_relink" 21075 21076# Whether libtool must link a program against all its dependency libraries. 21077link_all_deplibs=$link_all_deplibs_GCJ 21078 21079# Compile-time system search path for libraries 21080sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21081 21082# Run-time system search path for libraries 21083sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21084 21085# Fix the shell variable \$srcfile for the compiler. 21086fix_srcfile_path="$fix_srcfile_path_GCJ" 21087 21088# Set to yes if exported symbols are required. 21089always_export_symbols=$always_export_symbols_GCJ 21090 21091# The commands to list exported symbols. 21092export_symbols_cmds=$lt_export_symbols_cmds_GCJ 21093 21094# The commands to extract the exported symbol list from a shared archive. 21095extract_expsyms_cmds=$lt_extract_expsyms_cmds 21096 21097# Symbols that should not be listed in the preloaded symbols. 21098exclude_expsyms=$lt_exclude_expsyms_GCJ 21099 21100# Symbols that must always be exported. 21101include_expsyms=$lt_include_expsyms_GCJ 21102 21103# ### END LIBTOOL TAG CONFIG: $tagname 21104 21105__EOF__ 21106 21107 21108else 21109 # If there is no Makefile yet, we rely on a make rule to execute 21110 # `config.status --recheck' to rerun these tests and create the 21111 # libtool script then. 21112 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21113 if test -f "$ltmain_in"; then 21114 test -f Makefile && make "$ltmain" 21115 fi 21116fi 21117 21118 21119ac_ext=c 21120ac_cpp='$CPP $CPPFLAGS' 21121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21123ac_compiler_gnu=$ac_cv_c_compiler_gnu 21124 21125CC="$lt_save_CC" 21126 21127 else 21128 tagname="" 21129 fi 21130 ;; 21131 21132 RC) 21133 21134 21135 21136# Source file extension for RC test sources. 21137ac_ext=rc 21138 21139# Object file extension for compiled RC test sources. 21140objext=o 21141objext_RC=$objext 21142 21143# Code to be used in simple compile tests 21144lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 21145 21146# Code to be used in simple link tests 21147lt_simple_link_test_code="$lt_simple_compile_test_code" 21148 21149# ltmain only uses $CC for tagged configurations so make sure $CC is set. 21150 21151# If no C compiler was specified, use CC. 21152LTCC=${LTCC-"$CC"} 21153 21154# Allow CC to be a program name with arguments. 21155compiler=$CC 21156 21157 21158# save warnings/boilerplate of simple test code 21159ac_outfile=conftest.$ac_objext 21160printf "$lt_simple_compile_test_code" >conftest.$ac_ext 21161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 21162_lt_compiler_boilerplate=`cat conftest.err` 21163$rm conftest* 21164 21165ac_outfile=conftest.$ac_objext 21166printf "$lt_simple_link_test_code" >conftest.$ac_ext 21167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 21168_lt_linker_boilerplate=`cat conftest.err` 21169$rm conftest* 21170 21171 21172# Allow CC to be a program name with arguments. 21173lt_save_CC="$CC" 21174CC=${RC-"windres"} 21175compiler=$CC 21176compiler_RC=$CC 21177for cc_temp in $compiler""; do 21178 case $cc_temp in 21179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21181 \-*) ;; 21182 *) break;; 21183 esac 21184done 21185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 21186 21187lt_cv_prog_compiler_c_o_RC=yes 21188 21189# The else clause should only fire when bootstrapping the 21190# libtool distribution, otherwise you forgot to ship ltmain.sh 21191# with your package, and you will get complaints that there are 21192# no rules to generate ltmain.sh. 21193if test -f "$ltmain"; then 21194 # See if we are running on zsh, and set the options which allow our commands through 21195 # without removal of \ escapes. 21196 if test -n "${ZSH_VERSION+set}" ; then 21197 setopt NO_GLOB_SUBST 21198 fi 21199 # Now quote all the things that may contain metacharacters while being 21200 # careful not to overquote the AC_SUBSTed values. We take copies of the 21201 # variables and quote the copies for generation of the libtool script. 21202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 21203 SED SHELL STRIP \ 21204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 21205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 21206 deplibs_check_method reload_flag reload_cmds need_locks \ 21207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 21208 lt_cv_sys_global_symbol_to_c_name_address \ 21209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 21210 old_postinstall_cmds old_postuninstall_cmds \ 21211 compiler_RC \ 21212 CC_RC \ 21213 LD_RC \ 21214 lt_prog_compiler_wl_RC \ 21215 lt_prog_compiler_pic_RC \ 21216 lt_prog_compiler_static_RC \ 21217 lt_prog_compiler_no_builtin_flag_RC \ 21218 export_dynamic_flag_spec_RC \ 21219 thread_safe_flag_spec_RC \ 21220 whole_archive_flag_spec_RC \ 21221 enable_shared_with_static_runtimes_RC \ 21222 old_archive_cmds_RC \ 21223 old_archive_from_new_cmds_RC \ 21224 predep_objects_RC \ 21225 postdep_objects_RC \ 21226 predeps_RC \ 21227 postdeps_RC \ 21228 compiler_lib_search_path_RC \ 21229 archive_cmds_RC \ 21230 archive_expsym_cmds_RC \ 21231 postinstall_cmds_RC \ 21232 postuninstall_cmds_RC \ 21233 old_archive_from_expsyms_cmds_RC \ 21234 allow_undefined_flag_RC \ 21235 no_undefined_flag_RC \ 21236 export_symbols_cmds_RC \ 21237 hardcode_libdir_flag_spec_RC \ 21238 hardcode_libdir_flag_spec_ld_RC \ 21239 hardcode_libdir_separator_RC \ 21240 hardcode_automatic_RC \ 21241 module_cmds_RC \ 21242 module_expsym_cmds_RC \ 21243 lt_cv_prog_compiler_c_o_RC \ 21244 exclude_expsyms_RC \ 21245 include_expsyms_RC; do 21246 21247 case $var in 21248 old_archive_cmds_RC | \ 21249 old_archive_from_new_cmds_RC | \ 21250 archive_cmds_RC | \ 21251 archive_expsym_cmds_RC | \ 21252 module_cmds_RC | \ 21253 module_expsym_cmds_RC | \ 21254 old_archive_from_expsyms_cmds_RC | \ 21255 export_symbols_cmds_RC | \ 21256 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 21257 postinstall_cmds | postuninstall_cmds | \ 21258 old_postinstall_cmds | old_postuninstall_cmds | \ 21259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 21260 # Double-quote double-evaled strings. 21261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 21262 ;; 21263 *) 21264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 21265 ;; 21266 esac 21267 done 21268 21269 case $lt_echo in 21270 *'\$0 --fallback-echo"') 21271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 21272 ;; 21273 esac 21274 21275cfgfile="$ofile" 21276 21277 cat <<__EOF__ >> "$cfgfile" 21278# ### BEGIN LIBTOOL TAG CONFIG: $tagname 21279 21280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21281 21282# Shell to use when invoking shell scripts. 21283SHELL=$lt_SHELL 21284 21285# Whether or not to build shared libraries. 21286build_libtool_libs=$enable_shared 21287 21288# Whether or not to build static libraries. 21289build_old_libs=$enable_static 21290 21291# Whether or not to add -lc for building shared libraries. 21292build_libtool_need_lc=$archive_cmds_need_lc_RC 21293 21294# Whether or not to disallow shared libs when runtime libs are static 21295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 21296 21297# Whether or not to optimize for fast installation. 21298fast_install=$enable_fast_install 21299 21300# The host system. 21301host_alias=$host_alias 21302host=$host 21303host_os=$host_os 21304 21305# The build system. 21306build_alias=$build_alias 21307build=$build 21308build_os=$build_os 21309 21310# An echo program that does not interpret backslashes. 21311echo=$lt_echo 21312 21313# The archiver. 21314AR=$lt_AR 21315AR_FLAGS=$lt_AR_FLAGS 21316 21317# A C compiler. 21318LTCC=$lt_LTCC 21319 21320# A language-specific compiler. 21321CC=$lt_compiler_RC 21322 21323# Is the compiler the GNU C compiler? 21324with_gcc=$GCC_RC 21325 21326# An ERE matcher. 21327EGREP=$lt_EGREP 21328 21329# The linker used to build libraries. 21330LD=$lt_LD_RC 21331 21332# Whether we need hard or soft links. 21333LN_S=$lt_LN_S 21334 21335# A BSD-compatible nm program. 21336NM=$lt_NM 21337 21338# A symbol stripping program 21339STRIP=$lt_STRIP 21340 21341# Used to examine libraries when file_magic_cmd begins "file" 21342MAGIC_CMD=$MAGIC_CMD 21343 21344# Used on cygwin: DLL creation program. 21345DLLTOOL="$DLLTOOL" 21346 21347# Used on cygwin: object dumper. 21348OBJDUMP="$OBJDUMP" 21349 21350# Used on cygwin: assembler. 21351AS="$AS" 21352 21353# The name of the directory that contains temporary libtool files. 21354objdir=$objdir 21355 21356# How to create reloadable object files. 21357reload_flag=$lt_reload_flag 21358reload_cmds=$lt_reload_cmds 21359 21360# How to pass a linker flag through the compiler. 21361wl=$lt_lt_prog_compiler_wl_RC 21362 21363# Object file suffix (normally "o"). 21364objext="$ac_objext" 21365 21366# Old archive suffix (normally "a"). 21367libext="$libext" 21368 21369# Shared library suffix (normally ".so"). 21370shrext_cmds='$shrext_cmds' 21371 21372# Executable file suffix (normally ""). 21373exeext="$exeext" 21374 21375# Additional compiler flags for building library objects. 21376pic_flag=$lt_lt_prog_compiler_pic_RC 21377pic_mode=$pic_mode 21378 21379# What is the maximum length of a command? 21380max_cmd_len=$lt_cv_sys_max_cmd_len 21381 21382# Does compiler simultaneously support -c and -o options? 21383compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 21384 21385# Must we lock files when doing compilation? 21386need_locks=$lt_need_locks 21387 21388# Do we need the lib prefix for modules? 21389need_lib_prefix=$need_lib_prefix 21390 21391# Do we need a version for libraries? 21392need_version=$need_version 21393 21394# Whether dlopen is supported. 21395dlopen_support=$enable_dlopen 21396 21397# Whether dlopen of programs is supported. 21398dlopen_self=$enable_dlopen_self 21399 21400# Whether dlopen of statically linked programs is supported. 21401dlopen_self_static=$enable_dlopen_self_static 21402 21403# Compiler flag to prevent dynamic linking. 21404link_static_flag=$lt_lt_prog_compiler_static_RC 21405 21406# Compiler flag to turn off builtin functions. 21407no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 21408 21409# Compiler flag to allow reflexive dlopens. 21410export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 21411 21412# Compiler flag to generate shared objects directly from archives. 21413whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 21414 21415# Compiler flag to generate thread-safe objects. 21416thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 21417 21418# Library versioning type. 21419version_type=$version_type 21420 21421# Format of library name prefix. 21422libname_spec=$lt_libname_spec 21423 21424# List of archive names. First name is the real one, the rest are links. 21425# The last name is the one that the linker finds with -lNAME. 21426library_names_spec=$lt_library_names_spec 21427 21428# The coded name of the library, if different from the real name. 21429soname_spec=$lt_soname_spec 21430 21431# Commands used to build and install an old-style archive. 21432RANLIB=$lt_RANLIB 21433old_archive_cmds=$lt_old_archive_cmds_RC 21434old_postinstall_cmds=$lt_old_postinstall_cmds 21435old_postuninstall_cmds=$lt_old_postuninstall_cmds 21436 21437# Create an old-style archive from a shared archive. 21438old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 21439 21440# Create a temporary old-style archive to link instead of a shared archive. 21441old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 21442 21443# Commands used to build and install a shared archive. 21444archive_cmds=$lt_archive_cmds_RC 21445archive_expsym_cmds=$lt_archive_expsym_cmds_RC 21446postinstall_cmds=$lt_postinstall_cmds 21447postuninstall_cmds=$lt_postuninstall_cmds 21448 21449# Commands used to build a loadable module (assumed same as above if empty) 21450module_cmds=$lt_module_cmds_RC 21451module_expsym_cmds=$lt_module_expsym_cmds_RC 21452 21453# Commands to strip libraries. 21454old_striplib=$lt_old_striplib 21455striplib=$lt_striplib 21456 21457# Dependencies to place before the objects being linked to create a 21458# shared library. 21459predep_objects=$lt_predep_objects_RC 21460 21461# Dependencies to place after the objects being linked to create a 21462# shared library. 21463postdep_objects=$lt_postdep_objects_RC 21464 21465# Dependencies to place before the objects being linked to create a 21466# shared library. 21467predeps=$lt_predeps_RC 21468 21469# Dependencies to place after the objects being linked to create a 21470# shared library. 21471postdeps=$lt_postdeps_RC 21472 21473# The library search path used internally by the compiler when linking 21474# a shared library. 21475compiler_lib_search_path=$lt_compiler_lib_search_path_RC 21476 21477# Method to check whether dependent libraries are shared objects. 21478deplibs_check_method=$lt_deplibs_check_method 21479 21480# Command to use when deplibs_check_method == file_magic. 21481file_magic_cmd=$lt_file_magic_cmd 21482 21483# Flag that allows shared libraries with undefined symbols to be built. 21484allow_undefined_flag=$lt_allow_undefined_flag_RC 21485 21486# Flag that forces no undefined symbols. 21487no_undefined_flag=$lt_no_undefined_flag_RC 21488 21489# Commands used to finish a libtool library installation in a directory. 21490finish_cmds=$lt_finish_cmds 21491 21492# Same as above, but a single script fragment to be evaled but not shown. 21493finish_eval=$lt_finish_eval 21494 21495# Take the output of nm and produce a listing of raw symbols and C names. 21496global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21497 21498# Transform the output of nm in a proper C declaration 21499global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21500 21501# Transform the output of nm in a C name address pair 21502global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21503 21504# This is the shared library runtime path variable. 21505runpath_var=$runpath_var 21506 21507# This is the shared library path variable. 21508shlibpath_var=$shlibpath_var 21509 21510# Is shlibpath searched before the hard-coded library search path? 21511shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21512 21513# How to hardcode a shared library path into an executable. 21514hardcode_action=$hardcode_action_RC 21515 21516# Whether we should hardcode library paths into libraries. 21517hardcode_into_libs=$hardcode_into_libs 21518 21519# Flag to hardcode \$libdir into a binary during linking. 21520# This must work even if \$libdir does not exist. 21521hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 21522 21523# If ld is used when linking, flag to hardcode \$libdir into 21524# a binary during linking. This must work even if \$libdir does 21525# not exist. 21526hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 21527 21528# Whether we need a single -rpath flag with a separated argument. 21529hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 21530 21531# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21532# resulting binary. 21533hardcode_direct=$hardcode_direct_RC 21534 21535# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21536# resulting binary. 21537hardcode_minus_L=$hardcode_minus_L_RC 21538 21539# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21540# the resulting binary. 21541hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 21542 21543# Set to yes if building a shared library automatically hardcodes DIR into the library 21544# and all subsequent libraries and executables linked against it. 21545hardcode_automatic=$hardcode_automatic_RC 21546 21547# Variables whose values should be saved in libtool wrapper scripts and 21548# restored at relink time. 21549variables_saved_for_relink="$variables_saved_for_relink" 21550 21551# Whether libtool must link a program against all its dependency libraries. 21552link_all_deplibs=$link_all_deplibs_RC 21553 21554# Compile-time system search path for libraries 21555sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21556 21557# Run-time system search path for libraries 21558sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21559 21560# Fix the shell variable \$srcfile for the compiler. 21561fix_srcfile_path="$fix_srcfile_path_RC" 21562 21563# Set to yes if exported symbols are required. 21564always_export_symbols=$always_export_symbols_RC 21565 21566# The commands to list exported symbols. 21567export_symbols_cmds=$lt_export_symbols_cmds_RC 21568 21569# The commands to extract the exported symbol list from a shared archive. 21570extract_expsyms_cmds=$lt_extract_expsyms_cmds 21571 21572# Symbols that should not be listed in the preloaded symbols. 21573exclude_expsyms=$lt_exclude_expsyms_RC 21574 21575# Symbols that must always be exported. 21576include_expsyms=$lt_include_expsyms_RC 21577 21578# ### END LIBTOOL TAG CONFIG: $tagname 21579 21580__EOF__ 21581 21582 21583else 21584 # If there is no Makefile yet, we rely on a make rule to execute 21585 # `config.status --recheck' to rerun these tests and create the 21586 # libtool script then. 21587 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21588 if test -f "$ltmain_in"; then 21589 test -f Makefile && make "$ltmain" 21590 fi 21591fi 21592 21593 21594ac_ext=c 21595ac_cpp='$CPP $CPPFLAGS' 21596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21598ac_compiler_gnu=$ac_cv_c_compiler_gnu 21599 21600CC="$lt_save_CC" 21601 21602 ;; 21603 21604 *) 21605 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 21606echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 21607 { (exit 1); exit 1; }; } 21608 ;; 21609 esac 21610 21611 # Append the new tag name to the list of available tags. 21612 if test -n "$tagname" ; then 21613 available_tags="$available_tags $tagname" 21614 fi 21615 fi 21616 done 21617 IFS="$lt_save_ifs" 21618 21619 # Now substitute the updated list of available tags. 21620 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 21621 mv "${ofile}T" "$ofile" 21622 chmod +x "$ofile" 21623 else 21624 rm -f "${ofile}T" 21625 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 21626echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 21627 { (exit 1); exit 1; }; } 21628 fi 21629fi 21630 21631 21632 21633# This can be used to rebuild libtool when needed 21634LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 21635 21636# Always use our own libtool. 21637LIBTOOL='$(SHELL) $(top_builddir)/libtool' 21638 21639# Prevent multiple expansion 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661# Checks for libraries. 21662 21663# Check whether --with-dbflib or --without-dbflib was given. 21664if test "${with_dbflib+set}" = set; then 21665 withval="$with_dbflib" 21666 21667fi; 21668if test -r ${withval}/include/dbf.h ; then 21669 DBFLIB_LIBDIR=-L${withval}/lib 21670 DBFLIB_INCLUDEDIR=-I${withval}/include 21671else 21672 DBFLIB_LIBDIR=-L/usr 21673 DBFLIB_INCLUDEDIR=-I/usr/include 21674fi 21675 21676echo "$as_me:$LINENO: checking for dbf_Open in -ldbf" >&5 21677echo $ECHO_N "checking for dbf_Open in -ldbf... $ECHO_C" >&6 21678if test "${ac_cv_lib_dbf_dbf_Open+set}" = set; then 21679 echo $ECHO_N "(cached) $ECHO_C" >&6 21680else 21681 ac_check_lib_save_LIBS=$LIBS 21682LIBS="-ldbf "$DBFLIB_LIBDIR" $LIBS" 21683cat >conftest.$ac_ext <<_ACEOF 21684/* confdefs.h. */ 21685_ACEOF 21686cat confdefs.h >>conftest.$ac_ext 21687cat >>conftest.$ac_ext <<_ACEOF 21688/* end confdefs.h. */ 21689 21690/* Override any gcc2 internal prototype to avoid an error. */ 21691#ifdef __cplusplus 21692extern "C" 21693#endif 21694/* We use char because int might match the return type of a gcc2 21695 builtin and then its argument prototype would still apply. */ 21696char dbf_Open (); 21697int 21698main () 21699{ 21700dbf_Open (); 21701 ; 21702 return 0; 21703} 21704_ACEOF 21705rm -f conftest.$ac_objext conftest$ac_exeext 21706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21707 (eval $ac_link) 2>conftest.er1 21708 ac_status=$? 21709 grep -v '^ *+' conftest.er1 >conftest.err 21710 rm -f conftest.er1 21711 cat conftest.err >&5 21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21713 (exit $ac_status); } && 21714 { ac_try='test -z "$ac_c_werror_flag" 21715 || test ! -s conftest.err' 21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21717 (eval $ac_try) 2>&5 21718 ac_status=$? 21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21720 (exit $ac_status); }; } && 21721 { ac_try='test -s conftest$ac_exeext' 21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21723 (eval $ac_try) 2>&5 21724 ac_status=$? 21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21726 (exit $ac_status); }; }; then 21727 ac_cv_lib_dbf_dbf_Open=yes 21728else 21729 echo "$as_me: failed program was:" >&5 21730sed 's/^/| /' conftest.$ac_ext >&5 21731 21732ac_cv_lib_dbf_dbf_Open=no 21733fi 21734rm -f conftest.err conftest.$ac_objext \ 21735 conftest$ac_exeext conftest.$ac_ext 21736LIBS=$ac_check_lib_save_LIBS 21737fi 21738echo "$as_me:$LINENO: result: $ac_cv_lib_dbf_dbf_Open" >&5 21739echo "${ECHO_T}$ac_cv_lib_dbf_dbf_Open" >&6 21740if test $ac_cv_lib_dbf_dbf_Open = yes; then 21741 DBFLIB_LIBDIR="$DBFLIB_LIBDIR" 21742else 21743 { { echo "$as_me:$LINENO: error: libdbf not found. You will need at least libdbf 0.3.0" >&5 21744echo "$as_me: error: libdbf not found. You will need at least libdbf 0.3.0" >&2;} 21745 { (exit 1); exit 1; }; } 21746fi 21747 21748 21749DBFLIB_LIBS=-ldbf 21750 21751 21752# Checks for header files. 21753echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21754echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 21755if test "${ac_cv_header_stdc+set}" = set; then 21756 echo $ECHO_N "(cached) $ECHO_C" >&6 21757else 21758 cat >conftest.$ac_ext <<_ACEOF 21759/* confdefs.h. */ 21760_ACEOF 21761cat confdefs.h >>conftest.$ac_ext 21762cat >>conftest.$ac_ext <<_ACEOF 21763/* end confdefs.h. */ 21764#include <stdlib.h> 21765#include <stdarg.h> 21766#include <string.h> 21767#include <float.h> 21768 21769int 21770main () 21771{ 21772 21773 ; 21774 return 0; 21775} 21776_ACEOF 21777rm -f conftest.$ac_objext 21778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21779 (eval $ac_compile) 2>conftest.er1 21780 ac_status=$? 21781 grep -v '^ *+' conftest.er1 >conftest.err 21782 rm -f conftest.er1 21783 cat conftest.err >&5 21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21785 (exit $ac_status); } && 21786 { ac_try='test -z "$ac_c_werror_flag" 21787 || test ! -s conftest.err' 21788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21789 (eval $ac_try) 2>&5 21790 ac_status=$? 21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21792 (exit $ac_status); }; } && 21793 { ac_try='test -s conftest.$ac_objext' 21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21795 (eval $ac_try) 2>&5 21796 ac_status=$? 21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21798 (exit $ac_status); }; }; then 21799 ac_cv_header_stdc=yes 21800else 21801 echo "$as_me: failed program was:" >&5 21802sed 's/^/| /' conftest.$ac_ext >&5 21803 21804ac_cv_header_stdc=no 21805fi 21806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21807 21808if test $ac_cv_header_stdc = yes; then 21809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21810 cat >conftest.$ac_ext <<_ACEOF 21811/* confdefs.h. */ 21812_ACEOF 21813cat confdefs.h >>conftest.$ac_ext 21814cat >>conftest.$ac_ext <<_ACEOF 21815/* end confdefs.h. */ 21816#include <string.h> 21817 21818_ACEOF 21819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21820 $EGREP "memchr" >/dev/null 2>&1; then 21821 : 21822else 21823 ac_cv_header_stdc=no 21824fi 21825rm -f conftest* 21826 21827fi 21828 21829if test $ac_cv_header_stdc = yes; then 21830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21831 cat >conftest.$ac_ext <<_ACEOF 21832/* confdefs.h. */ 21833_ACEOF 21834cat confdefs.h >>conftest.$ac_ext 21835cat >>conftest.$ac_ext <<_ACEOF 21836/* end confdefs.h. */ 21837#include <stdlib.h> 21838 21839_ACEOF 21840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21841 $EGREP "free" >/dev/null 2>&1; then 21842 : 21843else 21844 ac_cv_header_stdc=no 21845fi 21846rm -f conftest* 21847 21848fi 21849 21850if test $ac_cv_header_stdc = yes; then 21851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21852 if test "$cross_compiling" = yes; then 21853 : 21854else 21855 cat >conftest.$ac_ext <<_ACEOF 21856/* confdefs.h. */ 21857_ACEOF 21858cat confdefs.h >>conftest.$ac_ext 21859cat >>conftest.$ac_ext <<_ACEOF 21860/* end confdefs.h. */ 21861#include <ctype.h> 21862#if ((' ' & 0x0FF) == 0x020) 21863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21865#else 21866# define ISLOWER(c) \ 21867 (('a' <= (c) && (c) <= 'i') \ 21868 || ('j' <= (c) && (c) <= 'r') \ 21869 || ('s' <= (c) && (c) <= 'z')) 21870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21871#endif 21872 21873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21874int 21875main () 21876{ 21877 int i; 21878 for (i = 0; i < 256; i++) 21879 if (XOR (islower (i), ISLOWER (i)) 21880 || toupper (i) != TOUPPER (i)) 21881 exit(2); 21882 exit (0); 21883} 21884_ACEOF 21885rm -f conftest$ac_exeext 21886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21887 (eval $ac_link) 2>&5 21888 ac_status=$? 21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21892 (eval $ac_try) 2>&5 21893 ac_status=$? 21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21895 (exit $ac_status); }; }; then 21896 : 21897else 21898 echo "$as_me: program exited with status $ac_status" >&5 21899echo "$as_me: failed program was:" >&5 21900sed 's/^/| /' conftest.$ac_ext >&5 21901 21902( exit $ac_status ) 21903ac_cv_header_stdc=no 21904fi 21905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21906fi 21907fi 21908fi 21909echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21910echo "${ECHO_T}$ac_cv_header_stdc" >&6 21911if test $ac_cv_header_stdc = yes; then 21912 21913cat >>confdefs.h <<\_ACEOF 21914@%:@define STDC_HEADERS 1 21915_ACEOF 21916 21917fi 21918 21919 21920 21921 21922 21923 21924for ac_header in fcntl.h limits.h stdlib.h string.h unistd.h 21925do 21926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21927if eval "test \"\${$as_ac_Header+set}\" = set"; then 21928 echo "$as_me:$LINENO: checking for $ac_header" >&5 21929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21930if eval "test \"\${$as_ac_Header+set}\" = set"; then 21931 echo $ECHO_N "(cached) $ECHO_C" >&6 21932fi 21933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21935else 21936 # Is the header compilable? 21937echo "$as_me:$LINENO: checking $ac_header usability" >&5 21938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21939cat >conftest.$ac_ext <<_ACEOF 21940/* confdefs.h. */ 21941_ACEOF 21942cat confdefs.h >>conftest.$ac_ext 21943cat >>conftest.$ac_ext <<_ACEOF 21944/* end confdefs.h. */ 21945$ac_includes_default 21946@%:@include <$ac_header> 21947_ACEOF 21948rm -f conftest.$ac_objext 21949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21950 (eval $ac_compile) 2>conftest.er1 21951 ac_status=$? 21952 grep -v '^ *+' conftest.er1 >conftest.err 21953 rm -f conftest.er1 21954 cat conftest.err >&5 21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21956 (exit $ac_status); } && 21957 { ac_try='test -z "$ac_c_werror_flag" 21958 || test ! -s conftest.err' 21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21960 (eval $ac_try) 2>&5 21961 ac_status=$? 21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21963 (exit $ac_status); }; } && 21964 { ac_try='test -s conftest.$ac_objext' 21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21966 (eval $ac_try) 2>&5 21967 ac_status=$? 21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21969 (exit $ac_status); }; }; then 21970 ac_header_compiler=yes 21971else 21972 echo "$as_me: failed program was:" >&5 21973sed 's/^/| /' conftest.$ac_ext >&5 21974 21975ac_header_compiler=no 21976fi 21977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21978echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21979echo "${ECHO_T}$ac_header_compiler" >&6 21980 21981# Is the header present? 21982echo "$as_me:$LINENO: checking $ac_header presence" >&5 21983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21984cat >conftest.$ac_ext <<_ACEOF 21985/* confdefs.h. */ 21986_ACEOF 21987cat confdefs.h >>conftest.$ac_ext 21988cat >>conftest.$ac_ext <<_ACEOF 21989/* end confdefs.h. */ 21990@%:@include <$ac_header> 21991_ACEOF 21992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21994 ac_status=$? 21995 grep -v '^ *+' conftest.er1 >conftest.err 21996 rm -f conftest.er1 21997 cat conftest.err >&5 21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21999 (exit $ac_status); } >/dev/null; then 22000 if test -s conftest.err; then 22001 ac_cpp_err=$ac_c_preproc_warn_flag 22002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22003 else 22004 ac_cpp_err= 22005 fi 22006else 22007 ac_cpp_err=yes 22008fi 22009if test -z "$ac_cpp_err"; then 22010 ac_header_preproc=yes 22011else 22012 echo "$as_me: failed program was:" >&5 22013sed 's/^/| /' conftest.$ac_ext >&5 22014 22015 ac_header_preproc=no 22016fi 22017rm -f conftest.err conftest.$ac_ext 22018echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22019echo "${ECHO_T}$ac_header_preproc" >&6 22020 22021# So? What about this header? 22022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22023 yes:no: ) 22024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22028 ac_header_preproc=yes 22029 ;; 22030 no:yes:* ) 22031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22038echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22043 ( 22044 cat <<\_ASBOX 22045@%:@@%:@ ------------------------------------ @%:@@%:@ 22046@%:@@%:@ Report this to http://dbf.berlios.de @%:@@%:@ 22047@%:@@%:@ ------------------------------------ @%:@@%:@ 22048_ASBOX 22049 ) | 22050 sed "s/^/$as_me: WARNING: /" >&2 22051 ;; 22052esac 22053echo "$as_me:$LINENO: checking for $ac_header" >&5 22054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22055if eval "test \"\${$as_ac_Header+set}\" = set"; then 22056 echo $ECHO_N "(cached) $ECHO_C" >&6 22057else 22058 eval "$as_ac_Header=\$ac_header_preproc" 22059fi 22060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22062 22063fi 22064if test `eval echo '${'$as_ac_Header'}'` = yes; then 22065 cat >>confdefs.h <<_ACEOF 22066@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22067_ACEOF 22068 22069fi 22070 22071done 22072 22073 22074# Checks for typedefs, structures, and compiler characteristics. 22075echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 22076echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 22077if test "${ac_cv_c_const+set}" = set; then 22078 echo $ECHO_N "(cached) $ECHO_C" >&6 22079else 22080 cat >conftest.$ac_ext <<_ACEOF 22081/* confdefs.h. */ 22082_ACEOF 22083cat confdefs.h >>conftest.$ac_ext 22084cat >>conftest.$ac_ext <<_ACEOF 22085/* end confdefs.h. */ 22086 22087int 22088main () 22089{ 22090/* FIXME: Include the comments suggested by Paul. */ 22091#ifndef __cplusplus 22092 /* Ultrix mips cc rejects this. */ 22093 typedef int charset[2]; 22094 const charset x; 22095 /* SunOS 4.1.1 cc rejects this. */ 22096 char const *const *ccp; 22097 char **p; 22098 /* NEC SVR4.0.2 mips cc rejects this. */ 22099 struct point {int x, y;}; 22100 static struct point const zero = {0,0}; 22101 /* AIX XL C 1.02.0.0 rejects this. 22102 It does not let you subtract one const X* pointer from another in 22103 an arm of an if-expression whose if-part is not a constant 22104 expression */ 22105 const char *g = "string"; 22106 ccp = &g + (g ? g-g : 0); 22107 /* HPUX 7.0 cc rejects these. */ 22108 ++ccp; 22109 p = (char**) ccp; 22110 ccp = (char const *const *) p; 22111 { /* SCO 3.2v4 cc rejects this. */ 22112 char *t; 22113 char const *s = 0 ? (char *) 0 : (char const *) 0; 22114 22115 *t++ = 0; 22116 } 22117 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22118 int x[] = {25, 17}; 22119 const int *foo = &x[0]; 22120 ++foo; 22121 } 22122 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22123 typedef const int *iptr; 22124 iptr p = 0; 22125 ++p; 22126 } 22127 { /* AIX XL C 1.02.0.0 rejects this saying 22128 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22129 struct s { int j; const int *ap[3]; }; 22130 struct s *b; b->j = 5; 22131 } 22132 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22133 const int foo = 10; 22134 } 22135#endif 22136 22137 ; 22138 return 0; 22139} 22140_ACEOF 22141rm -f conftest.$ac_objext 22142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22143 (eval $ac_compile) 2>conftest.er1 22144 ac_status=$? 22145 grep -v '^ *+' conftest.er1 >conftest.err 22146 rm -f conftest.er1 22147 cat conftest.err >&5 22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22149 (exit $ac_status); } && 22150 { ac_try='test -z "$ac_c_werror_flag" 22151 || test ! -s conftest.err' 22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22153 (eval $ac_try) 2>&5 22154 ac_status=$? 22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22156 (exit $ac_status); }; } && 22157 { ac_try='test -s conftest.$ac_objext' 22158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22159 (eval $ac_try) 2>&5 22160 ac_status=$? 22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22162 (exit $ac_status); }; }; then 22163 ac_cv_c_const=yes 22164else 22165 echo "$as_me: failed program was:" >&5 22166sed 's/^/| /' conftest.$ac_ext >&5 22167 22168ac_cv_c_const=no 22169fi 22170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22171fi 22172echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 22173echo "${ECHO_T}$ac_cv_c_const" >&6 22174if test $ac_cv_c_const = no; then 22175 22176cat >>confdefs.h <<\_ACEOF 22177@%:@define const 22178_ACEOF 22179 22180fi 22181 22182echo "$as_me:$LINENO: checking for size_t" >&5 22183echo $ECHO_N "checking for size_t... $ECHO_C" >&6 22184if test "${ac_cv_type_size_t+set}" = set; then 22185 echo $ECHO_N "(cached) $ECHO_C" >&6 22186else 22187 cat >conftest.$ac_ext <<_ACEOF 22188/* confdefs.h. */ 22189_ACEOF 22190cat confdefs.h >>conftest.$ac_ext 22191cat >>conftest.$ac_ext <<_ACEOF 22192/* end confdefs.h. */ 22193$ac_includes_default 22194int 22195main () 22196{ 22197if ((size_t *) 0) 22198 return 0; 22199if (sizeof (size_t)) 22200 return 0; 22201 ; 22202 return 0; 22203} 22204_ACEOF 22205rm -f conftest.$ac_objext 22206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22207 (eval $ac_compile) 2>conftest.er1 22208 ac_status=$? 22209 grep -v '^ *+' conftest.er1 >conftest.err 22210 rm -f conftest.er1 22211 cat conftest.err >&5 22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22213 (exit $ac_status); } && 22214 { ac_try='test -z "$ac_c_werror_flag" 22215 || test ! -s conftest.err' 22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22217 (eval $ac_try) 2>&5 22218 ac_status=$? 22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22220 (exit $ac_status); }; } && 22221 { ac_try='test -s conftest.$ac_objext' 22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22223 (eval $ac_try) 2>&5 22224 ac_status=$? 22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22226 (exit $ac_status); }; }; then 22227 ac_cv_type_size_t=yes 22228else 22229 echo "$as_me: failed program was:" >&5 22230sed 's/^/| /' conftest.$ac_ext >&5 22231 22232ac_cv_type_size_t=no 22233fi 22234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22235fi 22236echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 22237echo "${ECHO_T}$ac_cv_type_size_t" >&6 22238if test $ac_cv_type_size_t = yes; then 22239 : 22240else 22241 22242cat >>confdefs.h <<_ACEOF 22243@%:@define size_t unsigned 22244_ACEOF 22245 22246fi 22247 22248 22249# Checks for library functions. 22250 22251for ac_header in stdlib.h 22252do 22253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 22254if eval "test \"\${$as_ac_Header+set}\" = set"; then 22255 echo "$as_me:$LINENO: checking for $ac_header" >&5 22256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22257if eval "test \"\${$as_ac_Header+set}\" = set"; then 22258 echo $ECHO_N "(cached) $ECHO_C" >&6 22259fi 22260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22262else 22263 # Is the header compilable? 22264echo "$as_me:$LINENO: checking $ac_header usability" >&5 22265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 22266cat >conftest.$ac_ext <<_ACEOF 22267/* confdefs.h. */ 22268_ACEOF 22269cat confdefs.h >>conftest.$ac_ext 22270cat >>conftest.$ac_ext <<_ACEOF 22271/* end confdefs.h. */ 22272$ac_includes_default 22273@%:@include <$ac_header> 22274_ACEOF 22275rm -f conftest.$ac_objext 22276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22277 (eval $ac_compile) 2>conftest.er1 22278 ac_status=$? 22279 grep -v '^ *+' conftest.er1 >conftest.err 22280 rm -f conftest.er1 22281 cat conftest.err >&5 22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22283 (exit $ac_status); } && 22284 { ac_try='test -z "$ac_c_werror_flag" 22285 || test ! -s conftest.err' 22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22287 (eval $ac_try) 2>&5 22288 ac_status=$? 22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22290 (exit $ac_status); }; } && 22291 { ac_try='test -s conftest.$ac_objext' 22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22293 (eval $ac_try) 2>&5 22294 ac_status=$? 22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22296 (exit $ac_status); }; }; then 22297 ac_header_compiler=yes 22298else 22299 echo "$as_me: failed program was:" >&5 22300sed 's/^/| /' conftest.$ac_ext >&5 22301 22302ac_header_compiler=no 22303fi 22304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22305echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22306echo "${ECHO_T}$ac_header_compiler" >&6 22307 22308# Is the header present? 22309echo "$as_me:$LINENO: checking $ac_header presence" >&5 22310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 22311cat >conftest.$ac_ext <<_ACEOF 22312/* confdefs.h. */ 22313_ACEOF 22314cat confdefs.h >>conftest.$ac_ext 22315cat >>conftest.$ac_ext <<_ACEOF 22316/* end confdefs.h. */ 22317@%:@include <$ac_header> 22318_ACEOF 22319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 22320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 22321 ac_status=$? 22322 grep -v '^ *+' conftest.er1 >conftest.err 22323 rm -f conftest.er1 22324 cat conftest.err >&5 22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22326 (exit $ac_status); } >/dev/null; then 22327 if test -s conftest.err; then 22328 ac_cpp_err=$ac_c_preproc_warn_flag 22329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 22330 else 22331 ac_cpp_err= 22332 fi 22333else 22334 ac_cpp_err=yes 22335fi 22336if test -z "$ac_cpp_err"; then 22337 ac_header_preproc=yes 22338else 22339 echo "$as_me: failed program was:" >&5 22340sed 's/^/| /' conftest.$ac_ext >&5 22341 22342 ac_header_preproc=no 22343fi 22344rm -f conftest.err conftest.$ac_ext 22345echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22346echo "${ECHO_T}$ac_header_preproc" >&6 22347 22348# So? What about this header? 22349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22350 yes:no: ) 22351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 22352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 22353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 22354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 22355 ac_header_preproc=yes 22356 ;; 22357 no:yes:* ) 22358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 22359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 22360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 22361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 22362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 22363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 22364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 22365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 22366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 22367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 22368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 22369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 22370 ( 22371 cat <<\_ASBOX 22372@%:@@%:@ ------------------------------------ @%:@@%:@ 22373@%:@@%:@ Report this to http://dbf.berlios.de @%:@@%:@ 22374@%:@@%:@ ------------------------------------ @%:@@%:@ 22375_ASBOX 22376 ) | 22377 sed "s/^/$as_me: WARNING: /" >&2 22378 ;; 22379esac 22380echo "$as_me:$LINENO: checking for $ac_header" >&5 22381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 22382if eval "test \"\${$as_ac_Header+set}\" = set"; then 22383 echo $ECHO_N "(cached) $ECHO_C" >&6 22384else 22385 eval "$as_ac_Header=\$ac_header_preproc" 22386fi 22387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 22388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 22389 22390fi 22391if test `eval echo '${'$as_ac_Header'}'` = yes; then 22392 cat >>confdefs.h <<_ACEOF 22393@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 22394_ACEOF 22395 22396fi 22397 22398done 22399 22400echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 22401echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 22402if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 22403 echo $ECHO_N "(cached) $ECHO_C" >&6 22404else 22405 if test "$cross_compiling" = yes; then 22406 ac_cv_func_malloc_0_nonnull=no 22407else 22408 cat >conftest.$ac_ext <<_ACEOF 22409/* confdefs.h. */ 22410_ACEOF 22411cat confdefs.h >>conftest.$ac_ext 22412cat >>conftest.$ac_ext <<_ACEOF 22413/* end confdefs.h. */ 22414#if STDC_HEADERS || HAVE_STDLIB_H 22415# include <stdlib.h> 22416#else 22417char *malloc (); 22418#endif 22419 22420int 22421main () 22422{ 22423exit (malloc (0) ? 0 : 1); 22424 ; 22425 return 0; 22426} 22427_ACEOF 22428rm -f conftest$ac_exeext 22429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22430 (eval $ac_link) 2>&5 22431 ac_status=$? 22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22435 (eval $ac_try) 2>&5 22436 ac_status=$? 22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22438 (exit $ac_status); }; }; then 22439 ac_cv_func_malloc_0_nonnull=yes 22440else 22441 echo "$as_me: program exited with status $ac_status" >&5 22442echo "$as_me: failed program was:" >&5 22443sed 's/^/| /' conftest.$ac_ext >&5 22444 22445( exit $ac_status ) 22446ac_cv_func_malloc_0_nonnull=no 22447fi 22448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22449fi 22450fi 22451echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 22452echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 22453if test $ac_cv_func_malloc_0_nonnull = yes; then 22454 22455cat >>confdefs.h <<\_ACEOF 22456@%:@define HAVE_MALLOC 1 22457_ACEOF 22458 22459else 22460 cat >>confdefs.h <<\_ACEOF 22461@%:@define HAVE_MALLOC 0 22462_ACEOF 22463 22464 case $LIB@&t@OBJS in 22465 "malloc.$ac_objext" | \ 22466 *" malloc.$ac_objext" | \ 22467 "malloc.$ac_objext "* | \ 22468 *" malloc.$ac_objext "* ) ;; 22469 *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" ;; 22470esac 22471 22472 22473cat >>confdefs.h <<\_ACEOF 22474@%:@define malloc rpl_malloc 22475_ACEOF 22476 22477fi 22478 22479 22480 22481 22482# Extract the first word of "docbook-to-man", so it can be a program name with args. 22483set dummy docbook-to-man; ac_word=$2 22484echo "$as_me:$LINENO: checking for $ac_word" >&5 22485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22486if test "${ac_cv_prog_DOC_TO_MAN+set}" = set; then 22487 echo $ECHO_N "(cached) $ECHO_C" >&6 22488else 22489 if test -n "$DOC_TO_MAN"; then 22490 ac_cv_prog_DOC_TO_MAN="$DOC_TO_MAN" # Let the user override the test. 22491else 22492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22493for as_dir in $PATH 22494do 22495 IFS=$as_save_IFS 22496 test -z "$as_dir" && as_dir=. 22497 for ac_exec_ext in '' $ac_executable_extensions; do 22498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22499 ac_cv_prog_DOC_TO_MAN="docbook-to-man" 22500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22501 break 2 22502 fi 22503done 22504done 22505 22506fi 22507fi 22508DOC_TO_MAN=$ac_cv_prog_DOC_TO_MAN 22509if test -n "$DOC_TO_MAN"; then 22510 echo "$as_me:$LINENO: result: $DOC_TO_MAN" >&5 22511echo "${ECHO_T}$DOC_TO_MAN" >&6 22512else 22513 echo "$as_me:$LINENO: result: no" >&5 22514echo "${ECHO_T}no" >&6 22515fi 22516 22517if test ! "$DOC_TO_MAN" ; then 22518 DOCDIR= 22519 echo "$as_me:$LINENO: result: docbook-to-man could not be found. I will not build man pages!" >&5 22520echo "${ECHO_T}docbook-to-man could not be found. I will not build man pages!" >&6 22521else 22522 DOCDIR=man 22523fi 22524 22525 22526 22527 22528 22529 22530 22531 22532 ac_config_files="$ac_config_files dbf.spec Makefile man/Makefile src/Makefile po/Makefile.in" 22533cat >confcache <<\_ACEOF 22534# This file is a shell script that caches the results of configure 22535# tests run on this system so they can be shared between configure 22536# scripts and configure runs, see configure's option --config-cache. 22537# It is not useful on other systems. If it contains results you don't 22538# want to keep, you may remove or edit it. 22539# 22540# config.status only pays attention to the cache file if you give it 22541# the --recheck option to rerun configure. 22542# 22543# `ac_cv_env_foo' variables (set or unset) will be overridden when 22544# loading this file, other *unset* `ac_cv_foo' will be assigned the 22545# following values. 22546 22547_ACEOF 22548 22549# The following way of writing the cache mishandles newlines in values, 22550# but we know of no workaround that is simple, portable, and efficient. 22551# So, don't put newlines in cache variables' values. 22552# Ultrix sh set writes to stderr and can't be redirected directly, 22553# and sets the high bit in the cache file unless we assign to the vars. 22554{ 22555 (set) 2>&1 | 22556 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22557 *ac_space=\ *) 22558 # `set' does not quote correctly, so add quotes (double-quote 22559 # substitution turns \\\\ into \\, and sed turns \\ into \). 22560 sed -n \ 22561 "s/'/'\\\\''/g; 22562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22563 ;; 22564 *) 22565 # `set' quotes correctly as required by POSIX, so do not add quotes. 22566 sed -n \ 22567 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22568 ;; 22569 esac; 22570} | 22571 sed ' 22572 t clear 22573 : clear 22574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22575 t end 22576 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22577 : end' >>confcache 22578if diff $cache_file confcache >/dev/null 2>&1; then :; else 22579 if test -w $cache_file; then 22580 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22581 cat confcache >$cache_file 22582 else 22583 echo "not updating unwritable cache $cache_file" 22584 fi 22585fi 22586rm -f confcache 22587 22588test "x$prefix" = xNONE && prefix=$ac_default_prefix 22589# Let make expand exec_prefix. 22590test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22591 22592# VPATH may cause trouble with some makes, so we remove $(srcdir), 22593# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22594# trailing colons and then remove the whole line if VPATH becomes empty 22595# (actually we leave an empty line to preserve line numbers). 22596if test "x$srcdir" = x.; then 22597 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22598s/:*\$(srcdir):*/:/; 22599s/:*\${srcdir}:*/:/; 22600s/:*@srcdir@:*/:/; 22601s/^\([^=]*=[ ]*\):*/\1/; 22602s/:*$//; 22603s/^[^=]*=[ ]*$//; 22604}' 22605fi 22606 22607DEFS=-DHAVE_CONFIG_H 22608 22609ac_libobjs= 22610ac_ltlibobjs= 22611for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 22612 # 1. Remove the extension, and $U if already installed. 22613 ac_i=`echo "$ac_i" | 22614 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22615 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22616 # will be set to the directory where LIBOBJS objects are built. 22617 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22618 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22619done 22620LIB@&t@OBJS=$ac_libobjs 22621 22622LTLIBOBJS=$ac_ltlibobjs 22623 22624 22625if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22626 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22627Usually this means the macro was only invoked conditionally." >&5 22628echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22629Usually this means the macro was only invoked conditionally." >&2;} 22630 { (exit 1); exit 1; }; } 22631fi 22632 22633 22634 mv -f po/POTFILES po/POTFILES.tmp 22635 sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES 22636 rm -f po/POTFILES.tmp 22637 22638 22639if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22640 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22641Usually this means the macro was only invoked conditionally." >&5 22642echo "$as_me: error: conditional \"AMDEP\" was never defined. 22643Usually this means the macro was only invoked conditionally." >&2;} 22644 { (exit 1); exit 1; }; } 22645fi 22646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22647 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22648Usually this means the macro was only invoked conditionally." >&5 22649echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22650Usually this means the macro was only invoked conditionally." >&2;} 22651 { (exit 1); exit 1; }; } 22652fi 22653if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22655Usually this means the macro was only invoked conditionally." >&5 22656echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22657Usually this means the macro was only invoked conditionally." >&2;} 22658 { (exit 1); exit 1; }; } 22659fi 22660 22661: ${CONFIG_STATUS=./config.status} 22662ac_clean_files_save=$ac_clean_files 22663ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22664{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22665echo "$as_me: creating $CONFIG_STATUS" >&6;} 22666cat >$CONFIG_STATUS <<_ACEOF 22667#! $SHELL 22668# Generated by $as_me. 22669# Run this file to recreate the current configuration. 22670# Compiler output produced by configure, useful for debugging 22671# configure, is in config.log if it exists. 22672 22673debug=false 22674ac_cs_recheck=false 22675ac_cs_silent=false 22676SHELL=\${CONFIG_SHELL-$SHELL} 22677_ACEOF 22678 22679cat >>$CONFIG_STATUS <<\_ACEOF 22680## --------------------- ## 22681## M4sh Initialization. ## 22682## --------------------- ## 22683 22684# Be Bourne compatible 22685if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22686 emulate sh 22687 NULLCMD=: 22688 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22689 # is contrary to our usage. Disable this feature. 22690 alias -g '${1+"$@"}'='"$@"' 22691elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22692 set -o posix 22693fi 22694DUALCASE=1; export DUALCASE # for MKS sh 22695 22696# Support unset when possible. 22697if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22698 as_unset=unset 22699else 22700 as_unset=false 22701fi 22702 22703 22704# Work around bugs in pre-3.0 UWIN ksh. 22705$as_unset ENV MAIL MAILPATH 22706PS1='$ ' 22707PS2='> ' 22708PS4='+ ' 22709 22710# NLS nuisances. 22711for as_var in \ 22712 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22713 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22714 LC_TELEPHONE LC_TIME 22715do 22716 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22717 eval $as_var=C; export $as_var 22718 else 22719 $as_unset $as_var 22720 fi 22721done 22722 22723# Required to use basename. 22724if expr a : '\(a\)' >/dev/null 2>&1; then 22725 as_expr=expr 22726else 22727 as_expr=false 22728fi 22729 22730if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22731 as_basename=basename 22732else 22733 as_basename=false 22734fi 22735 22736 22737# Name of the executable. 22738as_me=`$as_basename "$0" || 22739$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22740 X"$0" : 'X\(//\)$' \| \ 22741 X"$0" : 'X\(/\)$' \| \ 22742 . : '\(.\)' 2>/dev/null || 22743echo X/"$0" | 22744 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 22745 /^X\/\(\/\/\)$/{ s//\1/; q; } 22746 /^X\/\(\/\).*/{ s//\1/; q; } 22747 s/.*/./; q'` 22748 22749 22750# PATH needs CR, and LINENO needs CR and PATH. 22751# Avoid depending upon Character Ranges. 22752as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22753as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22754as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22755as_cr_digits='0123456789' 22756as_cr_alnum=$as_cr_Letters$as_cr_digits 22757 22758# The user is always right. 22759if test "${PATH_SEPARATOR+set}" != set; then 22760 echo "#! /bin/sh" >conf$$.sh 22761 echo "exit 0" >>conf$$.sh 22762 chmod +x conf$$.sh 22763 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22764 PATH_SEPARATOR=';' 22765 else 22766 PATH_SEPARATOR=: 22767 fi 22768 rm -f conf$$.sh 22769fi 22770 22771 22772 as_lineno_1=$LINENO 22773 as_lineno_2=$LINENO 22774 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22775 test "x$as_lineno_1" != "x$as_lineno_2" && 22776 test "x$as_lineno_3" = "x$as_lineno_2" || { 22777 # Find who we are. Look in the path if we contain no path at all 22778 # relative or not. 22779 case $0 in 22780 *[\\/]* ) as_myself=$0 ;; 22781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22782for as_dir in $PATH 22783do 22784 IFS=$as_save_IFS 22785 test -z "$as_dir" && as_dir=. 22786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22787done 22788 22789 ;; 22790 esac 22791 # We did not find ourselves, most probably we were run as `sh COMMAND' 22792 # in which case we are not to be found in the path. 22793 if test "x$as_myself" = x; then 22794 as_myself=$0 22795 fi 22796 if test ! -f "$as_myself"; then 22797 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 22798echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 22799 { (exit 1); exit 1; }; } 22800 fi 22801 case $CONFIG_SHELL in 22802 '') 22803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22804for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 22805do 22806 IFS=$as_save_IFS 22807 test -z "$as_dir" && as_dir=. 22808 for as_base in sh bash ksh sh5; do 22809 case $as_dir in 22810 /*) 22811 if ("$as_dir/$as_base" -c ' 22812 as_lineno_1=$LINENO 22813 as_lineno_2=$LINENO 22814 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 22815 test "x$as_lineno_1" != "x$as_lineno_2" && 22816 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 22817 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 22818 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 22819 CONFIG_SHELL=$as_dir/$as_base 22820 export CONFIG_SHELL 22821 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 22822 fi;; 22823 esac 22824 done 22825done 22826;; 22827 esac 22828 22829 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22830 # uniformly replaced by the line number. The first 'sed' inserts a 22831 # line-number line before each line; the second 'sed' does the real 22832 # work. The second script uses 'N' to pair each line-number line 22833 # with the numbered line, and appends trailing '-' during 22834 # substitution so that $LINENO is not a special case at line end. 22835 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22836 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 22837 sed '=' <$as_myself | 22838 sed ' 22839 N 22840 s,$,-, 22841 : loop 22842 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 22843 t loop 22844 s,-$,, 22845 s,^['$as_cr_digits']*\n,, 22846 ' >$as_me.lineno && 22847 chmod +x $as_me.lineno || 22848 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 22849echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 22850 { (exit 1); exit 1; }; } 22851 22852 # Don't try to exec as it changes $[0], causing all sort of problems 22853 # (the dirname of $[0] is not the place where we might find the 22854 # original and so on. Autoconf is especially sensible to this). 22855 . ./$as_me.lineno 22856 # Exit status is that of the last command. 22857 exit 22858} 22859 22860 22861case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 22862 *c*,-n*) ECHO_N= ECHO_C=' 22863' ECHO_T=' ' ;; 22864 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 22865 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 22866esac 22867 22868if expr a : '\(a\)' >/dev/null 2>&1; then 22869 as_expr=expr 22870else 22871 as_expr=false 22872fi 22873 22874rm -f conf$$ conf$$.exe conf$$.file 22875echo >conf$$.file 22876if ln -s conf$$.file conf$$ 2>/dev/null; then 22877 # We could just check for DJGPP; but this test a) works b) is more generic 22878 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 22879 if test -f conf$$.exe; then 22880 # Don't use ln at all; we don't have any links 22881 as_ln_s='cp -p' 22882 else 22883 as_ln_s='ln -s' 22884 fi 22885elif ln conf$$.file conf$$ 2>/dev/null; then 22886 as_ln_s=ln 22887else 22888 as_ln_s='cp -p' 22889fi 22890rm -f conf$$ conf$$.exe conf$$.file 22891 22892if mkdir -p . 2>/dev/null; then 22893 as_mkdir_p=: 22894else 22895 test -d ./-p && rmdir ./-p 22896 as_mkdir_p=false 22897fi 22898 22899as_executable_p="test -f" 22900 22901# Sed expression to map a string onto a valid CPP name. 22902as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22903 22904# Sed expression to map a string onto a valid variable name. 22905as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22906 22907 22908# IFS 22909# We need space, tab and new line, in precisely that order. 22910as_nl=' 22911' 22912IFS=" $as_nl" 22913 22914# CDPATH. 22915$as_unset CDPATH 22916 22917exec 6>&1 22918 22919# Open the log real soon, to keep \$[0] and so on meaningful, and to 22920# report actual input values of CONFIG_FILES etc. instead of their 22921# values after options handling. Logging --version etc. is OK. 22922exec 5>>config.log 22923{ 22924 echo 22925 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 22926@%:@@%:@ Running $as_me. @%:@@%:@ 22927_ASBOX 22928} >&5 22929cat >&5 <<_CSEOF 22930 22931This file was extended by dbf $as_me 0.9.0, which was 22932generated by GNU Autoconf 2.59. Invocation command line was 22933 22934 CONFIG_FILES = $CONFIG_FILES 22935 CONFIG_HEADERS = $CONFIG_HEADERS 22936 CONFIG_LINKS = $CONFIG_LINKS 22937 CONFIG_COMMANDS = $CONFIG_COMMANDS 22938 $ $0 $@ 22939 22940_CSEOF 22941echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 22942echo >&5 22943_ACEOF 22944 22945# Files that config.status was made for. 22946if test -n "$ac_config_files"; then 22947 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 22948fi 22949 22950if test -n "$ac_config_headers"; then 22951 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 22952fi 22953 22954if test -n "$ac_config_links"; then 22955 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 22956fi 22957 22958if test -n "$ac_config_commands"; then 22959 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 22960fi 22961 22962cat >>$CONFIG_STATUS <<\_ACEOF 22963 22964ac_cs_usage="\ 22965\`$as_me' instantiates files from templates according to the 22966current configuration. 22967 22968Usage: $0 [OPTIONS] [FILE]... 22969 22970 -h, --help print this help, then exit 22971 -V, --version print version number, then exit 22972 -q, --quiet do not print progress messages 22973 -d, --debug don't remove temporary files 22974 --recheck update $as_me by reconfiguring in the same conditions 22975 --file=FILE[:TEMPLATE] 22976 instantiate the configuration file FILE 22977 --header=FILE[:TEMPLATE] 22978 instantiate the configuration header FILE 22979 22980Configuration files: 22981$config_files 22982 22983Configuration headers: 22984$config_headers 22985 22986Configuration commands: 22987$config_commands 22988 22989Report bugs to <bug-autoconf@gnu.org>." 22990_ACEOF 22991 22992cat >>$CONFIG_STATUS <<_ACEOF 22993ac_cs_version="\\ 22994dbf config.status 0.9.0 22995configured by $0, generated by GNU Autoconf 2.59, 22996 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 22997 22998Copyright (C) 2003 Free Software Foundation, Inc. 22999This config.status script is free software; the Free Software Foundation 23000gives unlimited permission to copy, distribute and modify it." 23001srcdir=$srcdir 23002INSTALL="$INSTALL" 23003_ACEOF 23004 23005cat >>$CONFIG_STATUS <<\_ACEOF 23006# If no file are specified by the user, then we need to provide default 23007# value. By we need to know if files were specified by the user. 23008ac_need_defaults=: 23009while test $# != 0 23010do 23011 case $1 in 23012 --*=*) 23013 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23014 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23015 ac_shift=: 23016 ;; 23017 -*) 23018 ac_option=$1 23019 ac_optarg=$2 23020 ac_shift=shift 23021 ;; 23022 *) # This is not an option, so the user has probably given explicit 23023 # arguments. 23024 ac_option=$1 23025 ac_need_defaults=false;; 23026 esac 23027 23028 case $ac_option in 23029 # Handling of the options. 23030_ACEOF 23031cat >>$CONFIG_STATUS <<\_ACEOF 23032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23033 ac_cs_recheck=: ;; 23034 --version | --vers* | -V ) 23035 echo "$ac_cs_version"; exit 0 ;; 23036 --he | --h) 23037 # Conflict between --help and --header 23038 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23039Try \`$0 --help' for more information." >&5 23040echo "$as_me: error: ambiguous option: $1 23041Try \`$0 --help' for more information." >&2;} 23042 { (exit 1); exit 1; }; };; 23043 --help | --hel | -h ) 23044 echo "$ac_cs_usage"; exit 0 ;; 23045 --debug | --d* | -d ) 23046 debug=: ;; 23047 --file | --fil | --fi | --f ) 23048 $ac_shift 23049 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23050 ac_need_defaults=false;; 23051 --header | --heade | --head | --hea ) 23052 $ac_shift 23053 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23054 ac_need_defaults=false;; 23055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23056 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23057 ac_cs_silent=: ;; 23058 23059 # This is an error. 23060 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23061Try \`$0 --help' for more information." >&5 23062echo "$as_me: error: unrecognized option: $1 23063Try \`$0 --help' for more information." >&2;} 23064 { (exit 1); exit 1; }; } ;; 23065 23066 *) ac_config_targets="$ac_config_targets $1" ;; 23067 23068 esac 23069 shift 23070done 23071 23072ac_configure_extra_args= 23073 23074if $ac_cs_silent; then 23075 exec 6>/dev/null 23076 ac_configure_extra_args="$ac_configure_extra_args --silent" 23077fi 23078 23079_ACEOF 23080cat >>$CONFIG_STATUS <<_ACEOF 23081if \$ac_cs_recheck; then 23082 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23083 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23084fi 23085 23086_ACEOF 23087 23088cat >>$CONFIG_STATUS <<_ACEOF 23089# 23090# INIT-COMMANDS section. 23091# 23092 23093INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir} 23094INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}' 23095MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}' 23096XGETTEXT='${INTLTOOL_XGETTEXT}' 23097AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23098 23099 23100_ACEOF 23101 23102 23103 23104cat >>$CONFIG_STATUS <<\_ACEOF 23105for ac_config_target in $ac_config_targets 23106do 23107 case "$ac_config_target" in 23108 # Handling of arguments. 23109 "dbf.spec" ) CONFIG_FILES="$CONFIG_FILES dbf.spec" ;; 23110 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23111 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23112 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23113 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 23114 "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;; 23115 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23116 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 23117 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23118 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23119echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23120 { (exit 1); exit 1; }; };; 23121 esac 23122done 23123 23124# If the user did not use the arguments to specify the items to instantiate, 23125# then the envvar interface is used. Set only those that are not. 23126# We use the long form for the default assignment because of an extremely 23127# bizarre bug on SunOS 4.1.3. 23128if $ac_need_defaults; then 23129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23132fi 23133 23134# Have a temporary directory for convenience. Make it in the build tree 23135# simply because there is no reason to put it here, and in addition, 23136# creating and moving files from /tmp can sometimes cause problems. 23137# Create a temporary directory, and hook for its removal unless debugging. 23138$debug || 23139{ 23140 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23141 trap '{ (exit 1); exit 1; }' 1 2 13 15 23142} 23143 23144# Create a (secure) tmp directory for tmp files. 23145 23146{ 23147 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23148 test -n "$tmp" && test -d "$tmp" 23149} || 23150{ 23151 tmp=./confstat$$-$RANDOM 23152 (umask 077 && mkdir $tmp) 23153} || 23154{ 23155 echo "$me: cannot create a temporary directory in ." >&2 23156 { (exit 1); exit 1; } 23157} 23158 23159_ACEOF 23160 23161cat >>$CONFIG_STATUS <<_ACEOF 23162 23163# 23164# CONFIG_FILES section. 23165# 23166 23167# No need to generate the scripts if there are no CONFIG_FILES. 23168# This happens for instance when ./config.status config.h 23169if test -n "\$CONFIG_FILES"; then 23170 # Protect against being on the right side of a sed subst in config.status. 23171 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23172 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23173s,@SHELL@,$SHELL,;t t 23174s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23175s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23176s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23177s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23178s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23179s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23180s,@exec_prefix@,$exec_prefix,;t t 23181s,@prefix@,$prefix,;t t 23182s,@program_transform_name@,$program_transform_name,;t t 23183s,@bindir@,$bindir,;t t 23184s,@sbindir@,$sbindir,;t t 23185s,@libexecdir@,$libexecdir,;t t 23186s,@datadir@,$datadir,;t t 23187s,@sysconfdir@,$sysconfdir,;t t 23188s,@sharedstatedir@,$sharedstatedir,;t t 23189s,@localstatedir@,$localstatedir,;t t 23190s,@libdir@,$libdir,;t t 23191s,@includedir@,$includedir,;t t 23192s,@oldincludedir@,$oldincludedir,;t t 23193s,@infodir@,$infodir,;t t 23194s,@mandir@,$mandir,;t t 23195s,@build_alias@,$build_alias,;t t 23196s,@host_alias@,$host_alias,;t t 23197s,@target_alias@,$target_alias,;t t 23198s,@DEFS@,$DEFS,;t t 23199s,@ECHO_C@,$ECHO_C,;t t 23200s,@ECHO_N@,$ECHO_N,;t t 23201s,@ECHO_T@,$ECHO_T,;t t 23202s,@LIBS@,$LIBS,;t t 23203s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23204s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23205s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23206s,@CYGPATH_W@,$CYGPATH_W,;t t 23207s,@PACKAGE@,$PACKAGE,;t t 23208s,@VERSION@,$VERSION,;t t 23209s,@ACLOCAL@,$ACLOCAL,;t t 23210s,@AUTOCONF@,$AUTOCONF,;t t 23211s,@AUTOMAKE@,$AUTOMAKE,;t t 23212s,@AUTOHEADER@,$AUTOHEADER,;t t 23213s,@MAKEINFO@,$MAKEINFO,;t t 23214s,@install_sh@,$install_sh,;t t 23215s,@STRIP@,$STRIP,;t t 23216s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23217s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 23218s,@mkdir_p@,$mkdir_p,;t t 23219s,@AWK@,$AWK,;t t 23220s,@SET_MAKE@,$SET_MAKE,;t t 23221s,@am__leading_dot@,$am__leading_dot,;t t 23222s,@AMTAR@,$AMTAR,;t t 23223s,@am__tar@,$am__tar,;t t 23224s,@am__untar@,$am__untar,;t t 23225s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 23226s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 23227s,@MAINT@,$MAINT,;t t 23228s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t 23229s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t 23230s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t 23231s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t 23232s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t 23233s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t 23234s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t 23235s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t 23236s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t 23237s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t 23238s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t 23239s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t 23240s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t 23241s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t 23242s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t 23243s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t 23244s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t 23245s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t 23246s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t 23247s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t 23248s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t 23249s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t 23250s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t 23251s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t 23252s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t 23253s,@CC@,$CC,;t t 23254s,@CFLAGS@,$CFLAGS,;t t 23255s,@LDFLAGS@,$LDFLAGS,;t t 23256s,@CPPFLAGS@,$CPPFLAGS,;t t 23257s,@ac_ct_CC@,$ac_ct_CC,;t t 23258s,@EXEEXT@,$EXEEXT,;t t 23259s,@OBJEXT@,$OBJEXT,;t t 23260s,@DEPDIR@,$DEPDIR,;t t 23261s,@am__include@,$am__include,;t t 23262s,@am__quote@,$am__quote,;t t 23263s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 23264s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 23265s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 23266s,@CCDEPMODE@,$CCDEPMODE,;t t 23267s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 23268s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 23269s,@LN_S@,$LN_S,;t t 23270s,@CPP@,$CPP,;t t 23271s,@EGREP@,$EGREP,;t t 23272s,@USE_NLS@,$USE_NLS,;t t 23273s,@MSGFMT@,$MSGFMT,;t t 23274s,@GMSGFMT@,$GMSGFMT,;t t 23275s,@XGETTEXT@,$XGETTEXT,;t t 23276s,@CATALOGS@,$CATALOGS,;t t 23277s,@CATOBJEXT@,$CATOBJEXT,;t t 23278s,@DATADIRNAME@,$DATADIRNAME,;t t 23279s,@GMOFILES@,$GMOFILES,;t t 23280s,@INSTOBJEXT@,$INSTOBJEXT,;t t 23281s,@INTLLIBS@,$INTLLIBS,;t t 23282s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t 23283s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t 23284s,@POFILES@,$POFILES,;t t 23285s,@POSUB@,$POSUB,;t t 23286s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 23287s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t 23288s,@build@,$build,;t t 23289s,@build_cpu@,$build_cpu,;t t 23290s,@build_vendor@,$build_vendor,;t t 23291s,@build_os@,$build_os,;t t 23292s,@host@,$host,;t t 23293s,@host_cpu@,$host_cpu,;t t 23294s,@host_vendor@,$host_vendor,;t t 23295s,@host_os@,$host_os,;t t 23296s,@ECHO@,$ECHO,;t t 23297s,@AR@,$AR,;t t 23298s,@ac_ct_AR@,$ac_ct_AR,;t t 23299s,@RANLIB@,$RANLIB,;t t 23300s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23301s,@CXX@,$CXX,;t t 23302s,@CXXFLAGS@,$CXXFLAGS,;t t 23303s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23304s,@CXXDEPMODE@,$CXXDEPMODE,;t t 23305s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 23306s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 23307s,@CXXCPP@,$CXXCPP,;t t 23308s,@F77@,$F77,;t t 23309s,@FFLAGS@,$FFLAGS,;t t 23310s,@ac_ct_F77@,$ac_ct_F77,;t t 23311s,@LIBTOOL@,$LIBTOOL,;t t 23312s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t 23313s,@DOC_TO_MAN@,$DOC_TO_MAN,;t t 23314s,@DBFLIB_LIBDIR@,$DBFLIB_LIBDIR,;t t 23315s,@DBFLIB_LIBS@,$DBFLIB_LIBS,;t t 23316s,@DBFLIB_INCLUDEDIR@,$DBFLIB_INCLUDEDIR,;t t 23317s,@DOCDIR@,$DOCDIR,;t t 23318s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23319CEOF 23320 23321_ACEOF 23322 23323 cat >>$CONFIG_STATUS <<\_ACEOF 23324 # Split the substitutions into bite-sized pieces for seds with 23325 # small command number limits, like on Digital OSF/1 and HP-UX. 23326 ac_max_sed_lines=48 23327 ac_sed_frag=1 # Number of current file. 23328 ac_beg=1 # First line for current file. 23329 ac_end=$ac_max_sed_lines # Line after last line for current file. 23330 ac_more_lines=: 23331 ac_sed_cmds= 23332 while $ac_more_lines; do 23333 if test $ac_beg -gt 1; then 23334 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23335 else 23336 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23337 fi 23338 if test ! -s $tmp/subs.frag; then 23339 ac_more_lines=false 23340 else 23341 # The purpose of the label and of the branching condition is to 23342 # speed up the sed processing (if there are no `@' at all, there 23343 # is no need to browse any of the substitutions). 23344 # These are the two extra sed commands mentioned above. 23345 (echo ':t 23346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23347 if test -z "$ac_sed_cmds"; then 23348 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23349 else 23350 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23351 fi 23352 ac_sed_frag=`expr $ac_sed_frag + 1` 23353 ac_beg=$ac_end 23354 ac_end=`expr $ac_end + $ac_max_sed_lines` 23355 fi 23356 done 23357 if test -z "$ac_sed_cmds"; then 23358 ac_sed_cmds=cat 23359 fi 23360fi # test -n "$CONFIG_FILES" 23361 23362_ACEOF 23363cat >>$CONFIG_STATUS <<\_ACEOF 23364for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23365 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23366 case $ac_file in 23367 - | *:- | *:-:* ) # input from stdin 23368 cat >$tmp/stdin 23369 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23370 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23371 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23373 * ) ac_file_in=$ac_file.in ;; 23374 esac 23375 23376 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23377 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23378$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23379 X"$ac_file" : 'X\(//\)[^/]' \| \ 23380 X"$ac_file" : 'X\(//\)$' \| \ 23381 X"$ac_file" : 'X\(/\)' \| \ 23382 . : '\(.\)' 2>/dev/null || 23383echo X"$ac_file" | 23384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23385 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23386 /^X\(\/\/\)$/{ s//\1/; q; } 23387 /^X\(\/\).*/{ s//\1/; q; } 23388 s/.*/./; q'` 23389 { if $as_mkdir_p; then 23390 mkdir -p "$ac_dir" 23391 else 23392 as_dir="$ac_dir" 23393 as_dirs= 23394 while test ! -d "$as_dir"; do 23395 as_dirs="$as_dir $as_dirs" 23396 as_dir=`(dirname "$as_dir") 2>/dev/null || 23397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23398 X"$as_dir" : 'X\(//\)[^/]' \| \ 23399 X"$as_dir" : 'X\(//\)$' \| \ 23400 X"$as_dir" : 'X\(/\)' \| \ 23401 . : '\(.\)' 2>/dev/null || 23402echo X"$as_dir" | 23403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23404 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23405 /^X\(\/\/\)$/{ s//\1/; q; } 23406 /^X\(\/\).*/{ s//\1/; q; } 23407 s/.*/./; q'` 23408 done 23409 test ! -n "$as_dirs" || mkdir $as_dirs 23410 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23411echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23412 { (exit 1); exit 1; }; }; } 23413 23414 ac_builddir=. 23415 23416if test "$ac_dir" != .; then 23417 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23418 # A "../" for each directory in $ac_dir_suffix. 23419 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23420else 23421 ac_dir_suffix= ac_top_builddir= 23422fi 23423 23424case $srcdir in 23425 .) # No --srcdir option. We are building in place. 23426 ac_srcdir=. 23427 if test -z "$ac_top_builddir"; then 23428 ac_top_srcdir=. 23429 else 23430 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23431 fi ;; 23432 [\\/]* | ?:[\\/]* ) # Absolute path. 23433 ac_srcdir=$srcdir$ac_dir_suffix; 23434 ac_top_srcdir=$srcdir ;; 23435 *) # Relative path. 23436 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23437 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23438esac 23439 23440# Do not use `cd foo && pwd` to compute absolute paths, because 23441# the directories may not exist. 23442case `pwd` in 23443.) ac_abs_builddir="$ac_dir";; 23444*) 23445 case "$ac_dir" in 23446 .) ac_abs_builddir=`pwd`;; 23447 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23448 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23449 esac;; 23450esac 23451case $ac_abs_builddir in 23452.) ac_abs_top_builddir=${ac_top_builddir}.;; 23453*) 23454 case ${ac_top_builddir}. in 23455 .) ac_abs_top_builddir=$ac_abs_builddir;; 23456 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23457 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23458 esac;; 23459esac 23460case $ac_abs_builddir in 23461.) ac_abs_srcdir=$ac_srcdir;; 23462*) 23463 case $ac_srcdir in 23464 .) ac_abs_srcdir=$ac_abs_builddir;; 23465 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23466 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23467 esac;; 23468esac 23469case $ac_abs_builddir in 23470.) ac_abs_top_srcdir=$ac_top_srcdir;; 23471*) 23472 case $ac_top_srcdir in 23473 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23474 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23475 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23476 esac;; 23477esac 23478 23479 23480 case $INSTALL in 23481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23482 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23483 esac 23484 23485 if test x"$ac_file" != x-; then 23486 { echo "$as_me:$LINENO: creating $ac_file" >&5 23487echo "$as_me: creating $ac_file" >&6;} 23488 rm -f "$ac_file" 23489 fi 23490 # Let's still pretend it is `configure' which instantiates (i.e., don't 23491 # use $as_me), people would be surprised to read: 23492 # /* config.h. Generated by config.status. */ 23493 if test x"$ac_file" = x-; then 23494 configure_input= 23495 else 23496 configure_input="$ac_file. " 23497 fi 23498 configure_input=$configure_input"Generated from `echo $ac_file_in | 23499 sed 's,.*/,,'` by configure." 23500 23501 # First look for the input files in the build tree, otherwise in the 23502 # src tree. 23503 ac_file_inputs=`IFS=: 23504 for f in $ac_file_in; do 23505 case $f in 23506 -) echo $tmp/stdin ;; 23507 [\\/$]*) 23508 # Absolute (can't be DOS-style, as IFS=:) 23509 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23510echo "$as_me: error: cannot find input file: $f" >&2;} 23511 { (exit 1); exit 1; }; } 23512 echo "$f";; 23513 *) # Relative 23514 if test -f "$f"; then 23515 # Build tree 23516 echo "$f" 23517 elif test -f "$srcdir/$f"; then 23518 # Source tree 23519 echo "$srcdir/$f" 23520 else 23521 # /dev/null tree 23522 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23523echo "$as_me: error: cannot find input file: $f" >&2;} 23524 { (exit 1); exit 1; }; } 23525 fi;; 23526 esac 23527 done` || { (exit 1); exit 1; } 23528_ACEOF 23529cat >>$CONFIG_STATUS <<_ACEOF 23530 sed "$ac_vpsub 23531$extrasub 23532_ACEOF 23533cat >>$CONFIG_STATUS <<\_ACEOF 23534:t 23535/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23536s,@configure_input@,$configure_input,;t t 23537s,@srcdir@,$ac_srcdir,;t t 23538s,@abs_srcdir@,$ac_abs_srcdir,;t t 23539s,@top_srcdir@,$ac_top_srcdir,;t t 23540s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23541s,@builddir@,$ac_builddir,;t t 23542s,@abs_builddir@,$ac_abs_builddir,;t t 23543s,@top_builddir@,$ac_top_builddir,;t t 23544s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23545s,@INSTALL@,$ac_INSTALL,;t t 23546" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23547 rm -f $tmp/stdin 23548 if test x"$ac_file" != x-; then 23549 mv $tmp/out $ac_file 23550 else 23551 cat $tmp/out 23552 rm -f $tmp/out 23553 fi 23554 23555done 23556_ACEOF 23557cat >>$CONFIG_STATUS <<\_ACEOF 23558 23559# 23560# CONFIG_HEADER section. 23561# 23562 23563# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 23564# NAME is the cpp macro being defined and VALUE is the value it is being given. 23565# 23566# ac_d sets the value in "#define NAME VALUE" lines. 23567ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 23568ac_dB='[ ].*$,\1#\2' 23569ac_dC=' ' 23570ac_dD=',;t' 23571# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 23572ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 23573ac_uB='$,\1#\2define\3' 23574ac_uC=' ' 23575ac_uD=',;t' 23576 23577for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 23578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23579 case $ac_file in 23580 - | *:- | *:-:* ) # input from stdin 23581 cat >$tmp/stdin 23582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23586 * ) ac_file_in=$ac_file.in ;; 23587 esac 23588 23589 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 23590echo "$as_me: creating $ac_file" >&6;} 23591 23592 # First look for the input files in the build tree, otherwise in the 23593 # src tree. 23594 ac_file_inputs=`IFS=: 23595 for f in $ac_file_in; do 23596 case $f in 23597 -) echo $tmp/stdin ;; 23598 [\\/$]*) 23599 # Absolute (can't be DOS-style, as IFS=:) 23600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23601echo "$as_me: error: cannot find input file: $f" >&2;} 23602 { (exit 1); exit 1; }; } 23603 # Do quote $f, to prevent DOS paths from being IFS'd. 23604 echo "$f";; 23605 *) # Relative 23606 if test -f "$f"; then 23607 # Build tree 23608 echo "$f" 23609 elif test -f "$srcdir/$f"; then 23610 # Source tree 23611 echo "$srcdir/$f" 23612 else 23613 # /dev/null tree 23614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23615echo "$as_me: error: cannot find input file: $f" >&2;} 23616 { (exit 1); exit 1; }; } 23617 fi;; 23618 esac 23619 done` || { (exit 1); exit 1; } 23620 # Remove the trailing spaces. 23621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 23622 23623_ACEOF 23624 23625# Transform confdefs.h into two sed scripts, `conftest.defines' and 23626# `conftest.undefs', that substitutes the proper values into 23627# config.h.in to produce config.h. The first handles `#define' 23628# templates, and the second `#undef' templates. 23629# And first: Protect against being on the right side of a sed subst in 23630# config.status. Protect against being in an unquoted here document 23631# in config.status. 23632rm -f conftest.defines conftest.undefs 23633# Using a here document instead of a string reduces the quoting nightmare. 23634# Putting comments in sed scripts is not portable. 23635# 23636# `end' is used to avoid that the second main sed command (meant for 23637# 0-ary CPP macros) applies to n-ary macro definitions. 23638# See the Autoconf documentation for `clear'. 23639cat >confdef2sed.sed <<\_ACEOF 23640s/[\\&,]/\\&/g 23641s,[\\$`],\\&,g 23642t clear 23643: clear 23644s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 23645t end 23646s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 23647: end 23648_ACEOF 23649# If some macros were called several times there might be several times 23650# the same #defines, which is useless. Nevertheless, we may not want to 23651# sort them, since we want the *last* AC-DEFINE to be honored. 23652uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 23653sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 23654rm -f confdef2sed.sed 23655 23656# This sed command replaces #undef with comments. This is necessary, for 23657# example, in the case of _POSIX_SOURCE, which is predefined and required 23658# on some systems where configure will not decide to define it. 23659cat >>conftest.undefs <<\_ACEOF 23660s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 23661_ACEOF 23662 23663# Break up conftest.defines because some shells have a limit on the size 23664# of here documents, and old seds have small limits too (100 cmds). 23665echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 23666echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 23667echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 23668echo ' :' >>$CONFIG_STATUS 23669rm -f conftest.tail 23670while grep . conftest.defines >/dev/null 23671do 23672 # Write a limited-size here document to $tmp/defines.sed. 23673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 23674 # Speed up: don't consider the non `#define' lines. 23675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 23676 # Work around the forget-to-reset-the-flag bug. 23677 echo 't clr' >>$CONFIG_STATUS 23678 echo ': clr' >>$CONFIG_STATUS 23679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 23680 echo 'CEOF 23681 sed -f $tmp/defines.sed $tmp/in >$tmp/out 23682 rm -f $tmp/in 23683 mv $tmp/out $tmp/in 23684' >>$CONFIG_STATUS 23685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 23686 rm -f conftest.defines 23687 mv conftest.tail conftest.defines 23688done 23689rm -f conftest.defines 23690echo ' fi # grep' >>$CONFIG_STATUS 23691echo >>$CONFIG_STATUS 23692 23693# Break up conftest.undefs because some shells have a limit on the size 23694# of here documents, and old seds have small limits too (100 cmds). 23695echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 23696rm -f conftest.tail 23697while grep . conftest.undefs >/dev/null 23698do 23699 # Write a limited-size here document to $tmp/undefs.sed. 23700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 23701 # Speed up: don't consider the non `#undef' 23702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 23703 # Work around the forget-to-reset-the-flag bug. 23704 echo 't clr' >>$CONFIG_STATUS 23705 echo ': clr' >>$CONFIG_STATUS 23706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 23707 echo 'CEOF 23708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 23709 rm -f $tmp/in 23710 mv $tmp/out $tmp/in 23711' >>$CONFIG_STATUS 23712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 23713 rm -f conftest.undefs 23714 mv conftest.tail conftest.undefs 23715done 23716rm -f conftest.undefs 23717 23718cat >>$CONFIG_STATUS <<\_ACEOF 23719 # Let's still pretend it is `configure' which instantiates (i.e., don't 23720 # use $as_me), people would be surprised to read: 23721 # /* config.h. Generated by config.status. */ 23722 if test x"$ac_file" = x-; then 23723 echo "/* Generated by configure. */" >$tmp/config.h 23724 else 23725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 23726 fi 23727 cat $tmp/in >>$tmp/config.h 23728 rm -f $tmp/in 23729 if test x"$ac_file" != x-; then 23730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 23731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23732echo "$as_me: $ac_file is unchanged" >&6;} 23733 else 23734 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23736 X"$ac_file" : 'X\(//\)[^/]' \| \ 23737 X"$ac_file" : 'X\(//\)$' \| \ 23738 X"$ac_file" : 'X\(/\)' \| \ 23739 . : '\(.\)' 2>/dev/null || 23740echo X"$ac_file" | 23741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23742 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23743 /^X\(\/\/\)$/{ s//\1/; q; } 23744 /^X\(\/\).*/{ s//\1/; q; } 23745 s/.*/./; q'` 23746 { if $as_mkdir_p; then 23747 mkdir -p "$ac_dir" 23748 else 23749 as_dir="$ac_dir" 23750 as_dirs= 23751 while test ! -d "$as_dir"; do 23752 as_dirs="$as_dir $as_dirs" 23753 as_dir=`(dirname "$as_dir") 2>/dev/null || 23754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23755 X"$as_dir" : 'X\(//\)[^/]' \| \ 23756 X"$as_dir" : 'X\(//\)$' \| \ 23757 X"$as_dir" : 'X\(/\)' \| \ 23758 . : '\(.\)' 2>/dev/null || 23759echo X"$as_dir" | 23760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23761 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23762 /^X\(\/\/\)$/{ s//\1/; q; } 23763 /^X\(\/\).*/{ s//\1/; q; } 23764 s/.*/./; q'` 23765 done 23766 test ! -n "$as_dirs" || mkdir $as_dirs 23767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23768echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23769 { (exit 1); exit 1; }; }; } 23770 23771 rm -f $ac_file 23772 mv $tmp/config.h $ac_file 23773 fi 23774 else 23775 cat $tmp/config.h 23776 rm -f $tmp/config.h 23777 fi 23778# Compute $ac_file's index in $config_headers. 23779_am_stamp_count=1 23780for _am_header in $config_headers :; do 23781 case $_am_header in 23782 $ac_file | $ac_file:* ) 23783 break ;; 23784 * ) 23785 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23786 esac 23787done 23788echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 23789$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23790 X$ac_file : 'X\(//\)[^/]' \| \ 23791 X$ac_file : 'X\(//\)$' \| \ 23792 X$ac_file : 'X\(/\)' \| \ 23793 . : '\(.\)' 2>/dev/null || 23794echo X$ac_file | 23795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23796 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23797 /^X\(\/\/\)$/{ s//\1/; q; } 23798 /^X\(\/\).*/{ s//\1/; q; } 23799 s/.*/./; q'`/stamp-h$_am_stamp_count 23800done 23801_ACEOF 23802cat >>$CONFIG_STATUS <<\_ACEOF 23803 23804# 23805# CONFIG_COMMANDS section. 23806# 23807for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23808 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23809 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23810 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23811$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23812 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23813 X"$ac_dest" : 'X\(//\)$' \| \ 23814 X"$ac_dest" : 'X\(/\)' \| \ 23815 . : '\(.\)' 2>/dev/null || 23816echo X"$ac_dest" | 23817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23818 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23819 /^X\(\/\/\)$/{ s//\1/; q; } 23820 /^X\(\/\).*/{ s//\1/; q; } 23821 s/.*/./; q'` 23822 { if $as_mkdir_p; then 23823 mkdir -p "$ac_dir" 23824 else 23825 as_dir="$ac_dir" 23826 as_dirs= 23827 while test ! -d "$as_dir"; do 23828 as_dirs="$as_dir $as_dirs" 23829 as_dir=`(dirname "$as_dir") 2>/dev/null || 23830$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23831 X"$as_dir" : 'X\(//\)[^/]' \| \ 23832 X"$as_dir" : 'X\(//\)$' \| \ 23833 X"$as_dir" : 'X\(/\)' \| \ 23834 . : '\(.\)' 2>/dev/null || 23835echo X"$as_dir" | 23836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23837 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23838 /^X\(\/\/\)$/{ s//\1/; q; } 23839 /^X\(\/\).*/{ s//\1/; q; } 23840 s/.*/./; q'` 23841 done 23842 test ! -n "$as_dirs" || mkdir $as_dirs 23843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23844echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23845 { (exit 1); exit 1; }; }; } 23846 23847 ac_builddir=. 23848 23849if test "$ac_dir" != .; then 23850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23851 # A "../" for each directory in $ac_dir_suffix. 23852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23853else 23854 ac_dir_suffix= ac_top_builddir= 23855fi 23856 23857case $srcdir in 23858 .) # No --srcdir option. We are building in place. 23859 ac_srcdir=. 23860 if test -z "$ac_top_builddir"; then 23861 ac_top_srcdir=. 23862 else 23863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23864 fi ;; 23865 [\\/]* | ?:[\\/]* ) # Absolute path. 23866 ac_srcdir=$srcdir$ac_dir_suffix; 23867 ac_top_srcdir=$srcdir ;; 23868 *) # Relative path. 23869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23870 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23871esac 23872 23873# Do not use `cd foo && pwd` to compute absolute paths, because 23874# the directories may not exist. 23875case `pwd` in 23876.) ac_abs_builddir="$ac_dir";; 23877*) 23878 case "$ac_dir" in 23879 .) ac_abs_builddir=`pwd`;; 23880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23881 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23882 esac;; 23883esac 23884case $ac_abs_builddir in 23885.) ac_abs_top_builddir=${ac_top_builddir}.;; 23886*) 23887 case ${ac_top_builddir}. in 23888 .) ac_abs_top_builddir=$ac_abs_builddir;; 23889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23891 esac;; 23892esac 23893case $ac_abs_builddir in 23894.) ac_abs_srcdir=$ac_srcdir;; 23895*) 23896 case $ac_srcdir in 23897 .) ac_abs_srcdir=$ac_abs_builddir;; 23898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23900 esac;; 23901esac 23902case $ac_abs_builddir in 23903.) ac_abs_top_srcdir=$ac_top_srcdir;; 23904*) 23905 case $ac_top_srcdir in 23906 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23909 esac;; 23910esac 23911 23912 23913 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23914echo "$as_me: executing $ac_dest commands" >&6;} 23915 case $ac_dest in 23916 intltool ) 23917 23918intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \ 23919 -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \ 23920 -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \ 23921 -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \ 23922 -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \ 23923 -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'" 23924 23925eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \ 23926 > intltool-extract.out 23927if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then 23928 rm -f intltool-extract.out 23929else 23930 mv -f intltool-extract.out intltool-extract 23931fi 23932chmod ugo+x intltool-extract 23933chmod u+w intltool-extract 23934 23935eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \ 23936 > intltool-merge.out 23937if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then 23938 rm -f intltool-merge.out 23939else 23940 mv -f intltool-merge.out intltool-merge 23941fi 23942chmod ugo+x intltool-merge 23943chmod u+w intltool-merge 23944 23945eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \ 23946 > intltool-update.out 23947if cmp -s intltool-update intltool-update.out 2>/dev/null; then 23948 rm -f intltool-update.out 23949else 23950 mv -f intltool-update.out intltool-update 23951fi 23952chmod ugo+x intltool-update 23953chmod u+w intltool-update 23954 23955 ;; 23956 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23957 # Strip MF so we end up with the name of the file. 23958 mf=`echo "$mf" | sed -e 's/:.*$//'` 23959 # Check whether this is an Automake generated Makefile or not. 23960 # We used to match only the files named `Makefile.in', but 23961 # some people rename them; so instead we look at the file content. 23962 # Grep'ing the first line is not enough: some people post-process 23963 # each Makefile.in and add a new line on top of each file to say so. 23964 # So let's grep whole file. 23965 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23966 dirpart=`(dirname "$mf") 2>/dev/null || 23967$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23968 X"$mf" : 'X\(//\)[^/]' \| \ 23969 X"$mf" : 'X\(//\)$' \| \ 23970 X"$mf" : 'X\(/\)' \| \ 23971 . : '\(.\)' 2>/dev/null || 23972echo X"$mf" | 23973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23974 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23975 /^X\(\/\/\)$/{ s//\1/; q; } 23976 /^X\(\/\).*/{ s//\1/; q; } 23977 s/.*/./; q'` 23978 else 23979 continue 23980 fi 23981 # Extract the definition of DEPDIR, am__include, and am__quote 23982 # from the Makefile without running `make'. 23983 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23984 test -z "$DEPDIR" && continue 23985 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23986 test -z "am__include" && continue 23987 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23988 # When using ansi2knr, U may be empty or an underscore; expand it 23989 U=`sed -n 's/^U = //p' < "$mf"` 23990 # Find all dependency output files, they are included files with 23991 # $(DEPDIR) in their names. We invoke sed twice because it is the 23992 # simplest approach to changing $(DEPDIR) to its actual value in the 23993 # expansion. 23994 for file in `sed -n " 23995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23997 # Make sure the directory exists. 23998 test -f "$dirpart/$file" && continue 23999 fdir=`(dirname "$file") 2>/dev/null || 24000$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24001 X"$file" : 'X\(//\)[^/]' \| \ 24002 X"$file" : 'X\(//\)$' \| \ 24003 X"$file" : 'X\(/\)' \| \ 24004 . : '\(.\)' 2>/dev/null || 24005echo X"$file" | 24006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24007 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24008 /^X\(\/\/\)$/{ s//\1/; q; } 24009 /^X\(\/\).*/{ s//\1/; q; } 24010 s/.*/./; q'` 24011 { if $as_mkdir_p; then 24012 mkdir -p $dirpart/$fdir 24013 else 24014 as_dir=$dirpart/$fdir 24015 as_dirs= 24016 while test ! -d "$as_dir"; do 24017 as_dirs="$as_dir $as_dirs" 24018 as_dir=`(dirname "$as_dir") 2>/dev/null || 24019$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24020 X"$as_dir" : 'X\(//\)[^/]' \| \ 24021 X"$as_dir" : 'X\(//\)$' \| \ 24022 X"$as_dir" : 'X\(/\)' \| \ 24023 . : '\(.\)' 2>/dev/null || 24024echo X"$as_dir" | 24025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24026 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24027 /^X\(\/\/\)$/{ s//\1/; q; } 24028 /^X\(\/\).*/{ s//\1/; q; } 24029 s/.*/./; q'` 24030 done 24031 test ! -n "$as_dirs" || mkdir $as_dirs 24032 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 24033echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24034 { (exit 1); exit 1; }; }; } 24035 24036 # echo "creating $dirpart/$file" 24037 echo '# dummy' > "$dirpart/$file" 24038 done 24039done 24040 ;; 24041 default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*) 24042 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 24043 esac ;; 24044 esac 24045done 24046_ACEOF 24047 24048cat >>$CONFIG_STATUS <<\_ACEOF 24049 24050{ (exit 0); exit 0; } 24051_ACEOF 24052chmod +x $CONFIG_STATUS 24053ac_clean_files=$ac_clean_files_save 24054 24055 24056# configure is writing to config.log, and then calls config.status. 24057# config.status does its own redirection, appending to config.log. 24058# Unfortunately, on DOS this fails, as config.log is still kept open 24059# by configure, so config.status won't be able to write to it; its 24060# output is simply discarded. So we exec the FD to /dev/null, 24061# effectively closing config.log, so it can be properly (re)opened and 24062# appended to by config.status. When coming back to configure, we 24063# need to make the FD available again. 24064if test "$no_create" != yes; then 24065 ac_cs_success=: 24066 ac_config_status_args= 24067 test "$silent" = yes && 24068 ac_config_status_args="$ac_config_status_args --quiet" 24069 exec 5>/dev/null 24070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24071 exec 5>>config.log 24072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24073 # would make configure fail if this is the last instruction. 24074 $ac_cs_success || { (exit 1); exit 1; } 24075fi 24076 24077