1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for wininfo 0.7. 4# 5# Report bugs to <http://freedesktop.org/>. 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# Copyright 2004 Billy Biggs 12## --------------------- ## 13## M4sh Initialization. ## 14## --------------------- ## 15 16# Be Bourne compatible 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24 set -o posix 25fi 26DUALCASE=1; export DUALCASE # for MKS sh 27 28# Support unset when possible. 29if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 30 as_unset=unset 31else 32 as_unset=false 33fi 34 35 36# Work around bugs in pre-3.0 UWIN ksh. 37$as_unset ENV MAIL MAILPATH 38PS1='$ ' 39PS2='> ' 40PS4='+ ' 41 42# NLS nuisances. 43for as_var in \ 44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 46 LC_TELEPHONE LC_TIME 47do 48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 49 eval $as_var=C; export $as_var 50 else 51 $as_unset $as_var 52 fi 53done 54 55# Required to use basename. 56if expr a : '\(a\)' >/dev/null 2>&1; then 57 as_expr=expr 58else 59 as_expr=false 60fi 61 62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 63 as_basename=basename 64else 65 as_basename=false 66fi 67 68 69# Name of the executable. 70as_me=`$as_basename "$0" || 71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 72 X"$0" : 'X\(//\)$' \| \ 73 X"$0" : 'X\(/\)$' \| \ 74 . : '\(.\)' 2>/dev/null || 75echo X/"$0" | 76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 77 /^X\/\(\/\/\)$/{ s//\1/; q; } 78 /^X\/\(\/\).*/{ s//\1/; q; } 79 s/.*/./; q'` 80 81 82# PATH needs CR, and LINENO needs CR and PATH. 83# Avoid depending upon Character Ranges. 84as_cr_letters='abcdefghijklmnopqrstuvwxyz' 85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 86as_cr_Letters=$as_cr_letters$as_cr_LETTERS 87as_cr_digits='0123456789' 88as_cr_alnum=$as_cr_Letters$as_cr_digits 89 90# The user is always right. 91if test "${PATH_SEPARATOR+set}" != set; then 92 echo "#! /bin/sh" >conf$$.sh 93 echo "exit 0" >>conf$$.sh 94 chmod +x conf$$.sh 95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 96 PATH_SEPARATOR=';' 97 else 98 PATH_SEPARATOR=: 99 fi 100 rm -f conf$$.sh 101fi 102 103 104 as_lineno_1=$LINENO 105 as_lineno_2=$LINENO 106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 107 test "x$as_lineno_1" != "x$as_lineno_2" && 108 test "x$as_lineno_3" = "x$as_lineno_2" || { 109 # Find who we are. Look in the path if we contain no path at all 110 # relative or not. 111 case $0 in 112 *[\\/]* ) as_myself=$0 ;; 113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 114for as_dir in $PATH 115do 116 IFS=$as_save_IFS 117 test -z "$as_dir" && as_dir=. 118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 119done 120 121 ;; 122 esac 123 # We did not find ourselves, most probably we were run as `sh COMMAND' 124 # in which case we are not to be found in the path. 125 if test "x$as_myself" = x; then 126 as_myself=$0 127 fi 128 if test ! -f "$as_myself"; then 129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 130 { (exit 1); exit 1; }; } 131 fi 132 case $CONFIG_SHELL in 133 '') 134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 136do 137 IFS=$as_save_IFS 138 test -z "$as_dir" && as_dir=. 139 for as_base in sh bash ksh sh5; do 140 case $as_dir in 141 /*) 142 if ("$as_dir/$as_base" -c ' 143 as_lineno_1=$LINENO 144 as_lineno_2=$LINENO 145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 146 test "x$as_lineno_1" != "x$as_lineno_2" && 147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 150 CONFIG_SHELL=$as_dir/$as_base 151 export CONFIG_SHELL 152 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 153 fi;; 154 esac 155 done 156done 157;; 158 esac 159 160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 161 # uniformly replaced by the line number. The first 'sed' inserts a 162 # line-number line before each line; the second 'sed' does the real 163 # work. The second script uses 'N' to pair each line-number line 164 # with the numbered line, and appends trailing '-' during 165 # substitution so that $LINENO is not a special case at line end. 166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 168 sed '=' <$as_myself | 169 sed ' 170 N 171 s,$,-, 172 : loop 173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 174 t loop 175 s,-$,, 176 s,^['$as_cr_digits']*\n,, 177 ' >$as_me.lineno && 178 chmod +x $as_me.lineno || 179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 180 { (exit 1); exit 1; }; } 181 182 # Don't try to exec as it changes $[0], causing all sort of problems 183 # (the dirname of $[0] is not the place where we might find the 184 # original and so on. Autoconf is especially sensible to this). 185 . ./$as_me.lineno 186 # Exit status is that of the last command. 187 exit 188} 189 190 191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 192 *c*,-n*) ECHO_N= ECHO_C=' 193' ECHO_T=' ' ;; 194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 196esac 197 198if expr a : '\(a\)' >/dev/null 2>&1; then 199 as_expr=expr 200else 201 as_expr=false 202fi 203 204rm -f conf$$ conf$$.exe conf$$.file 205echo >conf$$.file 206if ln -s conf$$.file conf$$ 2>/dev/null; then 207 # We could just check for DJGPP; but this test a) works b) is more generic 208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 209 if test -f conf$$.exe; then 210 # Don't use ln at all; we don't have any links 211 as_ln_s='cp -p' 212 else 213 as_ln_s='ln -s' 214 fi 215elif ln conf$$.file conf$$ 2>/dev/null; then 216 as_ln_s=ln 217else 218 as_ln_s='cp -p' 219fi 220rm -f conf$$ conf$$.exe conf$$.file 221 222if mkdir -p . 2>/dev/null; then 223 as_mkdir_p=: 224else 225 test -d ./-p && rmdir ./-p 226 as_mkdir_p=false 227fi 228 229as_executable_p="test -f" 230 231# Sed expression to map a string onto a valid CPP name. 232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 233 234# Sed expression to map a string onto a valid variable name. 235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 236 237 238# IFS 239# We need space, tab and new line, in precisely that order. 240as_nl=' 241' 242IFS=" $as_nl" 243 244# CDPATH. 245$as_unset CDPATH 246 247 248 249# Check that we are running under the correct shell. 250SHELL=${CONFIG_SHELL-/bin/sh} 251 252case X$ECHO in 253X*--fallback-echo) 254 # Remove one level of quotation (which was required for Make). 255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 256 ;; 257esac 258 259echo=${ECHO-echo} 260if test "X$1" = X--no-reexec; then 261 # Discard the --no-reexec flag, and continue. 262 shift 263elif test "X$1" = X--fallback-echo; then 264 # Avoid inline document here, it may be left over 265 : 266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 267 # Yippee, $echo works! 268 : 269else 270 # Restart under the correct shell. 271 exec $SHELL "$0" --no-reexec ${1+"$@"} 272fi 273 274if test "X$1" = X--fallback-echo; then 275 # used as fallback echo 276 shift 277 cat <<EOF 278$* 279EOF 280 exit 0 281fi 282 283# The HP-UX ksh and POSIX shell print the target directory to stdout 284# if CDPATH is set. 285if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 286 287if test -z "$ECHO"; then 288if test "X${echo_test_string+set}" != Xset; then 289# find a string as large as possible, as long as the shell can cope with it 290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 292 if (echo_test_string="`eval $cmd`") 2>/dev/null && 293 echo_test_string="`eval $cmd`" && 294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 295 then 296 break 297 fi 298 done 299fi 300 301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 303 test "X$echo_testing_string" = "X$echo_test_string"; then 304 : 305else 306 # The Solaris, AIX, and Digital Unix default echo programs unquote 307 # backslashes. This makes it impossible to quote backslashes using 308 # echo "$something" | sed 's/\\/\\\\/g' 309 # 310 # So, first we look for a working echo in the user's PATH. 311 312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 313 for dir in $PATH /usr/ucb; do 314 IFS="$lt_save_ifs" 315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 318 test "X$echo_testing_string" = "X$echo_test_string"; then 319 echo="$dir/echo" 320 break 321 fi 322 done 323 IFS="$lt_save_ifs" 324 325 if test "X$echo" = Xecho; then 326 # We didn't find a better echo, so look for alternatives. 327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 329 test "X$echo_testing_string" = "X$echo_test_string"; then 330 # This shell has a builtin print -r that does the trick. 331 echo='print -r' 332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 333 test "X$CONFIG_SHELL" != X/bin/ksh; then 334 # If we have ksh, try running configure again with it. 335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 336 export ORIGINAL_CONFIG_SHELL 337 CONFIG_SHELL=/bin/ksh 338 export CONFIG_SHELL 339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 340 else 341 # Try using printf. 342 echo='printf %s\n' 343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 345 test "X$echo_testing_string" = "X$echo_test_string"; then 346 # Cool, printf works 347 : 348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 349 test "X$echo_testing_string" = 'X\t' && 350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 351 test "X$echo_testing_string" = "X$echo_test_string"; then 352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 353 export CONFIG_SHELL 354 SHELL="$CONFIG_SHELL" 355 export SHELL 356 echo="$CONFIG_SHELL $0 --fallback-echo" 357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 358 test "X$echo_testing_string" = 'X\t' && 359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 360 test "X$echo_testing_string" = "X$echo_test_string"; then 361 echo="$CONFIG_SHELL $0 --fallback-echo" 362 else 363 # maybe with a smaller string... 364 prev=: 365 366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 368 then 369 break 370 fi 371 prev="$cmd" 372 done 373 374 if test "$prev" != 'sed 50q "$0"'; then 375 echo_test_string=`eval $prev` 376 export echo_test_string 377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 378 else 379 # Oops. We lost completely, so just stick with echo. 380 echo=echo 381 fi 382 fi 383 fi 384 fi 385fi 386fi 387 388# Copy echo and quote the copy suitably for passing to libtool from 389# the Makefile, instead of quoting the original, which is used later. 390ECHO=$echo 391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 393fi 394 395 396 397 398tagnames=${tagnames+${tagnames},}CXX 399 400tagnames=${tagnames+${tagnames},}F77 401 402# Name of the host. 403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 404# so uname gets run too. 405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 406 407exec 6>&1 408 409# 410# Initializations. 411# 412ac_default_prefix=/usr/local 413ac_config_libobj_dir=. 414cross_compiling=no 415subdirs= 416MFLAGS= 417MAKEFLAGS= 418SHELL=${CONFIG_SHELL-/bin/sh} 419 420# Maximum number of lines to put in a shell here document. 421# This variable seems obsolete. It should probably be removed, and 422# only ac_max_sed_lines should be used. 423: ${ac_max_here_lines=38} 424 425# Identity of this package. 426PACKAGE_NAME='wininfo' 427PACKAGE_TARNAME='wininfo' 428PACKAGE_VERSION='0.7' 429PACKAGE_STRING='wininfo 0.7' 430PACKAGE_BUGREPORT='http://freedesktop.org/' 431 432ac_unique_file="src/wininfo.c" 433# Factoring default headers for most tests. 434ac_includes_default="\ 435#include <stdio.h> 436#if HAVE_SYS_TYPES_H 437# include <sys/types.h> 438#endif 439#if HAVE_SYS_STAT_H 440# include <sys/stat.h> 441#endif 442#if STDC_HEADERS 443# include <stdlib.h> 444# include <stddef.h> 445#else 446# if HAVE_STDLIB_H 447# include <stdlib.h> 448# endif 449#endif 450#if HAVE_STRING_H 451# if !STDC_HEADERS && HAVE_MEMORY_H 452# include <memory.h> 453# endif 454# include <string.h> 455#endif 456#if HAVE_STRINGS_H 457# include <strings.h> 458#endif 459#if HAVE_INTTYPES_H 460# include <inttypes.h> 461#else 462# if HAVE_STDINT_H 463# include <stdint.h> 464# endif 465#endif 466#if HAVE_UNISTD_H 467# include <unistd.h> 468#endif" 469 470ac_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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB PKG_CONFIG GTK_CFLAGS GTK_LIBS X11_CFLAGS X11_LIBS XLIBS_CFLAGS XLIBS_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS LTLIBOBJS' 471ac_subst_files='' 472 473# Initialize some variables set by options. 474ac_init_help= 475ac_init_version=false 476# The variables have the same names as the options, with 477# dashes changed to underlines. 478cache_file=/dev/null 479exec_prefix=NONE 480no_create= 481no_recursion= 482prefix=NONE 483program_prefix=NONE 484program_suffix=NONE 485program_transform_name=s,x,x, 486silent= 487site= 488srcdir= 489verbose= 490x_includes=NONE 491x_libraries=NONE 492 493# Installation directory options. 494# These are left unexpanded so users can "make install exec_prefix=/foo" 495# and all the variables that are supposed to be based on exec_prefix 496# by default will actually change. 497# Use braces instead of parens because sh, perl, etc. also accept them. 498bindir='${exec_prefix}/bin' 499sbindir='${exec_prefix}/sbin' 500libexecdir='${exec_prefix}/libexec' 501datadir='${prefix}/share' 502sysconfdir='${prefix}/etc' 503sharedstatedir='${prefix}/com' 504localstatedir='${prefix}/var' 505libdir='${exec_prefix}/lib' 506includedir='${prefix}/include' 507oldincludedir='/usr/include' 508infodir='${prefix}/info' 509mandir='${prefix}/man' 510 511ac_prev= 512for ac_option 513do 514 # If the previous option needs an argument, assign it. 515 if test -n "$ac_prev"; then 516 eval "$ac_prev=\$ac_option" 517 ac_prev= 518 continue 519 fi 520 521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 522 523 # Accept the important Cygnus configure options, so we can diagnose typos. 524 525 case $ac_option in 526 527 -bindir | --bindir | --bindi | --bind | --bin | --bi) 528 ac_prev=bindir ;; 529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 530 bindir=$ac_optarg ;; 531 532 -build | --build | --buil | --bui | --bu) 533 ac_prev=build_alias ;; 534 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 535 build_alias=$ac_optarg ;; 536 537 -cache-file | --cache-file | --cache-fil | --cache-fi \ 538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 539 ac_prev=cache_file ;; 540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 542 cache_file=$ac_optarg ;; 543 544 --config-cache | -C) 545 cache_file=config.cache ;; 546 547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 548 ac_prev=datadir ;; 549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 550 | --da=*) 551 datadir=$ac_optarg ;; 552 553 -disable-* | --disable-*) 554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 555 # Reject names that are not valid shell variable names. 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 558 { (exit 1); exit 1; }; } 559 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 560 eval "enable_$ac_feature=no" ;; 561 562 -enable-* | --enable-*) 563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 564 # Reject names that are not valid shell variable names. 565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 567 { (exit 1); exit 1; }; } 568 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 569 case $ac_option in 570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 571 *) ac_optarg=yes ;; 572 esac 573 eval "enable_$ac_feature='$ac_optarg'" ;; 574 575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 577 | --exec | --exe | --ex) 578 ac_prev=exec_prefix ;; 579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 581 | --exec=* | --exe=* | --ex=*) 582 exec_prefix=$ac_optarg ;; 583 584 -gas | --gas | --ga | --g) 585 # Obsolete; use --with-gas. 586 with_gas=yes ;; 587 588 -help | --help | --hel | --he | -h) 589 ac_init_help=long ;; 590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 591 ac_init_help=recursive ;; 592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 593 ac_init_help=short ;; 594 595 -host | --host | --hos | --ho) 596 ac_prev=host_alias ;; 597 -host=* | --host=* | --hos=* | --ho=*) 598 host_alias=$ac_optarg ;; 599 600 -includedir | --includedir | --includedi | --included | --include \ 601 | --includ | --inclu | --incl | --inc) 602 ac_prev=includedir ;; 603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 604 | --includ=* | --inclu=* | --incl=* | --inc=*) 605 includedir=$ac_optarg ;; 606 607 -infodir | --infodir | --infodi | --infod | --info | --inf) 608 ac_prev=infodir ;; 609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 610 infodir=$ac_optarg ;; 611 612 -libdir | --libdir | --libdi | --libd) 613 ac_prev=libdir ;; 614 -libdir=* | --libdir=* | --libdi=* | --libd=*) 615 libdir=$ac_optarg ;; 616 617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 618 | --libexe | --libex | --libe) 619 ac_prev=libexecdir ;; 620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 621 | --libexe=* | --libex=* | --libe=*) 622 libexecdir=$ac_optarg ;; 623 624 -localstatedir | --localstatedir | --localstatedi | --localstated \ 625 | --localstate | --localstat | --localsta | --localst \ 626 | --locals | --local | --loca | --loc | --lo) 627 ac_prev=localstatedir ;; 628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 631 localstatedir=$ac_optarg ;; 632 633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 634 ac_prev=mandir ;; 635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 636 mandir=$ac_optarg ;; 637 638 -nfp | --nfp | --nf) 639 # Obsolete; use --without-fp. 640 with_fp=no ;; 641 642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 643 | --no-cr | --no-c | -n) 644 no_create=yes ;; 645 646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 648 no_recursion=yes ;; 649 650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 652 | --oldin | --oldi | --old | --ol | --o) 653 ac_prev=oldincludedir ;; 654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 657 oldincludedir=$ac_optarg ;; 658 659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 660 ac_prev=prefix ;; 661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 662 prefix=$ac_optarg ;; 663 664 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 665 | --program-pre | --program-pr | --program-p) 666 ac_prev=program_prefix ;; 667 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 669 program_prefix=$ac_optarg ;; 670 671 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 672 | --program-suf | --program-su | --program-s) 673 ac_prev=program_suffix ;; 674 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 676 program_suffix=$ac_optarg ;; 677 678 -program-transform-name | --program-transform-name \ 679 | --program-transform-nam | --program-transform-na \ 680 | --program-transform-n | --program-transform- \ 681 | --program-transform | --program-transfor \ 682 | --program-transfo | --program-transf \ 683 | --program-trans | --program-tran \ 684 | --progr-tra | --program-tr | --program-t) 685 ac_prev=program_transform_name ;; 686 -program-transform-name=* | --program-transform-name=* \ 687 | --program-transform-nam=* | --program-transform-na=* \ 688 | --program-transform-n=* | --program-transform-=* \ 689 | --program-transform=* | --program-transfor=* \ 690 | --program-transfo=* | --program-transf=* \ 691 | --program-trans=* | --program-tran=* \ 692 | --progr-tra=* | --program-tr=* | --program-t=*) 693 program_transform_name=$ac_optarg ;; 694 695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 696 | -silent | --silent | --silen | --sile | --sil) 697 silent=yes ;; 698 699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 700 ac_prev=sbindir ;; 701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 702 | --sbi=* | --sb=*) 703 sbindir=$ac_optarg ;; 704 705 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 707 | --sharedst | --shareds | --shared | --share | --shar \ 708 | --sha | --sh) 709 ac_prev=sharedstatedir ;; 710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 713 | --sha=* | --sh=*) 714 sharedstatedir=$ac_optarg ;; 715 716 -site | --site | --sit) 717 ac_prev=site ;; 718 -site=* | --site=* | --sit=*) 719 site=$ac_optarg ;; 720 721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 722 ac_prev=srcdir ;; 723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 724 srcdir=$ac_optarg ;; 725 726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 727 | --syscon | --sysco | --sysc | --sys | --sy) 728 ac_prev=sysconfdir ;; 729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 731 sysconfdir=$ac_optarg ;; 732 733 -target | --target | --targe | --targ | --tar | --ta | --t) 734 ac_prev=target_alias ;; 735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 736 target_alias=$ac_optarg ;; 737 738 -v | -verbose | --verbose | --verbos | --verbo | --verb) 739 verbose=yes ;; 740 741 -version | --version | --versio | --versi | --vers | -V) 742 ac_init_version=: ;; 743 744 -with-* | --with-*) 745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 746 # Reject names that are not valid shell variable names. 747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 748 { echo "$as_me: error: invalid package name: $ac_package" >&2 749 { (exit 1); exit 1; }; } 750 ac_package=`echo $ac_package| sed 's/-/_/g'` 751 case $ac_option in 752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 753 *) ac_optarg=yes ;; 754 esac 755 eval "with_$ac_package='$ac_optarg'" ;; 756 757 -without-* | --without-*) 758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 759 # Reject names that are not valid shell variable names. 760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 761 { echo "$as_me: error: invalid package name: $ac_package" >&2 762 { (exit 1); exit 1; }; } 763 ac_package=`echo $ac_package | sed 's/-/_/g'` 764 eval "with_$ac_package=no" ;; 765 766 --x) 767 # Obsolete; use --with-x. 768 with_x=yes ;; 769 770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 771 | --x-incl | --x-inc | --x-in | --x-i) 772 ac_prev=x_includes ;; 773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 775 x_includes=$ac_optarg ;; 776 777 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 779 ac_prev=x_libraries ;; 780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 782 x_libraries=$ac_optarg ;; 783 784 -*) { echo "$as_me: error: unrecognized option: $ac_option 785Try \`$0 --help' for more information." >&2 786 { (exit 1); exit 1; }; } 787 ;; 788 789 *=*) 790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 791 # Reject names that are not valid shell variable names. 792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 794 { (exit 1); exit 1; }; } 795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 796 eval "$ac_envvar='$ac_optarg'" 797 export $ac_envvar ;; 798 799 *) 800 # FIXME: should be removed in autoconf 3.0. 801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 805 ;; 806 807 esac 808done 809 810if test -n "$ac_prev"; then 811 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 812 { echo "$as_me: error: missing argument to $ac_option" >&2 813 { (exit 1); exit 1; }; } 814fi 815 816# Be sure to have absolute paths. 817for ac_var in exec_prefix prefix 818do 819 eval ac_val=$`echo $ac_var` 820 case $ac_val in 821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 823 { (exit 1); exit 1; }; };; 824 esac 825done 826 827# Be sure to have absolute paths. 828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 829 localstatedir libdir includedir oldincludedir infodir mandir 830do 831 eval ac_val=$`echo $ac_var` 832 case $ac_val in 833 [\\/$]* | ?:[\\/]* ) ;; 834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 835 { (exit 1); exit 1; }; };; 836 esac 837done 838 839# There might be people who depend on the old broken behavior: `$host' 840# used to hold the argument of --host etc. 841# FIXME: To remove some day. 842build=$build_alias 843host=$host_alias 844target=$target_alias 845 846# FIXME: To remove some day. 847if test "x$host_alias" != x; then 848 if test "x$build_alias" = x; then 849 cross_compiling=maybe 850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 851 If a cross compiler is detected then cross compile mode will be used." >&2 852 elif test "x$build_alias" != "x$host_alias"; then 853 cross_compiling=yes 854 fi 855fi 856 857ac_tool_prefix= 858test -n "$host_alias" && ac_tool_prefix=$host_alias- 859 860test "$silent" = yes && exec 6>/dev/null 861 862 863# Find the source files, if location was not specified. 864if test -z "$srcdir"; then 865 ac_srcdir_defaulted=yes 866 # Try the directory containing this script, then its parent. 867 ac_confdir=`(dirname "$0") 2>/dev/null || 868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 869 X"$0" : 'X\(//\)[^/]' \| \ 870 X"$0" : 'X\(//\)$' \| \ 871 X"$0" : 'X\(/\)' \| \ 872 . : '\(.\)' 2>/dev/null || 873echo X"$0" | 874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 875 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 876 /^X\(\/\/\)$/{ s//\1/; q; } 877 /^X\(\/\).*/{ s//\1/; q; } 878 s/.*/./; q'` 879 srcdir=$ac_confdir 880 if test ! -r $srcdir/$ac_unique_file; then 881 srcdir=.. 882 fi 883else 884 ac_srcdir_defaulted=no 885fi 886if test ! -r $srcdir/$ac_unique_file; then 887 if test "$ac_srcdir_defaulted" = yes; then 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 889 { (exit 1); exit 1; }; } 890 else 891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 892 { (exit 1); exit 1; }; } 893 fi 894fi 895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 897 { (exit 1); exit 1; }; } 898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 899ac_env_build_alias_set=${build_alias+set} 900ac_env_build_alias_value=$build_alias 901ac_cv_env_build_alias_set=${build_alias+set} 902ac_cv_env_build_alias_value=$build_alias 903ac_env_host_alias_set=${host_alias+set} 904ac_env_host_alias_value=$host_alias 905ac_cv_env_host_alias_set=${host_alias+set} 906ac_cv_env_host_alias_value=$host_alias 907ac_env_target_alias_set=${target_alias+set} 908ac_env_target_alias_value=$target_alias 909ac_cv_env_target_alias_set=${target_alias+set} 910ac_cv_env_target_alias_value=$target_alias 911ac_env_CC_set=${CC+set} 912ac_env_CC_value=$CC 913ac_cv_env_CC_set=${CC+set} 914ac_cv_env_CC_value=$CC 915ac_env_CFLAGS_set=${CFLAGS+set} 916ac_env_CFLAGS_value=$CFLAGS 917ac_cv_env_CFLAGS_set=${CFLAGS+set} 918ac_cv_env_CFLAGS_value=$CFLAGS 919ac_env_LDFLAGS_set=${LDFLAGS+set} 920ac_env_LDFLAGS_value=$LDFLAGS 921ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 922ac_cv_env_LDFLAGS_value=$LDFLAGS 923ac_env_CPPFLAGS_set=${CPPFLAGS+set} 924ac_env_CPPFLAGS_value=$CPPFLAGS 925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 926ac_cv_env_CPPFLAGS_value=$CPPFLAGS 927ac_env_CPP_set=${CPP+set} 928ac_env_CPP_value=$CPP 929ac_cv_env_CPP_set=${CPP+set} 930ac_cv_env_CPP_value=$CPP 931ac_env_CXX_set=${CXX+set} 932ac_env_CXX_value=$CXX 933ac_cv_env_CXX_set=${CXX+set} 934ac_cv_env_CXX_value=$CXX 935ac_env_CXXFLAGS_set=${CXXFLAGS+set} 936ac_env_CXXFLAGS_value=$CXXFLAGS 937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 938ac_cv_env_CXXFLAGS_value=$CXXFLAGS 939ac_env_CXXCPP_set=${CXXCPP+set} 940ac_env_CXXCPP_value=$CXXCPP 941ac_cv_env_CXXCPP_set=${CXXCPP+set} 942ac_cv_env_CXXCPP_value=$CXXCPP 943ac_env_F77_set=${F77+set} 944ac_env_F77_value=$F77 945ac_cv_env_F77_set=${F77+set} 946ac_cv_env_F77_value=$F77 947ac_env_FFLAGS_set=${FFLAGS+set} 948ac_env_FFLAGS_value=$FFLAGS 949ac_cv_env_FFLAGS_set=${FFLAGS+set} 950ac_cv_env_FFLAGS_value=$FFLAGS 951 952# 953# Report the --help message. 954# 955if test "$ac_init_help" = "long"; then 956 # Omit some internal or obsolete options to make the list less imposing. 957 # This message is too long to be a string in the A/UX 3.1 sh. 958 cat <<_ACEOF 959\`configure' configures wininfo 0.7 to adapt to many kinds of systems. 960 961Usage: $0 [OPTION]... [VAR=VALUE]... 962 963To assign environment variables (e.g., CC, CFLAGS...), specify them as 964VAR=VALUE. See below for descriptions of some of the useful variables. 965 966Defaults for the options are specified in brackets. 967 968Configuration: 969 -h, --help display this help and exit 970 --help=short display options specific to this package 971 --help=recursive display the short help of all the included packages 972 -V, --version display version information and exit 973 -q, --quiet, --silent do not print \`checking...' messages 974 --cache-file=FILE cache test results in FILE [disabled] 975 -C, --config-cache alias for \`--cache-file=config.cache' 976 -n, --no-create do not create output files 977 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 978 979_ACEOF 980 981 cat <<_ACEOF 982Installation directories: 983 --prefix=PREFIX install architecture-independent files in PREFIX 984 [$ac_default_prefix] 985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 986 [PREFIX] 987 988By default, \`make install' will install all the files in 989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 990an installation prefix other than \`$ac_default_prefix' using \`--prefix', 991for instance \`--prefix=\$HOME'. 992 993For better control, use the options below. 994 995Fine tuning of the installation directories: 996 --bindir=DIR user executables [EPREFIX/bin] 997 --sbindir=DIR system admin executables [EPREFIX/sbin] 998 --libexecdir=DIR program executables [EPREFIX/libexec] 999 --datadir=DIR read-only architecture-independent data [PREFIX/share] 1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1003 --libdir=DIR object code libraries [EPREFIX/lib] 1004 --includedir=DIR C header files [PREFIX/include] 1005 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1006 --infodir=DIR info documentation [PREFIX/info] 1007 --mandir=DIR man documentation [PREFIX/man] 1008_ACEOF 1009 1010 cat <<\_ACEOF 1011 1012Program names: 1013 --program-prefix=PREFIX prepend PREFIX to installed program names 1014 --program-suffix=SUFFIX append SUFFIX to installed program names 1015 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1016 1017X features: 1018 --x-includes=DIR X include files are in DIR 1019 --x-libraries=DIR X library files are in DIR 1020 1021System types: 1022 --build=BUILD configure for building on BUILD [guessed] 1023 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1024_ACEOF 1025fi 1026 1027if test -n "$ac_init_help"; then 1028 case $ac_init_help in 1029 short | recursive ) echo "Configuration of wininfo 0.7:";; 1030 esac 1031 cat <<\_ACEOF 1032 1033Optional Features: 1034 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1035 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1036 --enable-maintainer-mode enable make rules and dependencies not useful 1037 (and sometimes confusing) to the casual installer 1038 --disable-dependency-tracking Speeds up one-time builds 1039 --enable-dependency-tracking Do not reject slow dependency extractors 1040 --enable-shared[=PKGS] 1041 build shared libraries [default=yes] 1042 --enable-static[=PKGS] 1043 build static libraries [default=yes] 1044 --enable-fast-install[=PKGS] 1045 optimize for fast installation [default=yes] 1046 --disable-libtool-lock avoid locking (might break parallel builds) 1047 --disable-nls do not use Native Language Support 1048 --disable-rpath do not hardcode runtime library paths 1049 1050Optional Packages: 1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1053 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1054 --with-pic try to use only PIC/non-PIC objects [default=use 1055 both] 1056 --with-tags[=TAGS] 1057 include additional configurations [automatic] 1058 --with-gnu-ld assume the C compiler uses GNU ld default=no 1059 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1060 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1061 --with-included-gettext use the GNU gettext library included here 1062 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1063 --without-libintl-prefix don't search for libintl in includedir and libdir 1064 --with-x use the X Window System 1065 1066Some influential environment variables: 1067 CC C compiler command 1068 CFLAGS C compiler flags 1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1070 nonstandard directory <lib dir> 1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1072 headers in a nonstandard directory <include dir> 1073 CPP C preprocessor 1074 CXX C++ compiler command 1075 CXXFLAGS C++ compiler flags 1076 CXXCPP C++ preprocessor 1077 F77 Fortran 77 compiler command 1078 FFLAGS Fortran 77 compiler flags 1079 1080Use these variables to override the choices made by `configure' or to help 1081it to find libraries and programs with nonstandard names/locations. 1082 1083Report bugs to <http://freedesktop.org/>. 1084_ACEOF 1085fi 1086 1087if test "$ac_init_help" = "recursive"; then 1088 # If there are subdirs, report their specific --help. 1089 ac_popdir=`pwd` 1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1091 test -d $ac_dir || continue 1092 ac_builddir=. 1093 1094if test "$ac_dir" != .; then 1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1096 # A "../" for each directory in $ac_dir_suffix. 1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1098else 1099 ac_dir_suffix= ac_top_builddir= 1100fi 1101 1102case $srcdir in 1103 .) # No --srcdir option. We are building in place. 1104 ac_srcdir=. 1105 if test -z "$ac_top_builddir"; then 1106 ac_top_srcdir=. 1107 else 1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1109 fi ;; 1110 [\\/]* | ?:[\\/]* ) # Absolute path. 1111 ac_srcdir=$srcdir$ac_dir_suffix; 1112 ac_top_srcdir=$srcdir ;; 1113 *) # Relative path. 1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1115 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1116esac 1117 1118# Do not use `cd foo && pwd` to compute absolute paths, because 1119# the directories may not exist. 1120case `pwd` in 1121.) ac_abs_builddir="$ac_dir";; 1122*) 1123 case "$ac_dir" in 1124 .) ac_abs_builddir=`pwd`;; 1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1126 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1127 esac;; 1128esac 1129case $ac_abs_builddir in 1130.) ac_abs_top_builddir=${ac_top_builddir}.;; 1131*) 1132 case ${ac_top_builddir}. in 1133 .) ac_abs_top_builddir=$ac_abs_builddir;; 1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1136 esac;; 1137esac 1138case $ac_abs_builddir in 1139.) ac_abs_srcdir=$ac_srcdir;; 1140*) 1141 case $ac_srcdir in 1142 .) ac_abs_srcdir=$ac_abs_builddir;; 1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1145 esac;; 1146esac 1147case $ac_abs_builddir in 1148.) ac_abs_top_srcdir=$ac_top_srcdir;; 1149*) 1150 case $ac_top_srcdir in 1151 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1154 esac;; 1155esac 1156 1157 cd $ac_dir 1158 # Check for guested configure; otherwise get Cygnus style configure. 1159 if test -f $ac_srcdir/configure.gnu; then 1160 echo 1161 $SHELL $ac_srcdir/configure.gnu --help=recursive 1162 elif test -f $ac_srcdir/configure; then 1163 echo 1164 $SHELL $ac_srcdir/configure --help=recursive 1165 elif test -f $ac_srcdir/configure.ac || 1166 test -f $ac_srcdir/configure.in; then 1167 echo 1168 $ac_configure --help 1169 else 1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1171 fi 1172 cd "$ac_popdir" 1173 done 1174fi 1175 1176test -n "$ac_init_help" && exit 0 1177if $ac_init_version; then 1178 cat <<\_ACEOF 1179wininfo configure 0.7 1180generated by GNU Autoconf 2.59 1181 1182Copyright (C) 2003 Free Software Foundation, Inc. 1183This configure script is free software; the Free Software Foundation 1184gives unlimited permission to copy, distribute and modify it. 1185 1186Copyright 2004 Billy Biggs 1187_ACEOF 1188 exit 0 1189fi 1190exec 5>config.log 1191cat >&5 <<_ACEOF 1192This file contains any messages produced by compilers while 1193running configure, to aid debugging if configure makes a mistake. 1194 1195It was created by wininfo $as_me 0.7, which was 1196generated by GNU Autoconf 2.59. Invocation command line was 1197 1198 $ $0 $@ 1199 1200_ACEOF 1201{ 1202cat <<_ASUNAME 1203## --------- ## 1204## Platform. ## 1205## --------- ## 1206 1207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1208uname -m = `(uname -m) 2>/dev/null || echo unknown` 1209uname -r = `(uname -r) 2>/dev/null || echo unknown` 1210uname -s = `(uname -s) 2>/dev/null || echo unknown` 1211uname -v = `(uname -v) 2>/dev/null || echo unknown` 1212 1213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1214/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1215 1216/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1217/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1219hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1220/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1221/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1222/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1223 1224_ASUNAME 1225 1226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1227for as_dir in $PATH 1228do 1229 IFS=$as_save_IFS 1230 test -z "$as_dir" && as_dir=. 1231 echo "PATH: $as_dir" 1232done 1233 1234} >&5 1235 1236cat >&5 <<_ACEOF 1237 1238 1239## ----------- ## 1240## Core tests. ## 1241## ----------- ## 1242 1243_ACEOF 1244 1245 1246# Keep a trace of the command line. 1247# Strip out --no-create and --no-recursion so they do not pile up. 1248# Strip out --silent because we don't want to record it for future runs. 1249# Also quote any args containing shell meta-characters. 1250# Make two passes to allow for proper duplicate-argument suppression. 1251ac_configure_args= 1252ac_configure_args0= 1253ac_configure_args1= 1254ac_sep= 1255ac_must_keep_next=false 1256for ac_pass in 1 2 1257do 1258 for ac_arg 1259 do 1260 case $ac_arg in 1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1263 | -silent | --silent | --silen | --sile | --sil) 1264 continue ;; 1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1267 esac 1268 case $ac_pass in 1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1270 2) 1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1272 if test $ac_must_keep_next = true; then 1273 ac_must_keep_next=false # Got value, back to normal. 1274 else 1275 case $ac_arg in 1276 *=* | --config-cache | -C | -disable-* | --disable-* \ 1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1279 | -with-* | --with-* | -without-* | --without-* | --x) 1280 case "$ac_configure_args0 " in 1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1282 esac 1283 ;; 1284 -* ) ac_must_keep_next=true ;; 1285 esac 1286 fi 1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1288 # Get rid of the leading space. 1289 ac_sep=" " 1290 ;; 1291 esac 1292 done 1293done 1294$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1295$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1296 1297# When interrupted or exit'd, cleanup temporary files, and complete 1298# config.log. We remove comments because anyway the quotes in there 1299# would cause problems or look ugly. 1300# WARNING: Be sure not to use single quotes in there, as some shells, 1301# such as our DU 5.0 friend, will then `close' the trap. 1302trap 'exit_status=$? 1303 # Save into config.log some information that might help in debugging. 1304 { 1305 echo 1306 1307 cat <<\_ASBOX 1308## ---------------- ## 1309## Cache variables. ## 1310## ---------------- ## 1311_ASBOX 1312 echo 1313 # The following way of writing the cache mishandles newlines in values, 1314{ 1315 (set) 2>&1 | 1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1317 *ac_space=\ *) 1318 sed -n \ 1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1321 ;; 1322 *) 1323 sed -n \ 1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1325 ;; 1326 esac; 1327} 1328 echo 1329 1330 cat <<\_ASBOX 1331## ----------------- ## 1332## Output variables. ## 1333## ----------------- ## 1334_ASBOX 1335 echo 1336 for ac_var in $ac_subst_vars 1337 do 1338 eval ac_val=$`echo $ac_var` 1339 echo "$ac_var='"'"'$ac_val'"'"'" 1340 done | sort 1341 echo 1342 1343 if test -n "$ac_subst_files"; then 1344 cat <<\_ASBOX 1345## ------------- ## 1346## Output files. ## 1347## ------------- ## 1348_ASBOX 1349 echo 1350 for ac_var in $ac_subst_files 1351 do 1352 eval ac_val=$`echo $ac_var` 1353 echo "$ac_var='"'"'$ac_val'"'"'" 1354 done | sort 1355 echo 1356 fi 1357 1358 if test -s confdefs.h; then 1359 cat <<\_ASBOX 1360## ----------- ## 1361## confdefs.h. ## 1362## ----------- ## 1363_ASBOX 1364 echo 1365 sed "/^$/d" confdefs.h | sort 1366 echo 1367 fi 1368 test "$ac_signal" != 0 && 1369 echo "$as_me: caught signal $ac_signal" 1370 echo "$as_me: exit $exit_status" 1371 } >&5 1372 rm -f core *.core && 1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1374 exit $exit_status 1375 ' 0 1376for ac_signal in 1 2 13 15; do 1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1378done 1379ac_signal=0 1380 1381# confdefs.h avoids OS command line length limits that DEFS can exceed. 1382rm -rf conftest* confdefs.h 1383# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1384echo >confdefs.h 1385 1386# Predefined preprocessor variables. 1387 1388cat >>confdefs.h <<_ACEOF 1389#define PACKAGE_NAME "$PACKAGE_NAME" 1390_ACEOF 1391 1392 1393cat >>confdefs.h <<_ACEOF 1394#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1395_ACEOF 1396 1397 1398cat >>confdefs.h <<_ACEOF 1399#define PACKAGE_VERSION "$PACKAGE_VERSION" 1400_ACEOF 1401 1402 1403cat >>confdefs.h <<_ACEOF 1404#define PACKAGE_STRING "$PACKAGE_STRING" 1405_ACEOF 1406 1407 1408cat >>confdefs.h <<_ACEOF 1409#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1410_ACEOF 1411 1412 1413# Let the site file select an alternate cache file if it wants to. 1414# Prefer explicitly selected file to automatically selected ones. 1415if test -z "$CONFIG_SITE"; then 1416 if test "x$prefix" != xNONE; then 1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1418 else 1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1420 fi 1421fi 1422for ac_site_file in $CONFIG_SITE; do 1423 if test -r "$ac_site_file"; then 1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1425echo "$as_me: loading site script $ac_site_file" >&6;} 1426 sed 's/^/| /' "$ac_site_file" >&5 1427 . "$ac_site_file" 1428 fi 1429done 1430 1431if test -r "$cache_file"; then 1432 # Some versions of bash will fail to source /dev/null (special 1433 # files actually), so we avoid doing that. 1434 if test -f "$cache_file"; then 1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1436echo "$as_me: loading cache $cache_file" >&6;} 1437 case $cache_file in 1438 [\\/]* | ?:[\\/]* ) . $cache_file;; 1439 *) . ./$cache_file;; 1440 esac 1441 fi 1442else 1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1444echo "$as_me: creating cache $cache_file" >&6;} 1445 >$cache_file 1446fi 1447 1448# Check that the precious variables saved in the cache have kept the same 1449# value. 1450ac_cache_corrupted=false 1451for ac_var in `(set) 2>&1 | 1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1454 eval ac_new_set=\$ac_env_${ac_var}_set 1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1456 eval ac_new_val="\$ac_env_${ac_var}_value" 1457 case $ac_old_set,$ac_new_set in 1458 set,) 1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1460echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1461 ac_cache_corrupted=: ;; 1462 ,set) 1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1464echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1465 ac_cache_corrupted=: ;; 1466 ,);; 1467 *) 1468 if test "x$ac_old_val" != "x$ac_new_val"; then 1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1470echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1472echo "$as_me: former value: $ac_old_val" >&2;} 1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1474echo "$as_me: current value: $ac_new_val" >&2;} 1475 ac_cache_corrupted=: 1476 fi;; 1477 esac 1478 # Pass precious variables to config.status. 1479 if test "$ac_new_set" = set; then 1480 case $ac_new_val in 1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1483 *) ac_arg=$ac_var=$ac_new_val ;; 1484 esac 1485 case " $ac_configure_args " in 1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1488 esac 1489 fi 1490done 1491if $ac_cache_corrupted; then 1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1493echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1495echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1496 { (exit 1); exit 1; }; } 1497fi 1498 1499ac_ext=c 1500ac_cpp='$CPP $CPPFLAGS' 1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1503ac_compiler_gnu=$ac_cv_c_compiler_gnu 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533am__api_version="1.7" 1534ac_aux_dir= 1535for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1536 if test -f $ac_dir/install-sh; then 1537 ac_aux_dir=$ac_dir 1538 ac_install_sh="$ac_aux_dir/install-sh -c" 1539 break 1540 elif test -f $ac_dir/install.sh; then 1541 ac_aux_dir=$ac_dir 1542 ac_install_sh="$ac_aux_dir/install.sh -c" 1543 break 1544 elif test -f $ac_dir/shtool; then 1545 ac_aux_dir=$ac_dir 1546 ac_install_sh="$ac_aux_dir/shtool install -c" 1547 break 1548 fi 1549done 1550if test -z "$ac_aux_dir"; then 1551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1552echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1553 { (exit 1); exit 1; }; } 1554fi 1555ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1556ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1558 1559# Find a good install program. We prefer a C program (faster), 1560# so one script is as good as another. But avoid the broken or 1561# incompatible versions: 1562# SysV /etc/install, /usr/sbin/install 1563# SunOS /usr/etc/install 1564# IRIX /sbin/install 1565# AIX /bin/install 1566# AmigaOS /C/install, which installs bootblocks on floppy discs 1567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1568# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1570# OS/2's system install, which has a completely different semantic 1571# ./install, which can be erroneously created by make from ./install.sh. 1572echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1573echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1574if test -z "$INSTALL"; then 1575if test "${ac_cv_path_install+set}" = set; then 1576 echo $ECHO_N "(cached) $ECHO_C" >&6 1577else 1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1579for as_dir in $PATH 1580do 1581 IFS=$as_save_IFS 1582 test -z "$as_dir" && as_dir=. 1583 # Account for people who put trailing slashes in PATH elements. 1584case $as_dir/ in 1585 ./ | .// | /cC/* | \ 1586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1587 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1588 /usr/ucb/* ) ;; 1589 *) 1590 # OSF1 and SCO ODT 3.0 have their own names for install. 1591 # Don't use installbsd from OSF since it installs stuff as root 1592 # by default. 1593 for ac_prog in ginstall scoinst install; do 1594 for ac_exec_ext in '' $ac_executable_extensions; do 1595 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1596 if test $ac_prog = install && 1597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1598 # AIX install. It has an incompatible calling convention. 1599 : 1600 elif test $ac_prog = install && 1601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1602 # program-specific install script used by HP pwplus--don't use. 1603 : 1604 else 1605 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1606 break 3 1607 fi 1608 fi 1609 done 1610 done 1611 ;; 1612esac 1613done 1614 1615 1616fi 1617 if test "${ac_cv_path_install+set}" = set; then 1618 INSTALL=$ac_cv_path_install 1619 else 1620 # As a last resort, use the slow shell script. We don't cache a 1621 # path for INSTALL within a source directory, because that will 1622 # break other packages using the cache if that directory is 1623 # removed, or if the path is relative. 1624 INSTALL=$ac_install_sh 1625 fi 1626fi 1627echo "$as_me:$LINENO: result: $INSTALL" >&5 1628echo "${ECHO_T}$INSTALL" >&6 1629 1630# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1631# It thinks the first close brace ends the variable substitution. 1632test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1633 1634test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1635 1636test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1637 1638echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1639echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1640# Just in case 1641sleep 1 1642echo timestamp > conftest.file 1643# Do `set' in a subshell so we don't clobber the current shell's 1644# arguments. Must try -L first in case configure is actually a 1645# symlink; some systems play weird games with the mod time of symlinks 1646# (eg FreeBSD returns the mod time of the symlink's containing 1647# directory). 1648if ( 1649 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1650 if test "$*" = "X"; then 1651 # -L didn't work. 1652 set X `ls -t $srcdir/configure conftest.file` 1653 fi 1654 rm -f conftest.file 1655 if test "$*" != "X $srcdir/configure conftest.file" \ 1656 && test "$*" != "X conftest.file $srcdir/configure"; then 1657 1658 # If neither matched, then we have a broken ls. This can happen 1659 # if, for instance, CONFIG_SHELL is bash and it inherits a 1660 # broken ls alias from the environment. This has actually 1661 # happened. Such a system could not be considered "sane". 1662 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1663alias in your environment" >&5 1664echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1665alias in your environment" >&2;} 1666 { (exit 1); exit 1; }; } 1667 fi 1668 1669 test "$2" = conftest.file 1670 ) 1671then 1672 # Ok. 1673 : 1674else 1675 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1676Check your system clock" >&5 1677echo "$as_me: error: newly created file is older than distributed files! 1678Check your system clock" >&2;} 1679 { (exit 1); exit 1; }; } 1680fi 1681echo "$as_me:$LINENO: result: yes" >&5 1682echo "${ECHO_T}yes" >&6 1683test "$program_prefix" != NONE && 1684 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1685# Use a double $ so make ignores it. 1686test "$program_suffix" != NONE && 1687 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1688# Double any \ or $. echo might interpret backslashes. 1689# By default was `s,x,x', remove it if useless. 1690cat <<\_ACEOF >conftest.sed 1691s/[\\$]/&&/g;s/;s,x,x,$// 1692_ACEOF 1693program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1694rm conftest.sed 1695 1696 1697# expand $ac_aux_dir to an absolute path 1698am_aux_dir=`cd $ac_aux_dir && pwd` 1699 1700test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1701# Use eval to expand $SHELL 1702if eval "$MISSING --run true"; then 1703 am_missing_run="$MISSING --run " 1704else 1705 am_missing_run= 1706 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1707echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1708fi 1709 1710for ac_prog in gawk mawk nawk awk 1711do 1712 # Extract the first word of "$ac_prog", so it can be a program name with args. 1713set dummy $ac_prog; ac_word=$2 1714echo "$as_me:$LINENO: checking for $ac_word" >&5 1715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1716if test "${ac_cv_prog_AWK+set}" = set; then 1717 echo $ECHO_N "(cached) $ECHO_C" >&6 1718else 1719 if test -n "$AWK"; then 1720 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1721else 1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1723for as_dir in $PATH 1724do 1725 IFS=$as_save_IFS 1726 test -z "$as_dir" && as_dir=. 1727 for ac_exec_ext in '' $ac_executable_extensions; do 1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1729 ac_cv_prog_AWK="$ac_prog" 1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1731 break 2 1732 fi 1733done 1734done 1735 1736fi 1737fi 1738AWK=$ac_cv_prog_AWK 1739if test -n "$AWK"; then 1740 echo "$as_me:$LINENO: result: $AWK" >&5 1741echo "${ECHO_T}$AWK" >&6 1742else 1743 echo "$as_me:$LINENO: result: no" >&5 1744echo "${ECHO_T}no" >&6 1745fi 1746 1747 test -n "$AWK" && break 1748done 1749 1750echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1751echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1752set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1753if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1754 echo $ECHO_N "(cached) $ECHO_C" >&6 1755else 1756 cat >conftest.make <<\_ACEOF 1757all: 1758 @echo 'ac_maketemp="$(MAKE)"' 1759_ACEOF 1760# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1761eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1762if test -n "$ac_maketemp"; then 1763 eval ac_cv_prog_make_${ac_make}_set=yes 1764else 1765 eval ac_cv_prog_make_${ac_make}_set=no 1766fi 1767rm -f conftest.make 1768fi 1769if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1770 echo "$as_me:$LINENO: result: yes" >&5 1771echo "${ECHO_T}yes" >&6 1772 SET_MAKE= 1773else 1774 echo "$as_me:$LINENO: result: no" >&5 1775echo "${ECHO_T}no" >&6 1776 SET_MAKE="MAKE=${MAKE-make}" 1777fi 1778 1779rm -rf .tst 2>/dev/null 1780mkdir .tst 2>/dev/null 1781if test -d .tst; then 1782 am__leading_dot=. 1783else 1784 am__leading_dot=_ 1785fi 1786rmdir .tst 2>/dev/null 1787 1788 # test to see if srcdir already configured 1789if test "`cd $srcdir && pwd`" != "`pwd`" && 1790 test -f $srcdir/config.status; then 1791 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1792echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1793 { (exit 1); exit 1; }; } 1794fi 1795 1796# test whether we have cygpath 1797if test -z "$CYGPATH_W"; then 1798 if (cygpath --version) >/dev/null 2>/dev/null; then 1799 CYGPATH_W='cygpath -w' 1800 else 1801 CYGPATH_W=echo 1802 fi 1803fi 1804 1805 1806# Define the identity of the package. 1807 PACKAGE='wininfo' 1808 VERSION='0.7' 1809 1810 1811cat >>confdefs.h <<_ACEOF 1812#define PACKAGE "$PACKAGE" 1813_ACEOF 1814 1815 1816cat >>confdefs.h <<_ACEOF 1817#define VERSION "$VERSION" 1818_ACEOF 1819 1820# Some tools Automake needs. 1821 1822ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1823 1824 1825AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1826 1827 1828AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1829 1830 1831AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1832 1833 1834MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1835 1836 1837AMTAR=${AMTAR-"${am_missing_run}tar"} 1838 1839install_sh=${install_sh-"$am_aux_dir/install-sh"} 1840 1841# Installed binaries are usually stripped using `strip' when the user 1842# run `make install-strip'. However `strip' might not be the right 1843# tool to use in cross-compilation environments, therefore Automake 1844# will honor the `STRIP' environment variable to overrule this program. 1845if test "$cross_compiling" != no; then 1846 if test -n "$ac_tool_prefix"; then 1847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1848set dummy ${ac_tool_prefix}strip; ac_word=$2 1849echo "$as_me:$LINENO: checking for $ac_word" >&5 1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1851if test "${ac_cv_prog_STRIP+set}" = set; then 1852 echo $ECHO_N "(cached) $ECHO_C" >&6 1853else 1854 if test -n "$STRIP"; then 1855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1856else 1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1858for as_dir in $PATH 1859do 1860 IFS=$as_save_IFS 1861 test -z "$as_dir" && as_dir=. 1862 for ac_exec_ext in '' $ac_executable_extensions; do 1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1864 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1866 break 2 1867 fi 1868done 1869done 1870 1871fi 1872fi 1873STRIP=$ac_cv_prog_STRIP 1874if test -n "$STRIP"; then 1875 echo "$as_me:$LINENO: result: $STRIP" >&5 1876echo "${ECHO_T}$STRIP" >&6 1877else 1878 echo "$as_me:$LINENO: result: no" >&5 1879echo "${ECHO_T}no" >&6 1880fi 1881 1882fi 1883if test -z "$ac_cv_prog_STRIP"; then 1884 ac_ct_STRIP=$STRIP 1885 # Extract the first word of "strip", so it can be a program name with args. 1886set dummy strip; ac_word=$2 1887echo "$as_me:$LINENO: checking for $ac_word" >&5 1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1889if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1890 echo $ECHO_N "(cached) $ECHO_C" >&6 1891else 1892 if test -n "$ac_ct_STRIP"; then 1893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1894else 1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1896for as_dir in $PATH 1897do 1898 IFS=$as_save_IFS 1899 test -z "$as_dir" && as_dir=. 1900 for ac_exec_ext in '' $ac_executable_extensions; do 1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1902 ac_cv_prog_ac_ct_STRIP="strip" 1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1904 break 2 1905 fi 1906done 1907done 1908 1909 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1910fi 1911fi 1912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1913if test -n "$ac_ct_STRIP"; then 1914 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1915echo "${ECHO_T}$ac_ct_STRIP" >&6 1916else 1917 echo "$as_me:$LINENO: result: no" >&5 1918echo "${ECHO_T}no" >&6 1919fi 1920 1921 STRIP=$ac_ct_STRIP 1922else 1923 STRIP="$ac_cv_prog_STRIP" 1924fi 1925 1926fi 1927INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1928 1929# We need awk for the "check" target. The system "awk" is bad on 1930# some platforms. 1931 1932 1933 1934 ac_config_headers="$ac_config_headers config.h" 1935 1936echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1937echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1938 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1939if test "${enable_maintainer_mode+set}" = set; then 1940 enableval="$enable_maintainer_mode" 1941 USE_MAINTAINER_MODE=$enableval 1942else 1943 USE_MAINTAINER_MODE=no 1944fi; 1945 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1946echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1947 1948 1949if test $USE_MAINTAINER_MODE = yes; then 1950 MAINTAINER_MODE_TRUE= 1951 MAINTAINER_MODE_FALSE='#' 1952else 1953 MAINTAINER_MODE_TRUE='#' 1954 MAINTAINER_MODE_FALSE= 1955fi 1956 1957 MAINT=$MAINTAINER_MODE_TRUE 1958 1959 1960# Make sure we can run config.sub. 1961$ac_config_sub sun4 >/dev/null 2>&1 || 1962 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1963echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1964 { (exit 1); exit 1; }; } 1965 1966echo "$as_me:$LINENO: checking build system type" >&5 1967echo $ECHO_N "checking build system type... $ECHO_C" >&6 1968if test "${ac_cv_build+set}" = set; then 1969 echo $ECHO_N "(cached) $ECHO_C" >&6 1970else 1971 ac_cv_build_alias=$build_alias 1972test -z "$ac_cv_build_alias" && 1973 ac_cv_build_alias=`$ac_config_guess` 1974test -z "$ac_cv_build_alias" && 1975 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1976echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1977 { (exit 1); exit 1; }; } 1978ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1979 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1980echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1981 { (exit 1); exit 1; }; } 1982 1983fi 1984echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1985echo "${ECHO_T}$ac_cv_build" >&6 1986build=$ac_cv_build 1987build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1988build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1989build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1990 1991 1992echo "$as_me:$LINENO: checking host system type" >&5 1993echo $ECHO_N "checking host system type... $ECHO_C" >&6 1994if test "${ac_cv_host+set}" = set; then 1995 echo $ECHO_N "(cached) $ECHO_C" >&6 1996else 1997 ac_cv_host_alias=$host_alias 1998test -z "$ac_cv_host_alias" && 1999 ac_cv_host_alias=$ac_cv_build_alias 2000ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2001 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2002echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2003 { (exit 1); exit 1; }; } 2004 2005fi 2006echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2007echo "${ECHO_T}$ac_cv_host" >&6 2008host=$ac_cv_host 2009host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2010host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2011host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2012 2013 2014 2015ac_ext=c 2016ac_cpp='$CPP $CPPFLAGS' 2017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2019ac_compiler_gnu=$ac_cv_c_compiler_gnu 2020if test -n "$ac_tool_prefix"; then 2021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2022set dummy ${ac_tool_prefix}gcc; ac_word=$2 2023echo "$as_me:$LINENO: checking for $ac_word" >&5 2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2025if test "${ac_cv_prog_CC+set}" = set; then 2026 echo $ECHO_N "(cached) $ECHO_C" >&6 2027else 2028 if test -n "$CC"; then 2029 ac_cv_prog_CC="$CC" # Let the user override the test. 2030else 2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2032for as_dir in $PATH 2033do 2034 IFS=$as_save_IFS 2035 test -z "$as_dir" && as_dir=. 2036 for ac_exec_ext in '' $ac_executable_extensions; do 2037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2038 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2040 break 2 2041 fi 2042done 2043done 2044 2045fi 2046fi 2047CC=$ac_cv_prog_CC 2048if test -n "$CC"; then 2049 echo "$as_me:$LINENO: result: $CC" >&5 2050echo "${ECHO_T}$CC" >&6 2051else 2052 echo "$as_me:$LINENO: result: no" >&5 2053echo "${ECHO_T}no" >&6 2054fi 2055 2056fi 2057if test -z "$ac_cv_prog_CC"; then 2058 ac_ct_CC=$CC 2059 # Extract the first word of "gcc", so it can be a program name with args. 2060set dummy gcc; ac_word=$2 2061echo "$as_me:$LINENO: checking for $ac_word" >&5 2062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2063if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2064 echo $ECHO_N "(cached) $ECHO_C" >&6 2065else 2066 if test -n "$ac_ct_CC"; then 2067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2068else 2069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2070for as_dir in $PATH 2071do 2072 IFS=$as_save_IFS 2073 test -z "$as_dir" && as_dir=. 2074 for ac_exec_ext in '' $ac_executable_extensions; do 2075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2076 ac_cv_prog_ac_ct_CC="gcc" 2077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2078 break 2 2079 fi 2080done 2081done 2082 2083fi 2084fi 2085ac_ct_CC=$ac_cv_prog_ac_ct_CC 2086if test -n "$ac_ct_CC"; then 2087 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2088echo "${ECHO_T}$ac_ct_CC" >&6 2089else 2090 echo "$as_me:$LINENO: result: no" >&5 2091echo "${ECHO_T}no" >&6 2092fi 2093 2094 CC=$ac_ct_CC 2095else 2096 CC="$ac_cv_prog_CC" 2097fi 2098 2099if test -z "$CC"; then 2100 if test -n "$ac_tool_prefix"; then 2101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2102set dummy ${ac_tool_prefix}cc; ac_word=$2 2103echo "$as_me:$LINENO: checking for $ac_word" >&5 2104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2105if test "${ac_cv_prog_CC+set}" = set; then 2106 echo $ECHO_N "(cached) $ECHO_C" >&6 2107else 2108 if test -n "$CC"; then 2109 ac_cv_prog_CC="$CC" # Let the user override the test. 2110else 2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2112for as_dir in $PATH 2113do 2114 IFS=$as_save_IFS 2115 test -z "$as_dir" && as_dir=. 2116 for ac_exec_ext in '' $ac_executable_extensions; do 2117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2118 ac_cv_prog_CC="${ac_tool_prefix}cc" 2119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2120 break 2 2121 fi 2122done 2123done 2124 2125fi 2126fi 2127CC=$ac_cv_prog_CC 2128if test -n "$CC"; then 2129 echo "$as_me:$LINENO: result: $CC" >&5 2130echo "${ECHO_T}$CC" >&6 2131else 2132 echo "$as_me:$LINENO: result: no" >&5 2133echo "${ECHO_T}no" >&6 2134fi 2135 2136fi 2137if test -z "$ac_cv_prog_CC"; then 2138 ac_ct_CC=$CC 2139 # Extract the first word of "cc", so it can be a program name with args. 2140set dummy cc; ac_word=$2 2141echo "$as_me:$LINENO: checking for $ac_word" >&5 2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2143if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2144 echo $ECHO_N "(cached) $ECHO_C" >&6 2145else 2146 if test -n "$ac_ct_CC"; then 2147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2148else 2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2150for as_dir in $PATH 2151do 2152 IFS=$as_save_IFS 2153 test -z "$as_dir" && as_dir=. 2154 for ac_exec_ext in '' $ac_executable_extensions; do 2155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2156 ac_cv_prog_ac_ct_CC="cc" 2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2158 break 2 2159 fi 2160done 2161done 2162 2163fi 2164fi 2165ac_ct_CC=$ac_cv_prog_ac_ct_CC 2166if test -n "$ac_ct_CC"; then 2167 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2168echo "${ECHO_T}$ac_ct_CC" >&6 2169else 2170 echo "$as_me:$LINENO: result: no" >&5 2171echo "${ECHO_T}no" >&6 2172fi 2173 2174 CC=$ac_ct_CC 2175else 2176 CC="$ac_cv_prog_CC" 2177fi 2178 2179fi 2180if test -z "$CC"; then 2181 # Extract the first word of "cc", so it can be a program name with args. 2182set dummy cc; ac_word=$2 2183echo "$as_me:$LINENO: checking for $ac_word" >&5 2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2185if test "${ac_cv_prog_CC+set}" = set; then 2186 echo $ECHO_N "(cached) $ECHO_C" >&6 2187else 2188 if test -n "$CC"; then 2189 ac_cv_prog_CC="$CC" # Let the user override the test. 2190else 2191 ac_prog_rejected=no 2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2193for as_dir in $PATH 2194do 2195 IFS=$as_save_IFS 2196 test -z "$as_dir" && as_dir=. 2197 for ac_exec_ext in '' $ac_executable_extensions; do 2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2200 ac_prog_rejected=yes 2201 continue 2202 fi 2203 ac_cv_prog_CC="cc" 2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2205 break 2 2206 fi 2207done 2208done 2209 2210if test $ac_prog_rejected = yes; then 2211 # We found a bogon in the path, so make sure we never use it. 2212 set dummy $ac_cv_prog_CC 2213 shift 2214 if test $# != 0; then 2215 # We chose a different compiler from the bogus one. 2216 # However, it has the same basename, so the bogon will be chosen 2217 # first if we set CC to just the basename; use the full file name. 2218 shift 2219 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2220 fi 2221fi 2222fi 2223fi 2224CC=$ac_cv_prog_CC 2225if test -n "$CC"; then 2226 echo "$as_me:$LINENO: result: $CC" >&5 2227echo "${ECHO_T}$CC" >&6 2228else 2229 echo "$as_me:$LINENO: result: no" >&5 2230echo "${ECHO_T}no" >&6 2231fi 2232 2233fi 2234if test -z "$CC"; then 2235 if test -n "$ac_tool_prefix"; then 2236 for ac_prog in cl 2237 do 2238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2239set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2240echo "$as_me:$LINENO: checking for $ac_word" >&5 2241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2242if test "${ac_cv_prog_CC+set}" = set; then 2243 echo $ECHO_N "(cached) $ECHO_C" >&6 2244else 2245 if test -n "$CC"; then 2246 ac_cv_prog_CC="$CC" # Let the user override the test. 2247else 2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2249for as_dir in $PATH 2250do 2251 IFS=$as_save_IFS 2252 test -z "$as_dir" && as_dir=. 2253 for ac_exec_ext in '' $ac_executable_extensions; do 2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2257 break 2 2258 fi 2259done 2260done 2261 2262fi 2263fi 2264CC=$ac_cv_prog_CC 2265if test -n "$CC"; then 2266 echo "$as_me:$LINENO: result: $CC" >&5 2267echo "${ECHO_T}$CC" >&6 2268else 2269 echo "$as_me:$LINENO: result: no" >&5 2270echo "${ECHO_T}no" >&6 2271fi 2272 2273 test -n "$CC" && break 2274 done 2275fi 2276if test -z "$CC"; then 2277 ac_ct_CC=$CC 2278 for ac_prog in cl 2279do 2280 # Extract the first word of "$ac_prog", so it can be a program name with args. 2281set dummy $ac_prog; ac_word=$2 2282echo "$as_me:$LINENO: checking for $ac_word" >&5 2283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2284if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2285 echo $ECHO_N "(cached) $ECHO_C" >&6 2286else 2287 if test -n "$ac_ct_CC"; then 2288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2289else 2290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2291for as_dir in $PATH 2292do 2293 IFS=$as_save_IFS 2294 test -z "$as_dir" && as_dir=. 2295 for ac_exec_ext in '' $ac_executable_extensions; do 2296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2297 ac_cv_prog_ac_ct_CC="$ac_prog" 2298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2299 break 2 2300 fi 2301done 2302done 2303 2304fi 2305fi 2306ac_ct_CC=$ac_cv_prog_ac_ct_CC 2307if test -n "$ac_ct_CC"; then 2308 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2309echo "${ECHO_T}$ac_ct_CC" >&6 2310else 2311 echo "$as_me:$LINENO: result: no" >&5 2312echo "${ECHO_T}no" >&6 2313fi 2314 2315 test -n "$ac_ct_CC" && break 2316done 2317 2318 CC=$ac_ct_CC 2319fi 2320 2321fi 2322 2323 2324test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2325See \`config.log' for more details." >&5 2326echo "$as_me: error: no acceptable C compiler found in \$PATH 2327See \`config.log' for more details." >&2;} 2328 { (exit 1); exit 1; }; } 2329 2330# Provide some information about the compiler. 2331echo "$as_me:$LINENO:" \ 2332 "checking for C compiler version" >&5 2333ac_compiler=`set X $ac_compile; echo $2` 2334{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2335 (eval $ac_compiler --version </dev/null >&5) 2>&5 2336 ac_status=$? 2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2338 (exit $ac_status); } 2339{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2340 (eval $ac_compiler -v </dev/null >&5) 2>&5 2341 ac_status=$? 2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2343 (exit $ac_status); } 2344{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2345 (eval $ac_compiler -V </dev/null >&5) 2>&5 2346 ac_status=$? 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2348 (exit $ac_status); } 2349 2350cat >conftest.$ac_ext <<_ACEOF 2351/* confdefs.h. */ 2352_ACEOF 2353cat confdefs.h >>conftest.$ac_ext 2354cat >>conftest.$ac_ext <<_ACEOF 2355/* end confdefs.h. */ 2356 2357int 2358main () 2359{ 2360 2361 ; 2362 return 0; 2363} 2364_ACEOF 2365ac_clean_files_save=$ac_clean_files 2366ac_clean_files="$ac_clean_files a.out a.exe b.out" 2367# Try to create an executable without -o first, disregard a.out. 2368# It will help us diagnose broken compilers, and finding out an intuition 2369# of exeext. 2370echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2371echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2372ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2373if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2374 (eval $ac_link_default) 2>&5 2375 ac_status=$? 2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2377 (exit $ac_status); }; then 2378 # Find the output, starting from the most likely. This scheme is 2379# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2380# resort. 2381 2382# Be careful to initialize this variable, since it used to be cached. 2383# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2384ac_cv_exeext= 2385# b.out is created by i960 compilers. 2386for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2387do 2388 test -f "$ac_file" || continue 2389 case $ac_file in 2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2391 ;; 2392 conftest.$ac_ext ) 2393 # This is the source file. 2394 ;; 2395 [ab].out ) 2396 # We found the default executable, but exeext='' is most 2397 # certainly right. 2398 break;; 2399 *.* ) 2400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2401 # FIXME: I believe we export ac_cv_exeext for Libtool, 2402 # but it would be cool to find out if it's true. Does anybody 2403 # maintain Libtool? --akim. 2404 export ac_cv_exeext 2405 break;; 2406 * ) 2407 break;; 2408 esac 2409done 2410else 2411 echo "$as_me: failed program was:" >&5 2412sed 's/^/| /' conftest.$ac_ext >&5 2413 2414{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2415See \`config.log' for more details." >&5 2416echo "$as_me: error: C compiler cannot create executables 2417See \`config.log' for more details." >&2;} 2418 { (exit 77); exit 77; }; } 2419fi 2420 2421ac_exeext=$ac_cv_exeext 2422echo "$as_me:$LINENO: result: $ac_file" >&5 2423echo "${ECHO_T}$ac_file" >&6 2424 2425# Check the compiler produces executables we can run. If not, either 2426# the compiler is broken, or we cross compile. 2427echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2428echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2429# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2430# If not cross compiling, check that we can run a simple program. 2431if test "$cross_compiling" != yes; then 2432 if { ac_try='./$ac_file' 2433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2434 (eval $ac_try) 2>&5 2435 ac_status=$? 2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2437 (exit $ac_status); }; }; then 2438 cross_compiling=no 2439 else 2440 if test "$cross_compiling" = maybe; then 2441 cross_compiling=yes 2442 else 2443 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2444If you meant to cross compile, use \`--host'. 2445See \`config.log' for more details." >&5 2446echo "$as_me: error: cannot run C compiled programs. 2447If you meant to cross compile, use \`--host'. 2448See \`config.log' for more details." >&2;} 2449 { (exit 1); exit 1; }; } 2450 fi 2451 fi 2452fi 2453echo "$as_me:$LINENO: result: yes" >&5 2454echo "${ECHO_T}yes" >&6 2455 2456rm -f a.out a.exe conftest$ac_cv_exeext b.out 2457ac_clean_files=$ac_clean_files_save 2458# Check the compiler produces executables we can run. If not, either 2459# the compiler is broken, or we cross compile. 2460echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2461echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2462echo "$as_me:$LINENO: result: $cross_compiling" >&5 2463echo "${ECHO_T}$cross_compiling" >&6 2464 2465echo "$as_me:$LINENO: checking for suffix of executables" >&5 2466echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2468 (eval $ac_link) 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); }; then 2472 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2473# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2474# work properly (i.e., refer to `conftest.exe'), while it won't with 2475# `rm'. 2476for ac_file in conftest.exe conftest conftest.*; do 2477 test -f "$ac_file" || continue 2478 case $ac_file in 2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2481 export ac_cv_exeext 2482 break;; 2483 * ) break;; 2484 esac 2485done 2486else 2487 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2488See \`config.log' for more details." >&5 2489echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2490See \`config.log' for more details." >&2;} 2491 { (exit 1); exit 1; }; } 2492fi 2493 2494rm -f conftest$ac_cv_exeext 2495echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2496echo "${ECHO_T}$ac_cv_exeext" >&6 2497 2498rm -f conftest.$ac_ext 2499EXEEXT=$ac_cv_exeext 2500ac_exeext=$EXEEXT 2501echo "$as_me:$LINENO: checking for suffix of object files" >&5 2502echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2503if test "${ac_cv_objext+set}" = set; then 2504 echo $ECHO_N "(cached) $ECHO_C" >&6 2505else 2506 cat >conftest.$ac_ext <<_ACEOF 2507/* confdefs.h. */ 2508_ACEOF 2509cat confdefs.h >>conftest.$ac_ext 2510cat >>conftest.$ac_ext <<_ACEOF 2511/* end confdefs.h. */ 2512 2513int 2514main () 2515{ 2516 2517 ; 2518 return 0; 2519} 2520_ACEOF 2521rm -f conftest.o conftest.obj 2522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2523 (eval $ac_compile) 2>&5 2524 ac_status=$? 2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 (exit $ac_status); }; then 2527 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2528 case $ac_file in 2529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2531 break;; 2532 esac 2533done 2534else 2535 echo "$as_me: failed program was:" >&5 2536sed 's/^/| /' conftest.$ac_ext >&5 2537 2538{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2539See \`config.log' for more details." >&5 2540echo "$as_me: error: cannot compute suffix of object files: cannot compile 2541See \`config.log' for more details." >&2;} 2542 { (exit 1); exit 1; }; } 2543fi 2544 2545rm -f conftest.$ac_cv_objext conftest.$ac_ext 2546fi 2547echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2548echo "${ECHO_T}$ac_cv_objext" >&6 2549OBJEXT=$ac_cv_objext 2550ac_objext=$OBJEXT 2551echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2552echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2553if test "${ac_cv_c_compiler_gnu+set}" = set; then 2554 echo $ECHO_N "(cached) $ECHO_C" >&6 2555else 2556 cat >conftest.$ac_ext <<_ACEOF 2557/* confdefs.h. */ 2558_ACEOF 2559cat confdefs.h >>conftest.$ac_ext 2560cat >>conftest.$ac_ext <<_ACEOF 2561/* end confdefs.h. */ 2562 2563int 2564main () 2565{ 2566#ifndef __GNUC__ 2567 choke me 2568#endif 2569 2570 ; 2571 return 0; 2572} 2573_ACEOF 2574rm -f conftest.$ac_objext 2575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2576 (eval $ac_compile) 2>conftest.er1 2577 ac_status=$? 2578 grep -v '^ *+' conftest.er1 >conftest.err 2579 rm -f conftest.er1 2580 cat conftest.err >&5 2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582 (exit $ac_status); } && 2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2585 (eval $ac_try) 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); }; } && 2589 { ac_try='test -s conftest.$ac_objext' 2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2591 (eval $ac_try) 2>&5 2592 ac_status=$? 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); }; }; then 2595 ac_compiler_gnu=yes 2596else 2597 echo "$as_me: failed program was:" >&5 2598sed 's/^/| /' conftest.$ac_ext >&5 2599 2600ac_compiler_gnu=no 2601fi 2602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2603ac_cv_c_compiler_gnu=$ac_compiler_gnu 2604 2605fi 2606echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2607echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2608GCC=`test $ac_compiler_gnu = yes && echo yes` 2609ac_test_CFLAGS=${CFLAGS+set} 2610ac_save_CFLAGS=$CFLAGS 2611CFLAGS="-g" 2612echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2613echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2614if test "${ac_cv_prog_cc_g+set}" = set; then 2615 echo $ECHO_N "(cached) $ECHO_C" >&6 2616else 2617 cat >conftest.$ac_ext <<_ACEOF 2618/* confdefs.h. */ 2619_ACEOF 2620cat confdefs.h >>conftest.$ac_ext 2621cat >>conftest.$ac_ext <<_ACEOF 2622/* end confdefs.h. */ 2623 2624int 2625main () 2626{ 2627 2628 ; 2629 return 0; 2630} 2631_ACEOF 2632rm -f conftest.$ac_objext 2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2634 (eval $ac_compile) 2>conftest.er1 2635 ac_status=$? 2636 grep -v '^ *+' conftest.er1 >conftest.err 2637 rm -f conftest.er1 2638 cat conftest.err >&5 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); } && 2641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2643 (eval $ac_try) 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); }; } && 2647 { ac_try='test -s conftest.$ac_objext' 2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2649 (eval $ac_try) 2>&5 2650 ac_status=$? 2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2652 (exit $ac_status); }; }; then 2653 ac_cv_prog_cc_g=yes 2654else 2655 echo "$as_me: failed program was:" >&5 2656sed 's/^/| /' conftest.$ac_ext >&5 2657 2658ac_cv_prog_cc_g=no 2659fi 2660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2661fi 2662echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2663echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2664if test "$ac_test_CFLAGS" = set; then 2665 CFLAGS=$ac_save_CFLAGS 2666elif test $ac_cv_prog_cc_g = yes; then 2667 if test "$GCC" = yes; then 2668 CFLAGS="-g -O2" 2669 else 2670 CFLAGS="-g" 2671 fi 2672else 2673 if test "$GCC" = yes; then 2674 CFLAGS="-O2" 2675 else 2676 CFLAGS= 2677 fi 2678fi 2679echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2680echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2681if test "${ac_cv_prog_cc_stdc+set}" = set; then 2682 echo $ECHO_N "(cached) $ECHO_C" >&6 2683else 2684 ac_cv_prog_cc_stdc=no 2685ac_save_CC=$CC 2686cat >conftest.$ac_ext <<_ACEOF 2687/* confdefs.h. */ 2688_ACEOF 2689cat confdefs.h >>conftest.$ac_ext 2690cat >>conftest.$ac_ext <<_ACEOF 2691/* end confdefs.h. */ 2692#include <stdarg.h> 2693#include <stdio.h> 2694#include <sys/types.h> 2695#include <sys/stat.h> 2696/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2697struct buf { int x; }; 2698FILE * (*rcsopen) (struct buf *, struct stat *, int); 2699static char *e (p, i) 2700 char **p; 2701 int i; 2702{ 2703 return p[i]; 2704} 2705static char *f (char * (*g) (char **, int), char **p, ...) 2706{ 2707 char *s; 2708 va_list v; 2709 va_start (v,p); 2710 s = g (p, va_arg (v,int)); 2711 va_end (v); 2712 return s; 2713} 2714 2715/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2716 function prototypes and stuff, but not '\xHH' hex character constants. 2717 These don't provoke an error unfortunately, instead are silently treated 2718 as 'x'. The following induces an error, until -std1 is added to get 2719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2720 array size at least. It's necessary to write '\x00'==0 to get something 2721 that's true only with -std1. */ 2722int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2723 2724int test (int i, double x); 2725struct s1 {int (*f) (int a);}; 2726struct s2 {int (*f) (double a);}; 2727int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2728int argc; 2729char **argv; 2730int 2731main () 2732{ 2733return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2734 ; 2735 return 0; 2736} 2737_ACEOF 2738# Don't try gcc -ansi; that turns off useful extensions and 2739# breaks some systems' header files. 2740# AIX -qlanglvl=ansi 2741# Ultrix and OSF/1 -std1 2742# HP-UX 10.20 and later -Ae 2743# HP-UX older versions -Aa -D_HPUX_SOURCE 2744# SVR4 -Xc -D__EXTENSIONS__ 2745for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2746do 2747 CC="$ac_save_CC $ac_arg" 2748 rm -f conftest.$ac_objext 2749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2750 (eval $ac_compile) 2>conftest.er1 2751 ac_status=$? 2752 grep -v '^ *+' conftest.er1 >conftest.err 2753 rm -f conftest.er1 2754 cat conftest.err >&5 2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2756 (exit $ac_status); } && 2757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2759 (eval $ac_try) 2>&5 2760 ac_status=$? 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); }; } && 2763 { ac_try='test -s conftest.$ac_objext' 2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2765 (eval $ac_try) 2>&5 2766 ac_status=$? 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); }; }; then 2769 ac_cv_prog_cc_stdc=$ac_arg 2770break 2771else 2772 echo "$as_me: failed program was:" >&5 2773sed 's/^/| /' conftest.$ac_ext >&5 2774 2775fi 2776rm -f conftest.err conftest.$ac_objext 2777done 2778rm -f conftest.$ac_ext conftest.$ac_objext 2779CC=$ac_save_CC 2780 2781fi 2782 2783case "x$ac_cv_prog_cc_stdc" in 2784 x|xno) 2785 echo "$as_me:$LINENO: result: none needed" >&5 2786echo "${ECHO_T}none needed" >&6 ;; 2787 *) 2788 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2789echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2790 CC="$CC $ac_cv_prog_cc_stdc" ;; 2791esac 2792 2793# Some people use a C++ compiler to compile C. Since we use `exit', 2794# in C++ we need to declare it. In case someone uses the same compiler 2795# for both compiling C and C++ we need to have the C++ compiler decide 2796# the declaration of exit, since it's the most demanding environment. 2797cat >conftest.$ac_ext <<_ACEOF 2798#ifndef __cplusplus 2799 choke me 2800#endif 2801_ACEOF 2802rm -f conftest.$ac_objext 2803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2804 (eval $ac_compile) 2>conftest.er1 2805 ac_status=$? 2806 grep -v '^ *+' conftest.er1 >conftest.err 2807 rm -f conftest.er1 2808 cat conftest.err >&5 2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2810 (exit $ac_status); } && 2811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2813 (eval $ac_try) 2>&5 2814 ac_status=$? 2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2816 (exit $ac_status); }; } && 2817 { ac_try='test -s conftest.$ac_objext' 2818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2819 (eval $ac_try) 2>&5 2820 ac_status=$? 2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2822 (exit $ac_status); }; }; then 2823 for ac_declaration in \ 2824 '' \ 2825 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2826 'extern "C" void std::exit (int); using std::exit;' \ 2827 'extern "C" void exit (int) throw ();' \ 2828 'extern "C" void exit (int);' \ 2829 'void exit (int);' 2830do 2831 cat >conftest.$ac_ext <<_ACEOF 2832/* confdefs.h. */ 2833_ACEOF 2834cat confdefs.h >>conftest.$ac_ext 2835cat >>conftest.$ac_ext <<_ACEOF 2836/* end confdefs.h. */ 2837$ac_declaration 2838#include <stdlib.h> 2839int 2840main () 2841{ 2842exit (42); 2843 ; 2844 return 0; 2845} 2846_ACEOF 2847rm -f conftest.$ac_objext 2848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2849 (eval $ac_compile) 2>conftest.er1 2850 ac_status=$? 2851 grep -v '^ *+' conftest.er1 >conftest.err 2852 rm -f conftest.er1 2853 cat conftest.err >&5 2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2855 (exit $ac_status); } && 2856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2858 (eval $ac_try) 2>&5 2859 ac_status=$? 2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2861 (exit $ac_status); }; } && 2862 { ac_try='test -s conftest.$ac_objext' 2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2864 (eval $ac_try) 2>&5 2865 ac_status=$? 2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2867 (exit $ac_status); }; }; then 2868 : 2869else 2870 echo "$as_me: failed program was:" >&5 2871sed 's/^/| /' conftest.$ac_ext >&5 2872 2873continue 2874fi 2875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2876 cat >conftest.$ac_ext <<_ACEOF 2877/* confdefs.h. */ 2878_ACEOF 2879cat confdefs.h >>conftest.$ac_ext 2880cat >>conftest.$ac_ext <<_ACEOF 2881/* end confdefs.h. */ 2882$ac_declaration 2883int 2884main () 2885{ 2886exit (42); 2887 ; 2888 return 0; 2889} 2890_ACEOF 2891rm -f conftest.$ac_objext 2892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2893 (eval $ac_compile) 2>conftest.er1 2894 ac_status=$? 2895 grep -v '^ *+' conftest.er1 >conftest.err 2896 rm -f conftest.er1 2897 cat conftest.err >&5 2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2899 (exit $ac_status); } && 2900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2902 (eval $ac_try) 2>&5 2903 ac_status=$? 2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2905 (exit $ac_status); }; } && 2906 { ac_try='test -s conftest.$ac_objext' 2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2908 (eval $ac_try) 2>&5 2909 ac_status=$? 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); }; }; then 2912 break 2913else 2914 echo "$as_me: failed program was:" >&5 2915sed 's/^/| /' conftest.$ac_ext >&5 2916 2917fi 2918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2919done 2920rm -f conftest* 2921if test -n "$ac_declaration"; then 2922 echo '#ifdef __cplusplus' >>confdefs.h 2923 echo $ac_declaration >>confdefs.h 2924 echo '#endif' >>confdefs.h 2925fi 2926 2927else 2928 echo "$as_me: failed program was:" >&5 2929sed 's/^/| /' conftest.$ac_ext >&5 2930 2931fi 2932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2933ac_ext=c 2934ac_cpp='$CPP $CPPFLAGS' 2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938DEPDIR="${am__leading_dot}deps" 2939 2940 ac_config_commands="$ac_config_commands depfiles" 2941 2942 2943am_make=${MAKE-make} 2944cat > confinc << 'END' 2945am__doit: 2946 @echo done 2947.PHONY: am__doit 2948END 2949# If we don't find an include directive, just comment out the code. 2950echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2951echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2952am__include="#" 2953am__quote= 2954_am_result=none 2955# First try GNU make style include. 2956echo "include confinc" > confmf 2957# We grep out `Entering directory' and `Leaving directory' 2958# messages which can occur if `w' ends up in MAKEFLAGS. 2959# In particular we don't look at `^make:' because GNU make might 2960# be invoked under some other name (usually "gmake"), in which 2961# case it prints its new name instead of `make'. 2962if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2963 am__include=include 2964 am__quote= 2965 _am_result=GNU 2966fi 2967# Now try BSD make style include. 2968if test "$am__include" = "#"; then 2969 echo '.include "confinc"' > confmf 2970 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2971 am__include=.include 2972 am__quote="\"" 2973 _am_result=BSD 2974 fi 2975fi 2976 2977 2978echo "$as_me:$LINENO: result: $_am_result" >&5 2979echo "${ECHO_T}$_am_result" >&6 2980rm -f confinc confmf 2981 2982# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2983if test "${enable_dependency_tracking+set}" = set; then 2984 enableval="$enable_dependency_tracking" 2985 2986fi; 2987if test "x$enable_dependency_tracking" != xno; then 2988 am_depcomp="$ac_aux_dir/depcomp" 2989 AMDEPBACKSLASH='\' 2990fi 2991 2992 2993if test "x$enable_dependency_tracking" != xno; then 2994 AMDEP_TRUE= 2995 AMDEP_FALSE='#' 2996else 2997 AMDEP_TRUE='#' 2998 AMDEP_FALSE= 2999fi 3000 3001 3002 3003 3004depcc="$CC" am_compiler_list= 3005 3006echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3007echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3008if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3009 echo $ECHO_N "(cached) $ECHO_C" >&6 3010else 3011 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3012 # We make a subdir and do the tests there. Otherwise we can end up 3013 # making bogus files that we don't know about and never remove. For 3014 # instance it was reported that on HP-UX the gcc test will end up 3015 # making a dummy file named `D' -- because `-MD' means `put the output 3016 # in D'. 3017 mkdir conftest.dir 3018 # Copy depcomp to subdir because otherwise we won't find it if we're 3019 # using a relative directory. 3020 cp "$am_depcomp" conftest.dir 3021 cd conftest.dir 3022 # We will build objects and dependencies in a subdirectory because 3023 # it helps to detect inapplicable dependency modes. For instance 3024 # both Tru64's cc and ICC support -MD to output dependencies as a 3025 # side effect of compilation, but ICC will put the dependencies in 3026 # the current directory while Tru64 will put them in the object 3027 # directory. 3028 mkdir sub 3029 3030 am_cv_CC_dependencies_compiler_type=none 3031 if test "$am_compiler_list" = ""; then 3032 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3033 fi 3034 for depmode in $am_compiler_list; do 3035 # Setup a source with many dependencies, because some compilers 3036 # like to wrap large dependency lists on column 80 (with \), and 3037 # we should not choose a depcomp mode which is confused by this. 3038 # 3039 # We need to recreate these files for each test, as the compiler may 3040 # overwrite some of them when testing with obscure command lines. 3041 # This happens at least with the AIX C compiler. 3042 : > sub/conftest.c 3043 for i in 1 2 3 4 5 6; do 3044 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3045 : > sub/conftst$i.h 3046 done 3047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3048 3049 case $depmode in 3050 nosideeffect) 3051 # after this tag, mechanisms are not by side-effect, so they'll 3052 # only be used when explicitly requested 3053 if test "x$enable_dependency_tracking" = xyes; then 3054 continue 3055 else 3056 break 3057 fi 3058 ;; 3059 none) break ;; 3060 esac 3061 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3062 # mode. It turns out that the SunPro C++ compiler does not properly 3063 # handle `-M -o', and we need to detect this. 3064 if depmode=$depmode \ 3065 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3067 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3068 >/dev/null 2>conftest.err && 3069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3070 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3072 # icc doesn't choke on unknown options, it will just issue warnings 3073 # (even with -Werror). So we grep stderr for any message 3074 # that says an option was ignored. 3075 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 3076 am_cv_CC_dependencies_compiler_type=$depmode 3077 break 3078 fi 3079 fi 3080 done 3081 3082 cd .. 3083 rm -rf conftest.dir 3084else 3085 am_cv_CC_dependencies_compiler_type=none 3086fi 3087 3088fi 3089echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3090echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3091CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3092 3093 3094 3095if 3096 test "x$enable_dependency_tracking" != xno \ 3097 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3098 am__fastdepCC_TRUE= 3099 am__fastdepCC_FALSE='#' 3100else 3101 am__fastdepCC_TRUE='#' 3102 am__fastdepCC_FALSE= 3103fi 3104 3105 3106# Check whether --enable-shared or --disable-shared was given. 3107if test "${enable_shared+set}" = set; then 3108 enableval="$enable_shared" 3109 p=${PACKAGE-default} 3110 case $enableval in 3111 yes) enable_shared=yes ;; 3112 no) enable_shared=no ;; 3113 *) 3114 enable_shared=no 3115 # Look at the argument we got. We use all the common list separators. 3116 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3117 for pkg in $enableval; do 3118 IFS="$lt_save_ifs" 3119 if test "X$pkg" = "X$p"; then 3120 enable_shared=yes 3121 fi 3122 done 3123 IFS="$lt_save_ifs" 3124 ;; 3125 esac 3126else 3127 enable_shared=yes 3128fi; 3129 3130# Check whether --enable-static or --disable-static was given. 3131if test "${enable_static+set}" = set; then 3132 enableval="$enable_static" 3133 p=${PACKAGE-default} 3134 case $enableval in 3135 yes) enable_static=yes ;; 3136 no) enable_static=no ;; 3137 *) 3138 enable_static=no 3139 # Look at the argument we got. We use all the common list separators. 3140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3141 for pkg in $enableval; do 3142 IFS="$lt_save_ifs" 3143 if test "X$pkg" = "X$p"; then 3144 enable_static=yes 3145 fi 3146 done 3147 IFS="$lt_save_ifs" 3148 ;; 3149 esac 3150else 3151 enable_static=yes 3152fi; 3153 3154# Check whether --enable-fast-install or --disable-fast-install was given. 3155if test "${enable_fast_install+set}" = set; then 3156 enableval="$enable_fast_install" 3157 p=${PACKAGE-default} 3158 case $enableval in 3159 yes) enable_fast_install=yes ;; 3160 no) enable_fast_install=no ;; 3161 *) 3162 enable_fast_install=no 3163 # Look at the argument we got. We use all the common list separators. 3164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3165 for pkg in $enableval; do 3166 IFS="$lt_save_ifs" 3167 if test "X$pkg" = "X$p"; then 3168 enable_fast_install=yes 3169 fi 3170 done 3171 IFS="$lt_save_ifs" 3172 ;; 3173 esac 3174else 3175 enable_fast_install=yes 3176fi; 3177 3178echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3179echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3180if test "${lt_cv_path_SED+set}" = set; then 3181 echo $ECHO_N "(cached) $ECHO_C" >&6 3182else 3183 # Loop through the user's path and test for sed and gsed. 3184# Then use that list of sed's as ones to test for truncation. 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH 3187do 3188 IFS=$as_save_IFS 3189 test -z "$as_dir" && as_dir=. 3190 for lt_ac_prog in sed gsed; do 3191 for ac_exec_ext in '' $ac_executable_extensions; do 3192 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3193 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3194 fi 3195 done 3196 done 3197done 3198lt_ac_max=0 3199lt_ac_count=0 3200# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3201# along with /bin/sed that truncates output. 3202for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3203 test ! -f $lt_ac_sed && break 3204 cat /dev/null > conftest.in 3205 lt_ac_count=0 3206 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3207 # Check for GNU sed and select it if it is found. 3208 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3209 lt_cv_path_SED=$lt_ac_sed 3210 break 3211 fi 3212 while true; do 3213 cat conftest.in conftest.in >conftest.tmp 3214 mv conftest.tmp conftest.in 3215 cp conftest.in conftest.nl 3216 echo >>conftest.nl 3217 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3218 cmp -s conftest.out conftest.nl || break 3219 # 10000 chars as input seems more than enough 3220 test $lt_ac_count -gt 10 && break 3221 lt_ac_count=`expr $lt_ac_count + 1` 3222 if test $lt_ac_count -gt $lt_ac_max; then 3223 lt_ac_max=$lt_ac_count 3224 lt_cv_path_SED=$lt_ac_sed 3225 fi 3226 done 3227done 3228SED=$lt_cv_path_SED 3229 3230fi 3231 3232echo "$as_me:$LINENO: result: $SED" >&5 3233echo "${ECHO_T}$SED" >&6 3234 3235echo "$as_me:$LINENO: checking for egrep" >&5 3236echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3237if test "${ac_cv_prog_egrep+set}" = set; then 3238 echo $ECHO_N "(cached) $ECHO_C" >&6 3239else 3240 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3241 then ac_cv_prog_egrep='grep -E' 3242 else ac_cv_prog_egrep='egrep' 3243 fi 3244fi 3245echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3246echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3247 EGREP=$ac_cv_prog_egrep 3248 3249 3250 3251# Check whether --with-gnu-ld or --without-gnu-ld was given. 3252if test "${with_gnu_ld+set}" = set; then 3253 withval="$with_gnu_ld" 3254 test "$withval" = no || with_gnu_ld=yes 3255else 3256 with_gnu_ld=no 3257fi; 3258ac_prog=ld 3259if test "$GCC" = yes; then 3260 # Check if gcc -print-prog-name=ld gives a path. 3261 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3262echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3263 case $host in 3264 *-*-mingw*) 3265 # gcc leaves a trailing carriage return which upsets mingw 3266 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3267 *) 3268 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3269 esac 3270 case $ac_prog in 3271 # Accept absolute paths. 3272 [\\/]* | ?:[\\/]*) 3273 re_direlt='/[^/][^/]*/\.\./' 3274 # Canonicalize the pathname of ld 3275 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3276 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3277 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3278 done 3279 test -z "$LD" && LD="$ac_prog" 3280 ;; 3281 "") 3282 # If it fails, then pretend we aren't using GCC. 3283 ac_prog=ld 3284 ;; 3285 *) 3286 # If it is relative, then search for the first ld in PATH. 3287 with_gnu_ld=unknown 3288 ;; 3289 esac 3290elif test "$with_gnu_ld" = yes; then 3291 echo "$as_me:$LINENO: checking for GNU ld" >&5 3292echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3293else 3294 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3295echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3296fi 3297if test "${lt_cv_path_LD+set}" = set; then 3298 echo $ECHO_N "(cached) $ECHO_C" >&6 3299else 3300 if test -z "$LD"; then 3301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3302 for ac_dir in $PATH; do 3303 IFS="$lt_save_ifs" 3304 test -z "$ac_dir" && ac_dir=. 3305 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3306 lt_cv_path_LD="$ac_dir/$ac_prog" 3307 # Check to see if the program is GNU ld. I'd rather use --version, 3308 # but apparently some GNU ld's only accept -v. 3309 # Break only if it was the GNU/non-GNU ld that we prefer. 3310 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3311 *GNU* | *'with BFD'*) 3312 test "$with_gnu_ld" != no && break 3313 ;; 3314 *) 3315 test "$with_gnu_ld" != yes && break 3316 ;; 3317 esac 3318 fi 3319 done 3320 IFS="$lt_save_ifs" 3321else 3322 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3323fi 3324fi 3325 3326LD="$lt_cv_path_LD" 3327if test -n "$LD"; then 3328 echo "$as_me:$LINENO: result: $LD" >&5 3329echo "${ECHO_T}$LD" >&6 3330else 3331 echo "$as_me:$LINENO: result: no" >&5 3332echo "${ECHO_T}no" >&6 3333fi 3334test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3335echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3336 { (exit 1); exit 1; }; } 3337echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3338echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3339if test "${lt_cv_prog_gnu_ld+set}" = set; then 3340 echo $ECHO_N "(cached) $ECHO_C" >&6 3341else 3342 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3343case `$LD -v 2>&1 </dev/null` in 3344*GNU* | *'with BFD'*) 3345 lt_cv_prog_gnu_ld=yes 3346 ;; 3347*) 3348 lt_cv_prog_gnu_ld=no 3349 ;; 3350esac 3351fi 3352echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3353echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3354with_gnu_ld=$lt_cv_prog_gnu_ld 3355 3356 3357echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3358echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3359if test "${lt_cv_ld_reload_flag+set}" = set; then 3360 echo $ECHO_N "(cached) $ECHO_C" >&6 3361else 3362 lt_cv_ld_reload_flag='-r' 3363fi 3364echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3365echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3366reload_flag=$lt_cv_ld_reload_flag 3367case $reload_flag in 3368"" | " "*) ;; 3369*) reload_flag=" $reload_flag" ;; 3370esac 3371reload_cmds='$LD$reload_flag -o $output$reload_objs' 3372 3373echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3374echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3375if test "${lt_cv_path_NM+set}" = set; then 3376 echo $ECHO_N "(cached) $ECHO_C" >&6 3377else 3378 if test -n "$NM"; then 3379 # Let the user override the test. 3380 lt_cv_path_NM="$NM" 3381else 3382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3383 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3384 IFS="$lt_save_ifs" 3385 test -z "$ac_dir" && ac_dir=. 3386 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3387 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3388 # Check to see if the nm accepts a BSD-compat flag. 3389 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3390 # nm: unknown option "B" ignored 3391 # Tru64's nm complains that /dev/null is an invalid object file 3392 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3393 */dev/null* | *'Invalid file or object type'*) 3394 lt_cv_path_NM="$tmp_nm -B" 3395 break 3396 ;; 3397 *) 3398 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3399 */dev/null*) 3400 lt_cv_path_NM="$tmp_nm -p" 3401 break 3402 ;; 3403 *) 3404 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3405 continue # so that we can try to find one that supports BSD flags 3406 ;; 3407 esac 3408 esac 3409 fi 3410 done 3411 IFS="$lt_save_ifs" 3412 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3413fi 3414fi 3415echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3416echo "${ECHO_T}$lt_cv_path_NM" >&6 3417NM="$lt_cv_path_NM" 3418 3419echo "$as_me:$LINENO: checking whether ln -s works" >&5 3420echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3421LN_S=$as_ln_s 3422if test "$LN_S" = "ln -s"; then 3423 echo "$as_me:$LINENO: result: yes" >&5 3424echo "${ECHO_T}yes" >&6 3425else 3426 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3427echo "${ECHO_T}no, using $LN_S" >&6 3428fi 3429 3430echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3431echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3432if test "${lt_cv_deplibs_check_method+set}" = set; then 3433 echo $ECHO_N "(cached) $ECHO_C" >&6 3434else 3435 lt_cv_file_magic_cmd='$MAGIC_CMD' 3436lt_cv_file_magic_test_file= 3437lt_cv_deplibs_check_method='unknown' 3438# Need to set the preceding variable on all platforms that support 3439# interlibrary dependencies. 3440# 'none' -- dependencies not supported. 3441# `unknown' -- same as none, but documents that we really don't know. 3442# 'pass_all' -- all dependencies passed with no checks. 3443# 'test_compile' -- check by making test program. 3444# 'file_magic [[regex]]' -- check by looking for files in library path 3445# which responds to the $file_magic_cmd with a given extended regex. 3446# If you have `file' or equivalent on your system and you're not sure 3447# whether `pass_all' will *always* work, you probably want this one. 3448 3449case $host_os in 3450aix4* | aix5*) 3451 lt_cv_deplibs_check_method=pass_all 3452 ;; 3453 3454beos*) 3455 lt_cv_deplibs_check_method=pass_all 3456 ;; 3457 3458bsdi4*) 3459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3460 lt_cv_file_magic_cmd='/usr/bin/file -L' 3461 lt_cv_file_magic_test_file=/shlib/libc.so 3462 ;; 3463 3464cygwin*) 3465 # func_win32_libid is a shell function defined in ltmain.sh 3466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3467 lt_cv_file_magic_cmd='func_win32_libid' 3468 ;; 3469 3470mingw* | pw32*) 3471 # Base MSYS/MinGW do not provide the 'file' command needed by 3472 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3473 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3474 lt_cv_file_magic_cmd='$OBJDUMP -f' 3475 ;; 3476 3477darwin* | rhapsody*) 3478 lt_cv_deplibs_check_method=pass_all 3479 ;; 3480 3481freebsd* | kfreebsd*-gnu) 3482 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3483 case $host_cpu in 3484 i*86 ) 3485 # Not sure whether the presence of OpenBSD here was a mistake. 3486 # Let's accept both of them until this is cleared up. 3487 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3488 lt_cv_file_magic_cmd=/usr/bin/file 3489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3490 ;; 3491 esac 3492 else 3493 lt_cv_deplibs_check_method=pass_all 3494 fi 3495 ;; 3496 3497gnu*) 3498 lt_cv_deplibs_check_method=pass_all 3499 ;; 3500 3501hpux10.20* | hpux11*) 3502 lt_cv_file_magic_cmd=/usr/bin/file 3503 case "$host_cpu" in 3504 ia64*) 3505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3506 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3507 ;; 3508 hppa*64*) 3509 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]' 3510 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3511 ;; 3512 *) 3513 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3514 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3515 ;; 3516 esac 3517 ;; 3518 3519irix5* | irix6* | nonstopux*) 3520 case $LD in 3521 *-32|*"-32 ") libmagic=32-bit;; 3522 *-n32|*"-n32 ") libmagic=N32;; 3523 *-64|*"-64 ") libmagic=64-bit;; 3524 *) libmagic=never-match;; 3525 esac 3526 lt_cv_deplibs_check_method=pass_all 3527 ;; 3528 3529# This must be Linux ELF. 3530linux*) 3531 lt_cv_deplibs_check_method=pass_all 3532 ;; 3533 3534netbsd* | knetbsd*-gnu) 3535 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3537 else 3538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3539 fi 3540 ;; 3541 3542newos6*) 3543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3544 lt_cv_file_magic_cmd=/usr/bin/file 3545 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3546 ;; 3547 3548nto-qnx*) 3549 lt_cv_deplibs_check_method=unknown 3550 ;; 3551 3552openbsd*) 3553 lt_cv_file_magic_cmd=/usr/bin/file 3554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3555 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3557 else 3558 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3559 fi 3560 ;; 3561 3562osf3* | osf4* | osf5*) 3563 lt_cv_deplibs_check_method=pass_all 3564 ;; 3565 3566sco3.2v5*) 3567 lt_cv_deplibs_check_method=pass_all 3568 ;; 3569 3570solaris*) 3571 lt_cv_deplibs_check_method=pass_all 3572 ;; 3573 3574sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3575 case $host_vendor in 3576 motorola) 3577 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]' 3578 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3579 ;; 3580 ncr) 3581 lt_cv_deplibs_check_method=pass_all 3582 ;; 3583 sequent) 3584 lt_cv_file_magic_cmd='/bin/file' 3585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3586 ;; 3587 sni) 3588 lt_cv_file_magic_cmd='/bin/file' 3589 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3590 lt_cv_file_magic_test_file=/lib/libc.so 3591 ;; 3592 siemens) 3593 lt_cv_deplibs_check_method=pass_all 3594 ;; 3595 esac 3596 ;; 3597 3598sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3599 lt_cv_deplibs_check_method=pass_all 3600 ;; 3601esac 3602 3603fi 3604echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3605echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3606file_magic_cmd=$lt_cv_file_magic_cmd 3607deplibs_check_method=$lt_cv_deplibs_check_method 3608test -z "$deplibs_check_method" && deplibs_check_method=unknown 3609 3610 3611 3612 3613# If no C compiler was specified, use CC. 3614LTCC=${LTCC-"$CC"} 3615 3616# Allow CC to be a program name with arguments. 3617compiler=$CC 3618 3619 3620# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3621if test "${enable_libtool_lock+set}" = set; then 3622 enableval="$enable_libtool_lock" 3623 3624fi; 3625test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3626 3627# Some flags need to be propagated to the compiler or linker for good 3628# libtool support. 3629case $host in 3630ia64-*-hpux*) 3631 # Find out which ABI we are using. 3632 echo 'int i;' > conftest.$ac_ext 3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3634 (eval $ac_compile) 2>&5 3635 ac_status=$? 3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3637 (exit $ac_status); }; then 3638 case `/usr/bin/file conftest.$ac_objext` in 3639 *ELF-32*) 3640 HPUX_IA64_MODE="32" 3641 ;; 3642 *ELF-64*) 3643 HPUX_IA64_MODE="64" 3644 ;; 3645 esac 3646 fi 3647 rm -rf conftest* 3648 ;; 3649*-*-irix6*) 3650 # Find out which ABI we are using. 3651 echo '#line 3651 "configure"' > conftest.$ac_ext 3652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3653 (eval $ac_compile) 2>&5 3654 ac_status=$? 3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 (exit $ac_status); }; then 3657 if test "$lt_cv_prog_gnu_ld" = yes; then 3658 case `/usr/bin/file conftest.$ac_objext` in 3659 *32-bit*) 3660 LD="${LD-ld} -melf32bsmip" 3661 ;; 3662 *N32*) 3663 LD="${LD-ld} -melf32bmipn32" 3664 ;; 3665 *64-bit*) 3666 LD="${LD-ld} -melf64bmip" 3667 ;; 3668 esac 3669 else 3670 case `/usr/bin/file conftest.$ac_objext` in 3671 *32-bit*) 3672 LD="${LD-ld} -32" 3673 ;; 3674 *N32*) 3675 LD="${LD-ld} -n32" 3676 ;; 3677 *64-bit*) 3678 LD="${LD-ld} -64" 3679 ;; 3680 esac 3681 fi 3682 fi 3683 rm -rf conftest* 3684 ;; 3685 3686x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3687 # Find out which ABI we are using. 3688 echo 'int i;' > conftest.$ac_ext 3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3690 (eval $ac_compile) 2>&5 3691 ac_status=$? 3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3693 (exit $ac_status); }; then 3694 case "`/usr/bin/file conftest.o`" in 3695 *32-bit*) 3696 case $host in 3697 x86_64-*linux*) 3698 LD="${LD-ld} -m elf_i386" 3699 ;; 3700 ppc64-*linux*|powerpc64-*linux*) 3701 LD="${LD-ld} -m elf32ppclinux" 3702 ;; 3703 s390x-*linux*) 3704 LD="${LD-ld} -m elf_s390" 3705 ;; 3706 sparc64-*linux*) 3707 LD="${LD-ld} -m elf32_sparc" 3708 ;; 3709 esac 3710 ;; 3711 *64-bit*) 3712 case $host in 3713 x86_64-*linux*) 3714 LD="${LD-ld} -m elf_x86_64" 3715 ;; 3716 ppc*-*linux*|powerpc*-*linux*) 3717 LD="${LD-ld} -m elf64ppc" 3718 ;; 3719 s390*-*linux*) 3720 LD="${LD-ld} -m elf64_s390" 3721 ;; 3722 sparc*-*linux*) 3723 LD="${LD-ld} -m elf64_sparc" 3724 ;; 3725 esac 3726 ;; 3727 esac 3728 fi 3729 rm -rf conftest* 3730 ;; 3731 3732*-*-sco3.2v5*) 3733 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3734 SAVE_CFLAGS="$CFLAGS" 3735 CFLAGS="$CFLAGS -belf" 3736 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3737echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3738if test "${lt_cv_cc_needs_belf+set}" = set; then 3739 echo $ECHO_N "(cached) $ECHO_C" >&6 3740else 3741 ac_ext=c 3742ac_cpp='$CPP $CPPFLAGS' 3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3745ac_compiler_gnu=$ac_cv_c_compiler_gnu 3746 3747 cat >conftest.$ac_ext <<_ACEOF 3748/* confdefs.h. */ 3749_ACEOF 3750cat confdefs.h >>conftest.$ac_ext 3751cat >>conftest.$ac_ext <<_ACEOF 3752/* end confdefs.h. */ 3753 3754int 3755main () 3756{ 3757 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762rm -f conftest.$ac_objext conftest$ac_exeext 3763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3764 (eval $ac_link) 2>conftest.er1 3765 ac_status=$? 3766 grep -v '^ *+' conftest.er1 >conftest.err 3767 rm -f conftest.er1 3768 cat conftest.err >&5 3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3770 (exit $ac_status); } && 3771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3773 (eval $ac_try) 2>&5 3774 ac_status=$? 3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3776 (exit $ac_status); }; } && 3777 { ac_try='test -s conftest$ac_exeext' 3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3779 (eval $ac_try) 2>&5 3780 ac_status=$? 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 (exit $ac_status); }; }; then 3783 lt_cv_cc_needs_belf=yes 3784else 3785 echo "$as_me: failed program was:" >&5 3786sed 's/^/| /' conftest.$ac_ext >&5 3787 3788lt_cv_cc_needs_belf=no 3789fi 3790rm -f conftest.err conftest.$ac_objext \ 3791 conftest$ac_exeext conftest.$ac_ext 3792 ac_ext=c 3793ac_cpp='$CPP $CPPFLAGS' 3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3796ac_compiler_gnu=$ac_cv_c_compiler_gnu 3797 3798fi 3799echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3800echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3801 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3802 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3803 CFLAGS="$SAVE_CFLAGS" 3804 fi 3805 ;; 3806 3807esac 3808 3809need_locks="$enable_libtool_lock" 3810 3811 3812ac_ext=c 3813ac_cpp='$CPP $CPPFLAGS' 3814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3816ac_compiler_gnu=$ac_cv_c_compiler_gnu 3817echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3818echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3819# On Suns, sometimes $CPP names a directory. 3820if test -n "$CPP" && test -d "$CPP"; then 3821 CPP= 3822fi 3823if test -z "$CPP"; then 3824 if test "${ac_cv_prog_CPP+set}" = set; then 3825 echo $ECHO_N "(cached) $ECHO_C" >&6 3826else 3827 # Double quotes because CPP needs to be expanded 3828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3829 do 3830 ac_preproc_ok=false 3831for ac_c_preproc_warn_flag in '' yes 3832do 3833 # Use a header file that comes with gcc, so configuring glibc 3834 # with a fresh cross-compiler works. 3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3836 # <limits.h> exists even on freestanding compilers. 3837 # On the NeXT, cc -E runs the code through the compiler's parser, 3838 # not just through cpp. "Syntax error" is here to catch this case. 3839 cat >conftest.$ac_ext <<_ACEOF 3840/* confdefs.h. */ 3841_ACEOF 3842cat confdefs.h >>conftest.$ac_ext 3843cat >>conftest.$ac_ext <<_ACEOF 3844/* end confdefs.h. */ 3845#ifdef __STDC__ 3846# include <limits.h> 3847#else 3848# include <assert.h> 3849#endif 3850 Syntax error 3851_ACEOF 3852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3854 ac_status=$? 3855 grep -v '^ *+' conftest.er1 >conftest.err 3856 rm -f conftest.er1 3857 cat conftest.err >&5 3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3859 (exit $ac_status); } >/dev/null; then 3860 if test -s conftest.err; then 3861 ac_cpp_err=$ac_c_preproc_warn_flag 3862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3863 else 3864 ac_cpp_err= 3865 fi 3866else 3867 ac_cpp_err=yes 3868fi 3869if test -z "$ac_cpp_err"; then 3870 : 3871else 3872 echo "$as_me: failed program was:" >&5 3873sed 's/^/| /' conftest.$ac_ext >&5 3874 3875 # Broken: fails on valid input. 3876continue 3877fi 3878rm -f conftest.err conftest.$ac_ext 3879 3880 # OK, works on sane cases. Now check whether non-existent headers 3881 # can be detected and how. 3882 cat >conftest.$ac_ext <<_ACEOF 3883/* confdefs.h. */ 3884_ACEOF 3885cat confdefs.h >>conftest.$ac_ext 3886cat >>conftest.$ac_ext <<_ACEOF 3887/* end confdefs.h. */ 3888#include <ac_nonexistent.h> 3889_ACEOF 3890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3892 ac_status=$? 3893 grep -v '^ *+' conftest.er1 >conftest.err 3894 rm -f conftest.er1 3895 cat conftest.err >&5 3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3897 (exit $ac_status); } >/dev/null; then 3898 if test -s conftest.err; then 3899 ac_cpp_err=$ac_c_preproc_warn_flag 3900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3901 else 3902 ac_cpp_err= 3903 fi 3904else 3905 ac_cpp_err=yes 3906fi 3907if test -z "$ac_cpp_err"; then 3908 # Broken: success on invalid input. 3909continue 3910else 3911 echo "$as_me: failed program was:" >&5 3912sed 's/^/| /' conftest.$ac_ext >&5 3913 3914 # Passes both tests. 3915ac_preproc_ok=: 3916break 3917fi 3918rm -f conftest.err conftest.$ac_ext 3919 3920done 3921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3922rm -f conftest.err conftest.$ac_ext 3923if $ac_preproc_ok; then 3924 break 3925fi 3926 3927 done 3928 ac_cv_prog_CPP=$CPP 3929 3930fi 3931 CPP=$ac_cv_prog_CPP 3932else 3933 ac_cv_prog_CPP=$CPP 3934fi 3935echo "$as_me:$LINENO: result: $CPP" >&5 3936echo "${ECHO_T}$CPP" >&6 3937ac_preproc_ok=false 3938for ac_c_preproc_warn_flag in '' yes 3939do 3940 # Use a header file that comes with gcc, so configuring glibc 3941 # with a fresh cross-compiler works. 3942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3943 # <limits.h> exists even on freestanding compilers. 3944 # On the NeXT, cc -E runs the code through the compiler's parser, 3945 # not just through cpp. "Syntax error" is here to catch this case. 3946 cat >conftest.$ac_ext <<_ACEOF 3947/* confdefs.h. */ 3948_ACEOF 3949cat confdefs.h >>conftest.$ac_ext 3950cat >>conftest.$ac_ext <<_ACEOF 3951/* end confdefs.h. */ 3952#ifdef __STDC__ 3953# include <limits.h> 3954#else 3955# include <assert.h> 3956#endif 3957 Syntax error 3958_ACEOF 3959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3961 ac_status=$? 3962 grep -v '^ *+' conftest.er1 >conftest.err 3963 rm -f conftest.er1 3964 cat conftest.err >&5 3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3966 (exit $ac_status); } >/dev/null; then 3967 if test -s conftest.err; then 3968 ac_cpp_err=$ac_c_preproc_warn_flag 3969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3970 else 3971 ac_cpp_err= 3972 fi 3973else 3974 ac_cpp_err=yes 3975fi 3976if test -z "$ac_cpp_err"; then 3977 : 3978else 3979 echo "$as_me: failed program was:" >&5 3980sed 's/^/| /' conftest.$ac_ext >&5 3981 3982 # Broken: fails on valid input. 3983continue 3984fi 3985rm -f conftest.err conftest.$ac_ext 3986 3987 # OK, works on sane cases. Now check whether non-existent headers 3988 # can be detected and how. 3989 cat >conftest.$ac_ext <<_ACEOF 3990/* confdefs.h. */ 3991_ACEOF 3992cat confdefs.h >>conftest.$ac_ext 3993cat >>conftest.$ac_ext <<_ACEOF 3994/* end confdefs.h. */ 3995#include <ac_nonexistent.h> 3996_ACEOF 3997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3999 ac_status=$? 4000 grep -v '^ *+' conftest.er1 >conftest.err 4001 rm -f conftest.er1 4002 cat conftest.err >&5 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); } >/dev/null; then 4005 if test -s conftest.err; then 4006 ac_cpp_err=$ac_c_preproc_warn_flag 4007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4008 else 4009 ac_cpp_err= 4010 fi 4011else 4012 ac_cpp_err=yes 4013fi 4014if test -z "$ac_cpp_err"; then 4015 # Broken: success on invalid input. 4016continue 4017else 4018 echo "$as_me: failed program was:" >&5 4019sed 's/^/| /' conftest.$ac_ext >&5 4020 4021 # Passes both tests. 4022ac_preproc_ok=: 4023break 4024fi 4025rm -f conftest.err conftest.$ac_ext 4026 4027done 4028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4029rm -f conftest.err conftest.$ac_ext 4030if $ac_preproc_ok; then 4031 : 4032else 4033 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4034See \`config.log' for more details." >&5 4035echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4036See \`config.log' for more details." >&2;} 4037 { (exit 1); exit 1; }; } 4038fi 4039 4040ac_ext=c 4041ac_cpp='$CPP $CPPFLAGS' 4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4044ac_compiler_gnu=$ac_cv_c_compiler_gnu 4045 4046 4047echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4048echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4049if test "${ac_cv_header_stdc+set}" = set; then 4050 echo $ECHO_N "(cached) $ECHO_C" >&6 4051else 4052 cat >conftest.$ac_ext <<_ACEOF 4053/* confdefs.h. */ 4054_ACEOF 4055cat confdefs.h >>conftest.$ac_ext 4056cat >>conftest.$ac_ext <<_ACEOF 4057/* end confdefs.h. */ 4058#include <stdlib.h> 4059#include <stdarg.h> 4060#include <string.h> 4061#include <float.h> 4062 4063int 4064main () 4065{ 4066 4067 ; 4068 return 0; 4069} 4070_ACEOF 4071rm -f conftest.$ac_objext 4072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4073 (eval $ac_compile) 2>conftest.er1 4074 ac_status=$? 4075 grep -v '^ *+' conftest.er1 >conftest.err 4076 rm -f conftest.er1 4077 cat conftest.err >&5 4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4079 (exit $ac_status); } && 4080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4082 (eval $ac_try) 2>&5 4083 ac_status=$? 4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4085 (exit $ac_status); }; } && 4086 { ac_try='test -s conftest.$ac_objext' 4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4088 (eval $ac_try) 2>&5 4089 ac_status=$? 4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4091 (exit $ac_status); }; }; then 4092 ac_cv_header_stdc=yes 4093else 4094 echo "$as_me: failed program was:" >&5 4095sed 's/^/| /' conftest.$ac_ext >&5 4096 4097ac_cv_header_stdc=no 4098fi 4099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4100 4101if test $ac_cv_header_stdc = yes; then 4102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4103 cat >conftest.$ac_ext <<_ACEOF 4104/* confdefs.h. */ 4105_ACEOF 4106cat confdefs.h >>conftest.$ac_ext 4107cat >>conftest.$ac_ext <<_ACEOF 4108/* end confdefs.h. */ 4109#include <string.h> 4110 4111_ACEOF 4112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4113 $EGREP "memchr" >/dev/null 2>&1; then 4114 : 4115else 4116 ac_cv_header_stdc=no 4117fi 4118rm -f conftest* 4119 4120fi 4121 4122if test $ac_cv_header_stdc = yes; then 4123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4124 cat >conftest.$ac_ext <<_ACEOF 4125/* confdefs.h. */ 4126_ACEOF 4127cat confdefs.h >>conftest.$ac_ext 4128cat >>conftest.$ac_ext <<_ACEOF 4129/* end confdefs.h. */ 4130#include <stdlib.h> 4131 4132_ACEOF 4133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4134 $EGREP "free" >/dev/null 2>&1; then 4135 : 4136else 4137 ac_cv_header_stdc=no 4138fi 4139rm -f conftest* 4140 4141fi 4142 4143if test $ac_cv_header_stdc = yes; then 4144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4145 if test "$cross_compiling" = yes; then 4146 : 4147else 4148 cat >conftest.$ac_ext <<_ACEOF 4149/* confdefs.h. */ 4150_ACEOF 4151cat confdefs.h >>conftest.$ac_ext 4152cat >>conftest.$ac_ext <<_ACEOF 4153/* end confdefs.h. */ 4154#include <ctype.h> 4155#if ((' ' & 0x0FF) == 0x020) 4156# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4157# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4158#else 4159# define ISLOWER(c) \ 4160 (('a' <= (c) && (c) <= 'i') \ 4161 || ('j' <= (c) && (c) <= 'r') \ 4162 || ('s' <= (c) && (c) <= 'z')) 4163# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4164#endif 4165 4166#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4167int 4168main () 4169{ 4170 int i; 4171 for (i = 0; i < 256; i++) 4172 if (XOR (islower (i), ISLOWER (i)) 4173 || toupper (i) != TOUPPER (i)) 4174 exit(2); 4175 exit (0); 4176} 4177_ACEOF 4178rm -f conftest$ac_exeext 4179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4180 (eval $ac_link) 2>&5 4181 ac_status=$? 4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4185 (eval $ac_try) 2>&5 4186 ac_status=$? 4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4188 (exit $ac_status); }; }; then 4189 : 4190else 4191 echo "$as_me: program exited with status $ac_status" >&5 4192echo "$as_me: failed program was:" >&5 4193sed 's/^/| /' conftest.$ac_ext >&5 4194 4195( exit $ac_status ) 4196ac_cv_header_stdc=no 4197fi 4198rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4199fi 4200fi 4201fi 4202echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4203echo "${ECHO_T}$ac_cv_header_stdc" >&6 4204if test $ac_cv_header_stdc = yes; then 4205 4206cat >>confdefs.h <<\_ACEOF 4207#define STDC_HEADERS 1 4208_ACEOF 4209 4210fi 4211 4212# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4223 inttypes.h stdint.h unistd.h 4224do 4225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4226echo "$as_me:$LINENO: checking for $ac_header" >&5 4227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4228if eval "test \"\${$as_ac_Header+set}\" = set"; then 4229 echo $ECHO_N "(cached) $ECHO_C" >&6 4230else 4231 cat >conftest.$ac_ext <<_ACEOF 4232/* confdefs.h. */ 4233_ACEOF 4234cat confdefs.h >>conftest.$ac_ext 4235cat >>conftest.$ac_ext <<_ACEOF 4236/* end confdefs.h. */ 4237$ac_includes_default 4238 4239#include <$ac_header> 4240_ACEOF 4241rm -f conftest.$ac_objext 4242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4243 (eval $ac_compile) 2>conftest.er1 4244 ac_status=$? 4245 grep -v '^ *+' conftest.er1 >conftest.err 4246 rm -f conftest.er1 4247 cat conftest.err >&5 4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4249 (exit $ac_status); } && 4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4252 (eval $ac_try) 2>&5 4253 ac_status=$? 4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4255 (exit $ac_status); }; } && 4256 { ac_try='test -s conftest.$ac_objext' 4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4258 (eval $ac_try) 2>&5 4259 ac_status=$? 4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4261 (exit $ac_status); }; }; then 4262 eval "$as_ac_Header=yes" 4263else 4264 echo "$as_me: failed program was:" >&5 4265sed 's/^/| /' conftest.$ac_ext >&5 4266 4267eval "$as_ac_Header=no" 4268fi 4269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4270fi 4271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4273if test `eval echo '${'$as_ac_Header'}'` = yes; then 4274 cat >>confdefs.h <<_ACEOF 4275#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4276_ACEOF 4277 4278fi 4279 4280done 4281 4282 4283 4284for ac_header in dlfcn.h 4285do 4286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4287if eval "test \"\${$as_ac_Header+set}\" = set"; then 4288 echo "$as_me:$LINENO: checking for $ac_header" >&5 4289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4290if eval "test \"\${$as_ac_Header+set}\" = set"; then 4291 echo $ECHO_N "(cached) $ECHO_C" >&6 4292fi 4293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4295else 4296 # Is the header compilable? 4297echo "$as_me:$LINENO: checking $ac_header usability" >&5 4298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4299cat >conftest.$ac_ext <<_ACEOF 4300/* confdefs.h. */ 4301_ACEOF 4302cat confdefs.h >>conftest.$ac_ext 4303cat >>conftest.$ac_ext <<_ACEOF 4304/* end confdefs.h. */ 4305$ac_includes_default 4306#include <$ac_header> 4307_ACEOF 4308rm -f conftest.$ac_objext 4309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4310 (eval $ac_compile) 2>conftest.er1 4311 ac_status=$? 4312 grep -v '^ *+' conftest.er1 >conftest.err 4313 rm -f conftest.er1 4314 cat conftest.err >&5 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); } && 4317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4319 (eval $ac_try) 2>&5 4320 ac_status=$? 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); }; } && 4323 { ac_try='test -s conftest.$ac_objext' 4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4325 (eval $ac_try) 2>&5 4326 ac_status=$? 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4328 (exit $ac_status); }; }; then 4329 ac_header_compiler=yes 4330else 4331 echo "$as_me: failed program was:" >&5 4332sed 's/^/| /' conftest.$ac_ext >&5 4333 4334ac_header_compiler=no 4335fi 4336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4338echo "${ECHO_T}$ac_header_compiler" >&6 4339 4340# Is the header present? 4341echo "$as_me:$LINENO: checking $ac_header presence" >&5 4342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4343cat >conftest.$ac_ext <<_ACEOF 4344/* confdefs.h. */ 4345_ACEOF 4346cat confdefs.h >>conftest.$ac_ext 4347cat >>conftest.$ac_ext <<_ACEOF 4348/* end confdefs.h. */ 4349#include <$ac_header> 4350_ACEOF 4351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4353 ac_status=$? 4354 grep -v '^ *+' conftest.er1 >conftest.err 4355 rm -f conftest.er1 4356 cat conftest.err >&5 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); } >/dev/null; then 4359 if test -s conftest.err; then 4360 ac_cpp_err=$ac_c_preproc_warn_flag 4361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4362 else 4363 ac_cpp_err= 4364 fi 4365else 4366 ac_cpp_err=yes 4367fi 4368if test -z "$ac_cpp_err"; then 4369 ac_header_preproc=yes 4370else 4371 echo "$as_me: failed program was:" >&5 4372sed 's/^/| /' conftest.$ac_ext >&5 4373 4374 ac_header_preproc=no 4375fi 4376rm -f conftest.err conftest.$ac_ext 4377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4378echo "${ECHO_T}$ac_header_preproc" >&6 4379 4380# So? What about this header? 4381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4382 yes:no: ) 4383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4387 ac_header_preproc=yes 4388 ;; 4389 no:yes:* ) 4390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4402 ( 4403 cat <<\_ASBOX 4404## -------------------------------------- ## 4405## Report this to http://freedesktop.org/ ## 4406## -------------------------------------- ## 4407_ASBOX 4408 ) | 4409 sed "s/^/$as_me: WARNING: /" >&2 4410 ;; 4411esac 4412echo "$as_me:$LINENO: checking for $ac_header" >&5 4413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4414if eval "test \"\${$as_ac_Header+set}\" = set"; then 4415 echo $ECHO_N "(cached) $ECHO_C" >&6 4416else 4417 eval "$as_ac_Header=\$ac_header_preproc" 4418fi 4419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4421 4422fi 4423if test `eval echo '${'$as_ac_Header'}'` = yes; then 4424 cat >>confdefs.h <<_ACEOF 4425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4426_ACEOF 4427 4428fi 4429 4430done 4431 4432ac_ext=cc 4433ac_cpp='$CXXCPP $CPPFLAGS' 4434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4437if test -n "$ac_tool_prefix"; then 4438 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4439 do 4440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4441set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4442echo "$as_me:$LINENO: checking for $ac_word" >&5 4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4444if test "${ac_cv_prog_CXX+set}" = set; then 4445 echo $ECHO_N "(cached) $ECHO_C" >&6 4446else 4447 if test -n "$CXX"; then 4448 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4449else 4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4451for as_dir in $PATH 4452do 4453 IFS=$as_save_IFS 4454 test -z "$as_dir" && as_dir=. 4455 for ac_exec_ext in '' $ac_executable_extensions; do 4456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4457 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4459 break 2 4460 fi 4461done 4462done 4463 4464fi 4465fi 4466CXX=$ac_cv_prog_CXX 4467if test -n "$CXX"; then 4468 echo "$as_me:$LINENO: result: $CXX" >&5 4469echo "${ECHO_T}$CXX" >&6 4470else 4471 echo "$as_me:$LINENO: result: no" >&5 4472echo "${ECHO_T}no" >&6 4473fi 4474 4475 test -n "$CXX" && break 4476 done 4477fi 4478if test -z "$CXX"; then 4479 ac_ct_CXX=$CXX 4480 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4481do 4482 # Extract the first word of "$ac_prog", so it can be a program name with args. 4483set dummy $ac_prog; ac_word=$2 4484echo "$as_me:$LINENO: checking for $ac_word" >&5 4485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4486if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4487 echo $ECHO_N "(cached) $ECHO_C" >&6 4488else 4489 if test -n "$ac_ct_CXX"; then 4490 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4491else 4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4493for as_dir in $PATH 4494do 4495 IFS=$as_save_IFS 4496 test -z "$as_dir" && as_dir=. 4497 for ac_exec_ext in '' $ac_executable_extensions; do 4498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4499 ac_cv_prog_ac_ct_CXX="$ac_prog" 4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4501 break 2 4502 fi 4503done 4504done 4505 4506fi 4507fi 4508ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4509if test -n "$ac_ct_CXX"; then 4510 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4511echo "${ECHO_T}$ac_ct_CXX" >&6 4512else 4513 echo "$as_me:$LINENO: result: no" >&5 4514echo "${ECHO_T}no" >&6 4515fi 4516 4517 test -n "$ac_ct_CXX" && break 4518done 4519test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4520 4521 CXX=$ac_ct_CXX 4522fi 4523 4524 4525# Provide some information about the compiler. 4526echo "$as_me:$LINENO:" \ 4527 "checking for C++ compiler version" >&5 4528ac_compiler=`set X $ac_compile; echo $2` 4529{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4530 (eval $ac_compiler --version </dev/null >&5) 2>&5 4531 ac_status=$? 4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4533 (exit $ac_status); } 4534{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4535 (eval $ac_compiler -v </dev/null >&5) 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); } 4539{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4540 (eval $ac_compiler -V </dev/null >&5) 2>&5 4541 ac_status=$? 4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4543 (exit $ac_status); } 4544 4545echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4546echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4547if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4548 echo $ECHO_N "(cached) $ECHO_C" >&6 4549else 4550 cat >conftest.$ac_ext <<_ACEOF 4551/* confdefs.h. */ 4552_ACEOF 4553cat confdefs.h >>conftest.$ac_ext 4554cat >>conftest.$ac_ext <<_ACEOF 4555/* end confdefs.h. */ 4556 4557int 4558main () 4559{ 4560#ifndef __GNUC__ 4561 choke me 4562#endif 4563 4564 ; 4565 return 0; 4566} 4567_ACEOF 4568rm -f conftest.$ac_objext 4569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4570 (eval $ac_compile) 2>conftest.er1 4571 ac_status=$? 4572 grep -v '^ *+' conftest.er1 >conftest.err 4573 rm -f conftest.er1 4574 cat conftest.err >&5 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); } && 4577 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4579 (eval $ac_try) 2>&5 4580 ac_status=$? 4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); }; } && 4583 { ac_try='test -s conftest.$ac_objext' 4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4585 (eval $ac_try) 2>&5 4586 ac_status=$? 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); }; }; then 4589 ac_compiler_gnu=yes 4590else 4591 echo "$as_me: failed program was:" >&5 4592sed 's/^/| /' conftest.$ac_ext >&5 4593 4594ac_compiler_gnu=no 4595fi 4596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4597ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4598 4599fi 4600echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4601echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4602GXX=`test $ac_compiler_gnu = yes && echo yes` 4603ac_test_CXXFLAGS=${CXXFLAGS+set} 4604ac_save_CXXFLAGS=$CXXFLAGS 4605CXXFLAGS="-g" 4606echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4607echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4608if test "${ac_cv_prog_cxx_g+set}" = set; then 4609 echo $ECHO_N "(cached) $ECHO_C" >&6 4610else 4611 cat >conftest.$ac_ext <<_ACEOF 4612/* confdefs.h. */ 4613_ACEOF 4614cat confdefs.h >>conftest.$ac_ext 4615cat >>conftest.$ac_ext <<_ACEOF 4616/* end confdefs.h. */ 4617 4618int 4619main () 4620{ 4621 4622 ; 4623 return 0; 4624} 4625_ACEOF 4626rm -f conftest.$ac_objext 4627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4628 (eval $ac_compile) 2>conftest.er1 4629 ac_status=$? 4630 grep -v '^ *+' conftest.er1 >conftest.err 4631 rm -f conftest.er1 4632 cat conftest.err >&5 4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4634 (exit $ac_status); } && 4635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4637 (eval $ac_try) 2>&5 4638 ac_status=$? 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4640 (exit $ac_status); }; } && 4641 { ac_try='test -s conftest.$ac_objext' 4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4643 (eval $ac_try) 2>&5 4644 ac_status=$? 4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 (exit $ac_status); }; }; then 4647 ac_cv_prog_cxx_g=yes 4648else 4649 echo "$as_me: failed program was:" >&5 4650sed 's/^/| /' conftest.$ac_ext >&5 4651 4652ac_cv_prog_cxx_g=no 4653fi 4654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4655fi 4656echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4657echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4658if test "$ac_test_CXXFLAGS" = set; then 4659 CXXFLAGS=$ac_save_CXXFLAGS 4660elif test $ac_cv_prog_cxx_g = yes; then 4661 if test "$GXX" = yes; then 4662 CXXFLAGS="-g -O2" 4663 else 4664 CXXFLAGS="-g" 4665 fi 4666else 4667 if test "$GXX" = yes; then 4668 CXXFLAGS="-O2" 4669 else 4670 CXXFLAGS= 4671 fi 4672fi 4673for ac_declaration in \ 4674 '' \ 4675 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4676 'extern "C" void std::exit (int); using std::exit;' \ 4677 'extern "C" void exit (int) throw ();' \ 4678 'extern "C" void exit (int);' \ 4679 'void exit (int);' 4680do 4681 cat >conftest.$ac_ext <<_ACEOF 4682/* confdefs.h. */ 4683_ACEOF 4684cat confdefs.h >>conftest.$ac_ext 4685cat >>conftest.$ac_ext <<_ACEOF 4686/* end confdefs.h. */ 4687$ac_declaration 4688#include <stdlib.h> 4689int 4690main () 4691{ 4692exit (42); 4693 ; 4694 return 0; 4695} 4696_ACEOF 4697rm -f conftest.$ac_objext 4698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4699 (eval $ac_compile) 2>conftest.er1 4700 ac_status=$? 4701 grep -v '^ *+' conftest.er1 >conftest.err 4702 rm -f conftest.er1 4703 cat conftest.err >&5 4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4705 (exit $ac_status); } && 4706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4708 (eval $ac_try) 2>&5 4709 ac_status=$? 4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4711 (exit $ac_status); }; } && 4712 { ac_try='test -s conftest.$ac_objext' 4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4714 (eval $ac_try) 2>&5 4715 ac_status=$? 4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4717 (exit $ac_status); }; }; then 4718 : 4719else 4720 echo "$as_me: failed program was:" >&5 4721sed 's/^/| /' conftest.$ac_ext >&5 4722 4723continue 4724fi 4725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4726 cat >conftest.$ac_ext <<_ACEOF 4727/* confdefs.h. */ 4728_ACEOF 4729cat confdefs.h >>conftest.$ac_ext 4730cat >>conftest.$ac_ext <<_ACEOF 4731/* end confdefs.h. */ 4732$ac_declaration 4733int 4734main () 4735{ 4736exit (42); 4737 ; 4738 return 0; 4739} 4740_ACEOF 4741rm -f conftest.$ac_objext 4742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4743 (eval $ac_compile) 2>conftest.er1 4744 ac_status=$? 4745 grep -v '^ *+' conftest.er1 >conftest.err 4746 rm -f conftest.er1 4747 cat conftest.err >&5 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } && 4750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4752 (eval $ac_try) 2>&5 4753 ac_status=$? 4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4755 (exit $ac_status); }; } && 4756 { ac_try='test -s conftest.$ac_objext' 4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4758 (eval $ac_try) 2>&5 4759 ac_status=$? 4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4761 (exit $ac_status); }; }; then 4762 break 4763else 4764 echo "$as_me: failed program was:" >&5 4765sed 's/^/| /' conftest.$ac_ext >&5 4766 4767fi 4768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4769done 4770rm -f conftest* 4771if test -n "$ac_declaration"; then 4772 echo '#ifdef __cplusplus' >>confdefs.h 4773 echo $ac_declaration >>confdefs.h 4774 echo '#endif' >>confdefs.h 4775fi 4776 4777ac_ext=cc 4778ac_cpp='$CXXCPP $CPPFLAGS' 4779ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4780ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4781ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4782 4783depcc="$CXX" am_compiler_list= 4784 4785echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4786echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4787if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4788 echo $ECHO_N "(cached) $ECHO_C" >&6 4789else 4790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4791 # We make a subdir and do the tests there. Otherwise we can end up 4792 # making bogus files that we don't know about and never remove. For 4793 # instance it was reported that on HP-UX the gcc test will end up 4794 # making a dummy file named `D' -- because `-MD' means `put the output 4795 # in D'. 4796 mkdir conftest.dir 4797 # Copy depcomp to subdir because otherwise we won't find it if we're 4798 # using a relative directory. 4799 cp "$am_depcomp" conftest.dir 4800 cd conftest.dir 4801 # We will build objects and dependencies in a subdirectory because 4802 # it helps to detect inapplicable dependency modes. For instance 4803 # both Tru64's cc and ICC support -MD to output dependencies as a 4804 # side effect of compilation, but ICC will put the dependencies in 4805 # the current directory while Tru64 will put them in the object 4806 # directory. 4807 mkdir sub 4808 4809 am_cv_CXX_dependencies_compiler_type=none 4810 if test "$am_compiler_list" = ""; then 4811 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4812 fi 4813 for depmode in $am_compiler_list; do 4814 # Setup a source with many dependencies, because some compilers 4815 # like to wrap large dependency lists on column 80 (with \), and 4816 # we should not choose a depcomp mode which is confused by this. 4817 # 4818 # We need to recreate these files for each test, as the compiler may 4819 # overwrite some of them when testing with obscure command lines. 4820 # This happens at least with the AIX C compiler. 4821 : > sub/conftest.c 4822 for i in 1 2 3 4 5 6; do 4823 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4824 : > sub/conftst$i.h 4825 done 4826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4827 4828 case $depmode in 4829 nosideeffect) 4830 # after this tag, mechanisms are not by side-effect, so they'll 4831 # only be used when explicitly requested 4832 if test "x$enable_dependency_tracking" = xyes; then 4833 continue 4834 else 4835 break 4836 fi 4837 ;; 4838 none) break ;; 4839 esac 4840 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4841 # mode. It turns out that the SunPro C++ compiler does not properly 4842 # handle `-M -o', and we need to detect this. 4843 if depmode=$depmode \ 4844 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4846 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4847 >/dev/null 2>conftest.err && 4848 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4849 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4850 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4851 # icc doesn't choke on unknown options, it will just issue warnings 4852 # (even with -Werror). So we grep stderr for any message 4853 # that says an option was ignored. 4854 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 4855 am_cv_CXX_dependencies_compiler_type=$depmode 4856 break 4857 fi 4858 fi 4859 done 4860 4861 cd .. 4862 rm -rf conftest.dir 4863else 4864 am_cv_CXX_dependencies_compiler_type=none 4865fi 4866 4867fi 4868echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4869echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 4870CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4871 4872 4873 4874if 4875 test "x$enable_dependency_tracking" != xno \ 4876 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4877 am__fastdepCXX_TRUE= 4878 am__fastdepCXX_FALSE='#' 4879else 4880 am__fastdepCXX_TRUE='#' 4881 am__fastdepCXX_FALSE= 4882fi 4883 4884 4885ac_ext=cc 4886ac_cpp='$CXXCPP $CPPFLAGS' 4887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4890echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4891echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4892if test -z "$CXXCPP"; then 4893 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4894 echo $ECHO_N "(cached) $ECHO_C" >&6 4895else 4896 # Double quotes because CXXCPP needs to be expanded 4897 for CXXCPP in "$CXX -E" "/lib/cpp" 4898 do 4899 ac_preproc_ok=false 4900for ac_cxx_preproc_warn_flag in '' yes 4901do 4902 # Use a header file that comes with gcc, so configuring glibc 4903 # with a fresh cross-compiler works. 4904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4905 # <limits.h> exists even on freestanding compilers. 4906 # On the NeXT, cc -E runs the code through the compiler's parser, 4907 # not just through cpp. "Syntax error" is here to catch this case. 4908 cat >conftest.$ac_ext <<_ACEOF 4909/* confdefs.h. */ 4910_ACEOF 4911cat confdefs.h >>conftest.$ac_ext 4912cat >>conftest.$ac_ext <<_ACEOF 4913/* end confdefs.h. */ 4914#ifdef __STDC__ 4915# include <limits.h> 4916#else 4917# include <assert.h> 4918#endif 4919 Syntax error 4920_ACEOF 4921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4923 ac_status=$? 4924 grep -v '^ *+' conftest.er1 >conftest.err 4925 rm -f conftest.er1 4926 cat conftest.err >&5 4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4928 (exit $ac_status); } >/dev/null; then 4929 if test -s conftest.err; then 4930 ac_cpp_err=$ac_cxx_preproc_warn_flag 4931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4932 else 4933 ac_cpp_err= 4934 fi 4935else 4936 ac_cpp_err=yes 4937fi 4938if test -z "$ac_cpp_err"; then 4939 : 4940else 4941 echo "$as_me: failed program was:" >&5 4942sed 's/^/| /' conftest.$ac_ext >&5 4943 4944 # Broken: fails on valid input. 4945continue 4946fi 4947rm -f conftest.err conftest.$ac_ext 4948 4949 # OK, works on sane cases. Now check whether non-existent headers 4950 # can be detected and how. 4951 cat >conftest.$ac_ext <<_ACEOF 4952/* confdefs.h. */ 4953_ACEOF 4954cat confdefs.h >>conftest.$ac_ext 4955cat >>conftest.$ac_ext <<_ACEOF 4956/* end confdefs.h. */ 4957#include <ac_nonexistent.h> 4958_ACEOF 4959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4961 ac_status=$? 4962 grep -v '^ *+' conftest.er1 >conftest.err 4963 rm -f conftest.er1 4964 cat conftest.err >&5 4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4966 (exit $ac_status); } >/dev/null; then 4967 if test -s conftest.err; then 4968 ac_cpp_err=$ac_cxx_preproc_warn_flag 4969 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4970 else 4971 ac_cpp_err= 4972 fi 4973else 4974 ac_cpp_err=yes 4975fi 4976if test -z "$ac_cpp_err"; then 4977 # Broken: success on invalid input. 4978continue 4979else 4980 echo "$as_me: failed program was:" >&5 4981sed 's/^/| /' conftest.$ac_ext >&5 4982 4983 # Passes both tests. 4984ac_preproc_ok=: 4985break 4986fi 4987rm -f conftest.err conftest.$ac_ext 4988 4989done 4990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4991rm -f conftest.err conftest.$ac_ext 4992if $ac_preproc_ok; then 4993 break 4994fi 4995 4996 done 4997 ac_cv_prog_CXXCPP=$CXXCPP 4998 4999fi 5000 CXXCPP=$ac_cv_prog_CXXCPP 5001else 5002 ac_cv_prog_CXXCPP=$CXXCPP 5003fi 5004echo "$as_me:$LINENO: result: $CXXCPP" >&5 5005echo "${ECHO_T}$CXXCPP" >&6 5006ac_preproc_ok=false 5007for ac_cxx_preproc_warn_flag in '' yes 5008do 5009 # Use a header file that comes with gcc, so configuring glibc 5010 # with a fresh cross-compiler works. 5011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5012 # <limits.h> exists even on freestanding compilers. 5013 # On the NeXT, cc -E runs the code through the compiler's parser, 5014 # not just through cpp. "Syntax error" is here to catch this case. 5015 cat >conftest.$ac_ext <<_ACEOF 5016/* confdefs.h. */ 5017_ACEOF 5018cat confdefs.h >>conftest.$ac_ext 5019cat >>conftest.$ac_ext <<_ACEOF 5020/* end confdefs.h. */ 5021#ifdef __STDC__ 5022# include <limits.h> 5023#else 5024# include <assert.h> 5025#endif 5026 Syntax error 5027_ACEOF 5028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5030 ac_status=$? 5031 grep -v '^ *+' conftest.er1 >conftest.err 5032 rm -f conftest.er1 5033 cat conftest.err >&5 5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5035 (exit $ac_status); } >/dev/null; then 5036 if test -s conftest.err; then 5037 ac_cpp_err=$ac_cxx_preproc_warn_flag 5038 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5039 else 5040 ac_cpp_err= 5041 fi 5042else 5043 ac_cpp_err=yes 5044fi 5045if test -z "$ac_cpp_err"; then 5046 : 5047else 5048 echo "$as_me: failed program was:" >&5 5049sed 's/^/| /' conftest.$ac_ext >&5 5050 5051 # Broken: fails on valid input. 5052continue 5053fi 5054rm -f conftest.err conftest.$ac_ext 5055 5056 # OK, works on sane cases. Now check whether non-existent headers 5057 # can be detected and how. 5058 cat >conftest.$ac_ext <<_ACEOF 5059/* confdefs.h. */ 5060_ACEOF 5061cat confdefs.h >>conftest.$ac_ext 5062cat >>conftest.$ac_ext <<_ACEOF 5063/* end confdefs.h. */ 5064#include <ac_nonexistent.h> 5065_ACEOF 5066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5068 ac_status=$? 5069 grep -v '^ *+' conftest.er1 >conftest.err 5070 rm -f conftest.er1 5071 cat conftest.err >&5 5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5073 (exit $ac_status); } >/dev/null; then 5074 if test -s conftest.err; then 5075 ac_cpp_err=$ac_cxx_preproc_warn_flag 5076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5077 else 5078 ac_cpp_err= 5079 fi 5080else 5081 ac_cpp_err=yes 5082fi 5083if test -z "$ac_cpp_err"; then 5084 # Broken: success on invalid input. 5085continue 5086else 5087 echo "$as_me: failed program was:" >&5 5088sed 's/^/| /' conftest.$ac_ext >&5 5089 5090 # Passes both tests. 5091ac_preproc_ok=: 5092break 5093fi 5094rm -f conftest.err conftest.$ac_ext 5095 5096done 5097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5098rm -f conftest.err conftest.$ac_ext 5099if $ac_preproc_ok; then 5100 : 5101else 5102 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5103See \`config.log' for more details." >&5 5104echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5105See \`config.log' for more details." >&2;} 5106 { (exit 1); exit 1; }; } 5107fi 5108 5109ac_ext=cc 5110ac_cpp='$CXXCPP $CPPFLAGS' 5111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5114 5115 5116ac_ext=f 5117ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5118ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5119ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5120if test -n "$ac_tool_prefix"; then 5121 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5122 do 5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5124set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5125echo "$as_me:$LINENO: checking for $ac_word" >&5 5126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5127if test "${ac_cv_prog_F77+set}" = set; then 5128 echo $ECHO_N "(cached) $ECHO_C" >&6 5129else 5130 if test -n "$F77"; then 5131 ac_cv_prog_F77="$F77" # Let the user override the test. 5132else 5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5134for as_dir in $PATH 5135do 5136 IFS=$as_save_IFS 5137 test -z "$as_dir" && as_dir=. 5138 for ac_exec_ext in '' $ac_executable_extensions; do 5139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5140 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5142 break 2 5143 fi 5144done 5145done 5146 5147fi 5148fi 5149F77=$ac_cv_prog_F77 5150if test -n "$F77"; then 5151 echo "$as_me:$LINENO: result: $F77" >&5 5152echo "${ECHO_T}$F77" >&6 5153else 5154 echo "$as_me:$LINENO: result: no" >&5 5155echo "${ECHO_T}no" >&6 5156fi 5157 5158 test -n "$F77" && break 5159 done 5160fi 5161if test -z "$F77"; then 5162 ac_ct_F77=$F77 5163 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5164do 5165 # Extract the first word of "$ac_prog", so it can be a program name with args. 5166set dummy $ac_prog; ac_word=$2 5167echo "$as_me:$LINENO: checking for $ac_word" >&5 5168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5169if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5170 echo $ECHO_N "(cached) $ECHO_C" >&6 5171else 5172 if test -n "$ac_ct_F77"; then 5173 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5174else 5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5176for as_dir in $PATH 5177do 5178 IFS=$as_save_IFS 5179 test -z "$as_dir" && as_dir=. 5180 for ac_exec_ext in '' $ac_executable_extensions; do 5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5182 ac_cv_prog_ac_ct_F77="$ac_prog" 5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5184 break 2 5185 fi 5186done 5187done 5188 5189fi 5190fi 5191ac_ct_F77=$ac_cv_prog_ac_ct_F77 5192if test -n "$ac_ct_F77"; then 5193 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5194echo "${ECHO_T}$ac_ct_F77" >&6 5195else 5196 echo "$as_me:$LINENO: result: no" >&5 5197echo "${ECHO_T}no" >&6 5198fi 5199 5200 test -n "$ac_ct_F77" && break 5201done 5202 5203 F77=$ac_ct_F77 5204fi 5205 5206 5207# Provide some information about the compiler. 5208echo "$as_me:5208:" \ 5209 "checking for Fortran 77 compiler version" >&5 5210ac_compiler=`set X $ac_compile; echo $2` 5211{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5212 (eval $ac_compiler --version </dev/null >&5) 2>&5 5213 ac_status=$? 5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5215 (exit $ac_status); } 5216{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5217 (eval $ac_compiler -v </dev/null >&5) 2>&5 5218 ac_status=$? 5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5220 (exit $ac_status); } 5221{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5222 (eval $ac_compiler -V </dev/null >&5) 2>&5 5223 ac_status=$? 5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5225 (exit $ac_status); } 5226rm -f a.out 5227 5228# If we don't use `.F' as extension, the preprocessor is not run on the 5229# input file. (Note that this only needs to work for GNU compilers.) 5230ac_save_ext=$ac_ext 5231ac_ext=F 5232echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5233echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5234if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5235 echo $ECHO_N "(cached) $ECHO_C" >&6 5236else 5237 cat >conftest.$ac_ext <<_ACEOF 5238 program main 5239#ifndef __GNUC__ 5240 choke me 5241#endif 5242 5243 end 5244_ACEOF 5245rm -f conftest.$ac_objext 5246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5247 (eval $ac_compile) 2>conftest.er1 5248 ac_status=$? 5249 grep -v '^ *+' conftest.er1 >conftest.err 5250 rm -f conftest.er1 5251 cat conftest.err >&5 5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5253 (exit $ac_status); } && 5254 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5256 (eval $ac_try) 2>&5 5257 ac_status=$? 5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5259 (exit $ac_status); }; } && 5260 { ac_try='test -s conftest.$ac_objext' 5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5262 (eval $ac_try) 2>&5 5263 ac_status=$? 5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5265 (exit $ac_status); }; }; then 5266 ac_compiler_gnu=yes 5267else 5268 echo "$as_me: failed program was:" >&5 5269sed 's/^/| /' conftest.$ac_ext >&5 5270 5271ac_compiler_gnu=no 5272fi 5273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5274ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5275 5276fi 5277echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5278echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5279ac_ext=$ac_save_ext 5280ac_test_FFLAGS=${FFLAGS+set} 5281ac_save_FFLAGS=$FFLAGS 5282FFLAGS= 5283echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5284echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5285if test "${ac_cv_prog_f77_g+set}" = set; then 5286 echo $ECHO_N "(cached) $ECHO_C" >&6 5287else 5288 FFLAGS=-g 5289cat >conftest.$ac_ext <<_ACEOF 5290 program main 5291 5292 end 5293_ACEOF 5294rm -f conftest.$ac_objext 5295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5296 (eval $ac_compile) 2>conftest.er1 5297 ac_status=$? 5298 grep -v '^ *+' conftest.er1 >conftest.err 5299 rm -f conftest.er1 5300 cat conftest.err >&5 5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5302 (exit $ac_status); } && 5303 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5305 (eval $ac_try) 2>&5 5306 ac_status=$? 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); }; } && 5309 { ac_try='test -s conftest.$ac_objext' 5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5311 (eval $ac_try) 2>&5 5312 ac_status=$? 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); }; }; then 5315 ac_cv_prog_f77_g=yes 5316else 5317 echo "$as_me: failed program was:" >&5 5318sed 's/^/| /' conftest.$ac_ext >&5 5319 5320ac_cv_prog_f77_g=no 5321fi 5322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5323 5324fi 5325echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5326echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5327if test "$ac_test_FFLAGS" = set; then 5328 FFLAGS=$ac_save_FFLAGS 5329elif test $ac_cv_prog_f77_g = yes; then 5330 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5331 FFLAGS="-g -O2" 5332 else 5333 FFLAGS="-g" 5334 fi 5335else 5336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5337 FFLAGS="-O2" 5338 else 5339 FFLAGS= 5340 fi 5341fi 5342 5343G77=`test $ac_compiler_gnu = yes && echo yes` 5344ac_ext=c 5345ac_cpp='$CPP $CPPFLAGS' 5346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5348ac_compiler_gnu=$ac_cv_c_compiler_gnu 5349 5350 5351 5352# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5353 5354# find the maximum length of command line arguments 5355echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5356echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5357if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5358 echo $ECHO_N "(cached) $ECHO_C" >&6 5359else 5360 i=0 5361 teststring="ABCD" 5362 5363 case $build_os in 5364 msdosdjgpp*) 5365 # On DJGPP, this test can blow up pretty badly due to problems in libc 5366 # (any single argument exceeding 2000 bytes causes a buffer overrun 5367 # during glob expansion). Even if it were fixed, the result of this 5368 # check would be larger than it should be. 5369 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5370 ;; 5371 5372 gnu*) 5373 # Under GNU Hurd, this test is not required because there is 5374 # no limit to the length of command line arguments. 5375 # Libtool will interpret -1 as no limit whatsoever 5376 lt_cv_sys_max_cmd_len=-1; 5377 ;; 5378 5379 cygwin* | mingw*) 5380 # On Win9x/ME, this test blows up -- it succeeds, but takes 5381 # about 5 minutes as the teststring grows exponentially. 5382 # Worse, since 9x/ME are not pre-emptively multitasking, 5383 # you end up with a "frozen" computer, even though with patience 5384 # the test eventually succeeds (with a max line length of 256k). 5385 # Instead, let's just punt: use the minimum linelength reported by 5386 # all of the supported platforms: 8192 (on NT/2K/XP). 5387 lt_cv_sys_max_cmd_len=8192; 5388 ;; 5389 5390 amigaos*) 5391 # On AmigaOS with pdksh, this test takes hours, literally. 5392 # So we just punt and use a minimum line length of 8192. 5393 lt_cv_sys_max_cmd_len=8192; 5394 ;; 5395 5396 *) 5397 # If test is not a shell built-in, we'll probably end up computing a 5398 # maximum length that is only half of the actual maximum length, but 5399 # we can't tell. 5400 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5401 = "XX$teststring") >/dev/null 2>&1 && 5402 new_result=`expr "X$teststring" : ".*" 2>&1` && 5403 lt_cv_sys_max_cmd_len=$new_result && 5404 test $i != 17 # 1/2 MB should be enough 5405 do 5406 i=`expr $i + 1` 5407 teststring=$teststring$teststring 5408 done 5409 teststring= 5410 # Add a significant safety factor because C++ compilers can tack on massive 5411 # amounts of additional arguments before passing them to the linker. 5412 # It appears as though 1/2 is a usable value. 5413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5414 ;; 5415 esac 5416 5417fi 5418 5419if test -n $lt_cv_sys_max_cmd_len ; then 5420 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5421echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5422else 5423 echo "$as_me:$LINENO: result: none" >&5 5424echo "${ECHO_T}none" >&6 5425fi 5426 5427 5428 5429 5430# Check for command to grab the raw symbol name followed by C symbol from nm. 5431echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5432echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5433if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5434 echo $ECHO_N "(cached) $ECHO_C" >&6 5435else 5436 5437# These are sane defaults that work on at least a few old systems. 5438# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5439 5440# Character class describing NM global symbol codes. 5441symcode='[BCDEGRST]' 5442 5443# Regexp to match symbols that can be accessed directly from C. 5444sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5445 5446# Transform the above into a raw symbol and a C symbol. 5447symxfrm='\1 \2\3 \3' 5448 5449# Transform an extracted symbol line into a proper C declaration 5450lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5451 5452# Transform an extracted symbol line into symbol name and symbol address 5453lt_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'" 5454 5455# Define system-specific variables. 5456case $host_os in 5457aix*) 5458 symcode='[BCDT]' 5459 ;; 5460cygwin* | mingw* | pw32*) 5461 symcode='[ABCDGISTW]' 5462 ;; 5463hpux*) # Its linker distinguishes data from code symbols 5464 if test "$host_cpu" = ia64; then 5465 symcode='[ABCDEGRST]' 5466 fi 5467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5468 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'" 5469 ;; 5470irix* | nonstopux*) 5471 symcode='[BCDEGRST]' 5472 ;; 5473osf*) 5474 symcode='[BCDEGQRST]' 5475 ;; 5476solaris* | sysv5*) 5477 symcode='[BDRT]' 5478 ;; 5479sysv4) 5480 symcode='[DFNSTU]' 5481 ;; 5482esac 5483 5484# Handle CRLF in mingw tool chain 5485opt_cr= 5486case $build_os in 5487mingw*) 5488 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5489 ;; 5490esac 5491 5492# If we're using GNU nm, then use its standard symbol codes. 5493case `$NM -V 2>&1` in 5494*GNU* | *'with BFD'*) 5495 symcode='[ABCDGIRSTW]' ;; 5496esac 5497 5498# Try without a prefix undercore, then with it. 5499for ac_symprfx in "" "_"; do 5500 5501 # Write the raw and C identifiers. 5502 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5503 5504 # Check to see that the pipe works correctly. 5505 pipe_works=no 5506 5507 rm -f conftest* 5508 cat > conftest.$ac_ext <<EOF 5509#ifdef __cplusplus 5510extern "C" { 5511#endif 5512char nm_test_var; 5513void nm_test_func(){} 5514#ifdef __cplusplus 5515} 5516#endif 5517int main(){nm_test_var='a';nm_test_func();return(0);} 5518EOF 5519 5520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5521 (eval $ac_compile) 2>&5 5522 ac_status=$? 5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5524 (exit $ac_status); }; then 5525 # Now try to grab the symbols. 5526 nlist=conftest.nm 5527 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5528 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5529 ac_status=$? 5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5531 (exit $ac_status); } && test -s "$nlist"; then 5532 # Try sorting and uniquifying the output. 5533 if sort "$nlist" | uniq > "$nlist"T; then 5534 mv -f "$nlist"T "$nlist" 5535 else 5536 rm -f "$nlist"T 5537 fi 5538 5539 # Make sure that we snagged all the symbols we need. 5540 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5541 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5542 cat <<EOF > conftest.$ac_ext 5543#ifdef __cplusplus 5544extern "C" { 5545#endif 5546 5547EOF 5548 # Now generate the symbol file. 5549 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5550 5551 cat <<EOF >> conftest.$ac_ext 5552#if defined (__STDC__) && __STDC__ 5553# define lt_ptr_t void * 5554#else 5555# define lt_ptr_t char * 5556# define const 5557#endif 5558 5559/* The mapping between symbol names and symbols. */ 5560const struct { 5561 const char *name; 5562 lt_ptr_t address; 5563} 5564lt_preloaded_symbols[] = 5565{ 5566EOF 5567 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5568 cat <<\EOF >> conftest.$ac_ext 5569 {0, (lt_ptr_t) 0} 5570}; 5571 5572#ifdef __cplusplus 5573} 5574#endif 5575EOF 5576 # Now try linking the two files. 5577 mv conftest.$ac_objext conftstm.$ac_objext 5578 lt_save_LIBS="$LIBS" 5579 lt_save_CFLAGS="$CFLAGS" 5580 LIBS="conftstm.$ac_objext" 5581 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5583 (eval $ac_link) 2>&5 5584 ac_status=$? 5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5586 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5587 pipe_works=yes 5588 fi 5589 LIBS="$lt_save_LIBS" 5590 CFLAGS="$lt_save_CFLAGS" 5591 else 5592 echo "cannot find nm_test_func in $nlist" >&5 5593 fi 5594 else 5595 echo "cannot find nm_test_var in $nlist" >&5 5596 fi 5597 else 5598 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5599 fi 5600 else 5601 echo "$progname: failed program was:" >&5 5602 cat conftest.$ac_ext >&5 5603 fi 5604 rm -f conftest* conftst* 5605 5606 # Do not use the global_symbol_pipe unless it works. 5607 if test "$pipe_works" = yes; then 5608 break 5609 else 5610 lt_cv_sys_global_symbol_pipe= 5611 fi 5612done 5613 5614fi 5615 5616if test -z "$lt_cv_sys_global_symbol_pipe"; then 5617 lt_cv_sys_global_symbol_to_cdecl= 5618fi 5619if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5620 echo "$as_me:$LINENO: result: failed" >&5 5621echo "${ECHO_T}failed" >&6 5622else 5623 echo "$as_me:$LINENO: result: ok" >&5 5624echo "${ECHO_T}ok" >&6 5625fi 5626 5627echo "$as_me:$LINENO: checking for objdir" >&5 5628echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5629if test "${lt_cv_objdir+set}" = set; then 5630 echo $ECHO_N "(cached) $ECHO_C" >&6 5631else 5632 rm -f .libs 2>/dev/null 5633mkdir .libs 2>/dev/null 5634if test -d .libs; then 5635 lt_cv_objdir=.libs 5636else 5637 # MS-DOS does not allow filenames that begin with a dot. 5638 lt_cv_objdir=_libs 5639fi 5640rmdir .libs 2>/dev/null 5641fi 5642echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5643echo "${ECHO_T}$lt_cv_objdir" >&6 5644objdir=$lt_cv_objdir 5645 5646 5647 5648 5649 5650case $host_os in 5651aix3*) 5652 # AIX sometimes has problems with the GCC collect2 program. For some 5653 # reason, if we set the COLLECT_NAMES environment variable, the problems 5654 # vanish in a puff of smoke. 5655 if test "X${COLLECT_NAMES+set}" != Xset; then 5656 COLLECT_NAMES= 5657 export COLLECT_NAMES 5658 fi 5659 ;; 5660esac 5661 5662# Sed substitution that helps us do robust quoting. It backslashifies 5663# metacharacters that are still active within double-quoted strings. 5664Xsed='sed -e s/^X//' 5665sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5666 5667# Same as above, but do not quote variable references. 5668double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5669 5670# Sed substitution to delay expansion of an escaped shell variable in a 5671# double_quote_subst'ed string. 5672delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5673 5674# Sed substitution to avoid accidental globbing in evaled expressions 5675no_glob_subst='s/\*/\\\*/g' 5676 5677# Constants: 5678rm="rm -f" 5679 5680# Global variables: 5681default_ofile=libtool 5682can_build_shared=yes 5683 5684# All known linkers require a `.a' archive for static linking (except M$VC, 5685# which needs '.lib'). 5686libext=a 5687ltmain="$ac_aux_dir/ltmain.sh" 5688ofile="$default_ofile" 5689with_gnu_ld="$lt_cv_prog_gnu_ld" 5690 5691if test -n "$ac_tool_prefix"; then 5692 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5693set dummy ${ac_tool_prefix}ar; ac_word=$2 5694echo "$as_me:$LINENO: checking for $ac_word" >&5 5695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5696if test "${ac_cv_prog_AR+set}" = set; then 5697 echo $ECHO_N "(cached) $ECHO_C" >&6 5698else 5699 if test -n "$AR"; then 5700 ac_cv_prog_AR="$AR" # Let the user override the test. 5701else 5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5703for as_dir in $PATH 5704do 5705 IFS=$as_save_IFS 5706 test -z "$as_dir" && as_dir=. 5707 for ac_exec_ext in '' $ac_executable_extensions; do 5708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5709 ac_cv_prog_AR="${ac_tool_prefix}ar" 5710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5711 break 2 5712 fi 5713done 5714done 5715 5716fi 5717fi 5718AR=$ac_cv_prog_AR 5719if test -n "$AR"; then 5720 echo "$as_me:$LINENO: result: $AR" >&5 5721echo "${ECHO_T}$AR" >&6 5722else 5723 echo "$as_me:$LINENO: result: no" >&5 5724echo "${ECHO_T}no" >&6 5725fi 5726 5727fi 5728if test -z "$ac_cv_prog_AR"; then 5729 ac_ct_AR=$AR 5730 # Extract the first word of "ar", so it can be a program name with args. 5731set dummy ar; ac_word=$2 5732echo "$as_me:$LINENO: checking for $ac_word" >&5 5733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5734if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5735 echo $ECHO_N "(cached) $ECHO_C" >&6 5736else 5737 if test -n "$ac_ct_AR"; then 5738 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5739else 5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5741for as_dir in $PATH 5742do 5743 IFS=$as_save_IFS 5744 test -z "$as_dir" && as_dir=. 5745 for ac_exec_ext in '' $ac_executable_extensions; do 5746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5747 ac_cv_prog_ac_ct_AR="ar" 5748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5749 break 2 5750 fi 5751done 5752done 5753 5754 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5755fi 5756fi 5757ac_ct_AR=$ac_cv_prog_ac_ct_AR 5758if test -n "$ac_ct_AR"; then 5759 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5760echo "${ECHO_T}$ac_ct_AR" >&6 5761else 5762 echo "$as_me:$LINENO: result: no" >&5 5763echo "${ECHO_T}no" >&6 5764fi 5765 5766 AR=$ac_ct_AR 5767else 5768 AR="$ac_cv_prog_AR" 5769fi 5770 5771if test -n "$ac_tool_prefix"; then 5772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5773set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5774echo "$as_me:$LINENO: checking for $ac_word" >&5 5775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5776if test "${ac_cv_prog_RANLIB+set}" = set; then 5777 echo $ECHO_N "(cached) $ECHO_C" >&6 5778else 5779 if test -n "$RANLIB"; then 5780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5781else 5782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783for as_dir in $PATH 5784do 5785 IFS=$as_save_IFS 5786 test -z "$as_dir" && as_dir=. 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793done 5794done 5795 5796fi 5797fi 5798RANLIB=$ac_cv_prog_RANLIB 5799if test -n "$RANLIB"; then 5800 echo "$as_me:$LINENO: result: $RANLIB" >&5 5801echo "${ECHO_T}$RANLIB" >&6 5802else 5803 echo "$as_me:$LINENO: result: no" >&5 5804echo "${ECHO_T}no" >&6 5805fi 5806 5807fi 5808if test -z "$ac_cv_prog_RANLIB"; then 5809 ac_ct_RANLIB=$RANLIB 5810 # Extract the first word of "ranlib", so it can be a program name with args. 5811set dummy ranlib; ac_word=$2 5812echo "$as_me:$LINENO: checking for $ac_word" >&5 5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5814if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5815 echo $ECHO_N "(cached) $ECHO_C" >&6 5816else 5817 if test -n "$ac_ct_RANLIB"; then 5818 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5819else 5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821for as_dir in $PATH 5822do 5823 IFS=$as_save_IFS 5824 test -z "$as_dir" && as_dir=. 5825 for ac_exec_ext in '' $ac_executable_extensions; do 5826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5827 ac_cv_prog_ac_ct_RANLIB="ranlib" 5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5829 break 2 5830 fi 5831done 5832done 5833 5834 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5835fi 5836fi 5837ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5838if test -n "$ac_ct_RANLIB"; then 5839 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5840echo "${ECHO_T}$ac_ct_RANLIB" >&6 5841else 5842 echo "$as_me:$LINENO: result: no" >&5 5843echo "${ECHO_T}no" >&6 5844fi 5845 5846 RANLIB=$ac_ct_RANLIB 5847else 5848 RANLIB="$ac_cv_prog_RANLIB" 5849fi 5850 5851if test -n "$ac_tool_prefix"; then 5852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5853set dummy ${ac_tool_prefix}strip; ac_word=$2 5854echo "$as_me:$LINENO: checking for $ac_word" >&5 5855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5856if test "${ac_cv_prog_STRIP+set}" = set; then 5857 echo $ECHO_N "(cached) $ECHO_C" >&6 5858else 5859 if test -n "$STRIP"; then 5860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5861else 5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863for as_dir in $PATH 5864do 5865 IFS=$as_save_IFS 5866 test -z "$as_dir" && as_dir=. 5867 for ac_exec_ext in '' $ac_executable_extensions; do 5868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5869 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5871 break 2 5872 fi 5873done 5874done 5875 5876fi 5877fi 5878STRIP=$ac_cv_prog_STRIP 5879if test -n "$STRIP"; then 5880 echo "$as_me:$LINENO: result: $STRIP" >&5 5881echo "${ECHO_T}$STRIP" >&6 5882else 5883 echo "$as_me:$LINENO: result: no" >&5 5884echo "${ECHO_T}no" >&6 5885fi 5886 5887fi 5888if test -z "$ac_cv_prog_STRIP"; then 5889 ac_ct_STRIP=$STRIP 5890 # Extract the first word of "strip", so it can be a program name with args. 5891set dummy strip; ac_word=$2 5892echo "$as_me:$LINENO: checking for $ac_word" >&5 5893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5894if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5895 echo $ECHO_N "(cached) $ECHO_C" >&6 5896else 5897 if test -n "$ac_ct_STRIP"; then 5898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5899else 5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901for as_dir in $PATH 5902do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5907 ac_cv_prog_ac_ct_STRIP="strip" 5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911done 5912done 5913 5914 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5915fi 5916fi 5917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5918if test -n "$ac_ct_STRIP"; then 5919 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5920echo "${ECHO_T}$ac_ct_STRIP" >&6 5921else 5922 echo "$as_me:$LINENO: result: no" >&5 5923echo "${ECHO_T}no" >&6 5924fi 5925 5926 STRIP=$ac_ct_STRIP 5927else 5928 STRIP="$ac_cv_prog_STRIP" 5929fi 5930 5931 5932old_CC="$CC" 5933old_CFLAGS="$CFLAGS" 5934 5935# Set sane defaults for various variables 5936test -z "$AR" && AR=ar 5937test -z "$AR_FLAGS" && AR_FLAGS=cru 5938test -z "$AS" && AS=as 5939test -z "$CC" && CC=cc 5940test -z "$LTCC" && LTCC=$CC 5941test -z "$DLLTOOL" && DLLTOOL=dlltool 5942test -z "$LD" && LD=ld 5943test -z "$LN_S" && LN_S="ln -s" 5944test -z "$MAGIC_CMD" && MAGIC_CMD=file 5945test -z "$NM" && NM=nm 5946test -z "$SED" && SED=sed 5947test -z "$OBJDUMP" && OBJDUMP=objdump 5948test -z "$RANLIB" && RANLIB=: 5949test -z "$STRIP" && STRIP=: 5950test -z "$ac_objext" && ac_objext=o 5951 5952# Determine commands to create old-style static archives. 5953old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5954old_postinstall_cmds='chmod 644 $oldlib' 5955old_postuninstall_cmds= 5956 5957if test -n "$RANLIB"; then 5958 case $host_os in 5959 openbsd*) 5960 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5961 ;; 5962 *) 5963 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5964 ;; 5965 esac 5966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5967fi 5968 5969# Only perform the check for file, if the check method requires it 5970case $deplibs_check_method in 5971file_magic*) 5972 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5973 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5974echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5975if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5976 echo $ECHO_N "(cached) $ECHO_C" >&6 5977else 5978 case $MAGIC_CMD in 5979[\\/*] | ?:[\\/]*) 5980 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5981 ;; 5982*) 5983 lt_save_MAGIC_CMD="$MAGIC_CMD" 5984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5985 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5986 for ac_dir in $ac_dummy; do 5987 IFS="$lt_save_ifs" 5988 test -z "$ac_dir" && ac_dir=. 5989 if test -f $ac_dir/${ac_tool_prefix}file; then 5990 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5991 if test -n "$file_magic_test_file"; then 5992 case $deplibs_check_method in 5993 "file_magic "*) 5994 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5995 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5996 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5997 $EGREP "$file_magic_regex" > /dev/null; then 5998 : 5999 else 6000 cat <<EOF 1>&2 6001 6002*** Warning: the command libtool uses to detect shared libraries, 6003*** $file_magic_cmd, produces output that libtool cannot recognize. 6004*** The result is that libtool may fail to recognize shared libraries 6005*** as such. This will affect the creation of libtool libraries that 6006*** depend on shared libraries, but programs linked with such libtool 6007*** libraries will work regardless of this problem. Nevertheless, you 6008*** may want to report the problem to your system manager and/or to 6009*** bug-libtool@gnu.org 6010 6011EOF 6012 fi ;; 6013 esac 6014 fi 6015 break 6016 fi 6017 done 6018 IFS="$lt_save_ifs" 6019 MAGIC_CMD="$lt_save_MAGIC_CMD" 6020 ;; 6021esac 6022fi 6023 6024MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6025if test -n "$MAGIC_CMD"; then 6026 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6027echo "${ECHO_T}$MAGIC_CMD" >&6 6028else 6029 echo "$as_me:$LINENO: result: no" >&5 6030echo "${ECHO_T}no" >&6 6031fi 6032 6033if test -z "$lt_cv_path_MAGIC_CMD"; then 6034 if test -n "$ac_tool_prefix"; then 6035 echo "$as_me:$LINENO: checking for file" >&5 6036echo $ECHO_N "checking for file... $ECHO_C" >&6 6037if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6038 echo $ECHO_N "(cached) $ECHO_C" >&6 6039else 6040 case $MAGIC_CMD in 6041[\\/*] | ?:[\\/]*) 6042 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6043 ;; 6044*) 6045 lt_save_MAGIC_CMD="$MAGIC_CMD" 6046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6048 for ac_dir in $ac_dummy; do 6049 IFS="$lt_save_ifs" 6050 test -z "$ac_dir" && ac_dir=. 6051 if test -f $ac_dir/file; then 6052 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6053 if test -n "$file_magic_test_file"; then 6054 case $deplibs_check_method in 6055 "file_magic "*) 6056 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6059 $EGREP "$file_magic_regex" > /dev/null; then 6060 : 6061 else 6062 cat <<EOF 1>&2 6063 6064*** Warning: the command libtool uses to detect shared libraries, 6065*** $file_magic_cmd, produces output that libtool cannot recognize. 6066*** The result is that libtool may fail to recognize shared libraries 6067*** as such. This will affect the creation of libtool libraries that 6068*** depend on shared libraries, but programs linked with such libtool 6069*** libraries will work regardless of this problem. Nevertheless, you 6070*** may want to report the problem to your system manager and/or to 6071*** bug-libtool@gnu.org 6072 6073EOF 6074 fi ;; 6075 esac 6076 fi 6077 break 6078 fi 6079 done 6080 IFS="$lt_save_ifs" 6081 MAGIC_CMD="$lt_save_MAGIC_CMD" 6082 ;; 6083esac 6084fi 6085 6086MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6087if test -n "$MAGIC_CMD"; then 6088 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6089echo "${ECHO_T}$MAGIC_CMD" >&6 6090else 6091 echo "$as_me:$LINENO: result: no" >&5 6092echo "${ECHO_T}no" >&6 6093fi 6094 6095 else 6096 MAGIC_CMD=: 6097 fi 6098fi 6099 6100 fi 6101 ;; 6102esac 6103 6104enable_dlopen=no 6105enable_win32_dll=no 6106 6107# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6108if test "${enable_libtool_lock+set}" = set; then 6109 enableval="$enable_libtool_lock" 6110 6111fi; 6112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6113 6114 6115# Check whether --with-pic or --without-pic was given. 6116if test "${with_pic+set}" = set; then 6117 withval="$with_pic" 6118 pic_mode="$withval" 6119else 6120 pic_mode=default 6121fi; 6122test -z "$pic_mode" && pic_mode=default 6123 6124# Use C for the default configuration in the libtool script 6125tagname= 6126lt_save_CC="$CC" 6127ac_ext=c 6128ac_cpp='$CPP $CPPFLAGS' 6129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6131ac_compiler_gnu=$ac_cv_c_compiler_gnu 6132 6133 6134# Source file extension for C test sources. 6135ac_ext=c 6136 6137# Object file extension for compiled C test sources. 6138objext=o 6139objext=$objext 6140 6141# Code to be used in simple compile tests 6142lt_simple_compile_test_code="int some_variable = 0;\n" 6143 6144# Code to be used in simple link tests 6145lt_simple_link_test_code='int main(){return(0);}\n' 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 6155# 6156# Check for any special shared library compilation flags. 6157# 6158lt_prog_cc_shlib= 6159if test "$GCC" = no; then 6160 case $host_os in 6161 sco3.2v5*) 6162 lt_prog_cc_shlib='-belf' 6163 ;; 6164 esac 6165fi 6166if test -n "$lt_prog_cc_shlib"; then 6167 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6168echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6169 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6170 else 6171 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6172echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6173 lt_cv_prog_cc_can_build_shared=no 6174 fi 6175fi 6176 6177 6178# 6179# Check to make sure the static flag actually works. 6180# 6181echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6182echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6183if test "${lt_prog_compiler_static_works+set}" = set; then 6184 echo $ECHO_N "(cached) $ECHO_C" >&6 6185else 6186 lt_prog_compiler_static_works=no 6187 save_LDFLAGS="$LDFLAGS" 6188 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6189 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6190 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6191 # The compiler can only warn and ignore the option if not recognized 6192 # So say no if there are warnings 6193 if test -s conftest.err; then 6194 # Append any errors to the config.log. 6195 cat conftest.err 1>&5 6196 else 6197 lt_prog_compiler_static_works=yes 6198 fi 6199 fi 6200 $rm conftest* 6201 LDFLAGS="$save_LDFLAGS" 6202 6203fi 6204echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6205echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6206 6207if test x"$lt_prog_compiler_static_works" = xyes; then 6208 : 6209else 6210 lt_prog_compiler_static= 6211fi 6212 6213 6214 6215 6216lt_prog_compiler_no_builtin_flag= 6217 6218if test "$GCC" = yes; then 6219 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6220 6221 6222echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6223echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6224if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6225 echo $ECHO_N "(cached) $ECHO_C" >&6 6226else 6227 lt_cv_prog_compiler_rtti_exceptions=no 6228 ac_outfile=conftest.$ac_objext 6229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6230 lt_compiler_flag="-fno-rtti -fno-exceptions" 6231 # Insert the option either (1) after the last *FLAGS variable, or 6232 # (2) before a word containing "conftest.", or (3) at the end. 6233 # Note that $ac_compile itself does not contain backslashes and begins 6234 # with a dollar sign (not a hyphen), so the echo should work correctly. 6235 # The option is referenced via a variable to avoid confusing sed. 6236 lt_compile=`echo "$ac_compile" | $SED \ 6237 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6239 -e 's:$: $lt_compiler_flag:'` 6240 (eval echo "\"\$as_me:6240: $lt_compile\"" >&5) 6241 (eval "$lt_compile" 2>conftest.err) 6242 ac_status=$? 6243 cat conftest.err >&5 6244 echo "$as_me:6244: \$? = $ac_status" >&5 6245 if (exit $ac_status) && test -s "$ac_outfile"; then 6246 # The compiler can only warn and ignore the option if not recognized 6247 # So say no if there are warnings 6248 if test ! -s conftest.err; then 6249 lt_cv_prog_compiler_rtti_exceptions=yes 6250 fi 6251 fi 6252 $rm conftest* 6253 6254fi 6255echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6256echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6257 6258if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6259 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6260else 6261 : 6262fi 6263 6264fi 6265 6266lt_prog_compiler_wl= 6267lt_prog_compiler_pic= 6268lt_prog_compiler_static= 6269 6270echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6271echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6272 6273 if test "$GCC" = yes; then 6274 lt_prog_compiler_wl='-Wl,' 6275 lt_prog_compiler_static='-static' 6276 6277 case $host_os in 6278 aix*) 6279 # All AIX code is PIC. 6280 if test "$host_cpu" = ia64; then 6281 # AIX 5 now supports IA64 processor 6282 lt_prog_compiler_static='-Bstatic' 6283 fi 6284 ;; 6285 6286 amigaos*) 6287 # FIXME: we need at least 68020 code to build shared libraries, but 6288 # adding the `-m68020' flag to GCC prevents building anything better, 6289 # like `-m68040'. 6290 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6291 ;; 6292 6293 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6294 # PIC is the default for these OSes. 6295 ;; 6296 6297 mingw* | pw32* | os2*) 6298 # This hack is so that the source file can tell whether it is being 6299 # built for inclusion in a dll (and should export symbols for example). 6300 lt_prog_compiler_pic='-DDLL_EXPORT' 6301 ;; 6302 6303 darwin* | rhapsody*) 6304 # PIC is the default on this platform 6305 # Common symbols not allowed in MH_DYLIB files 6306 lt_prog_compiler_pic='-fno-common' 6307 ;; 6308 6309 msdosdjgpp*) 6310 # Just because we use GCC doesn't mean we suddenly get shared libraries 6311 # on systems that don't support them. 6312 lt_prog_compiler_can_build_shared=no 6313 enable_shared=no 6314 ;; 6315 6316 sysv4*MP*) 6317 if test -d /usr/nec; then 6318 lt_prog_compiler_pic=-Kconform_pic 6319 fi 6320 ;; 6321 6322 hpux*) 6323 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6324 # not for PA HP-UX. 6325 case "$host_cpu" in 6326 hppa*64*|ia64*) 6327 # +Z the default 6328 ;; 6329 *) 6330 lt_prog_compiler_pic='-fPIC' 6331 ;; 6332 esac 6333 ;; 6334 6335 *) 6336 lt_prog_compiler_pic='-fPIC' 6337 ;; 6338 esac 6339 else 6340 # PORTME Check for flag to pass linker flags through the system compiler. 6341 case $host_os in 6342 aix*) 6343 lt_prog_compiler_wl='-Wl,' 6344 if test "$host_cpu" = ia64; then 6345 # AIX 5 now supports IA64 processor 6346 lt_prog_compiler_static='-Bstatic' 6347 else 6348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6349 fi 6350 ;; 6351 6352 mingw* | pw32* | os2*) 6353 # This hack is so that the source file can tell whether it is being 6354 # built for inclusion in a dll (and should export symbols for example). 6355 lt_prog_compiler_pic='-DDLL_EXPORT' 6356 ;; 6357 6358 hpux9* | hpux10* | hpux11*) 6359 lt_prog_compiler_wl='-Wl,' 6360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6361 # not for PA HP-UX. 6362 case "$host_cpu" in 6363 hppa*64*|ia64*) 6364 # +Z the default 6365 ;; 6366 *) 6367 lt_prog_compiler_pic='+Z' 6368 ;; 6369 esac 6370 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6371 lt_prog_compiler_static='${wl}-a ${wl}archive' 6372 ;; 6373 6374 irix5* | irix6* | nonstopux*) 6375 lt_prog_compiler_wl='-Wl,' 6376 # PIC (with -KPIC) is the default. 6377 lt_prog_compiler_static='-non_shared' 6378 ;; 6379 6380 newsos6) 6381 lt_prog_compiler_pic='-KPIC' 6382 lt_prog_compiler_static='-Bstatic' 6383 ;; 6384 6385 linux*) 6386 case $CC in 6387 icc* | ecc*) 6388 lt_prog_compiler_wl='-Wl,' 6389 lt_prog_compiler_pic='-KPIC' 6390 lt_prog_compiler_static='-static' 6391 ;; 6392 ccc*) 6393 lt_prog_compiler_wl='-Wl,' 6394 # All Alpha code is PIC. 6395 lt_prog_compiler_static='-non_shared' 6396 ;; 6397 esac 6398 ;; 6399 6400 osf3* | osf4* | osf5*) 6401 lt_prog_compiler_wl='-Wl,' 6402 # All OSF/1 code is PIC. 6403 lt_prog_compiler_static='-non_shared' 6404 ;; 6405 6406 sco3.2v5*) 6407 lt_prog_compiler_pic='-Kpic' 6408 lt_prog_compiler_static='-dn' 6409 ;; 6410 6411 solaris*) 6412 lt_prog_compiler_wl='-Wl,' 6413 lt_prog_compiler_pic='-KPIC' 6414 lt_prog_compiler_static='-Bstatic' 6415 ;; 6416 6417 sunos4*) 6418 lt_prog_compiler_wl='-Qoption ld ' 6419 lt_prog_compiler_pic='-PIC' 6420 lt_prog_compiler_static='-Bstatic' 6421 ;; 6422 6423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6424 lt_prog_compiler_wl='-Wl,' 6425 lt_prog_compiler_pic='-KPIC' 6426 lt_prog_compiler_static='-Bstatic' 6427 ;; 6428 6429 sysv4*MP*) 6430 if test -d /usr/nec ;then 6431 lt_prog_compiler_pic='-Kconform_pic' 6432 lt_prog_compiler_static='-Bstatic' 6433 fi 6434 ;; 6435 6436 uts4*) 6437 lt_prog_compiler_pic='-pic' 6438 lt_prog_compiler_static='-Bstatic' 6439 ;; 6440 6441 *) 6442 lt_prog_compiler_can_build_shared=no 6443 ;; 6444 esac 6445 fi 6446 6447echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6448echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6449 6450# 6451# Check to make sure the PIC flag actually works. 6452# 6453if test -n "$lt_prog_compiler_pic"; then 6454 6455echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6456echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6457if test "${lt_prog_compiler_pic_works+set}" = set; then 6458 echo $ECHO_N "(cached) $ECHO_C" >&6 6459else 6460 lt_prog_compiler_pic_works=no 6461 ac_outfile=conftest.$ac_objext 6462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6463 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6464 # Insert the option either (1) after the last *FLAGS variable, or 6465 # (2) before a word containing "conftest.", or (3) at the end. 6466 # Note that $ac_compile itself does not contain backslashes and begins 6467 # with a dollar sign (not a hyphen), so the echo should work correctly. 6468 # The option is referenced via a variable to avoid confusing sed. 6469 lt_compile=`echo "$ac_compile" | $SED \ 6470 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6472 -e 's:$: $lt_compiler_flag:'` 6473 (eval echo "\"\$as_me:6473: $lt_compile\"" >&5) 6474 (eval "$lt_compile" 2>conftest.err) 6475 ac_status=$? 6476 cat conftest.err >&5 6477 echo "$as_me:6477: \$? = $ac_status" >&5 6478 if (exit $ac_status) && test -s "$ac_outfile"; then 6479 # The compiler can only warn and ignore the option if not recognized 6480 # So say no if there are warnings 6481 if test ! -s conftest.err; then 6482 lt_prog_compiler_pic_works=yes 6483 fi 6484 fi 6485 $rm conftest* 6486 6487fi 6488echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6489echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6490 6491if test x"$lt_prog_compiler_pic_works" = xyes; then 6492 case $lt_prog_compiler_pic in 6493 "" | " "*) ;; 6494 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6495 esac 6496else 6497 lt_prog_compiler_pic= 6498 lt_prog_compiler_can_build_shared=no 6499fi 6500 6501fi 6502case "$host_os" in 6503 # For platforms which do not support PIC, -DPIC is meaningless: 6504 *djgpp*) 6505 lt_prog_compiler_pic= 6506 ;; 6507 *) 6508 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6509 ;; 6510esac 6511 6512echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6513echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6514if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6515 echo $ECHO_N "(cached) $ECHO_C" >&6 6516else 6517 lt_cv_prog_compiler_c_o=no 6518 $rm -r conftest 2>/dev/null 6519 mkdir conftest 6520 cd conftest 6521 mkdir out 6522 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6523 6524 lt_compiler_flag="-o out/conftest2.$ac_objext" 6525 # Insert the option either (1) after the last *FLAGS variable, or 6526 # (2) before a word containing "conftest.", or (3) at the end. 6527 # Note that $ac_compile itself does not contain backslashes and begins 6528 # with a dollar sign (not a hyphen), so the echo should work correctly. 6529 lt_compile=`echo "$ac_compile" | $SED \ 6530 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6532 -e 's:$: $lt_compiler_flag:'` 6533 (eval echo "\"\$as_me:6533: $lt_compile\"" >&5) 6534 (eval "$lt_compile" 2>out/conftest.err) 6535 ac_status=$? 6536 cat out/conftest.err >&5 6537 echo "$as_me:6537: \$? = $ac_status" >&5 6538 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6539 then 6540 # The compiler can only warn and ignore the option if not recognized 6541 # So say no if there are warnings 6542 if test ! -s out/conftest.err; then 6543 lt_cv_prog_compiler_c_o=yes 6544 fi 6545 fi 6546 chmod u+w . 6547 $rm conftest* 6548 # SGI C++ compiler will create directory out/ii_files/ for 6549 # template instantiation 6550 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6551 $rm out/* && rmdir out 6552 cd .. 6553 rmdir conftest 6554 $rm conftest* 6555 6556fi 6557echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6558echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6559 6560 6561hard_links="nottested" 6562if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6563 # do not overwrite the value of need_locks provided by the user 6564 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6565echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6566 hard_links=yes 6567 $rm conftest* 6568 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6569 touch conftest.a 6570 ln conftest.a conftest.b 2>&5 || hard_links=no 6571 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6572 echo "$as_me:$LINENO: result: $hard_links" >&5 6573echo "${ECHO_T}$hard_links" >&6 6574 if test "$hard_links" = no; then 6575 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6576echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6577 need_locks=warn 6578 fi 6579else 6580 need_locks=no 6581fi 6582 6583echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6584echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6585 6586 runpath_var= 6587 allow_undefined_flag= 6588 enable_shared_with_static_runtimes=no 6589 archive_cmds= 6590 archive_expsym_cmds= 6591 old_archive_From_new_cmds= 6592 old_archive_from_expsyms_cmds= 6593 export_dynamic_flag_spec= 6594 whole_archive_flag_spec= 6595 thread_safe_flag_spec= 6596 hardcode_libdir_flag_spec= 6597 hardcode_libdir_flag_spec_ld= 6598 hardcode_libdir_separator= 6599 hardcode_direct=no 6600 hardcode_minus_L=no 6601 hardcode_shlibpath_var=unsupported 6602 link_all_deplibs=unknown 6603 hardcode_automatic=no 6604 module_cmds= 6605 module_expsym_cmds= 6606 always_export_symbols=no 6607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6608 # include_expsyms should be a list of space-separated symbols to be *always* 6609 # included in the symbol list 6610 include_expsyms= 6611 # exclude_expsyms can be an extended regexp of symbols to exclude 6612 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6614 # as well as any symbol that contains `d'. 6615 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6617 # platforms (ab)use it in PIC code, but their linkers get confused if 6618 # the symbol is explicitly referenced. Since portable code cannot 6619 # rely on this symbol name, it's probably fine to never include it in 6620 # preloaded symbol tables. 6621 extract_expsyms_cmds= 6622 6623 case $host_os in 6624 cygwin* | mingw* | pw32*) 6625 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6626 # When not using gcc, we currently assume that we are using 6627 # Microsoft Visual C++. 6628 if test "$GCC" != yes; then 6629 with_gnu_ld=no 6630 fi 6631 ;; 6632 openbsd*) 6633 with_gnu_ld=no 6634 ;; 6635 esac 6636 6637 ld_shlibs=yes 6638 if test "$with_gnu_ld" = yes; then 6639 # If archive_cmds runs LD, not CC, wlarc should be empty 6640 wlarc='${wl}' 6641 6642 # See if GNU ld supports shared libraries. 6643 case $host_os in 6644 aix3* | aix4* | aix5*) 6645 # On AIX/PPC, the GNU linker is very broken 6646 if test "$host_cpu" != ia64; then 6647 ld_shlibs=no 6648 cat <<EOF 1>&2 6649 6650*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6651*** to be unable to reliably create shared libraries on AIX. 6652*** Therefore, libtool is disabling shared libraries support. If you 6653*** really care for shared libraries, you may want to modify your PATH 6654*** so that a non-GNU linker is found, and then restart. 6655 6656EOF 6657 fi 6658 ;; 6659 6660 amigaos*) 6661 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)' 6662 hardcode_libdir_flag_spec='-L$libdir' 6663 hardcode_minus_L=yes 6664 6665 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6666 # that the semantics of dynamic libraries on AmigaOS, at least up 6667 # to version 4, is to share data among multiple programs linked 6668 # with the same dynamic library. Since this doesn't match the 6669 # behavior of shared libraries on other platforms, we can't use 6670 # them. 6671 ld_shlibs=no 6672 ;; 6673 6674 beos*) 6675 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6676 allow_undefined_flag=unsupported 6677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6678 # support --undefined. This deserves some investigation. FIXME 6679 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6680 else 6681 ld_shlibs=no 6682 fi 6683 ;; 6684 6685 cygwin* | mingw* | pw32*) 6686 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6687 # as there is no search path for DLLs. 6688 hardcode_libdir_flag_spec='-L$libdir' 6689 allow_undefined_flag=unsupported 6690 always_export_symbols=no 6691 enable_shared_with_static_runtimes=yes 6692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6693 6694 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6696 # If the export-symbols file already is a .def file (1st line 6697 # is EXPORTS), use it as is; otherwise, prepend... 6698 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6699 cp $export_symbols $output_objdir/$soname.def; 6700 else 6701 echo EXPORTS > $output_objdir/$soname.def; 6702 cat $export_symbols >> $output_objdir/$soname.def; 6703 fi~ 6704 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6705 else 6706 ld_shlibs=no 6707 fi 6708 ;; 6709 6710 netbsd* | knetbsd*-gnu) 6711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6712 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6713 wlarc= 6714 else 6715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6717 fi 6718 ;; 6719 6720 solaris* | sysv5*) 6721 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6722 ld_shlibs=no 6723 cat <<EOF 1>&2 6724 6725*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6726*** create shared libraries on Solaris systems. Therefore, libtool 6727*** is disabling shared libraries support. We urge you to upgrade GNU 6728*** binutils to release 2.9.1 or newer. Another option is to modify 6729*** your PATH or compiler configuration so that the native linker is 6730*** used, and then restart. 6731 6732EOF 6733 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6736 else 6737 ld_shlibs=no 6738 fi 6739 ;; 6740 6741 sunos4*) 6742 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6743 wlarc= 6744 hardcode_direct=yes 6745 hardcode_shlibpath_var=no 6746 ;; 6747 6748 linux*) 6749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6750 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6751 archive_cmds="$tmp_archive_cmds" 6752 supports_anon_versioning=no 6753 case `$LD -v 2>/dev/null` in 6754 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6755 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6756 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6757 *\ 2.11.*) ;; # other 2.11 versions 6758 *) supports_anon_versioning=yes ;; 6759 esac 6760 if test $supports_anon_versioning = yes; then 6761 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6762cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6763$echo "local: *; };" >> $output_objdir/$libname.ver~ 6764 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6765 else 6766 archive_expsym_cmds="$tmp_archive_cmds" 6767 fi 6768 link_all_deplibs=no 6769 else 6770 ld_shlibs=no 6771 fi 6772 ;; 6773 6774 *) 6775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6778 else 6779 ld_shlibs=no 6780 fi 6781 ;; 6782 esac 6783 6784 if test "$ld_shlibs" = yes; then 6785 runpath_var=LD_RUN_PATH 6786 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6787 export_dynamic_flag_spec='${wl}--export-dynamic' 6788 # ancient GNU ld didn't support --whole-archive et. al. 6789 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6790 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6791 else 6792 whole_archive_flag_spec= 6793 fi 6794 fi 6795 else 6796 # PORTME fill in a description of your system's linker (not GNU ld) 6797 case $host_os in 6798 aix3*) 6799 allow_undefined_flag=unsupported 6800 always_export_symbols=yes 6801 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' 6802 # Note: this linker hardcodes the directories in LIBPATH if there 6803 # are no directories specified by -L. 6804 hardcode_minus_L=yes 6805 if test "$GCC" = yes && test -z "$link_static_flag"; then 6806 # Neither direct hardcoding nor static linking is supported with a 6807 # broken collect2. 6808 hardcode_direct=unsupported 6809 fi 6810 ;; 6811 6812 aix4* | aix5*) 6813 if test "$host_cpu" = ia64; then 6814 # On IA64, the linker does run time linking by default, so we don't 6815 # have to do anything special. 6816 aix_use_runtimelinking=no 6817 exp_sym_flag='-Bexport' 6818 no_entry_flag="" 6819 else 6820 # If we're using GNU nm, then we don't want the "-C" option. 6821 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6822 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6823 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' 6824 else 6825 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' 6826 fi 6827 aix_use_runtimelinking=no 6828 6829 # Test if we are trying to use run time linking or normal 6830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6831 # need to do runtime linking. 6832 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6833 for ld_flag in $LDFLAGS; do 6834 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6835 aix_use_runtimelinking=yes 6836 break 6837 fi 6838 done 6839 esac 6840 6841 exp_sym_flag='-bexport' 6842 no_entry_flag='-bnoentry' 6843 fi 6844 6845 # When large executables or shared objects are built, AIX ld can 6846 # have problems creating the table of contents. If linking a library 6847 # or program results in "error TOC overflow" add -mminimal-toc to 6848 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6849 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6850 6851 archive_cmds='' 6852 hardcode_direct=yes 6853 hardcode_libdir_separator=':' 6854 link_all_deplibs=yes 6855 6856 if test "$GCC" = yes; then 6857 case $host_os in aix4.012|aix4.012.*) 6858 # We only want to do this on AIX 4.2 and lower, the check 6859 # below for broken collect2 doesn't work under 4.3+ 6860 collect2name=`${CC} -print-prog-name=collect2` 6861 if test -f "$collect2name" && \ 6862 strings "$collect2name" | grep resolve_lib_name >/dev/null 6863 then 6864 # We have reworked collect2 6865 hardcode_direct=yes 6866 else 6867 # We have old collect2 6868 hardcode_direct=unsupported 6869 # It fails to find uninstalled libraries when the uninstalled 6870 # path is not listed in the libpath. Setting hardcode_minus_L 6871 # to unsupported forces relinking 6872 hardcode_minus_L=yes 6873 hardcode_libdir_flag_spec='-L$libdir' 6874 hardcode_libdir_separator= 6875 fi 6876 esac 6877 shared_flag='-shared' 6878 else 6879 # not using gcc 6880 if test "$host_cpu" = ia64; then 6881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6882 # chokes on -Wl,-G. The following line is correct: 6883 shared_flag='-G' 6884 else 6885 if test "$aix_use_runtimelinking" = yes; then 6886 shared_flag='${wl}-G' 6887 else 6888 shared_flag='${wl}-bM:SRE' 6889 fi 6890 fi 6891 fi 6892 6893 # It seems that -bexpall does not export symbols beginning with 6894 # underscore (_), so it is better to generate a list of symbols to export. 6895 always_export_symbols=yes 6896 if test "$aix_use_runtimelinking" = yes; then 6897 # Warning - without using the other runtime loading flags (-brtl), 6898 # -berok will link without error, but may produce a broken library. 6899 allow_undefined_flag='-berok' 6900 # Determine the default libpath from the value encoded in an empty executable. 6901 cat >conftest.$ac_ext <<_ACEOF 6902/* confdefs.h. */ 6903_ACEOF 6904cat confdefs.h >>conftest.$ac_ext 6905cat >>conftest.$ac_ext <<_ACEOF 6906/* end confdefs.h. */ 6907 6908int 6909main () 6910{ 6911 6912 ; 6913 return 0; 6914} 6915_ACEOF 6916rm -f conftest.$ac_objext conftest$ac_exeext 6917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6918 (eval $ac_link) 2>conftest.er1 6919 ac_status=$? 6920 grep -v '^ *+' conftest.er1 >conftest.err 6921 rm -f conftest.er1 6922 cat conftest.err >&5 6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6924 (exit $ac_status); } && 6925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6927 (eval $ac_try) 2>&5 6928 ac_status=$? 6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6930 (exit $ac_status); }; } && 6931 { ac_try='test -s conftest$ac_exeext' 6932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6933 (eval $ac_try) 2>&5 6934 ac_status=$? 6935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6936 (exit $ac_status); }; }; then 6937 6938aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6939}'` 6940# Check for a 64-bit object if we didn't find anything. 6941if 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; } 6942}'`; fi 6943else 6944 echo "$as_me: failed program was:" >&5 6945sed 's/^/| /' conftest.$ac_ext >&5 6946 6947fi 6948rm -f conftest.err conftest.$ac_objext \ 6949 conftest$ac_exeext conftest.$ac_ext 6950if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6951 6952 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6953 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" 6954 else 6955 if test "$host_cpu" = ia64; then 6956 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6957 allow_undefined_flag="-z nodefs" 6958 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" 6959 else 6960 # Determine the default libpath from the value encoded in an empty executable. 6961 cat >conftest.$ac_ext <<_ACEOF 6962/* confdefs.h. */ 6963_ACEOF 6964cat confdefs.h >>conftest.$ac_ext 6965cat >>conftest.$ac_ext <<_ACEOF 6966/* end confdefs.h. */ 6967 6968int 6969main () 6970{ 6971 6972 ; 6973 return 0; 6974} 6975_ACEOF 6976rm -f conftest.$ac_objext conftest$ac_exeext 6977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6978 (eval $ac_link) 2>conftest.er1 6979 ac_status=$? 6980 grep -v '^ *+' conftest.er1 >conftest.err 6981 rm -f conftest.er1 6982 cat conftest.err >&5 6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6984 (exit $ac_status); } && 6985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6987 (eval $ac_try) 2>&5 6988 ac_status=$? 6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6990 (exit $ac_status); }; } && 6991 { ac_try='test -s conftest$ac_exeext' 6992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6993 (eval $ac_try) 2>&5 6994 ac_status=$? 6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6996 (exit $ac_status); }; }; then 6997 6998aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6999}'` 7000# Check for a 64-bit object if we didn't find anything. 7001if 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; } 7002}'`; fi 7003else 7004 echo "$as_me: failed program was:" >&5 7005sed 's/^/| /' conftest.$ac_ext >&5 7006 7007fi 7008rm -f conftest.err conftest.$ac_objext \ 7009 conftest$ac_exeext conftest.$ac_ext 7010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7011 7012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7013 # Warning - without using the other run time loading flags, 7014 # -berok will link without error, but may produce a broken library. 7015 no_undefined_flag=' ${wl}-bernotok' 7016 allow_undefined_flag=' ${wl}-berok' 7017 # -bexpall does not export symbols beginning with underscore (_) 7018 always_export_symbols=yes 7019 # Exported symbols can be pulled into shared objects from archives 7020 whole_archive_flag_spec=' ' 7021 archive_cmds_need_lc=yes 7022 # This is similar to how AIX traditionally builds it's shared libraries. 7023 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' 7024 fi 7025 fi 7026 ;; 7027 7028 amigaos*) 7029 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)' 7030 hardcode_libdir_flag_spec='-L$libdir' 7031 hardcode_minus_L=yes 7032 # see comment about different semantics on the GNU ld section 7033 ld_shlibs=no 7034 ;; 7035 7036 bsdi4*) 7037 export_dynamic_flag_spec=-rdynamic 7038 ;; 7039 7040 cygwin* | mingw* | pw32*) 7041 # When not using gcc, we currently assume that we are using 7042 # Microsoft Visual C++. 7043 # hardcode_libdir_flag_spec is actually meaningless, as there is 7044 # no search path for DLLs. 7045 hardcode_libdir_flag_spec=' ' 7046 allow_undefined_flag=unsupported 7047 # Tell ltmain to make .lib files, not .a files. 7048 libext=lib 7049 # Tell ltmain to make .dll files, not .so files. 7050 shrext_cmds=".dll" 7051 # FIXME: Setting linknames here is a bad hack. 7052 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7053 # The linker will automatically build a .lib file if we build a DLL. 7054 old_archive_From_new_cmds='true' 7055 # FIXME: Should let the user specify the lib program. 7056 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7057 fix_srcfile_path='`cygpath -w "$srcfile"`' 7058 enable_shared_with_static_runtimes=yes 7059 ;; 7060 7061 darwin* | rhapsody*) 7062 if test "$GXX" = yes ; then 7063 archive_cmds_need_lc=no 7064 case "$host_os" in 7065 rhapsody* | darwin1.[012]) 7066 allow_undefined_flag='-undefined suppress' 7067 ;; 7068 *) # Darwin 1.3 on 7069 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7070 allow_undefined_flag='-flat_namespace -undefined suppress' 7071 else 7072 case ${MACOSX_DEPLOYMENT_TARGET} in 7073 10.[012]) 7074 allow_undefined_flag='-flat_namespace -undefined suppress' 7075 ;; 7076 10.*) 7077 allow_undefined_flag='-undefined dynamic_lookup' 7078 ;; 7079 esac 7080 fi 7081 ;; 7082 esac 7083 lt_int_apple_cc_single_mod=no 7084 output_verbose_link_cmd='echo' 7085 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 7086 lt_int_apple_cc_single_mod=yes 7087 fi 7088 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7089 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7090 else 7091 archive_cmds='$CC -r ${wl}-bind_at_load -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' 7092 fi 7093 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7094 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7095 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7096 archive_expsym_cmds='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}' 7097 else 7098 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 7099 fi 7100 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}' 7101 hardcode_direct=no 7102 hardcode_automatic=yes 7103 hardcode_shlibpath_var=unsupported 7104 whole_archive_flag_spec='-all_load $convenience' 7105 link_all_deplibs=yes 7106 else 7107 ld_shlibs=no 7108 fi 7109 ;; 7110 7111 dgux*) 7112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7113 hardcode_libdir_flag_spec='-L$libdir' 7114 hardcode_shlibpath_var=no 7115 ;; 7116 7117 freebsd1*) 7118 ld_shlibs=no 7119 ;; 7120 7121 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7122 # support. Future versions do this automatically, but an explicit c++rt0.o 7123 # does not break anything, and helps significantly (at the cost of a little 7124 # extra space). 7125 freebsd2.2*) 7126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7127 hardcode_libdir_flag_spec='-R$libdir' 7128 hardcode_direct=yes 7129 hardcode_shlibpath_var=no 7130 ;; 7131 7132 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7133 freebsd2*) 7134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7135 hardcode_direct=yes 7136 hardcode_minus_L=yes 7137 hardcode_shlibpath_var=no 7138 ;; 7139 7140 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7141 freebsd* | kfreebsd*-gnu) 7142 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7143 hardcode_libdir_flag_spec='-R$libdir' 7144 hardcode_direct=yes 7145 hardcode_shlibpath_var=no 7146 ;; 7147 7148 hpux9*) 7149 if test "$GCC" = yes; then 7150 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' 7151 else 7152 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' 7153 fi 7154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7155 hardcode_libdir_separator=: 7156 hardcode_direct=yes 7157 7158 # hardcode_minus_L: Not really in the search PATH, 7159 # but as the default location of the library. 7160 hardcode_minus_L=yes 7161 export_dynamic_flag_spec='${wl}-E' 7162 ;; 7163 7164 hpux10* | hpux11*) 7165 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7166 case "$host_cpu" in 7167 hppa*64*|ia64*) 7168 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7169 ;; 7170 *) 7171 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7172 ;; 7173 esac 7174 else 7175 case "$host_cpu" in 7176 hppa*64*|ia64*) 7177 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7178 ;; 7179 *) 7180 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7181 ;; 7182 esac 7183 fi 7184 if test "$with_gnu_ld" = no; then 7185 case "$host_cpu" in 7186 hppa*64*) 7187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7188 hardcode_libdir_flag_spec_ld='+b $libdir' 7189 hardcode_libdir_separator=: 7190 hardcode_direct=no 7191 hardcode_shlibpath_var=no 7192 ;; 7193 ia64*) 7194 hardcode_libdir_flag_spec='-L$libdir' 7195 hardcode_direct=no 7196 hardcode_shlibpath_var=no 7197 7198 # hardcode_minus_L: Not really in the search PATH, 7199 # but as the default location of the library. 7200 hardcode_minus_L=yes 7201 ;; 7202 *) 7203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7204 hardcode_libdir_separator=: 7205 hardcode_direct=yes 7206 export_dynamic_flag_spec='${wl}-E' 7207 7208 # hardcode_minus_L: Not really in the search PATH, 7209 # but as the default location of the library. 7210 hardcode_minus_L=yes 7211 ;; 7212 esac 7213 fi 7214 ;; 7215 7216 irix5* | irix6* | nonstopux*) 7217 if test "$GCC" = yes; then 7218 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' 7219 else 7220 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' 7221 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7222 fi 7223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7224 hardcode_libdir_separator=: 7225 link_all_deplibs=yes 7226 ;; 7227 7228 netbsd* | knetbsd*-gnu) 7229 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7231 else 7232 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7233 fi 7234 hardcode_libdir_flag_spec='-R$libdir' 7235 hardcode_direct=yes 7236 hardcode_shlibpath_var=no 7237 ;; 7238 7239 newsos6) 7240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7241 hardcode_direct=yes 7242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7243 hardcode_libdir_separator=: 7244 hardcode_shlibpath_var=no 7245 ;; 7246 7247 openbsd*) 7248 hardcode_direct=yes 7249 hardcode_shlibpath_var=no 7250 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7251 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7253 export_dynamic_flag_spec='${wl}-E' 7254 else 7255 case $host_os in 7256 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7258 hardcode_libdir_flag_spec='-R$libdir' 7259 ;; 7260 *) 7261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7263 ;; 7264 esac 7265 fi 7266 ;; 7267 7268 os2*) 7269 hardcode_libdir_flag_spec='-L$libdir' 7270 hardcode_minus_L=yes 7271 allow_undefined_flag=unsupported 7272 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' 7273 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7274 ;; 7275 7276 osf3*) 7277 if test "$GCC" = yes; then 7278 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7279 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' 7280 else 7281 allow_undefined_flag=' -expect_unresolved \*' 7282 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' 7283 fi 7284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7285 hardcode_libdir_separator=: 7286 ;; 7287 7288 osf4* | osf5*) # as osf3* with the addition of -msym flag 7289 if test "$GCC" = yes; then 7290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7291 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' 7292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7293 else 7294 allow_undefined_flag=' -expect_unresolved \*' 7295 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' 7296 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7297 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7298 7299 # Both c and cxx compiler support -rpath directly 7300 hardcode_libdir_flag_spec='-rpath $libdir' 7301 fi 7302 hardcode_libdir_separator=: 7303 ;; 7304 7305 sco3.2v5*) 7306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7307 hardcode_shlibpath_var=no 7308 export_dynamic_flag_spec='${wl}-Bexport' 7309 runpath_var=LD_RUN_PATH 7310 hardcode_runpath_var=yes 7311 ;; 7312 7313 solaris*) 7314 no_undefined_flag=' -z text' 7315 if test "$GCC" = yes; then 7316 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7317 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7318 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7319 else 7320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7321 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7323 fi 7324 hardcode_libdir_flag_spec='-R$libdir' 7325 hardcode_shlibpath_var=no 7326 case $host_os in 7327 solaris2.[0-5] | solaris2.[0-5].*) ;; 7328 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7329 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7330 esac 7331 link_all_deplibs=yes 7332 ;; 7333 7334 sunos4*) 7335 if test "x$host_vendor" = xsequent; then 7336 # Use $CC to link under sequent, because it throws in some extra .o 7337 # files that make .init and .fini sections work. 7338 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7339 else 7340 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7341 fi 7342 hardcode_libdir_flag_spec='-L$libdir' 7343 hardcode_direct=yes 7344 hardcode_minus_L=yes 7345 hardcode_shlibpath_var=no 7346 ;; 7347 7348 sysv4) 7349 case $host_vendor in 7350 sni) 7351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7352 hardcode_direct=yes # is this really true??? 7353 ;; 7354 siemens) 7355 ## LD is ld it makes a PLAMLIB 7356 ## CC just makes a GrossModule. 7357 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7358 reload_cmds='$CC -r -o $output$reload_objs' 7359 hardcode_direct=no 7360 ;; 7361 motorola) 7362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7363 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7364 ;; 7365 esac 7366 runpath_var='LD_RUN_PATH' 7367 hardcode_shlibpath_var=no 7368 ;; 7369 7370 sysv4.3*) 7371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7372 hardcode_shlibpath_var=no 7373 export_dynamic_flag_spec='-Bexport' 7374 ;; 7375 7376 sysv4*MP*) 7377 if test -d /usr/nec; then 7378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7379 hardcode_shlibpath_var=no 7380 runpath_var=LD_RUN_PATH 7381 hardcode_runpath_var=yes 7382 ld_shlibs=yes 7383 fi 7384 ;; 7385 7386 sysv4.2uw2*) 7387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7388 hardcode_direct=yes 7389 hardcode_minus_L=no 7390 hardcode_shlibpath_var=no 7391 hardcode_runpath_var=yes 7392 runpath_var=LD_RUN_PATH 7393 ;; 7394 7395 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7396 no_undefined_flag='${wl}-z ${wl}text' 7397 if test "$GCC" = yes; then 7398 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7399 else 7400 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7401 fi 7402 runpath_var='LD_RUN_PATH' 7403 hardcode_shlibpath_var=no 7404 ;; 7405 7406 sysv5*) 7407 no_undefined_flag=' -z text' 7408 # $CC -shared without GNU ld will not create a library from C++ 7409 # object files and a static libstdc++, better avoid it by now 7410 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7411 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7412 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7413 hardcode_libdir_flag_spec= 7414 hardcode_shlibpath_var=no 7415 runpath_var='LD_RUN_PATH' 7416 ;; 7417 7418 uts4*) 7419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7420 hardcode_libdir_flag_spec='-L$libdir' 7421 hardcode_shlibpath_var=no 7422 ;; 7423 7424 *) 7425 ld_shlibs=no 7426 ;; 7427 esac 7428 fi 7429 7430echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7431echo "${ECHO_T}$ld_shlibs" >&6 7432test "$ld_shlibs" = no && can_build_shared=no 7433 7434variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7435if test "$GCC" = yes; then 7436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7437fi 7438 7439# 7440# Do we need to explicitly link libc? 7441# 7442case "x$archive_cmds_need_lc" in 7443x|xyes) 7444 # Assume -lc should be added 7445 archive_cmds_need_lc=yes 7446 7447 if test "$enable_shared" = yes && test "$GCC" = yes; then 7448 case $archive_cmds in 7449 *'~'*) 7450 # FIXME: we may have to deal with multi-command sequences. 7451 ;; 7452 '$CC '*) 7453 # Test whether the compiler implicitly links with -lc since on some 7454 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7455 # to ld, don't add -lc before -lgcc. 7456 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7457echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7458 $rm conftest* 7459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7460 7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7462 (eval $ac_compile) 2>&5 7463 ac_status=$? 7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7465 (exit $ac_status); } 2>conftest.err; then 7466 soname=conftest 7467 lib=conftest 7468 libobjs=conftest.$ac_objext 7469 deplibs= 7470 wl=$lt_prog_compiler_wl 7471 compiler_flags=-v 7472 linker_flags=-v 7473 verstring= 7474 output_objdir=. 7475 libname=conftest 7476 lt_save_allow_undefined_flag=$allow_undefined_flag 7477 allow_undefined_flag= 7478 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7479 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7480 ac_status=$? 7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7482 (exit $ac_status); } 7483 then 7484 archive_cmds_need_lc=no 7485 else 7486 archive_cmds_need_lc=yes 7487 fi 7488 allow_undefined_flag=$lt_save_allow_undefined_flag 7489 else 7490 cat conftest.err 1>&5 7491 fi 7492 $rm conftest* 7493 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7494echo "${ECHO_T}$archive_cmds_need_lc" >&6 7495 ;; 7496 esac 7497 fi 7498 ;; 7499esac 7500 7501echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7502echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7503library_names_spec= 7504libname_spec='lib$name' 7505soname_spec= 7506shrext_cmds=".so" 7507postinstall_cmds= 7508postuninstall_cmds= 7509finish_cmds= 7510finish_eval= 7511shlibpath_var= 7512shlibpath_overrides_runpath=unknown 7513version_type=none 7514dynamic_linker="$host_os ld.so" 7515sys_lib_dlsearch_path_spec="/lib /usr/lib" 7516if test "$GCC" = yes; then 7517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7518 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7519 # if the path contains ";" then we assume it to be the separator 7520 # otherwise default to the standard path separator (i.e. ":") - it is 7521 # assumed that no part of a normal pathname contains ";" but that should 7522 # okay in the real world where ";" in dirpaths is itself problematic. 7523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7524 else 7525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7526 fi 7527else 7528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7529fi 7530need_lib_prefix=unknown 7531hardcode_into_libs=no 7532 7533# when you set need_version to no, make sure it does not cause -set_version 7534# flags to be left without arguments 7535need_version=unknown 7536 7537case $host_os in 7538aix3*) 7539 version_type=linux 7540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7541 shlibpath_var=LIBPATH 7542 7543 # AIX 3 has no versioning support, so we append a major version to the name. 7544 soname_spec='${libname}${release}${shared_ext}$major' 7545 ;; 7546 7547aix4* | aix5*) 7548 version_type=linux 7549 need_lib_prefix=no 7550 need_version=no 7551 hardcode_into_libs=yes 7552 if test "$host_cpu" = ia64; then 7553 # AIX 5 supports IA64 7554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7555 shlibpath_var=LD_LIBRARY_PATH 7556 else 7557 # With GCC up to 2.95.x, collect2 would create an import file 7558 # for dependence libraries. The import file would start with 7559 # the line `#! .'. This would cause the generated library to 7560 # depend on `.', always an invalid library. This was fixed in 7561 # development snapshots of GCC prior to 3.0. 7562 case $host_os in 7563 aix4 | aix4.[01] | aix4.[01].*) 7564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7565 echo ' yes ' 7566 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7567 : 7568 else 7569 can_build_shared=no 7570 fi 7571 ;; 7572 esac 7573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7574 # soname into executable. Probably we can add versioning support to 7575 # collect2, so additional links can be useful in future. 7576 if test "$aix_use_runtimelinking" = yes; then 7577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7578 # instead of lib<name>.a to let people know that these are not 7579 # typical AIX shared libraries. 7580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7581 else 7582 # We preserve .a as extension for shared libraries through AIX4.2 7583 # and later when we are not doing run time linking. 7584 library_names_spec='${libname}${release}.a $libname.a' 7585 soname_spec='${libname}${release}${shared_ext}$major' 7586 fi 7587 shlibpath_var=LIBPATH 7588 fi 7589 ;; 7590 7591amigaos*) 7592 library_names_spec='$libname.ixlibrary $libname.a' 7593 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7594 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' 7595 ;; 7596 7597beos*) 7598 library_names_spec='${libname}${shared_ext}' 7599 dynamic_linker="$host_os ld.so" 7600 shlibpath_var=LIBRARY_PATH 7601 ;; 7602 7603bsdi4*) 7604 version_type=linux 7605 need_version=no 7606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7607 soname_spec='${libname}${release}${shared_ext}$major' 7608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7609 shlibpath_var=LD_LIBRARY_PATH 7610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7612 # the default ld.so.conf also contains /usr/contrib/lib and 7613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7614 # libtool to hard-code these into programs 7615 ;; 7616 7617cygwin* | mingw* | pw32*) 7618 version_type=windows 7619 shrext_cmds=".dll" 7620 need_version=no 7621 need_lib_prefix=no 7622 7623 case $GCC,$host_os in 7624 yes,cygwin* | yes,mingw* | yes,pw32*) 7625 library_names_spec='$libname.dll.a' 7626 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7627 postinstall_cmds='base_file=`basename \${file}`~ 7628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7629 dldir=$destdir/`dirname \$dlpath`~ 7630 test -d \$dldir || mkdir -p \$dldir~ 7631 $install_prog $dir/$dlname \$dldir/$dlname' 7632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7633 dlpath=$dir/\$dldll~ 7634 $rm \$dlpath' 7635 shlibpath_overrides_runpath=yes 7636 7637 case $host_os in 7638 cygwin*) 7639 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7642 ;; 7643 mingw*) 7644 # MinGW DLLs use traditional 'lib' prefix 7645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7648 # It is most probably a Windows format PATH printed by 7649 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7650 # path with ; separators, and with drive letters. We can handle the 7651 # drive letters (cygwin fileutils understands them), so leave them, 7652 # especially as we might pass files found there to a mingw objdump, 7653 # which wouldn't understand a cygwinified path. Ahh. 7654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7655 else 7656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7657 fi 7658 ;; 7659 pw32*) 7660 # pw32 DLLs use 'pw' prefix rather than 'lib' 7661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7662 ;; 7663 esac 7664 ;; 7665 7666 *) 7667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7668 ;; 7669 esac 7670 dynamic_linker='Win32 ld.exe' 7671 # FIXME: first we should search . and the directory the executable is in 7672 shlibpath_var=PATH 7673 ;; 7674 7675darwin* | rhapsody*) 7676 dynamic_linker="$host_os dyld" 7677 version_type=darwin 7678 need_lib_prefix=no 7679 need_version=no 7680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7681 soname_spec='${libname}${release}${major}$shared_ext' 7682 shlibpath_overrides_runpath=yes 7683 shlibpath_var=DYLD_LIBRARY_PATH 7684 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7686 if test "$GCC" = yes; then 7687 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"` 7688 else 7689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7690 fi 7691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7692 ;; 7693 7694dgux*) 7695 version_type=linux 7696 need_lib_prefix=no 7697 need_version=no 7698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7699 soname_spec='${libname}${release}${shared_ext}$major' 7700 shlibpath_var=LD_LIBRARY_PATH 7701 ;; 7702 7703freebsd1*) 7704 dynamic_linker=no 7705 ;; 7706 7707kfreebsd*-gnu) 7708 version_type=linux 7709 need_lib_prefix=no 7710 need_version=no 7711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7712 soname_spec='${libname}${release}${shared_ext}$major' 7713 shlibpath_var=LD_LIBRARY_PATH 7714 shlibpath_overrides_runpath=no 7715 hardcode_into_libs=yes 7716 dynamic_linker='GNU ld.so' 7717 ;; 7718 7719freebsd*) 7720 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7721 version_type=freebsd-$objformat 7722 case $version_type in 7723 freebsd-elf*) 7724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7725 need_version=no 7726 need_lib_prefix=no 7727 ;; 7728 freebsd-*) 7729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7730 need_version=yes 7731 ;; 7732 esac 7733 shlibpath_var=LD_LIBRARY_PATH 7734 case $host_os in 7735 freebsd2*) 7736 shlibpath_overrides_runpath=yes 7737 ;; 7738 freebsd3.01* | freebsdelf3.01*) 7739 shlibpath_overrides_runpath=yes 7740 hardcode_into_libs=yes 7741 ;; 7742 *) # from 3.2 on 7743 shlibpath_overrides_runpath=no 7744 hardcode_into_libs=yes 7745 ;; 7746 esac 7747 ;; 7748 7749gnu*) 7750 version_type=linux 7751 need_lib_prefix=no 7752 need_version=no 7753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7754 soname_spec='${libname}${release}${shared_ext}$major' 7755 shlibpath_var=LD_LIBRARY_PATH 7756 hardcode_into_libs=yes 7757 ;; 7758 7759hpux9* | hpux10* | hpux11*) 7760 # Give a soname corresponding to the major version so that dld.sl refuses to 7761 # link against other versions. 7762 version_type=sunos 7763 need_lib_prefix=no 7764 need_version=no 7765 case "$host_cpu" in 7766 ia64*) 7767 shrext_cmds='.so' 7768 hardcode_into_libs=yes 7769 dynamic_linker="$host_os dld.so" 7770 shlibpath_var=LD_LIBRARY_PATH 7771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7773 soname_spec='${libname}${release}${shared_ext}$major' 7774 if test "X$HPUX_IA64_MODE" = X32; then 7775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7776 else 7777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7778 fi 7779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7780 ;; 7781 hppa*64*) 7782 shrext_cmds='.sl' 7783 hardcode_into_libs=yes 7784 dynamic_linker="$host_os dld.sl" 7785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7788 soname_spec='${libname}${release}${shared_ext}$major' 7789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7791 ;; 7792 *) 7793 shrext_cmds='.sl' 7794 dynamic_linker="$host_os dld.sl" 7795 shlibpath_var=SHLIB_PATH 7796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7798 soname_spec='${libname}${release}${shared_ext}$major' 7799 ;; 7800 esac 7801 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7802 postinstall_cmds='chmod 555 $lib' 7803 ;; 7804 7805irix5* | irix6* | nonstopux*) 7806 case $host_os in 7807 nonstopux*) version_type=nonstopux ;; 7808 *) 7809 if test "$lt_cv_prog_gnu_ld" = yes; then 7810 version_type=linux 7811 else 7812 version_type=irix 7813 fi ;; 7814 esac 7815 need_lib_prefix=no 7816 need_version=no 7817 soname_spec='${libname}${release}${shared_ext}$major' 7818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7819 case $host_os in 7820 irix5* | nonstopux*) 7821 libsuff= shlibsuff= 7822 ;; 7823 *) 7824 case $LD in # libtool.m4 will add one of these switches to LD 7825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7826 libsuff= shlibsuff= libmagic=32-bit;; 7827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7828 libsuff=32 shlibsuff=N32 libmagic=N32;; 7829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7830 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7831 *) libsuff= shlibsuff= libmagic=never-match;; 7832 esac 7833 ;; 7834 esac 7835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7836 shlibpath_overrides_runpath=no 7837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7839 hardcode_into_libs=yes 7840 ;; 7841 7842# No shared lib support for Linux oldld, aout, or coff. 7843linux*oldld* | linux*aout* | linux*coff*) 7844 dynamic_linker=no 7845 ;; 7846 7847# This must be Linux ELF. 7848linux*) 7849 version_type=linux 7850 need_lib_prefix=no 7851 need_version=no 7852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7853 soname_spec='${libname}${release}${shared_ext}$major' 7854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7855 shlibpath_var=LD_LIBRARY_PATH 7856 shlibpath_overrides_runpath=no 7857 # This implies no fast_install, which is unacceptable. 7858 # Some rework will be needed to allow for fast_install 7859 # before this can be enabled. 7860 hardcode_into_libs=yes 7861 7862 # Append ld.so.conf contents to the search path 7863 if test -f /etc/ld.so.conf; then 7864 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 7865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7866 fi 7867 7868 # We used to test for /lib/ld.so.1 and disable shared libraries on 7869 # powerpc, because MkLinux only supported shared libraries with the 7870 # GNU dynamic linker. Since this was broken with cross compilers, 7871 # most powerpc-linux boxes support dynamic linking these days and 7872 # people can always --disable-shared, the test was removed, and we 7873 # assume the GNU/Linux dynamic linker is in use. 7874 dynamic_linker='GNU/Linux ld.so' 7875 ;; 7876 7877knetbsd*-gnu) 7878 version_type=linux 7879 need_lib_prefix=no 7880 need_version=no 7881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7882 soname_spec='${libname}${release}${shared_ext}$major' 7883 shlibpath_var=LD_LIBRARY_PATH 7884 shlibpath_overrides_runpath=no 7885 hardcode_into_libs=yes 7886 dynamic_linker='GNU ld.so' 7887 ;; 7888 7889netbsd*) 7890 version_type=sunos 7891 need_lib_prefix=no 7892 need_version=no 7893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7896 dynamic_linker='NetBSD (a.out) ld.so' 7897 else 7898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7899 soname_spec='${libname}${release}${shared_ext}$major' 7900 dynamic_linker='NetBSD ld.elf_so' 7901 fi 7902 shlibpath_var=LD_LIBRARY_PATH 7903 shlibpath_overrides_runpath=yes 7904 hardcode_into_libs=yes 7905 ;; 7906 7907newsos6) 7908 version_type=linux 7909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7910 shlibpath_var=LD_LIBRARY_PATH 7911 shlibpath_overrides_runpath=yes 7912 ;; 7913 7914nto-qnx*) 7915 version_type=linux 7916 need_lib_prefix=no 7917 need_version=no 7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7919 soname_spec='${libname}${release}${shared_ext}$major' 7920 shlibpath_var=LD_LIBRARY_PATH 7921 shlibpath_overrides_runpath=yes 7922 ;; 7923 7924openbsd*) 7925 version_type=sunos 7926 need_lib_prefix=no 7927 need_version=yes 7928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7930 shlibpath_var=LD_LIBRARY_PATH 7931 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7932 case $host_os in 7933 openbsd2.[89] | openbsd2.[89].*) 7934 shlibpath_overrides_runpath=no 7935 ;; 7936 *) 7937 shlibpath_overrides_runpath=yes 7938 ;; 7939 esac 7940 else 7941 shlibpath_overrides_runpath=yes 7942 fi 7943 ;; 7944 7945os2*) 7946 libname_spec='$name' 7947 shrext_cmds=".dll" 7948 need_lib_prefix=no 7949 library_names_spec='$libname${shared_ext} $libname.a' 7950 dynamic_linker='OS/2 ld.exe' 7951 shlibpath_var=LIBPATH 7952 ;; 7953 7954osf3* | osf4* | osf5*) 7955 version_type=osf 7956 need_lib_prefix=no 7957 need_version=no 7958 soname_spec='${libname}${release}${shared_ext}$major' 7959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7960 shlibpath_var=LD_LIBRARY_PATH 7961 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7962 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7963 ;; 7964 7965sco3.2v5*) 7966 version_type=osf 7967 soname_spec='${libname}${release}${shared_ext}$major' 7968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7969 shlibpath_var=LD_LIBRARY_PATH 7970 ;; 7971 7972solaris*) 7973 version_type=linux 7974 need_lib_prefix=no 7975 need_version=no 7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7977 soname_spec='${libname}${release}${shared_ext}$major' 7978 shlibpath_var=LD_LIBRARY_PATH 7979 shlibpath_overrides_runpath=yes 7980 hardcode_into_libs=yes 7981 # ldd complains unless libraries are executable 7982 postinstall_cmds='chmod +x $lib' 7983 ;; 7984 7985sunos4*) 7986 version_type=sunos 7987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7989 shlibpath_var=LD_LIBRARY_PATH 7990 shlibpath_overrides_runpath=yes 7991 if test "$with_gnu_ld" = yes; then 7992 need_lib_prefix=no 7993 fi 7994 need_version=yes 7995 ;; 7996 7997sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7998 version_type=linux 7999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8000 soname_spec='${libname}${release}${shared_ext}$major' 8001 shlibpath_var=LD_LIBRARY_PATH 8002 case $host_vendor in 8003 sni) 8004 shlibpath_overrides_runpath=no 8005 need_lib_prefix=no 8006 export_dynamic_flag_spec='${wl}-Blargedynsym' 8007 runpath_var=LD_RUN_PATH 8008 ;; 8009 siemens) 8010 need_lib_prefix=no 8011 ;; 8012 motorola) 8013 need_lib_prefix=no 8014 need_version=no 8015 shlibpath_overrides_runpath=no 8016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8017 ;; 8018 esac 8019 ;; 8020 8021sysv4*MP*) 8022 if test -d /usr/nec ;then 8023 version_type=linux 8024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8025 soname_spec='$libname${shared_ext}.$major' 8026 shlibpath_var=LD_LIBRARY_PATH 8027 fi 8028 ;; 8029 8030uts4*) 8031 version_type=linux 8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8033 soname_spec='${libname}${release}${shared_ext}$major' 8034 shlibpath_var=LD_LIBRARY_PATH 8035 ;; 8036 8037*) 8038 dynamic_linker=no 8039 ;; 8040esac 8041echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8042echo "${ECHO_T}$dynamic_linker" >&6 8043test "$dynamic_linker" = no && can_build_shared=no 8044 8045echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8046echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8047hardcode_action= 8048if test -n "$hardcode_libdir_flag_spec" || \ 8049 test -n "$runpath_var " || \ 8050 test "X$hardcode_automatic"="Xyes" ; then 8051 8052 # We can hardcode non-existant directories. 8053 if test "$hardcode_direct" != no && 8054 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8055 # have to relink, otherwise we might link with an installed library 8056 # when we should be linking with a yet-to-be-installed one 8057 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8058 test "$hardcode_minus_L" != no; then 8059 # Linking always hardcodes the temporary library directory. 8060 hardcode_action=relink 8061 else 8062 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8063 hardcode_action=immediate 8064 fi 8065else 8066 # We cannot hardcode anything, or else we can only hardcode existing 8067 # directories. 8068 hardcode_action=unsupported 8069fi 8070echo "$as_me:$LINENO: result: $hardcode_action" >&5 8071echo "${ECHO_T}$hardcode_action" >&6 8072 8073if test "$hardcode_action" = relink; then 8074 # Fast installation is not supported 8075 enable_fast_install=no 8076elif test "$shlibpath_overrides_runpath" = yes || 8077 test "$enable_shared" = no; then 8078 # Fast installation is not necessary 8079 enable_fast_install=needless 8080fi 8081 8082striplib= 8083old_striplib= 8084echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8085echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8086if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8087 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8088 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8089 echo "$as_me:$LINENO: result: yes" >&5 8090echo "${ECHO_T}yes" >&6 8091else 8092# FIXME - insert some real tests, host_os isn't really good enough 8093 case $host_os in 8094 darwin*) 8095 if test -n "$STRIP" ; then 8096 striplib="$STRIP -x" 8097 echo "$as_me:$LINENO: result: yes" >&5 8098echo "${ECHO_T}yes" >&6 8099 else 8100 echo "$as_me:$LINENO: result: no" >&5 8101echo "${ECHO_T}no" >&6 8102fi 8103 ;; 8104 *) 8105 echo "$as_me:$LINENO: result: no" >&5 8106echo "${ECHO_T}no" >&6 8107 ;; 8108 esac 8109fi 8110 8111if test "x$enable_dlopen" != xyes; then 8112 enable_dlopen=unknown 8113 enable_dlopen_self=unknown 8114 enable_dlopen_self_static=unknown 8115else 8116 lt_cv_dlopen=no 8117 lt_cv_dlopen_libs= 8118 8119 case $host_os in 8120 beos*) 8121 lt_cv_dlopen="load_add_on" 8122 lt_cv_dlopen_libs= 8123 lt_cv_dlopen_self=yes 8124 ;; 8125 8126 mingw* | pw32*) 8127 lt_cv_dlopen="LoadLibrary" 8128 lt_cv_dlopen_libs= 8129 ;; 8130 8131 cygwin*) 8132 lt_cv_dlopen="dlopen" 8133 lt_cv_dlopen_libs= 8134 ;; 8135 8136 darwin*) 8137 # if libdl is installed we need to link against it 8138 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8139echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8140if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8141 echo $ECHO_N "(cached) $ECHO_C" >&6 8142else 8143 ac_check_lib_save_LIBS=$LIBS 8144LIBS="-ldl $LIBS" 8145cat >conftest.$ac_ext <<_ACEOF 8146/* confdefs.h. */ 8147_ACEOF 8148cat confdefs.h >>conftest.$ac_ext 8149cat >>conftest.$ac_ext <<_ACEOF 8150/* end confdefs.h. */ 8151 8152/* Override any gcc2 internal prototype to avoid an error. */ 8153#ifdef __cplusplus 8154extern "C" 8155#endif 8156/* We use char because int might match the return type of a gcc2 8157 builtin and then its argument prototype would still apply. */ 8158char dlopen (); 8159int 8160main () 8161{ 8162dlopen (); 8163 ; 8164 return 0; 8165} 8166_ACEOF 8167rm -f conftest.$ac_objext conftest$ac_exeext 8168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8169 (eval $ac_link) 2>conftest.er1 8170 ac_status=$? 8171 grep -v '^ *+' conftest.er1 >conftest.err 8172 rm -f conftest.er1 8173 cat conftest.err >&5 8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8175 (exit $ac_status); } && 8176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8178 (eval $ac_try) 2>&5 8179 ac_status=$? 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8181 (exit $ac_status); }; } && 8182 { ac_try='test -s conftest$ac_exeext' 8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8184 (eval $ac_try) 2>&5 8185 ac_status=$? 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8187 (exit $ac_status); }; }; then 8188 ac_cv_lib_dl_dlopen=yes 8189else 8190 echo "$as_me: failed program was:" >&5 8191sed 's/^/| /' conftest.$ac_ext >&5 8192 8193ac_cv_lib_dl_dlopen=no 8194fi 8195rm -f conftest.err conftest.$ac_objext \ 8196 conftest$ac_exeext conftest.$ac_ext 8197LIBS=$ac_check_lib_save_LIBS 8198fi 8199echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8200echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8201if test $ac_cv_lib_dl_dlopen = yes; then 8202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8203else 8204 8205 lt_cv_dlopen="dyld" 8206 lt_cv_dlopen_libs= 8207 lt_cv_dlopen_self=yes 8208 8209fi 8210 8211 ;; 8212 8213 *) 8214 echo "$as_me:$LINENO: checking for shl_load" >&5 8215echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8216if test "${ac_cv_func_shl_load+set}" = set; then 8217 echo $ECHO_N "(cached) $ECHO_C" >&6 8218else 8219 cat >conftest.$ac_ext <<_ACEOF 8220/* confdefs.h. */ 8221_ACEOF 8222cat confdefs.h >>conftest.$ac_ext 8223cat >>conftest.$ac_ext <<_ACEOF 8224/* end confdefs.h. */ 8225/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8226 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8227#define shl_load innocuous_shl_load 8228 8229/* System header to define __stub macros and hopefully few prototypes, 8230 which can conflict with char shl_load (); below. 8231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8232 <limits.h> exists even on freestanding compilers. */ 8233 8234#ifdef __STDC__ 8235# include <limits.h> 8236#else 8237# include <assert.h> 8238#endif 8239 8240#undef shl_load 8241 8242/* Override any gcc2 internal prototype to avoid an error. */ 8243#ifdef __cplusplus 8244extern "C" 8245{ 8246#endif 8247/* We use char because int might match the return type of a gcc2 8248 builtin and then its argument prototype would still apply. */ 8249char shl_load (); 8250/* The GNU C library defines this for functions which it implements 8251 to always fail with ENOSYS. Some functions are actually named 8252 something starting with __ and the normal name is an alias. */ 8253#if defined (__stub_shl_load) || defined (__stub___shl_load) 8254choke me 8255#else 8256char (*f) () = shl_load; 8257#endif 8258#ifdef __cplusplus 8259} 8260#endif 8261 8262int 8263main () 8264{ 8265return f != shl_load; 8266 ; 8267 return 0; 8268} 8269_ACEOF 8270rm -f conftest.$ac_objext conftest$ac_exeext 8271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8272 (eval $ac_link) 2>conftest.er1 8273 ac_status=$? 8274 grep -v '^ *+' conftest.er1 >conftest.err 8275 rm -f conftest.er1 8276 cat conftest.err >&5 8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8278 (exit $ac_status); } && 8279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8281 (eval $ac_try) 2>&5 8282 ac_status=$? 8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8284 (exit $ac_status); }; } && 8285 { ac_try='test -s conftest$ac_exeext' 8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8287 (eval $ac_try) 2>&5 8288 ac_status=$? 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8290 (exit $ac_status); }; }; then 8291 ac_cv_func_shl_load=yes 8292else 8293 echo "$as_me: failed program was:" >&5 8294sed 's/^/| /' conftest.$ac_ext >&5 8295 8296ac_cv_func_shl_load=no 8297fi 8298rm -f conftest.err conftest.$ac_objext \ 8299 conftest$ac_exeext conftest.$ac_ext 8300fi 8301echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8302echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8303if test $ac_cv_func_shl_load = yes; then 8304 lt_cv_dlopen="shl_load" 8305else 8306 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8307echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8308if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8309 echo $ECHO_N "(cached) $ECHO_C" >&6 8310else 8311 ac_check_lib_save_LIBS=$LIBS 8312LIBS="-ldld $LIBS" 8313cat >conftest.$ac_ext <<_ACEOF 8314/* confdefs.h. */ 8315_ACEOF 8316cat confdefs.h >>conftest.$ac_ext 8317cat >>conftest.$ac_ext <<_ACEOF 8318/* end confdefs.h. */ 8319 8320/* Override any gcc2 internal prototype to avoid an error. */ 8321#ifdef __cplusplus 8322extern "C" 8323#endif 8324/* We use char because int might match the return type of a gcc2 8325 builtin and then its argument prototype would still apply. */ 8326char shl_load (); 8327int 8328main () 8329{ 8330shl_load (); 8331 ; 8332 return 0; 8333} 8334_ACEOF 8335rm -f conftest.$ac_objext conftest$ac_exeext 8336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8337 (eval $ac_link) 2>conftest.er1 8338 ac_status=$? 8339 grep -v '^ *+' conftest.er1 >conftest.err 8340 rm -f conftest.er1 8341 cat conftest.err >&5 8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8343 (exit $ac_status); } && 8344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8346 (eval $ac_try) 2>&5 8347 ac_status=$? 8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8349 (exit $ac_status); }; } && 8350 { ac_try='test -s conftest$ac_exeext' 8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8352 (eval $ac_try) 2>&5 8353 ac_status=$? 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8355 (exit $ac_status); }; }; then 8356 ac_cv_lib_dld_shl_load=yes 8357else 8358 echo "$as_me: failed program was:" >&5 8359sed 's/^/| /' conftest.$ac_ext >&5 8360 8361ac_cv_lib_dld_shl_load=no 8362fi 8363rm -f conftest.err conftest.$ac_objext \ 8364 conftest$ac_exeext conftest.$ac_ext 8365LIBS=$ac_check_lib_save_LIBS 8366fi 8367echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8368echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8369if test $ac_cv_lib_dld_shl_load = yes; then 8370 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8371else 8372 echo "$as_me:$LINENO: checking for dlopen" >&5 8373echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8374if test "${ac_cv_func_dlopen+set}" = set; then 8375 echo $ECHO_N "(cached) $ECHO_C" >&6 8376else 8377 cat >conftest.$ac_ext <<_ACEOF 8378/* confdefs.h. */ 8379_ACEOF 8380cat confdefs.h >>conftest.$ac_ext 8381cat >>conftest.$ac_ext <<_ACEOF 8382/* end confdefs.h. */ 8383/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8384 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8385#define dlopen innocuous_dlopen 8386 8387/* System header to define __stub macros and hopefully few prototypes, 8388 which can conflict with char dlopen (); below. 8389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8390 <limits.h> exists even on freestanding compilers. */ 8391 8392#ifdef __STDC__ 8393# include <limits.h> 8394#else 8395# include <assert.h> 8396#endif 8397 8398#undef dlopen 8399 8400/* Override any gcc2 internal prototype to avoid an error. */ 8401#ifdef __cplusplus 8402extern "C" 8403{ 8404#endif 8405/* We use char because int might match the return type of a gcc2 8406 builtin and then its argument prototype would still apply. */ 8407char dlopen (); 8408/* The GNU C library defines this for functions which it implements 8409 to always fail with ENOSYS. Some functions are actually named 8410 something starting with __ and the normal name is an alias. */ 8411#if defined (__stub_dlopen) || defined (__stub___dlopen) 8412choke me 8413#else 8414char (*f) () = dlopen; 8415#endif 8416#ifdef __cplusplus 8417} 8418#endif 8419 8420int 8421main () 8422{ 8423return f != dlopen; 8424 ; 8425 return 0; 8426} 8427_ACEOF 8428rm -f conftest.$ac_objext conftest$ac_exeext 8429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8430 (eval $ac_link) 2>conftest.er1 8431 ac_status=$? 8432 grep -v '^ *+' conftest.er1 >conftest.err 8433 rm -f conftest.er1 8434 cat conftest.err >&5 8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8436 (exit $ac_status); } && 8437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8439 (eval $ac_try) 2>&5 8440 ac_status=$? 8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8442 (exit $ac_status); }; } && 8443 { ac_try='test -s conftest$ac_exeext' 8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8445 (eval $ac_try) 2>&5 8446 ac_status=$? 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8448 (exit $ac_status); }; }; then 8449 ac_cv_func_dlopen=yes 8450else 8451 echo "$as_me: failed program was:" >&5 8452sed 's/^/| /' conftest.$ac_ext >&5 8453 8454ac_cv_func_dlopen=no 8455fi 8456rm -f conftest.err conftest.$ac_objext \ 8457 conftest$ac_exeext conftest.$ac_ext 8458fi 8459echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8460echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8461if test $ac_cv_func_dlopen = yes; then 8462 lt_cv_dlopen="dlopen" 8463else 8464 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8465echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8466if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8467 echo $ECHO_N "(cached) $ECHO_C" >&6 8468else 8469 ac_check_lib_save_LIBS=$LIBS 8470LIBS="-ldl $LIBS" 8471cat >conftest.$ac_ext <<_ACEOF 8472/* confdefs.h. */ 8473_ACEOF 8474cat confdefs.h >>conftest.$ac_ext 8475cat >>conftest.$ac_ext <<_ACEOF 8476/* end confdefs.h. */ 8477 8478/* Override any gcc2 internal prototype to avoid an error. */ 8479#ifdef __cplusplus 8480extern "C" 8481#endif 8482/* We use char because int might match the return type of a gcc2 8483 builtin and then its argument prototype would still apply. */ 8484char dlopen (); 8485int 8486main () 8487{ 8488dlopen (); 8489 ; 8490 return 0; 8491} 8492_ACEOF 8493rm -f conftest.$ac_objext conftest$ac_exeext 8494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8495 (eval $ac_link) 2>conftest.er1 8496 ac_status=$? 8497 grep -v '^ *+' conftest.er1 >conftest.err 8498 rm -f conftest.er1 8499 cat conftest.err >&5 8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8501 (exit $ac_status); } && 8502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8504 (eval $ac_try) 2>&5 8505 ac_status=$? 8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8507 (exit $ac_status); }; } && 8508 { ac_try='test -s conftest$ac_exeext' 8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8510 (eval $ac_try) 2>&5 8511 ac_status=$? 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8513 (exit $ac_status); }; }; then 8514 ac_cv_lib_dl_dlopen=yes 8515else 8516 echo "$as_me: failed program was:" >&5 8517sed 's/^/| /' conftest.$ac_ext >&5 8518 8519ac_cv_lib_dl_dlopen=no 8520fi 8521rm -f conftest.err conftest.$ac_objext \ 8522 conftest$ac_exeext conftest.$ac_ext 8523LIBS=$ac_check_lib_save_LIBS 8524fi 8525echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8526echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8527if test $ac_cv_lib_dl_dlopen = yes; then 8528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8529else 8530 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8531echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8532if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8533 echo $ECHO_N "(cached) $ECHO_C" >&6 8534else 8535 ac_check_lib_save_LIBS=$LIBS 8536LIBS="-lsvld $LIBS" 8537cat >conftest.$ac_ext <<_ACEOF 8538/* confdefs.h. */ 8539_ACEOF 8540cat confdefs.h >>conftest.$ac_ext 8541cat >>conftest.$ac_ext <<_ACEOF 8542/* end confdefs.h. */ 8543 8544/* Override any gcc2 internal prototype to avoid an error. */ 8545#ifdef __cplusplus 8546extern "C" 8547#endif 8548/* We use char because int might match the return type of a gcc2 8549 builtin and then its argument prototype would still apply. */ 8550char dlopen (); 8551int 8552main () 8553{ 8554dlopen (); 8555 ; 8556 return 0; 8557} 8558_ACEOF 8559rm -f conftest.$ac_objext conftest$ac_exeext 8560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8561 (eval $ac_link) 2>conftest.er1 8562 ac_status=$? 8563 grep -v '^ *+' conftest.er1 >conftest.err 8564 rm -f conftest.er1 8565 cat conftest.err >&5 8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8567 (exit $ac_status); } && 8568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8570 (eval $ac_try) 2>&5 8571 ac_status=$? 8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8573 (exit $ac_status); }; } && 8574 { ac_try='test -s conftest$ac_exeext' 8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8576 (eval $ac_try) 2>&5 8577 ac_status=$? 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8579 (exit $ac_status); }; }; then 8580 ac_cv_lib_svld_dlopen=yes 8581else 8582 echo "$as_me: failed program was:" >&5 8583sed 's/^/| /' conftest.$ac_ext >&5 8584 8585ac_cv_lib_svld_dlopen=no 8586fi 8587rm -f conftest.err conftest.$ac_objext \ 8588 conftest$ac_exeext conftest.$ac_ext 8589LIBS=$ac_check_lib_save_LIBS 8590fi 8591echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8592echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8593if test $ac_cv_lib_svld_dlopen = yes; then 8594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8595else 8596 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8597echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8598if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8599 echo $ECHO_N "(cached) $ECHO_C" >&6 8600else 8601 ac_check_lib_save_LIBS=$LIBS 8602LIBS="-ldld $LIBS" 8603cat >conftest.$ac_ext <<_ACEOF 8604/* confdefs.h. */ 8605_ACEOF 8606cat confdefs.h >>conftest.$ac_ext 8607cat >>conftest.$ac_ext <<_ACEOF 8608/* end confdefs.h. */ 8609 8610/* Override any gcc2 internal prototype to avoid an error. */ 8611#ifdef __cplusplus 8612extern "C" 8613#endif 8614/* We use char because int might match the return type of a gcc2 8615 builtin and then its argument prototype would still apply. */ 8616char dld_link (); 8617int 8618main () 8619{ 8620dld_link (); 8621 ; 8622 return 0; 8623} 8624_ACEOF 8625rm -f conftest.$ac_objext conftest$ac_exeext 8626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8627 (eval $ac_link) 2>conftest.er1 8628 ac_status=$? 8629 grep -v '^ *+' conftest.er1 >conftest.err 8630 rm -f conftest.er1 8631 cat conftest.err >&5 8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8633 (exit $ac_status); } && 8634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8636 (eval $ac_try) 2>&5 8637 ac_status=$? 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8639 (exit $ac_status); }; } && 8640 { ac_try='test -s conftest$ac_exeext' 8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8642 (eval $ac_try) 2>&5 8643 ac_status=$? 8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8645 (exit $ac_status); }; }; then 8646 ac_cv_lib_dld_dld_link=yes 8647else 8648 echo "$as_me: failed program was:" >&5 8649sed 's/^/| /' conftest.$ac_ext >&5 8650 8651ac_cv_lib_dld_dld_link=no 8652fi 8653rm -f conftest.err conftest.$ac_objext \ 8654 conftest$ac_exeext conftest.$ac_ext 8655LIBS=$ac_check_lib_save_LIBS 8656fi 8657echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8658echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8659if test $ac_cv_lib_dld_dld_link = yes; then 8660 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8661fi 8662 8663 8664fi 8665 8666 8667fi 8668 8669 8670fi 8671 8672 8673fi 8674 8675 8676fi 8677 8678 ;; 8679 esac 8680 8681 if test "x$lt_cv_dlopen" != xno; then 8682 enable_dlopen=yes 8683 else 8684 enable_dlopen=no 8685 fi 8686 8687 case $lt_cv_dlopen in 8688 dlopen) 8689 save_CPPFLAGS="$CPPFLAGS" 8690 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8691 8692 save_LDFLAGS="$LDFLAGS" 8693 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8694 8695 save_LIBS="$LIBS" 8696 LIBS="$lt_cv_dlopen_libs $LIBS" 8697 8698 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8699echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8700if test "${lt_cv_dlopen_self+set}" = set; then 8701 echo $ECHO_N "(cached) $ECHO_C" >&6 8702else 8703 if test "$cross_compiling" = yes; then : 8704 lt_cv_dlopen_self=cross 8705else 8706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8707 lt_status=$lt_dlunknown 8708 cat > conftest.$ac_ext <<EOF 8709#line 8709 "configure" 8710#include "confdefs.h" 8711 8712#if HAVE_DLFCN_H 8713#include <dlfcn.h> 8714#endif 8715 8716#include <stdio.h> 8717 8718#ifdef RTLD_GLOBAL 8719# define LT_DLGLOBAL RTLD_GLOBAL 8720#else 8721# ifdef DL_GLOBAL 8722# define LT_DLGLOBAL DL_GLOBAL 8723# else 8724# define LT_DLGLOBAL 0 8725# endif 8726#endif 8727 8728/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8729 find out it does not work in some platform. */ 8730#ifndef LT_DLLAZY_OR_NOW 8731# ifdef RTLD_LAZY 8732# define LT_DLLAZY_OR_NOW RTLD_LAZY 8733# else 8734# ifdef DL_LAZY 8735# define LT_DLLAZY_OR_NOW DL_LAZY 8736# else 8737# ifdef RTLD_NOW 8738# define LT_DLLAZY_OR_NOW RTLD_NOW 8739# else 8740# ifdef DL_NOW 8741# define LT_DLLAZY_OR_NOW DL_NOW 8742# else 8743# define LT_DLLAZY_OR_NOW 0 8744# endif 8745# endif 8746# endif 8747# endif 8748#endif 8749 8750#ifdef __cplusplus 8751extern "C" void exit (int); 8752#endif 8753 8754void fnord() { int i=42;} 8755int main () 8756{ 8757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8758 int status = $lt_dlunknown; 8759 8760 if (self) 8761 { 8762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8763 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8764 /* dlclose (self); */ 8765 } 8766 8767 exit (status); 8768} 8769EOF 8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8771 (eval $ac_link) 2>&5 8772 ac_status=$? 8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8774 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8775 (./conftest; exit; ) 2>/dev/null 8776 lt_status=$? 8777 case x$lt_status in 8778 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8779 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8780 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8781 esac 8782 else : 8783 # compilation failed 8784 lt_cv_dlopen_self=no 8785 fi 8786fi 8787rm -fr conftest* 8788 8789 8790fi 8791echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8792echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8793 8794 if test "x$lt_cv_dlopen_self" = xyes; then 8795 LDFLAGS="$LDFLAGS $link_static_flag" 8796 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8797echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8798if test "${lt_cv_dlopen_self_static+set}" = set; then 8799 echo $ECHO_N "(cached) $ECHO_C" >&6 8800else 8801 if test "$cross_compiling" = yes; then : 8802 lt_cv_dlopen_self_static=cross 8803else 8804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8805 lt_status=$lt_dlunknown 8806 cat > conftest.$ac_ext <<EOF 8807#line 8807 "configure" 8808#include "confdefs.h" 8809 8810#if HAVE_DLFCN_H 8811#include <dlfcn.h> 8812#endif 8813 8814#include <stdio.h> 8815 8816#ifdef RTLD_GLOBAL 8817# define LT_DLGLOBAL RTLD_GLOBAL 8818#else 8819# ifdef DL_GLOBAL 8820# define LT_DLGLOBAL DL_GLOBAL 8821# else 8822# define LT_DLGLOBAL 0 8823# endif 8824#endif 8825 8826/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8827 find out it does not work in some platform. */ 8828#ifndef LT_DLLAZY_OR_NOW 8829# ifdef RTLD_LAZY 8830# define LT_DLLAZY_OR_NOW RTLD_LAZY 8831# else 8832# ifdef DL_LAZY 8833# define LT_DLLAZY_OR_NOW DL_LAZY 8834# else 8835# ifdef RTLD_NOW 8836# define LT_DLLAZY_OR_NOW RTLD_NOW 8837# else 8838# ifdef DL_NOW 8839# define LT_DLLAZY_OR_NOW DL_NOW 8840# else 8841# define LT_DLLAZY_OR_NOW 0 8842# endif 8843# endif 8844# endif 8845# endif 8846#endif 8847 8848#ifdef __cplusplus 8849extern "C" void exit (int); 8850#endif 8851 8852void fnord() { int i=42;} 8853int main () 8854{ 8855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8856 int status = $lt_dlunknown; 8857 8858 if (self) 8859 { 8860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8862 /* dlclose (self); */ 8863 } 8864 8865 exit (status); 8866} 8867EOF 8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8869 (eval $ac_link) 2>&5 8870 ac_status=$? 8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8873 (./conftest; exit; ) 2>/dev/null 8874 lt_status=$? 8875 case x$lt_status in 8876 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8877 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8878 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8879 esac 8880 else : 8881 # compilation failed 8882 lt_cv_dlopen_self_static=no 8883 fi 8884fi 8885rm -fr conftest* 8886 8887 8888fi 8889echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8890echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8891 fi 8892 8893 CPPFLAGS="$save_CPPFLAGS" 8894 LDFLAGS="$save_LDFLAGS" 8895 LIBS="$save_LIBS" 8896 ;; 8897 esac 8898 8899 case $lt_cv_dlopen_self in 8900 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8901 *) enable_dlopen_self=unknown ;; 8902 esac 8903 8904 case $lt_cv_dlopen_self_static in 8905 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8906 *) enable_dlopen_self_static=unknown ;; 8907 esac 8908fi 8909 8910 8911# Report which librarie types wil actually be built 8912echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8913echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8914echo "$as_me:$LINENO: result: $can_build_shared" >&5 8915echo "${ECHO_T}$can_build_shared" >&6 8916 8917echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8918echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8919test "$can_build_shared" = "no" && enable_shared=no 8920 8921# On AIX, shared libraries and static libraries use the same namespace, and 8922# are all built from PIC. 8923case "$host_os" in 8924aix3*) 8925 test "$enable_shared" = yes && enable_static=no 8926 if test -n "$RANLIB"; then 8927 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8928 postinstall_cmds='$RANLIB $lib' 8929 fi 8930 ;; 8931 8932aix4* | aix5*) 8933 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8934 test "$enable_shared" = yes && enable_static=no 8935 fi 8936 ;; 8937 darwin* | rhapsody*) 8938 if test "$GCC" = yes; then 8939 archive_cmds_need_lc=no 8940 case "$host_os" in 8941 rhapsody* | darwin1.[012]) 8942 allow_undefined_flag='-undefined suppress' 8943 ;; 8944 *) # Darwin 1.3 on 8945 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8946 allow_undefined_flag='-flat_namespace -undefined suppress' 8947 else 8948 case ${MACOSX_DEPLOYMENT_TARGET} in 8949 10.[012]) 8950 allow_undefined_flag='-flat_namespace -undefined suppress' 8951 ;; 8952 10.*) 8953 allow_undefined_flag='-undefined dynamic_lookup' 8954 ;; 8955 esac 8956 fi 8957 ;; 8958 esac 8959 output_verbose_link_cmd='echo' 8960 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 8961 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8962 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8963 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}' 8964 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}' 8965 hardcode_direct=no 8966 hardcode_automatic=yes 8967 hardcode_shlibpath_var=unsupported 8968 whole_archive_flag_spec='-all_load $convenience' 8969 link_all_deplibs=yes 8970 else 8971 ld_shlibs=no 8972 fi 8973 ;; 8974esac 8975echo "$as_me:$LINENO: result: $enable_shared" >&5 8976echo "${ECHO_T}$enable_shared" >&6 8977 8978echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8979echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8980# Make sure either enable_shared or enable_static is yes. 8981test "$enable_shared" = yes || enable_static=yes 8982echo "$as_me:$LINENO: result: $enable_static" >&5 8983echo "${ECHO_T}$enable_static" >&6 8984 8985# The else clause should only fire when bootstrapping the 8986# libtool distribution, otherwise you forgot to ship ltmain.sh 8987# with your package, and you will get complaints that there are 8988# no rules to generate ltmain.sh. 8989if test -f "$ltmain"; then 8990 # See if we are running on zsh, and set the options which allow our commands through 8991 # without removal of \ escapes. 8992 if test -n "${ZSH_VERSION+set}" ; then 8993 setopt NO_GLOB_SUBST 8994 fi 8995 # Now quote all the things that may contain metacharacters while being 8996 # careful not to overquote the AC_SUBSTed values. We take copies of the 8997 # variables and quote the copies for generation of the libtool script. 8998 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 8999 SED SHELL STRIP \ 9000 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9001 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9002 deplibs_check_method reload_flag reload_cmds need_locks \ 9003 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9004 lt_cv_sys_global_symbol_to_c_name_address \ 9005 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9006 old_postinstall_cmds old_postuninstall_cmds \ 9007 compiler \ 9008 CC \ 9009 LD \ 9010 lt_prog_compiler_wl \ 9011 lt_prog_compiler_pic \ 9012 lt_prog_compiler_static \ 9013 lt_prog_compiler_no_builtin_flag \ 9014 export_dynamic_flag_spec \ 9015 thread_safe_flag_spec \ 9016 whole_archive_flag_spec \ 9017 enable_shared_with_static_runtimes \ 9018 old_archive_cmds \ 9019 old_archive_from_new_cmds \ 9020 predep_objects \ 9021 postdep_objects \ 9022 predeps \ 9023 postdeps \ 9024 compiler_lib_search_path \ 9025 archive_cmds \ 9026 archive_expsym_cmds \ 9027 postinstall_cmds \ 9028 postuninstall_cmds \ 9029 old_archive_from_expsyms_cmds \ 9030 allow_undefined_flag \ 9031 no_undefined_flag \ 9032 export_symbols_cmds \ 9033 hardcode_libdir_flag_spec \ 9034 hardcode_libdir_flag_spec_ld \ 9035 hardcode_libdir_separator \ 9036 hardcode_automatic \ 9037 module_cmds \ 9038 module_expsym_cmds \ 9039 lt_cv_prog_compiler_c_o \ 9040 exclude_expsyms \ 9041 include_expsyms; do 9042 9043 case $var in 9044 old_archive_cmds | \ 9045 old_archive_from_new_cmds | \ 9046 archive_cmds | \ 9047 archive_expsym_cmds | \ 9048 module_cmds | \ 9049 module_expsym_cmds | \ 9050 old_archive_from_expsyms_cmds | \ 9051 export_symbols_cmds | \ 9052 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9053 postinstall_cmds | postuninstall_cmds | \ 9054 old_postinstall_cmds | old_postuninstall_cmds | \ 9055 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9056 # Double-quote double-evaled strings. 9057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9058 ;; 9059 *) 9060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9061 ;; 9062 esac 9063 done 9064 9065 case $lt_echo in 9066 *'\$0 --fallback-echo"') 9067 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9068 ;; 9069 esac 9070 9071cfgfile="${ofile}T" 9072 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9073 $rm -f "$cfgfile" 9074 { echo "$as_me:$LINENO: creating $ofile" >&5 9075echo "$as_me: creating $ofile" >&6;} 9076 9077 cat <<__EOF__ >> "$cfgfile" 9078#! $SHELL 9079 9080# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9081# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9082# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9083# 9084# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9085# Free Software Foundation, Inc. 9086# 9087# This file is part of GNU Libtool: 9088# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9089# 9090# This program is free software; you can redistribute it and/or modify 9091# it under the terms of the GNU General Public License as published by 9092# the Free Software Foundation; either version 2 of the License, or 9093# (at your option) any later version. 9094# 9095# This program is distributed in the hope that it will be useful, but 9096# WITHOUT ANY WARRANTY; without even the implied warranty of 9097# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9098# General Public License for more details. 9099# 9100# You should have received a copy of the GNU General Public License 9101# along with this program; if not, write to the Free Software 9102# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9103# 9104# As a special exception to the GNU General Public License, if you 9105# distribute this file as part of a program that contains a 9106# configuration script generated by Autoconf, you may include it under 9107# the same distribution terms that you use for the rest of that program. 9108 9109# A sed program that does not truncate output. 9110SED=$lt_SED 9111 9112# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9113Xsed="$SED -e s/^X//" 9114 9115# The HP-UX ksh and POSIX shell print the target directory to stdout 9116# if CDPATH is set. 9117if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 9118 9119# The names of the tagged configurations supported by this script. 9120available_tags= 9121 9122# ### BEGIN LIBTOOL CONFIG 9123 9124# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9125 9126# Shell to use when invoking shell scripts. 9127SHELL=$lt_SHELL 9128 9129# Whether or not to build shared libraries. 9130build_libtool_libs=$enable_shared 9131 9132# Whether or not to build static libraries. 9133build_old_libs=$enable_static 9134 9135# Whether or not to add -lc for building shared libraries. 9136build_libtool_need_lc=$archive_cmds_need_lc 9137 9138# Whether or not to disallow shared libs when runtime libs are static 9139allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9140 9141# Whether or not to optimize for fast installation. 9142fast_install=$enable_fast_install 9143 9144# The host system. 9145host_alias=$host_alias 9146host=$host 9147 9148# An echo program that does not interpret backslashes. 9149echo=$lt_echo 9150 9151# The archiver. 9152AR=$lt_AR 9153AR_FLAGS=$lt_AR_FLAGS 9154 9155# A C compiler. 9156LTCC=$lt_LTCC 9157 9158# A language-specific compiler. 9159CC=$lt_compiler 9160 9161# Is the compiler the GNU C compiler? 9162with_gcc=$GCC 9163 9164# An ERE matcher. 9165EGREP=$lt_EGREP 9166 9167# The linker used to build libraries. 9168LD=$lt_LD 9169 9170# Whether we need hard or soft links. 9171LN_S=$lt_LN_S 9172 9173# A BSD-compatible nm program. 9174NM=$lt_NM 9175 9176# A symbol stripping program 9177STRIP=$lt_STRIP 9178 9179# Used to examine libraries when file_magic_cmd begins "file" 9180MAGIC_CMD=$MAGIC_CMD 9181 9182# Used on cygwin: DLL creation program. 9183DLLTOOL="$DLLTOOL" 9184 9185# Used on cygwin: object dumper. 9186OBJDUMP="$OBJDUMP" 9187 9188# Used on cygwin: assembler. 9189AS="$AS" 9190 9191# The name of the directory that contains temporary libtool files. 9192objdir=$objdir 9193 9194# How to create reloadable object files. 9195reload_flag=$lt_reload_flag 9196reload_cmds=$lt_reload_cmds 9197 9198# How to pass a linker flag through the compiler. 9199wl=$lt_lt_prog_compiler_wl 9200 9201# Object file suffix (normally "o"). 9202objext="$ac_objext" 9203 9204# Old archive suffix (normally "a"). 9205libext="$libext" 9206 9207# Shared library suffix (normally ".so"). 9208shrext_cmds='$shrext_cmds' 9209 9210# Executable file suffix (normally ""). 9211exeext="$exeext" 9212 9213# Additional compiler flags for building library objects. 9214pic_flag=$lt_lt_prog_compiler_pic 9215pic_mode=$pic_mode 9216 9217# What is the maximum length of a command? 9218max_cmd_len=$lt_cv_sys_max_cmd_len 9219 9220# Does compiler simultaneously support -c and -o options? 9221compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9222 9223# Must we lock files when doing compilation ? 9224need_locks=$lt_need_locks 9225 9226# Do we need the lib prefix for modules? 9227need_lib_prefix=$need_lib_prefix 9228 9229# Do we need a version for libraries? 9230need_version=$need_version 9231 9232# Whether dlopen is supported. 9233dlopen_support=$enable_dlopen 9234 9235# Whether dlopen of programs is supported. 9236dlopen_self=$enable_dlopen_self 9237 9238# Whether dlopen of statically linked programs is supported. 9239dlopen_self_static=$enable_dlopen_self_static 9240 9241# Compiler flag to prevent dynamic linking. 9242link_static_flag=$lt_lt_prog_compiler_static 9243 9244# Compiler flag to turn off builtin functions. 9245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9246 9247# Compiler flag to allow reflexive dlopens. 9248export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9249 9250# Compiler flag to generate shared objects directly from archives. 9251whole_archive_flag_spec=$lt_whole_archive_flag_spec 9252 9253# Compiler flag to generate thread-safe objects. 9254thread_safe_flag_spec=$lt_thread_safe_flag_spec 9255 9256# Library versioning type. 9257version_type=$version_type 9258 9259# Format of library name prefix. 9260libname_spec=$lt_libname_spec 9261 9262# List of archive names. First name is the real one, the rest are links. 9263# The last name is the one that the linker finds with -lNAME. 9264library_names_spec=$lt_library_names_spec 9265 9266# The coded name of the library, if different from the real name. 9267soname_spec=$lt_soname_spec 9268 9269# Commands used to build and install an old-style archive. 9270RANLIB=$lt_RANLIB 9271old_archive_cmds=$lt_old_archive_cmds 9272old_postinstall_cmds=$lt_old_postinstall_cmds 9273old_postuninstall_cmds=$lt_old_postuninstall_cmds 9274 9275# Create an old-style archive from a shared archive. 9276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9277 9278# Create a temporary old-style archive to link instead of a shared archive. 9279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9280 9281# Commands used to build and install a shared archive. 9282archive_cmds=$lt_archive_cmds 9283archive_expsym_cmds=$lt_archive_expsym_cmds 9284postinstall_cmds=$lt_postinstall_cmds 9285postuninstall_cmds=$lt_postuninstall_cmds 9286 9287# Commands used to build a loadable module (assumed same as above if empty) 9288module_cmds=$lt_module_cmds 9289module_expsym_cmds=$lt_module_expsym_cmds 9290 9291# Commands to strip libraries. 9292old_striplib=$lt_old_striplib 9293striplib=$lt_striplib 9294 9295# Dependencies to place before the objects being linked to create a 9296# shared library. 9297predep_objects=$lt_predep_objects 9298 9299# Dependencies to place after the objects being linked to create a 9300# shared library. 9301postdep_objects=$lt_postdep_objects 9302 9303# Dependencies to place before the objects being linked to create a 9304# shared library. 9305predeps=$lt_predeps 9306 9307# Dependencies to place after the objects being linked to create a 9308# shared library. 9309postdeps=$lt_postdeps 9310 9311# The library search path used internally by the compiler when linking 9312# a shared library. 9313compiler_lib_search_path=$lt_compiler_lib_search_path 9314 9315# Method to check whether dependent libraries are shared objects. 9316deplibs_check_method=$lt_deplibs_check_method 9317 9318# Command to use when deplibs_check_method == file_magic. 9319file_magic_cmd=$lt_file_magic_cmd 9320 9321# Flag that allows shared libraries with undefined symbols to be built. 9322allow_undefined_flag=$lt_allow_undefined_flag 9323 9324# Flag that forces no undefined symbols. 9325no_undefined_flag=$lt_no_undefined_flag 9326 9327# Commands used to finish a libtool library installation in a directory. 9328finish_cmds=$lt_finish_cmds 9329 9330# Same as above, but a single script fragment to be evaled but not shown. 9331finish_eval=$lt_finish_eval 9332 9333# Take the output of nm and produce a listing of raw symbols and C names. 9334global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9335 9336# Transform the output of nm in a proper C declaration 9337global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9338 9339# Transform the output of nm in a C name address pair 9340global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9341 9342# This is the shared library runtime path variable. 9343runpath_var=$runpath_var 9344 9345# This is the shared library path variable. 9346shlibpath_var=$shlibpath_var 9347 9348# Is shlibpath searched before the hard-coded library search path? 9349shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9350 9351# How to hardcode a shared library path into an executable. 9352hardcode_action=$hardcode_action 9353 9354# Whether we should hardcode library paths into libraries. 9355hardcode_into_libs=$hardcode_into_libs 9356 9357# Flag to hardcode \$libdir into a binary during linking. 9358# This must work even if \$libdir does not exist. 9359hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9360 9361# If ld is used when linking, flag to hardcode \$libdir into 9362# a binary during linking. This must work even if \$libdir does 9363# not exist. 9364hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9365 9366# Whether we need a single -rpath flag with a separated argument. 9367hardcode_libdir_separator=$lt_hardcode_libdir_separator 9368 9369# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9370# resulting binary. 9371hardcode_direct=$hardcode_direct 9372 9373# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9374# resulting binary. 9375hardcode_minus_L=$hardcode_minus_L 9376 9377# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9378# the resulting binary. 9379hardcode_shlibpath_var=$hardcode_shlibpath_var 9380 9381# Set to yes if building a shared library automatically hardcodes DIR into the library 9382# and all subsequent libraries and executables linked against it. 9383hardcode_automatic=$hardcode_automatic 9384 9385# Variables whose values should be saved in libtool wrapper scripts and 9386# restored at relink time. 9387variables_saved_for_relink="$variables_saved_for_relink" 9388 9389# Whether libtool must link a program against all its dependency libraries. 9390link_all_deplibs=$link_all_deplibs 9391 9392# Compile-time system search path for libraries 9393sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9394 9395# Run-time system search path for libraries 9396sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9397 9398# Fix the shell variable \$srcfile for the compiler. 9399fix_srcfile_path="$fix_srcfile_path" 9400 9401# Set to yes if exported symbols are required. 9402always_export_symbols=$always_export_symbols 9403 9404# The commands to list exported symbols. 9405export_symbols_cmds=$lt_export_symbols_cmds 9406 9407# The commands to extract the exported symbol list from a shared archive. 9408extract_expsyms_cmds=$lt_extract_expsyms_cmds 9409 9410# Symbols that should not be listed in the preloaded symbols. 9411exclude_expsyms=$lt_exclude_expsyms 9412 9413# Symbols that must always be exported. 9414include_expsyms=$lt_include_expsyms 9415 9416# ### END LIBTOOL CONFIG 9417 9418__EOF__ 9419 9420 9421 case $host_os in 9422 aix3*) 9423 cat <<\EOF >> "$cfgfile" 9424 9425# AIX sometimes has problems with the GCC collect2 program. For some 9426# reason, if we set the COLLECT_NAMES environment variable, the problems 9427# vanish in a puff of smoke. 9428if test "X${COLLECT_NAMES+set}" != Xset; then 9429 COLLECT_NAMES= 9430 export COLLECT_NAMES 9431fi 9432EOF 9433 ;; 9434 esac 9435 9436 # We use sed instead of cat because bash on DJGPP gets confused if 9437 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9438 # text mode, it properly converts lines to CR/LF. This bash problem 9439 # is reportedly fixed, but why not run on old versions too? 9440 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9441 9442 mv -f "$cfgfile" "$ofile" || \ 9443 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9444 chmod +x "$ofile" 9445 9446else 9447 # If there is no Makefile yet, we rely on a make rule to execute 9448 # `config.status --recheck' to rerun these tests and create the 9449 # libtool script then. 9450 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9451 if test -f "$ltmain_in"; then 9452 test -f Makefile && make "$ltmain" 9453 fi 9454fi 9455 9456 9457ac_ext=c 9458ac_cpp='$CPP $CPPFLAGS' 9459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9461ac_compiler_gnu=$ac_cv_c_compiler_gnu 9462 9463CC="$lt_save_CC" 9464 9465 9466# Check whether --with-tags or --without-tags was given. 9467if test "${with_tags+set}" = set; then 9468 withval="$with_tags" 9469 tagnames="$withval" 9470fi; 9471 9472if test -f "$ltmain" && test -n "$tagnames"; then 9473 if test ! -f "${ofile}"; then 9474 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9475echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9476 fi 9477 9478 if test -z "$LTCC"; then 9479 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9480 if test -z "$LTCC"; then 9481 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9482echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9483 else 9484 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9485echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9486 fi 9487 fi 9488 9489 # Extract list of available tagged configurations in $ofile. 9490 # Note that this assumes the entire list is on one line. 9491 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9492 9493 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9494 for tagname in $tagnames; do 9495 IFS="$lt_save_ifs" 9496 # Check whether tagname contains only valid characters 9497 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9498 "") ;; 9499 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9500echo "$as_me: error: invalid tag name: $tagname" >&2;} 9501 { (exit 1); exit 1; }; } 9502 ;; 9503 esac 9504 9505 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9506 then 9507 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9508echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9509 { (exit 1); exit 1; }; } 9510 fi 9511 9512 # Update the list of available tags. 9513 if test -n "$tagname"; then 9514 echo appending configuration tag \"$tagname\" to $ofile 9515 9516 case $tagname in 9517 CXX) 9518 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9519 ac_ext=cc 9520ac_cpp='$CXXCPP $CPPFLAGS' 9521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9524 9525 9526 9527 9528archive_cmds_need_lc_CXX=no 9529allow_undefined_flag_CXX= 9530always_export_symbols_CXX=no 9531archive_expsym_cmds_CXX= 9532export_dynamic_flag_spec_CXX= 9533hardcode_direct_CXX=no 9534hardcode_libdir_flag_spec_CXX= 9535hardcode_libdir_flag_spec_ld_CXX= 9536hardcode_libdir_separator_CXX= 9537hardcode_minus_L_CXX=no 9538hardcode_automatic_CXX=no 9539module_cmds_CXX= 9540module_expsym_cmds_CXX= 9541link_all_deplibs_CXX=unknown 9542old_archive_cmds_CXX=$old_archive_cmds 9543no_undefined_flag_CXX= 9544whole_archive_flag_spec_CXX= 9545enable_shared_with_static_runtimes_CXX=no 9546 9547# Dependencies to place before and after the object being linked: 9548predep_objects_CXX= 9549postdep_objects_CXX= 9550predeps_CXX= 9551postdeps_CXX= 9552compiler_lib_search_path_CXX= 9553 9554# Source file extension for C++ test sources. 9555ac_ext=cc 9556 9557# Object file extension for compiled C++ test sources. 9558objext=o 9559objext_CXX=$objext 9560 9561# Code to be used in simple compile tests 9562lt_simple_compile_test_code="int some_variable = 0;\n" 9563 9564# Code to be used in simple link tests 9565lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9566 9567# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9568 9569# If no C compiler was specified, use CC. 9570LTCC=${LTCC-"$CC"} 9571 9572# Allow CC to be a program name with arguments. 9573compiler=$CC 9574 9575 9576# Allow CC to be a program name with arguments. 9577lt_save_CC=$CC 9578lt_save_LD=$LD 9579lt_save_GCC=$GCC 9580GCC=$GXX 9581lt_save_with_gnu_ld=$with_gnu_ld 9582lt_save_path_LD=$lt_cv_path_LD 9583if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9584 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9585else 9586 unset lt_cv_prog_gnu_ld 9587fi 9588if test -n "${lt_cv_path_LDCXX+set}"; then 9589 lt_cv_path_LD=$lt_cv_path_LDCXX 9590else 9591 unset lt_cv_path_LD 9592fi 9593test -z "${LDCXX+set}" || LD=$LDCXX 9594CC=${CXX-"c++"} 9595compiler=$CC 9596compiler_CXX=$CC 9597cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9598 9599# We don't want -fno-exception wen compiling C++ code, so set the 9600# no_builtin_flag separately 9601if test "$GXX" = yes; then 9602 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9603else 9604 lt_prog_compiler_no_builtin_flag_CXX= 9605fi 9606 9607if test "$GXX" = yes; then 9608 # Set up default GNU C++ configuration 9609 9610 9611# Check whether --with-gnu-ld or --without-gnu-ld was given. 9612if test "${with_gnu_ld+set}" = set; then 9613 withval="$with_gnu_ld" 9614 test "$withval" = no || with_gnu_ld=yes 9615else 9616 with_gnu_ld=no 9617fi; 9618ac_prog=ld 9619if test "$GCC" = yes; then 9620 # Check if gcc -print-prog-name=ld gives a path. 9621 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9622echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9623 case $host in 9624 *-*-mingw*) 9625 # gcc leaves a trailing carriage return which upsets mingw 9626 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9627 *) 9628 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9629 esac 9630 case $ac_prog in 9631 # Accept absolute paths. 9632 [\\/]* | ?:[\\/]*) 9633 re_direlt='/[^/][^/]*/\.\./' 9634 # Canonicalize the pathname of ld 9635 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9636 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9637 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9638 done 9639 test -z "$LD" && LD="$ac_prog" 9640 ;; 9641 "") 9642 # If it fails, then pretend we aren't using GCC. 9643 ac_prog=ld 9644 ;; 9645 *) 9646 # If it is relative, then search for the first ld in PATH. 9647 with_gnu_ld=unknown 9648 ;; 9649 esac 9650elif test "$with_gnu_ld" = yes; then 9651 echo "$as_me:$LINENO: checking for GNU ld" >&5 9652echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9653else 9654 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9655echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9656fi 9657if test "${lt_cv_path_LD+set}" = set; then 9658 echo $ECHO_N "(cached) $ECHO_C" >&6 9659else 9660 if test -z "$LD"; then 9661 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9662 for ac_dir in $PATH; do 9663 IFS="$lt_save_ifs" 9664 test -z "$ac_dir" && ac_dir=. 9665 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9666 lt_cv_path_LD="$ac_dir/$ac_prog" 9667 # Check to see if the program is GNU ld. I'd rather use --version, 9668 # but apparently some GNU ld's only accept -v. 9669 # Break only if it was the GNU/non-GNU ld that we prefer. 9670 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9671 *GNU* | *'with BFD'*) 9672 test "$with_gnu_ld" != no && break 9673 ;; 9674 *) 9675 test "$with_gnu_ld" != yes && break 9676 ;; 9677 esac 9678 fi 9679 done 9680 IFS="$lt_save_ifs" 9681else 9682 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9683fi 9684fi 9685 9686LD="$lt_cv_path_LD" 9687if test -n "$LD"; then 9688 echo "$as_me:$LINENO: result: $LD" >&5 9689echo "${ECHO_T}$LD" >&6 9690else 9691 echo "$as_me:$LINENO: result: no" >&5 9692echo "${ECHO_T}no" >&6 9693fi 9694test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9695echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9696 { (exit 1); exit 1; }; } 9697echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9698echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9699if test "${lt_cv_prog_gnu_ld+set}" = set; then 9700 echo $ECHO_N "(cached) $ECHO_C" >&6 9701else 9702 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9703case `$LD -v 2>&1 </dev/null` in 9704*GNU* | *'with BFD'*) 9705 lt_cv_prog_gnu_ld=yes 9706 ;; 9707*) 9708 lt_cv_prog_gnu_ld=no 9709 ;; 9710esac 9711fi 9712echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9713echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9714with_gnu_ld=$lt_cv_prog_gnu_ld 9715 9716 9717 9718 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9719 # archiving commands below assume that GNU ld is being used. 9720 if test "$with_gnu_ld" = yes; then 9721 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9722 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' 9723 9724 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9726 9727 # If archive_cmds runs LD, not CC, wlarc should be empty 9728 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9729 # investigate it a little bit more. (MM) 9730 wlarc='${wl}' 9731 9732 # ancient GNU ld didn't support --whole-archive et. al. 9733 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9734 grep 'no-whole-archive' > /dev/null; then 9735 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9736 else 9737 whole_archive_flag_spec_CXX= 9738 fi 9739 else 9740 with_gnu_ld=no 9741 wlarc= 9742 9743 # A generic and very simple default shared library creation 9744 # command for GNU C++ for the case where it uses the native 9745 # linker, instead of GNU ld. If possible, this setting should 9746 # overridden to take advantage of the native linker features on 9747 # the platform it is being used on. 9748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9749 fi 9750 9751 # Commands to make compiler produce verbose output that lists 9752 # what "hidden" libraries, object files and flags are used when 9753 # linking a shared library. 9754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9755 9756else 9757 GXX=no 9758 with_gnu_ld=no 9759 wlarc= 9760fi 9761 9762# PORTME: fill in a description of your system's C++ link characteristics 9763echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9764echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9765ld_shlibs_CXX=yes 9766case $host_os in 9767 aix3*) 9768 # FIXME: insert proper C++ library support 9769 ld_shlibs_CXX=no 9770 ;; 9771 aix4* | aix5*) 9772 if test "$host_cpu" = ia64; then 9773 # On IA64, the linker does run time linking by default, so we don't 9774 # have to do anything special. 9775 aix_use_runtimelinking=no 9776 exp_sym_flag='-Bexport' 9777 no_entry_flag="" 9778 else 9779 aix_use_runtimelinking=no 9780 9781 # Test if we are trying to use run time linking or normal 9782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9783 # need to do runtime linking. 9784 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9785 for ld_flag in $LDFLAGS; do 9786 case $ld_flag in 9787 *-brtl*) 9788 aix_use_runtimelinking=yes 9789 break 9790 ;; 9791 esac 9792 done 9793 esac 9794 9795 exp_sym_flag='-bexport' 9796 no_entry_flag='-bnoentry' 9797 fi 9798 9799 # When large executables or shared objects are built, AIX ld can 9800 # have problems creating the table of contents. If linking a library 9801 # or program results in "error TOC overflow" add -mminimal-toc to 9802 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9803 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9804 9805 archive_cmds_CXX='' 9806 hardcode_direct_CXX=yes 9807 hardcode_libdir_separator_CXX=':' 9808 link_all_deplibs_CXX=yes 9809 9810 if test "$GXX" = yes; then 9811 case $host_os in aix4.012|aix4.012.*) 9812 # We only want to do this on AIX 4.2 and lower, the check 9813 # below for broken collect2 doesn't work under 4.3+ 9814 collect2name=`${CC} -print-prog-name=collect2` 9815 if test -f "$collect2name" && \ 9816 strings "$collect2name" | grep resolve_lib_name >/dev/null 9817 then 9818 # We have reworked collect2 9819 hardcode_direct_CXX=yes 9820 else 9821 # We have old collect2 9822 hardcode_direct_CXX=unsupported 9823 # It fails to find uninstalled libraries when the uninstalled 9824 # path is not listed in the libpath. Setting hardcode_minus_L 9825 # to unsupported forces relinking 9826 hardcode_minus_L_CXX=yes 9827 hardcode_libdir_flag_spec_CXX='-L$libdir' 9828 hardcode_libdir_separator_CXX= 9829 fi 9830 esac 9831 shared_flag='-shared' 9832 else 9833 # not using gcc 9834 if test "$host_cpu" = ia64; then 9835 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9836 # chokes on -Wl,-G. The following line is correct: 9837 shared_flag='-G' 9838 else 9839 if test "$aix_use_runtimelinking" = yes; then 9840 shared_flag='${wl}-G' 9841 else 9842 shared_flag='${wl}-bM:SRE' 9843 fi 9844 fi 9845 fi 9846 9847 # It seems that -bexpall does not export symbols beginning with 9848 # underscore (_), so it is better to generate a list of symbols to export. 9849 always_export_symbols_CXX=yes 9850 if test "$aix_use_runtimelinking" = yes; then 9851 # Warning - without using the other runtime loading flags (-brtl), 9852 # -berok will link without error, but may produce a broken library. 9853 allow_undefined_flag_CXX='-berok' 9854 # Determine the default libpath from the value encoded in an empty executable. 9855 cat >conftest.$ac_ext <<_ACEOF 9856/* confdefs.h. */ 9857_ACEOF 9858cat confdefs.h >>conftest.$ac_ext 9859cat >>conftest.$ac_ext <<_ACEOF 9860/* end confdefs.h. */ 9861 9862int 9863main () 9864{ 9865 9866 ; 9867 return 0; 9868} 9869_ACEOF 9870rm -f conftest.$ac_objext conftest$ac_exeext 9871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9872 (eval $ac_link) 2>conftest.er1 9873 ac_status=$? 9874 grep -v '^ *+' conftest.er1 >conftest.err 9875 rm -f conftest.er1 9876 cat conftest.err >&5 9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9878 (exit $ac_status); } && 9879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9881 (eval $ac_try) 2>&5 9882 ac_status=$? 9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9884 (exit $ac_status); }; } && 9885 { ac_try='test -s conftest$ac_exeext' 9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9887 (eval $ac_try) 2>&5 9888 ac_status=$? 9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9890 (exit $ac_status); }; }; then 9891 9892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9893}'` 9894# Check for a 64-bit object if we didn't find anything. 9895if 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; } 9896}'`; fi 9897else 9898 echo "$as_me: failed program was:" >&5 9899sed 's/^/| /' conftest.$ac_ext >&5 9900 9901fi 9902rm -f conftest.err conftest.$ac_objext \ 9903 conftest$ac_exeext conftest.$ac_ext 9904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9905 9906 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9907 9908 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" 9909 else 9910 if test "$host_cpu" = ia64; then 9911 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9912 allow_undefined_flag_CXX="-z nodefs" 9913 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" 9914 else 9915 # Determine the default libpath from the value encoded in an empty executable. 9916 cat >conftest.$ac_ext <<_ACEOF 9917/* confdefs.h. */ 9918_ACEOF 9919cat confdefs.h >>conftest.$ac_ext 9920cat >>conftest.$ac_ext <<_ACEOF 9921/* end confdefs.h. */ 9922 9923int 9924main () 9925{ 9926 9927 ; 9928 return 0; 9929} 9930_ACEOF 9931rm -f conftest.$ac_objext conftest$ac_exeext 9932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9933 (eval $ac_link) 2>conftest.er1 9934 ac_status=$? 9935 grep -v '^ *+' conftest.er1 >conftest.err 9936 rm -f conftest.er1 9937 cat conftest.err >&5 9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9939 (exit $ac_status); } && 9940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9942 (eval $ac_try) 2>&5 9943 ac_status=$? 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); }; } && 9946 { ac_try='test -s conftest$ac_exeext' 9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9948 (eval $ac_try) 2>&5 9949 ac_status=$? 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9951 (exit $ac_status); }; }; then 9952 9953aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9954}'` 9955# Check for a 64-bit object if we didn't find anything. 9956if 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; } 9957}'`; fi 9958else 9959 echo "$as_me: failed program was:" >&5 9960sed 's/^/| /' conftest.$ac_ext >&5 9961 9962fi 9963rm -f conftest.err conftest.$ac_objext \ 9964 conftest$ac_exeext conftest.$ac_ext 9965if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9966 9967 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9968 # Warning - without using the other run time loading flags, 9969 # -berok will link without error, but may produce a broken library. 9970 no_undefined_flag_CXX=' ${wl}-bernotok' 9971 allow_undefined_flag_CXX=' ${wl}-berok' 9972 # -bexpall does not export symbols beginning with underscore (_) 9973 always_export_symbols_CXX=yes 9974 # Exported symbols can be pulled into shared objects from archives 9975 whole_archive_flag_spec_CXX=' ' 9976 archive_cmds_need_lc_CXX=yes 9977 # This is similar to how AIX traditionally builds it's shared libraries. 9978 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' 9979 fi 9980 fi 9981 ;; 9982 chorus*) 9983 case $cc_basename in 9984 *) 9985 # FIXME: insert proper C++ library support 9986 ld_shlibs_CXX=no 9987 ;; 9988 esac 9989 ;; 9990 9991 cygwin* | mingw* | pw32*) 9992 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9993 # as there is no search path for DLLs. 9994 hardcode_libdir_flag_spec_CXX='-L$libdir' 9995 allow_undefined_flag_CXX=unsupported 9996 always_export_symbols_CXX=no 9997 enable_shared_with_static_runtimes_CXX=yes 9998 9999 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10000 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10001 # If the export-symbols file already is a .def file (1st line 10002 # is EXPORTS), use it as is; otherwise, prepend... 10003 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10004 cp $export_symbols $output_objdir/$soname.def; 10005 else 10006 echo EXPORTS > $output_objdir/$soname.def; 10007 cat $export_symbols >> $output_objdir/$soname.def; 10008 fi~ 10009 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10010 else 10011 ld_shlibs_CXX=no 10012 fi 10013 ;; 10014 10015 darwin* | rhapsody*) 10016 if test "$GXX" = yes; then 10017 archive_cmds_need_lc_CXX=no 10018 case "$host_os" in 10019 rhapsody* | darwin1.[012]) 10020 allow_undefined_flag_CXX='-undefined suppress' 10021 ;; 10022 *) # Darwin 1.3 on 10023 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10024 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10025 else 10026 case ${MACOSX_DEPLOYMENT_TARGET} in 10027 10.[012]) 10028 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10029 ;; 10030 10.*) 10031 allow_undefined_flag_CXX='-undefined dynamic_lookup' 10032 ;; 10033 esac 10034 fi 10035 ;; 10036 esac 10037 lt_int_apple_cc_single_mod=no 10038 output_verbose_link_cmd='echo' 10039 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 10040 lt_int_apple_cc_single_mod=yes 10041 fi 10042 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10043 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10044 else 10045 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' 10046 fi 10047 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10048 10049 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10050 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10051 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}' 10052 else 10053 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 10054 fi 10055 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}' 10056 hardcode_direct_CXX=no 10057 hardcode_automatic_CXX=yes 10058 hardcode_shlibpath_var_CXX=unsupported 10059 whole_archive_flag_spec_CXX='-all_load $convenience' 10060 link_all_deplibs_CXX=yes 10061 else 10062 ld_shlibs_CXX=no 10063 fi 10064 ;; 10065 10066 dgux*) 10067 case $cc_basename in 10068 ec++) 10069 # FIXME: insert proper C++ library support 10070 ld_shlibs_CXX=no 10071 ;; 10072 ghcx) 10073 # Green Hills C++ Compiler 10074 # FIXME: insert proper C++ library support 10075 ld_shlibs_CXX=no 10076 ;; 10077 *) 10078 # FIXME: insert proper C++ library support 10079 ld_shlibs_CXX=no 10080 ;; 10081 esac 10082 ;; 10083 freebsd12*) 10084 # C++ shared libraries reported to be fairly broken before switch to ELF 10085 ld_shlibs_CXX=no 10086 ;; 10087 freebsd-elf*) 10088 archive_cmds_need_lc_CXX=no 10089 ;; 10090 freebsd* | kfreebsd*-gnu) 10091 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10092 # conventions 10093 ld_shlibs_CXX=yes 10094 ;; 10095 gnu*) 10096 ;; 10097 hpux9*) 10098 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10099 hardcode_libdir_separator_CXX=: 10100 export_dynamic_flag_spec_CXX='${wl}-E' 10101 hardcode_direct_CXX=yes 10102 hardcode_minus_L_CXX=yes # Not in the search PATH, 10103 # but as the default 10104 # location of the library. 10105 10106 case $cc_basename in 10107 CC) 10108 # FIXME: insert proper C++ library support 10109 ld_shlibs_CXX=no 10110 ;; 10111 aCC) 10112 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' 10113 # Commands to make compiler produce verbose output that lists 10114 # what "hidden" libraries, object files and flags are used when 10115 # linking a shared library. 10116 # 10117 # There doesn't appear to be a way to prevent this compiler from 10118 # explicitly linking system object files so we need to strip them 10119 # from the output so that they don't get included in the library 10120 # dependencies. 10121 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' 10122 ;; 10123 *) 10124 if test "$GXX" = yes; then 10125 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' 10126 else 10127 # FIXME: insert proper C++ library support 10128 ld_shlibs_CXX=no 10129 fi 10130 ;; 10131 esac 10132 ;; 10133 hpux10*|hpux11*) 10134 if test $with_gnu_ld = no; then 10135 case "$host_cpu" in 10136 hppa*64*) 10137 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10138 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10139 hardcode_libdir_separator_CXX=: 10140 ;; 10141 ia64*) 10142 hardcode_libdir_flag_spec_CXX='-L$libdir' 10143 ;; 10144 *) 10145 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10146 hardcode_libdir_separator_CXX=: 10147 export_dynamic_flag_spec_CXX='${wl}-E' 10148 ;; 10149 esac 10150 fi 10151 case "$host_cpu" in 10152 hppa*64*) 10153 hardcode_direct_CXX=no 10154 hardcode_shlibpath_var_CXX=no 10155 ;; 10156 ia64*) 10157 hardcode_direct_CXX=no 10158 hardcode_shlibpath_var_CXX=no 10159 hardcode_minus_L_CXX=yes # Not in the search PATH, 10160 # but as the default 10161 # location of the library. 10162 ;; 10163 *) 10164 hardcode_direct_CXX=yes 10165 hardcode_minus_L_CXX=yes # Not in the search PATH, 10166 # but as the default 10167 # location of the library. 10168 ;; 10169 esac 10170 10171 case $cc_basename in 10172 CC) 10173 # FIXME: insert proper C++ library support 10174 ld_shlibs_CXX=no 10175 ;; 10176 aCC) 10177 case "$host_cpu" in 10178 hppa*64*|ia64*) 10179 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10180 ;; 10181 *) 10182 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10183 ;; 10184 esac 10185 # Commands to make compiler produce verbose output that lists 10186 # what "hidden" libraries, object files and flags are used when 10187 # linking a shared library. 10188 # 10189 # There doesn't appear to be a way to prevent this compiler from 10190 # explicitly linking system object files so we need to strip them 10191 # from the output so that they don't get included in the library 10192 # dependencies. 10193 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' 10194 ;; 10195 *) 10196 if test "$GXX" = yes; then 10197 if test $with_gnu_ld = no; then 10198 case "$host_cpu" in 10199 ia64*|hppa*64*) 10200 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10201 ;; 10202 *) 10203 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' 10204 ;; 10205 esac 10206 fi 10207 else 10208 # FIXME: insert proper C++ library support 10209 ld_shlibs_CXX=no 10210 fi 10211 ;; 10212 esac 10213 ;; 10214 irix5* | irix6*) 10215 case $cc_basename in 10216 CC) 10217 # SGI C++ 10218 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 ${objdir}/so_locations -o $lib' 10219 10220 # Archives containing C++ object files must be created using 10221 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10222 # necessary to make sure instantiated templates are included 10223 # in the archive. 10224 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10225 ;; 10226 *) 10227 if test "$GXX" = yes; then 10228 if test "$with_gnu_ld" = no; then 10229 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}${objdir}/so_locations -o $lib' 10230 else 10231 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' 10232 fi 10233 fi 10234 link_all_deplibs_CXX=yes 10235 ;; 10236 esac 10237 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10238 hardcode_libdir_separator_CXX=: 10239 ;; 10240 linux*) 10241 case $cc_basename in 10242 KCC) 10243 # Kuck and Associates, Inc. (KAI) C++ Compiler 10244 10245 # KCC will only create a shared library if the output file 10246 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10247 # to its proper name (with version) after linking. 10248 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' 10249 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' 10250 # Commands to make compiler produce verbose output that lists 10251 # what "hidden" libraries, object files and flags are used when 10252 # linking a shared library. 10253 # 10254 # There doesn't appear to be a way to prevent this compiler from 10255 # explicitly linking system object files so we need to strip them 10256 # from the output so that they don't get included in the library 10257 # dependencies. 10258 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' 10259 10260 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10261 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10262 10263 # Archives containing C++ object files must be created using 10264 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10265 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10266 ;; 10267 icpc) 10268 # Intel C++ 10269 with_gnu_ld=yes 10270 archive_cmds_need_lc_CXX=no 10271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10272 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' 10273 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10274 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10275 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10276 ;; 10277 cxx) 10278 # Compaq C++ 10279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10280 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' 10281 10282 runpath_var=LD_RUN_PATH 10283 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10284 hardcode_libdir_separator_CXX=: 10285 10286 # Commands to make compiler produce verbose output that lists 10287 # what "hidden" libraries, object files and flags are used when 10288 # linking a shared library. 10289 # 10290 # There doesn't appear to be a way to prevent this compiler from 10291 # explicitly linking system object files so we need to strip them 10292 # from the output so that they don't get included in the library 10293 # dependencies. 10294 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' 10295 ;; 10296 esac 10297 ;; 10298 lynxos*) 10299 # FIXME: insert proper C++ library support 10300 ld_shlibs_CXX=no 10301 ;; 10302 m88k*) 10303 # FIXME: insert proper C++ library support 10304 ld_shlibs_CXX=no 10305 ;; 10306 mvs*) 10307 case $cc_basename in 10308 cxx) 10309 # FIXME: insert proper C++ library support 10310 ld_shlibs_CXX=no 10311 ;; 10312 *) 10313 # FIXME: insert proper C++ library support 10314 ld_shlibs_CXX=no 10315 ;; 10316 esac 10317 ;; 10318 netbsd* | knetbsd*-gnu) 10319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10320 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10321 wlarc= 10322 hardcode_libdir_flag_spec_CXX='-R$libdir' 10323 hardcode_direct_CXX=yes 10324 hardcode_shlibpath_var_CXX=no 10325 fi 10326 # Workaround some broken pre-1.5 toolchains 10327 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10328 ;; 10329 osf3*) 10330 case $cc_basename in 10331 KCC) 10332 # Kuck and Associates, Inc. (KAI) C++ Compiler 10333 10334 # KCC will only create a shared library if the output file 10335 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10336 # to its proper name (with version) after linking. 10337 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' 10338 10339 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10340 hardcode_libdir_separator_CXX=: 10341 10342 # Archives containing C++ object files must be created using 10343 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10344 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10345 10346 ;; 10347 RCC) 10348 # Rational C++ 2.4.1 10349 # FIXME: insert proper C++ library support 10350 ld_shlibs_CXX=no 10351 ;; 10352 cxx) 10353 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10354 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 ${objdir}/so_locations -o $lib' 10355 10356 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10357 hardcode_libdir_separator_CXX=: 10358 10359 # Commands to make compiler produce verbose output that lists 10360 # what "hidden" libraries, object files and flags are used when 10361 # linking a shared library. 10362 # 10363 # There doesn't appear to be a way to prevent this compiler from 10364 # explicitly linking system object files so we need to strip them 10365 # from the output so that they don't get included in the library 10366 # dependencies. 10367 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' 10368 ;; 10369 *) 10370 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10371 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10372 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}${objdir}/so_locations -o $lib' 10373 10374 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10375 hardcode_libdir_separator_CXX=: 10376 10377 # Commands to make compiler produce verbose output that lists 10378 # what "hidden" libraries, object files and flags are used when 10379 # linking a shared library. 10380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10381 10382 else 10383 # FIXME: insert proper C++ library support 10384 ld_shlibs_CXX=no 10385 fi 10386 ;; 10387 esac 10388 ;; 10389 osf4* | osf5*) 10390 case $cc_basename in 10391 KCC) 10392 # Kuck and Associates, Inc. (KAI) C++ Compiler 10393 10394 # KCC will only create a shared library if the output file 10395 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10396 # to its proper name (with version) after linking. 10397 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' 10398 10399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10400 hardcode_libdir_separator_CXX=: 10401 10402 # Archives containing C++ object files must be created using 10403 # the KAI C++ compiler. 10404 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10405 ;; 10406 RCC) 10407 # Rational C++ 2.4.1 10408 # FIXME: insert proper C++ library support 10409 ld_shlibs_CXX=no 10410 ;; 10411 cxx) 10412 allow_undefined_flag_CXX=' -expect_unresolved \*' 10413 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 ${objdir}/so_locations -o $lib' 10414 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10415 echo "-hidden">> $lib.exp~ 10416 $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 $objdir/so_locations -o $lib~ 10417 $rm $lib.exp' 10418 10419 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10420 hardcode_libdir_separator_CXX=: 10421 10422 # Commands to make compiler produce verbose output that lists 10423 # what "hidden" libraries, object files and flags are used when 10424 # linking a shared library. 10425 # 10426 # There doesn't appear to be a way to prevent this compiler from 10427 # explicitly linking system object files so we need to strip them 10428 # from the output so that they don't get included in the library 10429 # dependencies. 10430 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' 10431 ;; 10432 *) 10433 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10434 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10435 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}${objdir}/so_locations -o $lib' 10436 10437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10438 hardcode_libdir_separator_CXX=: 10439 10440 # Commands to make compiler produce verbose output that lists 10441 # what "hidden" libraries, object files and flags are used when 10442 # linking a shared library. 10443 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10444 10445 else 10446 # FIXME: insert proper C++ library support 10447 ld_shlibs_CXX=no 10448 fi 10449 ;; 10450 esac 10451 ;; 10452 psos*) 10453 # FIXME: insert proper C++ library support 10454 ld_shlibs_CXX=no 10455 ;; 10456 sco*) 10457 archive_cmds_need_lc_CXX=no 10458 case $cc_basename in 10459 CC) 10460 # FIXME: insert proper C++ library support 10461 ld_shlibs_CXX=no 10462 ;; 10463 *) 10464 # FIXME: insert proper C++ library support 10465 ld_shlibs_CXX=no 10466 ;; 10467 esac 10468 ;; 10469 sunos4*) 10470 case $cc_basename in 10471 CC) 10472 # Sun C++ 4.x 10473 # FIXME: insert proper C++ library support 10474 ld_shlibs_CXX=no 10475 ;; 10476 lcc) 10477 # Lucid 10478 # FIXME: insert proper C++ library support 10479 ld_shlibs_CXX=no 10480 ;; 10481 *) 10482 # FIXME: insert proper C++ library support 10483 ld_shlibs_CXX=no 10484 ;; 10485 esac 10486 ;; 10487 solaris*) 10488 case $cc_basename in 10489 CC) 10490 # Sun C++ 4.2, 5.x and Centerline C++ 10491 no_undefined_flag_CXX=' -zdefs' 10492 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10493 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10494 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10495 10496 hardcode_libdir_flag_spec_CXX='-R$libdir' 10497 hardcode_shlibpath_var_CXX=no 10498 case $host_os in 10499 solaris2.0-5 | solaris2.0-5.*) ;; 10500 *) 10501 # The C++ compiler is used as linker so we must use $wl 10502 # flag to pass the commands to the underlying system 10503 # linker. 10504 # Supported since Solaris 2.6 (maybe 2.5.1?) 10505 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10506 ;; 10507 esac 10508 link_all_deplibs_CXX=yes 10509 10510 # Commands to make compiler produce verbose output that lists 10511 # what "hidden" libraries, object files and flags are used when 10512 # linking a shared library. 10513 # 10514 # There doesn't appear to be a way to prevent this compiler from 10515 # explicitly linking system object files so we need to strip them 10516 # from the output so that they don't get included in the library 10517 # dependencies. 10518 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10519 10520 # Archives containing C++ object files must be created using 10521 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10522 # necessary to make sure instantiated templates are included 10523 # in the archive. 10524 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10525 ;; 10526 gcx) 10527 # Green Hills C++ Compiler 10528 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10529 10530 # The C++ compiler must be used to create the archive. 10531 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10532 ;; 10533 *) 10534 # GNU C++ compiler with Solaris linker 10535 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10536 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10537 if $CC --version | grep -v '^2\.7' > /dev/null; then 10538 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10539 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10540 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10541 10542 # Commands to make compiler produce verbose output that lists 10543 # what "hidden" libraries, object files and flags are used when 10544 # linking a shared library. 10545 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10546 else 10547 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10548 # platform. 10549 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10550 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10551 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10552 10553 # Commands to make compiler produce verbose output that lists 10554 # what "hidden" libraries, object files and flags are used when 10555 # linking a shared library. 10556 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10557 fi 10558 10559 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10560 fi 10561 ;; 10562 esac 10563 ;; 10564 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10565 archive_cmds_need_lc_CXX=no 10566 ;; 10567 tandem*) 10568 case $cc_basename in 10569 NCC) 10570 # NonStop-UX NCC 3.20 10571 # FIXME: insert proper C++ library support 10572 ld_shlibs_CXX=no 10573 ;; 10574 *) 10575 # FIXME: insert proper C++ library support 10576 ld_shlibs_CXX=no 10577 ;; 10578 esac 10579 ;; 10580 vxworks*) 10581 # FIXME: insert proper C++ library support 10582 ld_shlibs_CXX=no 10583 ;; 10584 *) 10585 # FIXME: insert proper C++ library support 10586 ld_shlibs_CXX=no 10587 ;; 10588esac 10589echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10590echo "${ECHO_T}$ld_shlibs_CXX" >&6 10591test "$ld_shlibs_CXX" = no && can_build_shared=no 10592 10593GCC_CXX="$GXX" 10594LD_CXX="$LD" 10595 10596 10597cat > conftest.$ac_ext <<EOF 10598class Foo 10599{ 10600public: 10601 Foo (void) { a = 0; } 10602private: 10603 int a; 10604}; 10605EOF 10606 10607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10608 (eval $ac_compile) 2>&5 10609 ac_status=$? 10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10611 (exit $ac_status); }; then 10612 # Parse the compiler output and extract the necessary 10613 # objects, libraries and library flags. 10614 10615 # Sentinel used to keep track of whether or not we are before 10616 # the conftest object file. 10617 pre_test_object_deps_done=no 10618 10619 # The `*' in the case matches for architectures that use `case' in 10620 # $output_verbose_cmd can trigger glob expansion during the loop 10621 # eval without this substitution. 10622 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10623 10624 for p in `eval $output_verbose_link_cmd`; do 10625 case $p in 10626 10627 -L* | -R* | -l*) 10628 # Some compilers place space between "-{L,R}" and the path. 10629 # Remove the space. 10630 if test $p = "-L" \ 10631 || test $p = "-R"; then 10632 prev=$p 10633 continue 10634 else 10635 prev= 10636 fi 10637 10638 if test "$pre_test_object_deps_done" = no; then 10639 case $p in 10640 -L* | -R*) 10641 # Internal compiler library paths should come after those 10642 # provided the user. The postdeps already come after the 10643 # user supplied libs so there is no need to process them. 10644 if test -z "$compiler_lib_search_path_CXX"; then 10645 compiler_lib_search_path_CXX="${prev}${p}" 10646 else 10647 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10648 fi 10649 ;; 10650 # The "-l" case would never come before the object being 10651 # linked, so don't bother handling this case. 10652 esac 10653 else 10654 if test -z "$postdeps_CXX"; then 10655 postdeps_CXX="${prev}${p}" 10656 else 10657 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10658 fi 10659 fi 10660 ;; 10661 10662 *.$objext) 10663 # This assumes that the test object file only shows up 10664 # once in the compiler output. 10665 if test "$p" = "conftest.$objext"; then 10666 pre_test_object_deps_done=yes 10667 continue 10668 fi 10669 10670 if test "$pre_test_object_deps_done" = no; then 10671 if test -z "$predep_objects_CXX"; then 10672 predep_objects_CXX="$p" 10673 else 10674 predep_objects_CXX="$predep_objects_CXX $p" 10675 fi 10676 else 10677 if test -z "$postdep_objects_CXX"; then 10678 postdep_objects_CXX="$p" 10679 else 10680 postdep_objects_CXX="$postdep_objects_CXX $p" 10681 fi 10682 fi 10683 ;; 10684 10685 *) ;; # Ignore the rest. 10686 10687 esac 10688 done 10689 10690 # Clean up. 10691 rm -f a.out a.exe 10692else 10693 echo "libtool.m4: error: problem compiling CXX test program" 10694fi 10695 10696$rm -f confest.$objext 10697 10698case " $postdeps_CXX " in 10699*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10700esac 10701 10702lt_prog_compiler_wl_CXX= 10703lt_prog_compiler_pic_CXX= 10704lt_prog_compiler_static_CXX= 10705 10706echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10707echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10708 10709 # C++ specific cases for pic, static, wl, etc. 10710 if test "$GXX" = yes; then 10711 lt_prog_compiler_wl_CXX='-Wl,' 10712 lt_prog_compiler_static_CXX='-static' 10713 10714 case $host_os in 10715 aix*) 10716 # All AIX code is PIC. 10717 if test "$host_cpu" = ia64; then 10718 # AIX 5 now supports IA64 processor 10719 lt_prog_compiler_static_CXX='-Bstatic' 10720 fi 10721 ;; 10722 amigaos*) 10723 # FIXME: we need at least 68020 code to build shared libraries, but 10724 # adding the `-m68020' flag to GCC prevents building anything better, 10725 # like `-m68040'. 10726 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10727 ;; 10728 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10729 # PIC is the default for these OSes. 10730 ;; 10731 mingw* | os2* | pw32*) 10732 # This hack is so that the source file can tell whether it is being 10733 # built for inclusion in a dll (and should export symbols for example). 10734 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10735 ;; 10736 darwin* | rhapsody*) 10737 # PIC is the default on this platform 10738 # Common symbols not allowed in MH_DYLIB files 10739 lt_prog_compiler_pic_CXX='-fno-common' 10740 ;; 10741 *djgpp*) 10742 # DJGPP does not support shared libraries at all 10743 lt_prog_compiler_pic_CXX= 10744 ;; 10745 sysv4*MP*) 10746 if test -d /usr/nec; then 10747 lt_prog_compiler_pic_CXX=-Kconform_pic 10748 fi 10749 ;; 10750 hpux*) 10751 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10752 # not for PA HP-UX. 10753 case "$host_cpu" in 10754 hppa*64*|ia64*) 10755 ;; 10756 *) 10757 lt_prog_compiler_pic_CXX='-fPIC' 10758 ;; 10759 esac 10760 ;; 10761 *) 10762 lt_prog_compiler_pic_CXX='-fPIC' 10763 ;; 10764 esac 10765 else 10766 case $host_os in 10767 aix4* | aix5*) 10768 # All AIX code is PIC. 10769 if test "$host_cpu" = ia64; then 10770 # AIX 5 now supports IA64 processor 10771 lt_prog_compiler_static_CXX='-Bstatic' 10772 else 10773 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10774 fi 10775 ;; 10776 chorus*) 10777 case $cc_basename in 10778 cxch68) 10779 # Green Hills C++ Compiler 10780 # _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" 10781 ;; 10782 esac 10783 ;; 10784 dgux*) 10785 case $cc_basename in 10786 ec++) 10787 lt_prog_compiler_pic_CXX='-KPIC' 10788 ;; 10789 ghcx) 10790 # Green Hills C++ Compiler 10791 lt_prog_compiler_pic_CXX='-pic' 10792 ;; 10793 *) 10794 ;; 10795 esac 10796 ;; 10797 freebsd* | kfreebsd*-gnu) 10798 # FreeBSD uses GNU C++ 10799 ;; 10800 hpux9* | hpux10* | hpux11*) 10801 case $cc_basename in 10802 CC) 10803 lt_prog_compiler_wl_CXX='-Wl,' 10804 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10805 if test "$host_cpu" != ia64; then 10806 lt_prog_compiler_pic_CXX='+Z' 10807 fi 10808 ;; 10809 aCC) 10810 lt_prog_compiler_wl_CXX='-Wl,' 10811 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10812 case "$host_cpu" in 10813 hppa*64*|ia64*) 10814 # +Z the default 10815 ;; 10816 *) 10817 lt_prog_compiler_pic_CXX='+Z' 10818 ;; 10819 esac 10820 ;; 10821 *) 10822 ;; 10823 esac 10824 ;; 10825 irix5* | irix6* | nonstopux*) 10826 case $cc_basename in 10827 CC) 10828 lt_prog_compiler_wl_CXX='-Wl,' 10829 lt_prog_compiler_static_CXX='-non_shared' 10830 # CC pic flag -KPIC is the default. 10831 ;; 10832 *) 10833 ;; 10834 esac 10835 ;; 10836 linux*) 10837 case $cc_basename in 10838 KCC) 10839 # KAI C++ Compiler 10840 lt_prog_compiler_wl_CXX='--backend -Wl,' 10841 lt_prog_compiler_pic_CXX='-fPIC' 10842 ;; 10843 icpc) 10844 # Intel C++ 10845 lt_prog_compiler_wl_CXX='-Wl,' 10846 lt_prog_compiler_pic_CXX='-KPIC' 10847 lt_prog_compiler_static_CXX='-static' 10848 ;; 10849 cxx) 10850 # Compaq C++ 10851 # Make sure the PIC flag is empty. It appears that all Alpha 10852 # Linux and Compaq Tru64 Unix objects are PIC. 10853 lt_prog_compiler_pic_CXX= 10854 lt_prog_compiler_static_CXX='-non_shared' 10855 ;; 10856 *) 10857 ;; 10858 esac 10859 ;; 10860 lynxos*) 10861 ;; 10862 m88k*) 10863 ;; 10864 mvs*) 10865 case $cc_basename in 10866 cxx) 10867 lt_prog_compiler_pic_CXX='-W c,exportall' 10868 ;; 10869 *) 10870 ;; 10871 esac 10872 ;; 10873 netbsd* | knetbsd*-gnu) 10874 ;; 10875 osf3* | osf4* | osf5*) 10876 case $cc_basename in 10877 KCC) 10878 lt_prog_compiler_wl_CXX='--backend -Wl,' 10879 ;; 10880 RCC) 10881 # Rational C++ 2.4.1 10882 lt_prog_compiler_pic_CXX='-pic' 10883 ;; 10884 cxx) 10885 # Digital/Compaq C++ 10886 lt_prog_compiler_wl_CXX='-Wl,' 10887 # Make sure the PIC flag is empty. It appears that all Alpha 10888 # Linux and Compaq Tru64 Unix objects are PIC. 10889 lt_prog_compiler_pic_CXX= 10890 lt_prog_compiler_static_CXX='-non_shared' 10891 ;; 10892 *) 10893 ;; 10894 esac 10895 ;; 10896 psos*) 10897 ;; 10898 sco*) 10899 case $cc_basename in 10900 CC) 10901 lt_prog_compiler_pic_CXX='-fPIC' 10902 ;; 10903 *) 10904 ;; 10905 esac 10906 ;; 10907 solaris*) 10908 case $cc_basename in 10909 CC) 10910 # Sun C++ 4.2, 5.x and Centerline C++ 10911 lt_prog_compiler_pic_CXX='-KPIC' 10912 lt_prog_compiler_static_CXX='-Bstatic' 10913 lt_prog_compiler_wl_CXX='-Qoption ld ' 10914 ;; 10915 gcx) 10916 # Green Hills C++ Compiler 10917 lt_prog_compiler_pic_CXX='-PIC' 10918 ;; 10919 *) 10920 ;; 10921 esac 10922 ;; 10923 sunos4*) 10924 case $cc_basename in 10925 CC) 10926 # Sun C++ 4.x 10927 lt_prog_compiler_pic_CXX='-pic' 10928 lt_prog_compiler_static_CXX='-Bstatic' 10929 ;; 10930 lcc) 10931 # Lucid 10932 lt_prog_compiler_pic_CXX='-pic' 10933 ;; 10934 *) 10935 ;; 10936 esac 10937 ;; 10938 tandem*) 10939 case $cc_basename in 10940 NCC) 10941 # NonStop-UX NCC 3.20 10942 lt_prog_compiler_pic_CXX='-KPIC' 10943 ;; 10944 *) 10945 ;; 10946 esac 10947 ;; 10948 unixware*) 10949 ;; 10950 vxworks*) 10951 ;; 10952 *) 10953 lt_prog_compiler_can_build_shared_CXX=no 10954 ;; 10955 esac 10956 fi 10957 10958echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10959echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10960 10961# 10962# Check to make sure the PIC flag actually works. 10963# 10964if test -n "$lt_prog_compiler_pic_CXX"; then 10965 10966echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10967echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10968if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10969 echo $ECHO_N "(cached) $ECHO_C" >&6 10970else 10971 lt_prog_compiler_pic_works_CXX=no 10972 ac_outfile=conftest.$ac_objext 10973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10974 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10975 # Insert the option either (1) after the last *FLAGS variable, or 10976 # (2) before a word containing "conftest.", or (3) at the end. 10977 # Note that $ac_compile itself does not contain backslashes and begins 10978 # with a dollar sign (not a hyphen), so the echo should work correctly. 10979 # The option is referenced via a variable to avoid confusing sed. 10980 lt_compile=`echo "$ac_compile" | $SED \ 10981 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10983 -e 's:$: $lt_compiler_flag:'` 10984 (eval echo "\"\$as_me:10984: $lt_compile\"" >&5) 10985 (eval "$lt_compile" 2>conftest.err) 10986 ac_status=$? 10987 cat conftest.err >&5 10988 echo "$as_me:10988: \$? = $ac_status" >&5 10989 if (exit $ac_status) && test -s "$ac_outfile"; then 10990 # The compiler can only warn and ignore the option if not recognized 10991 # So say no if there are warnings 10992 if test ! -s conftest.err; then 10993 lt_prog_compiler_pic_works_CXX=yes 10994 fi 10995 fi 10996 $rm conftest* 10997 10998fi 10999echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11000echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11001 11002if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11003 case $lt_prog_compiler_pic_CXX in 11004 "" | " "*) ;; 11005 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11006 esac 11007else 11008 lt_prog_compiler_pic_CXX= 11009 lt_prog_compiler_can_build_shared_CXX=no 11010fi 11011 11012fi 11013case "$host_os" in 11014 # For platforms which do not support PIC, -DPIC is meaningless: 11015 *djgpp*) 11016 lt_prog_compiler_pic_CXX= 11017 ;; 11018 *) 11019 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11020 ;; 11021esac 11022 11023echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11024echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11025if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11026 echo $ECHO_N "(cached) $ECHO_C" >&6 11027else 11028 lt_cv_prog_compiler_c_o_CXX=no 11029 $rm -r conftest 2>/dev/null 11030 mkdir conftest 11031 cd conftest 11032 mkdir out 11033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11034 11035 lt_compiler_flag="-o out/conftest2.$ac_objext" 11036 # Insert the option either (1) after the last *FLAGS variable, or 11037 # (2) before a word containing "conftest.", or (3) at the end. 11038 # Note that $ac_compile itself does not contain backslashes and begins 11039 # with a dollar sign (not a hyphen), so the echo should work correctly. 11040 lt_compile=`echo "$ac_compile" | $SED \ 11041 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11043 -e 's:$: $lt_compiler_flag:'` 11044 (eval echo "\"\$as_me:11044: $lt_compile\"" >&5) 11045 (eval "$lt_compile" 2>out/conftest.err) 11046 ac_status=$? 11047 cat out/conftest.err >&5 11048 echo "$as_me:11048: \$? = $ac_status" >&5 11049 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11050 then 11051 # The compiler can only warn and ignore the option if not recognized 11052 # So say no if there are warnings 11053 if test ! -s out/conftest.err; then 11054 lt_cv_prog_compiler_c_o_CXX=yes 11055 fi 11056 fi 11057 chmod u+w . 11058 $rm conftest* 11059 # SGI C++ compiler will create directory out/ii_files/ for 11060 # template instantiation 11061 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11062 $rm out/* && rmdir out 11063 cd .. 11064 rmdir conftest 11065 $rm conftest* 11066 11067fi 11068echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11069echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11070 11071 11072hard_links="nottested" 11073if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11074 # do not overwrite the value of need_locks provided by the user 11075 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11076echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11077 hard_links=yes 11078 $rm conftest* 11079 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11080 touch conftest.a 11081 ln conftest.a conftest.b 2>&5 || hard_links=no 11082 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11083 echo "$as_me:$LINENO: result: $hard_links" >&5 11084echo "${ECHO_T}$hard_links" >&6 11085 if test "$hard_links" = no; then 11086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11087echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11088 need_locks=warn 11089 fi 11090else 11091 need_locks=no 11092fi 11093 11094echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11095echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11096 11097 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11098 case $host_os in 11099 aix4* | aix5*) 11100 # If we're using GNU nm, then we don't want the "-C" option. 11101 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11102 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11103 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' 11104 else 11105 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' 11106 fi 11107 ;; 11108 pw32*) 11109 export_symbols_cmds_CXX="$ltdll_cmds" 11110 ;; 11111 cygwin* | mingw*) 11112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11113 ;; 11114 linux*) 11115 link_all_deplibs_CXX=no 11116 ;; 11117 *) 11118 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11119 ;; 11120 esac 11121 11122echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11123echo "${ECHO_T}$ld_shlibs_CXX" >&6 11124test "$ld_shlibs_CXX" = no && can_build_shared=no 11125 11126variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11127if test "$GCC" = yes; then 11128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11129fi 11130 11131# 11132# Do we need to explicitly link libc? 11133# 11134case "x$archive_cmds_need_lc_CXX" in 11135x|xyes) 11136 # Assume -lc should be added 11137 archive_cmds_need_lc_CXX=yes 11138 11139 if test "$enable_shared" = yes && test "$GCC" = yes; then 11140 case $archive_cmds_CXX in 11141 *'~'*) 11142 # FIXME: we may have to deal with multi-command sequences. 11143 ;; 11144 '$CC '*) 11145 # Test whether the compiler implicitly links with -lc since on some 11146 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11147 # to ld, don't add -lc before -lgcc. 11148 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11149echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11150 $rm conftest* 11151 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11152 11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11154 (eval $ac_compile) 2>&5 11155 ac_status=$? 11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11157 (exit $ac_status); } 2>conftest.err; then 11158 soname=conftest 11159 lib=conftest 11160 libobjs=conftest.$ac_objext 11161 deplibs= 11162 wl=$lt_prog_compiler_wl_CXX 11163 compiler_flags=-v 11164 linker_flags=-v 11165 verstring= 11166 output_objdir=. 11167 libname=conftest 11168 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11169 allow_undefined_flag_CXX= 11170 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11171 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11172 ac_status=$? 11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11174 (exit $ac_status); } 11175 then 11176 archive_cmds_need_lc_CXX=no 11177 else 11178 archive_cmds_need_lc_CXX=yes 11179 fi 11180 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11181 else 11182 cat conftest.err 1>&5 11183 fi 11184 $rm conftest* 11185 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11186echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11187 ;; 11188 esac 11189 fi 11190 ;; 11191esac 11192 11193echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11194echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11195library_names_spec= 11196libname_spec='lib$name' 11197soname_spec= 11198shrext_cmds=".so" 11199postinstall_cmds= 11200postuninstall_cmds= 11201finish_cmds= 11202finish_eval= 11203shlibpath_var= 11204shlibpath_overrides_runpath=unknown 11205version_type=none 11206dynamic_linker="$host_os ld.so" 11207sys_lib_dlsearch_path_spec="/lib /usr/lib" 11208if test "$GCC" = yes; then 11209 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11210 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11211 # if the path contains ";" then we assume it to be the separator 11212 # otherwise default to the standard path separator (i.e. ":") - it is 11213 # assumed that no part of a normal pathname contains ";" but that should 11214 # okay in the real world where ";" in dirpaths is itself problematic. 11215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11216 else 11217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11218 fi 11219else 11220 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11221fi 11222need_lib_prefix=unknown 11223hardcode_into_libs=no 11224 11225# when you set need_version to no, make sure it does not cause -set_version 11226# flags to be left without arguments 11227need_version=unknown 11228 11229case $host_os in 11230aix3*) 11231 version_type=linux 11232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11233 shlibpath_var=LIBPATH 11234 11235 # AIX 3 has no versioning support, so we append a major version to the name. 11236 soname_spec='${libname}${release}${shared_ext}$major' 11237 ;; 11238 11239aix4* | aix5*) 11240 version_type=linux 11241 need_lib_prefix=no 11242 need_version=no 11243 hardcode_into_libs=yes 11244 if test "$host_cpu" = ia64; then 11245 # AIX 5 supports IA64 11246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11247 shlibpath_var=LD_LIBRARY_PATH 11248 else 11249 # With GCC up to 2.95.x, collect2 would create an import file 11250 # for dependence libraries. The import file would start with 11251 # the line `#! .'. This would cause the generated library to 11252 # depend on `.', always an invalid library. This was fixed in 11253 # development snapshots of GCC prior to 3.0. 11254 case $host_os in 11255 aix4 | aix4.[01] | aix4.[01].*) 11256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11257 echo ' yes ' 11258 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11259 : 11260 else 11261 can_build_shared=no 11262 fi 11263 ;; 11264 esac 11265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11266 # soname into executable. Probably we can add versioning support to 11267 # collect2, so additional links can be useful in future. 11268 if test "$aix_use_runtimelinking" = yes; then 11269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11270 # instead of lib<name>.a to let people know that these are not 11271 # typical AIX shared libraries. 11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11273 else 11274 # We preserve .a as extension for shared libraries through AIX4.2 11275 # and later when we are not doing run time linking. 11276 library_names_spec='${libname}${release}.a $libname.a' 11277 soname_spec='${libname}${release}${shared_ext}$major' 11278 fi 11279 shlibpath_var=LIBPATH 11280 fi 11281 ;; 11282 11283amigaos*) 11284 library_names_spec='$libname.ixlibrary $libname.a' 11285 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11286 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' 11287 ;; 11288 11289beos*) 11290 library_names_spec='${libname}${shared_ext}' 11291 dynamic_linker="$host_os ld.so" 11292 shlibpath_var=LIBRARY_PATH 11293 ;; 11294 11295bsdi4*) 11296 version_type=linux 11297 need_version=no 11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11299 soname_spec='${libname}${release}${shared_ext}$major' 11300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11301 shlibpath_var=LD_LIBRARY_PATH 11302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11304 # the default ld.so.conf also contains /usr/contrib/lib and 11305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11306 # libtool to hard-code these into programs 11307 ;; 11308 11309cygwin* | mingw* | pw32*) 11310 version_type=windows 11311 shrext_cmds=".dll" 11312 need_version=no 11313 need_lib_prefix=no 11314 11315 case $GCC,$host_os in 11316 yes,cygwin* | yes,mingw* | yes,pw32*) 11317 library_names_spec='$libname.dll.a' 11318 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11319 postinstall_cmds='base_file=`basename \${file}`~ 11320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11321 dldir=$destdir/`dirname \$dlpath`~ 11322 test -d \$dldir || mkdir -p \$dldir~ 11323 $install_prog $dir/$dlname \$dldir/$dlname' 11324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11325 dlpath=$dir/\$dldll~ 11326 $rm \$dlpath' 11327 shlibpath_overrides_runpath=yes 11328 11329 case $host_os in 11330 cygwin*) 11331 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11334 ;; 11335 mingw*) 11336 # MinGW DLLs use traditional 'lib' prefix 11337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11340 # It is most probably a Windows format PATH printed by 11341 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11342 # path with ; separators, and with drive letters. We can handle the 11343 # drive letters (cygwin fileutils understands them), so leave them, 11344 # especially as we might pass files found there to a mingw objdump, 11345 # which wouldn't understand a cygwinified path. Ahh. 11346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11347 else 11348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11349 fi 11350 ;; 11351 pw32*) 11352 # pw32 DLLs use 'pw' prefix rather than 'lib' 11353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11354 ;; 11355 esac 11356 ;; 11357 11358 *) 11359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11360 ;; 11361 esac 11362 dynamic_linker='Win32 ld.exe' 11363 # FIXME: first we should search . and the directory the executable is in 11364 shlibpath_var=PATH 11365 ;; 11366 11367darwin* | rhapsody*) 11368 dynamic_linker="$host_os dyld" 11369 version_type=darwin 11370 need_lib_prefix=no 11371 need_version=no 11372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11373 soname_spec='${libname}${release}${major}$shared_ext' 11374 shlibpath_overrides_runpath=yes 11375 shlibpath_var=DYLD_LIBRARY_PATH 11376 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11377 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11378 if test "$GCC" = yes; then 11379 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"` 11380 else 11381 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11382 fi 11383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11384 ;; 11385 11386dgux*) 11387 version_type=linux 11388 need_lib_prefix=no 11389 need_version=no 11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11391 soname_spec='${libname}${release}${shared_ext}$major' 11392 shlibpath_var=LD_LIBRARY_PATH 11393 ;; 11394 11395freebsd1*) 11396 dynamic_linker=no 11397 ;; 11398 11399kfreebsd*-gnu) 11400 version_type=linux 11401 need_lib_prefix=no 11402 need_version=no 11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11404 soname_spec='${libname}${release}${shared_ext}$major' 11405 shlibpath_var=LD_LIBRARY_PATH 11406 shlibpath_overrides_runpath=no 11407 hardcode_into_libs=yes 11408 dynamic_linker='GNU ld.so' 11409 ;; 11410 11411freebsd*) 11412 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11413 version_type=freebsd-$objformat 11414 case $version_type in 11415 freebsd-elf*) 11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11417 need_version=no 11418 need_lib_prefix=no 11419 ;; 11420 freebsd-*) 11421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11422 need_version=yes 11423 ;; 11424 esac 11425 shlibpath_var=LD_LIBRARY_PATH 11426 case $host_os in 11427 freebsd2*) 11428 shlibpath_overrides_runpath=yes 11429 ;; 11430 freebsd3.01* | freebsdelf3.01*) 11431 shlibpath_overrides_runpath=yes 11432 hardcode_into_libs=yes 11433 ;; 11434 *) # from 3.2 on 11435 shlibpath_overrides_runpath=no 11436 hardcode_into_libs=yes 11437 ;; 11438 esac 11439 ;; 11440 11441gnu*) 11442 version_type=linux 11443 need_lib_prefix=no 11444 need_version=no 11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11446 soname_spec='${libname}${release}${shared_ext}$major' 11447 shlibpath_var=LD_LIBRARY_PATH 11448 hardcode_into_libs=yes 11449 ;; 11450 11451hpux9* | hpux10* | hpux11*) 11452 # Give a soname corresponding to the major version so that dld.sl refuses to 11453 # link against other versions. 11454 version_type=sunos 11455 need_lib_prefix=no 11456 need_version=no 11457 case "$host_cpu" in 11458 ia64*) 11459 shrext_cmds='.so' 11460 hardcode_into_libs=yes 11461 dynamic_linker="$host_os dld.so" 11462 shlibpath_var=LD_LIBRARY_PATH 11463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11465 soname_spec='${libname}${release}${shared_ext}$major' 11466 if test "X$HPUX_IA64_MODE" = X32; then 11467 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11468 else 11469 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11470 fi 11471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11472 ;; 11473 hppa*64*) 11474 shrext_cmds='.sl' 11475 hardcode_into_libs=yes 11476 dynamic_linker="$host_os dld.sl" 11477 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11478 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11480 soname_spec='${libname}${release}${shared_ext}$major' 11481 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11483 ;; 11484 *) 11485 shrext_cmds='.sl' 11486 dynamic_linker="$host_os dld.sl" 11487 shlibpath_var=SHLIB_PATH 11488 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11490 soname_spec='${libname}${release}${shared_ext}$major' 11491 ;; 11492 esac 11493 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11494 postinstall_cmds='chmod 555 $lib' 11495 ;; 11496 11497irix5* | irix6* | nonstopux*) 11498 case $host_os in 11499 nonstopux*) version_type=nonstopux ;; 11500 *) 11501 if test "$lt_cv_prog_gnu_ld" = yes; then 11502 version_type=linux 11503 else 11504 version_type=irix 11505 fi ;; 11506 esac 11507 need_lib_prefix=no 11508 need_version=no 11509 soname_spec='${libname}${release}${shared_ext}$major' 11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11511 case $host_os in 11512 irix5* | nonstopux*) 11513 libsuff= shlibsuff= 11514 ;; 11515 *) 11516 case $LD in # libtool.m4 will add one of these switches to LD 11517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11518 libsuff= shlibsuff= libmagic=32-bit;; 11519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11520 libsuff=32 shlibsuff=N32 libmagic=N32;; 11521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11522 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11523 *) libsuff= shlibsuff= libmagic=never-match;; 11524 esac 11525 ;; 11526 esac 11527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11528 shlibpath_overrides_runpath=no 11529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11531 hardcode_into_libs=yes 11532 ;; 11533 11534# No shared lib support for Linux oldld, aout, or coff. 11535linux*oldld* | linux*aout* | linux*coff*) 11536 dynamic_linker=no 11537 ;; 11538 11539# This must be Linux ELF. 11540linux*) 11541 version_type=linux 11542 need_lib_prefix=no 11543 need_version=no 11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11545 soname_spec='${libname}${release}${shared_ext}$major' 11546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11547 shlibpath_var=LD_LIBRARY_PATH 11548 shlibpath_overrides_runpath=no 11549 # This implies no fast_install, which is unacceptable. 11550 # Some rework will be needed to allow for fast_install 11551 # before this can be enabled. 11552 hardcode_into_libs=yes 11553 11554 # Append ld.so.conf contents to the search path 11555 if test -f /etc/ld.so.conf; then 11556 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11557 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11558 fi 11559 11560 # We used to test for /lib/ld.so.1 and disable shared libraries on 11561 # powerpc, because MkLinux only supported shared libraries with the 11562 # GNU dynamic linker. Since this was broken with cross compilers, 11563 # most powerpc-linux boxes support dynamic linking these days and 11564 # people can always --disable-shared, the test was removed, and we 11565 # assume the GNU/Linux dynamic linker is in use. 11566 dynamic_linker='GNU/Linux ld.so' 11567 ;; 11568 11569knetbsd*-gnu) 11570 version_type=linux 11571 need_lib_prefix=no 11572 need_version=no 11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11574 soname_spec='${libname}${release}${shared_ext}$major' 11575 shlibpath_var=LD_LIBRARY_PATH 11576 shlibpath_overrides_runpath=no 11577 hardcode_into_libs=yes 11578 dynamic_linker='GNU ld.so' 11579 ;; 11580 11581netbsd*) 11582 version_type=sunos 11583 need_lib_prefix=no 11584 need_version=no 11585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11588 dynamic_linker='NetBSD (a.out) ld.so' 11589 else 11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11591 soname_spec='${libname}${release}${shared_ext}$major' 11592 dynamic_linker='NetBSD ld.elf_so' 11593 fi 11594 shlibpath_var=LD_LIBRARY_PATH 11595 shlibpath_overrides_runpath=yes 11596 hardcode_into_libs=yes 11597 ;; 11598 11599newsos6) 11600 version_type=linux 11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11602 shlibpath_var=LD_LIBRARY_PATH 11603 shlibpath_overrides_runpath=yes 11604 ;; 11605 11606nto-qnx*) 11607 version_type=linux 11608 need_lib_prefix=no 11609 need_version=no 11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11611 soname_spec='${libname}${release}${shared_ext}$major' 11612 shlibpath_var=LD_LIBRARY_PATH 11613 shlibpath_overrides_runpath=yes 11614 ;; 11615 11616openbsd*) 11617 version_type=sunos 11618 need_lib_prefix=no 11619 need_version=yes 11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11622 shlibpath_var=LD_LIBRARY_PATH 11623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11624 case $host_os in 11625 openbsd2.[89] | openbsd2.[89].*) 11626 shlibpath_overrides_runpath=no 11627 ;; 11628 *) 11629 shlibpath_overrides_runpath=yes 11630 ;; 11631 esac 11632 else 11633 shlibpath_overrides_runpath=yes 11634 fi 11635 ;; 11636 11637os2*) 11638 libname_spec='$name' 11639 shrext_cmds=".dll" 11640 need_lib_prefix=no 11641 library_names_spec='$libname${shared_ext} $libname.a' 11642 dynamic_linker='OS/2 ld.exe' 11643 shlibpath_var=LIBPATH 11644 ;; 11645 11646osf3* | osf4* | osf5*) 11647 version_type=osf 11648 need_lib_prefix=no 11649 need_version=no 11650 soname_spec='${libname}${release}${shared_ext}$major' 11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11652 shlibpath_var=LD_LIBRARY_PATH 11653 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11654 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11655 ;; 11656 11657sco3.2v5*) 11658 version_type=osf 11659 soname_spec='${libname}${release}${shared_ext}$major' 11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11661 shlibpath_var=LD_LIBRARY_PATH 11662 ;; 11663 11664solaris*) 11665 version_type=linux 11666 need_lib_prefix=no 11667 need_version=no 11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11669 soname_spec='${libname}${release}${shared_ext}$major' 11670 shlibpath_var=LD_LIBRARY_PATH 11671 shlibpath_overrides_runpath=yes 11672 hardcode_into_libs=yes 11673 # ldd complains unless libraries are executable 11674 postinstall_cmds='chmod +x $lib' 11675 ;; 11676 11677sunos4*) 11678 version_type=sunos 11679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11681 shlibpath_var=LD_LIBRARY_PATH 11682 shlibpath_overrides_runpath=yes 11683 if test "$with_gnu_ld" = yes; then 11684 need_lib_prefix=no 11685 fi 11686 need_version=yes 11687 ;; 11688 11689sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11690 version_type=linux 11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11692 soname_spec='${libname}${release}${shared_ext}$major' 11693 shlibpath_var=LD_LIBRARY_PATH 11694 case $host_vendor in 11695 sni) 11696 shlibpath_overrides_runpath=no 11697 need_lib_prefix=no 11698 export_dynamic_flag_spec='${wl}-Blargedynsym' 11699 runpath_var=LD_RUN_PATH 11700 ;; 11701 siemens) 11702 need_lib_prefix=no 11703 ;; 11704 motorola) 11705 need_lib_prefix=no 11706 need_version=no 11707 shlibpath_overrides_runpath=no 11708 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11709 ;; 11710 esac 11711 ;; 11712 11713sysv4*MP*) 11714 if test -d /usr/nec ;then 11715 version_type=linux 11716 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11717 soname_spec='$libname${shared_ext}.$major' 11718 shlibpath_var=LD_LIBRARY_PATH 11719 fi 11720 ;; 11721 11722uts4*) 11723 version_type=linux 11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11725 soname_spec='${libname}${release}${shared_ext}$major' 11726 shlibpath_var=LD_LIBRARY_PATH 11727 ;; 11728 11729*) 11730 dynamic_linker=no 11731 ;; 11732esac 11733echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11734echo "${ECHO_T}$dynamic_linker" >&6 11735test "$dynamic_linker" = no && can_build_shared=no 11736 11737echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11738echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11739hardcode_action_CXX= 11740if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11741 test -n "$runpath_var CXX" || \ 11742 test "X$hardcode_automatic_CXX"="Xyes" ; then 11743 11744 # We can hardcode non-existant directories. 11745 if test "$hardcode_direct_CXX" != no && 11746 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11747 # have to relink, otherwise we might link with an installed library 11748 # when we should be linking with a yet-to-be-installed one 11749 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11750 test "$hardcode_minus_L_CXX" != no; then 11751 # Linking always hardcodes the temporary library directory. 11752 hardcode_action_CXX=relink 11753 else 11754 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11755 hardcode_action_CXX=immediate 11756 fi 11757else 11758 # We cannot hardcode anything, or else we can only hardcode existing 11759 # directories. 11760 hardcode_action_CXX=unsupported 11761fi 11762echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11763echo "${ECHO_T}$hardcode_action_CXX" >&6 11764 11765if test "$hardcode_action_CXX" = relink; then 11766 # Fast installation is not supported 11767 enable_fast_install=no 11768elif test "$shlibpath_overrides_runpath" = yes || 11769 test "$enable_shared" = no; then 11770 # Fast installation is not necessary 11771 enable_fast_install=needless 11772fi 11773 11774striplib= 11775old_striplib= 11776echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11777echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11778if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11779 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11780 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11781 echo "$as_me:$LINENO: result: yes" >&5 11782echo "${ECHO_T}yes" >&6 11783else 11784# FIXME - insert some real tests, host_os isn't really good enough 11785 case $host_os in 11786 darwin*) 11787 if test -n "$STRIP" ; then 11788 striplib="$STRIP -x" 11789 echo "$as_me:$LINENO: result: yes" >&5 11790echo "${ECHO_T}yes" >&6 11791 else 11792 echo "$as_me:$LINENO: result: no" >&5 11793echo "${ECHO_T}no" >&6 11794fi 11795 ;; 11796 *) 11797 echo "$as_me:$LINENO: result: no" >&5 11798echo "${ECHO_T}no" >&6 11799 ;; 11800 esac 11801fi 11802 11803if test "x$enable_dlopen" != xyes; then 11804 enable_dlopen=unknown 11805 enable_dlopen_self=unknown 11806 enable_dlopen_self_static=unknown 11807else 11808 lt_cv_dlopen=no 11809 lt_cv_dlopen_libs= 11810 11811 case $host_os in 11812 beos*) 11813 lt_cv_dlopen="load_add_on" 11814 lt_cv_dlopen_libs= 11815 lt_cv_dlopen_self=yes 11816 ;; 11817 11818 mingw* | pw32*) 11819 lt_cv_dlopen="LoadLibrary" 11820 lt_cv_dlopen_libs= 11821 ;; 11822 11823 cygwin*) 11824 lt_cv_dlopen="dlopen" 11825 lt_cv_dlopen_libs= 11826 ;; 11827 11828 darwin*) 11829 # if libdl is installed we need to link against it 11830 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11831echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11832if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11833 echo $ECHO_N "(cached) $ECHO_C" >&6 11834else 11835 ac_check_lib_save_LIBS=$LIBS 11836LIBS="-ldl $LIBS" 11837cat >conftest.$ac_ext <<_ACEOF 11838/* confdefs.h. */ 11839_ACEOF 11840cat confdefs.h >>conftest.$ac_ext 11841cat >>conftest.$ac_ext <<_ACEOF 11842/* end confdefs.h. */ 11843 11844/* Override any gcc2 internal prototype to avoid an error. */ 11845#ifdef __cplusplus 11846extern "C" 11847#endif 11848/* We use char because int might match the return type of a gcc2 11849 builtin and then its argument prototype would still apply. */ 11850char dlopen (); 11851int 11852main () 11853{ 11854dlopen (); 11855 ; 11856 return 0; 11857} 11858_ACEOF 11859rm -f conftest.$ac_objext conftest$ac_exeext 11860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11861 (eval $ac_link) 2>conftest.er1 11862 ac_status=$? 11863 grep -v '^ *+' conftest.er1 >conftest.err 11864 rm -f conftest.er1 11865 cat conftest.err >&5 11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11867 (exit $ac_status); } && 11868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11870 (eval $ac_try) 2>&5 11871 ac_status=$? 11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11873 (exit $ac_status); }; } && 11874 { ac_try='test -s conftest$ac_exeext' 11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11876 (eval $ac_try) 2>&5 11877 ac_status=$? 11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11879 (exit $ac_status); }; }; then 11880 ac_cv_lib_dl_dlopen=yes 11881else 11882 echo "$as_me: failed program was:" >&5 11883sed 's/^/| /' conftest.$ac_ext >&5 11884 11885ac_cv_lib_dl_dlopen=no 11886fi 11887rm -f conftest.err conftest.$ac_objext \ 11888 conftest$ac_exeext conftest.$ac_ext 11889LIBS=$ac_check_lib_save_LIBS 11890fi 11891echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11892echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11893if test $ac_cv_lib_dl_dlopen = yes; then 11894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11895else 11896 11897 lt_cv_dlopen="dyld" 11898 lt_cv_dlopen_libs= 11899 lt_cv_dlopen_self=yes 11900 11901fi 11902 11903 ;; 11904 11905 *) 11906 echo "$as_me:$LINENO: checking for shl_load" >&5 11907echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11908if test "${ac_cv_func_shl_load+set}" = set; then 11909 echo $ECHO_N "(cached) $ECHO_C" >&6 11910else 11911 cat >conftest.$ac_ext <<_ACEOF 11912/* confdefs.h. */ 11913_ACEOF 11914cat confdefs.h >>conftest.$ac_ext 11915cat >>conftest.$ac_ext <<_ACEOF 11916/* end confdefs.h. */ 11917/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11918 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11919#define shl_load innocuous_shl_load 11920 11921/* System header to define __stub macros and hopefully few prototypes, 11922 which can conflict with char shl_load (); below. 11923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11924 <limits.h> exists even on freestanding compilers. */ 11925 11926#ifdef __STDC__ 11927# include <limits.h> 11928#else 11929# include <assert.h> 11930#endif 11931 11932#undef shl_load 11933 11934/* Override any gcc2 internal prototype to avoid an error. */ 11935#ifdef __cplusplus 11936extern "C" 11937{ 11938#endif 11939/* We use char because int might match the return type of a gcc2 11940 builtin and then its argument prototype would still apply. */ 11941char shl_load (); 11942/* The GNU C library defines this for functions which it implements 11943 to always fail with ENOSYS. Some functions are actually named 11944 something starting with __ and the normal name is an alias. */ 11945#if defined (__stub_shl_load) || defined (__stub___shl_load) 11946choke me 11947#else 11948char (*f) () = shl_load; 11949#endif 11950#ifdef __cplusplus 11951} 11952#endif 11953 11954int 11955main () 11956{ 11957return f != shl_load; 11958 ; 11959 return 0; 11960} 11961_ACEOF 11962rm -f conftest.$ac_objext conftest$ac_exeext 11963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11964 (eval $ac_link) 2>conftest.er1 11965 ac_status=$? 11966 grep -v '^ *+' conftest.er1 >conftest.err 11967 rm -f conftest.er1 11968 cat conftest.err >&5 11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11970 (exit $ac_status); } && 11971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11973 (eval $ac_try) 2>&5 11974 ac_status=$? 11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11976 (exit $ac_status); }; } && 11977 { ac_try='test -s conftest$ac_exeext' 11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11979 (eval $ac_try) 2>&5 11980 ac_status=$? 11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11982 (exit $ac_status); }; }; then 11983 ac_cv_func_shl_load=yes 11984else 11985 echo "$as_me: failed program was:" >&5 11986sed 's/^/| /' conftest.$ac_ext >&5 11987 11988ac_cv_func_shl_load=no 11989fi 11990rm -f conftest.err conftest.$ac_objext \ 11991 conftest$ac_exeext conftest.$ac_ext 11992fi 11993echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11994echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11995if test $ac_cv_func_shl_load = yes; then 11996 lt_cv_dlopen="shl_load" 11997else 11998 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11999echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12000if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12001 echo $ECHO_N "(cached) $ECHO_C" >&6 12002else 12003 ac_check_lib_save_LIBS=$LIBS 12004LIBS="-ldld $LIBS" 12005cat >conftest.$ac_ext <<_ACEOF 12006/* confdefs.h. */ 12007_ACEOF 12008cat confdefs.h >>conftest.$ac_ext 12009cat >>conftest.$ac_ext <<_ACEOF 12010/* end confdefs.h. */ 12011 12012/* Override any gcc2 internal prototype to avoid an error. */ 12013#ifdef __cplusplus 12014extern "C" 12015#endif 12016/* We use char because int might match the return type of a gcc2 12017 builtin and then its argument prototype would still apply. */ 12018char shl_load (); 12019int 12020main () 12021{ 12022shl_load (); 12023 ; 12024 return 0; 12025} 12026_ACEOF 12027rm -f conftest.$ac_objext conftest$ac_exeext 12028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12029 (eval $ac_link) 2>conftest.er1 12030 ac_status=$? 12031 grep -v '^ *+' conftest.er1 >conftest.err 12032 rm -f conftest.er1 12033 cat conftest.err >&5 12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12035 (exit $ac_status); } && 12036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12038 (eval $ac_try) 2>&5 12039 ac_status=$? 12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12041 (exit $ac_status); }; } && 12042 { ac_try='test -s conftest$ac_exeext' 12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12044 (eval $ac_try) 2>&5 12045 ac_status=$? 12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12047 (exit $ac_status); }; }; then 12048 ac_cv_lib_dld_shl_load=yes 12049else 12050 echo "$as_me: failed program was:" >&5 12051sed 's/^/| /' conftest.$ac_ext >&5 12052 12053ac_cv_lib_dld_shl_load=no 12054fi 12055rm -f conftest.err conftest.$ac_objext \ 12056 conftest$ac_exeext conftest.$ac_ext 12057LIBS=$ac_check_lib_save_LIBS 12058fi 12059echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12060echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12061if test $ac_cv_lib_dld_shl_load = yes; then 12062 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12063else 12064 echo "$as_me:$LINENO: checking for dlopen" >&5 12065echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12066if test "${ac_cv_func_dlopen+set}" = set; then 12067 echo $ECHO_N "(cached) $ECHO_C" >&6 12068else 12069 cat >conftest.$ac_ext <<_ACEOF 12070/* confdefs.h. */ 12071_ACEOF 12072cat confdefs.h >>conftest.$ac_ext 12073cat >>conftest.$ac_ext <<_ACEOF 12074/* end confdefs.h. */ 12075/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12076 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12077#define dlopen innocuous_dlopen 12078 12079/* System header to define __stub macros and hopefully few prototypes, 12080 which can conflict with char dlopen (); below. 12081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12082 <limits.h> exists even on freestanding compilers. */ 12083 12084#ifdef __STDC__ 12085# include <limits.h> 12086#else 12087# include <assert.h> 12088#endif 12089 12090#undef dlopen 12091 12092/* Override any gcc2 internal prototype to avoid an error. */ 12093#ifdef __cplusplus 12094extern "C" 12095{ 12096#endif 12097/* We use char because int might match the return type of a gcc2 12098 builtin and then its argument prototype would still apply. */ 12099char dlopen (); 12100/* The GNU C library defines this for functions which it implements 12101 to always fail with ENOSYS. Some functions are actually named 12102 something starting with __ and the normal name is an alias. */ 12103#if defined (__stub_dlopen) || defined (__stub___dlopen) 12104choke me 12105#else 12106char (*f) () = dlopen; 12107#endif 12108#ifdef __cplusplus 12109} 12110#endif 12111 12112int 12113main () 12114{ 12115return f != dlopen; 12116 ; 12117 return 0; 12118} 12119_ACEOF 12120rm -f conftest.$ac_objext conftest$ac_exeext 12121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12122 (eval $ac_link) 2>conftest.er1 12123 ac_status=$? 12124 grep -v '^ *+' conftest.er1 >conftest.err 12125 rm -f conftest.er1 12126 cat conftest.err >&5 12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12128 (exit $ac_status); } && 12129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12131 (eval $ac_try) 2>&5 12132 ac_status=$? 12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12134 (exit $ac_status); }; } && 12135 { ac_try='test -s conftest$ac_exeext' 12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12137 (eval $ac_try) 2>&5 12138 ac_status=$? 12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12140 (exit $ac_status); }; }; then 12141 ac_cv_func_dlopen=yes 12142else 12143 echo "$as_me: failed program was:" >&5 12144sed 's/^/| /' conftest.$ac_ext >&5 12145 12146ac_cv_func_dlopen=no 12147fi 12148rm -f conftest.err conftest.$ac_objext \ 12149 conftest$ac_exeext conftest.$ac_ext 12150fi 12151echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12152echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12153if test $ac_cv_func_dlopen = yes; then 12154 lt_cv_dlopen="dlopen" 12155else 12156 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12157echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12158if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12159 echo $ECHO_N "(cached) $ECHO_C" >&6 12160else 12161 ac_check_lib_save_LIBS=$LIBS 12162LIBS="-ldl $LIBS" 12163cat >conftest.$ac_ext <<_ACEOF 12164/* confdefs.h. */ 12165_ACEOF 12166cat confdefs.h >>conftest.$ac_ext 12167cat >>conftest.$ac_ext <<_ACEOF 12168/* end confdefs.h. */ 12169 12170/* Override any gcc2 internal prototype to avoid an error. */ 12171#ifdef __cplusplus 12172extern "C" 12173#endif 12174/* We use char because int might match the return type of a gcc2 12175 builtin and then its argument prototype would still apply. */ 12176char dlopen (); 12177int 12178main () 12179{ 12180dlopen (); 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" || test ! -s conftest.err' 12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12196 (eval $ac_try) 2>&5 12197 ac_status=$? 12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12199 (exit $ac_status); }; } && 12200 { ac_try='test -s conftest$ac_exeext' 12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12202 (eval $ac_try) 2>&5 12203 ac_status=$? 12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12205 (exit $ac_status); }; }; then 12206 ac_cv_lib_dl_dlopen=yes 12207else 12208 echo "$as_me: failed program was:" >&5 12209sed 's/^/| /' conftest.$ac_ext >&5 12210 12211ac_cv_lib_dl_dlopen=no 12212fi 12213rm -f conftest.err conftest.$ac_objext \ 12214 conftest$ac_exeext conftest.$ac_ext 12215LIBS=$ac_check_lib_save_LIBS 12216fi 12217echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12218echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12219if test $ac_cv_lib_dl_dlopen = yes; then 12220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12221else 12222 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12223echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12224if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12225 echo $ECHO_N "(cached) $ECHO_C" >&6 12226else 12227 ac_check_lib_save_LIBS=$LIBS 12228LIBS="-lsvld $LIBS" 12229cat >conftest.$ac_ext <<_ACEOF 12230/* confdefs.h. */ 12231_ACEOF 12232cat confdefs.h >>conftest.$ac_ext 12233cat >>conftest.$ac_ext <<_ACEOF 12234/* end confdefs.h. */ 12235 12236/* Override any gcc2 internal prototype to avoid an error. */ 12237#ifdef __cplusplus 12238extern "C" 12239#endif 12240/* We use char because int might match the return type of a gcc2 12241 builtin and then its argument prototype would still apply. */ 12242char dlopen (); 12243int 12244main () 12245{ 12246dlopen (); 12247 ; 12248 return 0; 12249} 12250_ACEOF 12251rm -f conftest.$ac_objext conftest$ac_exeext 12252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12253 (eval $ac_link) 2>conftest.er1 12254 ac_status=$? 12255 grep -v '^ *+' conftest.er1 >conftest.err 12256 rm -f conftest.er1 12257 cat conftest.err >&5 12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12259 (exit $ac_status); } && 12260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12262 (eval $ac_try) 2>&5 12263 ac_status=$? 12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12265 (exit $ac_status); }; } && 12266 { ac_try='test -s conftest$ac_exeext' 12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12268 (eval $ac_try) 2>&5 12269 ac_status=$? 12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12271 (exit $ac_status); }; }; then 12272 ac_cv_lib_svld_dlopen=yes 12273else 12274 echo "$as_me: failed program was:" >&5 12275sed 's/^/| /' conftest.$ac_ext >&5 12276 12277ac_cv_lib_svld_dlopen=no 12278fi 12279rm -f conftest.err conftest.$ac_objext \ 12280 conftest$ac_exeext conftest.$ac_ext 12281LIBS=$ac_check_lib_save_LIBS 12282fi 12283echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12284echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12285if test $ac_cv_lib_svld_dlopen = yes; then 12286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12287else 12288 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12289echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12290if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12291 echo $ECHO_N "(cached) $ECHO_C" >&6 12292else 12293 ac_check_lib_save_LIBS=$LIBS 12294LIBS="-ldld $LIBS" 12295cat >conftest.$ac_ext <<_ACEOF 12296/* confdefs.h. */ 12297_ACEOF 12298cat confdefs.h >>conftest.$ac_ext 12299cat >>conftest.$ac_ext <<_ACEOF 12300/* end confdefs.h. */ 12301 12302/* Override any gcc2 internal prototype to avoid an error. */ 12303#ifdef __cplusplus 12304extern "C" 12305#endif 12306/* We use char because int might match the return type of a gcc2 12307 builtin and then its argument prototype would still apply. */ 12308char dld_link (); 12309int 12310main () 12311{ 12312dld_link (); 12313 ; 12314 return 0; 12315} 12316_ACEOF 12317rm -f conftest.$ac_objext conftest$ac_exeext 12318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12319 (eval $ac_link) 2>conftest.er1 12320 ac_status=$? 12321 grep -v '^ *+' conftest.er1 >conftest.err 12322 rm -f conftest.er1 12323 cat conftest.err >&5 12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12325 (exit $ac_status); } && 12326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12328 (eval $ac_try) 2>&5 12329 ac_status=$? 12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12331 (exit $ac_status); }; } && 12332 { ac_try='test -s conftest$ac_exeext' 12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12334 (eval $ac_try) 2>&5 12335 ac_status=$? 12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12337 (exit $ac_status); }; }; then 12338 ac_cv_lib_dld_dld_link=yes 12339else 12340 echo "$as_me: failed program was:" >&5 12341sed 's/^/| /' conftest.$ac_ext >&5 12342 12343ac_cv_lib_dld_dld_link=no 12344fi 12345rm -f conftest.err conftest.$ac_objext \ 12346 conftest$ac_exeext conftest.$ac_ext 12347LIBS=$ac_check_lib_save_LIBS 12348fi 12349echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12350echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12351if test $ac_cv_lib_dld_dld_link = yes; then 12352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12353fi 12354 12355 12356fi 12357 12358 12359fi 12360 12361 12362fi 12363 12364 12365fi 12366 12367 12368fi 12369 12370 ;; 12371 esac 12372 12373 if test "x$lt_cv_dlopen" != xno; then 12374 enable_dlopen=yes 12375 else 12376 enable_dlopen=no 12377 fi 12378 12379 case $lt_cv_dlopen in 12380 dlopen) 12381 save_CPPFLAGS="$CPPFLAGS" 12382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12383 12384 save_LDFLAGS="$LDFLAGS" 12385 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12386 12387 save_LIBS="$LIBS" 12388 LIBS="$lt_cv_dlopen_libs $LIBS" 12389 12390 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12391echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12392if test "${lt_cv_dlopen_self+set}" = set; then 12393 echo $ECHO_N "(cached) $ECHO_C" >&6 12394else 12395 if test "$cross_compiling" = yes; then : 12396 lt_cv_dlopen_self=cross 12397else 12398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12399 lt_status=$lt_dlunknown 12400 cat > conftest.$ac_ext <<EOF 12401#line 12401 "configure" 12402#include "confdefs.h" 12403 12404#if HAVE_DLFCN_H 12405#include <dlfcn.h> 12406#endif 12407 12408#include <stdio.h> 12409 12410#ifdef RTLD_GLOBAL 12411# define LT_DLGLOBAL RTLD_GLOBAL 12412#else 12413# ifdef DL_GLOBAL 12414# define LT_DLGLOBAL DL_GLOBAL 12415# else 12416# define LT_DLGLOBAL 0 12417# endif 12418#endif 12419 12420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12421 find out it does not work in some platform. */ 12422#ifndef LT_DLLAZY_OR_NOW 12423# ifdef RTLD_LAZY 12424# define LT_DLLAZY_OR_NOW RTLD_LAZY 12425# else 12426# ifdef DL_LAZY 12427# define LT_DLLAZY_OR_NOW DL_LAZY 12428# else 12429# ifdef RTLD_NOW 12430# define LT_DLLAZY_OR_NOW RTLD_NOW 12431# else 12432# ifdef DL_NOW 12433# define LT_DLLAZY_OR_NOW DL_NOW 12434# else 12435# define LT_DLLAZY_OR_NOW 0 12436# endif 12437# endif 12438# endif 12439# endif 12440#endif 12441 12442#ifdef __cplusplus 12443extern "C" void exit (int); 12444#endif 12445 12446void fnord() { int i=42;} 12447int main () 12448{ 12449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12450 int status = $lt_dlunknown; 12451 12452 if (self) 12453 { 12454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12455 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12456 /* dlclose (self); */ 12457 } 12458 12459 exit (status); 12460} 12461EOF 12462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12463 (eval $ac_link) 2>&5 12464 ac_status=$? 12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12466 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12467 (./conftest; exit; ) 2>/dev/null 12468 lt_status=$? 12469 case x$lt_status in 12470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12472 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12473 esac 12474 else : 12475 # compilation failed 12476 lt_cv_dlopen_self=no 12477 fi 12478fi 12479rm -fr conftest* 12480 12481 12482fi 12483echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12484echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12485 12486 if test "x$lt_cv_dlopen_self" = xyes; then 12487 LDFLAGS="$LDFLAGS $link_static_flag" 12488 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12489echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12490if test "${lt_cv_dlopen_self_static+set}" = set; then 12491 echo $ECHO_N "(cached) $ECHO_C" >&6 12492else 12493 if test "$cross_compiling" = yes; then : 12494 lt_cv_dlopen_self_static=cross 12495else 12496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12497 lt_status=$lt_dlunknown 12498 cat > conftest.$ac_ext <<EOF 12499#line 12499 "configure" 12500#include "confdefs.h" 12501 12502#if HAVE_DLFCN_H 12503#include <dlfcn.h> 12504#endif 12505 12506#include <stdio.h> 12507 12508#ifdef RTLD_GLOBAL 12509# define LT_DLGLOBAL RTLD_GLOBAL 12510#else 12511# ifdef DL_GLOBAL 12512# define LT_DLGLOBAL DL_GLOBAL 12513# else 12514# define LT_DLGLOBAL 0 12515# endif 12516#endif 12517 12518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12519 find out it does not work in some platform. */ 12520#ifndef LT_DLLAZY_OR_NOW 12521# ifdef RTLD_LAZY 12522# define LT_DLLAZY_OR_NOW RTLD_LAZY 12523# else 12524# ifdef DL_LAZY 12525# define LT_DLLAZY_OR_NOW DL_LAZY 12526# else 12527# ifdef RTLD_NOW 12528# define LT_DLLAZY_OR_NOW RTLD_NOW 12529# else 12530# ifdef DL_NOW 12531# define LT_DLLAZY_OR_NOW DL_NOW 12532# else 12533# define LT_DLLAZY_OR_NOW 0 12534# endif 12535# endif 12536# endif 12537# endif 12538#endif 12539 12540#ifdef __cplusplus 12541extern "C" void exit (int); 12542#endif 12543 12544void fnord() { int i=42;} 12545int main () 12546{ 12547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12548 int status = $lt_dlunknown; 12549 12550 if (self) 12551 { 12552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12553 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12554 /* dlclose (self); */ 12555 } 12556 12557 exit (status); 12558} 12559EOF 12560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12561 (eval $ac_link) 2>&5 12562 ac_status=$? 12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12564 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12565 (./conftest; exit; ) 2>/dev/null 12566 lt_status=$? 12567 case x$lt_status in 12568 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12569 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12570 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12571 esac 12572 else : 12573 # compilation failed 12574 lt_cv_dlopen_self_static=no 12575 fi 12576fi 12577rm -fr conftest* 12578 12579 12580fi 12581echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12582echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12583 fi 12584 12585 CPPFLAGS="$save_CPPFLAGS" 12586 LDFLAGS="$save_LDFLAGS" 12587 LIBS="$save_LIBS" 12588 ;; 12589 esac 12590 12591 case $lt_cv_dlopen_self in 12592 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12593 *) enable_dlopen_self=unknown ;; 12594 esac 12595 12596 case $lt_cv_dlopen_self_static in 12597 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12598 *) enable_dlopen_self_static=unknown ;; 12599 esac 12600fi 12601 12602 12603# The else clause should only fire when bootstrapping the 12604# libtool distribution, otherwise you forgot to ship ltmain.sh 12605# with your package, and you will get complaints that there are 12606# no rules to generate ltmain.sh. 12607if test -f "$ltmain"; then 12608 # See if we are running on zsh, and set the options which allow our commands through 12609 # without removal of \ escapes. 12610 if test -n "${ZSH_VERSION+set}" ; then 12611 setopt NO_GLOB_SUBST 12612 fi 12613 # Now quote all the things that may contain metacharacters while being 12614 # careful not to overquote the AC_SUBSTed values. We take copies of the 12615 # variables and quote the copies for generation of the libtool script. 12616 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12617 SED SHELL STRIP \ 12618 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12619 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12620 deplibs_check_method reload_flag reload_cmds need_locks \ 12621 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12622 lt_cv_sys_global_symbol_to_c_name_address \ 12623 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12624 old_postinstall_cmds old_postuninstall_cmds \ 12625 compiler_CXX \ 12626 CC_CXX \ 12627 LD_CXX \ 12628 lt_prog_compiler_wl_CXX \ 12629 lt_prog_compiler_pic_CXX \ 12630 lt_prog_compiler_static_CXX \ 12631 lt_prog_compiler_no_builtin_flag_CXX \ 12632 export_dynamic_flag_spec_CXX \ 12633 thread_safe_flag_spec_CXX \ 12634 whole_archive_flag_spec_CXX \ 12635 enable_shared_with_static_runtimes_CXX \ 12636 old_archive_cmds_CXX \ 12637 old_archive_from_new_cmds_CXX \ 12638 predep_objects_CXX \ 12639 postdep_objects_CXX \ 12640 predeps_CXX \ 12641 postdeps_CXX \ 12642 compiler_lib_search_path_CXX \ 12643 archive_cmds_CXX \ 12644 archive_expsym_cmds_CXX \ 12645 postinstall_cmds_CXX \ 12646 postuninstall_cmds_CXX \ 12647 old_archive_from_expsyms_cmds_CXX \ 12648 allow_undefined_flag_CXX \ 12649 no_undefined_flag_CXX \ 12650 export_symbols_cmds_CXX \ 12651 hardcode_libdir_flag_spec_CXX \ 12652 hardcode_libdir_flag_spec_ld_CXX \ 12653 hardcode_libdir_separator_CXX \ 12654 hardcode_automatic_CXX \ 12655 module_cmds_CXX \ 12656 module_expsym_cmds_CXX \ 12657 lt_cv_prog_compiler_c_o_CXX \ 12658 exclude_expsyms_CXX \ 12659 include_expsyms_CXX; do 12660 12661 case $var in 12662 old_archive_cmds_CXX | \ 12663 old_archive_from_new_cmds_CXX | \ 12664 archive_cmds_CXX | \ 12665 archive_expsym_cmds_CXX | \ 12666 module_cmds_CXX | \ 12667 module_expsym_cmds_CXX | \ 12668 old_archive_from_expsyms_cmds_CXX | \ 12669 export_symbols_cmds_CXX | \ 12670 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12671 postinstall_cmds | postuninstall_cmds | \ 12672 old_postinstall_cmds | old_postuninstall_cmds | \ 12673 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12674 # Double-quote double-evaled strings. 12675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12676 ;; 12677 *) 12678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12679 ;; 12680 esac 12681 done 12682 12683 case $lt_echo in 12684 *'\$0 --fallback-echo"') 12685 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12686 ;; 12687 esac 12688 12689cfgfile="$ofile" 12690 12691 cat <<__EOF__ >> "$cfgfile" 12692# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12693 12694# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12695 12696# Shell to use when invoking shell scripts. 12697SHELL=$lt_SHELL 12698 12699# Whether or not to build shared libraries. 12700build_libtool_libs=$enable_shared 12701 12702# Whether or not to build static libraries. 12703build_old_libs=$enable_static 12704 12705# Whether or not to add -lc for building shared libraries. 12706build_libtool_need_lc=$archive_cmds_need_lc_CXX 12707 12708# Whether or not to disallow shared libs when runtime libs are static 12709allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12710 12711# Whether or not to optimize for fast installation. 12712fast_install=$enable_fast_install 12713 12714# The host system. 12715host_alias=$host_alias 12716host=$host 12717 12718# An echo program that does not interpret backslashes. 12719echo=$lt_echo 12720 12721# The archiver. 12722AR=$lt_AR 12723AR_FLAGS=$lt_AR_FLAGS 12724 12725# A C compiler. 12726LTCC=$lt_LTCC 12727 12728# A language-specific compiler. 12729CC=$lt_compiler_CXX 12730 12731# Is the compiler the GNU C compiler? 12732with_gcc=$GCC_CXX 12733 12734# An ERE matcher. 12735EGREP=$lt_EGREP 12736 12737# The linker used to build libraries. 12738LD=$lt_LD_CXX 12739 12740# Whether we need hard or soft links. 12741LN_S=$lt_LN_S 12742 12743# A BSD-compatible nm program. 12744NM=$lt_NM 12745 12746# A symbol stripping program 12747STRIP=$lt_STRIP 12748 12749# Used to examine libraries when file_magic_cmd begins "file" 12750MAGIC_CMD=$MAGIC_CMD 12751 12752# Used on cygwin: DLL creation program. 12753DLLTOOL="$DLLTOOL" 12754 12755# Used on cygwin: object dumper. 12756OBJDUMP="$OBJDUMP" 12757 12758# Used on cygwin: assembler. 12759AS="$AS" 12760 12761# The name of the directory that contains temporary libtool files. 12762objdir=$objdir 12763 12764# How to create reloadable object files. 12765reload_flag=$lt_reload_flag 12766reload_cmds=$lt_reload_cmds 12767 12768# How to pass a linker flag through the compiler. 12769wl=$lt_lt_prog_compiler_wl_CXX 12770 12771# Object file suffix (normally "o"). 12772objext="$ac_objext" 12773 12774# Old archive suffix (normally "a"). 12775libext="$libext" 12776 12777# Shared library suffix (normally ".so"). 12778shrext_cmds='$shrext_cmds' 12779 12780# Executable file suffix (normally ""). 12781exeext="$exeext" 12782 12783# Additional compiler flags for building library objects. 12784pic_flag=$lt_lt_prog_compiler_pic_CXX 12785pic_mode=$pic_mode 12786 12787# What is the maximum length of a command? 12788max_cmd_len=$lt_cv_sys_max_cmd_len 12789 12790# Does compiler simultaneously support -c and -o options? 12791compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12792 12793# Must we lock files when doing compilation ? 12794need_locks=$lt_need_locks 12795 12796# Do we need the lib prefix for modules? 12797need_lib_prefix=$need_lib_prefix 12798 12799# Do we need a version for libraries? 12800need_version=$need_version 12801 12802# Whether dlopen is supported. 12803dlopen_support=$enable_dlopen 12804 12805# Whether dlopen of programs is supported. 12806dlopen_self=$enable_dlopen_self 12807 12808# Whether dlopen of statically linked programs is supported. 12809dlopen_self_static=$enable_dlopen_self_static 12810 12811# Compiler flag to prevent dynamic linking. 12812link_static_flag=$lt_lt_prog_compiler_static_CXX 12813 12814# Compiler flag to turn off builtin functions. 12815no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12816 12817# Compiler flag to allow reflexive dlopens. 12818export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12819 12820# Compiler flag to generate shared objects directly from archives. 12821whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12822 12823# Compiler flag to generate thread-safe objects. 12824thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12825 12826# Library versioning type. 12827version_type=$version_type 12828 12829# Format of library name prefix. 12830libname_spec=$lt_libname_spec 12831 12832# List of archive names. First name is the real one, the rest are links. 12833# The last name is the one that the linker finds with -lNAME. 12834library_names_spec=$lt_library_names_spec 12835 12836# The coded name of the library, if different from the real name. 12837soname_spec=$lt_soname_spec 12838 12839# Commands used to build and install an old-style archive. 12840RANLIB=$lt_RANLIB 12841old_archive_cmds=$lt_old_archive_cmds_CXX 12842old_postinstall_cmds=$lt_old_postinstall_cmds 12843old_postuninstall_cmds=$lt_old_postuninstall_cmds 12844 12845# Create an old-style archive from a shared archive. 12846old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12847 12848# Create a temporary old-style archive to link instead of a shared archive. 12849old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12850 12851# Commands used to build and install a shared archive. 12852archive_cmds=$lt_archive_cmds_CXX 12853archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12854postinstall_cmds=$lt_postinstall_cmds 12855postuninstall_cmds=$lt_postuninstall_cmds 12856 12857# Commands used to build a loadable module (assumed same as above if empty) 12858module_cmds=$lt_module_cmds_CXX 12859module_expsym_cmds=$lt_module_expsym_cmds_CXX 12860 12861# Commands to strip libraries. 12862old_striplib=$lt_old_striplib 12863striplib=$lt_striplib 12864 12865# Dependencies to place before the objects being linked to create a 12866# shared library. 12867predep_objects=$lt_predep_objects_CXX 12868 12869# Dependencies to place after the objects being linked to create a 12870# shared library. 12871postdep_objects=$lt_postdep_objects_CXX 12872 12873# Dependencies to place before the objects being linked to create a 12874# shared library. 12875predeps=$lt_predeps_CXX 12876 12877# Dependencies to place after the objects being linked to create a 12878# shared library. 12879postdeps=$lt_postdeps_CXX 12880 12881# The library search path used internally by the compiler when linking 12882# a shared library. 12883compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12884 12885# Method to check whether dependent libraries are shared objects. 12886deplibs_check_method=$lt_deplibs_check_method 12887 12888# Command to use when deplibs_check_method == file_magic. 12889file_magic_cmd=$lt_file_magic_cmd 12890 12891# Flag that allows shared libraries with undefined symbols to be built. 12892allow_undefined_flag=$lt_allow_undefined_flag_CXX 12893 12894# Flag that forces no undefined symbols. 12895no_undefined_flag=$lt_no_undefined_flag_CXX 12896 12897# Commands used to finish a libtool library installation in a directory. 12898finish_cmds=$lt_finish_cmds 12899 12900# Same as above, but a single script fragment to be evaled but not shown. 12901finish_eval=$lt_finish_eval 12902 12903# Take the output of nm and produce a listing of raw symbols and C names. 12904global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12905 12906# Transform the output of nm in a proper C declaration 12907global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12908 12909# Transform the output of nm in a C name address pair 12910global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12911 12912# This is the shared library runtime path variable. 12913runpath_var=$runpath_var 12914 12915# This is the shared library path variable. 12916shlibpath_var=$shlibpath_var 12917 12918# Is shlibpath searched before the hard-coded library search path? 12919shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12920 12921# How to hardcode a shared library path into an executable. 12922hardcode_action=$hardcode_action_CXX 12923 12924# Whether we should hardcode library paths into libraries. 12925hardcode_into_libs=$hardcode_into_libs 12926 12927# Flag to hardcode \$libdir into a binary during linking. 12928# This must work even if \$libdir does not exist. 12929hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12930 12931# If ld is used when linking, flag to hardcode \$libdir into 12932# a binary during linking. This must work even if \$libdir does 12933# not exist. 12934hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12935 12936# Whether we need a single -rpath flag with a separated argument. 12937hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12938 12939# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12940# resulting binary. 12941hardcode_direct=$hardcode_direct_CXX 12942 12943# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12944# resulting binary. 12945hardcode_minus_L=$hardcode_minus_L_CXX 12946 12947# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12948# the resulting binary. 12949hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12950 12951# Set to yes if building a shared library automatically hardcodes DIR into the library 12952# and all subsequent libraries and executables linked against it. 12953hardcode_automatic=$hardcode_automatic_CXX 12954 12955# Variables whose values should be saved in libtool wrapper scripts and 12956# restored at relink time. 12957variables_saved_for_relink="$variables_saved_for_relink" 12958 12959# Whether libtool must link a program against all its dependency libraries. 12960link_all_deplibs=$link_all_deplibs_CXX 12961 12962# Compile-time system search path for libraries 12963sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12964 12965# Run-time system search path for libraries 12966sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12967 12968# Fix the shell variable \$srcfile for the compiler. 12969fix_srcfile_path="$fix_srcfile_path_CXX" 12970 12971# Set to yes if exported symbols are required. 12972always_export_symbols=$always_export_symbols_CXX 12973 12974# The commands to list exported symbols. 12975export_symbols_cmds=$lt_export_symbols_cmds_CXX 12976 12977# The commands to extract the exported symbol list from a shared archive. 12978extract_expsyms_cmds=$lt_extract_expsyms_cmds 12979 12980# Symbols that should not be listed in the preloaded symbols. 12981exclude_expsyms=$lt_exclude_expsyms_CXX 12982 12983# Symbols that must always be exported. 12984include_expsyms=$lt_include_expsyms_CXX 12985 12986# ### END LIBTOOL TAG CONFIG: $tagname 12987 12988__EOF__ 12989 12990 12991else 12992 # If there is no Makefile yet, we rely on a make rule to execute 12993 # `config.status --recheck' to rerun these tests and create the 12994 # libtool script then. 12995 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12996 if test -f "$ltmain_in"; then 12997 test -f Makefile && make "$ltmain" 12998 fi 12999fi 13000 13001 13002ac_ext=c 13003ac_cpp='$CPP $CPPFLAGS' 13004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13006ac_compiler_gnu=$ac_cv_c_compiler_gnu 13007 13008CC=$lt_save_CC 13009LDCXX=$LD 13010LD=$lt_save_LD 13011GCC=$lt_save_GCC 13012with_gnu_ldcxx=$with_gnu_ld 13013with_gnu_ld=$lt_save_with_gnu_ld 13014lt_cv_path_LDCXX=$lt_cv_path_LD 13015lt_cv_path_LD=$lt_save_path_LD 13016lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13017lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13018 13019 else 13020 tagname="" 13021 fi 13022 ;; 13023 13024 F77) 13025 if test -n "$F77" && test "X$F77" != "Xno"; then 13026 13027ac_ext=f 13028ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13029ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13030ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13031 13032 13033archive_cmds_need_lc_F77=no 13034allow_undefined_flag_F77= 13035always_export_symbols_F77=no 13036archive_expsym_cmds_F77= 13037export_dynamic_flag_spec_F77= 13038hardcode_direct_F77=no 13039hardcode_libdir_flag_spec_F77= 13040hardcode_libdir_flag_spec_ld_F77= 13041hardcode_libdir_separator_F77= 13042hardcode_minus_L_F77=no 13043hardcode_automatic_F77=no 13044module_cmds_F77= 13045module_expsym_cmds_F77= 13046link_all_deplibs_F77=unknown 13047old_archive_cmds_F77=$old_archive_cmds 13048no_undefined_flag_F77= 13049whole_archive_flag_spec_F77= 13050enable_shared_with_static_runtimes_F77=no 13051 13052# Source file extension for f77 test sources. 13053ac_ext=f 13054 13055# Object file extension for compiled f77 test sources. 13056objext=o 13057objext_F77=$objext 13058 13059# Code to be used in simple compile tests 13060lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13061 13062# Code to be used in simple link tests 13063lt_simple_link_test_code=" program t\n end\n" 13064 13065# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13066 13067# If no C compiler was specified, use CC. 13068LTCC=${LTCC-"$CC"} 13069 13070# Allow CC to be a program name with arguments. 13071compiler=$CC 13072 13073 13074# Allow CC to be a program name with arguments. 13075lt_save_CC="$CC" 13076CC=${F77-"f77"} 13077compiler=$CC 13078compiler_F77=$CC 13079cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13080 13081echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13082echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13083echo "$as_me:$LINENO: result: $can_build_shared" >&5 13084echo "${ECHO_T}$can_build_shared" >&6 13085 13086echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13087echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13088test "$can_build_shared" = "no" && enable_shared=no 13089 13090# On AIX, shared libraries and static libraries use the same namespace, and 13091# are all built from PIC. 13092case "$host_os" in 13093aix3*) 13094 test "$enable_shared" = yes && enable_static=no 13095 if test -n "$RANLIB"; then 13096 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13097 postinstall_cmds='$RANLIB $lib' 13098 fi 13099 ;; 13100aix4* | aix5*) 13101 test "$enable_shared" = yes && enable_static=no 13102 ;; 13103esac 13104echo "$as_me:$LINENO: result: $enable_shared" >&5 13105echo "${ECHO_T}$enable_shared" >&6 13106 13107echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13108echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13109# Make sure either enable_shared or enable_static is yes. 13110test "$enable_shared" = yes || enable_static=yes 13111echo "$as_me:$LINENO: result: $enable_static" >&5 13112echo "${ECHO_T}$enable_static" >&6 13113 13114test "$ld_shlibs_F77" = no && can_build_shared=no 13115 13116GCC_F77="$G77" 13117LD_F77="$LD" 13118 13119lt_prog_compiler_wl_F77= 13120lt_prog_compiler_pic_F77= 13121lt_prog_compiler_static_F77= 13122 13123echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13124echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13125 13126 if test "$GCC" = yes; then 13127 lt_prog_compiler_wl_F77='-Wl,' 13128 lt_prog_compiler_static_F77='-static' 13129 13130 case $host_os in 13131 aix*) 13132 # All AIX code is PIC. 13133 if test "$host_cpu" = ia64; then 13134 # AIX 5 now supports IA64 processor 13135 lt_prog_compiler_static_F77='-Bstatic' 13136 fi 13137 ;; 13138 13139 amigaos*) 13140 # FIXME: we need at least 68020 code to build shared libraries, but 13141 # adding the `-m68020' flag to GCC prevents building anything better, 13142 # like `-m68040'. 13143 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13144 ;; 13145 13146 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13147 # PIC is the default for these OSes. 13148 ;; 13149 13150 mingw* | pw32* | os2*) 13151 # This hack is so that the source file can tell whether it is being 13152 # built for inclusion in a dll (and should export symbols for example). 13153 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13154 ;; 13155 13156 darwin* | rhapsody*) 13157 # PIC is the default on this platform 13158 # Common symbols not allowed in MH_DYLIB files 13159 lt_prog_compiler_pic_F77='-fno-common' 13160 ;; 13161 13162 msdosdjgpp*) 13163 # Just because we use GCC doesn't mean we suddenly get shared libraries 13164 # on systems that don't support them. 13165 lt_prog_compiler_can_build_shared_F77=no 13166 enable_shared=no 13167 ;; 13168 13169 sysv4*MP*) 13170 if test -d /usr/nec; then 13171 lt_prog_compiler_pic_F77=-Kconform_pic 13172 fi 13173 ;; 13174 13175 hpux*) 13176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13177 # not for PA HP-UX. 13178 case "$host_cpu" in 13179 hppa*64*|ia64*) 13180 # +Z the default 13181 ;; 13182 *) 13183 lt_prog_compiler_pic_F77='-fPIC' 13184 ;; 13185 esac 13186 ;; 13187 13188 *) 13189 lt_prog_compiler_pic_F77='-fPIC' 13190 ;; 13191 esac 13192 else 13193 # PORTME Check for flag to pass linker flags through the system compiler. 13194 case $host_os in 13195 aix*) 13196 lt_prog_compiler_wl_F77='-Wl,' 13197 if test "$host_cpu" = ia64; then 13198 # AIX 5 now supports IA64 processor 13199 lt_prog_compiler_static_F77='-Bstatic' 13200 else 13201 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13202 fi 13203 ;; 13204 13205 mingw* | pw32* | os2*) 13206 # This hack is so that the source file can tell whether it is being 13207 # built for inclusion in a dll (and should export symbols for example). 13208 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13209 ;; 13210 13211 hpux9* | hpux10* | hpux11*) 13212 lt_prog_compiler_wl_F77='-Wl,' 13213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13214 # not for PA HP-UX. 13215 case "$host_cpu" in 13216 hppa*64*|ia64*) 13217 # +Z the default 13218 ;; 13219 *) 13220 lt_prog_compiler_pic_F77='+Z' 13221 ;; 13222 esac 13223 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13224 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13225 ;; 13226 13227 irix5* | irix6* | nonstopux*) 13228 lt_prog_compiler_wl_F77='-Wl,' 13229 # PIC (with -KPIC) is the default. 13230 lt_prog_compiler_static_F77='-non_shared' 13231 ;; 13232 13233 newsos6) 13234 lt_prog_compiler_pic_F77='-KPIC' 13235 lt_prog_compiler_static_F77='-Bstatic' 13236 ;; 13237 13238 linux*) 13239 case $CC in 13240 icc* | ecc*) 13241 lt_prog_compiler_wl_F77='-Wl,' 13242 lt_prog_compiler_pic_F77='-KPIC' 13243 lt_prog_compiler_static_F77='-static' 13244 ;; 13245 ccc*) 13246 lt_prog_compiler_wl_F77='-Wl,' 13247 # All Alpha code is PIC. 13248 lt_prog_compiler_static_F77='-non_shared' 13249 ;; 13250 esac 13251 ;; 13252 13253 osf3* | osf4* | osf5*) 13254 lt_prog_compiler_wl_F77='-Wl,' 13255 # All OSF/1 code is PIC. 13256 lt_prog_compiler_static_F77='-non_shared' 13257 ;; 13258 13259 sco3.2v5*) 13260 lt_prog_compiler_pic_F77='-Kpic' 13261 lt_prog_compiler_static_F77='-dn' 13262 ;; 13263 13264 solaris*) 13265 lt_prog_compiler_wl_F77='-Wl,' 13266 lt_prog_compiler_pic_F77='-KPIC' 13267 lt_prog_compiler_static_F77='-Bstatic' 13268 ;; 13269 13270 sunos4*) 13271 lt_prog_compiler_wl_F77='-Qoption ld ' 13272 lt_prog_compiler_pic_F77='-PIC' 13273 lt_prog_compiler_static_F77='-Bstatic' 13274 ;; 13275 13276 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13277 lt_prog_compiler_wl_F77='-Wl,' 13278 lt_prog_compiler_pic_F77='-KPIC' 13279 lt_prog_compiler_static_F77='-Bstatic' 13280 ;; 13281 13282 sysv4*MP*) 13283 if test -d /usr/nec ;then 13284 lt_prog_compiler_pic_F77='-Kconform_pic' 13285 lt_prog_compiler_static_F77='-Bstatic' 13286 fi 13287 ;; 13288 13289 uts4*) 13290 lt_prog_compiler_pic_F77='-pic' 13291 lt_prog_compiler_static_F77='-Bstatic' 13292 ;; 13293 13294 *) 13295 lt_prog_compiler_can_build_shared_F77=no 13296 ;; 13297 esac 13298 fi 13299 13300echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13301echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13302 13303# 13304# Check to make sure the PIC flag actually works. 13305# 13306if test -n "$lt_prog_compiler_pic_F77"; then 13307 13308echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13309echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13310if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13311 echo $ECHO_N "(cached) $ECHO_C" >&6 13312else 13313 lt_prog_compiler_pic_works_F77=no 13314 ac_outfile=conftest.$ac_objext 13315 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13316 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13317 # Insert the option either (1) after the last *FLAGS variable, or 13318 # (2) before a word containing "conftest.", or (3) at the end. 13319 # Note that $ac_compile itself does not contain backslashes and begins 13320 # with a dollar sign (not a hyphen), so the echo should work correctly. 13321 # The option is referenced via a variable to avoid confusing sed. 13322 lt_compile=`echo "$ac_compile" | $SED \ 13323 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13325 -e 's:$: $lt_compiler_flag:'` 13326 (eval echo "\"\$as_me:13326: $lt_compile\"" >&5) 13327 (eval "$lt_compile" 2>conftest.err) 13328 ac_status=$? 13329 cat conftest.err >&5 13330 echo "$as_me:13330: \$? = $ac_status" >&5 13331 if (exit $ac_status) && test -s "$ac_outfile"; then 13332 # The compiler can only warn and ignore the option if not recognized 13333 # So say no if there are warnings 13334 if test ! -s conftest.err; then 13335 lt_prog_compiler_pic_works_F77=yes 13336 fi 13337 fi 13338 $rm conftest* 13339 13340fi 13341echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13342echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13343 13344if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13345 case $lt_prog_compiler_pic_F77 in 13346 "" | " "*) ;; 13347 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13348 esac 13349else 13350 lt_prog_compiler_pic_F77= 13351 lt_prog_compiler_can_build_shared_F77=no 13352fi 13353 13354fi 13355case "$host_os" in 13356 # For platforms which do not support PIC, -DPIC is meaningless: 13357 *djgpp*) 13358 lt_prog_compiler_pic_F77= 13359 ;; 13360 *) 13361 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13362 ;; 13363esac 13364 13365echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13366echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13367if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13368 echo $ECHO_N "(cached) $ECHO_C" >&6 13369else 13370 lt_cv_prog_compiler_c_o_F77=no 13371 $rm -r conftest 2>/dev/null 13372 mkdir conftest 13373 cd conftest 13374 mkdir out 13375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13376 13377 lt_compiler_flag="-o out/conftest2.$ac_objext" 13378 # Insert the option either (1) after the last *FLAGS variable, or 13379 # (2) before a word containing "conftest.", or (3) at the end. 13380 # Note that $ac_compile itself does not contain backslashes and begins 13381 # with a dollar sign (not a hyphen), so the echo should work correctly. 13382 lt_compile=`echo "$ac_compile" | $SED \ 13383 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13385 -e 's:$: $lt_compiler_flag:'` 13386 (eval echo "\"\$as_me:13386: $lt_compile\"" >&5) 13387 (eval "$lt_compile" 2>out/conftest.err) 13388 ac_status=$? 13389 cat out/conftest.err >&5 13390 echo "$as_me:13390: \$? = $ac_status" >&5 13391 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13392 then 13393 # The compiler can only warn and ignore the option if not recognized 13394 # So say no if there are warnings 13395 if test ! -s out/conftest.err; then 13396 lt_cv_prog_compiler_c_o_F77=yes 13397 fi 13398 fi 13399 chmod u+w . 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_F77" >&5 13411echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13412 13413 13414hard_links="nottested" 13415if test "$lt_cv_prog_compiler_c_o_F77" = 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 runpath_var= 13440 allow_undefined_flag_F77= 13441 enable_shared_with_static_runtimes_F77=no 13442 archive_cmds_F77= 13443 archive_expsym_cmds_F77= 13444 old_archive_From_new_cmds_F77= 13445 old_archive_from_expsyms_cmds_F77= 13446 export_dynamic_flag_spec_F77= 13447 whole_archive_flag_spec_F77= 13448 thread_safe_flag_spec_F77= 13449 hardcode_libdir_flag_spec_F77= 13450 hardcode_libdir_flag_spec_ld_F77= 13451 hardcode_libdir_separator_F77= 13452 hardcode_direct_F77=no 13453 hardcode_minus_L_F77=no 13454 hardcode_shlibpath_var_F77=unsupported 13455 link_all_deplibs_F77=unknown 13456 hardcode_automatic_F77=no 13457 module_cmds_F77= 13458 module_expsym_cmds_F77= 13459 always_export_symbols_F77=no 13460 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13461 # include_expsyms should be a list of space-separated symbols to be *always* 13462 # included in the symbol list 13463 include_expsyms_F77= 13464 # exclude_expsyms can be an extended regexp of symbols to exclude 13465 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13467 # as well as any symbol that contains `d'. 13468 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13470 # platforms (ab)use it in PIC code, but their linkers get confused if 13471 # the symbol is explicitly referenced. Since portable code cannot 13472 # rely on this symbol name, it's probably fine to never include it in 13473 # preloaded symbol tables. 13474 extract_expsyms_cmds= 13475 13476 case $host_os in 13477 cygwin* | mingw* | pw32*) 13478 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13479 # When not using gcc, we currently assume that we are using 13480 # Microsoft Visual C++. 13481 if test "$GCC" != yes; then 13482 with_gnu_ld=no 13483 fi 13484 ;; 13485 openbsd*) 13486 with_gnu_ld=no 13487 ;; 13488 esac 13489 13490 ld_shlibs_F77=yes 13491 if test "$with_gnu_ld" = yes; then 13492 # If archive_cmds runs LD, not CC, wlarc should be empty 13493 wlarc='${wl}' 13494 13495 # See if GNU ld supports shared libraries. 13496 case $host_os in 13497 aix3* | aix4* | aix5*) 13498 # On AIX/PPC, the GNU linker is very broken 13499 if test "$host_cpu" != ia64; then 13500 ld_shlibs_F77=no 13501 cat <<EOF 1>&2 13502 13503*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13504*** to be unable to reliably create shared libraries on AIX. 13505*** Therefore, libtool is disabling shared libraries support. If you 13506*** really care for shared libraries, you may want to modify your PATH 13507*** so that a non-GNU linker is found, and then restart. 13508 13509EOF 13510 fi 13511 ;; 13512 13513 amigaos*) 13514 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)' 13515 hardcode_libdir_flag_spec_F77='-L$libdir' 13516 hardcode_minus_L_F77=yes 13517 13518 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13519 # that the semantics of dynamic libraries on AmigaOS, at least up 13520 # to version 4, is to share data among multiple programs linked 13521 # with the same dynamic library. Since this doesn't match the 13522 # behavior of shared libraries on other platforms, we can't use 13523 # them. 13524 ld_shlibs_F77=no 13525 ;; 13526 13527 beos*) 13528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13529 allow_undefined_flag_F77=unsupported 13530 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13531 # support --undefined. This deserves some investigation. FIXME 13532 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13533 else 13534 ld_shlibs_F77=no 13535 fi 13536 ;; 13537 13538 cygwin* | mingw* | pw32*) 13539 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13540 # as there is no search path for DLLs. 13541 hardcode_libdir_flag_spec_F77='-L$libdir' 13542 allow_undefined_flag_F77=unsupported 13543 always_export_symbols_F77=no 13544 enable_shared_with_static_runtimes_F77=yes 13545 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13546 13547 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13548 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13549 # If the export-symbols file already is a .def file (1st line 13550 # is EXPORTS), use it as is; otherwise, prepend... 13551 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13552 cp $export_symbols $output_objdir/$soname.def; 13553 else 13554 echo EXPORTS > $output_objdir/$soname.def; 13555 cat $export_symbols >> $output_objdir/$soname.def; 13556 fi~ 13557 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13558 else 13559 ld_shlibs=no 13560 fi 13561 ;; 13562 13563 netbsd* | knetbsd*-gnu) 13564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13565 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13566 wlarc= 13567 else 13568 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13569 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13570 fi 13571 ;; 13572 13573 solaris* | sysv5*) 13574 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13575 ld_shlibs_F77=no 13576 cat <<EOF 1>&2 13577 13578*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13579*** create shared libraries on Solaris systems. Therefore, libtool 13580*** is disabling shared libraries support. We urge you to upgrade GNU 13581*** binutils to release 2.9.1 or newer. Another option is to modify 13582*** your PATH or compiler configuration so that the native linker is 13583*** used, and then restart. 13584 13585EOF 13586 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13587 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13588 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13589 else 13590 ld_shlibs_F77=no 13591 fi 13592 ;; 13593 13594 sunos4*) 13595 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13596 wlarc= 13597 hardcode_direct_F77=yes 13598 hardcode_shlibpath_var_F77=no 13599 ;; 13600 13601 linux*) 13602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13603 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13604 archive_cmds_F77="$tmp_archive_cmds" 13605 supports_anon_versioning=no 13606 case `$LD -v 2>/dev/null` in 13607 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13610 *\ 2.11.*) ;; # other 2.11 versions 13611 *) supports_anon_versioning=yes ;; 13612 esac 13613 if test $supports_anon_versioning = yes; then 13614 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13615cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13616$echo "local: *; };" >> $output_objdir/$libname.ver~ 13617 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13618 else 13619 archive_expsym_cmds_F77="$tmp_archive_cmds" 13620 fi 13621 link_all_deplibs_F77=no 13622 else 13623 ld_shlibs_F77=no 13624 fi 13625 ;; 13626 13627 *) 13628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13629 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13630 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13631 else 13632 ld_shlibs_F77=no 13633 fi 13634 ;; 13635 esac 13636 13637 if test "$ld_shlibs_F77" = yes; then 13638 runpath_var=LD_RUN_PATH 13639 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13640 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13641 # ancient GNU ld didn't support --whole-archive et. al. 13642 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13643 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13644 else 13645 whole_archive_flag_spec_F77= 13646 fi 13647 fi 13648 else 13649 # PORTME fill in a description of your system's linker (not GNU ld) 13650 case $host_os in 13651 aix3*) 13652 allow_undefined_flag_F77=unsupported 13653 always_export_symbols_F77=yes 13654 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' 13655 # Note: this linker hardcodes the directories in LIBPATH if there 13656 # are no directories specified by -L. 13657 hardcode_minus_L_F77=yes 13658 if test "$GCC" = yes && test -z "$link_static_flag"; then 13659 # Neither direct hardcoding nor static linking is supported with a 13660 # broken collect2. 13661 hardcode_direct_F77=unsupported 13662 fi 13663 ;; 13664 13665 aix4* | aix5*) 13666 if test "$host_cpu" = ia64; then 13667 # On IA64, the linker does run time linking by default, so we don't 13668 # have to do anything special. 13669 aix_use_runtimelinking=no 13670 exp_sym_flag='-Bexport' 13671 no_entry_flag="" 13672 else 13673 # If we're using GNU nm, then we don't want the "-C" option. 13674 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13675 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13676 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' 13677 else 13678 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' 13679 fi 13680 aix_use_runtimelinking=no 13681 13682 # Test if we are trying to use run time linking or normal 13683 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13684 # need to do runtime linking. 13685 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13686 for ld_flag in $LDFLAGS; do 13687 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13688 aix_use_runtimelinking=yes 13689 break 13690 fi 13691 done 13692 esac 13693 13694 exp_sym_flag='-bexport' 13695 no_entry_flag='-bnoentry' 13696 fi 13697 13698 # When large executables or shared objects are built, AIX ld can 13699 # have problems creating the table of contents. If linking a library 13700 # or program results in "error TOC overflow" add -mminimal-toc to 13701 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13702 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13703 13704 archive_cmds_F77='' 13705 hardcode_direct_F77=yes 13706 hardcode_libdir_separator_F77=':' 13707 link_all_deplibs_F77=yes 13708 13709 if test "$GCC" = yes; then 13710 case $host_os in aix4.012|aix4.012.*) 13711 # We only want to do this on AIX 4.2 and lower, the check 13712 # below for broken collect2 doesn't work under 4.3+ 13713 collect2name=`${CC} -print-prog-name=collect2` 13714 if test -f "$collect2name" && \ 13715 strings "$collect2name" | grep resolve_lib_name >/dev/null 13716 then 13717 # We have reworked collect2 13718 hardcode_direct_F77=yes 13719 else 13720 # We have old collect2 13721 hardcode_direct_F77=unsupported 13722 # It fails to find uninstalled libraries when the uninstalled 13723 # path is not listed in the libpath. Setting hardcode_minus_L 13724 # to unsupported forces relinking 13725 hardcode_minus_L_F77=yes 13726 hardcode_libdir_flag_spec_F77='-L$libdir' 13727 hardcode_libdir_separator_F77= 13728 fi 13729 esac 13730 shared_flag='-shared' 13731 else 13732 # not using gcc 13733 if test "$host_cpu" = ia64; then 13734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13735 # chokes on -Wl,-G. The following line is correct: 13736 shared_flag='-G' 13737 else 13738 if test "$aix_use_runtimelinking" = yes; then 13739 shared_flag='${wl}-G' 13740 else 13741 shared_flag='${wl}-bM:SRE' 13742 fi 13743 fi 13744 fi 13745 13746 # It seems that -bexpall does not export symbols beginning with 13747 # underscore (_), so it is better to generate a list of symbols to export. 13748 always_export_symbols_F77=yes 13749 if test "$aix_use_runtimelinking" = yes; then 13750 # Warning - without using the other runtime loading flags (-brtl), 13751 # -berok will link without error, but may produce a broken library. 13752 allow_undefined_flag_F77='-berok' 13753 # Determine the default libpath from the value encoded in an empty executable. 13754 cat >conftest.$ac_ext <<_ACEOF 13755 program main 13756 13757 end 13758_ACEOF 13759rm -f conftest.$ac_objext conftest$ac_exeext 13760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13761 (eval $ac_link) 2>conftest.er1 13762 ac_status=$? 13763 grep -v '^ *+' conftest.er1 >conftest.err 13764 rm -f conftest.er1 13765 cat conftest.err >&5 13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13767 (exit $ac_status); } && 13768 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13770 (eval $ac_try) 2>&5 13771 ac_status=$? 13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13773 (exit $ac_status); }; } && 13774 { ac_try='test -s conftest$ac_exeext' 13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13776 (eval $ac_try) 2>&5 13777 ac_status=$? 13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13779 (exit $ac_status); }; }; then 13780 13781aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13782}'` 13783# Check for a 64-bit object if we didn't find anything. 13784if 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; } 13785}'`; fi 13786else 13787 echo "$as_me: failed program was:" >&5 13788sed 's/^/| /' conftest.$ac_ext >&5 13789 13790fi 13791rm -f conftest.err conftest.$ac_objext \ 13792 conftest$ac_exeext conftest.$ac_ext 13793if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13794 13795 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13796 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" 13797 else 13798 if test "$host_cpu" = ia64; then 13799 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13800 allow_undefined_flag_F77="-z nodefs" 13801 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" 13802 else 13803 # Determine the default libpath from the value encoded in an empty executable. 13804 cat >conftest.$ac_ext <<_ACEOF 13805 program main 13806 13807 end 13808_ACEOF 13809rm -f conftest.$ac_objext conftest$ac_exeext 13810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13811 (eval $ac_link) 2>conftest.er1 13812 ac_status=$? 13813 grep -v '^ *+' conftest.er1 >conftest.err 13814 rm -f conftest.er1 13815 cat conftest.err >&5 13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13817 (exit $ac_status); } && 13818 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13820 (eval $ac_try) 2>&5 13821 ac_status=$? 13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13823 (exit $ac_status); }; } && 13824 { ac_try='test -s conftest$ac_exeext' 13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13826 (eval $ac_try) 2>&5 13827 ac_status=$? 13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13829 (exit $ac_status); }; }; then 13830 13831aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13832}'` 13833# Check for a 64-bit object if we didn't find anything. 13834if 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; } 13835}'`; fi 13836else 13837 echo "$as_me: failed program was:" >&5 13838sed 's/^/| /' conftest.$ac_ext >&5 13839 13840fi 13841rm -f conftest.err conftest.$ac_objext \ 13842 conftest$ac_exeext conftest.$ac_ext 13843if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13844 13845 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13846 # Warning - without using the other run time loading flags, 13847 # -berok will link without error, but may produce a broken library. 13848 no_undefined_flag_F77=' ${wl}-bernotok' 13849 allow_undefined_flag_F77=' ${wl}-berok' 13850 # -bexpall does not export symbols beginning with underscore (_) 13851 always_export_symbols_F77=yes 13852 # Exported symbols can be pulled into shared objects from archives 13853 whole_archive_flag_spec_F77=' ' 13854 archive_cmds_need_lc_F77=yes 13855 # This is similar to how AIX traditionally builds it's shared libraries. 13856 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' 13857 fi 13858 fi 13859 ;; 13860 13861 amigaos*) 13862 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)' 13863 hardcode_libdir_flag_spec_F77='-L$libdir' 13864 hardcode_minus_L_F77=yes 13865 # see comment about different semantics on the GNU ld section 13866 ld_shlibs_F77=no 13867 ;; 13868 13869 bsdi4*) 13870 export_dynamic_flag_spec_F77=-rdynamic 13871 ;; 13872 13873 cygwin* | mingw* | pw32*) 13874 # When not using gcc, we currently assume that we are using 13875 # Microsoft Visual C++. 13876 # hardcode_libdir_flag_spec is actually meaningless, as there is 13877 # no search path for DLLs. 13878 hardcode_libdir_flag_spec_F77=' ' 13879 allow_undefined_flag_F77=unsupported 13880 # Tell ltmain to make .lib files, not .a files. 13881 libext=lib 13882 # Tell ltmain to make .dll files, not .so files. 13883 shrext_cmds=".dll" 13884 # FIXME: Setting linknames here is a bad hack. 13885 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13886 # The linker will automatically build a .lib file if we build a DLL. 13887 old_archive_From_new_cmds_F77='true' 13888 # FIXME: Should let the user specify the lib program. 13889 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13890 fix_srcfile_path='`cygpath -w "$srcfile"`' 13891 enable_shared_with_static_runtimes_F77=yes 13892 ;; 13893 13894 darwin* | rhapsody*) 13895 if test "$GXX" = yes ; then 13896 archive_cmds_need_lc_F77=no 13897 case "$host_os" in 13898 rhapsody* | darwin1.[012]) 13899 allow_undefined_flag_F77='-undefined suppress' 13900 ;; 13901 *) # Darwin 1.3 on 13902 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13903 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13904 else 13905 case ${MACOSX_DEPLOYMENT_TARGET} in 13906 10.[012]) 13907 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13908 ;; 13909 10.*) 13910 allow_undefined_flag_F77='-undefined dynamic_lookup' 13911 ;; 13912 esac 13913 fi 13914 ;; 13915 esac 13916 lt_int_apple_cc_single_mod=no 13917 output_verbose_link_cmd='echo' 13918 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 13919 lt_int_apple_cc_single_mod=yes 13920 fi 13921 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13922 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13923 else 13924 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' 13925 fi 13926 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13927 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13928 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13929 archive_expsym_cmds_F77='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}' 13930 else 13931 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 13932 fi 13933 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}' 13934 hardcode_direct_F77=no 13935 hardcode_automatic_F77=yes 13936 hardcode_shlibpath_var_F77=unsupported 13937 whole_archive_flag_spec_F77='-all_load $convenience' 13938 link_all_deplibs_F77=yes 13939 else 13940 ld_shlibs_F77=no 13941 fi 13942 ;; 13943 13944 dgux*) 13945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13946 hardcode_libdir_flag_spec_F77='-L$libdir' 13947 hardcode_shlibpath_var_F77=no 13948 ;; 13949 13950 freebsd1*) 13951 ld_shlibs_F77=no 13952 ;; 13953 13954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13955 # support. Future versions do this automatically, but an explicit c++rt0.o 13956 # does not break anything, and helps significantly (at the cost of a little 13957 # extra space). 13958 freebsd2.2*) 13959 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13960 hardcode_libdir_flag_spec_F77='-R$libdir' 13961 hardcode_direct_F77=yes 13962 hardcode_shlibpath_var_F77=no 13963 ;; 13964 13965 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13966 freebsd2*) 13967 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13968 hardcode_direct_F77=yes 13969 hardcode_minus_L_F77=yes 13970 hardcode_shlibpath_var_F77=no 13971 ;; 13972 13973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13974 freebsd* | kfreebsd*-gnu) 13975 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13976 hardcode_libdir_flag_spec_F77='-R$libdir' 13977 hardcode_direct_F77=yes 13978 hardcode_shlibpath_var_F77=no 13979 ;; 13980 13981 hpux9*) 13982 if test "$GCC" = yes; then 13983 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' 13984 else 13985 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' 13986 fi 13987 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13988 hardcode_libdir_separator_F77=: 13989 hardcode_direct_F77=yes 13990 13991 # hardcode_minus_L: Not really in the search PATH, 13992 # but as the default location of the library. 13993 hardcode_minus_L_F77=yes 13994 export_dynamic_flag_spec_F77='${wl}-E' 13995 ;; 13996 13997 hpux10* | hpux11*) 13998 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13999 case "$host_cpu" in 14000 hppa*64*|ia64*) 14001 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14002 ;; 14003 *) 14004 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14005 ;; 14006 esac 14007 else 14008 case "$host_cpu" in 14009 hppa*64*|ia64*) 14010 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14011 ;; 14012 *) 14013 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14014 ;; 14015 esac 14016 fi 14017 if test "$with_gnu_ld" = no; then 14018 case "$host_cpu" in 14019 hppa*64*) 14020 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14021 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14022 hardcode_libdir_separator_F77=: 14023 hardcode_direct_F77=no 14024 hardcode_shlibpath_var_F77=no 14025 ;; 14026 ia64*) 14027 hardcode_libdir_flag_spec_F77='-L$libdir' 14028 hardcode_direct_F77=no 14029 hardcode_shlibpath_var_F77=no 14030 14031 # hardcode_minus_L: Not really in the search PATH, 14032 # but as the default location of the library. 14033 hardcode_minus_L_F77=yes 14034 ;; 14035 *) 14036 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14037 hardcode_libdir_separator_F77=: 14038 hardcode_direct_F77=yes 14039 export_dynamic_flag_spec_F77='${wl}-E' 14040 14041 # hardcode_minus_L: Not really in the search PATH, 14042 # but as the default location of the library. 14043 hardcode_minus_L_F77=yes 14044 ;; 14045 esac 14046 fi 14047 ;; 14048 14049 irix5* | irix6* | nonstopux*) 14050 if test "$GCC" = yes; then 14051 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' 14052 else 14053 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' 14054 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14055 fi 14056 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14057 hardcode_libdir_separator_F77=: 14058 link_all_deplibs_F77=yes 14059 ;; 14060 14061 netbsd* | knetbsd*-gnu) 14062 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14063 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14064 else 14065 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14066 fi 14067 hardcode_libdir_flag_spec_F77='-R$libdir' 14068 hardcode_direct_F77=yes 14069 hardcode_shlibpath_var_F77=no 14070 ;; 14071 14072 newsos6) 14073 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14074 hardcode_direct_F77=yes 14075 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14076 hardcode_libdir_separator_F77=: 14077 hardcode_shlibpath_var_F77=no 14078 ;; 14079 14080 openbsd*) 14081 hardcode_direct_F77=yes 14082 hardcode_shlibpath_var_F77=no 14083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14084 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14085 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14086 export_dynamic_flag_spec_F77='${wl}-E' 14087 else 14088 case $host_os in 14089 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14091 hardcode_libdir_flag_spec_F77='-R$libdir' 14092 ;; 14093 *) 14094 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14095 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14096 ;; 14097 esac 14098 fi 14099 ;; 14100 14101 os2*) 14102 hardcode_libdir_flag_spec_F77='-L$libdir' 14103 hardcode_minus_L_F77=yes 14104 allow_undefined_flag_F77=unsupported 14105 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' 14106 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14107 ;; 14108 14109 osf3*) 14110 if test "$GCC" = yes; then 14111 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14112 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' 14113 else 14114 allow_undefined_flag_F77=' -expect_unresolved \*' 14115 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' 14116 fi 14117 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14118 hardcode_libdir_separator_F77=: 14119 ;; 14120 14121 osf4* | osf5*) # as osf3* with the addition of -msym flag 14122 if test "$GCC" = yes; then 14123 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14124 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' 14125 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14126 else 14127 allow_undefined_flag_F77=' -expect_unresolved \*' 14128 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' 14129 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~ 14130 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 14131 14132 # Both c and cxx compiler support -rpath directly 14133 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14134 fi 14135 hardcode_libdir_separator_F77=: 14136 ;; 14137 14138 sco3.2v5*) 14139 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14140 hardcode_shlibpath_var_F77=no 14141 export_dynamic_flag_spec_F77='${wl}-Bexport' 14142 runpath_var=LD_RUN_PATH 14143 hardcode_runpath_var=yes 14144 ;; 14145 14146 solaris*) 14147 no_undefined_flag_F77=' -z text' 14148 if test "$GCC" = yes; then 14149 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14150 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14151 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14152 else 14153 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14154 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14155 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14156 fi 14157 hardcode_libdir_flag_spec_F77='-R$libdir' 14158 hardcode_shlibpath_var_F77=no 14159 case $host_os in 14160 solaris2.[0-5] | solaris2.[0-5].*) ;; 14161 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14162 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14163 esac 14164 link_all_deplibs_F77=yes 14165 ;; 14166 14167 sunos4*) 14168 if test "x$host_vendor" = xsequent; then 14169 # Use $CC to link under sequent, because it throws in some extra .o 14170 # files that make .init and .fini sections work. 14171 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14172 else 14173 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14174 fi 14175 hardcode_libdir_flag_spec_F77='-L$libdir' 14176 hardcode_direct_F77=yes 14177 hardcode_minus_L_F77=yes 14178 hardcode_shlibpath_var_F77=no 14179 ;; 14180 14181 sysv4) 14182 case $host_vendor in 14183 sni) 14184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14185 hardcode_direct_F77=yes # is this really true??? 14186 ;; 14187 siemens) 14188 ## LD is ld it makes a PLAMLIB 14189 ## CC just makes a GrossModule. 14190 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14191 reload_cmds_F77='$CC -r -o $output$reload_objs' 14192 hardcode_direct_F77=no 14193 ;; 14194 motorola) 14195 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14196 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14197 ;; 14198 esac 14199 runpath_var='LD_RUN_PATH' 14200 hardcode_shlibpath_var_F77=no 14201 ;; 14202 14203 sysv4.3*) 14204 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14205 hardcode_shlibpath_var_F77=no 14206 export_dynamic_flag_spec_F77='-Bexport' 14207 ;; 14208 14209 sysv4*MP*) 14210 if test -d /usr/nec; then 14211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14212 hardcode_shlibpath_var_F77=no 14213 runpath_var=LD_RUN_PATH 14214 hardcode_runpath_var=yes 14215 ld_shlibs_F77=yes 14216 fi 14217 ;; 14218 14219 sysv4.2uw2*) 14220 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14221 hardcode_direct_F77=yes 14222 hardcode_minus_L_F77=no 14223 hardcode_shlibpath_var_F77=no 14224 hardcode_runpath_var=yes 14225 runpath_var=LD_RUN_PATH 14226 ;; 14227 14228 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14229 no_undefined_flag_F77='${wl}-z ${wl}text' 14230 if test "$GCC" = yes; then 14231 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14232 else 14233 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14234 fi 14235 runpath_var='LD_RUN_PATH' 14236 hardcode_shlibpath_var_F77=no 14237 ;; 14238 14239 sysv5*) 14240 no_undefined_flag_F77=' -z text' 14241 # $CC -shared without GNU ld will not create a library from C++ 14242 # object files and a static libstdc++, better avoid it by now 14243 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14244 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14245 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14246 hardcode_libdir_flag_spec_F77= 14247 hardcode_shlibpath_var_F77=no 14248 runpath_var='LD_RUN_PATH' 14249 ;; 14250 14251 uts4*) 14252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14253 hardcode_libdir_flag_spec_F77='-L$libdir' 14254 hardcode_shlibpath_var_F77=no 14255 ;; 14256 14257 *) 14258 ld_shlibs_F77=no 14259 ;; 14260 esac 14261 fi 14262 14263echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14264echo "${ECHO_T}$ld_shlibs_F77" >&6 14265test "$ld_shlibs_F77" = no && can_build_shared=no 14266 14267variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14268if test "$GCC" = yes; then 14269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14270fi 14271 14272# 14273# Do we need to explicitly link libc? 14274# 14275case "x$archive_cmds_need_lc_F77" in 14276x|xyes) 14277 # Assume -lc should be added 14278 archive_cmds_need_lc_F77=yes 14279 14280 if test "$enable_shared" = yes && test "$GCC" = yes; then 14281 case $archive_cmds_F77 in 14282 *'~'*) 14283 # FIXME: we may have to deal with multi-command sequences. 14284 ;; 14285 '$CC '*) 14286 # Test whether the compiler implicitly links with -lc since on some 14287 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14288 # to ld, don't add -lc before -lgcc. 14289 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14290echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14291 $rm conftest* 14292 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14293 14294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14295 (eval $ac_compile) 2>&5 14296 ac_status=$? 14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14298 (exit $ac_status); } 2>conftest.err; then 14299 soname=conftest 14300 lib=conftest 14301 libobjs=conftest.$ac_objext 14302 deplibs= 14303 wl=$lt_prog_compiler_wl_F77 14304 compiler_flags=-v 14305 linker_flags=-v 14306 verstring= 14307 output_objdir=. 14308 libname=conftest 14309 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14310 allow_undefined_flag_F77= 14311 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14312 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14313 ac_status=$? 14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14315 (exit $ac_status); } 14316 then 14317 archive_cmds_need_lc_F77=no 14318 else 14319 archive_cmds_need_lc_F77=yes 14320 fi 14321 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14322 else 14323 cat conftest.err 1>&5 14324 fi 14325 $rm conftest* 14326 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14327echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14328 ;; 14329 esac 14330 fi 14331 ;; 14332esac 14333 14334echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14335echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14336library_names_spec= 14337libname_spec='lib$name' 14338soname_spec= 14339shrext_cmds=".so" 14340postinstall_cmds= 14341postuninstall_cmds= 14342finish_cmds= 14343finish_eval= 14344shlibpath_var= 14345shlibpath_overrides_runpath=unknown 14346version_type=none 14347dynamic_linker="$host_os ld.so" 14348sys_lib_dlsearch_path_spec="/lib /usr/lib" 14349if test "$GCC" = yes; then 14350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14351 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14352 # if the path contains ";" then we assume it to be the separator 14353 # otherwise default to the standard path separator (i.e. ":") - it is 14354 # assumed that no part of a normal pathname contains ";" but that should 14355 # okay in the real world where ";" in dirpaths is itself problematic. 14356 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14357 else 14358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14359 fi 14360else 14361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14362fi 14363need_lib_prefix=unknown 14364hardcode_into_libs=no 14365 14366# when you set need_version to no, make sure it does not cause -set_version 14367# flags to be left without arguments 14368need_version=unknown 14369 14370case $host_os in 14371aix3*) 14372 version_type=linux 14373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14374 shlibpath_var=LIBPATH 14375 14376 # AIX 3 has no versioning support, so we append a major version to the name. 14377 soname_spec='${libname}${release}${shared_ext}$major' 14378 ;; 14379 14380aix4* | aix5*) 14381 version_type=linux 14382 need_lib_prefix=no 14383 need_version=no 14384 hardcode_into_libs=yes 14385 if test "$host_cpu" = ia64; then 14386 # AIX 5 supports IA64 14387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14388 shlibpath_var=LD_LIBRARY_PATH 14389 else 14390 # With GCC up to 2.95.x, collect2 would create an import file 14391 # for dependence libraries. The import file would start with 14392 # the line `#! .'. This would cause the generated library to 14393 # depend on `.', always an invalid library. This was fixed in 14394 # development snapshots of GCC prior to 3.0. 14395 case $host_os in 14396 aix4 | aix4.[01] | aix4.[01].*) 14397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14398 echo ' yes ' 14399 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14400 : 14401 else 14402 can_build_shared=no 14403 fi 14404 ;; 14405 esac 14406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14407 # soname into executable. Probably we can add versioning support to 14408 # collect2, so additional links can be useful in future. 14409 if test "$aix_use_runtimelinking" = yes; then 14410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14411 # instead of lib<name>.a to let people know that these are not 14412 # typical AIX shared libraries. 14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14414 else 14415 # We preserve .a as extension for shared libraries through AIX4.2 14416 # and later when we are not doing run time linking. 14417 library_names_spec='${libname}${release}.a $libname.a' 14418 soname_spec='${libname}${release}${shared_ext}$major' 14419 fi 14420 shlibpath_var=LIBPATH 14421 fi 14422 ;; 14423 14424amigaos*) 14425 library_names_spec='$libname.ixlibrary $libname.a' 14426 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14427 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' 14428 ;; 14429 14430beos*) 14431 library_names_spec='${libname}${shared_ext}' 14432 dynamic_linker="$host_os ld.so" 14433 shlibpath_var=LIBRARY_PATH 14434 ;; 14435 14436bsdi4*) 14437 version_type=linux 14438 need_version=no 14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14440 soname_spec='${libname}${release}${shared_ext}$major' 14441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14442 shlibpath_var=LD_LIBRARY_PATH 14443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14445 # the default ld.so.conf also contains /usr/contrib/lib and 14446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14447 # libtool to hard-code these into programs 14448 ;; 14449 14450cygwin* | mingw* | pw32*) 14451 version_type=windows 14452 shrext_cmds=".dll" 14453 need_version=no 14454 need_lib_prefix=no 14455 14456 case $GCC,$host_os in 14457 yes,cygwin* | yes,mingw* | yes,pw32*) 14458 library_names_spec='$libname.dll.a' 14459 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14460 postinstall_cmds='base_file=`basename \${file}`~ 14461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14462 dldir=$destdir/`dirname \$dlpath`~ 14463 test -d \$dldir || mkdir -p \$dldir~ 14464 $install_prog $dir/$dlname \$dldir/$dlname' 14465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14466 dlpath=$dir/\$dldll~ 14467 $rm \$dlpath' 14468 shlibpath_overrides_runpath=yes 14469 14470 case $host_os in 14471 cygwin*) 14472 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14474 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14475 ;; 14476 mingw*) 14477 # MinGW DLLs use traditional 'lib' prefix 14478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14479 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14480 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14481 # It is most probably a Windows format PATH printed by 14482 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14483 # path with ; separators, and with drive letters. We can handle the 14484 # drive letters (cygwin fileutils understands them), so leave them, 14485 # especially as we might pass files found there to a mingw objdump, 14486 # which wouldn't understand a cygwinified path. Ahh. 14487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14488 else 14489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14490 fi 14491 ;; 14492 pw32*) 14493 # pw32 DLLs use 'pw' prefix rather than 'lib' 14494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14495 ;; 14496 esac 14497 ;; 14498 14499 *) 14500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14501 ;; 14502 esac 14503 dynamic_linker='Win32 ld.exe' 14504 # FIXME: first we should search . and the directory the executable is in 14505 shlibpath_var=PATH 14506 ;; 14507 14508darwin* | rhapsody*) 14509 dynamic_linker="$host_os dyld" 14510 version_type=darwin 14511 need_lib_prefix=no 14512 need_version=no 14513 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14514 soname_spec='${libname}${release}${major}$shared_ext' 14515 shlibpath_overrides_runpath=yes 14516 shlibpath_var=DYLD_LIBRARY_PATH 14517 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14518 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14519 if test "$GCC" = yes; then 14520 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"` 14521 else 14522 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14523 fi 14524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14525 ;; 14526 14527dgux*) 14528 version_type=linux 14529 need_lib_prefix=no 14530 need_version=no 14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14532 soname_spec='${libname}${release}${shared_ext}$major' 14533 shlibpath_var=LD_LIBRARY_PATH 14534 ;; 14535 14536freebsd1*) 14537 dynamic_linker=no 14538 ;; 14539 14540kfreebsd*-gnu) 14541 version_type=linux 14542 need_lib_prefix=no 14543 need_version=no 14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14545 soname_spec='${libname}${release}${shared_ext}$major' 14546 shlibpath_var=LD_LIBRARY_PATH 14547 shlibpath_overrides_runpath=no 14548 hardcode_into_libs=yes 14549 dynamic_linker='GNU ld.so' 14550 ;; 14551 14552freebsd*) 14553 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14554 version_type=freebsd-$objformat 14555 case $version_type in 14556 freebsd-elf*) 14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14558 need_version=no 14559 need_lib_prefix=no 14560 ;; 14561 freebsd-*) 14562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14563 need_version=yes 14564 ;; 14565 esac 14566 shlibpath_var=LD_LIBRARY_PATH 14567 case $host_os in 14568 freebsd2*) 14569 shlibpath_overrides_runpath=yes 14570 ;; 14571 freebsd3.01* | freebsdelf3.01*) 14572 shlibpath_overrides_runpath=yes 14573 hardcode_into_libs=yes 14574 ;; 14575 *) # from 3.2 on 14576 shlibpath_overrides_runpath=no 14577 hardcode_into_libs=yes 14578 ;; 14579 esac 14580 ;; 14581 14582gnu*) 14583 version_type=linux 14584 need_lib_prefix=no 14585 need_version=no 14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14587 soname_spec='${libname}${release}${shared_ext}$major' 14588 shlibpath_var=LD_LIBRARY_PATH 14589 hardcode_into_libs=yes 14590 ;; 14591 14592hpux9* | hpux10* | hpux11*) 14593 # Give a soname corresponding to the major version so that dld.sl refuses to 14594 # link against other versions. 14595 version_type=sunos 14596 need_lib_prefix=no 14597 need_version=no 14598 case "$host_cpu" in 14599 ia64*) 14600 shrext_cmds='.so' 14601 hardcode_into_libs=yes 14602 dynamic_linker="$host_os dld.so" 14603 shlibpath_var=LD_LIBRARY_PATH 14604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14606 soname_spec='${libname}${release}${shared_ext}$major' 14607 if test "X$HPUX_IA64_MODE" = X32; then 14608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14609 else 14610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14611 fi 14612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14613 ;; 14614 hppa*64*) 14615 shrext_cmds='.sl' 14616 hardcode_into_libs=yes 14617 dynamic_linker="$host_os dld.sl" 14618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14621 soname_spec='${libname}${release}${shared_ext}$major' 14622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14624 ;; 14625 *) 14626 shrext_cmds='.sl' 14627 dynamic_linker="$host_os dld.sl" 14628 shlibpath_var=SHLIB_PATH 14629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14631 soname_spec='${libname}${release}${shared_ext}$major' 14632 ;; 14633 esac 14634 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14635 postinstall_cmds='chmod 555 $lib' 14636 ;; 14637 14638irix5* | irix6* | nonstopux*) 14639 case $host_os in 14640 nonstopux*) version_type=nonstopux ;; 14641 *) 14642 if test "$lt_cv_prog_gnu_ld" = yes; then 14643 version_type=linux 14644 else 14645 version_type=irix 14646 fi ;; 14647 esac 14648 need_lib_prefix=no 14649 need_version=no 14650 soname_spec='${libname}${release}${shared_ext}$major' 14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14652 case $host_os in 14653 irix5* | nonstopux*) 14654 libsuff= shlibsuff= 14655 ;; 14656 *) 14657 case $LD in # libtool.m4 will add one of these switches to LD 14658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14659 libsuff= shlibsuff= libmagic=32-bit;; 14660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14661 libsuff=32 shlibsuff=N32 libmagic=N32;; 14662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14663 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14664 *) libsuff= shlibsuff= libmagic=never-match;; 14665 esac 14666 ;; 14667 esac 14668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14669 shlibpath_overrides_runpath=no 14670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14672 hardcode_into_libs=yes 14673 ;; 14674 14675# No shared lib support for Linux oldld, aout, or coff. 14676linux*oldld* | linux*aout* | linux*coff*) 14677 dynamic_linker=no 14678 ;; 14679 14680# This must be Linux ELF. 14681linux*) 14682 version_type=linux 14683 need_lib_prefix=no 14684 need_version=no 14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14686 soname_spec='${libname}${release}${shared_ext}$major' 14687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14688 shlibpath_var=LD_LIBRARY_PATH 14689 shlibpath_overrides_runpath=no 14690 # This implies no fast_install, which is unacceptable. 14691 # Some rework will be needed to allow for fast_install 14692 # before this can be enabled. 14693 hardcode_into_libs=yes 14694 14695 # Append ld.so.conf contents to the search path 14696 if test -f /etc/ld.so.conf; then 14697 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14699 fi 14700 14701 # We used to test for /lib/ld.so.1 and disable shared libraries on 14702 # powerpc, because MkLinux only supported shared libraries with the 14703 # GNU dynamic linker. Since this was broken with cross compilers, 14704 # most powerpc-linux boxes support dynamic linking these days and 14705 # people can always --disable-shared, the test was removed, and we 14706 # assume the GNU/Linux dynamic linker is in use. 14707 dynamic_linker='GNU/Linux ld.so' 14708 ;; 14709 14710knetbsd*-gnu) 14711 version_type=linux 14712 need_lib_prefix=no 14713 need_version=no 14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14715 soname_spec='${libname}${release}${shared_ext}$major' 14716 shlibpath_var=LD_LIBRARY_PATH 14717 shlibpath_overrides_runpath=no 14718 hardcode_into_libs=yes 14719 dynamic_linker='GNU ld.so' 14720 ;; 14721 14722netbsd*) 14723 version_type=sunos 14724 need_lib_prefix=no 14725 need_version=no 14726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14729 dynamic_linker='NetBSD (a.out) ld.so' 14730 else 14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14732 soname_spec='${libname}${release}${shared_ext}$major' 14733 dynamic_linker='NetBSD ld.elf_so' 14734 fi 14735 shlibpath_var=LD_LIBRARY_PATH 14736 shlibpath_overrides_runpath=yes 14737 hardcode_into_libs=yes 14738 ;; 14739 14740newsos6) 14741 version_type=linux 14742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14743 shlibpath_var=LD_LIBRARY_PATH 14744 shlibpath_overrides_runpath=yes 14745 ;; 14746 14747nto-qnx*) 14748 version_type=linux 14749 need_lib_prefix=no 14750 need_version=no 14751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14752 soname_spec='${libname}${release}${shared_ext}$major' 14753 shlibpath_var=LD_LIBRARY_PATH 14754 shlibpath_overrides_runpath=yes 14755 ;; 14756 14757openbsd*) 14758 version_type=sunos 14759 need_lib_prefix=no 14760 need_version=yes 14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14763 shlibpath_var=LD_LIBRARY_PATH 14764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14765 case $host_os in 14766 openbsd2.[89] | openbsd2.[89].*) 14767 shlibpath_overrides_runpath=no 14768 ;; 14769 *) 14770 shlibpath_overrides_runpath=yes 14771 ;; 14772 esac 14773 else 14774 shlibpath_overrides_runpath=yes 14775 fi 14776 ;; 14777 14778os2*) 14779 libname_spec='$name' 14780 shrext_cmds=".dll" 14781 need_lib_prefix=no 14782 library_names_spec='$libname${shared_ext} $libname.a' 14783 dynamic_linker='OS/2 ld.exe' 14784 shlibpath_var=LIBPATH 14785 ;; 14786 14787osf3* | osf4* | osf5*) 14788 version_type=osf 14789 need_lib_prefix=no 14790 need_version=no 14791 soname_spec='${libname}${release}${shared_ext}$major' 14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14793 shlibpath_var=LD_LIBRARY_PATH 14794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14796 ;; 14797 14798sco3.2v5*) 14799 version_type=osf 14800 soname_spec='${libname}${release}${shared_ext}$major' 14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14802 shlibpath_var=LD_LIBRARY_PATH 14803 ;; 14804 14805solaris*) 14806 version_type=linux 14807 need_lib_prefix=no 14808 need_version=no 14809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14810 soname_spec='${libname}${release}${shared_ext}$major' 14811 shlibpath_var=LD_LIBRARY_PATH 14812 shlibpath_overrides_runpath=yes 14813 hardcode_into_libs=yes 14814 # ldd complains unless libraries are executable 14815 postinstall_cmds='chmod +x $lib' 14816 ;; 14817 14818sunos4*) 14819 version_type=sunos 14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14822 shlibpath_var=LD_LIBRARY_PATH 14823 shlibpath_overrides_runpath=yes 14824 if test "$with_gnu_ld" = yes; then 14825 need_lib_prefix=no 14826 fi 14827 need_version=yes 14828 ;; 14829 14830sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14831 version_type=linux 14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14833 soname_spec='${libname}${release}${shared_ext}$major' 14834 shlibpath_var=LD_LIBRARY_PATH 14835 case $host_vendor in 14836 sni) 14837 shlibpath_overrides_runpath=no 14838 need_lib_prefix=no 14839 export_dynamic_flag_spec='${wl}-Blargedynsym' 14840 runpath_var=LD_RUN_PATH 14841 ;; 14842 siemens) 14843 need_lib_prefix=no 14844 ;; 14845 motorola) 14846 need_lib_prefix=no 14847 need_version=no 14848 shlibpath_overrides_runpath=no 14849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14850 ;; 14851 esac 14852 ;; 14853 14854sysv4*MP*) 14855 if test -d /usr/nec ;then 14856 version_type=linux 14857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14858 soname_spec='$libname${shared_ext}.$major' 14859 shlibpath_var=LD_LIBRARY_PATH 14860 fi 14861 ;; 14862 14863uts4*) 14864 version_type=linux 14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14866 soname_spec='${libname}${release}${shared_ext}$major' 14867 shlibpath_var=LD_LIBRARY_PATH 14868 ;; 14869 14870*) 14871 dynamic_linker=no 14872 ;; 14873esac 14874echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14875echo "${ECHO_T}$dynamic_linker" >&6 14876test "$dynamic_linker" = no && can_build_shared=no 14877 14878echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14879echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14880hardcode_action_F77= 14881if test -n "$hardcode_libdir_flag_spec_F77" || \ 14882 test -n "$runpath_var F77" || \ 14883 test "X$hardcode_automatic_F77"="Xyes" ; then 14884 14885 # We can hardcode non-existant directories. 14886 if test "$hardcode_direct_F77" != no && 14887 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14888 # have to relink, otherwise we might link with an installed library 14889 # when we should be linking with a yet-to-be-installed one 14890 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14891 test "$hardcode_minus_L_F77" != no; then 14892 # Linking always hardcodes the temporary library directory. 14893 hardcode_action_F77=relink 14894 else 14895 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14896 hardcode_action_F77=immediate 14897 fi 14898else 14899 # We cannot hardcode anything, or else we can only hardcode existing 14900 # directories. 14901 hardcode_action_F77=unsupported 14902fi 14903echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14904echo "${ECHO_T}$hardcode_action_F77" >&6 14905 14906if test "$hardcode_action_F77" = relink; then 14907 # Fast installation is not supported 14908 enable_fast_install=no 14909elif test "$shlibpath_overrides_runpath" = yes || 14910 test "$enable_shared" = no; then 14911 # Fast installation is not necessary 14912 enable_fast_install=needless 14913fi 14914 14915striplib= 14916old_striplib= 14917echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 14918echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 14919if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 14920 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14921 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14922 echo "$as_me:$LINENO: result: yes" >&5 14923echo "${ECHO_T}yes" >&6 14924else 14925# FIXME - insert some real tests, host_os isn't really good enough 14926 case $host_os in 14927 darwin*) 14928 if test -n "$STRIP" ; then 14929 striplib="$STRIP -x" 14930 echo "$as_me:$LINENO: result: yes" >&5 14931echo "${ECHO_T}yes" >&6 14932 else 14933 echo "$as_me:$LINENO: result: no" >&5 14934echo "${ECHO_T}no" >&6 14935fi 14936 ;; 14937 *) 14938 echo "$as_me:$LINENO: result: no" >&5 14939echo "${ECHO_T}no" >&6 14940 ;; 14941 esac 14942fi 14943 14944 14945 14946# The else clause should only fire when bootstrapping the 14947# libtool distribution, otherwise you forgot to ship ltmain.sh 14948# with your package, and you will get complaints that there are 14949# no rules to generate ltmain.sh. 14950if test -f "$ltmain"; then 14951 # See if we are running on zsh, and set the options which allow our commands through 14952 # without removal of \ escapes. 14953 if test -n "${ZSH_VERSION+set}" ; then 14954 setopt NO_GLOB_SUBST 14955 fi 14956 # Now quote all the things that may contain metacharacters while being 14957 # careful not to overquote the AC_SUBSTed values. We take copies of the 14958 # variables and quote the copies for generation of the libtool script. 14959 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 14960 SED SHELL STRIP \ 14961 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14962 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14963 deplibs_check_method reload_flag reload_cmds need_locks \ 14964 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14965 lt_cv_sys_global_symbol_to_c_name_address \ 14966 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14967 old_postinstall_cmds old_postuninstall_cmds \ 14968 compiler_F77 \ 14969 CC_F77 \ 14970 LD_F77 \ 14971 lt_prog_compiler_wl_F77 \ 14972 lt_prog_compiler_pic_F77 \ 14973 lt_prog_compiler_static_F77 \ 14974 lt_prog_compiler_no_builtin_flag_F77 \ 14975 export_dynamic_flag_spec_F77 \ 14976 thread_safe_flag_spec_F77 \ 14977 whole_archive_flag_spec_F77 \ 14978 enable_shared_with_static_runtimes_F77 \ 14979 old_archive_cmds_F77 \ 14980 old_archive_from_new_cmds_F77 \ 14981 predep_objects_F77 \ 14982 postdep_objects_F77 \ 14983 predeps_F77 \ 14984 postdeps_F77 \ 14985 compiler_lib_search_path_F77 \ 14986 archive_cmds_F77 \ 14987 archive_expsym_cmds_F77 \ 14988 postinstall_cmds_F77 \ 14989 postuninstall_cmds_F77 \ 14990 old_archive_from_expsyms_cmds_F77 \ 14991 allow_undefined_flag_F77 \ 14992 no_undefined_flag_F77 \ 14993 export_symbols_cmds_F77 \ 14994 hardcode_libdir_flag_spec_F77 \ 14995 hardcode_libdir_flag_spec_ld_F77 \ 14996 hardcode_libdir_separator_F77 \ 14997 hardcode_automatic_F77 \ 14998 module_cmds_F77 \ 14999 module_expsym_cmds_F77 \ 15000 lt_cv_prog_compiler_c_o_F77 \ 15001 exclude_expsyms_F77 \ 15002 include_expsyms_F77; do 15003 15004 case $var in 15005 old_archive_cmds_F77 | \ 15006 old_archive_from_new_cmds_F77 | \ 15007 archive_cmds_F77 | \ 15008 archive_expsym_cmds_F77 | \ 15009 module_cmds_F77 | \ 15010 module_expsym_cmds_F77 | \ 15011 old_archive_from_expsyms_cmds_F77 | \ 15012 export_symbols_cmds_F77 | \ 15013 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15014 postinstall_cmds | postuninstall_cmds | \ 15015 old_postinstall_cmds | old_postuninstall_cmds | \ 15016 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15017 # Double-quote double-evaled strings. 15018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15019 ;; 15020 *) 15021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15022 ;; 15023 esac 15024 done 15025 15026 case $lt_echo in 15027 *'\$0 --fallback-echo"') 15028 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15029 ;; 15030 esac 15031 15032cfgfile="$ofile" 15033 15034 cat <<__EOF__ >> "$cfgfile" 15035# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15036 15037# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15038 15039# Shell to use when invoking shell scripts. 15040SHELL=$lt_SHELL 15041 15042# Whether or not to build shared libraries. 15043build_libtool_libs=$enable_shared 15044 15045# Whether or not to build static libraries. 15046build_old_libs=$enable_static 15047 15048# Whether or not to add -lc for building shared libraries. 15049build_libtool_need_lc=$archive_cmds_need_lc_F77 15050 15051# Whether or not to disallow shared libs when runtime libs are static 15052allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15053 15054# Whether or not to optimize for fast installation. 15055fast_install=$enable_fast_install 15056 15057# The host system. 15058host_alias=$host_alias 15059host=$host 15060 15061# An echo program that does not interpret backslashes. 15062echo=$lt_echo 15063 15064# The archiver. 15065AR=$lt_AR 15066AR_FLAGS=$lt_AR_FLAGS 15067 15068# A C compiler. 15069LTCC=$lt_LTCC 15070 15071# A language-specific compiler. 15072CC=$lt_compiler_F77 15073 15074# Is the compiler the GNU C compiler? 15075with_gcc=$GCC_F77 15076 15077# An ERE matcher. 15078EGREP=$lt_EGREP 15079 15080# The linker used to build libraries. 15081LD=$lt_LD_F77 15082 15083# Whether we need hard or soft links. 15084LN_S=$lt_LN_S 15085 15086# A BSD-compatible nm program. 15087NM=$lt_NM 15088 15089# A symbol stripping program 15090STRIP=$lt_STRIP 15091 15092# Used to examine libraries when file_magic_cmd begins "file" 15093MAGIC_CMD=$MAGIC_CMD 15094 15095# Used on cygwin: DLL creation program. 15096DLLTOOL="$DLLTOOL" 15097 15098# Used on cygwin: object dumper. 15099OBJDUMP="$OBJDUMP" 15100 15101# Used on cygwin: assembler. 15102AS="$AS" 15103 15104# The name of the directory that contains temporary libtool files. 15105objdir=$objdir 15106 15107# How to create reloadable object files. 15108reload_flag=$lt_reload_flag 15109reload_cmds=$lt_reload_cmds 15110 15111# How to pass a linker flag through the compiler. 15112wl=$lt_lt_prog_compiler_wl_F77 15113 15114# Object file suffix (normally "o"). 15115objext="$ac_objext" 15116 15117# Old archive suffix (normally "a"). 15118libext="$libext" 15119 15120# Shared library suffix (normally ".so"). 15121shrext_cmds='$shrext_cmds' 15122 15123# Executable file suffix (normally ""). 15124exeext="$exeext" 15125 15126# Additional compiler flags for building library objects. 15127pic_flag=$lt_lt_prog_compiler_pic_F77 15128pic_mode=$pic_mode 15129 15130# What is the maximum length of a command? 15131max_cmd_len=$lt_cv_sys_max_cmd_len 15132 15133# Does compiler simultaneously support -c and -o options? 15134compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15135 15136# Must we lock files when doing compilation ? 15137need_locks=$lt_need_locks 15138 15139# Do we need the lib prefix for modules? 15140need_lib_prefix=$need_lib_prefix 15141 15142# Do we need a version for libraries? 15143need_version=$need_version 15144 15145# Whether dlopen is supported. 15146dlopen_support=$enable_dlopen 15147 15148# Whether dlopen of programs is supported. 15149dlopen_self=$enable_dlopen_self 15150 15151# Whether dlopen of statically linked programs is supported. 15152dlopen_self_static=$enable_dlopen_self_static 15153 15154# Compiler flag to prevent dynamic linking. 15155link_static_flag=$lt_lt_prog_compiler_static_F77 15156 15157# Compiler flag to turn off builtin functions. 15158no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15159 15160# Compiler flag to allow reflexive dlopens. 15161export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15162 15163# Compiler flag to generate shared objects directly from archives. 15164whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15165 15166# Compiler flag to generate thread-safe objects. 15167thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15168 15169# Library versioning type. 15170version_type=$version_type 15171 15172# Format of library name prefix. 15173libname_spec=$lt_libname_spec 15174 15175# List of archive names. First name is the real one, the rest are links. 15176# The last name is the one that the linker finds with -lNAME. 15177library_names_spec=$lt_library_names_spec 15178 15179# The coded name of the library, if different from the real name. 15180soname_spec=$lt_soname_spec 15181 15182# Commands used to build and install an old-style archive. 15183RANLIB=$lt_RANLIB 15184old_archive_cmds=$lt_old_archive_cmds_F77 15185old_postinstall_cmds=$lt_old_postinstall_cmds 15186old_postuninstall_cmds=$lt_old_postuninstall_cmds 15187 15188# Create an old-style archive from a shared archive. 15189old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15190 15191# Create a temporary old-style archive to link instead of a shared archive. 15192old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15193 15194# Commands used to build and install a shared archive. 15195archive_cmds=$lt_archive_cmds_F77 15196archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15197postinstall_cmds=$lt_postinstall_cmds 15198postuninstall_cmds=$lt_postuninstall_cmds 15199 15200# Commands used to build a loadable module (assumed same as above if empty) 15201module_cmds=$lt_module_cmds_F77 15202module_expsym_cmds=$lt_module_expsym_cmds_F77 15203 15204# Commands to strip libraries. 15205old_striplib=$lt_old_striplib 15206striplib=$lt_striplib 15207 15208# Dependencies to place before the objects being linked to create a 15209# shared library. 15210predep_objects=$lt_predep_objects_F77 15211 15212# Dependencies to place after the objects being linked to create a 15213# shared library. 15214postdep_objects=$lt_postdep_objects_F77 15215 15216# Dependencies to place before the objects being linked to create a 15217# shared library. 15218predeps=$lt_predeps_F77 15219 15220# Dependencies to place after the objects being linked to create a 15221# shared library. 15222postdeps=$lt_postdeps_F77 15223 15224# The library search path used internally by the compiler when linking 15225# a shared library. 15226compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15227 15228# Method to check whether dependent libraries are shared objects. 15229deplibs_check_method=$lt_deplibs_check_method 15230 15231# Command to use when deplibs_check_method == file_magic. 15232file_magic_cmd=$lt_file_magic_cmd 15233 15234# Flag that allows shared libraries with undefined symbols to be built. 15235allow_undefined_flag=$lt_allow_undefined_flag_F77 15236 15237# Flag that forces no undefined symbols. 15238no_undefined_flag=$lt_no_undefined_flag_F77 15239 15240# Commands used to finish a libtool library installation in a directory. 15241finish_cmds=$lt_finish_cmds 15242 15243# Same as above, but a single script fragment to be evaled but not shown. 15244finish_eval=$lt_finish_eval 15245 15246# Take the output of nm and produce a listing of raw symbols and C names. 15247global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15248 15249# Transform the output of nm in a proper C declaration 15250global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15251 15252# Transform the output of nm in a C name address pair 15253global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15254 15255# This is the shared library runtime path variable. 15256runpath_var=$runpath_var 15257 15258# This is the shared library path variable. 15259shlibpath_var=$shlibpath_var 15260 15261# Is shlibpath searched before the hard-coded library search path? 15262shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15263 15264# How to hardcode a shared library path into an executable. 15265hardcode_action=$hardcode_action_F77 15266 15267# Whether we should hardcode library paths into libraries. 15268hardcode_into_libs=$hardcode_into_libs 15269 15270# Flag to hardcode \$libdir into a binary during linking. 15271# This must work even if \$libdir does not exist. 15272hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15273 15274# If ld is used when linking, flag to hardcode \$libdir into 15275# a binary during linking. This must work even if \$libdir does 15276# not exist. 15277hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15278 15279# Whether we need a single -rpath flag with a separated argument. 15280hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15281 15282# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15283# resulting binary. 15284hardcode_direct=$hardcode_direct_F77 15285 15286# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15287# resulting binary. 15288hardcode_minus_L=$hardcode_minus_L_F77 15289 15290# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15291# the resulting binary. 15292hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15293 15294# Set to yes if building a shared library automatically hardcodes DIR into the library 15295# and all subsequent libraries and executables linked against it. 15296hardcode_automatic=$hardcode_automatic_F77 15297 15298# Variables whose values should be saved in libtool wrapper scripts and 15299# restored at relink time. 15300variables_saved_for_relink="$variables_saved_for_relink" 15301 15302# Whether libtool must link a program against all its dependency libraries. 15303link_all_deplibs=$link_all_deplibs_F77 15304 15305# Compile-time system search path for libraries 15306sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15307 15308# Run-time system search path for libraries 15309sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15310 15311# Fix the shell variable \$srcfile for the compiler. 15312fix_srcfile_path="$fix_srcfile_path_F77" 15313 15314# Set to yes if exported symbols are required. 15315always_export_symbols=$always_export_symbols_F77 15316 15317# The commands to list exported symbols. 15318export_symbols_cmds=$lt_export_symbols_cmds_F77 15319 15320# The commands to extract the exported symbol list from a shared archive. 15321extract_expsyms_cmds=$lt_extract_expsyms_cmds 15322 15323# Symbols that should not be listed in the preloaded symbols. 15324exclude_expsyms=$lt_exclude_expsyms_F77 15325 15326# Symbols that must always be exported. 15327include_expsyms=$lt_include_expsyms_F77 15328 15329# ### END LIBTOOL TAG CONFIG: $tagname 15330 15331__EOF__ 15332 15333 15334else 15335 # If there is no Makefile yet, we rely on a make rule to execute 15336 # `config.status --recheck' to rerun these tests and create the 15337 # libtool script then. 15338 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15339 if test -f "$ltmain_in"; then 15340 test -f Makefile && make "$ltmain" 15341 fi 15342fi 15343 15344 15345ac_ext=c 15346ac_cpp='$CPP $CPPFLAGS' 15347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15349ac_compiler_gnu=$ac_cv_c_compiler_gnu 15350 15351CC="$lt_save_CC" 15352 15353 else 15354 tagname="" 15355 fi 15356 ;; 15357 15358 GCJ) 15359 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15360 15361 15362 15363# Source file extension for Java test sources. 15364ac_ext=java 15365 15366# Object file extension for compiled Java test sources. 15367objext=o 15368objext_GCJ=$objext 15369 15370# Code to be used in simple compile tests 15371lt_simple_compile_test_code="class foo {}\n" 15372 15373# Code to be used in simple link tests 15374lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15375 15376# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15377 15378# If no C compiler was specified, use CC. 15379LTCC=${LTCC-"$CC"} 15380 15381# Allow CC to be a program name with arguments. 15382compiler=$CC 15383 15384 15385# Allow CC to be a program name with arguments. 15386lt_save_CC="$CC" 15387CC=${GCJ-"gcj"} 15388compiler=$CC 15389compiler_GCJ=$CC 15390 15391# GCJ did not exist at the time GCC didn't implicitly link libc in. 15392archive_cmds_need_lc_GCJ=no 15393 15394 15395lt_prog_compiler_no_builtin_flag_GCJ= 15396 15397if test "$GCC" = yes; then 15398 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15399 15400 15401echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15402echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15403if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15404 echo $ECHO_N "(cached) $ECHO_C" >&6 15405else 15406 lt_cv_prog_compiler_rtti_exceptions=no 15407 ac_outfile=conftest.$ac_objext 15408 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15409 lt_compiler_flag="-fno-rtti -fno-exceptions" 15410 # Insert the option either (1) after the last *FLAGS variable, or 15411 # (2) before a word containing "conftest.", or (3) at the end. 15412 # Note that $ac_compile itself does not contain backslashes and begins 15413 # with a dollar sign (not a hyphen), so the echo should work correctly. 15414 # The option is referenced via a variable to avoid confusing sed. 15415 lt_compile=`echo "$ac_compile" | $SED \ 15416 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15418 -e 's:$: $lt_compiler_flag:'` 15419 (eval echo "\"\$as_me:15419: $lt_compile\"" >&5) 15420 (eval "$lt_compile" 2>conftest.err) 15421 ac_status=$? 15422 cat conftest.err >&5 15423 echo "$as_me:15423: \$? = $ac_status" >&5 15424 if (exit $ac_status) && test -s "$ac_outfile"; then 15425 # The compiler can only warn and ignore the option if not recognized 15426 # So say no if there are warnings 15427 if test ! -s conftest.err; then 15428 lt_cv_prog_compiler_rtti_exceptions=yes 15429 fi 15430 fi 15431 $rm conftest* 15432 15433fi 15434echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15435echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15436 15437if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15438 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15439else 15440 : 15441fi 15442 15443fi 15444 15445lt_prog_compiler_wl_GCJ= 15446lt_prog_compiler_pic_GCJ= 15447lt_prog_compiler_static_GCJ= 15448 15449echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15450echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15451 15452 if test "$GCC" = yes; then 15453 lt_prog_compiler_wl_GCJ='-Wl,' 15454 lt_prog_compiler_static_GCJ='-static' 15455 15456 case $host_os in 15457 aix*) 15458 # All AIX code is PIC. 15459 if test "$host_cpu" = ia64; then 15460 # AIX 5 now supports IA64 processor 15461 lt_prog_compiler_static_GCJ='-Bstatic' 15462 fi 15463 ;; 15464 15465 amigaos*) 15466 # FIXME: we need at least 68020 code to build shared libraries, but 15467 # adding the `-m68020' flag to GCC prevents building anything better, 15468 # like `-m68040'. 15469 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15470 ;; 15471 15472 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15473 # PIC is the default for these OSes. 15474 ;; 15475 15476 mingw* | pw32* | os2*) 15477 # This hack is so that the source file can tell whether it is being 15478 # built for inclusion in a dll (and should export symbols for example). 15479 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15480 ;; 15481 15482 darwin* | rhapsody*) 15483 # PIC is the default on this platform 15484 # Common symbols not allowed in MH_DYLIB files 15485 lt_prog_compiler_pic_GCJ='-fno-common' 15486 ;; 15487 15488 msdosdjgpp*) 15489 # Just because we use GCC doesn't mean we suddenly get shared libraries 15490 # on systems that don't support them. 15491 lt_prog_compiler_can_build_shared_GCJ=no 15492 enable_shared=no 15493 ;; 15494 15495 sysv4*MP*) 15496 if test -d /usr/nec; then 15497 lt_prog_compiler_pic_GCJ=-Kconform_pic 15498 fi 15499 ;; 15500 15501 hpux*) 15502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15503 # not for PA HP-UX. 15504 case "$host_cpu" in 15505 hppa*64*|ia64*) 15506 # +Z the default 15507 ;; 15508 *) 15509 lt_prog_compiler_pic_GCJ='-fPIC' 15510 ;; 15511 esac 15512 ;; 15513 15514 *) 15515 lt_prog_compiler_pic_GCJ='-fPIC' 15516 ;; 15517 esac 15518 else 15519 # PORTME Check for flag to pass linker flags through the system compiler. 15520 case $host_os in 15521 aix*) 15522 lt_prog_compiler_wl_GCJ='-Wl,' 15523 if test "$host_cpu" = ia64; then 15524 # AIX 5 now supports IA64 processor 15525 lt_prog_compiler_static_GCJ='-Bstatic' 15526 else 15527 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15528 fi 15529 ;; 15530 15531 mingw* | pw32* | os2*) 15532 # This hack is so that the source file can tell whether it is being 15533 # built for inclusion in a dll (and should export symbols for example). 15534 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15535 ;; 15536 15537 hpux9* | hpux10* | hpux11*) 15538 lt_prog_compiler_wl_GCJ='-Wl,' 15539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15540 # not for PA HP-UX. 15541 case "$host_cpu" in 15542 hppa*64*|ia64*) 15543 # +Z the default 15544 ;; 15545 *) 15546 lt_prog_compiler_pic_GCJ='+Z' 15547 ;; 15548 esac 15549 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15550 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15551 ;; 15552 15553 irix5* | irix6* | nonstopux*) 15554 lt_prog_compiler_wl_GCJ='-Wl,' 15555 # PIC (with -KPIC) is the default. 15556 lt_prog_compiler_static_GCJ='-non_shared' 15557 ;; 15558 15559 newsos6) 15560 lt_prog_compiler_pic_GCJ='-KPIC' 15561 lt_prog_compiler_static_GCJ='-Bstatic' 15562 ;; 15563 15564 linux*) 15565 case $CC in 15566 icc* | ecc*) 15567 lt_prog_compiler_wl_GCJ='-Wl,' 15568 lt_prog_compiler_pic_GCJ='-KPIC' 15569 lt_prog_compiler_static_GCJ='-static' 15570 ;; 15571 ccc*) 15572 lt_prog_compiler_wl_GCJ='-Wl,' 15573 # All Alpha code is PIC. 15574 lt_prog_compiler_static_GCJ='-non_shared' 15575 ;; 15576 esac 15577 ;; 15578 15579 osf3* | osf4* | osf5*) 15580 lt_prog_compiler_wl_GCJ='-Wl,' 15581 # All OSF/1 code is PIC. 15582 lt_prog_compiler_static_GCJ='-non_shared' 15583 ;; 15584 15585 sco3.2v5*) 15586 lt_prog_compiler_pic_GCJ='-Kpic' 15587 lt_prog_compiler_static_GCJ='-dn' 15588 ;; 15589 15590 solaris*) 15591 lt_prog_compiler_wl_GCJ='-Wl,' 15592 lt_prog_compiler_pic_GCJ='-KPIC' 15593 lt_prog_compiler_static_GCJ='-Bstatic' 15594 ;; 15595 15596 sunos4*) 15597 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15598 lt_prog_compiler_pic_GCJ='-PIC' 15599 lt_prog_compiler_static_GCJ='-Bstatic' 15600 ;; 15601 15602 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15603 lt_prog_compiler_wl_GCJ='-Wl,' 15604 lt_prog_compiler_pic_GCJ='-KPIC' 15605 lt_prog_compiler_static_GCJ='-Bstatic' 15606 ;; 15607 15608 sysv4*MP*) 15609 if test -d /usr/nec ;then 15610 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15611 lt_prog_compiler_static_GCJ='-Bstatic' 15612 fi 15613 ;; 15614 15615 uts4*) 15616 lt_prog_compiler_pic_GCJ='-pic' 15617 lt_prog_compiler_static_GCJ='-Bstatic' 15618 ;; 15619 15620 *) 15621 lt_prog_compiler_can_build_shared_GCJ=no 15622 ;; 15623 esac 15624 fi 15625 15626echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15627echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15628 15629# 15630# Check to make sure the PIC flag actually works. 15631# 15632if test -n "$lt_prog_compiler_pic_GCJ"; then 15633 15634echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15635echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15636if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15637 echo $ECHO_N "(cached) $ECHO_C" >&6 15638else 15639 lt_prog_compiler_pic_works_GCJ=no 15640 ac_outfile=conftest.$ac_objext 15641 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15642 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15643 # Insert the option either (1) after the last *FLAGS variable, or 15644 # (2) before a word containing "conftest.", or (3) at the end. 15645 # Note that $ac_compile itself does not contain backslashes and begins 15646 # with a dollar sign (not a hyphen), so the echo should work correctly. 15647 # The option is referenced via a variable to avoid confusing sed. 15648 lt_compile=`echo "$ac_compile" | $SED \ 15649 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15651 -e 's:$: $lt_compiler_flag:'` 15652 (eval echo "\"\$as_me:15652: $lt_compile\"" >&5) 15653 (eval "$lt_compile" 2>conftest.err) 15654 ac_status=$? 15655 cat conftest.err >&5 15656 echo "$as_me:15656: \$? = $ac_status" >&5 15657 if (exit $ac_status) && test -s "$ac_outfile"; then 15658 # The compiler can only warn and ignore the option if not recognized 15659 # So say no if there are warnings 15660 if test ! -s conftest.err; then 15661 lt_prog_compiler_pic_works_GCJ=yes 15662 fi 15663 fi 15664 $rm conftest* 15665 15666fi 15667echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15668echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15669 15670if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15671 case $lt_prog_compiler_pic_GCJ in 15672 "" | " "*) ;; 15673 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15674 esac 15675else 15676 lt_prog_compiler_pic_GCJ= 15677 lt_prog_compiler_can_build_shared_GCJ=no 15678fi 15679 15680fi 15681case "$host_os" in 15682 # For platforms which do not support PIC, -DPIC is meaningless: 15683 *djgpp*) 15684 lt_prog_compiler_pic_GCJ= 15685 ;; 15686 *) 15687 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15688 ;; 15689esac 15690 15691echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15692echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15693if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15694 echo $ECHO_N "(cached) $ECHO_C" >&6 15695else 15696 lt_cv_prog_compiler_c_o_GCJ=no 15697 $rm -r conftest 2>/dev/null 15698 mkdir conftest 15699 cd conftest 15700 mkdir out 15701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15702 15703 lt_compiler_flag="-o out/conftest2.$ac_objext" 15704 # Insert the option either (1) after the last *FLAGS variable, or 15705 # (2) before a word containing "conftest.", or (3) at the end. 15706 # Note that $ac_compile itself does not contain backslashes and begins 15707 # with a dollar sign (not a hyphen), so the echo should work correctly. 15708 lt_compile=`echo "$ac_compile" | $SED \ 15709 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15711 -e 's:$: $lt_compiler_flag:'` 15712 (eval echo "\"\$as_me:15712: $lt_compile\"" >&5) 15713 (eval "$lt_compile" 2>out/conftest.err) 15714 ac_status=$? 15715 cat out/conftest.err >&5 15716 echo "$as_me:15716: \$? = $ac_status" >&5 15717 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15718 then 15719 # The compiler can only warn and ignore the option if not recognized 15720 # So say no if there are warnings 15721 if test ! -s out/conftest.err; then 15722 lt_cv_prog_compiler_c_o_GCJ=yes 15723 fi 15724 fi 15725 chmod u+w . 15726 $rm conftest* 15727 # SGI C++ compiler will create directory out/ii_files/ for 15728 # template instantiation 15729 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15730 $rm out/* && rmdir out 15731 cd .. 15732 rmdir conftest 15733 $rm conftest* 15734 15735fi 15736echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15737echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15738 15739 15740hard_links="nottested" 15741if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15742 # do not overwrite the value of need_locks provided by the user 15743 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15744echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15745 hard_links=yes 15746 $rm conftest* 15747 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15748 touch conftest.a 15749 ln conftest.a conftest.b 2>&5 || hard_links=no 15750 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15751 echo "$as_me:$LINENO: result: $hard_links" >&5 15752echo "${ECHO_T}$hard_links" >&6 15753 if test "$hard_links" = no; then 15754 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15755echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15756 need_locks=warn 15757 fi 15758else 15759 need_locks=no 15760fi 15761 15762echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15763echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15764 15765 runpath_var= 15766 allow_undefined_flag_GCJ= 15767 enable_shared_with_static_runtimes_GCJ=no 15768 archive_cmds_GCJ= 15769 archive_expsym_cmds_GCJ= 15770 old_archive_From_new_cmds_GCJ= 15771 old_archive_from_expsyms_cmds_GCJ= 15772 export_dynamic_flag_spec_GCJ= 15773 whole_archive_flag_spec_GCJ= 15774 thread_safe_flag_spec_GCJ= 15775 hardcode_libdir_flag_spec_GCJ= 15776 hardcode_libdir_flag_spec_ld_GCJ= 15777 hardcode_libdir_separator_GCJ= 15778 hardcode_direct_GCJ=no 15779 hardcode_minus_L_GCJ=no 15780 hardcode_shlibpath_var_GCJ=unsupported 15781 link_all_deplibs_GCJ=unknown 15782 hardcode_automatic_GCJ=no 15783 module_cmds_GCJ= 15784 module_expsym_cmds_GCJ= 15785 always_export_symbols_GCJ=no 15786 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15787 # include_expsyms should be a list of space-separated symbols to be *always* 15788 # included in the symbol list 15789 include_expsyms_GCJ= 15790 # exclude_expsyms can be an extended regexp of symbols to exclude 15791 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15792 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15793 # as well as any symbol that contains `d'. 15794 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15795 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15796 # platforms (ab)use it in PIC code, but their linkers get confused if 15797 # the symbol is explicitly referenced. Since portable code cannot 15798 # rely on this symbol name, it's probably fine to never include it in 15799 # preloaded symbol tables. 15800 extract_expsyms_cmds= 15801 15802 case $host_os in 15803 cygwin* | mingw* | pw32*) 15804 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15805 # When not using gcc, we currently assume that we are using 15806 # Microsoft Visual C++. 15807 if test "$GCC" != yes; then 15808 with_gnu_ld=no 15809 fi 15810 ;; 15811 openbsd*) 15812 with_gnu_ld=no 15813 ;; 15814 esac 15815 15816 ld_shlibs_GCJ=yes 15817 if test "$with_gnu_ld" = yes; then 15818 # If archive_cmds runs LD, not CC, wlarc should be empty 15819 wlarc='${wl}' 15820 15821 # See if GNU ld supports shared libraries. 15822 case $host_os in 15823 aix3* | aix4* | aix5*) 15824 # On AIX/PPC, the GNU linker is very broken 15825 if test "$host_cpu" != ia64; then 15826 ld_shlibs_GCJ=no 15827 cat <<EOF 1>&2 15828 15829*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15830*** to be unable to reliably create shared libraries on AIX. 15831*** Therefore, libtool is disabling shared libraries support. If you 15832*** really care for shared libraries, you may want to modify your PATH 15833*** so that a non-GNU linker is found, and then restart. 15834 15835EOF 15836 fi 15837 ;; 15838 15839 amigaos*) 15840 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)' 15841 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15842 hardcode_minus_L_GCJ=yes 15843 15844 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15845 # that the semantics of dynamic libraries on AmigaOS, at least up 15846 # to version 4, is to share data among multiple programs linked 15847 # with the same dynamic library. Since this doesn't match the 15848 # behavior of shared libraries on other platforms, we can't use 15849 # them. 15850 ld_shlibs_GCJ=no 15851 ;; 15852 15853 beos*) 15854 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15855 allow_undefined_flag_GCJ=unsupported 15856 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15857 # support --undefined. This deserves some investigation. FIXME 15858 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15859 else 15860 ld_shlibs_GCJ=no 15861 fi 15862 ;; 15863 15864 cygwin* | mingw* | pw32*) 15865 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15866 # as there is no search path for DLLs. 15867 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15868 allow_undefined_flag_GCJ=unsupported 15869 always_export_symbols_GCJ=no 15870 enable_shared_with_static_runtimes_GCJ=yes 15871 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15872 15873 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15874 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15875 # If the export-symbols file already is a .def file (1st line 15876 # is EXPORTS), use it as is; otherwise, prepend... 15877 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15878 cp $export_symbols $output_objdir/$soname.def; 15879 else 15880 echo EXPORTS > $output_objdir/$soname.def; 15881 cat $export_symbols >> $output_objdir/$soname.def; 15882 fi~ 15883 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15884 else 15885 ld_shlibs=no 15886 fi 15887 ;; 15888 15889 netbsd* | knetbsd*-gnu) 15890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15891 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15892 wlarc= 15893 else 15894 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15895 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15896 fi 15897 ;; 15898 15899 solaris* | sysv5*) 15900 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15901 ld_shlibs_GCJ=no 15902 cat <<EOF 1>&2 15903 15904*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15905*** create shared libraries on Solaris systems. Therefore, libtool 15906*** is disabling shared libraries support. We urge you to upgrade GNU 15907*** binutils to release 2.9.1 or newer. Another option is to modify 15908*** your PATH or compiler configuration so that the native linker is 15909*** used, and then restart. 15910 15911EOF 15912 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15913 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15914 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15915 else 15916 ld_shlibs_GCJ=no 15917 fi 15918 ;; 15919 15920 sunos4*) 15921 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15922 wlarc= 15923 hardcode_direct_GCJ=yes 15924 hardcode_shlibpath_var_GCJ=no 15925 ;; 15926 15927 linux*) 15928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15929 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15930 archive_cmds_GCJ="$tmp_archive_cmds" 15931 supports_anon_versioning=no 15932 case `$LD -v 2>/dev/null` in 15933 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15934 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15935 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15936 *\ 2.11.*) ;; # other 2.11 versions 15937 *) supports_anon_versioning=yes ;; 15938 esac 15939 if test $supports_anon_versioning = yes; then 15940 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 15941cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15942$echo "local: *; };" >> $output_objdir/$libname.ver~ 15943 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15944 else 15945 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 15946 fi 15947 link_all_deplibs_GCJ=no 15948 else 15949 ld_shlibs_GCJ=no 15950 fi 15951 ;; 15952 15953 *) 15954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15955 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15956 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15957 else 15958 ld_shlibs_GCJ=no 15959 fi 15960 ;; 15961 esac 15962 15963 if test "$ld_shlibs_GCJ" = yes; then 15964 runpath_var=LD_RUN_PATH 15965 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15966 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15967 # ancient GNU ld didn't support --whole-archive et. al. 15968 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15969 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15970 else 15971 whole_archive_flag_spec_GCJ= 15972 fi 15973 fi 15974 else 15975 # PORTME fill in a description of your system's linker (not GNU ld) 15976 case $host_os in 15977 aix3*) 15978 allow_undefined_flag_GCJ=unsupported 15979 always_export_symbols_GCJ=yes 15980 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' 15981 # Note: this linker hardcodes the directories in LIBPATH if there 15982 # are no directories specified by -L. 15983 hardcode_minus_L_GCJ=yes 15984 if test "$GCC" = yes && test -z "$link_static_flag"; then 15985 # Neither direct hardcoding nor static linking is supported with a 15986 # broken collect2. 15987 hardcode_direct_GCJ=unsupported 15988 fi 15989 ;; 15990 15991 aix4* | aix5*) 15992 if test "$host_cpu" = ia64; then 15993 # On IA64, the linker does run time linking by default, so we don't 15994 # have to do anything special. 15995 aix_use_runtimelinking=no 15996 exp_sym_flag='-Bexport' 15997 no_entry_flag="" 15998 else 15999 # If we're using GNU nm, then we don't want the "-C" option. 16000 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16001 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16002 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' 16003 else 16004 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' 16005 fi 16006 aix_use_runtimelinking=no 16007 16008 # Test if we are trying to use run time linking or normal 16009 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16010 # need to do runtime linking. 16011 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16012 for ld_flag in $LDFLAGS; do 16013 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16014 aix_use_runtimelinking=yes 16015 break 16016 fi 16017 done 16018 esac 16019 16020 exp_sym_flag='-bexport' 16021 no_entry_flag='-bnoentry' 16022 fi 16023 16024 # When large executables or shared objects are built, AIX ld can 16025 # have problems creating the table of contents. If linking a library 16026 # or program results in "error TOC overflow" add -mminimal-toc to 16027 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16028 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16029 16030 archive_cmds_GCJ='' 16031 hardcode_direct_GCJ=yes 16032 hardcode_libdir_separator_GCJ=':' 16033 link_all_deplibs_GCJ=yes 16034 16035 if test "$GCC" = yes; then 16036 case $host_os in aix4.012|aix4.012.*) 16037 # We only want to do this on AIX 4.2 and lower, the check 16038 # below for broken collect2 doesn't work under 4.3+ 16039 collect2name=`${CC} -print-prog-name=collect2` 16040 if test -f "$collect2name" && \ 16041 strings "$collect2name" | grep resolve_lib_name >/dev/null 16042 then 16043 # We have reworked collect2 16044 hardcode_direct_GCJ=yes 16045 else 16046 # We have old collect2 16047 hardcode_direct_GCJ=unsupported 16048 # It fails to find uninstalled libraries when the uninstalled 16049 # path is not listed in the libpath. Setting hardcode_minus_L 16050 # to unsupported forces relinking 16051 hardcode_minus_L_GCJ=yes 16052 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16053 hardcode_libdir_separator_GCJ= 16054 fi 16055 esac 16056 shared_flag='-shared' 16057 else 16058 # not using gcc 16059 if test "$host_cpu" = ia64; then 16060 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16061 # chokes on -Wl,-G. The following line is correct: 16062 shared_flag='-G' 16063 else 16064 if test "$aix_use_runtimelinking" = yes; then 16065 shared_flag='${wl}-G' 16066 else 16067 shared_flag='${wl}-bM:SRE' 16068 fi 16069 fi 16070 fi 16071 16072 # It seems that -bexpall does not export symbols beginning with 16073 # underscore (_), so it is better to generate a list of symbols to export. 16074 always_export_symbols_GCJ=yes 16075 if test "$aix_use_runtimelinking" = yes; then 16076 # Warning - without using the other runtime loading flags (-brtl), 16077 # -berok will link without error, but may produce a broken library. 16078 allow_undefined_flag_GCJ='-berok' 16079 # Determine the default libpath from the value encoded in an empty executable. 16080 cat >conftest.$ac_ext <<_ACEOF 16081/* confdefs.h. */ 16082_ACEOF 16083cat confdefs.h >>conftest.$ac_ext 16084cat >>conftest.$ac_ext <<_ACEOF 16085/* end confdefs.h. */ 16086 16087int 16088main () 16089{ 16090 16091 ; 16092 return 0; 16093} 16094_ACEOF 16095rm -f conftest.$ac_objext conftest$ac_exeext 16096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16097 (eval $ac_link) 2>conftest.er1 16098 ac_status=$? 16099 grep -v '^ *+' conftest.er1 >conftest.err 16100 rm -f conftest.er1 16101 cat conftest.err >&5 16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16103 (exit $ac_status); } && 16104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16106 (eval $ac_try) 2>&5 16107 ac_status=$? 16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16109 (exit $ac_status); }; } && 16110 { ac_try='test -s conftest$ac_exeext' 16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16112 (eval $ac_try) 2>&5 16113 ac_status=$? 16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16115 (exit $ac_status); }; }; then 16116 16117aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16118}'` 16119# Check for a 64-bit object if we didn't find anything. 16120if 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; } 16121}'`; fi 16122else 16123 echo "$as_me: failed program was:" >&5 16124sed 's/^/| /' conftest.$ac_ext >&5 16125 16126fi 16127rm -f conftest.err conftest.$ac_objext \ 16128 conftest$ac_exeext conftest.$ac_ext 16129if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16130 16131 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16132 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" 16133 else 16134 if test "$host_cpu" = ia64; then 16135 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16136 allow_undefined_flag_GCJ="-z nodefs" 16137 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" 16138 else 16139 # Determine the default libpath from the value encoded in an empty executable. 16140 cat >conftest.$ac_ext <<_ACEOF 16141/* confdefs.h. */ 16142_ACEOF 16143cat confdefs.h >>conftest.$ac_ext 16144cat >>conftest.$ac_ext <<_ACEOF 16145/* end confdefs.h. */ 16146 16147int 16148main () 16149{ 16150 16151 ; 16152 return 0; 16153} 16154_ACEOF 16155rm -f conftest.$ac_objext conftest$ac_exeext 16156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16157 (eval $ac_link) 2>conftest.er1 16158 ac_status=$? 16159 grep -v '^ *+' conftest.er1 >conftest.err 16160 rm -f conftest.er1 16161 cat conftest.err >&5 16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16163 (exit $ac_status); } && 16164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16166 (eval $ac_try) 2>&5 16167 ac_status=$? 16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16169 (exit $ac_status); }; } && 16170 { ac_try='test -s conftest$ac_exeext' 16171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16172 (eval $ac_try) 2>&5 16173 ac_status=$? 16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16175 (exit $ac_status); }; }; then 16176 16177aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16178}'` 16179# Check for a 64-bit object if we didn't find anything. 16180if 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; } 16181}'`; fi 16182else 16183 echo "$as_me: failed program was:" >&5 16184sed 's/^/| /' conftest.$ac_ext >&5 16185 16186fi 16187rm -f conftest.err conftest.$ac_objext \ 16188 conftest$ac_exeext conftest.$ac_ext 16189if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16190 16191 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16192 # Warning - without using the other run time loading flags, 16193 # -berok will link without error, but may produce a broken library. 16194 no_undefined_flag_GCJ=' ${wl}-bernotok' 16195 allow_undefined_flag_GCJ=' ${wl}-berok' 16196 # -bexpall does not export symbols beginning with underscore (_) 16197 always_export_symbols_GCJ=yes 16198 # Exported symbols can be pulled into shared objects from archives 16199 whole_archive_flag_spec_GCJ=' ' 16200 archive_cmds_need_lc_GCJ=yes 16201 # This is similar to how AIX traditionally builds it's shared libraries. 16202 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' 16203 fi 16204 fi 16205 ;; 16206 16207 amigaos*) 16208 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)' 16209 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16210 hardcode_minus_L_GCJ=yes 16211 # see comment about different semantics on the GNU ld section 16212 ld_shlibs_GCJ=no 16213 ;; 16214 16215 bsdi4*) 16216 export_dynamic_flag_spec_GCJ=-rdynamic 16217 ;; 16218 16219 cygwin* | mingw* | pw32*) 16220 # When not using gcc, we currently assume that we are using 16221 # Microsoft Visual C++. 16222 # hardcode_libdir_flag_spec is actually meaningless, as there is 16223 # no search path for DLLs. 16224 hardcode_libdir_flag_spec_GCJ=' ' 16225 allow_undefined_flag_GCJ=unsupported 16226 # Tell ltmain to make .lib files, not .a files. 16227 libext=lib 16228 # Tell ltmain to make .dll files, not .so files. 16229 shrext_cmds=".dll" 16230 # FIXME: Setting linknames here is a bad hack. 16231 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16232 # The linker will automatically build a .lib file if we build a DLL. 16233 old_archive_From_new_cmds_GCJ='true' 16234 # FIXME: Should let the user specify the lib program. 16235 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16236 fix_srcfile_path='`cygpath -w "$srcfile"`' 16237 enable_shared_with_static_runtimes_GCJ=yes 16238 ;; 16239 16240 darwin* | rhapsody*) 16241 if test "$GXX" = yes ; then 16242 archive_cmds_need_lc_GCJ=no 16243 case "$host_os" in 16244 rhapsody* | darwin1.[012]) 16245 allow_undefined_flag_GCJ='-undefined suppress' 16246 ;; 16247 *) # Darwin 1.3 on 16248 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16249 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16250 else 16251 case ${MACOSX_DEPLOYMENT_TARGET} in 16252 10.[012]) 16253 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16254 ;; 16255 10.*) 16256 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 16257 ;; 16258 esac 16259 fi 16260 ;; 16261 esac 16262 lt_int_apple_cc_single_mod=no 16263 output_verbose_link_cmd='echo' 16264 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 16265 lt_int_apple_cc_single_mod=yes 16266 fi 16267 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16268 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16269 else 16270 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' 16271 fi 16272 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16274 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16275 archive_expsym_cmds_GCJ='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}' 16276 else 16277 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' 16278 fi 16279 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}' 16280 hardcode_direct_GCJ=no 16281 hardcode_automatic_GCJ=yes 16282 hardcode_shlibpath_var_GCJ=unsupported 16283 whole_archive_flag_spec_GCJ='-all_load $convenience' 16284 link_all_deplibs_GCJ=yes 16285 else 16286 ld_shlibs_GCJ=no 16287 fi 16288 ;; 16289 16290 dgux*) 16291 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16292 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16293 hardcode_shlibpath_var_GCJ=no 16294 ;; 16295 16296 freebsd1*) 16297 ld_shlibs_GCJ=no 16298 ;; 16299 16300 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16301 # support. Future versions do this automatically, but an explicit c++rt0.o 16302 # does not break anything, and helps significantly (at the cost of a little 16303 # extra space). 16304 freebsd2.2*) 16305 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16306 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16307 hardcode_direct_GCJ=yes 16308 hardcode_shlibpath_var_GCJ=no 16309 ;; 16310 16311 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16312 freebsd2*) 16313 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16314 hardcode_direct_GCJ=yes 16315 hardcode_minus_L_GCJ=yes 16316 hardcode_shlibpath_var_GCJ=no 16317 ;; 16318 16319 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16320 freebsd* | kfreebsd*-gnu) 16321 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16322 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16323 hardcode_direct_GCJ=yes 16324 hardcode_shlibpath_var_GCJ=no 16325 ;; 16326 16327 hpux9*) 16328 if test "$GCC" = yes; then 16329 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' 16330 else 16331 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' 16332 fi 16333 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16334 hardcode_libdir_separator_GCJ=: 16335 hardcode_direct_GCJ=yes 16336 16337 # hardcode_minus_L: Not really in the search PATH, 16338 # but as the default location of the library. 16339 hardcode_minus_L_GCJ=yes 16340 export_dynamic_flag_spec_GCJ='${wl}-E' 16341 ;; 16342 16343 hpux10* | hpux11*) 16344 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16345 case "$host_cpu" in 16346 hppa*64*|ia64*) 16347 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16348 ;; 16349 *) 16350 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16351 ;; 16352 esac 16353 else 16354 case "$host_cpu" in 16355 hppa*64*|ia64*) 16356 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16357 ;; 16358 *) 16359 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16360 ;; 16361 esac 16362 fi 16363 if test "$with_gnu_ld" = no; then 16364 case "$host_cpu" in 16365 hppa*64*) 16366 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16367 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16368 hardcode_libdir_separator_GCJ=: 16369 hardcode_direct_GCJ=no 16370 hardcode_shlibpath_var_GCJ=no 16371 ;; 16372 ia64*) 16373 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16374 hardcode_direct_GCJ=no 16375 hardcode_shlibpath_var_GCJ=no 16376 16377 # hardcode_minus_L: Not really in the search PATH, 16378 # but as the default location of the library. 16379 hardcode_minus_L_GCJ=yes 16380 ;; 16381 *) 16382 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16383 hardcode_libdir_separator_GCJ=: 16384 hardcode_direct_GCJ=yes 16385 export_dynamic_flag_spec_GCJ='${wl}-E' 16386 16387 # hardcode_minus_L: Not really in the search PATH, 16388 # but as the default location of the library. 16389 hardcode_minus_L_GCJ=yes 16390 ;; 16391 esac 16392 fi 16393 ;; 16394 16395 irix5* | irix6* | nonstopux*) 16396 if test "$GCC" = yes; then 16397 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' 16398 else 16399 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' 16400 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16401 fi 16402 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16403 hardcode_libdir_separator_GCJ=: 16404 link_all_deplibs_GCJ=yes 16405 ;; 16406 16407 netbsd* | knetbsd*-gnu) 16408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16409 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16410 else 16411 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16412 fi 16413 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16414 hardcode_direct_GCJ=yes 16415 hardcode_shlibpath_var_GCJ=no 16416 ;; 16417 16418 newsos6) 16419 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16420 hardcode_direct_GCJ=yes 16421 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16422 hardcode_libdir_separator_GCJ=: 16423 hardcode_shlibpath_var_GCJ=no 16424 ;; 16425 16426 openbsd*) 16427 hardcode_direct_GCJ=yes 16428 hardcode_shlibpath_var_GCJ=no 16429 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16430 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16431 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16432 export_dynamic_flag_spec_GCJ='${wl}-E' 16433 else 16434 case $host_os in 16435 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16436 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16437 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16438 ;; 16439 *) 16440 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16442 ;; 16443 esac 16444 fi 16445 ;; 16446 16447 os2*) 16448 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16449 hardcode_minus_L_GCJ=yes 16450 allow_undefined_flag_GCJ=unsupported 16451 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' 16452 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16453 ;; 16454 16455 osf3*) 16456 if test "$GCC" = yes; then 16457 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16458 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' 16459 else 16460 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16461 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' 16462 fi 16463 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16464 hardcode_libdir_separator_GCJ=: 16465 ;; 16466 16467 osf4* | osf5*) # as osf3* with the addition of -msym flag 16468 if test "$GCC" = yes; then 16469 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16470 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' 16471 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16472 else 16473 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16474 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' 16475 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~ 16476 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16477 16478 # Both c and cxx compiler support -rpath directly 16479 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16480 fi 16481 hardcode_libdir_separator_GCJ=: 16482 ;; 16483 16484 sco3.2v5*) 16485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16486 hardcode_shlibpath_var_GCJ=no 16487 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16488 runpath_var=LD_RUN_PATH 16489 hardcode_runpath_var=yes 16490 ;; 16491 16492 solaris*) 16493 no_undefined_flag_GCJ=' -z text' 16494 if test "$GCC" = yes; then 16495 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16496 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16497 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16498 else 16499 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16500 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16502 fi 16503 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16504 hardcode_shlibpath_var_GCJ=no 16505 case $host_os in 16506 solaris2.[0-5] | solaris2.[0-5].*) ;; 16507 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16508 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16509 esac 16510 link_all_deplibs_GCJ=yes 16511 ;; 16512 16513 sunos4*) 16514 if test "x$host_vendor" = xsequent; then 16515 # Use $CC to link under sequent, because it throws in some extra .o 16516 # files that make .init and .fini sections work. 16517 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16518 else 16519 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16520 fi 16521 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16522 hardcode_direct_GCJ=yes 16523 hardcode_minus_L_GCJ=yes 16524 hardcode_shlibpath_var_GCJ=no 16525 ;; 16526 16527 sysv4) 16528 case $host_vendor in 16529 sni) 16530 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16531 hardcode_direct_GCJ=yes # is this really true??? 16532 ;; 16533 siemens) 16534 ## LD is ld it makes a PLAMLIB 16535 ## CC just makes a GrossModule. 16536 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16537 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16538 hardcode_direct_GCJ=no 16539 ;; 16540 motorola) 16541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16542 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16543 ;; 16544 esac 16545 runpath_var='LD_RUN_PATH' 16546 hardcode_shlibpath_var_GCJ=no 16547 ;; 16548 16549 sysv4.3*) 16550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16551 hardcode_shlibpath_var_GCJ=no 16552 export_dynamic_flag_spec_GCJ='-Bexport' 16553 ;; 16554 16555 sysv4*MP*) 16556 if test -d /usr/nec; then 16557 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16558 hardcode_shlibpath_var_GCJ=no 16559 runpath_var=LD_RUN_PATH 16560 hardcode_runpath_var=yes 16561 ld_shlibs_GCJ=yes 16562 fi 16563 ;; 16564 16565 sysv4.2uw2*) 16566 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16567 hardcode_direct_GCJ=yes 16568 hardcode_minus_L_GCJ=no 16569 hardcode_shlibpath_var_GCJ=no 16570 hardcode_runpath_var=yes 16571 runpath_var=LD_RUN_PATH 16572 ;; 16573 16574 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16575 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16576 if test "$GCC" = yes; then 16577 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16578 else 16579 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16580 fi 16581 runpath_var='LD_RUN_PATH' 16582 hardcode_shlibpath_var_GCJ=no 16583 ;; 16584 16585 sysv5*) 16586 no_undefined_flag_GCJ=' -z text' 16587 # $CC -shared without GNU ld will not create a library from C++ 16588 # object files and a static libstdc++, better avoid it by now 16589 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16590 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16591 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16592 hardcode_libdir_flag_spec_GCJ= 16593 hardcode_shlibpath_var_GCJ=no 16594 runpath_var='LD_RUN_PATH' 16595 ;; 16596 16597 uts4*) 16598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16599 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16600 hardcode_shlibpath_var_GCJ=no 16601 ;; 16602 16603 *) 16604 ld_shlibs_GCJ=no 16605 ;; 16606 esac 16607 fi 16608 16609echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16610echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16611test "$ld_shlibs_GCJ" = no && can_build_shared=no 16612 16613variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16614if test "$GCC" = yes; then 16615 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16616fi 16617 16618# 16619# Do we need to explicitly link libc? 16620# 16621case "x$archive_cmds_need_lc_GCJ" in 16622x|xyes) 16623 # Assume -lc should be added 16624 archive_cmds_need_lc_GCJ=yes 16625 16626 if test "$enable_shared" = yes && test "$GCC" = yes; then 16627 case $archive_cmds_GCJ in 16628 *'~'*) 16629 # FIXME: we may have to deal with multi-command sequences. 16630 ;; 16631 '$CC '*) 16632 # Test whether the compiler implicitly links with -lc since on some 16633 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16634 # to ld, don't add -lc before -lgcc. 16635 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16636echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16637 $rm conftest* 16638 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16639 16640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16641 (eval $ac_compile) 2>&5 16642 ac_status=$? 16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16644 (exit $ac_status); } 2>conftest.err; then 16645 soname=conftest 16646 lib=conftest 16647 libobjs=conftest.$ac_objext 16648 deplibs= 16649 wl=$lt_prog_compiler_wl_GCJ 16650 compiler_flags=-v 16651 linker_flags=-v 16652 verstring= 16653 output_objdir=. 16654 libname=conftest 16655 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16656 allow_undefined_flag_GCJ= 16657 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16658 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16659 ac_status=$? 16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16661 (exit $ac_status); } 16662 then 16663 archive_cmds_need_lc_GCJ=no 16664 else 16665 archive_cmds_need_lc_GCJ=yes 16666 fi 16667 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16668 else 16669 cat conftest.err 1>&5 16670 fi 16671 $rm conftest* 16672 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16673echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16674 ;; 16675 esac 16676 fi 16677 ;; 16678esac 16679 16680echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16681echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16682library_names_spec= 16683libname_spec='lib$name' 16684soname_spec= 16685shrext_cmds=".so" 16686postinstall_cmds= 16687postuninstall_cmds= 16688finish_cmds= 16689finish_eval= 16690shlibpath_var= 16691shlibpath_overrides_runpath=unknown 16692version_type=none 16693dynamic_linker="$host_os ld.so" 16694sys_lib_dlsearch_path_spec="/lib /usr/lib" 16695if test "$GCC" = yes; then 16696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16697 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16698 # if the path contains ";" then we assume it to be the separator 16699 # otherwise default to the standard path separator (i.e. ":") - it is 16700 # assumed that no part of a normal pathname contains ";" but that should 16701 # okay in the real world where ";" in dirpaths is itself problematic. 16702 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16703 else 16704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16705 fi 16706else 16707 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16708fi 16709need_lib_prefix=unknown 16710hardcode_into_libs=no 16711 16712# when you set need_version to no, make sure it does not cause -set_version 16713# flags to be left without arguments 16714need_version=unknown 16715 16716case $host_os in 16717aix3*) 16718 version_type=linux 16719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16720 shlibpath_var=LIBPATH 16721 16722 # AIX 3 has no versioning support, so we append a major version to the name. 16723 soname_spec='${libname}${release}${shared_ext}$major' 16724 ;; 16725 16726aix4* | aix5*) 16727 version_type=linux 16728 need_lib_prefix=no 16729 need_version=no 16730 hardcode_into_libs=yes 16731 if test "$host_cpu" = ia64; then 16732 # AIX 5 supports IA64 16733 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16734 shlibpath_var=LD_LIBRARY_PATH 16735 else 16736 # With GCC up to 2.95.x, collect2 would create an import file 16737 # for dependence libraries. The import file would start with 16738 # the line `#! .'. This would cause the generated library to 16739 # depend on `.', always an invalid library. This was fixed in 16740 # development snapshots of GCC prior to 3.0. 16741 case $host_os in 16742 aix4 | aix4.[01] | aix4.[01].*) 16743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16744 echo ' yes ' 16745 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16746 : 16747 else 16748 can_build_shared=no 16749 fi 16750 ;; 16751 esac 16752 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16753 # soname into executable. Probably we can add versioning support to 16754 # collect2, so additional links can be useful in future. 16755 if test "$aix_use_runtimelinking" = yes; then 16756 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16757 # instead of lib<name>.a to let people know that these are not 16758 # typical AIX shared libraries. 16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16760 else 16761 # We preserve .a as extension for shared libraries through AIX4.2 16762 # and later when we are not doing run time linking. 16763 library_names_spec='${libname}${release}.a $libname.a' 16764 soname_spec='${libname}${release}${shared_ext}$major' 16765 fi 16766 shlibpath_var=LIBPATH 16767 fi 16768 ;; 16769 16770amigaos*) 16771 library_names_spec='$libname.ixlibrary $libname.a' 16772 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16773 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' 16774 ;; 16775 16776beos*) 16777 library_names_spec='${libname}${shared_ext}' 16778 dynamic_linker="$host_os ld.so" 16779 shlibpath_var=LIBRARY_PATH 16780 ;; 16781 16782bsdi4*) 16783 version_type=linux 16784 need_version=no 16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16786 soname_spec='${libname}${release}${shared_ext}$major' 16787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16788 shlibpath_var=LD_LIBRARY_PATH 16789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16791 # the default ld.so.conf also contains /usr/contrib/lib and 16792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16793 # libtool to hard-code these into programs 16794 ;; 16795 16796cygwin* | mingw* | pw32*) 16797 version_type=windows 16798 shrext_cmds=".dll" 16799 need_version=no 16800 need_lib_prefix=no 16801 16802 case $GCC,$host_os in 16803 yes,cygwin* | yes,mingw* | yes,pw32*) 16804 library_names_spec='$libname.dll.a' 16805 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16806 postinstall_cmds='base_file=`basename \${file}`~ 16807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16808 dldir=$destdir/`dirname \$dlpath`~ 16809 test -d \$dldir || mkdir -p \$dldir~ 16810 $install_prog $dir/$dlname \$dldir/$dlname' 16811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16812 dlpath=$dir/\$dldll~ 16813 $rm \$dlpath' 16814 shlibpath_overrides_runpath=yes 16815 16816 case $host_os in 16817 cygwin*) 16818 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16820 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16821 ;; 16822 mingw*) 16823 # MinGW DLLs use traditional 'lib' prefix 16824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16826 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16827 # It is most probably a Windows format PATH printed by 16828 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16829 # path with ; separators, and with drive letters. We can handle the 16830 # drive letters (cygwin fileutils understands them), so leave them, 16831 # especially as we might pass files found there to a mingw objdump, 16832 # which wouldn't understand a cygwinified path. Ahh. 16833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16834 else 16835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16836 fi 16837 ;; 16838 pw32*) 16839 # pw32 DLLs use 'pw' prefix rather than 'lib' 16840 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16841 ;; 16842 esac 16843 ;; 16844 16845 *) 16846 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16847 ;; 16848 esac 16849 dynamic_linker='Win32 ld.exe' 16850 # FIXME: first we should search . and the directory the executable is in 16851 shlibpath_var=PATH 16852 ;; 16853 16854darwin* | rhapsody*) 16855 dynamic_linker="$host_os dyld" 16856 version_type=darwin 16857 need_lib_prefix=no 16858 need_version=no 16859 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16860 soname_spec='${libname}${release}${major}$shared_ext' 16861 shlibpath_overrides_runpath=yes 16862 shlibpath_var=DYLD_LIBRARY_PATH 16863 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 16864 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16865 if test "$GCC" = yes; then 16866 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"` 16867 else 16868 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16869 fi 16870 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16871 ;; 16872 16873dgux*) 16874 version_type=linux 16875 need_lib_prefix=no 16876 need_version=no 16877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16878 soname_spec='${libname}${release}${shared_ext}$major' 16879 shlibpath_var=LD_LIBRARY_PATH 16880 ;; 16881 16882freebsd1*) 16883 dynamic_linker=no 16884 ;; 16885 16886kfreebsd*-gnu) 16887 version_type=linux 16888 need_lib_prefix=no 16889 need_version=no 16890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16891 soname_spec='${libname}${release}${shared_ext}$major' 16892 shlibpath_var=LD_LIBRARY_PATH 16893 shlibpath_overrides_runpath=no 16894 hardcode_into_libs=yes 16895 dynamic_linker='GNU ld.so' 16896 ;; 16897 16898freebsd*) 16899 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16900 version_type=freebsd-$objformat 16901 case $version_type in 16902 freebsd-elf*) 16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16904 need_version=no 16905 need_lib_prefix=no 16906 ;; 16907 freebsd-*) 16908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16909 need_version=yes 16910 ;; 16911 esac 16912 shlibpath_var=LD_LIBRARY_PATH 16913 case $host_os in 16914 freebsd2*) 16915 shlibpath_overrides_runpath=yes 16916 ;; 16917 freebsd3.01* | freebsdelf3.01*) 16918 shlibpath_overrides_runpath=yes 16919 hardcode_into_libs=yes 16920 ;; 16921 *) # from 3.2 on 16922 shlibpath_overrides_runpath=no 16923 hardcode_into_libs=yes 16924 ;; 16925 esac 16926 ;; 16927 16928gnu*) 16929 version_type=linux 16930 need_lib_prefix=no 16931 need_version=no 16932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16933 soname_spec='${libname}${release}${shared_ext}$major' 16934 shlibpath_var=LD_LIBRARY_PATH 16935 hardcode_into_libs=yes 16936 ;; 16937 16938hpux9* | hpux10* | hpux11*) 16939 # Give a soname corresponding to the major version so that dld.sl refuses to 16940 # link against other versions. 16941 version_type=sunos 16942 need_lib_prefix=no 16943 need_version=no 16944 case "$host_cpu" in 16945 ia64*) 16946 shrext_cmds='.so' 16947 hardcode_into_libs=yes 16948 dynamic_linker="$host_os dld.so" 16949 shlibpath_var=LD_LIBRARY_PATH 16950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16952 soname_spec='${libname}${release}${shared_ext}$major' 16953 if test "X$HPUX_IA64_MODE" = X32; then 16954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16955 else 16956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16957 fi 16958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16959 ;; 16960 hppa*64*) 16961 shrext_cmds='.sl' 16962 hardcode_into_libs=yes 16963 dynamic_linker="$host_os dld.sl" 16964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16967 soname_spec='${libname}${release}${shared_ext}$major' 16968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16970 ;; 16971 *) 16972 shrext_cmds='.sl' 16973 dynamic_linker="$host_os dld.sl" 16974 shlibpath_var=SHLIB_PATH 16975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16977 soname_spec='${libname}${release}${shared_ext}$major' 16978 ;; 16979 esac 16980 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16981 postinstall_cmds='chmod 555 $lib' 16982 ;; 16983 16984irix5* | irix6* | nonstopux*) 16985 case $host_os in 16986 nonstopux*) version_type=nonstopux ;; 16987 *) 16988 if test "$lt_cv_prog_gnu_ld" = yes; then 16989 version_type=linux 16990 else 16991 version_type=irix 16992 fi ;; 16993 esac 16994 need_lib_prefix=no 16995 need_version=no 16996 soname_spec='${libname}${release}${shared_ext}$major' 16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16998 case $host_os in 16999 irix5* | nonstopux*) 17000 libsuff= shlibsuff= 17001 ;; 17002 *) 17003 case $LD in # libtool.m4 will add one of these switches to LD 17004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17005 libsuff= shlibsuff= libmagic=32-bit;; 17006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17007 libsuff=32 shlibsuff=N32 libmagic=N32;; 17008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17009 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17010 *) libsuff= shlibsuff= libmagic=never-match;; 17011 esac 17012 ;; 17013 esac 17014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17015 shlibpath_overrides_runpath=no 17016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17018 hardcode_into_libs=yes 17019 ;; 17020 17021# No shared lib support for Linux oldld, aout, or coff. 17022linux*oldld* | linux*aout* | linux*coff*) 17023 dynamic_linker=no 17024 ;; 17025 17026# This must be Linux ELF. 17027linux*) 17028 version_type=linux 17029 need_lib_prefix=no 17030 need_version=no 17031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17032 soname_spec='${libname}${release}${shared_ext}$major' 17033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17034 shlibpath_var=LD_LIBRARY_PATH 17035 shlibpath_overrides_runpath=no 17036 # This implies no fast_install, which is unacceptable. 17037 # Some rework will be needed to allow for fast_install 17038 # before this can be enabled. 17039 hardcode_into_libs=yes 17040 17041 # Append ld.so.conf contents to the search path 17042 if test -f /etc/ld.so.conf; then 17043 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 17044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17045 fi 17046 17047 # We used to test for /lib/ld.so.1 and disable shared libraries on 17048 # powerpc, because MkLinux only supported shared libraries with the 17049 # GNU dynamic linker. Since this was broken with cross compilers, 17050 # most powerpc-linux boxes support dynamic linking these days and 17051 # people can always --disable-shared, the test was removed, and we 17052 # assume the GNU/Linux dynamic linker is in use. 17053 dynamic_linker='GNU/Linux ld.so' 17054 ;; 17055 17056knetbsd*-gnu) 17057 version_type=linux 17058 need_lib_prefix=no 17059 need_version=no 17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17061 soname_spec='${libname}${release}${shared_ext}$major' 17062 shlibpath_var=LD_LIBRARY_PATH 17063 shlibpath_overrides_runpath=no 17064 hardcode_into_libs=yes 17065 dynamic_linker='GNU ld.so' 17066 ;; 17067 17068netbsd*) 17069 version_type=sunos 17070 need_lib_prefix=no 17071 need_version=no 17072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17075 dynamic_linker='NetBSD (a.out) ld.so' 17076 else 17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17078 soname_spec='${libname}${release}${shared_ext}$major' 17079 dynamic_linker='NetBSD ld.elf_so' 17080 fi 17081 shlibpath_var=LD_LIBRARY_PATH 17082 shlibpath_overrides_runpath=yes 17083 hardcode_into_libs=yes 17084 ;; 17085 17086newsos6) 17087 version_type=linux 17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17089 shlibpath_var=LD_LIBRARY_PATH 17090 shlibpath_overrides_runpath=yes 17091 ;; 17092 17093nto-qnx*) 17094 version_type=linux 17095 need_lib_prefix=no 17096 need_version=no 17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17098 soname_spec='${libname}${release}${shared_ext}$major' 17099 shlibpath_var=LD_LIBRARY_PATH 17100 shlibpath_overrides_runpath=yes 17101 ;; 17102 17103openbsd*) 17104 version_type=sunos 17105 need_lib_prefix=no 17106 need_version=yes 17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17109 shlibpath_var=LD_LIBRARY_PATH 17110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17111 case $host_os in 17112 openbsd2.[89] | openbsd2.[89].*) 17113 shlibpath_overrides_runpath=no 17114 ;; 17115 *) 17116 shlibpath_overrides_runpath=yes 17117 ;; 17118 esac 17119 else 17120 shlibpath_overrides_runpath=yes 17121 fi 17122 ;; 17123 17124os2*) 17125 libname_spec='$name' 17126 shrext_cmds=".dll" 17127 need_lib_prefix=no 17128 library_names_spec='$libname${shared_ext} $libname.a' 17129 dynamic_linker='OS/2 ld.exe' 17130 shlibpath_var=LIBPATH 17131 ;; 17132 17133osf3* | osf4* | osf5*) 17134 version_type=osf 17135 need_lib_prefix=no 17136 need_version=no 17137 soname_spec='${libname}${release}${shared_ext}$major' 17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17139 shlibpath_var=LD_LIBRARY_PATH 17140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17142 ;; 17143 17144sco3.2v5*) 17145 version_type=osf 17146 soname_spec='${libname}${release}${shared_ext}$major' 17147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17148 shlibpath_var=LD_LIBRARY_PATH 17149 ;; 17150 17151solaris*) 17152 version_type=linux 17153 need_lib_prefix=no 17154 need_version=no 17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17156 soname_spec='${libname}${release}${shared_ext}$major' 17157 shlibpath_var=LD_LIBRARY_PATH 17158 shlibpath_overrides_runpath=yes 17159 hardcode_into_libs=yes 17160 # ldd complains unless libraries are executable 17161 postinstall_cmds='chmod +x $lib' 17162 ;; 17163 17164sunos4*) 17165 version_type=sunos 17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17168 shlibpath_var=LD_LIBRARY_PATH 17169 shlibpath_overrides_runpath=yes 17170 if test "$with_gnu_ld" = yes; then 17171 need_lib_prefix=no 17172 fi 17173 need_version=yes 17174 ;; 17175 17176sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17177 version_type=linux 17178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17179 soname_spec='${libname}${release}${shared_ext}$major' 17180 shlibpath_var=LD_LIBRARY_PATH 17181 case $host_vendor in 17182 sni) 17183 shlibpath_overrides_runpath=no 17184 need_lib_prefix=no 17185 export_dynamic_flag_spec='${wl}-Blargedynsym' 17186 runpath_var=LD_RUN_PATH 17187 ;; 17188 siemens) 17189 need_lib_prefix=no 17190 ;; 17191 motorola) 17192 need_lib_prefix=no 17193 need_version=no 17194 shlibpath_overrides_runpath=no 17195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17196 ;; 17197 esac 17198 ;; 17199 17200sysv4*MP*) 17201 if test -d /usr/nec ;then 17202 version_type=linux 17203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17204 soname_spec='$libname${shared_ext}.$major' 17205 shlibpath_var=LD_LIBRARY_PATH 17206 fi 17207 ;; 17208 17209uts4*) 17210 version_type=linux 17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17212 soname_spec='${libname}${release}${shared_ext}$major' 17213 shlibpath_var=LD_LIBRARY_PATH 17214 ;; 17215 17216*) 17217 dynamic_linker=no 17218 ;; 17219esac 17220echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17221echo "${ECHO_T}$dynamic_linker" >&6 17222test "$dynamic_linker" = no && can_build_shared=no 17223 17224echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17225echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17226hardcode_action_GCJ= 17227if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17228 test -n "$runpath_var GCJ" || \ 17229 test "X$hardcode_automatic_GCJ"="Xyes" ; then 17230 17231 # We can hardcode non-existant directories. 17232 if test "$hardcode_direct_GCJ" != no && 17233 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17234 # have to relink, otherwise we might link with an installed library 17235 # when we should be linking with a yet-to-be-installed one 17236 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17237 test "$hardcode_minus_L_GCJ" != no; then 17238 # Linking always hardcodes the temporary library directory. 17239 hardcode_action_GCJ=relink 17240 else 17241 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17242 hardcode_action_GCJ=immediate 17243 fi 17244else 17245 # We cannot hardcode anything, or else we can only hardcode existing 17246 # directories. 17247 hardcode_action_GCJ=unsupported 17248fi 17249echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17250echo "${ECHO_T}$hardcode_action_GCJ" >&6 17251 17252if test "$hardcode_action_GCJ" = relink; then 17253 # Fast installation is not supported 17254 enable_fast_install=no 17255elif test "$shlibpath_overrides_runpath" = yes || 17256 test "$enable_shared" = no; then 17257 # Fast installation is not necessary 17258 enable_fast_install=needless 17259fi 17260 17261striplib= 17262old_striplib= 17263echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17264echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17265if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17266 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17267 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17268 echo "$as_me:$LINENO: result: yes" >&5 17269echo "${ECHO_T}yes" >&6 17270else 17271# FIXME - insert some real tests, host_os isn't really good enough 17272 case $host_os in 17273 darwin*) 17274 if test -n "$STRIP" ; then 17275 striplib="$STRIP -x" 17276 echo "$as_me:$LINENO: result: yes" >&5 17277echo "${ECHO_T}yes" >&6 17278 else 17279 echo "$as_me:$LINENO: result: no" >&5 17280echo "${ECHO_T}no" >&6 17281fi 17282 ;; 17283 *) 17284 echo "$as_me:$LINENO: result: no" >&5 17285echo "${ECHO_T}no" >&6 17286 ;; 17287 esac 17288fi 17289 17290if test "x$enable_dlopen" != xyes; then 17291 enable_dlopen=unknown 17292 enable_dlopen_self=unknown 17293 enable_dlopen_self_static=unknown 17294else 17295 lt_cv_dlopen=no 17296 lt_cv_dlopen_libs= 17297 17298 case $host_os in 17299 beos*) 17300 lt_cv_dlopen="load_add_on" 17301 lt_cv_dlopen_libs= 17302 lt_cv_dlopen_self=yes 17303 ;; 17304 17305 mingw* | pw32*) 17306 lt_cv_dlopen="LoadLibrary" 17307 lt_cv_dlopen_libs= 17308 ;; 17309 17310 cygwin*) 17311 lt_cv_dlopen="dlopen" 17312 lt_cv_dlopen_libs= 17313 ;; 17314 17315 darwin*) 17316 # if libdl is installed we need to link against it 17317 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17318echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17319if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17320 echo $ECHO_N "(cached) $ECHO_C" >&6 17321else 17322 ac_check_lib_save_LIBS=$LIBS 17323LIBS="-ldl $LIBS" 17324cat >conftest.$ac_ext <<_ACEOF 17325/* confdefs.h. */ 17326_ACEOF 17327cat confdefs.h >>conftest.$ac_ext 17328cat >>conftest.$ac_ext <<_ACEOF 17329/* end confdefs.h. */ 17330 17331/* Override any gcc2 internal prototype to avoid an error. */ 17332#ifdef __cplusplus 17333extern "C" 17334#endif 17335/* We use char because int might match the return type of a gcc2 17336 builtin and then its argument prototype would still apply. */ 17337char dlopen (); 17338int 17339main () 17340{ 17341dlopen (); 17342 ; 17343 return 0; 17344} 17345_ACEOF 17346rm -f conftest.$ac_objext conftest$ac_exeext 17347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17348 (eval $ac_link) 2>conftest.er1 17349 ac_status=$? 17350 grep -v '^ *+' conftest.er1 >conftest.err 17351 rm -f conftest.er1 17352 cat conftest.err >&5 17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17354 (exit $ac_status); } && 17355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17357 (eval $ac_try) 2>&5 17358 ac_status=$? 17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17360 (exit $ac_status); }; } && 17361 { ac_try='test -s conftest$ac_exeext' 17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17363 (eval $ac_try) 2>&5 17364 ac_status=$? 17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17366 (exit $ac_status); }; }; then 17367 ac_cv_lib_dl_dlopen=yes 17368else 17369 echo "$as_me: failed program was:" >&5 17370sed 's/^/| /' conftest.$ac_ext >&5 17371 17372ac_cv_lib_dl_dlopen=no 17373fi 17374rm -f conftest.err conftest.$ac_objext \ 17375 conftest$ac_exeext conftest.$ac_ext 17376LIBS=$ac_check_lib_save_LIBS 17377fi 17378echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17379echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17380if test $ac_cv_lib_dl_dlopen = yes; then 17381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17382else 17383 17384 lt_cv_dlopen="dyld" 17385 lt_cv_dlopen_libs= 17386 lt_cv_dlopen_self=yes 17387 17388fi 17389 17390 ;; 17391 17392 *) 17393 echo "$as_me:$LINENO: checking for shl_load" >&5 17394echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17395if test "${ac_cv_func_shl_load+set}" = set; then 17396 echo $ECHO_N "(cached) $ECHO_C" >&6 17397else 17398 cat >conftest.$ac_ext <<_ACEOF 17399/* confdefs.h. */ 17400_ACEOF 17401cat confdefs.h >>conftest.$ac_ext 17402cat >>conftest.$ac_ext <<_ACEOF 17403/* end confdefs.h. */ 17404/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17405 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17406#define shl_load innocuous_shl_load 17407 17408/* System header to define __stub macros and hopefully few prototypes, 17409 which can conflict with char shl_load (); below. 17410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17411 <limits.h> exists even on freestanding compilers. */ 17412 17413#ifdef __STDC__ 17414# include <limits.h> 17415#else 17416# include <assert.h> 17417#endif 17418 17419#undef shl_load 17420 17421/* Override any gcc2 internal prototype to avoid an error. */ 17422#ifdef __cplusplus 17423extern "C" 17424{ 17425#endif 17426/* We use char because int might match the return type of a gcc2 17427 builtin and then its argument prototype would still apply. */ 17428char shl_load (); 17429/* The GNU C library defines this for functions which it implements 17430 to always fail with ENOSYS. Some functions are actually named 17431 something starting with __ and the normal name is an alias. */ 17432#if defined (__stub_shl_load) || defined (__stub___shl_load) 17433choke me 17434#else 17435char (*f) () = shl_load; 17436#endif 17437#ifdef __cplusplus 17438} 17439#endif 17440 17441int 17442main () 17443{ 17444return f != shl_load; 17445 ; 17446 return 0; 17447} 17448_ACEOF 17449rm -f conftest.$ac_objext conftest$ac_exeext 17450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17451 (eval $ac_link) 2>conftest.er1 17452 ac_status=$? 17453 grep -v '^ *+' conftest.er1 >conftest.err 17454 rm -f conftest.er1 17455 cat conftest.err >&5 17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17457 (exit $ac_status); } && 17458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17460 (eval $ac_try) 2>&5 17461 ac_status=$? 17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17463 (exit $ac_status); }; } && 17464 { ac_try='test -s conftest$ac_exeext' 17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17466 (eval $ac_try) 2>&5 17467 ac_status=$? 17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17469 (exit $ac_status); }; }; then 17470 ac_cv_func_shl_load=yes 17471else 17472 echo "$as_me: failed program was:" >&5 17473sed 's/^/| /' conftest.$ac_ext >&5 17474 17475ac_cv_func_shl_load=no 17476fi 17477rm -f conftest.err conftest.$ac_objext \ 17478 conftest$ac_exeext conftest.$ac_ext 17479fi 17480echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17481echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17482if test $ac_cv_func_shl_load = yes; then 17483 lt_cv_dlopen="shl_load" 17484else 17485 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17486echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17487if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17488 echo $ECHO_N "(cached) $ECHO_C" >&6 17489else 17490 ac_check_lib_save_LIBS=$LIBS 17491LIBS="-ldld $LIBS" 17492cat >conftest.$ac_ext <<_ACEOF 17493/* confdefs.h. */ 17494_ACEOF 17495cat confdefs.h >>conftest.$ac_ext 17496cat >>conftest.$ac_ext <<_ACEOF 17497/* end confdefs.h. */ 17498 17499/* Override any gcc2 internal prototype to avoid an error. */ 17500#ifdef __cplusplus 17501extern "C" 17502#endif 17503/* We use char because int might match the return type of a gcc2 17504 builtin and then its argument prototype would still apply. */ 17505char shl_load (); 17506int 17507main () 17508{ 17509shl_load (); 17510 ; 17511 return 0; 17512} 17513_ACEOF 17514rm -f conftest.$ac_objext conftest$ac_exeext 17515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17516 (eval $ac_link) 2>conftest.er1 17517 ac_status=$? 17518 grep -v '^ *+' conftest.er1 >conftest.err 17519 rm -f conftest.er1 17520 cat conftest.err >&5 17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17522 (exit $ac_status); } && 17523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17525 (eval $ac_try) 2>&5 17526 ac_status=$? 17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17528 (exit $ac_status); }; } && 17529 { ac_try='test -s conftest$ac_exeext' 17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17531 (eval $ac_try) 2>&5 17532 ac_status=$? 17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17534 (exit $ac_status); }; }; then 17535 ac_cv_lib_dld_shl_load=yes 17536else 17537 echo "$as_me: failed program was:" >&5 17538sed 's/^/| /' conftest.$ac_ext >&5 17539 17540ac_cv_lib_dld_shl_load=no 17541fi 17542rm -f conftest.err conftest.$ac_objext \ 17543 conftest$ac_exeext conftest.$ac_ext 17544LIBS=$ac_check_lib_save_LIBS 17545fi 17546echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17547echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17548if test $ac_cv_lib_dld_shl_load = yes; then 17549 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17550else 17551 echo "$as_me:$LINENO: checking for dlopen" >&5 17552echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17553if test "${ac_cv_func_dlopen+set}" = set; then 17554 echo $ECHO_N "(cached) $ECHO_C" >&6 17555else 17556 cat >conftest.$ac_ext <<_ACEOF 17557/* confdefs.h. */ 17558_ACEOF 17559cat confdefs.h >>conftest.$ac_ext 17560cat >>conftest.$ac_ext <<_ACEOF 17561/* end confdefs.h. */ 17562/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17563 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17564#define dlopen innocuous_dlopen 17565 17566/* System header to define __stub macros and hopefully few prototypes, 17567 which can conflict with char dlopen (); below. 17568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17569 <limits.h> exists even on freestanding compilers. */ 17570 17571#ifdef __STDC__ 17572# include <limits.h> 17573#else 17574# include <assert.h> 17575#endif 17576 17577#undef dlopen 17578 17579/* Override any gcc2 internal prototype to avoid an error. */ 17580#ifdef __cplusplus 17581extern "C" 17582{ 17583#endif 17584/* We use char because int might match the return type of a gcc2 17585 builtin and then its argument prototype would still apply. */ 17586char dlopen (); 17587/* The GNU C library defines this for functions which it implements 17588 to always fail with ENOSYS. Some functions are actually named 17589 something starting with __ and the normal name is an alias. */ 17590#if defined (__stub_dlopen) || defined (__stub___dlopen) 17591choke me 17592#else 17593char (*f) () = dlopen; 17594#endif 17595#ifdef __cplusplus 17596} 17597#endif 17598 17599int 17600main () 17601{ 17602return f != dlopen; 17603 ; 17604 return 0; 17605} 17606_ACEOF 17607rm -f conftest.$ac_objext conftest$ac_exeext 17608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17609 (eval $ac_link) 2>conftest.er1 17610 ac_status=$? 17611 grep -v '^ *+' conftest.er1 >conftest.err 17612 rm -f conftest.er1 17613 cat conftest.err >&5 17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17615 (exit $ac_status); } && 17616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17618 (eval $ac_try) 2>&5 17619 ac_status=$? 17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17621 (exit $ac_status); }; } && 17622 { ac_try='test -s conftest$ac_exeext' 17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17624 (eval $ac_try) 2>&5 17625 ac_status=$? 17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17627 (exit $ac_status); }; }; then 17628 ac_cv_func_dlopen=yes 17629else 17630 echo "$as_me: failed program was:" >&5 17631sed 's/^/| /' conftest.$ac_ext >&5 17632 17633ac_cv_func_dlopen=no 17634fi 17635rm -f conftest.err conftest.$ac_objext \ 17636 conftest$ac_exeext conftest.$ac_ext 17637fi 17638echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17639echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17640if test $ac_cv_func_dlopen = yes; then 17641 lt_cv_dlopen="dlopen" 17642else 17643 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17644echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17645if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17646 echo $ECHO_N "(cached) $ECHO_C" >&6 17647else 17648 ac_check_lib_save_LIBS=$LIBS 17649LIBS="-ldl $LIBS" 17650cat >conftest.$ac_ext <<_ACEOF 17651/* confdefs.h. */ 17652_ACEOF 17653cat confdefs.h >>conftest.$ac_ext 17654cat >>conftest.$ac_ext <<_ACEOF 17655/* end confdefs.h. */ 17656 17657/* Override any gcc2 internal prototype to avoid an error. */ 17658#ifdef __cplusplus 17659extern "C" 17660#endif 17661/* We use char because int might match the return type of a gcc2 17662 builtin and then its argument prototype would still apply. */ 17663char dlopen (); 17664int 17665main () 17666{ 17667dlopen (); 17668 ; 17669 return 0; 17670} 17671_ACEOF 17672rm -f conftest.$ac_objext conftest$ac_exeext 17673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17674 (eval $ac_link) 2>conftest.er1 17675 ac_status=$? 17676 grep -v '^ *+' conftest.er1 >conftest.err 17677 rm -f conftest.er1 17678 cat conftest.err >&5 17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17680 (exit $ac_status); } && 17681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17683 (eval $ac_try) 2>&5 17684 ac_status=$? 17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17686 (exit $ac_status); }; } && 17687 { ac_try='test -s conftest$ac_exeext' 17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17689 (eval $ac_try) 2>&5 17690 ac_status=$? 17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17692 (exit $ac_status); }; }; then 17693 ac_cv_lib_dl_dlopen=yes 17694else 17695 echo "$as_me: failed program was:" >&5 17696sed 's/^/| /' conftest.$ac_ext >&5 17697 17698ac_cv_lib_dl_dlopen=no 17699fi 17700rm -f conftest.err conftest.$ac_objext \ 17701 conftest$ac_exeext conftest.$ac_ext 17702LIBS=$ac_check_lib_save_LIBS 17703fi 17704echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17705echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17706if test $ac_cv_lib_dl_dlopen = yes; then 17707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17708else 17709 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17710echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17711if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17712 echo $ECHO_N "(cached) $ECHO_C" >&6 17713else 17714 ac_check_lib_save_LIBS=$LIBS 17715LIBS="-lsvld $LIBS" 17716cat >conftest.$ac_ext <<_ACEOF 17717/* confdefs.h. */ 17718_ACEOF 17719cat confdefs.h >>conftest.$ac_ext 17720cat >>conftest.$ac_ext <<_ACEOF 17721/* end confdefs.h. */ 17722 17723/* Override any gcc2 internal prototype to avoid an error. */ 17724#ifdef __cplusplus 17725extern "C" 17726#endif 17727/* We use char because int might match the return type of a gcc2 17728 builtin and then its argument prototype would still apply. */ 17729char dlopen (); 17730int 17731main () 17732{ 17733dlopen (); 17734 ; 17735 return 0; 17736} 17737_ACEOF 17738rm -f conftest.$ac_objext conftest$ac_exeext 17739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17740 (eval $ac_link) 2>conftest.er1 17741 ac_status=$? 17742 grep -v '^ *+' conftest.er1 >conftest.err 17743 rm -f conftest.er1 17744 cat conftest.err >&5 17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17746 (exit $ac_status); } && 17747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17749 (eval $ac_try) 2>&5 17750 ac_status=$? 17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17752 (exit $ac_status); }; } && 17753 { ac_try='test -s conftest$ac_exeext' 17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17755 (eval $ac_try) 2>&5 17756 ac_status=$? 17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17758 (exit $ac_status); }; }; then 17759 ac_cv_lib_svld_dlopen=yes 17760else 17761 echo "$as_me: failed program was:" >&5 17762sed 's/^/| /' conftest.$ac_ext >&5 17763 17764ac_cv_lib_svld_dlopen=no 17765fi 17766rm -f conftest.err conftest.$ac_objext \ 17767 conftest$ac_exeext conftest.$ac_ext 17768LIBS=$ac_check_lib_save_LIBS 17769fi 17770echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17771echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17772if test $ac_cv_lib_svld_dlopen = yes; then 17773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17774else 17775 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17776echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17777if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17778 echo $ECHO_N "(cached) $ECHO_C" >&6 17779else 17780 ac_check_lib_save_LIBS=$LIBS 17781LIBS="-ldld $LIBS" 17782cat >conftest.$ac_ext <<_ACEOF 17783/* confdefs.h. */ 17784_ACEOF 17785cat confdefs.h >>conftest.$ac_ext 17786cat >>conftest.$ac_ext <<_ACEOF 17787/* end confdefs.h. */ 17788 17789/* Override any gcc2 internal prototype to avoid an error. */ 17790#ifdef __cplusplus 17791extern "C" 17792#endif 17793/* We use char because int might match the return type of a gcc2 17794 builtin and then its argument prototype would still apply. */ 17795char dld_link (); 17796int 17797main () 17798{ 17799dld_link (); 17800 ; 17801 return 0; 17802} 17803_ACEOF 17804rm -f conftest.$ac_objext conftest$ac_exeext 17805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17806 (eval $ac_link) 2>conftest.er1 17807 ac_status=$? 17808 grep -v '^ *+' conftest.er1 >conftest.err 17809 rm -f conftest.er1 17810 cat conftest.err >&5 17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17812 (exit $ac_status); } && 17813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17815 (eval $ac_try) 2>&5 17816 ac_status=$? 17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17818 (exit $ac_status); }; } && 17819 { ac_try='test -s conftest$ac_exeext' 17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17821 (eval $ac_try) 2>&5 17822 ac_status=$? 17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17824 (exit $ac_status); }; }; then 17825 ac_cv_lib_dld_dld_link=yes 17826else 17827 echo "$as_me: failed program was:" >&5 17828sed 's/^/| /' conftest.$ac_ext >&5 17829 17830ac_cv_lib_dld_dld_link=no 17831fi 17832rm -f conftest.err conftest.$ac_objext \ 17833 conftest$ac_exeext conftest.$ac_ext 17834LIBS=$ac_check_lib_save_LIBS 17835fi 17836echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 17837echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 17838if test $ac_cv_lib_dld_dld_link = yes; then 17839 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 17840fi 17841 17842 17843fi 17844 17845 17846fi 17847 17848 17849fi 17850 17851 17852fi 17853 17854 17855fi 17856 17857 ;; 17858 esac 17859 17860 if test "x$lt_cv_dlopen" != xno; then 17861 enable_dlopen=yes 17862 else 17863 enable_dlopen=no 17864 fi 17865 17866 case $lt_cv_dlopen in 17867 dlopen) 17868 save_CPPFLAGS="$CPPFLAGS" 17869 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17870 17871 save_LDFLAGS="$LDFLAGS" 17872 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17873 17874 save_LIBS="$LIBS" 17875 LIBS="$lt_cv_dlopen_libs $LIBS" 17876 17877 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 17878echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 17879if test "${lt_cv_dlopen_self+set}" = set; then 17880 echo $ECHO_N "(cached) $ECHO_C" >&6 17881else 17882 if test "$cross_compiling" = yes; then : 17883 lt_cv_dlopen_self=cross 17884else 17885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17886 lt_status=$lt_dlunknown 17887 cat > conftest.$ac_ext <<EOF 17888#line 17888 "configure" 17889#include "confdefs.h" 17890 17891#if HAVE_DLFCN_H 17892#include <dlfcn.h> 17893#endif 17894 17895#include <stdio.h> 17896 17897#ifdef RTLD_GLOBAL 17898# define LT_DLGLOBAL RTLD_GLOBAL 17899#else 17900# ifdef DL_GLOBAL 17901# define LT_DLGLOBAL DL_GLOBAL 17902# else 17903# define LT_DLGLOBAL 0 17904# endif 17905#endif 17906 17907/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17908 find out it does not work in some platform. */ 17909#ifndef LT_DLLAZY_OR_NOW 17910# ifdef RTLD_LAZY 17911# define LT_DLLAZY_OR_NOW RTLD_LAZY 17912# else 17913# ifdef DL_LAZY 17914# define LT_DLLAZY_OR_NOW DL_LAZY 17915# else 17916# ifdef RTLD_NOW 17917# define LT_DLLAZY_OR_NOW RTLD_NOW 17918# else 17919# ifdef DL_NOW 17920# define LT_DLLAZY_OR_NOW DL_NOW 17921# else 17922# define LT_DLLAZY_OR_NOW 0 17923# endif 17924# endif 17925# endif 17926# endif 17927#endif 17928 17929#ifdef __cplusplus 17930extern "C" void exit (int); 17931#endif 17932 17933void fnord() { int i=42;} 17934int main () 17935{ 17936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17937 int status = $lt_dlunknown; 17938 17939 if (self) 17940 { 17941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17942 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17943 /* dlclose (self); */ 17944 } 17945 17946 exit (status); 17947} 17948EOF 17949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17950 (eval $ac_link) 2>&5 17951 ac_status=$? 17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17953 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17954 (./conftest; exit; ) 2>/dev/null 17955 lt_status=$? 17956 case x$lt_status in 17957 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17958 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17959 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17960 esac 17961 else : 17962 # compilation failed 17963 lt_cv_dlopen_self=no 17964 fi 17965fi 17966rm -fr conftest* 17967 17968 17969fi 17970echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17971echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17972 17973 if test "x$lt_cv_dlopen_self" = xyes; then 17974 LDFLAGS="$LDFLAGS $link_static_flag" 17975 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17976echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17977if test "${lt_cv_dlopen_self_static+set}" = set; then 17978 echo $ECHO_N "(cached) $ECHO_C" >&6 17979else 17980 if test "$cross_compiling" = yes; then : 17981 lt_cv_dlopen_self_static=cross 17982else 17983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17984 lt_status=$lt_dlunknown 17985 cat > conftest.$ac_ext <<EOF 17986#line 17986 "configure" 17987#include "confdefs.h" 17988 17989#if HAVE_DLFCN_H 17990#include <dlfcn.h> 17991#endif 17992 17993#include <stdio.h> 17994 17995#ifdef RTLD_GLOBAL 17996# define LT_DLGLOBAL RTLD_GLOBAL 17997#else 17998# ifdef DL_GLOBAL 17999# define LT_DLGLOBAL DL_GLOBAL 18000# else 18001# define LT_DLGLOBAL 0 18002# endif 18003#endif 18004 18005/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18006 find out it does not work in some platform. */ 18007#ifndef LT_DLLAZY_OR_NOW 18008# ifdef RTLD_LAZY 18009# define LT_DLLAZY_OR_NOW RTLD_LAZY 18010# else 18011# ifdef DL_LAZY 18012# define LT_DLLAZY_OR_NOW DL_LAZY 18013# else 18014# ifdef RTLD_NOW 18015# define LT_DLLAZY_OR_NOW RTLD_NOW 18016# else 18017# ifdef DL_NOW 18018# define LT_DLLAZY_OR_NOW DL_NOW 18019# else 18020# define LT_DLLAZY_OR_NOW 0 18021# endif 18022# endif 18023# endif 18024# endif 18025#endif 18026 18027#ifdef __cplusplus 18028extern "C" void exit (int); 18029#endif 18030 18031void fnord() { int i=42;} 18032int main () 18033{ 18034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18035 int status = $lt_dlunknown; 18036 18037 if (self) 18038 { 18039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18040 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18041 /* dlclose (self); */ 18042 } 18043 18044 exit (status); 18045} 18046EOF 18047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18048 (eval $ac_link) 2>&5 18049 ac_status=$? 18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18052 (./conftest; exit; ) 2>/dev/null 18053 lt_status=$? 18054 case x$lt_status in 18055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18057 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18058 esac 18059 else : 18060 # compilation failed 18061 lt_cv_dlopen_self_static=no 18062 fi 18063fi 18064rm -fr conftest* 18065 18066 18067fi 18068echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18069echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18070 fi 18071 18072 CPPFLAGS="$save_CPPFLAGS" 18073 LDFLAGS="$save_LDFLAGS" 18074 LIBS="$save_LIBS" 18075 ;; 18076 esac 18077 18078 case $lt_cv_dlopen_self in 18079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18080 *) enable_dlopen_self=unknown ;; 18081 esac 18082 18083 case $lt_cv_dlopen_self_static in 18084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18085 *) enable_dlopen_self_static=unknown ;; 18086 esac 18087fi 18088 18089 18090# The else clause should only fire when bootstrapping the 18091# libtool distribution, otherwise you forgot to ship ltmain.sh 18092# with your package, and you will get complaints that there are 18093# no rules to generate ltmain.sh. 18094if test -f "$ltmain"; then 18095 # See if we are running on zsh, and set the options which allow our commands through 18096 # without removal of \ escapes. 18097 if test -n "${ZSH_VERSION+set}" ; then 18098 setopt NO_GLOB_SUBST 18099 fi 18100 # Now quote all the things that may contain metacharacters while being 18101 # careful not to overquote the AC_SUBSTed values. We take copies of the 18102 # variables and quote the copies for generation of the libtool script. 18103 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18104 SED SHELL STRIP \ 18105 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18106 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18107 deplibs_check_method reload_flag reload_cmds need_locks \ 18108 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18109 lt_cv_sys_global_symbol_to_c_name_address \ 18110 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18111 old_postinstall_cmds old_postuninstall_cmds \ 18112 compiler_GCJ \ 18113 CC_GCJ \ 18114 LD_GCJ \ 18115 lt_prog_compiler_wl_GCJ \ 18116 lt_prog_compiler_pic_GCJ \ 18117 lt_prog_compiler_static_GCJ \ 18118 lt_prog_compiler_no_builtin_flag_GCJ \ 18119 export_dynamic_flag_spec_GCJ \ 18120 thread_safe_flag_spec_GCJ \ 18121 whole_archive_flag_spec_GCJ \ 18122 enable_shared_with_static_runtimes_GCJ \ 18123 old_archive_cmds_GCJ \ 18124 old_archive_from_new_cmds_GCJ \ 18125 predep_objects_GCJ \ 18126 postdep_objects_GCJ \ 18127 predeps_GCJ \ 18128 postdeps_GCJ \ 18129 compiler_lib_search_path_GCJ \ 18130 archive_cmds_GCJ \ 18131 archive_expsym_cmds_GCJ \ 18132 postinstall_cmds_GCJ \ 18133 postuninstall_cmds_GCJ \ 18134 old_archive_from_expsyms_cmds_GCJ \ 18135 allow_undefined_flag_GCJ \ 18136 no_undefined_flag_GCJ \ 18137 export_symbols_cmds_GCJ \ 18138 hardcode_libdir_flag_spec_GCJ \ 18139 hardcode_libdir_flag_spec_ld_GCJ \ 18140 hardcode_libdir_separator_GCJ \ 18141 hardcode_automatic_GCJ \ 18142 module_cmds_GCJ \ 18143 module_expsym_cmds_GCJ \ 18144 lt_cv_prog_compiler_c_o_GCJ \ 18145 exclude_expsyms_GCJ \ 18146 include_expsyms_GCJ; do 18147 18148 case $var in 18149 old_archive_cmds_GCJ | \ 18150 old_archive_from_new_cmds_GCJ | \ 18151 archive_cmds_GCJ | \ 18152 archive_expsym_cmds_GCJ | \ 18153 module_cmds_GCJ | \ 18154 module_expsym_cmds_GCJ | \ 18155 old_archive_from_expsyms_cmds_GCJ | \ 18156 export_symbols_cmds_GCJ | \ 18157 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18158 postinstall_cmds | postuninstall_cmds | \ 18159 old_postinstall_cmds | old_postuninstall_cmds | \ 18160 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18161 # Double-quote double-evaled strings. 18162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18163 ;; 18164 *) 18165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18166 ;; 18167 esac 18168 done 18169 18170 case $lt_echo in 18171 *'\$0 --fallback-echo"') 18172 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18173 ;; 18174 esac 18175 18176cfgfile="$ofile" 18177 18178 cat <<__EOF__ >> "$cfgfile" 18179# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18180 18181# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18182 18183# Shell to use when invoking shell scripts. 18184SHELL=$lt_SHELL 18185 18186# Whether or not to build shared libraries. 18187build_libtool_libs=$enable_shared 18188 18189# Whether or not to build static libraries. 18190build_old_libs=$enable_static 18191 18192# Whether or not to add -lc for building shared libraries. 18193build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18194 18195# Whether or not to disallow shared libs when runtime libs are static 18196allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18197 18198# Whether or not to optimize for fast installation. 18199fast_install=$enable_fast_install 18200 18201# The host system. 18202host_alias=$host_alias 18203host=$host 18204 18205# An echo program that does not interpret backslashes. 18206echo=$lt_echo 18207 18208# The archiver. 18209AR=$lt_AR 18210AR_FLAGS=$lt_AR_FLAGS 18211 18212# A C compiler. 18213LTCC=$lt_LTCC 18214 18215# A language-specific compiler. 18216CC=$lt_compiler_GCJ 18217 18218# Is the compiler the GNU C compiler? 18219with_gcc=$GCC_GCJ 18220 18221# An ERE matcher. 18222EGREP=$lt_EGREP 18223 18224# The linker used to build libraries. 18225LD=$lt_LD_GCJ 18226 18227# Whether we need hard or soft links. 18228LN_S=$lt_LN_S 18229 18230# A BSD-compatible nm program. 18231NM=$lt_NM 18232 18233# A symbol stripping program 18234STRIP=$lt_STRIP 18235 18236# Used to examine libraries when file_magic_cmd begins "file" 18237MAGIC_CMD=$MAGIC_CMD 18238 18239# Used on cygwin: DLL creation program. 18240DLLTOOL="$DLLTOOL" 18241 18242# Used on cygwin: object dumper. 18243OBJDUMP="$OBJDUMP" 18244 18245# Used on cygwin: assembler. 18246AS="$AS" 18247 18248# The name of the directory that contains temporary libtool files. 18249objdir=$objdir 18250 18251# How to create reloadable object files. 18252reload_flag=$lt_reload_flag 18253reload_cmds=$lt_reload_cmds 18254 18255# How to pass a linker flag through the compiler. 18256wl=$lt_lt_prog_compiler_wl_GCJ 18257 18258# Object file suffix (normally "o"). 18259objext="$ac_objext" 18260 18261# Old archive suffix (normally "a"). 18262libext="$libext" 18263 18264# Shared library suffix (normally ".so"). 18265shrext_cmds='$shrext_cmds' 18266 18267# Executable file suffix (normally ""). 18268exeext="$exeext" 18269 18270# Additional compiler flags for building library objects. 18271pic_flag=$lt_lt_prog_compiler_pic_GCJ 18272pic_mode=$pic_mode 18273 18274# What is the maximum length of a command? 18275max_cmd_len=$lt_cv_sys_max_cmd_len 18276 18277# Does compiler simultaneously support -c and -o options? 18278compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18279 18280# Must we lock files when doing compilation ? 18281need_locks=$lt_need_locks 18282 18283# Do we need the lib prefix for modules? 18284need_lib_prefix=$need_lib_prefix 18285 18286# Do we need a version for libraries? 18287need_version=$need_version 18288 18289# Whether dlopen is supported. 18290dlopen_support=$enable_dlopen 18291 18292# Whether dlopen of programs is supported. 18293dlopen_self=$enable_dlopen_self 18294 18295# Whether dlopen of statically linked programs is supported. 18296dlopen_self_static=$enable_dlopen_self_static 18297 18298# Compiler flag to prevent dynamic linking. 18299link_static_flag=$lt_lt_prog_compiler_static_GCJ 18300 18301# Compiler flag to turn off builtin functions. 18302no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18303 18304# Compiler flag to allow reflexive dlopens. 18305export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18306 18307# Compiler flag to generate shared objects directly from archives. 18308whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18309 18310# Compiler flag to generate thread-safe objects. 18311thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18312 18313# Library versioning type. 18314version_type=$version_type 18315 18316# Format of library name prefix. 18317libname_spec=$lt_libname_spec 18318 18319# List of archive names. First name is the real one, the rest are links. 18320# The last name is the one that the linker finds with -lNAME. 18321library_names_spec=$lt_library_names_spec 18322 18323# The coded name of the library, if different from the real name. 18324soname_spec=$lt_soname_spec 18325 18326# Commands used to build and install an old-style archive. 18327RANLIB=$lt_RANLIB 18328old_archive_cmds=$lt_old_archive_cmds_GCJ 18329old_postinstall_cmds=$lt_old_postinstall_cmds 18330old_postuninstall_cmds=$lt_old_postuninstall_cmds 18331 18332# Create an old-style archive from a shared archive. 18333old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18334 18335# Create a temporary old-style archive to link instead of a shared archive. 18336old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18337 18338# Commands used to build and install a shared archive. 18339archive_cmds=$lt_archive_cmds_GCJ 18340archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18341postinstall_cmds=$lt_postinstall_cmds 18342postuninstall_cmds=$lt_postuninstall_cmds 18343 18344# Commands used to build a loadable module (assumed same as above if empty) 18345module_cmds=$lt_module_cmds_GCJ 18346module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18347 18348# Commands to strip libraries. 18349old_striplib=$lt_old_striplib 18350striplib=$lt_striplib 18351 18352# Dependencies to place before the objects being linked to create a 18353# shared library. 18354predep_objects=$lt_predep_objects_GCJ 18355 18356# Dependencies to place after the objects being linked to create a 18357# shared library. 18358postdep_objects=$lt_postdep_objects_GCJ 18359 18360# Dependencies to place before the objects being linked to create a 18361# shared library. 18362predeps=$lt_predeps_GCJ 18363 18364# Dependencies to place after the objects being linked to create a 18365# shared library. 18366postdeps=$lt_postdeps_GCJ 18367 18368# The library search path used internally by the compiler when linking 18369# a shared library. 18370compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18371 18372# Method to check whether dependent libraries are shared objects. 18373deplibs_check_method=$lt_deplibs_check_method 18374 18375# Command to use when deplibs_check_method == file_magic. 18376file_magic_cmd=$lt_file_magic_cmd 18377 18378# Flag that allows shared libraries with undefined symbols to be built. 18379allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18380 18381# Flag that forces no undefined symbols. 18382no_undefined_flag=$lt_no_undefined_flag_GCJ 18383 18384# Commands used to finish a libtool library installation in a directory. 18385finish_cmds=$lt_finish_cmds 18386 18387# Same as above, but a single script fragment to be evaled but not shown. 18388finish_eval=$lt_finish_eval 18389 18390# Take the output of nm and produce a listing of raw symbols and C names. 18391global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18392 18393# Transform the output of nm in a proper C declaration 18394global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18395 18396# Transform the output of nm in a C name address pair 18397global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18398 18399# This is the shared library runtime path variable. 18400runpath_var=$runpath_var 18401 18402# This is the shared library path variable. 18403shlibpath_var=$shlibpath_var 18404 18405# Is shlibpath searched before the hard-coded library search path? 18406shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18407 18408# How to hardcode a shared library path into an executable. 18409hardcode_action=$hardcode_action_GCJ 18410 18411# Whether we should hardcode library paths into libraries. 18412hardcode_into_libs=$hardcode_into_libs 18413 18414# Flag to hardcode \$libdir into a binary during linking. 18415# This must work even if \$libdir does not exist. 18416hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18417 18418# If ld is used when linking, flag to hardcode \$libdir into 18419# a binary during linking. This must work even if \$libdir does 18420# not exist. 18421hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18422 18423# Whether we need a single -rpath flag with a separated argument. 18424hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18425 18426# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18427# resulting binary. 18428hardcode_direct=$hardcode_direct_GCJ 18429 18430# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18431# resulting binary. 18432hardcode_minus_L=$hardcode_minus_L_GCJ 18433 18434# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18435# the resulting binary. 18436hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18437 18438# Set to yes if building a shared library automatically hardcodes DIR into the library 18439# and all subsequent libraries and executables linked against it. 18440hardcode_automatic=$hardcode_automatic_GCJ 18441 18442# Variables whose values should be saved in libtool wrapper scripts and 18443# restored at relink time. 18444variables_saved_for_relink="$variables_saved_for_relink" 18445 18446# Whether libtool must link a program against all its dependency libraries. 18447link_all_deplibs=$link_all_deplibs_GCJ 18448 18449# Compile-time system search path for libraries 18450sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18451 18452# Run-time system search path for libraries 18453sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18454 18455# Fix the shell variable \$srcfile for the compiler. 18456fix_srcfile_path="$fix_srcfile_path_GCJ" 18457 18458# Set to yes if exported symbols are required. 18459always_export_symbols=$always_export_symbols_GCJ 18460 18461# The commands to list exported symbols. 18462export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18463 18464# The commands to extract the exported symbol list from a shared archive. 18465extract_expsyms_cmds=$lt_extract_expsyms_cmds 18466 18467# Symbols that should not be listed in the preloaded symbols. 18468exclude_expsyms=$lt_exclude_expsyms_GCJ 18469 18470# Symbols that must always be exported. 18471include_expsyms=$lt_include_expsyms_GCJ 18472 18473# ### END LIBTOOL TAG CONFIG: $tagname 18474 18475__EOF__ 18476 18477 18478else 18479 # If there is no Makefile yet, we rely on a make rule to execute 18480 # `config.status --recheck' to rerun these tests and create the 18481 # libtool script then. 18482 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18483 if test -f "$ltmain_in"; then 18484 test -f Makefile && make "$ltmain" 18485 fi 18486fi 18487 18488 18489ac_ext=c 18490ac_cpp='$CPP $CPPFLAGS' 18491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18493ac_compiler_gnu=$ac_cv_c_compiler_gnu 18494 18495CC="$lt_save_CC" 18496 18497 else 18498 tagname="" 18499 fi 18500 ;; 18501 18502 RC) 18503 18504 18505 18506# Source file extension for RC test sources. 18507ac_ext=rc 18508 18509# Object file extension for compiled RC test sources. 18510objext=o 18511objext_RC=$objext 18512 18513# Code to be used in simple compile tests 18514lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18515 18516# Code to be used in simple link tests 18517lt_simple_link_test_code="$lt_simple_compile_test_code" 18518 18519# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18520 18521# If no C compiler was specified, use CC. 18522LTCC=${LTCC-"$CC"} 18523 18524# Allow CC to be a program name with arguments. 18525compiler=$CC 18526 18527 18528# Allow CC to be a program name with arguments. 18529lt_save_CC="$CC" 18530CC=${RC-"windres"} 18531compiler=$CC 18532compiler_RC=$CC 18533lt_cv_prog_compiler_c_o_RC=yes 18534 18535# The else clause should only fire when bootstrapping the 18536# libtool distribution, otherwise you forgot to ship ltmain.sh 18537# with your package, and you will get complaints that there are 18538# no rules to generate ltmain.sh. 18539if test -f "$ltmain"; then 18540 # See if we are running on zsh, and set the options which allow our commands through 18541 # without removal of \ escapes. 18542 if test -n "${ZSH_VERSION+set}" ; then 18543 setopt NO_GLOB_SUBST 18544 fi 18545 # Now quote all the things that may contain metacharacters while being 18546 # careful not to overquote the AC_SUBSTed values. We take copies of the 18547 # variables and quote the copies for generation of the libtool script. 18548 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18549 SED SHELL STRIP \ 18550 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18551 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18552 deplibs_check_method reload_flag reload_cmds need_locks \ 18553 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18554 lt_cv_sys_global_symbol_to_c_name_address \ 18555 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18556 old_postinstall_cmds old_postuninstall_cmds \ 18557 compiler_RC \ 18558 CC_RC \ 18559 LD_RC \ 18560 lt_prog_compiler_wl_RC \ 18561 lt_prog_compiler_pic_RC \ 18562 lt_prog_compiler_static_RC \ 18563 lt_prog_compiler_no_builtin_flag_RC \ 18564 export_dynamic_flag_spec_RC \ 18565 thread_safe_flag_spec_RC \ 18566 whole_archive_flag_spec_RC \ 18567 enable_shared_with_static_runtimes_RC \ 18568 old_archive_cmds_RC \ 18569 old_archive_from_new_cmds_RC \ 18570 predep_objects_RC \ 18571 postdep_objects_RC \ 18572 predeps_RC \ 18573 postdeps_RC \ 18574 compiler_lib_search_path_RC \ 18575 archive_cmds_RC \ 18576 archive_expsym_cmds_RC \ 18577 postinstall_cmds_RC \ 18578 postuninstall_cmds_RC \ 18579 old_archive_from_expsyms_cmds_RC \ 18580 allow_undefined_flag_RC \ 18581 no_undefined_flag_RC \ 18582 export_symbols_cmds_RC \ 18583 hardcode_libdir_flag_spec_RC \ 18584 hardcode_libdir_flag_spec_ld_RC \ 18585 hardcode_libdir_separator_RC \ 18586 hardcode_automatic_RC \ 18587 module_cmds_RC \ 18588 module_expsym_cmds_RC \ 18589 lt_cv_prog_compiler_c_o_RC \ 18590 exclude_expsyms_RC \ 18591 include_expsyms_RC; do 18592 18593 case $var in 18594 old_archive_cmds_RC | \ 18595 old_archive_from_new_cmds_RC | \ 18596 archive_cmds_RC | \ 18597 archive_expsym_cmds_RC | \ 18598 module_cmds_RC | \ 18599 module_expsym_cmds_RC | \ 18600 old_archive_from_expsyms_cmds_RC | \ 18601 export_symbols_cmds_RC | \ 18602 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18603 postinstall_cmds | postuninstall_cmds | \ 18604 old_postinstall_cmds | old_postuninstall_cmds | \ 18605 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18606 # Double-quote double-evaled strings. 18607 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18608 ;; 18609 *) 18610 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18611 ;; 18612 esac 18613 done 18614 18615 case $lt_echo in 18616 *'\$0 --fallback-echo"') 18617 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18618 ;; 18619 esac 18620 18621cfgfile="$ofile" 18622 18623 cat <<__EOF__ >> "$cfgfile" 18624# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18625 18626# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18627 18628# Shell to use when invoking shell scripts. 18629SHELL=$lt_SHELL 18630 18631# Whether or not to build shared libraries. 18632build_libtool_libs=$enable_shared 18633 18634# Whether or not to build static libraries. 18635build_old_libs=$enable_static 18636 18637# Whether or not to add -lc for building shared libraries. 18638build_libtool_need_lc=$archive_cmds_need_lc_RC 18639 18640# Whether or not to disallow shared libs when runtime libs are static 18641allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18642 18643# Whether or not to optimize for fast installation. 18644fast_install=$enable_fast_install 18645 18646# The host system. 18647host_alias=$host_alias 18648host=$host 18649 18650# An echo program that does not interpret backslashes. 18651echo=$lt_echo 18652 18653# The archiver. 18654AR=$lt_AR 18655AR_FLAGS=$lt_AR_FLAGS 18656 18657# A C compiler. 18658LTCC=$lt_LTCC 18659 18660# A language-specific compiler. 18661CC=$lt_compiler_RC 18662 18663# Is the compiler the GNU C compiler? 18664with_gcc=$GCC_RC 18665 18666# An ERE matcher. 18667EGREP=$lt_EGREP 18668 18669# The linker used to build libraries. 18670LD=$lt_LD_RC 18671 18672# Whether we need hard or soft links. 18673LN_S=$lt_LN_S 18674 18675# A BSD-compatible nm program. 18676NM=$lt_NM 18677 18678# A symbol stripping program 18679STRIP=$lt_STRIP 18680 18681# Used to examine libraries when file_magic_cmd begins "file" 18682MAGIC_CMD=$MAGIC_CMD 18683 18684# Used on cygwin: DLL creation program. 18685DLLTOOL="$DLLTOOL" 18686 18687# Used on cygwin: object dumper. 18688OBJDUMP="$OBJDUMP" 18689 18690# Used on cygwin: assembler. 18691AS="$AS" 18692 18693# The name of the directory that contains temporary libtool files. 18694objdir=$objdir 18695 18696# How to create reloadable object files. 18697reload_flag=$lt_reload_flag 18698reload_cmds=$lt_reload_cmds 18699 18700# How to pass a linker flag through the compiler. 18701wl=$lt_lt_prog_compiler_wl_RC 18702 18703# Object file suffix (normally "o"). 18704objext="$ac_objext" 18705 18706# Old archive suffix (normally "a"). 18707libext="$libext" 18708 18709# Shared library suffix (normally ".so"). 18710shrext_cmds='$shrext_cmds' 18711 18712# Executable file suffix (normally ""). 18713exeext="$exeext" 18714 18715# Additional compiler flags for building library objects. 18716pic_flag=$lt_lt_prog_compiler_pic_RC 18717pic_mode=$pic_mode 18718 18719# What is the maximum length of a command? 18720max_cmd_len=$lt_cv_sys_max_cmd_len 18721 18722# Does compiler simultaneously support -c and -o options? 18723compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18724 18725# Must we lock files when doing compilation ? 18726need_locks=$lt_need_locks 18727 18728# Do we need the lib prefix for modules? 18729need_lib_prefix=$need_lib_prefix 18730 18731# Do we need a version for libraries? 18732need_version=$need_version 18733 18734# Whether dlopen is supported. 18735dlopen_support=$enable_dlopen 18736 18737# Whether dlopen of programs is supported. 18738dlopen_self=$enable_dlopen_self 18739 18740# Whether dlopen of statically linked programs is supported. 18741dlopen_self_static=$enable_dlopen_self_static 18742 18743# Compiler flag to prevent dynamic linking. 18744link_static_flag=$lt_lt_prog_compiler_static_RC 18745 18746# Compiler flag to turn off builtin functions. 18747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18748 18749# Compiler flag to allow reflexive dlopens. 18750export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18751 18752# Compiler flag to generate shared objects directly from archives. 18753whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18754 18755# Compiler flag to generate thread-safe objects. 18756thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18757 18758# Library versioning type. 18759version_type=$version_type 18760 18761# Format of library name prefix. 18762libname_spec=$lt_libname_spec 18763 18764# List of archive names. First name is the real one, the rest are links. 18765# The last name is the one that the linker finds with -lNAME. 18766library_names_spec=$lt_library_names_spec 18767 18768# The coded name of the library, if different from the real name. 18769soname_spec=$lt_soname_spec 18770 18771# Commands used to build and install an old-style archive. 18772RANLIB=$lt_RANLIB 18773old_archive_cmds=$lt_old_archive_cmds_RC 18774old_postinstall_cmds=$lt_old_postinstall_cmds 18775old_postuninstall_cmds=$lt_old_postuninstall_cmds 18776 18777# Create an old-style archive from a shared archive. 18778old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18779 18780# Create a temporary old-style archive to link instead of a shared archive. 18781old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18782 18783# Commands used to build and install a shared archive. 18784archive_cmds=$lt_archive_cmds_RC 18785archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18786postinstall_cmds=$lt_postinstall_cmds 18787postuninstall_cmds=$lt_postuninstall_cmds 18788 18789# Commands used to build a loadable module (assumed same as above if empty) 18790module_cmds=$lt_module_cmds_RC 18791module_expsym_cmds=$lt_module_expsym_cmds_RC 18792 18793# Commands to strip libraries. 18794old_striplib=$lt_old_striplib 18795striplib=$lt_striplib 18796 18797# Dependencies to place before the objects being linked to create a 18798# shared library. 18799predep_objects=$lt_predep_objects_RC 18800 18801# Dependencies to place after the objects being linked to create a 18802# shared library. 18803postdep_objects=$lt_postdep_objects_RC 18804 18805# Dependencies to place before the objects being linked to create a 18806# shared library. 18807predeps=$lt_predeps_RC 18808 18809# Dependencies to place after the objects being linked to create a 18810# shared library. 18811postdeps=$lt_postdeps_RC 18812 18813# The library search path used internally by the compiler when linking 18814# a shared library. 18815compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18816 18817# Method to check whether dependent libraries are shared objects. 18818deplibs_check_method=$lt_deplibs_check_method 18819 18820# Command to use when deplibs_check_method == file_magic. 18821file_magic_cmd=$lt_file_magic_cmd 18822 18823# Flag that allows shared libraries with undefined symbols to be built. 18824allow_undefined_flag=$lt_allow_undefined_flag_RC 18825 18826# Flag that forces no undefined symbols. 18827no_undefined_flag=$lt_no_undefined_flag_RC 18828 18829# Commands used to finish a libtool library installation in a directory. 18830finish_cmds=$lt_finish_cmds 18831 18832# Same as above, but a single script fragment to be evaled but not shown. 18833finish_eval=$lt_finish_eval 18834 18835# Take the output of nm and produce a listing of raw symbols and C names. 18836global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18837 18838# Transform the output of nm in a proper C declaration 18839global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18840 18841# Transform the output of nm in a C name address pair 18842global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18843 18844# This is the shared library runtime path variable. 18845runpath_var=$runpath_var 18846 18847# This is the shared library path variable. 18848shlibpath_var=$shlibpath_var 18849 18850# Is shlibpath searched before the hard-coded library search path? 18851shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18852 18853# How to hardcode a shared library path into an executable. 18854hardcode_action=$hardcode_action_RC 18855 18856# Whether we should hardcode library paths into libraries. 18857hardcode_into_libs=$hardcode_into_libs 18858 18859# Flag to hardcode \$libdir into a binary during linking. 18860# This must work even if \$libdir does not exist. 18861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18862 18863# If ld is used when linking, flag to hardcode \$libdir into 18864# a binary during linking. This must work even if \$libdir does 18865# not exist. 18866hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18867 18868# Whether we need a single -rpath flag with a separated argument. 18869hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18870 18871# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18872# resulting binary. 18873hardcode_direct=$hardcode_direct_RC 18874 18875# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18876# resulting binary. 18877hardcode_minus_L=$hardcode_minus_L_RC 18878 18879# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18880# the resulting binary. 18881hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18882 18883# Set to yes if building a shared library automatically hardcodes DIR into the library 18884# and all subsequent libraries and executables linked against it. 18885hardcode_automatic=$hardcode_automatic_RC 18886 18887# Variables whose values should be saved in libtool wrapper scripts and 18888# restored at relink time. 18889variables_saved_for_relink="$variables_saved_for_relink" 18890 18891# Whether libtool must link a program against all its dependency libraries. 18892link_all_deplibs=$link_all_deplibs_RC 18893 18894# Compile-time system search path for libraries 18895sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18896 18897# Run-time system search path for libraries 18898sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18899 18900# Fix the shell variable \$srcfile for the compiler. 18901fix_srcfile_path="$fix_srcfile_path_RC" 18902 18903# Set to yes if exported symbols are required. 18904always_export_symbols=$always_export_symbols_RC 18905 18906# The commands to list exported symbols. 18907export_symbols_cmds=$lt_export_symbols_cmds_RC 18908 18909# The commands to extract the exported symbol list from a shared archive. 18910extract_expsyms_cmds=$lt_extract_expsyms_cmds 18911 18912# Symbols that should not be listed in the preloaded symbols. 18913exclude_expsyms=$lt_exclude_expsyms_RC 18914 18915# Symbols that must always be exported. 18916include_expsyms=$lt_include_expsyms_RC 18917 18918# ### END LIBTOOL TAG CONFIG: $tagname 18919 18920__EOF__ 18921 18922 18923else 18924 # If there is no Makefile yet, we rely on a make rule to execute 18925 # `config.status --recheck' to rerun these tests and create the 18926 # libtool script then. 18927 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18928 if test -f "$ltmain_in"; then 18929 test -f Makefile && make "$ltmain" 18930 fi 18931fi 18932 18933 18934ac_ext=c 18935ac_cpp='$CPP $CPPFLAGS' 18936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18938ac_compiler_gnu=$ac_cv_c_compiler_gnu 18939 18940CC="$lt_save_CC" 18941 18942 ;; 18943 18944 *) 18945 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18946echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18947 { (exit 1); exit 1; }; } 18948 ;; 18949 esac 18950 18951 # Append the new tag name to the list of available tags. 18952 if test -n "$tagname" ; then 18953 available_tags="$available_tags $tagname" 18954 fi 18955 fi 18956 done 18957 IFS="$lt_save_ifs" 18958 18959 # Now substitute the updated list of available tags. 18960 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18961 mv "${ofile}T" "$ofile" 18962 chmod +x "$ofile" 18963 else 18964 rm -f "${ofile}T" 18965 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18966echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18967 { (exit 1); exit 1; }; } 18968 fi 18969fi 18970 18971 18972 18973# This can be used to rebuild libtool when needed 18974LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18975 18976# Always use our own libtool. 18977LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18978 18979# Prevent multiple expansion 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19002echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19003if test "${ac_cv_header_stdc+set}" = set; then 19004 echo $ECHO_N "(cached) $ECHO_C" >&6 19005else 19006 cat >conftest.$ac_ext <<_ACEOF 19007/* confdefs.h. */ 19008_ACEOF 19009cat confdefs.h >>conftest.$ac_ext 19010cat >>conftest.$ac_ext <<_ACEOF 19011/* end confdefs.h. */ 19012#include <stdlib.h> 19013#include <stdarg.h> 19014#include <string.h> 19015#include <float.h> 19016 19017int 19018main () 19019{ 19020 19021 ; 19022 return 0; 19023} 19024_ACEOF 19025rm -f conftest.$ac_objext 19026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19027 (eval $ac_compile) 2>conftest.er1 19028 ac_status=$? 19029 grep -v '^ *+' conftest.er1 >conftest.err 19030 rm -f conftest.er1 19031 cat conftest.err >&5 19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19033 (exit $ac_status); } && 19034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19036 (eval $ac_try) 2>&5 19037 ac_status=$? 19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19039 (exit $ac_status); }; } && 19040 { ac_try='test -s conftest.$ac_objext' 19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19042 (eval $ac_try) 2>&5 19043 ac_status=$? 19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19045 (exit $ac_status); }; }; then 19046 ac_cv_header_stdc=yes 19047else 19048 echo "$as_me: failed program was:" >&5 19049sed 's/^/| /' conftest.$ac_ext >&5 19050 19051ac_cv_header_stdc=no 19052fi 19053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19054 19055if test $ac_cv_header_stdc = yes; then 19056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19057 cat >conftest.$ac_ext <<_ACEOF 19058/* confdefs.h. */ 19059_ACEOF 19060cat confdefs.h >>conftest.$ac_ext 19061cat >>conftest.$ac_ext <<_ACEOF 19062/* end confdefs.h. */ 19063#include <string.h> 19064 19065_ACEOF 19066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19067 $EGREP "memchr" >/dev/null 2>&1; then 19068 : 19069else 19070 ac_cv_header_stdc=no 19071fi 19072rm -f conftest* 19073 19074fi 19075 19076if test $ac_cv_header_stdc = yes; then 19077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19078 cat >conftest.$ac_ext <<_ACEOF 19079/* confdefs.h. */ 19080_ACEOF 19081cat confdefs.h >>conftest.$ac_ext 19082cat >>conftest.$ac_ext <<_ACEOF 19083/* end confdefs.h. */ 19084#include <stdlib.h> 19085 19086_ACEOF 19087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19088 $EGREP "free" >/dev/null 2>&1; then 19089 : 19090else 19091 ac_cv_header_stdc=no 19092fi 19093rm -f conftest* 19094 19095fi 19096 19097if test $ac_cv_header_stdc = yes; then 19098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19099 if test "$cross_compiling" = yes; then 19100 : 19101else 19102 cat >conftest.$ac_ext <<_ACEOF 19103/* confdefs.h. */ 19104_ACEOF 19105cat confdefs.h >>conftest.$ac_ext 19106cat >>conftest.$ac_ext <<_ACEOF 19107/* end confdefs.h. */ 19108#include <ctype.h> 19109#if ((' ' & 0x0FF) == 0x020) 19110# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19111# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19112#else 19113# define ISLOWER(c) \ 19114 (('a' <= (c) && (c) <= 'i') \ 19115 || ('j' <= (c) && (c) <= 'r') \ 19116 || ('s' <= (c) && (c) <= 'z')) 19117# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19118#endif 19119 19120#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19121int 19122main () 19123{ 19124 int i; 19125 for (i = 0; i < 256; i++) 19126 if (XOR (islower (i), ISLOWER (i)) 19127 || toupper (i) != TOUPPER (i)) 19128 exit(2); 19129 exit (0); 19130} 19131_ACEOF 19132rm -f conftest$ac_exeext 19133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19134 (eval $ac_link) 2>&5 19135 ac_status=$? 19136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19139 (eval $ac_try) 2>&5 19140 ac_status=$? 19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19142 (exit $ac_status); }; }; then 19143 : 19144else 19145 echo "$as_me: program exited with status $ac_status" >&5 19146echo "$as_me: failed program was:" >&5 19147sed 's/^/| /' conftest.$ac_ext >&5 19148 19149( exit $ac_status ) 19150ac_cv_header_stdc=no 19151fi 19152rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19153fi 19154fi 19155fi 19156echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 19157echo "${ECHO_T}$ac_cv_header_stdc" >&6 19158if test $ac_cv_header_stdc = yes; then 19159 19160cat >>confdefs.h <<\_ACEOF 19161#define STDC_HEADERS 1 19162_ACEOF 19163 19164fi 19165 19166 19167 19168for ac_header in stdlib.h string.h 19169do 19170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19171if eval "test \"\${$as_ac_Header+set}\" = set"; then 19172 echo "$as_me:$LINENO: checking for $ac_header" >&5 19173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19174if eval "test \"\${$as_ac_Header+set}\" = set"; then 19175 echo $ECHO_N "(cached) $ECHO_C" >&6 19176fi 19177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19179else 19180 # Is the header compilable? 19181echo "$as_me:$LINENO: checking $ac_header usability" >&5 19182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 19183cat >conftest.$ac_ext <<_ACEOF 19184/* confdefs.h. */ 19185_ACEOF 19186cat confdefs.h >>conftest.$ac_ext 19187cat >>conftest.$ac_ext <<_ACEOF 19188/* end confdefs.h. */ 19189$ac_includes_default 19190#include <$ac_header> 19191_ACEOF 19192rm -f conftest.$ac_objext 19193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19194 (eval $ac_compile) 2>conftest.er1 19195 ac_status=$? 19196 grep -v '^ *+' conftest.er1 >conftest.err 19197 rm -f conftest.er1 19198 cat conftest.err >&5 19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19200 (exit $ac_status); } && 19201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19203 (eval $ac_try) 2>&5 19204 ac_status=$? 19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19206 (exit $ac_status); }; } && 19207 { ac_try='test -s conftest.$ac_objext' 19208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19209 (eval $ac_try) 2>&5 19210 ac_status=$? 19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19212 (exit $ac_status); }; }; then 19213 ac_header_compiler=yes 19214else 19215 echo "$as_me: failed program was:" >&5 19216sed 's/^/| /' conftest.$ac_ext >&5 19217 19218ac_header_compiler=no 19219fi 19220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19221echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19222echo "${ECHO_T}$ac_header_compiler" >&6 19223 19224# Is the header present? 19225echo "$as_me:$LINENO: checking $ac_header presence" >&5 19226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 19227cat >conftest.$ac_ext <<_ACEOF 19228/* confdefs.h. */ 19229_ACEOF 19230cat confdefs.h >>conftest.$ac_ext 19231cat >>conftest.$ac_ext <<_ACEOF 19232/* end confdefs.h. */ 19233#include <$ac_header> 19234_ACEOF 19235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19237 ac_status=$? 19238 grep -v '^ *+' conftest.er1 >conftest.err 19239 rm -f conftest.er1 19240 cat conftest.err >&5 19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19242 (exit $ac_status); } >/dev/null; then 19243 if test -s conftest.err; then 19244 ac_cpp_err=$ac_c_preproc_warn_flag 19245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19246 else 19247 ac_cpp_err= 19248 fi 19249else 19250 ac_cpp_err=yes 19251fi 19252if test -z "$ac_cpp_err"; then 19253 ac_header_preproc=yes 19254else 19255 echo "$as_me: failed program was:" >&5 19256sed 's/^/| /' conftest.$ac_ext >&5 19257 19258 ac_header_preproc=no 19259fi 19260rm -f conftest.err conftest.$ac_ext 19261echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19262echo "${ECHO_T}$ac_header_preproc" >&6 19263 19264# So? What about this header? 19265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19266 yes:no: ) 19267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19271 ac_header_preproc=yes 19272 ;; 19273 no:yes:* ) 19274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19277echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19281echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19286 ( 19287 cat <<\_ASBOX 19288## -------------------------------------- ## 19289## Report this to http://freedesktop.org/ ## 19290## -------------------------------------- ## 19291_ASBOX 19292 ) | 19293 sed "s/^/$as_me: WARNING: /" >&2 19294 ;; 19295esac 19296echo "$as_me:$LINENO: checking for $ac_header" >&5 19297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 19298if eval "test \"\${$as_ac_Header+set}\" = set"; then 19299 echo $ECHO_N "(cached) $ECHO_C" >&6 19300else 19301 eval "$as_ac_Header=\$ac_header_preproc" 19302fi 19303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 19304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 19305 19306fi 19307if test `eval echo '${'$as_ac_Header'}'` = yes; then 19308 cat >>confdefs.h <<_ACEOF 19309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19310_ACEOF 19311 19312fi 19313 19314done 19315 19316 19317 19318 MKINSTALLDIRS= 19319 if test -n "$ac_aux_dir"; then 19320 case "$ac_aux_dir" in 19321 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 19322 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 19323 esac 19324 fi 19325 if test -z "$MKINSTALLDIRS"; then 19326 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 19327 fi 19328 19329 19330 19331 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 19332echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 19333 # Check whether --enable-nls or --disable-nls was given. 19334if test "${enable_nls+set}" = set; then 19335 enableval="$enable_nls" 19336 USE_NLS=$enableval 19337else 19338 USE_NLS=yes 19339fi; 19340 echo "$as_me:$LINENO: result: $USE_NLS" >&5 19341echo "${ECHO_T}$USE_NLS" >&6 19342 19343 19344 19345 19346 19347 19348# Prepare PATH_SEPARATOR. 19349# The user is always right. 19350if test "${PATH_SEPARATOR+set}" != set; then 19351 echo "#! /bin/sh" >conf$$.sh 19352 echo "exit 0" >>conf$$.sh 19353 chmod +x conf$$.sh 19354 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19355 PATH_SEPARATOR=';' 19356 else 19357 PATH_SEPARATOR=: 19358 fi 19359 rm -f conf$$.sh 19360fi 19361 19362# Find out how to test for executable files. Don't use a zero-byte file, 19363# as systems may use methods other than mode bits to determine executability. 19364cat >conf$$.file <<_ASEOF 19365#! /bin/sh 19366exit 0 19367_ASEOF 19368chmod +x conf$$.file 19369if test -x conf$$.file >/dev/null 2>&1; then 19370 ac_executable_p="test -x" 19371else 19372 ac_executable_p="test -f" 19373fi 19374rm -f conf$$.file 19375 19376# Extract the first word of "msgfmt", so it can be a program name with args. 19377set dummy msgfmt; ac_word=$2 19378echo "$as_me:$LINENO: checking for $ac_word" >&5 19379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19380if test "${ac_cv_path_MSGFMT+set}" = set; then 19381 echo $ECHO_N "(cached) $ECHO_C" >&6 19382else 19383 case "$MSGFMT" in 19384 [\\/]* | ?:[\\/]*) 19385 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 19386 ;; 19387 *) 19388 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 19389 for ac_dir in $PATH; do 19390 IFS="$ac_save_IFS" 19391 test -z "$ac_dir" && ac_dir=. 19392 for ac_exec_ext in '' $ac_executable_extensions; do 19393 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 19394 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 19395 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 19396 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 19397 break 2 19398 fi 19399 fi 19400 done 19401 done 19402 IFS="$ac_save_IFS" 19403 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 19404 ;; 19405esac 19406fi 19407MSGFMT="$ac_cv_path_MSGFMT" 19408if test "$MSGFMT" != ":"; then 19409 echo "$as_me:$LINENO: result: $MSGFMT" >&5 19410echo "${ECHO_T}$MSGFMT" >&6 19411else 19412 echo "$as_me:$LINENO: result: no" >&5 19413echo "${ECHO_T}no" >&6 19414fi 19415 19416 # Extract the first word of "gmsgfmt", so it can be a program name with args. 19417set dummy gmsgfmt; ac_word=$2 19418echo "$as_me:$LINENO: checking for $ac_word" >&5 19419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19420if test "${ac_cv_path_GMSGFMT+set}" = set; then 19421 echo $ECHO_N "(cached) $ECHO_C" >&6 19422else 19423 case $GMSGFMT in 19424 [\\/]* | ?:[\\/]*) 19425 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 19426 ;; 19427 *) 19428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19429for as_dir in $PATH 19430do 19431 IFS=$as_save_IFS 19432 test -z "$as_dir" && as_dir=. 19433 for ac_exec_ext in '' $ac_executable_extensions; do 19434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19435 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 19436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19437 break 2 19438 fi 19439done 19440done 19441 19442 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 19443 ;; 19444esac 19445fi 19446GMSGFMT=$ac_cv_path_GMSGFMT 19447 19448if test -n "$GMSGFMT"; then 19449 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 19450echo "${ECHO_T}$GMSGFMT" >&6 19451else 19452 echo "$as_me:$LINENO: result: no" >&5 19453echo "${ECHO_T}no" >&6 19454fi 19455 19456 19457 19458# Prepare PATH_SEPARATOR. 19459# The user is always right. 19460if test "${PATH_SEPARATOR+set}" != set; then 19461 echo "#! /bin/sh" >conf$$.sh 19462 echo "exit 0" >>conf$$.sh 19463 chmod +x conf$$.sh 19464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19465 PATH_SEPARATOR=';' 19466 else 19467 PATH_SEPARATOR=: 19468 fi 19469 rm -f conf$$.sh 19470fi 19471 19472# Find out how to test for executable files. Don't use a zero-byte file, 19473# as systems may use methods other than mode bits to determine executability. 19474cat >conf$$.file <<_ASEOF 19475#! /bin/sh 19476exit 0 19477_ASEOF 19478chmod +x conf$$.file 19479if test -x conf$$.file >/dev/null 2>&1; then 19480 ac_executable_p="test -x" 19481else 19482 ac_executable_p="test -f" 19483fi 19484rm -f conf$$.file 19485 19486# Extract the first word of "xgettext", so it can be a program name with args. 19487set dummy xgettext; ac_word=$2 19488echo "$as_me:$LINENO: checking for $ac_word" >&5 19489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19490if test "${ac_cv_path_XGETTEXT+set}" = set; then 19491 echo $ECHO_N "(cached) $ECHO_C" >&6 19492else 19493 case "$XGETTEXT" in 19494 [\\/]* | ?:[\\/]*) 19495 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 19496 ;; 19497 *) 19498 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 19499 for ac_dir in $PATH; do 19500 IFS="$ac_save_IFS" 19501 test -z "$ac_dir" && ac_dir=. 19502 for ac_exec_ext in '' $ac_executable_extensions; do 19503 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 19504 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 19505 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 19506 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 19507 break 2 19508 fi 19509 fi 19510 done 19511 done 19512 IFS="$ac_save_IFS" 19513 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 19514 ;; 19515esac 19516fi 19517XGETTEXT="$ac_cv_path_XGETTEXT" 19518if test "$XGETTEXT" != ":"; then 19519 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 19520echo "${ECHO_T}$XGETTEXT" >&6 19521else 19522 echo "$as_me:$LINENO: result: no" >&5 19523echo "${ECHO_T}no" >&6 19524fi 19525 19526 rm -f messages.po 19527 19528 19529# Prepare PATH_SEPARATOR. 19530# The user is always right. 19531if test "${PATH_SEPARATOR+set}" != set; then 19532 echo "#! /bin/sh" >conf$$.sh 19533 echo "exit 0" >>conf$$.sh 19534 chmod +x conf$$.sh 19535 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19536 PATH_SEPARATOR=';' 19537 else 19538 PATH_SEPARATOR=: 19539 fi 19540 rm -f conf$$.sh 19541fi 19542 19543# Find out how to test for executable files. Don't use a zero-byte file, 19544# as systems may use methods other than mode bits to determine executability. 19545cat >conf$$.file <<_ASEOF 19546#! /bin/sh 19547exit 0 19548_ASEOF 19549chmod +x conf$$.file 19550if test -x conf$$.file >/dev/null 2>&1; then 19551 ac_executable_p="test -x" 19552else 19553 ac_executable_p="test -f" 19554fi 19555rm -f conf$$.file 19556 19557# Extract the first word of "msgmerge", so it can be a program name with args. 19558set dummy msgmerge; ac_word=$2 19559echo "$as_me:$LINENO: checking for $ac_word" >&5 19560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19561if test "${ac_cv_path_MSGMERGE+set}" = set; then 19562 echo $ECHO_N "(cached) $ECHO_C" >&6 19563else 19564 case "$MSGMERGE" in 19565 [\\/]* | ?:[\\/]*) 19566 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 19567 ;; 19568 *) 19569 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 19570 for ac_dir in $PATH; do 19571 IFS="$ac_save_IFS" 19572 test -z "$ac_dir" && ac_dir=. 19573 for ac_exec_ext in '' $ac_executable_extensions; do 19574 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 19575 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 19576 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 19577 break 2 19578 fi 19579 fi 19580 done 19581 done 19582 IFS="$ac_save_IFS" 19583 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 19584 ;; 19585esac 19586fi 19587MSGMERGE="$ac_cv_path_MSGMERGE" 19588if test "$MSGMERGE" != ":"; then 19589 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 19590echo "${ECHO_T}$MSGMERGE" >&6 19591else 19592 echo "$as_me:$LINENO: result: no" >&5 19593echo "${ECHO_T}no" >&6 19594fi 19595 19596 19597 if test "$GMSGFMT" != ":"; then 19598 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 19599 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 19600 : ; 19601 else 19602 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 19603 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 19604echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 19605 GMSGFMT=":" 19606 fi 19607 fi 19608 19609 if test "$XGETTEXT" != ":"; then 19610 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 19611 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 19612 : ; 19613 else 19614 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 19615echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 19616 XGETTEXT=":" 19617 fi 19618 rm -f messages.po 19619 fi 19620 19621 ac_config_commands="$ac_config_commands default-1" 19622 19623 19624if test -n "$ac_tool_prefix"; then 19625 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 19626set dummy ${ac_tool_prefix}ranlib; ac_word=$2 19627echo "$as_me:$LINENO: checking for $ac_word" >&5 19628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19629if test "${ac_cv_prog_RANLIB+set}" = set; then 19630 echo $ECHO_N "(cached) $ECHO_C" >&6 19631else 19632 if test -n "$RANLIB"; then 19633 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 19634else 19635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19636for as_dir in $PATH 19637do 19638 IFS=$as_save_IFS 19639 test -z "$as_dir" && as_dir=. 19640 for ac_exec_ext in '' $ac_executable_extensions; do 19641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19642 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 19643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19644 break 2 19645 fi 19646done 19647done 19648 19649fi 19650fi 19651RANLIB=$ac_cv_prog_RANLIB 19652if test -n "$RANLIB"; then 19653 echo "$as_me:$LINENO: result: $RANLIB" >&5 19654echo "${ECHO_T}$RANLIB" >&6 19655else 19656 echo "$as_me:$LINENO: result: no" >&5 19657echo "${ECHO_T}no" >&6 19658fi 19659 19660fi 19661if test -z "$ac_cv_prog_RANLIB"; then 19662 ac_ct_RANLIB=$RANLIB 19663 # Extract the first word of "ranlib", so it can be a program name with args. 19664set dummy ranlib; ac_word=$2 19665echo "$as_me:$LINENO: checking for $ac_word" >&5 19666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19667if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 19668 echo $ECHO_N "(cached) $ECHO_C" >&6 19669else 19670 if test -n "$ac_ct_RANLIB"; then 19671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 19672else 19673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19674for as_dir in $PATH 19675do 19676 IFS=$as_save_IFS 19677 test -z "$as_dir" && as_dir=. 19678 for ac_exec_ext in '' $ac_executable_extensions; do 19679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19680 ac_cv_prog_ac_ct_RANLIB="ranlib" 19681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19682 break 2 19683 fi 19684done 19685done 19686 19687 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 19688fi 19689fi 19690ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 19691if test -n "$ac_ct_RANLIB"; then 19692 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 19693echo "${ECHO_T}$ac_ct_RANLIB" >&6 19694else 19695 echo "$as_me:$LINENO: result: no" >&5 19696echo "${ECHO_T}no" >&6 19697fi 19698 19699 RANLIB=$ac_ct_RANLIB 19700else 19701 RANLIB="$ac_cv_prog_RANLIB" 19702fi 19703 19704 19705 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 19706echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 19707if test "${ac_cv_lib_cposix_strerror+set}" = set; then 19708 echo $ECHO_N "(cached) $ECHO_C" >&6 19709else 19710 ac_check_lib_save_LIBS=$LIBS 19711LIBS="-lcposix $LIBS" 19712cat >conftest.$ac_ext <<_ACEOF 19713/* confdefs.h. */ 19714_ACEOF 19715cat confdefs.h >>conftest.$ac_ext 19716cat >>conftest.$ac_ext <<_ACEOF 19717/* end confdefs.h. */ 19718 19719/* Override any gcc2 internal prototype to avoid an error. */ 19720#ifdef __cplusplus 19721extern "C" 19722#endif 19723/* We use char because int might match the return type of a gcc2 19724 builtin and then its argument prototype would still apply. */ 19725char strerror (); 19726int 19727main () 19728{ 19729strerror (); 19730 ; 19731 return 0; 19732} 19733_ACEOF 19734rm -f conftest.$ac_objext conftest$ac_exeext 19735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19736 (eval $ac_link) 2>conftest.er1 19737 ac_status=$? 19738 grep -v '^ *+' conftest.er1 >conftest.err 19739 rm -f conftest.er1 19740 cat conftest.err >&5 19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19742 (exit $ac_status); } && 19743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19745 (eval $ac_try) 2>&5 19746 ac_status=$? 19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19748 (exit $ac_status); }; } && 19749 { ac_try='test -s conftest$ac_exeext' 19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19751 (eval $ac_try) 2>&5 19752 ac_status=$? 19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19754 (exit $ac_status); }; }; then 19755 ac_cv_lib_cposix_strerror=yes 19756else 19757 echo "$as_me: failed program was:" >&5 19758sed 's/^/| /' conftest.$ac_ext >&5 19759 19760ac_cv_lib_cposix_strerror=no 19761fi 19762rm -f conftest.err conftest.$ac_objext \ 19763 conftest$ac_exeext conftest.$ac_ext 19764LIBS=$ac_check_lib_save_LIBS 19765fi 19766echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 19767echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 19768if test $ac_cv_lib_cposix_strerror = yes; then 19769 LIBS="$LIBS -lcposix" 19770fi 19771 19772 19773 19774echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 19775echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 19776if test "${ac_cv_c_const+set}" = set; then 19777 echo $ECHO_N "(cached) $ECHO_C" >&6 19778else 19779 cat >conftest.$ac_ext <<_ACEOF 19780/* confdefs.h. */ 19781_ACEOF 19782cat confdefs.h >>conftest.$ac_ext 19783cat >>conftest.$ac_ext <<_ACEOF 19784/* end confdefs.h. */ 19785 19786int 19787main () 19788{ 19789/* FIXME: Include the comments suggested by Paul. */ 19790#ifndef __cplusplus 19791 /* Ultrix mips cc rejects this. */ 19792 typedef int charset[2]; 19793 const charset x; 19794 /* SunOS 4.1.1 cc rejects this. */ 19795 char const *const *ccp; 19796 char **p; 19797 /* NEC SVR4.0.2 mips cc rejects this. */ 19798 struct point {int x, y;}; 19799 static struct point const zero = {0,0}; 19800 /* AIX XL C 1.02.0.0 rejects this. 19801 It does not let you subtract one const X* pointer from another in 19802 an arm of an if-expression whose if-part is not a constant 19803 expression */ 19804 const char *g = "string"; 19805 ccp = &g + (g ? g-g : 0); 19806 /* HPUX 7.0 cc rejects these. */ 19807 ++ccp; 19808 p = (char**) ccp; 19809 ccp = (char const *const *) p; 19810 { /* SCO 3.2v4 cc rejects this. */ 19811 char *t; 19812 char const *s = 0 ? (char *) 0 : (char const *) 0; 19813 19814 *t++ = 0; 19815 } 19816 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19817 int x[] = {25, 17}; 19818 const int *foo = &x[0]; 19819 ++foo; 19820 } 19821 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19822 typedef const int *iptr; 19823 iptr p = 0; 19824 ++p; 19825 } 19826 { /* AIX XL C 1.02.0.0 rejects this saying 19827 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19828 struct s { int j; const int *ap[3]; }; 19829 struct s *b; b->j = 5; 19830 } 19831 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19832 const int foo = 10; 19833 } 19834#endif 19835 19836 ; 19837 return 0; 19838} 19839_ACEOF 19840rm -f conftest.$ac_objext 19841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19842 (eval $ac_compile) 2>conftest.er1 19843 ac_status=$? 19844 grep -v '^ *+' conftest.er1 >conftest.err 19845 rm -f conftest.er1 19846 cat conftest.err >&5 19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19848 (exit $ac_status); } && 19849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19851 (eval $ac_try) 2>&5 19852 ac_status=$? 19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19854 (exit $ac_status); }; } && 19855 { ac_try='test -s conftest.$ac_objext' 19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19857 (eval $ac_try) 2>&5 19858 ac_status=$? 19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19860 (exit $ac_status); }; }; then 19861 ac_cv_c_const=yes 19862else 19863 echo "$as_me: failed program was:" >&5 19864sed 's/^/| /' conftest.$ac_ext >&5 19865 19866ac_cv_c_const=no 19867fi 19868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19869fi 19870echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 19871echo "${ECHO_T}$ac_cv_c_const" >&6 19872if test $ac_cv_c_const = no; then 19873 19874cat >>confdefs.h <<\_ACEOF 19875#define const 19876_ACEOF 19877 19878fi 19879 19880 19881 echo "$as_me:$LINENO: checking for signed" >&5 19882echo $ECHO_N "checking for signed... $ECHO_C" >&6 19883if test "${bh_cv_c_signed+set}" = set; then 19884 echo $ECHO_N "(cached) $ECHO_C" >&6 19885else 19886 cat >conftest.$ac_ext <<_ACEOF 19887/* confdefs.h. */ 19888_ACEOF 19889cat confdefs.h >>conftest.$ac_ext 19890cat >>conftest.$ac_ext <<_ACEOF 19891/* end confdefs.h. */ 19892 19893int 19894main () 19895{ 19896signed char x; 19897 ; 19898 return 0; 19899} 19900_ACEOF 19901rm -f conftest.$ac_objext 19902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19903 (eval $ac_compile) 2>conftest.er1 19904 ac_status=$? 19905 grep -v '^ *+' conftest.er1 >conftest.err 19906 rm -f conftest.er1 19907 cat conftest.err >&5 19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19909 (exit $ac_status); } && 19910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19912 (eval $ac_try) 2>&5 19913 ac_status=$? 19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19915 (exit $ac_status); }; } && 19916 { ac_try='test -s conftest.$ac_objext' 19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19918 (eval $ac_try) 2>&5 19919 ac_status=$? 19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19921 (exit $ac_status); }; }; then 19922 bh_cv_c_signed=yes 19923else 19924 echo "$as_me: failed program was:" >&5 19925sed 's/^/| /' conftest.$ac_ext >&5 19926 19927bh_cv_c_signed=no 19928fi 19929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19930fi 19931echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 19932echo "${ECHO_T}$bh_cv_c_signed" >&6 19933 if test $bh_cv_c_signed = no; then 19934 19935cat >>confdefs.h <<\_ACEOF 19936#define signed 19937_ACEOF 19938 19939 fi 19940 19941echo "$as_me:$LINENO: checking for inline" >&5 19942echo $ECHO_N "checking for inline... $ECHO_C" >&6 19943if test "${ac_cv_c_inline+set}" = set; then 19944 echo $ECHO_N "(cached) $ECHO_C" >&6 19945else 19946 ac_cv_c_inline=no 19947for ac_kw in inline __inline__ __inline; do 19948 cat >conftest.$ac_ext <<_ACEOF 19949/* confdefs.h. */ 19950_ACEOF 19951cat confdefs.h >>conftest.$ac_ext 19952cat >>conftest.$ac_ext <<_ACEOF 19953/* end confdefs.h. */ 19954#ifndef __cplusplus 19955typedef int foo_t; 19956static $ac_kw foo_t static_foo () {return 0; } 19957$ac_kw foo_t foo () {return 0; } 19958#endif 19959 19960_ACEOF 19961rm -f conftest.$ac_objext 19962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19963 (eval $ac_compile) 2>conftest.er1 19964 ac_status=$? 19965 grep -v '^ *+' conftest.er1 >conftest.err 19966 rm -f conftest.er1 19967 cat conftest.err >&5 19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19969 (exit $ac_status); } && 19970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19972 (eval $ac_try) 2>&5 19973 ac_status=$? 19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19975 (exit $ac_status); }; } && 19976 { ac_try='test -s conftest.$ac_objext' 19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19978 (eval $ac_try) 2>&5 19979 ac_status=$? 19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19981 (exit $ac_status); }; }; then 19982 ac_cv_c_inline=$ac_kw; break 19983else 19984 echo "$as_me: failed program was:" >&5 19985sed 's/^/| /' conftest.$ac_ext >&5 19986 19987fi 19988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19989done 19990 19991fi 19992echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 19993echo "${ECHO_T}$ac_cv_c_inline" >&6 19994 19995 19996case $ac_cv_c_inline in 19997 inline | yes) ;; 19998 *) 19999 case $ac_cv_c_inline in 20000 no) ac_val=;; 20001 *) ac_val=$ac_cv_c_inline;; 20002 esac 20003 cat >>confdefs.h <<_ACEOF 20004#ifndef __cplusplus 20005#define inline $ac_val 20006#endif 20007_ACEOF 20008 ;; 20009esac 20010 20011echo "$as_me:$LINENO: checking for off_t" >&5 20012echo $ECHO_N "checking for off_t... $ECHO_C" >&6 20013if test "${ac_cv_type_off_t+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$ac_includes_default 20023int 20024main () 20025{ 20026if ((off_t *) 0) 20027 return 0; 20028if (sizeof (off_t)) 20029 return 0; 20030 ; 20031 return 0; 20032} 20033_ACEOF 20034rm -f conftest.$ac_objext 20035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20036 (eval $ac_compile) 2>conftest.er1 20037 ac_status=$? 20038 grep -v '^ *+' conftest.er1 >conftest.err 20039 rm -f conftest.er1 20040 cat conftest.err >&5 20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20042 (exit $ac_status); } && 20043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20045 (eval $ac_try) 2>&5 20046 ac_status=$? 20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20048 (exit $ac_status); }; } && 20049 { ac_try='test -s conftest.$ac_objext' 20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20051 (eval $ac_try) 2>&5 20052 ac_status=$? 20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20054 (exit $ac_status); }; }; then 20055 ac_cv_type_off_t=yes 20056else 20057 echo "$as_me: failed program was:" >&5 20058sed 's/^/| /' conftest.$ac_ext >&5 20059 20060ac_cv_type_off_t=no 20061fi 20062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20063fi 20064echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 20065echo "${ECHO_T}$ac_cv_type_off_t" >&6 20066if test $ac_cv_type_off_t = yes; then 20067 : 20068else 20069 20070cat >>confdefs.h <<_ACEOF 20071#define off_t long 20072_ACEOF 20073 20074fi 20075 20076echo "$as_me:$LINENO: checking for size_t" >&5 20077echo $ECHO_N "checking for size_t... $ECHO_C" >&6 20078if test "${ac_cv_type_size_t+set}" = set; then 20079 echo $ECHO_N "(cached) $ECHO_C" >&6 20080else 20081 cat >conftest.$ac_ext <<_ACEOF 20082/* confdefs.h. */ 20083_ACEOF 20084cat confdefs.h >>conftest.$ac_ext 20085cat >>conftest.$ac_ext <<_ACEOF 20086/* end confdefs.h. */ 20087$ac_includes_default 20088int 20089main () 20090{ 20091if ((size_t *) 0) 20092 return 0; 20093if (sizeof (size_t)) 20094 return 0; 20095 ; 20096 return 0; 20097} 20098_ACEOF 20099rm -f conftest.$ac_objext 20100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20101 (eval $ac_compile) 2>conftest.er1 20102 ac_status=$? 20103 grep -v '^ *+' conftest.er1 >conftest.err 20104 rm -f conftest.er1 20105 cat conftest.err >&5 20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20107 (exit $ac_status); } && 20108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20110 (eval $ac_try) 2>&5 20111 ac_status=$? 20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20113 (exit $ac_status); }; } && 20114 { ac_try='test -s conftest.$ac_objext' 20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20116 (eval $ac_try) 2>&5 20117 ac_status=$? 20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20119 (exit $ac_status); }; }; then 20120 ac_cv_type_size_t=yes 20121else 20122 echo "$as_me: failed program was:" >&5 20123sed 's/^/| /' conftest.$ac_ext >&5 20124 20125ac_cv_type_size_t=no 20126fi 20127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20128fi 20129echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 20130echo "${ECHO_T}$ac_cv_type_size_t" >&6 20131if test $ac_cv_type_size_t = yes; then 20132 : 20133else 20134 20135cat >>confdefs.h <<_ACEOF 20136#define size_t unsigned 20137_ACEOF 20138 20139fi 20140 20141 20142 echo "$as_me:$LINENO: checking for long long" >&5 20143echo $ECHO_N "checking for long long... $ECHO_C" >&6 20144if test "${ac_cv_type_long_long+set}" = set; then 20145 echo $ECHO_N "(cached) $ECHO_C" >&6 20146else 20147 cat >conftest.$ac_ext <<_ACEOF 20148/* confdefs.h. */ 20149_ACEOF 20150cat confdefs.h >>conftest.$ac_ext 20151cat >>conftest.$ac_ext <<_ACEOF 20152/* end confdefs.h. */ 20153long long ll = 1LL; int i = 63; 20154int 20155main () 20156{ 20157long long llmax = (long long) -1; 20158 return ll << i | ll >> i | llmax / ll | llmax % ll; 20159 ; 20160 return 0; 20161} 20162_ACEOF 20163rm -f conftest.$ac_objext conftest$ac_exeext 20164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20165 (eval $ac_link) 2>conftest.er1 20166 ac_status=$? 20167 grep -v '^ *+' conftest.er1 >conftest.err 20168 rm -f conftest.er1 20169 cat conftest.err >&5 20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20171 (exit $ac_status); } && 20172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20174 (eval $ac_try) 2>&5 20175 ac_status=$? 20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20177 (exit $ac_status); }; } && 20178 { ac_try='test -s conftest$ac_exeext' 20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20180 (eval $ac_try) 2>&5 20181 ac_status=$? 20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20183 (exit $ac_status); }; }; then 20184 ac_cv_type_long_long=yes 20185else 20186 echo "$as_me: failed program was:" >&5 20187sed 's/^/| /' conftest.$ac_ext >&5 20188 20189ac_cv_type_long_long=no 20190fi 20191rm -f conftest.err conftest.$ac_objext \ 20192 conftest$ac_exeext conftest.$ac_ext 20193fi 20194echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 20195echo "${ECHO_T}$ac_cv_type_long_long" >&6 20196 if test $ac_cv_type_long_long = yes; then 20197 20198cat >>confdefs.h <<\_ACEOF 20199#define HAVE_LONG_LONG 1 20200_ACEOF 20201 20202 fi 20203 20204 20205 echo "$as_me:$LINENO: checking for long double" >&5 20206echo $ECHO_N "checking for long double... $ECHO_C" >&6 20207if test "${gt_cv_c_long_double+set}" = set; then 20208 echo $ECHO_N "(cached) $ECHO_C" >&6 20209else 20210 if test "$GCC" = yes; then 20211 gt_cv_c_long_double=yes 20212 else 20213 cat >conftest.$ac_ext <<_ACEOF 20214/* confdefs.h. */ 20215_ACEOF 20216cat confdefs.h >>conftest.$ac_ext 20217cat >>conftest.$ac_ext <<_ACEOF 20218/* end confdefs.h. */ 20219 20220 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 20221 long double foo = 0.0; 20222 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 20223 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 20224 20225int 20226main () 20227{ 20228 20229 ; 20230 return 0; 20231} 20232_ACEOF 20233rm -f conftest.$ac_objext 20234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20235 (eval $ac_compile) 2>conftest.er1 20236 ac_status=$? 20237 grep -v '^ *+' conftest.er1 >conftest.err 20238 rm -f conftest.er1 20239 cat conftest.err >&5 20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20241 (exit $ac_status); } && 20242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20244 (eval $ac_try) 2>&5 20245 ac_status=$? 20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20247 (exit $ac_status); }; } && 20248 { ac_try='test -s conftest.$ac_objext' 20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20250 (eval $ac_try) 2>&5 20251 ac_status=$? 20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20253 (exit $ac_status); }; }; then 20254 gt_cv_c_long_double=yes 20255else 20256 echo "$as_me: failed program was:" >&5 20257sed 's/^/| /' conftest.$ac_ext >&5 20258 20259gt_cv_c_long_double=no 20260fi 20261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20262 fi 20263fi 20264echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 20265echo "${ECHO_T}$gt_cv_c_long_double" >&6 20266 if test $gt_cv_c_long_double = yes; then 20267 20268cat >>confdefs.h <<\_ACEOF 20269#define HAVE_LONG_DOUBLE 1 20270_ACEOF 20271 20272 fi 20273 20274 20275 echo "$as_me:$LINENO: checking for wchar_t" >&5 20276echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 20277if test "${gt_cv_c_wchar_t+set}" = set; then 20278 echo $ECHO_N "(cached) $ECHO_C" >&6 20279else 20280 cat >conftest.$ac_ext <<_ACEOF 20281/* confdefs.h. */ 20282_ACEOF 20283cat confdefs.h >>conftest.$ac_ext 20284cat >>conftest.$ac_ext <<_ACEOF 20285/* end confdefs.h. */ 20286#include <stddef.h> 20287 wchar_t foo = (wchar_t)'\0'; 20288int 20289main () 20290{ 20291 20292 ; 20293 return 0; 20294} 20295_ACEOF 20296rm -f conftest.$ac_objext 20297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20298 (eval $ac_compile) 2>conftest.er1 20299 ac_status=$? 20300 grep -v '^ *+' conftest.er1 >conftest.err 20301 rm -f conftest.er1 20302 cat conftest.err >&5 20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20304 (exit $ac_status); } && 20305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20307 (eval $ac_try) 2>&5 20308 ac_status=$? 20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20310 (exit $ac_status); }; } && 20311 { ac_try='test -s conftest.$ac_objext' 20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20313 (eval $ac_try) 2>&5 20314 ac_status=$? 20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20316 (exit $ac_status); }; }; then 20317 gt_cv_c_wchar_t=yes 20318else 20319 echo "$as_me: failed program was:" >&5 20320sed 's/^/| /' conftest.$ac_ext >&5 20321 20322gt_cv_c_wchar_t=no 20323fi 20324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20325fi 20326echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 20327echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 20328 if test $gt_cv_c_wchar_t = yes; then 20329 20330cat >>confdefs.h <<\_ACEOF 20331#define HAVE_WCHAR_T 1 20332_ACEOF 20333 20334 fi 20335 20336 20337 echo "$as_me:$LINENO: checking for wint_t" >&5 20338echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 20339if test "${gt_cv_c_wint_t+set}" = set; then 20340 echo $ECHO_N "(cached) $ECHO_C" >&6 20341else 20342 cat >conftest.$ac_ext <<_ACEOF 20343/* confdefs.h. */ 20344_ACEOF 20345cat confdefs.h >>conftest.$ac_ext 20346cat >>conftest.$ac_ext <<_ACEOF 20347/* end confdefs.h. */ 20348#include <wchar.h> 20349 wint_t foo = (wchar_t)'\0'; 20350int 20351main () 20352{ 20353 20354 ; 20355 return 0; 20356} 20357_ACEOF 20358rm -f conftest.$ac_objext 20359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20360 (eval $ac_compile) 2>conftest.er1 20361 ac_status=$? 20362 grep -v '^ *+' conftest.er1 >conftest.err 20363 rm -f conftest.er1 20364 cat conftest.err >&5 20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20366 (exit $ac_status); } && 20367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20369 (eval $ac_try) 2>&5 20370 ac_status=$? 20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20372 (exit $ac_status); }; } && 20373 { ac_try='test -s conftest.$ac_objext' 20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20375 (eval $ac_try) 2>&5 20376 ac_status=$? 20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20378 (exit $ac_status); }; }; then 20379 gt_cv_c_wint_t=yes 20380else 20381 echo "$as_me: failed program was:" >&5 20382sed 's/^/| /' conftest.$ac_ext >&5 20383 20384gt_cv_c_wint_t=no 20385fi 20386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20387fi 20388echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 20389echo "${ECHO_T}$gt_cv_c_wint_t" >&6 20390 if test $gt_cv_c_wint_t = yes; then 20391 20392cat >>confdefs.h <<\_ACEOF 20393#define HAVE_WINT_T 1 20394_ACEOF 20395 20396 fi 20397 20398 20399 echo "$as_me:$LINENO: checking for inttypes.h" >&5 20400echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 20401if test "${jm_ac_cv_header_inttypes_h+set}" = set; then 20402 echo $ECHO_N "(cached) $ECHO_C" >&6 20403else 20404 cat >conftest.$ac_ext <<_ACEOF 20405/* confdefs.h. */ 20406_ACEOF 20407cat confdefs.h >>conftest.$ac_ext 20408cat >>conftest.$ac_ext <<_ACEOF 20409/* end confdefs.h. */ 20410#include <sys/types.h> 20411#include <inttypes.h> 20412int 20413main () 20414{ 20415uintmax_t i = (uintmax_t) -1; 20416 ; 20417 return 0; 20418} 20419_ACEOF 20420rm -f conftest.$ac_objext 20421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20422 (eval $ac_compile) 2>conftest.er1 20423 ac_status=$? 20424 grep -v '^ *+' conftest.er1 >conftest.err 20425 rm -f conftest.er1 20426 cat conftest.err >&5 20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20428 (exit $ac_status); } && 20429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20431 (eval $ac_try) 2>&5 20432 ac_status=$? 20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20434 (exit $ac_status); }; } && 20435 { ac_try='test -s conftest.$ac_objext' 20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20437 (eval $ac_try) 2>&5 20438 ac_status=$? 20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20440 (exit $ac_status); }; }; then 20441 jm_ac_cv_header_inttypes_h=yes 20442else 20443 echo "$as_me: failed program was:" >&5 20444sed 's/^/| /' conftest.$ac_ext >&5 20445 20446jm_ac_cv_header_inttypes_h=no 20447fi 20448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20449fi 20450echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 20451echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6 20452 if test $jm_ac_cv_header_inttypes_h = yes; then 20453 20454cat >>confdefs.h <<_ACEOF 20455#define HAVE_INTTYPES_H_WITH_UINTMAX 1 20456_ACEOF 20457 20458 fi 20459 20460 20461 echo "$as_me:$LINENO: checking for stdint.h" >&5 20462echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 20463if test "${jm_ac_cv_header_stdint_h+set}" = set; then 20464 echo $ECHO_N "(cached) $ECHO_C" >&6 20465else 20466 cat >conftest.$ac_ext <<_ACEOF 20467/* confdefs.h. */ 20468_ACEOF 20469cat confdefs.h >>conftest.$ac_ext 20470cat >>conftest.$ac_ext <<_ACEOF 20471/* end confdefs.h. */ 20472#include <sys/types.h> 20473#include <stdint.h> 20474int 20475main () 20476{ 20477uintmax_t i = (uintmax_t) -1; 20478 ; 20479 return 0; 20480} 20481_ACEOF 20482rm -f conftest.$ac_objext 20483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20484 (eval $ac_compile) 2>conftest.er1 20485 ac_status=$? 20486 grep -v '^ *+' conftest.er1 >conftest.err 20487 rm -f conftest.er1 20488 cat conftest.err >&5 20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20490 (exit $ac_status); } && 20491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20493 (eval $ac_try) 2>&5 20494 ac_status=$? 20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20496 (exit $ac_status); }; } && 20497 { ac_try='test -s conftest.$ac_objext' 20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20499 (eval $ac_try) 2>&5 20500 ac_status=$? 20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20502 (exit $ac_status); }; }; then 20503 jm_ac_cv_header_stdint_h=yes 20504else 20505 echo "$as_me: failed program was:" >&5 20506sed 's/^/| /' conftest.$ac_ext >&5 20507 20508jm_ac_cv_header_stdint_h=no 20509fi 20510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20511fi 20512echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 20513echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6 20514 if test $jm_ac_cv_header_stdint_h = yes; then 20515 20516cat >>confdefs.h <<_ACEOF 20517#define HAVE_STDINT_H_WITH_UINTMAX 1 20518_ACEOF 20519 20520 fi 20521 20522 20523 20524 20525 echo "$as_me:$LINENO: checking for intmax_t" >&5 20526echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 20527if test "${gt_cv_c_intmax_t+set}" = set; then 20528 echo $ECHO_N "(cached) $ECHO_C" >&6 20529else 20530 cat >conftest.$ac_ext <<_ACEOF 20531/* confdefs.h. */ 20532_ACEOF 20533cat confdefs.h >>conftest.$ac_ext 20534cat >>conftest.$ac_ext <<_ACEOF 20535/* end confdefs.h. */ 20536 20537#include <stddef.h> 20538#include <stdlib.h> 20539#if HAVE_STDINT_H_WITH_UINTMAX 20540#include <stdint.h> 20541#endif 20542#if HAVE_INTTYPES_H_WITH_UINTMAX 20543#include <inttypes.h> 20544#endif 20545 20546int 20547main () 20548{ 20549intmax_t x = -1; 20550 ; 20551 return 0; 20552} 20553_ACEOF 20554rm -f conftest.$ac_objext 20555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20556 (eval $ac_compile) 2>conftest.er1 20557 ac_status=$? 20558 grep -v '^ *+' conftest.er1 >conftest.err 20559 rm -f conftest.er1 20560 cat conftest.err >&5 20561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20562 (exit $ac_status); } && 20563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20565 (eval $ac_try) 2>&5 20566 ac_status=$? 20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20568 (exit $ac_status); }; } && 20569 { ac_try='test -s conftest.$ac_objext' 20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20571 (eval $ac_try) 2>&5 20572 ac_status=$? 20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20574 (exit $ac_status); }; }; then 20575 gt_cv_c_intmax_t=yes 20576else 20577 echo "$as_me: failed program was:" >&5 20578sed 's/^/| /' conftest.$ac_ext >&5 20579 20580gt_cv_c_intmax_t=no 20581fi 20582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20583fi 20584echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 20585echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 20586 if test $gt_cv_c_intmax_t = yes; then 20587 20588cat >>confdefs.h <<\_ACEOF 20589#define HAVE_INTMAX_T 1 20590_ACEOF 20591 20592 fi 20593 20594 20595 20596 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 20597echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 20598if test "${gt_cv_func_printf_posix+set}" = set; then 20599 echo $ECHO_N "(cached) $ECHO_C" >&6 20600else 20601 20602 if test "$cross_compiling" = yes; then 20603 20604 cat >conftest.$ac_ext <<_ACEOF 20605/* confdefs.h. */ 20606_ACEOF 20607cat confdefs.h >>conftest.$ac_ext 20608cat >>conftest.$ac_ext <<_ACEOF 20609/* end confdefs.h. */ 20610 20611#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 20612 notposix 20613#endif 20614 20615_ACEOF 20616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20617 $EGREP "notposix" >/dev/null 2>&1; then 20618 gt_cv_func_printf_posix="guessing no" 20619else 20620 gt_cv_func_printf_posix="guessing yes" 20621fi 20622rm -f conftest* 20623 20624 20625else 20626 cat >conftest.$ac_ext <<_ACEOF 20627/* confdefs.h. */ 20628_ACEOF 20629cat confdefs.h >>conftest.$ac_ext 20630cat >>conftest.$ac_ext <<_ACEOF 20631/* end confdefs.h. */ 20632 20633#include <stdio.h> 20634#include <string.h> 20635/* The string "%2$d %1$d", with dollar characters protected from the shell's 20636 dollar expansion (possibly an autoconf bug). */ 20637static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 20638static char buf[100]; 20639int main () 20640{ 20641 sprintf (buf, format, 33, 55); 20642 return (strcmp (buf, "55 33") != 0); 20643} 20644_ACEOF 20645rm -f conftest$ac_exeext 20646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20647 (eval $ac_link) 2>&5 20648 ac_status=$? 20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20652 (eval $ac_try) 2>&5 20653 ac_status=$? 20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20655 (exit $ac_status); }; }; then 20656 gt_cv_func_printf_posix=yes 20657else 20658 echo "$as_me: program exited with status $ac_status" >&5 20659echo "$as_me: failed program was:" >&5 20660sed 's/^/| /' conftest.$ac_ext >&5 20661 20662( exit $ac_status ) 20663gt_cv_func_printf_posix=no 20664fi 20665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20666fi 20667 20668fi 20669echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 20670echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 20671 case $gt_cv_func_printf_posix in 20672 *yes) 20673 20674cat >>confdefs.h <<\_ACEOF 20675#define HAVE_POSIX_PRINTF 1 20676_ACEOF 20677 20678 ;; 20679 esac 20680 20681# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 20682# for constant arguments. Useless! 20683echo "$as_me:$LINENO: checking for working alloca.h" >&5 20684echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 20685if test "${ac_cv_working_alloca_h+set}" = set; then 20686 echo $ECHO_N "(cached) $ECHO_C" >&6 20687else 20688 cat >conftest.$ac_ext <<_ACEOF 20689/* confdefs.h. */ 20690_ACEOF 20691cat confdefs.h >>conftest.$ac_ext 20692cat >>conftest.$ac_ext <<_ACEOF 20693/* end confdefs.h. */ 20694#include <alloca.h> 20695int 20696main () 20697{ 20698char *p = (char *) alloca (2 * sizeof (int)); 20699 ; 20700 return 0; 20701} 20702_ACEOF 20703rm -f conftest.$ac_objext conftest$ac_exeext 20704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20705 (eval $ac_link) 2>conftest.er1 20706 ac_status=$? 20707 grep -v '^ *+' conftest.er1 >conftest.err 20708 rm -f conftest.er1 20709 cat conftest.err >&5 20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20711 (exit $ac_status); } && 20712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20714 (eval $ac_try) 2>&5 20715 ac_status=$? 20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20717 (exit $ac_status); }; } && 20718 { ac_try='test -s conftest$ac_exeext' 20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20720 (eval $ac_try) 2>&5 20721 ac_status=$? 20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20723 (exit $ac_status); }; }; then 20724 ac_cv_working_alloca_h=yes 20725else 20726 echo "$as_me: failed program was:" >&5 20727sed 's/^/| /' conftest.$ac_ext >&5 20728 20729ac_cv_working_alloca_h=no 20730fi 20731rm -f conftest.err conftest.$ac_objext \ 20732 conftest$ac_exeext conftest.$ac_ext 20733fi 20734echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 20735echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 20736if test $ac_cv_working_alloca_h = yes; then 20737 20738cat >>confdefs.h <<\_ACEOF 20739#define HAVE_ALLOCA_H 1 20740_ACEOF 20741 20742fi 20743 20744echo "$as_me:$LINENO: checking for alloca" >&5 20745echo $ECHO_N "checking for alloca... $ECHO_C" >&6 20746if test "${ac_cv_func_alloca_works+set}" = set; then 20747 echo $ECHO_N "(cached) $ECHO_C" >&6 20748else 20749 cat >conftest.$ac_ext <<_ACEOF 20750/* confdefs.h. */ 20751_ACEOF 20752cat confdefs.h >>conftest.$ac_ext 20753cat >>conftest.$ac_ext <<_ACEOF 20754/* end confdefs.h. */ 20755#ifdef __GNUC__ 20756# define alloca __builtin_alloca 20757#else 20758# ifdef _MSC_VER 20759# include <malloc.h> 20760# define alloca _alloca 20761# else 20762# if HAVE_ALLOCA_H 20763# include <alloca.h> 20764# else 20765# ifdef _AIX 20766 #pragma alloca 20767# else 20768# ifndef alloca /* predefined by HP cc +Olibcalls */ 20769char *alloca (); 20770# endif 20771# endif 20772# endif 20773# endif 20774#endif 20775 20776int 20777main () 20778{ 20779char *p = (char *) alloca (1); 20780 ; 20781 return 0; 20782} 20783_ACEOF 20784rm -f conftest.$ac_objext conftest$ac_exeext 20785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20786 (eval $ac_link) 2>conftest.er1 20787 ac_status=$? 20788 grep -v '^ *+' conftest.er1 >conftest.err 20789 rm -f conftest.er1 20790 cat conftest.err >&5 20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20792 (exit $ac_status); } && 20793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20795 (eval $ac_try) 2>&5 20796 ac_status=$? 20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20798 (exit $ac_status); }; } && 20799 { ac_try='test -s conftest$ac_exeext' 20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20801 (eval $ac_try) 2>&5 20802 ac_status=$? 20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20804 (exit $ac_status); }; }; then 20805 ac_cv_func_alloca_works=yes 20806else 20807 echo "$as_me: failed program was:" >&5 20808sed 's/^/| /' conftest.$ac_ext >&5 20809 20810ac_cv_func_alloca_works=no 20811fi 20812rm -f conftest.err conftest.$ac_objext \ 20813 conftest$ac_exeext conftest.$ac_ext 20814fi 20815echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 20816echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 20817 20818if test $ac_cv_func_alloca_works = yes; then 20819 20820cat >>confdefs.h <<\_ACEOF 20821#define HAVE_ALLOCA 1 20822_ACEOF 20823 20824else 20825 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 20826# that cause trouble. Some versions do not even contain alloca or 20827# contain a buggy version. If you still want to use their alloca, 20828# use ar to extract alloca.o from them instead of compiling alloca.c. 20829 20830ALLOCA=alloca.$ac_objext 20831 20832cat >>confdefs.h <<\_ACEOF 20833#define C_ALLOCA 1 20834_ACEOF 20835 20836 20837echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 20838echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 20839if test "${ac_cv_os_cray+set}" = set; then 20840 echo $ECHO_N "(cached) $ECHO_C" >&6 20841else 20842 cat >conftest.$ac_ext <<_ACEOF 20843/* confdefs.h. */ 20844_ACEOF 20845cat confdefs.h >>conftest.$ac_ext 20846cat >>conftest.$ac_ext <<_ACEOF 20847/* end confdefs.h. */ 20848#if defined(CRAY) && ! defined(CRAY2) 20849webecray 20850#else 20851wenotbecray 20852#endif 20853 20854_ACEOF 20855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20856 $EGREP "webecray" >/dev/null 2>&1; then 20857 ac_cv_os_cray=yes 20858else 20859 ac_cv_os_cray=no 20860fi 20861rm -f conftest* 20862 20863fi 20864echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 20865echo "${ECHO_T}$ac_cv_os_cray" >&6 20866if test $ac_cv_os_cray = yes; then 20867 for ac_func in _getb67 GETB67 getb67; do 20868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20869echo "$as_me:$LINENO: checking for $ac_func" >&5 20870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 20871if eval "test \"\${$as_ac_var+set}\" = set"; then 20872 echo $ECHO_N "(cached) $ECHO_C" >&6 20873else 20874 cat >conftest.$ac_ext <<_ACEOF 20875/* confdefs.h. */ 20876_ACEOF 20877cat confdefs.h >>conftest.$ac_ext 20878cat >>conftest.$ac_ext <<_ACEOF 20879/* end confdefs.h. */ 20880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20881 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20882#define $ac_func innocuous_$ac_func 20883 20884/* System header to define __stub macros and hopefully few prototypes, 20885 which can conflict with char $ac_func (); below. 20886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20887 <limits.h> exists even on freestanding compilers. */ 20888 20889#ifdef __STDC__ 20890# include <limits.h> 20891#else 20892# include <assert.h> 20893#endif 20894 20895#undef $ac_func 20896 20897/* Override any gcc2 internal prototype to avoid an error. */ 20898#ifdef __cplusplus 20899extern "C" 20900{ 20901#endif 20902/* We use char because int might match the return type of a gcc2 20903 builtin and then its argument prototype would still apply. */ 20904char $ac_func (); 20905/* The GNU C library defines this for functions which it implements 20906 to always fail with ENOSYS. Some functions are actually named 20907 something starting with __ and the normal name is an alias. */ 20908#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 20909choke me 20910#else 20911char (*f) () = $ac_func; 20912#endif 20913#ifdef __cplusplus 20914} 20915#endif 20916 20917int 20918main () 20919{ 20920return f != $ac_func; 20921 ; 20922 return 0; 20923} 20924_ACEOF 20925rm -f conftest.$ac_objext conftest$ac_exeext 20926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20927 (eval $ac_link) 2>conftest.er1 20928 ac_status=$? 20929 grep -v '^ *+' conftest.er1 >conftest.err 20930 rm -f conftest.er1 20931 cat conftest.err >&5 20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20933 (exit $ac_status); } && 20934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20936 (eval $ac_try) 2>&5 20937 ac_status=$? 20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20939 (exit $ac_status); }; } && 20940 { ac_try='test -s conftest$ac_exeext' 20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20942 (eval $ac_try) 2>&5 20943 ac_status=$? 20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20945 (exit $ac_status); }; }; then 20946 eval "$as_ac_var=yes" 20947else 20948 echo "$as_me: failed program was:" >&5 20949sed 's/^/| /' conftest.$ac_ext >&5 20950 20951eval "$as_ac_var=no" 20952fi 20953rm -f conftest.err conftest.$ac_objext \ 20954 conftest$ac_exeext conftest.$ac_ext 20955fi 20956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 20957echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 20958if test `eval echo '${'$as_ac_var'}'` = yes; then 20959 20960cat >>confdefs.h <<_ACEOF 20961#define CRAY_STACKSEG_END $ac_func 20962_ACEOF 20963 20964 break 20965fi 20966 20967 done 20968fi 20969 20970echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 20971echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 20972if test "${ac_cv_c_stack_direction+set}" = set; then 20973 echo $ECHO_N "(cached) $ECHO_C" >&6 20974else 20975 if test "$cross_compiling" = yes; then 20976 ac_cv_c_stack_direction=0 20977else 20978 cat >conftest.$ac_ext <<_ACEOF 20979/* confdefs.h. */ 20980_ACEOF 20981cat confdefs.h >>conftest.$ac_ext 20982cat >>conftest.$ac_ext <<_ACEOF 20983/* end confdefs.h. */ 20984int 20985find_stack_direction () 20986{ 20987 static char *addr = 0; 20988 auto char dummy; 20989 if (addr == 0) 20990 { 20991 addr = &dummy; 20992 return find_stack_direction (); 20993 } 20994 else 20995 return (&dummy > addr) ? 1 : -1; 20996} 20997 20998int 20999main () 21000{ 21001 exit (find_stack_direction () < 0); 21002} 21003_ACEOF 21004rm -f conftest$ac_exeext 21005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21006 (eval $ac_link) 2>&5 21007 ac_status=$? 21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21011 (eval $ac_try) 2>&5 21012 ac_status=$? 21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21014 (exit $ac_status); }; }; then 21015 ac_cv_c_stack_direction=1 21016else 21017 echo "$as_me: program exited with status $ac_status" >&5 21018echo "$as_me: failed program was:" >&5 21019sed 's/^/| /' conftest.$ac_ext >&5 21020 21021( exit $ac_status ) 21022ac_cv_c_stack_direction=-1 21023fi 21024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21025fi 21026fi 21027echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 21028echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 21029 21030cat >>confdefs.h <<_ACEOF 21031#define STACK_DIRECTION $ac_cv_c_stack_direction 21032_ACEOF 21033 21034 21035fi 21036 21037 21038 21039for ac_header in stdlib.h unistd.h 21040do 21041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21042if eval "test \"\${$as_ac_Header+set}\" = set"; then 21043 echo "$as_me:$LINENO: checking for $ac_header" >&5 21044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21045if eval "test \"\${$as_ac_Header+set}\" = set"; then 21046 echo $ECHO_N "(cached) $ECHO_C" >&6 21047fi 21048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21050else 21051 # Is the header compilable? 21052echo "$as_me:$LINENO: checking $ac_header usability" >&5 21053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21054cat >conftest.$ac_ext <<_ACEOF 21055/* confdefs.h. */ 21056_ACEOF 21057cat confdefs.h >>conftest.$ac_ext 21058cat >>conftest.$ac_ext <<_ACEOF 21059/* end confdefs.h. */ 21060$ac_includes_default 21061#include <$ac_header> 21062_ACEOF 21063rm -f conftest.$ac_objext 21064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21065 (eval $ac_compile) 2>conftest.er1 21066 ac_status=$? 21067 grep -v '^ *+' conftest.er1 >conftest.err 21068 rm -f conftest.er1 21069 cat conftest.err >&5 21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21071 (exit $ac_status); } && 21072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21074 (eval $ac_try) 2>&5 21075 ac_status=$? 21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21077 (exit $ac_status); }; } && 21078 { ac_try='test -s conftest.$ac_objext' 21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21080 (eval $ac_try) 2>&5 21081 ac_status=$? 21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21083 (exit $ac_status); }; }; then 21084 ac_header_compiler=yes 21085else 21086 echo "$as_me: failed program was:" >&5 21087sed 's/^/| /' conftest.$ac_ext >&5 21088 21089ac_header_compiler=no 21090fi 21091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21092echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21093echo "${ECHO_T}$ac_header_compiler" >&6 21094 21095# Is the header present? 21096echo "$as_me:$LINENO: checking $ac_header presence" >&5 21097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21098cat >conftest.$ac_ext <<_ACEOF 21099/* confdefs.h. */ 21100_ACEOF 21101cat confdefs.h >>conftest.$ac_ext 21102cat >>conftest.$ac_ext <<_ACEOF 21103/* end confdefs.h. */ 21104#include <$ac_header> 21105_ACEOF 21106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21108 ac_status=$? 21109 grep -v '^ *+' conftest.er1 >conftest.err 21110 rm -f conftest.er1 21111 cat conftest.err >&5 21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21113 (exit $ac_status); } >/dev/null; then 21114 if test -s conftest.err; then 21115 ac_cpp_err=$ac_c_preproc_warn_flag 21116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21117 else 21118 ac_cpp_err= 21119 fi 21120else 21121 ac_cpp_err=yes 21122fi 21123if test -z "$ac_cpp_err"; then 21124 ac_header_preproc=yes 21125else 21126 echo "$as_me: failed program was:" >&5 21127sed 's/^/| /' conftest.$ac_ext >&5 21128 21129 ac_header_preproc=no 21130fi 21131rm -f conftest.err conftest.$ac_ext 21132echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21133echo "${ECHO_T}$ac_header_preproc" >&6 21134 21135# So? What about this header? 21136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21137 yes:no: ) 21138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21139echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21141echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21142 ac_header_preproc=yes 21143 ;; 21144 no:yes:* ) 21145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21148echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21150echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21152echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21156echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21157 ( 21158 cat <<\_ASBOX 21159## -------------------------------------- ## 21160## Report this to http://freedesktop.org/ ## 21161## -------------------------------------- ## 21162_ASBOX 21163 ) | 21164 sed "s/^/$as_me: WARNING: /" >&2 21165 ;; 21166esac 21167echo "$as_me:$LINENO: checking for $ac_header" >&5 21168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21169if eval "test \"\${$as_ac_Header+set}\" = set"; then 21170 echo $ECHO_N "(cached) $ECHO_C" >&6 21171else 21172 eval "$as_ac_Header=\$ac_header_preproc" 21173fi 21174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21176 21177fi 21178if test `eval echo '${'$as_ac_Header'}'` = yes; then 21179 cat >>confdefs.h <<_ACEOF 21180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21181_ACEOF 21182 21183fi 21184 21185done 21186 21187 21188for ac_func in getpagesize 21189do 21190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21191echo "$as_me:$LINENO: checking for $ac_func" >&5 21192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21193if eval "test \"\${$as_ac_var+set}\" = set"; then 21194 echo $ECHO_N "(cached) $ECHO_C" >&6 21195else 21196 cat >conftest.$ac_ext <<_ACEOF 21197/* confdefs.h. */ 21198_ACEOF 21199cat confdefs.h >>conftest.$ac_ext 21200cat >>conftest.$ac_ext <<_ACEOF 21201/* end confdefs.h. */ 21202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21203 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21204#define $ac_func innocuous_$ac_func 21205 21206/* System header to define __stub macros and hopefully few prototypes, 21207 which can conflict with char $ac_func (); below. 21208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21209 <limits.h> exists even on freestanding compilers. */ 21210 21211#ifdef __STDC__ 21212# include <limits.h> 21213#else 21214# include <assert.h> 21215#endif 21216 21217#undef $ac_func 21218 21219/* Override any gcc2 internal prototype to avoid an error. */ 21220#ifdef __cplusplus 21221extern "C" 21222{ 21223#endif 21224/* We use char because int might match the return type of a gcc2 21225 builtin and then its argument prototype would still apply. */ 21226char $ac_func (); 21227/* The GNU C library defines this for functions which it implements 21228 to always fail with ENOSYS. Some functions are actually named 21229 something starting with __ and the normal name is an alias. */ 21230#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21231choke me 21232#else 21233char (*f) () = $ac_func; 21234#endif 21235#ifdef __cplusplus 21236} 21237#endif 21238 21239int 21240main () 21241{ 21242return f != $ac_func; 21243 ; 21244 return 0; 21245} 21246_ACEOF 21247rm -f conftest.$ac_objext conftest$ac_exeext 21248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21249 (eval $ac_link) 2>conftest.er1 21250 ac_status=$? 21251 grep -v '^ *+' conftest.er1 >conftest.err 21252 rm -f conftest.er1 21253 cat conftest.err >&5 21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21255 (exit $ac_status); } && 21256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21258 (eval $ac_try) 2>&5 21259 ac_status=$? 21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21261 (exit $ac_status); }; } && 21262 { ac_try='test -s conftest$ac_exeext' 21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21264 (eval $ac_try) 2>&5 21265 ac_status=$? 21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21267 (exit $ac_status); }; }; then 21268 eval "$as_ac_var=yes" 21269else 21270 echo "$as_me: failed program was:" >&5 21271sed 's/^/| /' conftest.$ac_ext >&5 21272 21273eval "$as_ac_var=no" 21274fi 21275rm -f conftest.err conftest.$ac_objext \ 21276 conftest$ac_exeext conftest.$ac_ext 21277fi 21278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21279echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21280if test `eval echo '${'$as_ac_var'}'` = yes; then 21281 cat >>confdefs.h <<_ACEOF 21282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21283_ACEOF 21284 21285fi 21286done 21287 21288echo "$as_me:$LINENO: checking for working mmap" >&5 21289echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 21290if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21291 echo $ECHO_N "(cached) $ECHO_C" >&6 21292else 21293 if test "$cross_compiling" = yes; then 21294 ac_cv_func_mmap_fixed_mapped=no 21295else 21296 cat >conftest.$ac_ext <<_ACEOF 21297/* confdefs.h. */ 21298_ACEOF 21299cat confdefs.h >>conftest.$ac_ext 21300cat >>conftest.$ac_ext <<_ACEOF 21301/* end confdefs.h. */ 21302$ac_includes_default 21303/* malloc might have been renamed as rpl_malloc. */ 21304#undef malloc 21305 21306/* Thanks to Mike Haertel and Jim Avera for this test. 21307 Here is a matrix of mmap possibilities: 21308 mmap private not fixed 21309 mmap private fixed at somewhere currently unmapped 21310 mmap private fixed at somewhere already mapped 21311 mmap shared not fixed 21312 mmap shared fixed at somewhere currently unmapped 21313 mmap shared fixed at somewhere already mapped 21314 For private mappings, we should verify that changes cannot be read() 21315 back from the file, nor mmap's back from the file at a different 21316 address. (There have been systems where private was not correctly 21317 implemented like the infamous i386 svr4.0, and systems where the 21318 VM page cache was not coherent with the file system buffer cache 21319 like early versions of FreeBSD and possibly contemporary NetBSD.) 21320 For shared mappings, we should conversely verify that changes get 21321 propagated back to all the places they're supposed to be. 21322 21323 Grep wants private fixed already mapped. 21324 The main things grep needs to know about mmap are: 21325 * does it exist and is it safe to write into the mmap'd area 21326 * how to use it (BSD variants) */ 21327 21328#include <fcntl.h> 21329#include <sys/mman.h> 21330 21331#if !STDC_HEADERS && !HAVE_STDLIB_H 21332char *malloc (); 21333#endif 21334 21335/* This mess was copied from the GNU getpagesize.h. */ 21336#if !HAVE_GETPAGESIZE 21337/* Assume that all systems that can run configure have sys/param.h. */ 21338# if !HAVE_SYS_PARAM_H 21339# define HAVE_SYS_PARAM_H 1 21340# endif 21341 21342# ifdef _SC_PAGESIZE 21343# define getpagesize() sysconf(_SC_PAGESIZE) 21344# else /* no _SC_PAGESIZE */ 21345# if HAVE_SYS_PARAM_H 21346# include <sys/param.h> 21347# ifdef EXEC_PAGESIZE 21348# define getpagesize() EXEC_PAGESIZE 21349# else /* no EXEC_PAGESIZE */ 21350# ifdef NBPG 21351# define getpagesize() NBPG * CLSIZE 21352# ifndef CLSIZE 21353# define CLSIZE 1 21354# endif /* no CLSIZE */ 21355# else /* no NBPG */ 21356# ifdef NBPC 21357# define getpagesize() NBPC 21358# else /* no NBPC */ 21359# ifdef PAGESIZE 21360# define getpagesize() PAGESIZE 21361# endif /* PAGESIZE */ 21362# endif /* no NBPC */ 21363# endif /* no NBPG */ 21364# endif /* no EXEC_PAGESIZE */ 21365# else /* no HAVE_SYS_PARAM_H */ 21366# define getpagesize() 8192 /* punt totally */ 21367# endif /* no HAVE_SYS_PARAM_H */ 21368# endif /* no _SC_PAGESIZE */ 21369 21370#endif /* no HAVE_GETPAGESIZE */ 21371 21372int 21373main () 21374{ 21375 char *data, *data2, *data3; 21376 int i, pagesize; 21377 int fd; 21378 21379 pagesize = getpagesize (); 21380 21381 /* First, make a file with some known garbage in it. */ 21382 data = (char *) malloc (pagesize); 21383 if (!data) 21384 exit (1); 21385 for (i = 0; i < pagesize; ++i) 21386 *(data + i) = rand (); 21387 umask (0); 21388 fd = creat ("conftest.mmap", 0600); 21389 if (fd < 0) 21390 exit (1); 21391 if (write (fd, data, pagesize) != pagesize) 21392 exit (1); 21393 close (fd); 21394 21395 /* Next, try to mmap the file at a fixed address which already has 21396 something else allocated at it. If we can, also make sure that 21397 we see the same garbage. */ 21398 fd = open ("conftest.mmap", O_RDWR); 21399 if (fd < 0) 21400 exit (1); 21401 data2 = (char *) malloc (2 * pagesize); 21402 if (!data2) 21403 exit (1); 21404 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 21405 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21406 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21407 exit (1); 21408 for (i = 0; i < pagesize; ++i) 21409 if (*(data + i) != *(data2 + i)) 21410 exit (1); 21411 21412 /* Finally, make sure that changes to the mapped area do not 21413 percolate back to the file as seen by read(). (This is a bug on 21414 some variants of i386 svr4.0.) */ 21415 for (i = 0; i < pagesize; ++i) 21416 *(data2 + i) = *(data2 + i) + 1; 21417 data3 = (char *) malloc (pagesize); 21418 if (!data3) 21419 exit (1); 21420 if (read (fd, data3, pagesize) != pagesize) 21421 exit (1); 21422 for (i = 0; i < pagesize; ++i) 21423 if (*(data + i) != *(data3 + i)) 21424 exit (1); 21425 close (fd); 21426 exit (0); 21427} 21428_ACEOF 21429rm -f conftest$ac_exeext 21430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21431 (eval $ac_link) 2>&5 21432 ac_status=$? 21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21436 (eval $ac_try) 2>&5 21437 ac_status=$? 21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21439 (exit $ac_status); }; }; then 21440 ac_cv_func_mmap_fixed_mapped=yes 21441else 21442 echo "$as_me: program exited with status $ac_status" >&5 21443echo "$as_me: failed program was:" >&5 21444sed 's/^/| /' conftest.$ac_ext >&5 21445 21446( exit $ac_status ) 21447ac_cv_func_mmap_fixed_mapped=no 21448fi 21449rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21450fi 21451fi 21452echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21453echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 21454if test $ac_cv_func_mmap_fixed_mapped = yes; then 21455 21456cat >>confdefs.h <<\_ACEOF 21457#define HAVE_MMAP 1 21458_ACEOF 21459 21460fi 21461rm -f conftest.mmap 21462 21463 21464 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 21465echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 21466if test "${ac_cv_gnu_library_2_1+set}" = set; then 21467 echo $ECHO_N "(cached) $ECHO_C" >&6 21468else 21469 cat >conftest.$ac_ext <<_ACEOF 21470/* confdefs.h. */ 21471_ACEOF 21472cat confdefs.h >>conftest.$ac_ext 21473cat >>conftest.$ac_ext <<_ACEOF 21474/* end confdefs.h. */ 21475 21476#include <features.h> 21477#ifdef __GNU_LIBRARY__ 21478 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 21479 Lucky GNU user 21480 #endif 21481#endif 21482 21483_ACEOF 21484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21485 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 21486 ac_cv_gnu_library_2_1=yes 21487else 21488 ac_cv_gnu_library_2_1=no 21489fi 21490rm -f conftest* 21491 21492 21493 21494fi 21495echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 21496echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 21497 21498 GLIBC21="$ac_cv_gnu_library_2_1" 21499 21500 21501 21502 21503 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 21504echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 21505if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 21506 echo $ECHO_N "(cached) $ECHO_C" >&6 21507else 21508 21509 if test "$cross_compiling" = yes; then 21510 21511 # Guess based on the CPU. 21512 case "$host_cpu" in 21513 alpha* | i3456786 | m68k | s390*) 21514 gt_cv_int_divbyzero_sigfpe="guessing yes";; 21515 *) 21516 gt_cv_int_divbyzero_sigfpe="guessing no";; 21517 esac 21518 21519else 21520 cat >conftest.$ac_ext <<_ACEOF 21521/* confdefs.h. */ 21522_ACEOF 21523cat confdefs.h >>conftest.$ac_ext 21524cat >>conftest.$ac_ext <<_ACEOF 21525/* end confdefs.h. */ 21526 21527#include <stdlib.h> 21528#include <signal.h> 21529 21530static void 21531#ifdef __cplusplus 21532sigfpe_handler (int sig) 21533#else 21534sigfpe_handler (sig) int sig; 21535#endif 21536{ 21537 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 21538 exit (sig != SIGFPE); 21539} 21540 21541int x = 1; 21542int y = 0; 21543int z; 21544int nan; 21545 21546int main () 21547{ 21548 signal (SIGFPE, sigfpe_handler); 21549/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 21550#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 21551 signal (SIGTRAP, sigfpe_handler); 21552#endif 21553/* Linux/SPARC yields signal SIGILL. */ 21554#if defined (__sparc__) && defined (__linux__) 21555 signal (SIGILL, sigfpe_handler); 21556#endif 21557 21558 z = x / y; 21559 nan = y / y; 21560 exit (1); 21561} 21562 21563_ACEOF 21564rm -f conftest$ac_exeext 21565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21566 (eval $ac_link) 2>&5 21567 ac_status=$? 21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21571 (eval $ac_try) 2>&5 21572 ac_status=$? 21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21574 (exit $ac_status); }; }; then 21575 gt_cv_int_divbyzero_sigfpe=yes 21576else 21577 echo "$as_me: program exited with status $ac_status" >&5 21578echo "$as_me: failed program was:" >&5 21579sed 's/^/| /' conftest.$ac_ext >&5 21580 21581( exit $ac_status ) 21582gt_cv_int_divbyzero_sigfpe=no 21583fi 21584rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21585fi 21586 21587fi 21588echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 21589echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 21590 case "$gt_cv_int_divbyzero_sigfpe" in 21591 *yes) value=1;; 21592 *) value=0;; 21593 esac 21594 21595cat >>confdefs.h <<_ACEOF 21596#define INTDIV0_RAISES_SIGFPE $value 21597_ACEOF 21598 21599 21600 21601 echo "$as_me:$LINENO: checking for unsigned long long" >&5 21602echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 21603if test "${ac_cv_type_unsigned_long_long+set}" = set; then 21604 echo $ECHO_N "(cached) $ECHO_C" >&6 21605else 21606 cat >conftest.$ac_ext <<_ACEOF 21607/* confdefs.h. */ 21608_ACEOF 21609cat confdefs.h >>conftest.$ac_ext 21610cat >>conftest.$ac_ext <<_ACEOF 21611/* end confdefs.h. */ 21612unsigned long long ull = 1ULL; int i = 63; 21613int 21614main () 21615{ 21616unsigned long long ullmax = (unsigned long long) -1; 21617 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 21618 ; 21619 return 0; 21620} 21621_ACEOF 21622rm -f conftest.$ac_objext conftest$ac_exeext 21623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21624 (eval $ac_link) 2>conftest.er1 21625 ac_status=$? 21626 grep -v '^ *+' conftest.er1 >conftest.err 21627 rm -f conftest.er1 21628 cat conftest.err >&5 21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21630 (exit $ac_status); } && 21631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21633 (eval $ac_try) 2>&5 21634 ac_status=$? 21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21636 (exit $ac_status); }; } && 21637 { ac_try='test -s conftest$ac_exeext' 21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21639 (eval $ac_try) 2>&5 21640 ac_status=$? 21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21642 (exit $ac_status); }; }; then 21643 ac_cv_type_unsigned_long_long=yes 21644else 21645 echo "$as_me: failed program was:" >&5 21646sed 's/^/| /' conftest.$ac_ext >&5 21647 21648ac_cv_type_unsigned_long_long=no 21649fi 21650rm -f conftest.err conftest.$ac_objext \ 21651 conftest$ac_exeext conftest.$ac_ext 21652fi 21653echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 21654echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 21655 if test $ac_cv_type_unsigned_long_long = yes; then 21656 21657cat >>confdefs.h <<\_ACEOF 21658#define HAVE_UNSIGNED_LONG_LONG 1 21659_ACEOF 21660 21661 fi 21662 21663 21664 21665 21666 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 21667 21668 test $ac_cv_type_unsigned_long_long = yes \ 21669 && ac_type='unsigned long long' \ 21670 || ac_type='unsigned long' 21671 21672cat >>confdefs.h <<_ACEOF 21673#define uintmax_t $ac_type 21674_ACEOF 21675 21676 else 21677 21678cat >>confdefs.h <<\_ACEOF 21679#define HAVE_UINTMAX_T 1 21680_ACEOF 21681 21682 fi 21683 21684 21685 echo "$as_me:$LINENO: checking for inttypes.h" >&5 21686echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 21687if test "${gt_cv_header_inttypes_h+set}" = set; then 21688 echo $ECHO_N "(cached) $ECHO_C" >&6 21689else 21690 21691 cat >conftest.$ac_ext <<_ACEOF 21692/* confdefs.h. */ 21693_ACEOF 21694cat confdefs.h >>conftest.$ac_ext 21695cat >>conftest.$ac_ext <<_ACEOF 21696/* end confdefs.h. */ 21697#include <sys/types.h> 21698#include <inttypes.h> 21699int 21700main () 21701{ 21702 21703 ; 21704 return 0; 21705} 21706_ACEOF 21707rm -f conftest.$ac_objext 21708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21709 (eval $ac_compile) 2>conftest.er1 21710 ac_status=$? 21711 grep -v '^ *+' conftest.er1 >conftest.err 21712 rm -f conftest.er1 21713 cat conftest.err >&5 21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21715 (exit $ac_status); } && 21716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21718 (eval $ac_try) 2>&5 21719 ac_status=$? 21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21721 (exit $ac_status); }; } && 21722 { ac_try='test -s conftest.$ac_objext' 21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21724 (eval $ac_try) 2>&5 21725 ac_status=$? 21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21727 (exit $ac_status); }; }; then 21728 gt_cv_header_inttypes_h=yes 21729else 21730 echo "$as_me: failed program was:" >&5 21731sed 's/^/| /' conftest.$ac_ext >&5 21732 21733gt_cv_header_inttypes_h=no 21734fi 21735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21736 21737fi 21738echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 21739echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 21740 if test $gt_cv_header_inttypes_h = yes; then 21741 21742cat >>confdefs.h <<_ACEOF 21743#define HAVE_INTTYPES_H 1 21744_ACEOF 21745 21746 fi 21747 21748 21749 21750 if test $gt_cv_header_inttypes_h = yes; then 21751 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 21752echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 21753if test "${gt_cv_inttypes_pri_broken+set}" = set; then 21754 echo $ECHO_N "(cached) $ECHO_C" >&6 21755else 21756 21757 cat >conftest.$ac_ext <<_ACEOF 21758/* confdefs.h. */ 21759_ACEOF 21760cat confdefs.h >>conftest.$ac_ext 21761cat >>conftest.$ac_ext <<_ACEOF 21762/* end confdefs.h. */ 21763#include <inttypes.h> 21764#ifdef PRId32 21765char *p = PRId32; 21766#endif 21767 21768int 21769main () 21770{ 21771 21772 ; 21773 return 0; 21774} 21775_ACEOF 21776rm -f conftest.$ac_objext 21777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21778 (eval $ac_compile) 2>conftest.er1 21779 ac_status=$? 21780 grep -v '^ *+' conftest.er1 >conftest.err 21781 rm -f conftest.er1 21782 cat conftest.err >&5 21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21784 (exit $ac_status); } && 21785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21787 (eval $ac_try) 2>&5 21788 ac_status=$? 21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21790 (exit $ac_status); }; } && 21791 { ac_try='test -s conftest.$ac_objext' 21792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21793 (eval $ac_try) 2>&5 21794 ac_status=$? 21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21796 (exit $ac_status); }; }; then 21797 gt_cv_inttypes_pri_broken=no 21798else 21799 echo "$as_me: failed program was:" >&5 21800sed 's/^/| /' conftest.$ac_ext >&5 21801 21802gt_cv_inttypes_pri_broken=yes 21803fi 21804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21805 21806fi 21807echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 21808echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 21809 fi 21810 if test "$gt_cv_inttypes_pri_broken" = yes; then 21811 21812cat >>confdefs.h <<_ACEOF 21813#define PRI_MACROS_BROKEN 1 21814_ACEOF 21815 21816 fi 21817 21818 21819 21820for ac_header in stdint.h 21821do 21822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21823if eval "test \"\${$as_ac_Header+set}\" = set"; then 21824 echo "$as_me:$LINENO: checking for $ac_header" >&5 21825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21826if eval "test \"\${$as_ac_Header+set}\" = set"; then 21827 echo $ECHO_N "(cached) $ECHO_C" >&6 21828fi 21829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21831else 21832 # Is the header compilable? 21833echo "$as_me:$LINENO: checking $ac_header usability" >&5 21834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21835cat >conftest.$ac_ext <<_ACEOF 21836/* confdefs.h. */ 21837_ACEOF 21838cat confdefs.h >>conftest.$ac_ext 21839cat >>conftest.$ac_ext <<_ACEOF 21840/* end confdefs.h. */ 21841$ac_includes_default 21842#include <$ac_header> 21843_ACEOF 21844rm -f conftest.$ac_objext 21845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21846 (eval $ac_compile) 2>conftest.er1 21847 ac_status=$? 21848 grep -v '^ *+' conftest.er1 >conftest.err 21849 rm -f conftest.er1 21850 cat conftest.err >&5 21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21852 (exit $ac_status); } && 21853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21855 (eval $ac_try) 2>&5 21856 ac_status=$? 21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21858 (exit $ac_status); }; } && 21859 { ac_try='test -s conftest.$ac_objext' 21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21861 (eval $ac_try) 2>&5 21862 ac_status=$? 21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21864 (exit $ac_status); }; }; then 21865 ac_header_compiler=yes 21866else 21867 echo "$as_me: failed program was:" >&5 21868sed 's/^/| /' conftest.$ac_ext >&5 21869 21870ac_header_compiler=no 21871fi 21872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21874echo "${ECHO_T}$ac_header_compiler" >&6 21875 21876# Is the header present? 21877echo "$as_me:$LINENO: checking $ac_header presence" >&5 21878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21879cat >conftest.$ac_ext <<_ACEOF 21880/* confdefs.h. */ 21881_ACEOF 21882cat confdefs.h >>conftest.$ac_ext 21883cat >>conftest.$ac_ext <<_ACEOF 21884/* end confdefs.h. */ 21885#include <$ac_header> 21886_ACEOF 21887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21889 ac_status=$? 21890 grep -v '^ *+' conftest.er1 >conftest.err 21891 rm -f conftest.er1 21892 cat conftest.err >&5 21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21894 (exit $ac_status); } >/dev/null; then 21895 if test -s conftest.err; then 21896 ac_cpp_err=$ac_c_preproc_warn_flag 21897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21898 else 21899 ac_cpp_err= 21900 fi 21901else 21902 ac_cpp_err=yes 21903fi 21904if test -z "$ac_cpp_err"; then 21905 ac_header_preproc=yes 21906else 21907 echo "$as_me: failed program was:" >&5 21908sed 's/^/| /' conftest.$ac_ext >&5 21909 21910 ac_header_preproc=no 21911fi 21912rm -f conftest.err conftest.$ac_ext 21913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21914echo "${ECHO_T}$ac_header_preproc" >&6 21915 21916# So? What about this header? 21917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21918 yes:no: ) 21919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21923 ac_header_preproc=yes 21924 ;; 21925 no:yes:* ) 21926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21933echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21938 ( 21939 cat <<\_ASBOX 21940## -------------------------------------- ## 21941## Report this to http://freedesktop.org/ ## 21942## -------------------------------------- ## 21943_ASBOX 21944 ) | 21945 sed "s/^/$as_me: WARNING: /" >&2 21946 ;; 21947esac 21948echo "$as_me:$LINENO: checking for $ac_header" >&5 21949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21950if eval "test \"\${$as_ac_Header+set}\" = set"; then 21951 echo $ECHO_N "(cached) $ECHO_C" >&6 21952else 21953 eval "$as_ac_Header=\$ac_header_preproc" 21954fi 21955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21957 21958fi 21959if test `eval echo '${'$as_ac_Header'}'` = yes; then 21960 cat >>confdefs.h <<_ACEOF 21961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21962_ACEOF 21963 21964fi 21965 21966done 21967 21968 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 21969echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 21970 result= 21971 cat >conftest.$ac_ext <<_ACEOF 21972/* confdefs.h. */ 21973_ACEOF 21974cat confdefs.h >>conftest.$ac_ext 21975cat >>conftest.$ac_ext <<_ACEOF 21976/* end confdefs.h. */ 21977 21978#include <limits.h> 21979#if HAVE_STDINT_H 21980#include <stdint.h> 21981#endif 21982#ifdef SIZE_MAX 21983Found it 21984#endif 21985 21986_ACEOF 21987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21988 $EGREP "Found it" >/dev/null 2>&1; then 21989 result=yes 21990fi 21991rm -f conftest* 21992 21993 if test -z "$result"; then 21994 if test "$cross_compiling" = yes; then 21995 # Depending upon the size, compute the lo and hi bounds. 21996cat >conftest.$ac_ext <<_ACEOF 21997/* confdefs.h. */ 21998_ACEOF 21999cat confdefs.h >>conftest.$ac_ext 22000cat >>conftest.$ac_ext <<_ACEOF 22001/* end confdefs.h. */ 22002#include <stddef.h> 22003int 22004main () 22005{ 22006static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 22007test_array [0] = 0 22008 22009 ; 22010 return 0; 22011} 22012_ACEOF 22013rm -f conftest.$ac_objext 22014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22015 (eval $ac_compile) 2>conftest.er1 22016 ac_status=$? 22017 grep -v '^ *+' conftest.er1 >conftest.err 22018 rm -f conftest.er1 22019 cat conftest.err >&5 22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22021 (exit $ac_status); } && 22022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22024 (eval $ac_try) 2>&5 22025 ac_status=$? 22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22027 (exit $ac_status); }; } && 22028 { ac_try='test -s conftest.$ac_objext' 22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22030 (eval $ac_try) 2>&5 22031 ac_status=$? 22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22033 (exit $ac_status); }; }; then 22034 ac_lo=0 ac_mid=0 22035 while :; do 22036 cat >conftest.$ac_ext <<_ACEOF 22037/* confdefs.h. */ 22038_ACEOF 22039cat confdefs.h >>conftest.$ac_ext 22040cat >>conftest.$ac_ext <<_ACEOF 22041/* end confdefs.h. */ 22042#include <stddef.h> 22043int 22044main () 22045{ 22046static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 22047test_array [0] = 0 22048 22049 ; 22050 return 0; 22051} 22052_ACEOF 22053rm -f conftest.$ac_objext 22054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22055 (eval $ac_compile) 2>conftest.er1 22056 ac_status=$? 22057 grep -v '^ *+' conftest.er1 >conftest.err 22058 rm -f conftest.er1 22059 cat conftest.err >&5 22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22061 (exit $ac_status); } && 22062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22064 (eval $ac_try) 2>&5 22065 ac_status=$? 22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22067 (exit $ac_status); }; } && 22068 { ac_try='test -s conftest.$ac_objext' 22069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22070 (eval $ac_try) 2>&5 22071 ac_status=$? 22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22073 (exit $ac_status); }; }; then 22074 ac_hi=$ac_mid; break 22075else 22076 echo "$as_me: failed program was:" >&5 22077sed 's/^/| /' conftest.$ac_ext >&5 22078 22079ac_lo=`expr $ac_mid + 1` 22080 if test $ac_lo -le $ac_mid; then 22081 ac_lo= ac_hi= 22082 break 22083 fi 22084 ac_mid=`expr 2 '*' $ac_mid + 1` 22085fi 22086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22087 done 22088else 22089 echo "$as_me: failed program was:" >&5 22090sed 's/^/| /' conftest.$ac_ext >&5 22091 22092cat >conftest.$ac_ext <<_ACEOF 22093/* confdefs.h. */ 22094_ACEOF 22095cat confdefs.h >>conftest.$ac_ext 22096cat >>conftest.$ac_ext <<_ACEOF 22097/* end confdefs.h. */ 22098#include <stddef.h> 22099int 22100main () 22101{ 22102static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 22103test_array [0] = 0 22104 22105 ; 22106 return 0; 22107} 22108_ACEOF 22109rm -f conftest.$ac_objext 22110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22111 (eval $ac_compile) 2>conftest.er1 22112 ac_status=$? 22113 grep -v '^ *+' conftest.er1 >conftest.err 22114 rm -f conftest.er1 22115 cat conftest.err >&5 22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22117 (exit $ac_status); } && 22118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22120 (eval $ac_try) 2>&5 22121 ac_status=$? 22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22123 (exit $ac_status); }; } && 22124 { ac_try='test -s conftest.$ac_objext' 22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22126 (eval $ac_try) 2>&5 22127 ac_status=$? 22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22129 (exit $ac_status); }; }; then 22130 ac_hi=-1 ac_mid=-1 22131 while :; do 22132 cat >conftest.$ac_ext <<_ACEOF 22133/* confdefs.h. */ 22134_ACEOF 22135cat confdefs.h >>conftest.$ac_ext 22136cat >>conftest.$ac_ext <<_ACEOF 22137/* end confdefs.h. */ 22138#include <stddef.h> 22139int 22140main () 22141{ 22142static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 22143test_array [0] = 0 22144 22145 ; 22146 return 0; 22147} 22148_ACEOF 22149rm -f conftest.$ac_objext 22150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22151 (eval $ac_compile) 2>conftest.er1 22152 ac_status=$? 22153 grep -v '^ *+' conftest.er1 >conftest.err 22154 rm -f conftest.er1 22155 cat conftest.err >&5 22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22157 (exit $ac_status); } && 22158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22160 (eval $ac_try) 2>&5 22161 ac_status=$? 22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22163 (exit $ac_status); }; } && 22164 { ac_try='test -s conftest.$ac_objext' 22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22166 (eval $ac_try) 2>&5 22167 ac_status=$? 22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22169 (exit $ac_status); }; }; then 22170 ac_lo=$ac_mid; break 22171else 22172 echo "$as_me: failed program was:" >&5 22173sed 's/^/| /' conftest.$ac_ext >&5 22174 22175ac_hi=`expr '(' $ac_mid ')' - 1` 22176 if test $ac_mid -le $ac_hi; then 22177 ac_lo= ac_hi= 22178 break 22179 fi 22180 ac_mid=`expr 2 '*' $ac_mid` 22181fi 22182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22183 done 22184else 22185 echo "$as_me: failed program was:" >&5 22186sed 's/^/| /' conftest.$ac_ext >&5 22187 22188ac_lo= ac_hi= 22189fi 22190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22191fi 22192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22193# Binary search between lo and hi bounds. 22194while test "x$ac_lo" != "x$ac_hi"; do 22195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22196 cat >conftest.$ac_ext <<_ACEOF 22197/* confdefs.h. */ 22198_ACEOF 22199cat confdefs.h >>conftest.$ac_ext 22200cat >>conftest.$ac_ext <<_ACEOF 22201/* end confdefs.h. */ 22202#include <stddef.h> 22203int 22204main () 22205{ 22206static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 22207test_array [0] = 0 22208 22209 ; 22210 return 0; 22211} 22212_ACEOF 22213rm -f conftest.$ac_objext 22214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22215 (eval $ac_compile) 2>conftest.er1 22216 ac_status=$? 22217 grep -v '^ *+' conftest.er1 >conftest.err 22218 rm -f conftest.er1 22219 cat conftest.err >&5 22220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22221 (exit $ac_status); } && 22222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22224 (eval $ac_try) 2>&5 22225 ac_status=$? 22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22227 (exit $ac_status); }; } && 22228 { ac_try='test -s conftest.$ac_objext' 22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22230 (eval $ac_try) 2>&5 22231 ac_status=$? 22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22233 (exit $ac_status); }; }; then 22234 ac_hi=$ac_mid 22235else 22236 echo "$as_me: failed program was:" >&5 22237sed 's/^/| /' conftest.$ac_ext >&5 22238 22239ac_lo=`expr '(' $ac_mid ')' + 1` 22240fi 22241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22242done 22243case $ac_lo in 22244?*) res_hi=$ac_lo;; 22245'') result=? ;; 22246esac 22247else 22248 if test "$cross_compiling" = yes; then 22249 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 22250echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 22251 { (exit 1); exit 1; }; } 22252else 22253 cat >conftest.$ac_ext <<_ACEOF 22254/* confdefs.h. */ 22255_ACEOF 22256cat confdefs.h >>conftest.$ac_ext 22257cat >>conftest.$ac_ext <<_ACEOF 22258/* end confdefs.h. */ 22259#include <stddef.h> 22260long longval () { return ~(size_t)0 / 10; } 22261unsigned long ulongval () { return ~(size_t)0 / 10; } 22262#include <stdio.h> 22263#include <stdlib.h> 22264int 22265main () 22266{ 22267 22268 FILE *f = fopen ("conftest.val", "w"); 22269 if (! f) 22270 exit (1); 22271 if ((~(size_t)0 / 10) < 0) 22272 { 22273 long i = longval (); 22274 if (i != (~(size_t)0 / 10)) 22275 exit (1); 22276 fprintf (f, "%ld\n", i); 22277 } 22278 else 22279 { 22280 unsigned long i = ulongval (); 22281 if (i != (~(size_t)0 / 10)) 22282 exit (1); 22283 fprintf (f, "%lu\n", i); 22284 } 22285 exit (ferror (f) || fclose (f) != 0); 22286 22287 ; 22288 return 0; 22289} 22290_ACEOF 22291rm -f conftest$ac_exeext 22292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22293 (eval $ac_link) 2>&5 22294 ac_status=$? 22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22298 (eval $ac_try) 2>&5 22299 ac_status=$? 22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22301 (exit $ac_status); }; }; then 22302 res_hi=`cat conftest.val` 22303else 22304 echo "$as_me: program exited with status $ac_status" >&5 22305echo "$as_me: failed program was:" >&5 22306sed 's/^/| /' conftest.$ac_ext >&5 22307 22308( exit $ac_status ) 22309result=? 22310fi 22311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22312fi 22313fi 22314rm -f conftest.val 22315 if test "$cross_compiling" = yes; then 22316 # Depending upon the size, compute the lo and hi bounds. 22317cat >conftest.$ac_ext <<_ACEOF 22318/* confdefs.h. */ 22319_ACEOF 22320cat confdefs.h >>conftest.$ac_ext 22321cat >>conftest.$ac_ext <<_ACEOF 22322/* end confdefs.h. */ 22323#include <stddef.h> 22324int 22325main () 22326{ 22327static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 22328test_array [0] = 0 22329 22330 ; 22331 return 0; 22332} 22333_ACEOF 22334rm -f conftest.$ac_objext 22335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22336 (eval $ac_compile) 2>conftest.er1 22337 ac_status=$? 22338 grep -v '^ *+' conftest.er1 >conftest.err 22339 rm -f conftest.er1 22340 cat conftest.err >&5 22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22342 (exit $ac_status); } && 22343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22345 (eval $ac_try) 2>&5 22346 ac_status=$? 22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22348 (exit $ac_status); }; } && 22349 { ac_try='test -s conftest.$ac_objext' 22350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22351 (eval $ac_try) 2>&5 22352 ac_status=$? 22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22354 (exit $ac_status); }; }; then 22355 ac_lo=0 ac_mid=0 22356 while :; do 22357 cat >conftest.$ac_ext <<_ACEOF 22358/* confdefs.h. */ 22359_ACEOF 22360cat confdefs.h >>conftest.$ac_ext 22361cat >>conftest.$ac_ext <<_ACEOF 22362/* end confdefs.h. */ 22363#include <stddef.h> 22364int 22365main () 22366{ 22367static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 22368test_array [0] = 0 22369 22370 ; 22371 return 0; 22372} 22373_ACEOF 22374rm -f conftest.$ac_objext 22375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22376 (eval $ac_compile) 2>conftest.er1 22377 ac_status=$? 22378 grep -v '^ *+' conftest.er1 >conftest.err 22379 rm -f conftest.er1 22380 cat conftest.err >&5 22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22382 (exit $ac_status); } && 22383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22385 (eval $ac_try) 2>&5 22386 ac_status=$? 22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22388 (exit $ac_status); }; } && 22389 { ac_try='test -s conftest.$ac_objext' 22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22391 (eval $ac_try) 2>&5 22392 ac_status=$? 22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22394 (exit $ac_status); }; }; then 22395 ac_hi=$ac_mid; break 22396else 22397 echo "$as_me: failed program was:" >&5 22398sed 's/^/| /' conftest.$ac_ext >&5 22399 22400ac_lo=`expr $ac_mid + 1` 22401 if test $ac_lo -le $ac_mid; then 22402 ac_lo= ac_hi= 22403 break 22404 fi 22405 ac_mid=`expr 2 '*' $ac_mid + 1` 22406fi 22407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22408 done 22409else 22410 echo "$as_me: failed program was:" >&5 22411sed 's/^/| /' conftest.$ac_ext >&5 22412 22413cat >conftest.$ac_ext <<_ACEOF 22414/* confdefs.h. */ 22415_ACEOF 22416cat confdefs.h >>conftest.$ac_ext 22417cat >>conftest.$ac_ext <<_ACEOF 22418/* end confdefs.h. */ 22419#include <stddef.h> 22420int 22421main () 22422{ 22423static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 22424test_array [0] = 0 22425 22426 ; 22427 return 0; 22428} 22429_ACEOF 22430rm -f conftest.$ac_objext 22431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22432 (eval $ac_compile) 2>conftest.er1 22433 ac_status=$? 22434 grep -v '^ *+' conftest.er1 >conftest.err 22435 rm -f conftest.er1 22436 cat conftest.err >&5 22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22438 (exit $ac_status); } && 22439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22441 (eval $ac_try) 2>&5 22442 ac_status=$? 22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22444 (exit $ac_status); }; } && 22445 { ac_try='test -s conftest.$ac_objext' 22446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22447 (eval $ac_try) 2>&5 22448 ac_status=$? 22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22450 (exit $ac_status); }; }; then 22451 ac_hi=-1 ac_mid=-1 22452 while :; do 22453 cat >conftest.$ac_ext <<_ACEOF 22454/* confdefs.h. */ 22455_ACEOF 22456cat confdefs.h >>conftest.$ac_ext 22457cat >>conftest.$ac_ext <<_ACEOF 22458/* end confdefs.h. */ 22459#include <stddef.h> 22460int 22461main () 22462{ 22463static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 22464test_array [0] = 0 22465 22466 ; 22467 return 0; 22468} 22469_ACEOF 22470rm -f conftest.$ac_objext 22471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22472 (eval $ac_compile) 2>conftest.er1 22473 ac_status=$? 22474 grep -v '^ *+' conftest.er1 >conftest.err 22475 rm -f conftest.er1 22476 cat conftest.err >&5 22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22478 (exit $ac_status); } && 22479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22481 (eval $ac_try) 2>&5 22482 ac_status=$? 22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22484 (exit $ac_status); }; } && 22485 { ac_try='test -s conftest.$ac_objext' 22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22487 (eval $ac_try) 2>&5 22488 ac_status=$? 22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22490 (exit $ac_status); }; }; then 22491 ac_lo=$ac_mid; break 22492else 22493 echo "$as_me: failed program was:" >&5 22494sed 's/^/| /' conftest.$ac_ext >&5 22495 22496ac_hi=`expr '(' $ac_mid ')' - 1` 22497 if test $ac_mid -le $ac_hi; then 22498 ac_lo= ac_hi= 22499 break 22500 fi 22501 ac_mid=`expr 2 '*' $ac_mid` 22502fi 22503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22504 done 22505else 22506 echo "$as_me: failed program was:" >&5 22507sed 's/^/| /' conftest.$ac_ext >&5 22508 22509ac_lo= ac_hi= 22510fi 22511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22512fi 22513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22514# Binary search between lo and hi bounds. 22515while test "x$ac_lo" != "x$ac_hi"; do 22516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22517 cat >conftest.$ac_ext <<_ACEOF 22518/* confdefs.h. */ 22519_ACEOF 22520cat confdefs.h >>conftest.$ac_ext 22521cat >>conftest.$ac_ext <<_ACEOF 22522/* end confdefs.h. */ 22523#include <stddef.h> 22524int 22525main () 22526{ 22527static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 22528test_array [0] = 0 22529 22530 ; 22531 return 0; 22532} 22533_ACEOF 22534rm -f conftest.$ac_objext 22535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22536 (eval $ac_compile) 2>conftest.er1 22537 ac_status=$? 22538 grep -v '^ *+' conftest.er1 >conftest.err 22539 rm -f conftest.er1 22540 cat conftest.err >&5 22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22542 (exit $ac_status); } && 22543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22545 (eval $ac_try) 2>&5 22546 ac_status=$? 22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22548 (exit $ac_status); }; } && 22549 { ac_try='test -s conftest.$ac_objext' 22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22551 (eval $ac_try) 2>&5 22552 ac_status=$? 22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22554 (exit $ac_status); }; }; then 22555 ac_hi=$ac_mid 22556else 22557 echo "$as_me: failed program was:" >&5 22558sed 's/^/| /' conftest.$ac_ext >&5 22559 22560ac_lo=`expr '(' $ac_mid ')' + 1` 22561fi 22562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22563done 22564case $ac_lo in 22565?*) res_lo=$ac_lo;; 22566'') result=? ;; 22567esac 22568else 22569 if test "$cross_compiling" = yes; then 22570 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 22571echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 22572 { (exit 1); exit 1; }; } 22573else 22574 cat >conftest.$ac_ext <<_ACEOF 22575/* confdefs.h. */ 22576_ACEOF 22577cat confdefs.h >>conftest.$ac_ext 22578cat >>conftest.$ac_ext <<_ACEOF 22579/* end confdefs.h. */ 22580#include <stddef.h> 22581long longval () { return ~(size_t)0 % 10; } 22582unsigned long ulongval () { return ~(size_t)0 % 10; } 22583#include <stdio.h> 22584#include <stdlib.h> 22585int 22586main () 22587{ 22588 22589 FILE *f = fopen ("conftest.val", "w"); 22590 if (! f) 22591 exit (1); 22592 if ((~(size_t)0 % 10) < 0) 22593 { 22594 long i = longval (); 22595 if (i != (~(size_t)0 % 10)) 22596 exit (1); 22597 fprintf (f, "%ld\n", i); 22598 } 22599 else 22600 { 22601 unsigned long i = ulongval (); 22602 if (i != (~(size_t)0 % 10)) 22603 exit (1); 22604 fprintf (f, "%lu\n", i); 22605 } 22606 exit (ferror (f) || fclose (f) != 0); 22607 22608 ; 22609 return 0; 22610} 22611_ACEOF 22612rm -f conftest$ac_exeext 22613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22614 (eval $ac_link) 2>&5 22615 ac_status=$? 22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22619 (eval $ac_try) 2>&5 22620 ac_status=$? 22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22622 (exit $ac_status); }; }; then 22623 res_lo=`cat conftest.val` 22624else 22625 echo "$as_me: program exited with status $ac_status" >&5 22626echo "$as_me: failed program was:" >&5 22627sed 's/^/| /' conftest.$ac_ext >&5 22628 22629( exit $ac_status ) 22630result=? 22631fi 22632rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22633fi 22634fi 22635rm -f conftest.val 22636 if test "$cross_compiling" = yes; then 22637 # Depending upon the size, compute the lo and hi bounds. 22638cat >conftest.$ac_ext <<_ACEOF 22639/* confdefs.h. */ 22640_ACEOF 22641cat confdefs.h >>conftest.$ac_ext 22642cat >>conftest.$ac_ext <<_ACEOF 22643/* end confdefs.h. */ 22644#include <stddef.h> 22645int 22646main () 22647{ 22648static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 22649test_array [0] = 0 22650 22651 ; 22652 return 0; 22653} 22654_ACEOF 22655rm -f conftest.$ac_objext 22656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22657 (eval $ac_compile) 2>conftest.er1 22658 ac_status=$? 22659 grep -v '^ *+' conftest.er1 >conftest.err 22660 rm -f conftest.er1 22661 cat conftest.err >&5 22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22663 (exit $ac_status); } && 22664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22666 (eval $ac_try) 2>&5 22667 ac_status=$? 22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22669 (exit $ac_status); }; } && 22670 { ac_try='test -s conftest.$ac_objext' 22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22672 (eval $ac_try) 2>&5 22673 ac_status=$? 22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22675 (exit $ac_status); }; }; then 22676 ac_lo=0 ac_mid=0 22677 while :; do 22678 cat >conftest.$ac_ext <<_ACEOF 22679/* confdefs.h. */ 22680_ACEOF 22681cat confdefs.h >>conftest.$ac_ext 22682cat >>conftest.$ac_ext <<_ACEOF 22683/* end confdefs.h. */ 22684#include <stddef.h> 22685int 22686main () 22687{ 22688static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 22689test_array [0] = 0 22690 22691 ; 22692 return 0; 22693} 22694_ACEOF 22695rm -f conftest.$ac_objext 22696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22697 (eval $ac_compile) 2>conftest.er1 22698 ac_status=$? 22699 grep -v '^ *+' conftest.er1 >conftest.err 22700 rm -f conftest.er1 22701 cat conftest.err >&5 22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22703 (exit $ac_status); } && 22704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22706 (eval $ac_try) 2>&5 22707 ac_status=$? 22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22709 (exit $ac_status); }; } && 22710 { ac_try='test -s conftest.$ac_objext' 22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22712 (eval $ac_try) 2>&5 22713 ac_status=$? 22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22715 (exit $ac_status); }; }; then 22716 ac_hi=$ac_mid; break 22717else 22718 echo "$as_me: failed program was:" >&5 22719sed 's/^/| /' conftest.$ac_ext >&5 22720 22721ac_lo=`expr $ac_mid + 1` 22722 if test $ac_lo -le $ac_mid; then 22723 ac_lo= ac_hi= 22724 break 22725 fi 22726 ac_mid=`expr 2 '*' $ac_mid + 1` 22727fi 22728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22729 done 22730else 22731 echo "$as_me: failed program was:" >&5 22732sed 's/^/| /' conftest.$ac_ext >&5 22733 22734cat >conftest.$ac_ext <<_ACEOF 22735/* confdefs.h. */ 22736_ACEOF 22737cat confdefs.h >>conftest.$ac_ext 22738cat >>conftest.$ac_ext <<_ACEOF 22739/* end confdefs.h. */ 22740#include <stddef.h> 22741int 22742main () 22743{ 22744static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 22745test_array [0] = 0 22746 22747 ; 22748 return 0; 22749} 22750_ACEOF 22751rm -f conftest.$ac_objext 22752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22753 (eval $ac_compile) 2>conftest.er1 22754 ac_status=$? 22755 grep -v '^ *+' conftest.er1 >conftest.err 22756 rm -f conftest.er1 22757 cat conftest.err >&5 22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22759 (exit $ac_status); } && 22760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22762 (eval $ac_try) 2>&5 22763 ac_status=$? 22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22765 (exit $ac_status); }; } && 22766 { ac_try='test -s conftest.$ac_objext' 22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22768 (eval $ac_try) 2>&5 22769 ac_status=$? 22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22771 (exit $ac_status); }; }; then 22772 ac_hi=-1 ac_mid=-1 22773 while :; do 22774 cat >conftest.$ac_ext <<_ACEOF 22775/* confdefs.h. */ 22776_ACEOF 22777cat confdefs.h >>conftest.$ac_ext 22778cat >>conftest.$ac_ext <<_ACEOF 22779/* end confdefs.h. */ 22780#include <stddef.h> 22781int 22782main () 22783{ 22784static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 22785test_array [0] = 0 22786 22787 ; 22788 return 0; 22789} 22790_ACEOF 22791rm -f conftest.$ac_objext 22792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22793 (eval $ac_compile) 2>conftest.er1 22794 ac_status=$? 22795 grep -v '^ *+' conftest.er1 >conftest.err 22796 rm -f conftest.er1 22797 cat conftest.err >&5 22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22799 (exit $ac_status); } && 22800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22802 (eval $ac_try) 2>&5 22803 ac_status=$? 22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22805 (exit $ac_status); }; } && 22806 { ac_try='test -s conftest.$ac_objext' 22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22808 (eval $ac_try) 2>&5 22809 ac_status=$? 22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22811 (exit $ac_status); }; }; then 22812 ac_lo=$ac_mid; break 22813else 22814 echo "$as_me: failed program was:" >&5 22815sed 's/^/| /' conftest.$ac_ext >&5 22816 22817ac_hi=`expr '(' $ac_mid ')' - 1` 22818 if test $ac_mid -le $ac_hi; then 22819 ac_lo= ac_hi= 22820 break 22821 fi 22822 ac_mid=`expr 2 '*' $ac_mid` 22823fi 22824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22825 done 22826else 22827 echo "$as_me: failed program was:" >&5 22828sed 's/^/| /' conftest.$ac_ext >&5 22829 22830ac_lo= ac_hi= 22831fi 22832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22833fi 22834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22835# Binary search between lo and hi bounds. 22836while test "x$ac_lo" != "x$ac_hi"; do 22837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22838 cat >conftest.$ac_ext <<_ACEOF 22839/* confdefs.h. */ 22840_ACEOF 22841cat confdefs.h >>conftest.$ac_ext 22842cat >>conftest.$ac_ext <<_ACEOF 22843/* end confdefs.h. */ 22844#include <stddef.h> 22845int 22846main () 22847{ 22848static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 22849test_array [0] = 0 22850 22851 ; 22852 return 0; 22853} 22854_ACEOF 22855rm -f conftest.$ac_objext 22856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22857 (eval $ac_compile) 2>conftest.er1 22858 ac_status=$? 22859 grep -v '^ *+' conftest.er1 >conftest.err 22860 rm -f conftest.er1 22861 cat conftest.err >&5 22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22863 (exit $ac_status); } && 22864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22866 (eval $ac_try) 2>&5 22867 ac_status=$? 22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22869 (exit $ac_status); }; } && 22870 { ac_try='test -s conftest.$ac_objext' 22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22872 (eval $ac_try) 2>&5 22873 ac_status=$? 22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22875 (exit $ac_status); }; }; then 22876 ac_hi=$ac_mid 22877else 22878 echo "$as_me: failed program was:" >&5 22879sed 's/^/| /' conftest.$ac_ext >&5 22880 22881ac_lo=`expr '(' $ac_mid ')' + 1` 22882fi 22883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22884done 22885case $ac_lo in 22886?*) fits_in_uint=$ac_lo;; 22887'') result=? ;; 22888esac 22889else 22890 if test "$cross_compiling" = yes; then 22891 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 22892echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 22893 { (exit 1); exit 1; }; } 22894else 22895 cat >conftest.$ac_ext <<_ACEOF 22896/* confdefs.h. */ 22897_ACEOF 22898cat confdefs.h >>conftest.$ac_ext 22899cat >>conftest.$ac_ext <<_ACEOF 22900/* end confdefs.h. */ 22901#include <stddef.h> 22902long longval () { return sizeof (size_t) <= sizeof (unsigned int); } 22903unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 22904#include <stdio.h> 22905#include <stdlib.h> 22906int 22907main () 22908{ 22909 22910 FILE *f = fopen ("conftest.val", "w"); 22911 if (! f) 22912 exit (1); 22913 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 22914 { 22915 long i = longval (); 22916 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 22917 exit (1); 22918 fprintf (f, "%ld\n", i); 22919 } 22920 else 22921 { 22922 unsigned long i = ulongval (); 22923 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 22924 exit (1); 22925 fprintf (f, "%lu\n", i); 22926 } 22927 exit (ferror (f) || fclose (f) != 0); 22928 22929 ; 22930 return 0; 22931} 22932_ACEOF 22933rm -f conftest$ac_exeext 22934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22935 (eval $ac_link) 2>&5 22936 ac_status=$? 22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22940 (eval $ac_try) 2>&5 22941 ac_status=$? 22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22943 (exit $ac_status); }; }; then 22944 fits_in_uint=`cat conftest.val` 22945else 22946 echo "$as_me: program exited with status $ac_status" >&5 22947echo "$as_me: failed program was:" >&5 22948sed 's/^/| /' conftest.$ac_ext >&5 22949 22950( exit $ac_status ) 22951result=? 22952fi 22953rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22954fi 22955fi 22956rm -f conftest.val 22957 if test "$fits_in_uint" = 1; then 22958 cat >conftest.$ac_ext <<_ACEOF 22959/* confdefs.h. */ 22960_ACEOF 22961cat confdefs.h >>conftest.$ac_ext 22962cat >>conftest.$ac_ext <<_ACEOF 22963/* end confdefs.h. */ 22964#include <stddef.h> 22965 extern size_t foo; 22966 extern unsigned long foo; 22967 22968int 22969main () 22970{ 22971 22972 ; 22973 return 0; 22974} 22975_ACEOF 22976rm -f conftest.$ac_objext 22977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22978 (eval $ac_compile) 2>conftest.er1 22979 ac_status=$? 22980 grep -v '^ *+' conftest.er1 >conftest.err 22981 rm -f conftest.er1 22982 cat conftest.err >&5 22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22984 (exit $ac_status); } && 22985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22987 (eval $ac_try) 2>&5 22988 ac_status=$? 22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22990 (exit $ac_status); }; } && 22991 { ac_try='test -s conftest.$ac_objext' 22992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22993 (eval $ac_try) 2>&5 22994 ac_status=$? 22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22996 (exit $ac_status); }; }; then 22997 fits_in_uint=0 22998else 22999 echo "$as_me: failed program was:" >&5 23000sed 's/^/| /' conftest.$ac_ext >&5 23001 23002fi 23003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23004 fi 23005 if test -z "$result"; then 23006 if test "$fits_in_uint" = 1; then 23007 result="$res_hi$res_lo"U 23008 else 23009 result="$res_hi$res_lo"UL 23010 fi 23011 else 23012 result='~(size_t)0' 23013 fi 23014 fi 23015 echo "$as_me:$LINENO: result: $result" >&5 23016echo "${ECHO_T}$result" >&6 23017 if test "$result" != yes; then 23018 23019cat >>confdefs.h <<_ACEOF 23020#define SIZE_MAX $result 23021_ACEOF 23022 23023 fi 23024 23025 23026 23027 23028for ac_header in stdint.h 23029do 23030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23031if eval "test \"\${$as_ac_Header+set}\" = set"; then 23032 echo "$as_me:$LINENO: checking for $ac_header" >&5 23033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23034if eval "test \"\${$as_ac_Header+set}\" = set"; then 23035 echo $ECHO_N "(cached) $ECHO_C" >&6 23036fi 23037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23039else 23040 # Is the header compilable? 23041echo "$as_me:$LINENO: checking $ac_header usability" >&5 23042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23043cat >conftest.$ac_ext <<_ACEOF 23044/* confdefs.h. */ 23045_ACEOF 23046cat confdefs.h >>conftest.$ac_ext 23047cat >>conftest.$ac_ext <<_ACEOF 23048/* end confdefs.h. */ 23049$ac_includes_default 23050#include <$ac_header> 23051_ACEOF 23052rm -f conftest.$ac_objext 23053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23054 (eval $ac_compile) 2>conftest.er1 23055 ac_status=$? 23056 grep -v '^ *+' conftest.er1 >conftest.err 23057 rm -f conftest.er1 23058 cat conftest.err >&5 23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23060 (exit $ac_status); } && 23061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23063 (eval $ac_try) 2>&5 23064 ac_status=$? 23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23066 (exit $ac_status); }; } && 23067 { ac_try='test -s conftest.$ac_objext' 23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23069 (eval $ac_try) 2>&5 23070 ac_status=$? 23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23072 (exit $ac_status); }; }; then 23073 ac_header_compiler=yes 23074else 23075 echo "$as_me: failed program was:" >&5 23076sed 's/^/| /' conftest.$ac_ext >&5 23077 23078ac_header_compiler=no 23079fi 23080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23082echo "${ECHO_T}$ac_header_compiler" >&6 23083 23084# Is the header present? 23085echo "$as_me:$LINENO: checking $ac_header presence" >&5 23086echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23087cat >conftest.$ac_ext <<_ACEOF 23088/* confdefs.h. */ 23089_ACEOF 23090cat confdefs.h >>conftest.$ac_ext 23091cat >>conftest.$ac_ext <<_ACEOF 23092/* end confdefs.h. */ 23093#include <$ac_header> 23094_ACEOF 23095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 23096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 23097 ac_status=$? 23098 grep -v '^ *+' conftest.er1 >conftest.err 23099 rm -f conftest.er1 23100 cat conftest.err >&5 23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23102 (exit $ac_status); } >/dev/null; then 23103 if test -s conftest.err; then 23104 ac_cpp_err=$ac_c_preproc_warn_flag 23105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 23106 else 23107 ac_cpp_err= 23108 fi 23109else 23110 ac_cpp_err=yes 23111fi 23112if test -z "$ac_cpp_err"; then 23113 ac_header_preproc=yes 23114else 23115 echo "$as_me: failed program was:" >&5 23116sed 's/^/| /' conftest.$ac_ext >&5 23117 23118 ac_header_preproc=no 23119fi 23120rm -f conftest.err conftest.$ac_ext 23121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23122echo "${ECHO_T}$ac_header_preproc" >&6 23123 23124# So? What about this header? 23125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23126 yes:no: ) 23127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23131 ac_header_preproc=yes 23132 ;; 23133 no:yes:* ) 23134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23146 ( 23147 cat <<\_ASBOX 23148## -------------------------------------- ## 23149## Report this to http://freedesktop.org/ ## 23150## -------------------------------------- ## 23151_ASBOX 23152 ) | 23153 sed "s/^/$as_me: WARNING: /" >&2 23154 ;; 23155esac 23156echo "$as_me:$LINENO: checking for $ac_header" >&5 23157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23158if eval "test \"\${$as_ac_Header+set}\" = set"; then 23159 echo $ECHO_N "(cached) $ECHO_C" >&6 23160else 23161 eval "$as_ac_Header=\$ac_header_preproc" 23162fi 23163echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23164echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23165 23166fi 23167if test `eval echo '${'$as_ac_Header'}'` = yes; then 23168 cat >>confdefs.h <<_ACEOF 23169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 23170_ACEOF 23171 23172fi 23173 23174done 23175 23176 23177 23178 if test "X$prefix" = "XNONE"; then 23179 acl_final_prefix="$ac_default_prefix" 23180 else 23181 acl_final_prefix="$prefix" 23182 fi 23183 if test "X$exec_prefix" = "XNONE"; then 23184 acl_final_exec_prefix='${prefix}' 23185 else 23186 acl_final_exec_prefix="$exec_prefix" 23187 fi 23188 acl_save_prefix="$prefix" 23189 prefix="$acl_final_prefix" 23190 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 23191 prefix="$acl_save_prefix" 23192 23193 23194# Check whether --with-gnu-ld or --without-gnu-ld was given. 23195if test "${with_gnu_ld+set}" = set; then 23196 withval="$with_gnu_ld" 23197 test "$withval" = no || with_gnu_ld=yes 23198else 23199 with_gnu_ld=no 23200fi; 23201# Prepare PATH_SEPARATOR. 23202# The user is always right. 23203if test "${PATH_SEPARATOR+set}" != set; then 23204 echo "#! /bin/sh" >conf$$.sh 23205 echo "exit 0" >>conf$$.sh 23206 chmod +x conf$$.sh 23207 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23208 PATH_SEPARATOR=';' 23209 else 23210 PATH_SEPARATOR=: 23211 fi 23212 rm -f conf$$.sh 23213fi 23214ac_prog=ld 23215if test "$GCC" = yes; then 23216 # Check if gcc -print-prog-name=ld gives a path. 23217 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 23218echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 23219 case $host in 23220 *-*-mingw*) 23221 # gcc leaves a trailing carriage return which upsets mingw 23222 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 23223 *) 23224 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 23225 esac 23226 case $ac_prog in 23227 # Accept absolute paths. 23228 [\\/]* | [A-Za-z]:[\\/]*) 23229 re_direlt='/[^/][^/]*/\.\./' 23230 # Canonicalize the path of ld 23231 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 23232 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 23233 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 23234 done 23235 test -z "$LD" && LD="$ac_prog" 23236 ;; 23237 "") 23238 # If it fails, then pretend we aren't using GCC. 23239 ac_prog=ld 23240 ;; 23241 *) 23242 # If it is relative, then search for the first ld in PATH. 23243 with_gnu_ld=unknown 23244 ;; 23245 esac 23246elif test "$with_gnu_ld" = yes; then 23247 echo "$as_me:$LINENO: checking for GNU ld" >&5 23248echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 23249else 23250 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 23251echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 23252fi 23253if test "${acl_cv_path_LD+set}" = set; then 23254 echo $ECHO_N "(cached) $ECHO_C" >&6 23255else 23256 if test -z "$LD"; then 23257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 23258 for ac_dir in $PATH; do 23259 test -z "$ac_dir" && ac_dir=. 23260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 23261 acl_cv_path_LD="$ac_dir/$ac_prog" 23262 # Check to see if the program is GNU ld. I'd rather use --version, 23263 # but apparently some GNU ld's only accept -v. 23264 # Break only if it was the GNU/non-GNU ld that we prefer. 23265 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 23266 *GNU* | *'with BFD'*) 23267 test "$with_gnu_ld" != no && break ;; 23268 *) 23269 test "$with_gnu_ld" != yes && break ;; 23270 esac 23271 fi 23272 done 23273 IFS="$ac_save_ifs" 23274else 23275 acl_cv_path_LD="$LD" # Let the user override the test with a path. 23276fi 23277fi 23278 23279LD="$acl_cv_path_LD" 23280if test -n "$LD"; then 23281 echo "$as_me:$LINENO: result: $LD" >&5 23282echo "${ECHO_T}$LD" >&6 23283else 23284 echo "$as_me:$LINENO: result: no" >&5 23285echo "${ECHO_T}no" >&6 23286fi 23287test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 23288echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 23289 { (exit 1); exit 1; }; } 23290echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 23291echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 23292if test "${acl_cv_prog_gnu_ld+set}" = set; then 23293 echo $ECHO_N "(cached) $ECHO_C" >&6 23294else 23295 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 23296case `$LD -v 2>&1 </dev/null` in 23297*GNU* | *'with BFD'*) 23298 acl_cv_prog_gnu_ld=yes ;; 23299*) 23300 acl_cv_prog_gnu_ld=no ;; 23301esac 23302fi 23303echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 23304echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 23305with_gnu_ld=$acl_cv_prog_gnu_ld 23306 23307 23308 23309 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 23310echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 23311if test "${acl_cv_rpath+set}" = set; then 23312 echo $ECHO_N "(cached) $ECHO_C" >&6 23313else 23314 23315 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 23316 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 23317 . ./conftest.sh 23318 rm -f ./conftest.sh 23319 acl_cv_rpath=done 23320 23321fi 23322echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 23323echo "${ECHO_T}$acl_cv_rpath" >&6 23324 wl="$acl_cv_wl" 23325 libext="$acl_cv_libext" 23326 shlibext="$acl_cv_shlibext" 23327 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 23328 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 23329 hardcode_direct="$acl_cv_hardcode_direct" 23330 hardcode_minus_L="$acl_cv_hardcode_minus_L" 23331 # Check whether --enable-rpath or --disable-rpath was given. 23332if test "${enable_rpath+set}" = set; then 23333 enableval="$enable_rpath" 23334 : 23335else 23336 enable_rpath=yes 23337fi; 23338 23339 23340 23341 23342 23343 23344 23345 use_additional=yes 23346 23347 acl_save_prefix="$prefix" 23348 prefix="$acl_final_prefix" 23349 acl_save_exec_prefix="$exec_prefix" 23350 exec_prefix="$acl_final_exec_prefix" 23351 23352 eval additional_includedir=\"$includedir\" 23353 eval additional_libdir=\"$libdir\" 23354 23355 exec_prefix="$acl_save_exec_prefix" 23356 prefix="$acl_save_prefix" 23357 23358 23359# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 23360if test "${with_libiconv_prefix+set}" = set; then 23361 withval="$with_libiconv_prefix" 23362 23363 if test "X$withval" = "Xno"; then 23364 use_additional=no 23365 else 23366 if test "X$withval" = "X"; then 23367 23368 acl_save_prefix="$prefix" 23369 prefix="$acl_final_prefix" 23370 acl_save_exec_prefix="$exec_prefix" 23371 exec_prefix="$acl_final_exec_prefix" 23372 23373 eval additional_includedir=\"$includedir\" 23374 eval additional_libdir=\"$libdir\" 23375 23376 exec_prefix="$acl_save_exec_prefix" 23377 prefix="$acl_save_prefix" 23378 23379 else 23380 additional_includedir="$withval/include" 23381 additional_libdir="$withval/lib" 23382 fi 23383 fi 23384 23385fi; 23386 LIBICONV= 23387 LTLIBICONV= 23388 INCICONV= 23389 rpathdirs= 23390 ltrpathdirs= 23391 names_already_handled= 23392 names_next_round='iconv ' 23393 while test -n "$names_next_round"; do 23394 names_this_round="$names_next_round" 23395 names_next_round= 23396 for name in $names_this_round; do 23397 already_handled= 23398 for n in $names_already_handled; do 23399 if test "$n" = "$name"; then 23400 already_handled=yes 23401 break 23402 fi 23403 done 23404 if test -z "$already_handled"; then 23405 names_already_handled="$names_already_handled $name" 23406 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 23407 eval value=\"\$HAVE_LIB$uppername\" 23408 if test -n "$value"; then 23409 if test "$value" = yes; then 23410 eval value=\"\$LIB$uppername\" 23411 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 23412 eval value=\"\$LTLIB$uppername\" 23413 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 23414 else 23415 : 23416 fi 23417 else 23418 found_dir= 23419 found_la= 23420 found_so= 23421 found_a= 23422 if test $use_additional = yes; then 23423 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 23424 found_dir="$additional_libdir" 23425 found_so="$additional_libdir/lib$name.$shlibext" 23426 if test -f "$additional_libdir/lib$name.la"; then 23427 found_la="$additional_libdir/lib$name.la" 23428 fi 23429 else 23430 if test -f "$additional_libdir/lib$name.$libext"; then 23431 found_dir="$additional_libdir" 23432 found_a="$additional_libdir/lib$name.$libext" 23433 if test -f "$additional_libdir/lib$name.la"; then 23434 found_la="$additional_libdir/lib$name.la" 23435 fi 23436 fi 23437 fi 23438 fi 23439 if test "X$found_dir" = "X"; then 23440 for x in $LDFLAGS $LTLIBICONV; do 23441 23442 acl_save_prefix="$prefix" 23443 prefix="$acl_final_prefix" 23444 acl_save_exec_prefix="$exec_prefix" 23445 exec_prefix="$acl_final_exec_prefix" 23446 eval x=\"$x\" 23447 exec_prefix="$acl_save_exec_prefix" 23448 prefix="$acl_save_prefix" 23449 23450 case "$x" in 23451 -L*) 23452 dir=`echo "X$x" | sed -e 's/^X-L//'` 23453 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 23454 found_dir="$dir" 23455 found_so="$dir/lib$name.$shlibext" 23456 if test -f "$dir/lib$name.la"; then 23457 found_la="$dir/lib$name.la" 23458 fi 23459 else 23460 if test -f "$dir/lib$name.$libext"; then 23461 found_dir="$dir" 23462 found_a="$dir/lib$name.$libext" 23463 if test -f "$dir/lib$name.la"; then 23464 found_la="$dir/lib$name.la" 23465 fi 23466 fi 23467 fi 23468 ;; 23469 esac 23470 if test "X$found_dir" != "X"; then 23471 break 23472 fi 23473 done 23474 fi 23475 if test "X$found_dir" != "X"; then 23476 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 23477 if test "X$found_so" != "X"; then 23478 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 23479 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 23480 else 23481 haveit= 23482 for x in $ltrpathdirs; do 23483 if test "X$x" = "X$found_dir"; then 23484 haveit=yes 23485 break 23486 fi 23487 done 23488 if test -z "$haveit"; then 23489 ltrpathdirs="$ltrpathdirs $found_dir" 23490 fi 23491 if test "$hardcode_direct" = yes; then 23492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 23493 else 23494 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 23495 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 23496 haveit= 23497 for x in $rpathdirs; do 23498 if test "X$x" = "X$found_dir"; then 23499 haveit=yes 23500 break 23501 fi 23502 done 23503 if test -z "$haveit"; then 23504 rpathdirs="$rpathdirs $found_dir" 23505 fi 23506 else 23507 haveit= 23508 for x in $LDFLAGS $LIBICONV; do 23509 23510 acl_save_prefix="$prefix" 23511 prefix="$acl_final_prefix" 23512 acl_save_exec_prefix="$exec_prefix" 23513 exec_prefix="$acl_final_exec_prefix" 23514 eval x=\"$x\" 23515 exec_prefix="$acl_save_exec_prefix" 23516 prefix="$acl_save_prefix" 23517 23518 if test "X$x" = "X-L$found_dir"; then 23519 haveit=yes 23520 break 23521 fi 23522 done 23523 if test -z "$haveit"; then 23524 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 23525 fi 23526 if test "$hardcode_minus_L" != no; then 23527 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 23528 else 23529 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 23530 fi 23531 fi 23532 fi 23533 fi 23534 else 23535 if test "X$found_a" != "X"; then 23536 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 23537 else 23538 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 23539 fi 23540 fi 23541 additional_includedir= 23542 case "$found_dir" in 23543 */lib | */lib/) 23544 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 23545 additional_includedir="$basedir/include" 23546 ;; 23547 esac 23548 if test "X$additional_includedir" != "X"; then 23549 if test "X$additional_includedir" != "X/usr/include"; then 23550 haveit= 23551 if test "X$additional_includedir" = "X/usr/local/include"; then 23552 if test -n "$GCC"; then 23553 case $host_os in 23554 linux*) haveit=yes;; 23555 esac 23556 fi 23557 fi 23558 if test -z "$haveit"; then 23559 for x in $CPPFLAGS $INCICONV; do 23560 23561 acl_save_prefix="$prefix" 23562 prefix="$acl_final_prefix" 23563 acl_save_exec_prefix="$exec_prefix" 23564 exec_prefix="$acl_final_exec_prefix" 23565 eval x=\"$x\" 23566 exec_prefix="$acl_save_exec_prefix" 23567 prefix="$acl_save_prefix" 23568 23569 if test "X$x" = "X-I$additional_includedir"; then 23570 haveit=yes 23571 break 23572 fi 23573 done 23574 if test -z "$haveit"; then 23575 if test -d "$additional_includedir"; then 23576 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 23577 fi 23578 fi 23579 fi 23580 fi 23581 fi 23582 if test -n "$found_la"; then 23583 save_libdir="$libdir" 23584 case "$found_la" in 23585 */* | *\\*) . "$found_la" ;; 23586 *) . "./$found_la" ;; 23587 esac 23588 libdir="$save_libdir" 23589 for dep in $dependency_libs; do 23590 case "$dep" in 23591 -L*) 23592 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 23593 if test "X$additional_libdir" != "X/usr/lib"; then 23594 haveit= 23595 if test "X$additional_libdir" = "X/usr/local/lib"; then 23596 if test -n "$GCC"; then 23597 case $host_os in 23598 linux*) haveit=yes;; 23599 esac 23600 fi 23601 fi 23602 if test -z "$haveit"; then 23603 haveit= 23604 for x in $LDFLAGS $LIBICONV; do 23605 23606 acl_save_prefix="$prefix" 23607 prefix="$acl_final_prefix" 23608 acl_save_exec_prefix="$exec_prefix" 23609 exec_prefix="$acl_final_exec_prefix" 23610 eval x=\"$x\" 23611 exec_prefix="$acl_save_exec_prefix" 23612 prefix="$acl_save_prefix" 23613 23614 if test "X$x" = "X-L$additional_libdir"; then 23615 haveit=yes 23616 break 23617 fi 23618 done 23619 if test -z "$haveit"; then 23620 if test -d "$additional_libdir"; then 23621 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 23622 fi 23623 fi 23624 haveit= 23625 for x in $LDFLAGS $LTLIBICONV; do 23626 23627 acl_save_prefix="$prefix" 23628 prefix="$acl_final_prefix" 23629 acl_save_exec_prefix="$exec_prefix" 23630 exec_prefix="$acl_final_exec_prefix" 23631 eval x=\"$x\" 23632 exec_prefix="$acl_save_exec_prefix" 23633 prefix="$acl_save_prefix" 23634 23635 if test "X$x" = "X-L$additional_libdir"; then 23636 haveit=yes 23637 break 23638 fi 23639 done 23640 if test -z "$haveit"; then 23641 if test -d "$additional_libdir"; then 23642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 23643 fi 23644 fi 23645 fi 23646 fi 23647 ;; 23648 -R*) 23649 dir=`echo "X$dep" | sed -e 's/^X-R//'` 23650 if test "$enable_rpath" != no; then 23651 haveit= 23652 for x in $rpathdirs; do 23653 if test "X$x" = "X$dir"; then 23654 haveit=yes 23655 break 23656 fi 23657 done 23658 if test -z "$haveit"; then 23659 rpathdirs="$rpathdirs $dir" 23660 fi 23661 haveit= 23662 for x in $ltrpathdirs; do 23663 if test "X$x" = "X$dir"; then 23664 haveit=yes 23665 break 23666 fi 23667 done 23668 if test -z "$haveit"; then 23669 ltrpathdirs="$ltrpathdirs $dir" 23670 fi 23671 fi 23672 ;; 23673 -l*) 23674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 23675 ;; 23676 *.la) 23677 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 23678 ;; 23679 *) 23680 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 23681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 23682 ;; 23683 esac 23684 done 23685 fi 23686 else 23687 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 23688 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 23689 fi 23690 fi 23691 fi 23692 done 23693 done 23694 if test "X$rpathdirs" != "X"; then 23695 if test -n "$hardcode_libdir_separator"; then 23696 alldirs= 23697 for found_dir in $rpathdirs; do 23698 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 23699 done 23700 acl_save_libdir="$libdir" 23701 libdir="$alldirs" 23702 eval flag=\"$hardcode_libdir_flag_spec\" 23703 libdir="$acl_save_libdir" 23704 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 23705 else 23706 for found_dir in $rpathdirs; do 23707 acl_save_libdir="$libdir" 23708 libdir="$found_dir" 23709 eval flag=\"$hardcode_libdir_flag_spec\" 23710 libdir="$acl_save_libdir" 23711 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 23712 done 23713 fi 23714 fi 23715 if test "X$ltrpathdirs" != "X"; then 23716 for found_dir in $ltrpathdirs; do 23717 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 23718 done 23719 fi 23720 23721 23722 23723 23724 23725 23726 23727 23728 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 23729echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 23730if test "${ac_cv_type_ptrdiff_t+set}" = set; then 23731 echo $ECHO_N "(cached) $ECHO_C" >&6 23732else 23733 cat >conftest.$ac_ext <<_ACEOF 23734/* confdefs.h. */ 23735_ACEOF 23736cat confdefs.h >>conftest.$ac_ext 23737cat >>conftest.$ac_ext <<_ACEOF 23738/* end confdefs.h. */ 23739$ac_includes_default 23740int 23741main () 23742{ 23743if ((ptrdiff_t *) 0) 23744 return 0; 23745if (sizeof (ptrdiff_t)) 23746 return 0; 23747 ; 23748 return 0; 23749} 23750_ACEOF 23751rm -f conftest.$ac_objext 23752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23753 (eval $ac_compile) 2>conftest.er1 23754 ac_status=$? 23755 grep -v '^ *+' conftest.er1 >conftest.err 23756 rm -f conftest.er1 23757 cat conftest.err >&5 23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23759 (exit $ac_status); } && 23760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23762 (eval $ac_try) 2>&5 23763 ac_status=$? 23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23765 (exit $ac_status); }; } && 23766 { ac_try='test -s conftest.$ac_objext' 23767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23768 (eval $ac_try) 2>&5 23769 ac_status=$? 23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23771 (exit $ac_status); }; }; then 23772 ac_cv_type_ptrdiff_t=yes 23773else 23774 echo "$as_me: failed program was:" >&5 23775sed 's/^/| /' conftest.$ac_ext >&5 23776 23777ac_cv_type_ptrdiff_t=no 23778fi 23779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23780fi 23781echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 23782echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 23783if test $ac_cv_type_ptrdiff_t = yes; then 23784 : 23785else 23786 23787cat >>confdefs.h <<\_ACEOF 23788#define ptrdiff_t long 23789_ACEOF 23790 23791 23792fi 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 23805stdlib.h string.h unistd.h sys/param.h 23806do 23807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 23808if eval "test \"\${$as_ac_Header+set}\" = set"; then 23809 echo "$as_me:$LINENO: checking for $ac_header" >&5 23810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23811if eval "test \"\${$as_ac_Header+set}\" = set"; then 23812 echo $ECHO_N "(cached) $ECHO_C" >&6 23813fi 23814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23815echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23816else 23817 # Is the header compilable? 23818echo "$as_me:$LINENO: checking $ac_header usability" >&5 23819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 23820cat >conftest.$ac_ext <<_ACEOF 23821/* confdefs.h. */ 23822_ACEOF 23823cat confdefs.h >>conftest.$ac_ext 23824cat >>conftest.$ac_ext <<_ACEOF 23825/* end confdefs.h. */ 23826$ac_includes_default 23827#include <$ac_header> 23828_ACEOF 23829rm -f conftest.$ac_objext 23830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23831 (eval $ac_compile) 2>conftest.er1 23832 ac_status=$? 23833 grep -v '^ *+' conftest.er1 >conftest.err 23834 rm -f conftest.er1 23835 cat conftest.err >&5 23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23837 (exit $ac_status); } && 23838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23840 (eval $ac_try) 2>&5 23841 ac_status=$? 23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23843 (exit $ac_status); }; } && 23844 { ac_try='test -s conftest.$ac_objext' 23845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23846 (eval $ac_try) 2>&5 23847 ac_status=$? 23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23849 (exit $ac_status); }; }; then 23850 ac_header_compiler=yes 23851else 23852 echo "$as_me: failed program was:" >&5 23853sed 's/^/| /' conftest.$ac_ext >&5 23854 23855ac_header_compiler=no 23856fi 23857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 23859echo "${ECHO_T}$ac_header_compiler" >&6 23860 23861# Is the header present? 23862echo "$as_me:$LINENO: checking $ac_header presence" >&5 23863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 23864cat >conftest.$ac_ext <<_ACEOF 23865/* confdefs.h. */ 23866_ACEOF 23867cat confdefs.h >>conftest.$ac_ext 23868cat >>conftest.$ac_ext <<_ACEOF 23869/* end confdefs.h. */ 23870#include <$ac_header> 23871_ACEOF 23872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 23873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 23874 ac_status=$? 23875 grep -v '^ *+' conftest.er1 >conftest.err 23876 rm -f conftest.er1 23877 cat conftest.err >&5 23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23879 (exit $ac_status); } >/dev/null; then 23880 if test -s conftest.err; then 23881 ac_cpp_err=$ac_c_preproc_warn_flag 23882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 23883 else 23884 ac_cpp_err= 23885 fi 23886else 23887 ac_cpp_err=yes 23888fi 23889if test -z "$ac_cpp_err"; then 23890 ac_header_preproc=yes 23891else 23892 echo "$as_me: failed program was:" >&5 23893sed 's/^/| /' conftest.$ac_ext >&5 23894 23895 ac_header_preproc=no 23896fi 23897rm -f conftest.err conftest.$ac_ext 23898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 23899echo "${ECHO_T}$ac_header_preproc" >&6 23900 23901# So? What about this header? 23902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 23903 yes:no: ) 23904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 23905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 23906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 23907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 23908 ac_header_preproc=yes 23909 ;; 23910 no:yes:* ) 23911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 23912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 23913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 23914echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 23915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 23916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 23917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 23918echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 23919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 23920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 23921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 23922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 23923 ( 23924 cat <<\_ASBOX 23925## -------------------------------------- ## 23926## Report this to http://freedesktop.org/ ## 23927## -------------------------------------- ## 23928_ASBOX 23929 ) | 23930 sed "s/^/$as_me: WARNING: /" >&2 23931 ;; 23932esac 23933echo "$as_me:$LINENO: checking for $ac_header" >&5 23934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 23935if eval "test \"\${$as_ac_Header+set}\" = set"; then 23936 echo $ECHO_N "(cached) $ECHO_C" >&6 23937else 23938 eval "$as_ac_Header=\$ac_header_preproc" 23939fi 23940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 23941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 23942 23943fi 23944if test `eval echo '${'$as_ac_Header'}'` = yes; then 23945 cat >>confdefs.h <<_ACEOF 23946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 23947_ACEOF 23948 23949fi 23950 23951done 23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 23977mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 23978strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 23979__fsetlocking 23980do 23981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 23982echo "$as_me:$LINENO: checking for $ac_func" >&5 23983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 23984if eval "test \"\${$as_ac_var+set}\" = set"; then 23985 echo $ECHO_N "(cached) $ECHO_C" >&6 23986else 23987 cat >conftest.$ac_ext <<_ACEOF 23988/* confdefs.h. */ 23989_ACEOF 23990cat confdefs.h >>conftest.$ac_ext 23991cat >>conftest.$ac_ext <<_ACEOF 23992/* end confdefs.h. */ 23993/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 23994 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23995#define $ac_func innocuous_$ac_func 23996 23997/* System header to define __stub macros and hopefully few prototypes, 23998 which can conflict with char $ac_func (); below. 23999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 24000 <limits.h> exists even on freestanding compilers. */ 24001 24002#ifdef __STDC__ 24003# include <limits.h> 24004#else 24005# include <assert.h> 24006#endif 24007 24008#undef $ac_func 24009 24010/* Override any gcc2 internal prototype to avoid an error. */ 24011#ifdef __cplusplus 24012extern "C" 24013{ 24014#endif 24015/* We use char because int might match the return type of a gcc2 24016 builtin and then its argument prototype would still apply. */ 24017char $ac_func (); 24018/* The GNU C library defines this for functions which it implements 24019 to always fail with ENOSYS. Some functions are actually named 24020 something starting with __ and the normal name is an alias. */ 24021#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24022choke me 24023#else 24024char (*f) () = $ac_func; 24025#endif 24026#ifdef __cplusplus 24027} 24028#endif 24029 24030int 24031main () 24032{ 24033return f != $ac_func; 24034 ; 24035 return 0; 24036} 24037_ACEOF 24038rm -f conftest.$ac_objext conftest$ac_exeext 24039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24040 (eval $ac_link) 2>conftest.er1 24041 ac_status=$? 24042 grep -v '^ *+' conftest.er1 >conftest.err 24043 rm -f conftest.er1 24044 cat conftest.err >&5 24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24046 (exit $ac_status); } && 24047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24049 (eval $ac_try) 2>&5 24050 ac_status=$? 24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24052 (exit $ac_status); }; } && 24053 { ac_try='test -s conftest$ac_exeext' 24054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24055 (eval $ac_try) 2>&5 24056 ac_status=$? 24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24058 (exit $ac_status); }; }; then 24059 eval "$as_ac_var=yes" 24060else 24061 echo "$as_me: failed program was:" >&5 24062sed 's/^/| /' conftest.$ac_ext >&5 24063 24064eval "$as_ac_var=no" 24065fi 24066rm -f conftest.err conftest.$ac_objext \ 24067 conftest$ac_exeext conftest.$ac_ext 24068fi 24069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 24070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 24071if test `eval echo '${'$as_ac_var'}'` = yes; then 24072 cat >>confdefs.h <<_ACEOF 24073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24074_ACEOF 24075 24076fi 24077done 24078 24079 24080 24081 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 24082echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 24083if test "${ac_cv_have_decl__snprintf+set}" = set; then 24084 echo $ECHO_N "(cached) $ECHO_C" >&6 24085else 24086 cat >conftest.$ac_ext <<_ACEOF 24087/* confdefs.h. */ 24088_ACEOF 24089cat confdefs.h >>conftest.$ac_ext 24090cat >>conftest.$ac_ext <<_ACEOF 24091/* end confdefs.h. */ 24092#include <stdio.h> 24093int 24094main () 24095{ 24096 24097#ifndef _snprintf 24098 char *p = (char *) _snprintf; 24099#endif 24100 24101 ; 24102 return 0; 24103} 24104_ACEOF 24105rm -f conftest.$ac_objext 24106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24107 (eval $ac_compile) 2>conftest.er1 24108 ac_status=$? 24109 grep -v '^ *+' conftest.er1 >conftest.err 24110 rm -f conftest.er1 24111 cat conftest.err >&5 24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24113 (exit $ac_status); } && 24114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24116 (eval $ac_try) 2>&5 24117 ac_status=$? 24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24119 (exit $ac_status); }; } && 24120 { ac_try='test -s conftest.$ac_objext' 24121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24122 (eval $ac_try) 2>&5 24123 ac_status=$? 24124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24125 (exit $ac_status); }; }; then 24126 ac_cv_have_decl__snprintf=yes 24127else 24128 echo "$as_me: failed program was:" >&5 24129sed 's/^/| /' conftest.$ac_ext >&5 24130 24131ac_cv_have_decl__snprintf=no 24132fi 24133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24134fi 24135echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 24136echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 24137 if test $ac_cv_have_decl__snprintf = yes; then 24138 gt_value=1 24139 else 24140 gt_value=0 24141 fi 24142 24143cat >>confdefs.h <<_ACEOF 24144#define HAVE_DECL__SNPRINTF $gt_value 24145_ACEOF 24146 24147 24148 24149 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 24150echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 24151if test "${ac_cv_have_decl__snwprintf+set}" = set; then 24152 echo $ECHO_N "(cached) $ECHO_C" >&6 24153else 24154 cat >conftest.$ac_ext <<_ACEOF 24155/* confdefs.h. */ 24156_ACEOF 24157cat confdefs.h >>conftest.$ac_ext 24158cat >>conftest.$ac_ext <<_ACEOF 24159/* end confdefs.h. */ 24160#include <stdio.h> 24161int 24162main () 24163{ 24164 24165#ifndef _snwprintf 24166 char *p = (char *) _snwprintf; 24167#endif 24168 24169 ; 24170 return 0; 24171} 24172_ACEOF 24173rm -f conftest.$ac_objext 24174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24175 (eval $ac_compile) 2>conftest.er1 24176 ac_status=$? 24177 grep -v '^ *+' conftest.er1 >conftest.err 24178 rm -f conftest.er1 24179 cat conftest.err >&5 24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24181 (exit $ac_status); } && 24182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24184 (eval $ac_try) 2>&5 24185 ac_status=$? 24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24187 (exit $ac_status); }; } && 24188 { ac_try='test -s conftest.$ac_objext' 24189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24190 (eval $ac_try) 2>&5 24191 ac_status=$? 24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24193 (exit $ac_status); }; }; then 24194 ac_cv_have_decl__snwprintf=yes 24195else 24196 echo "$as_me: failed program was:" >&5 24197sed 's/^/| /' conftest.$ac_ext >&5 24198 24199ac_cv_have_decl__snwprintf=no 24200fi 24201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24202fi 24203echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 24204echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 24205 if test $ac_cv_have_decl__snwprintf = yes; then 24206 gt_value=1 24207 else 24208 gt_value=0 24209 fi 24210 24211cat >>confdefs.h <<_ACEOF 24212#define HAVE_DECL__SNWPRINTF $gt_value 24213_ACEOF 24214 24215 24216 24217 24218 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 24219echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 24220if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 24221 echo $ECHO_N "(cached) $ECHO_C" >&6 24222else 24223 cat >conftest.$ac_ext <<_ACEOF 24224/* confdefs.h. */ 24225_ACEOF 24226cat confdefs.h >>conftest.$ac_ext 24227cat >>conftest.$ac_ext <<_ACEOF 24228/* end confdefs.h. */ 24229#include <stdio.h> 24230int 24231main () 24232{ 24233 24234#ifndef feof_unlocked 24235 char *p = (char *) feof_unlocked; 24236#endif 24237 24238 ; 24239 return 0; 24240} 24241_ACEOF 24242rm -f conftest.$ac_objext 24243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24244 (eval $ac_compile) 2>conftest.er1 24245 ac_status=$? 24246 grep -v '^ *+' conftest.er1 >conftest.err 24247 rm -f conftest.er1 24248 cat conftest.err >&5 24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24250 (exit $ac_status); } && 24251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24253 (eval $ac_try) 2>&5 24254 ac_status=$? 24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24256 (exit $ac_status); }; } && 24257 { ac_try='test -s conftest.$ac_objext' 24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24259 (eval $ac_try) 2>&5 24260 ac_status=$? 24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24262 (exit $ac_status); }; }; then 24263 ac_cv_have_decl_feof_unlocked=yes 24264else 24265 echo "$as_me: failed program was:" >&5 24266sed 's/^/| /' conftest.$ac_ext >&5 24267 24268ac_cv_have_decl_feof_unlocked=no 24269fi 24270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24271fi 24272echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 24273echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 24274 if test $ac_cv_have_decl_feof_unlocked = yes; then 24275 gt_value=1 24276 else 24277 gt_value=0 24278 fi 24279 24280cat >>confdefs.h <<_ACEOF 24281#define HAVE_DECL_FEOF_UNLOCKED $gt_value 24282_ACEOF 24283 24284 24285 24286 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 24287echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 24288if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 24289 echo $ECHO_N "(cached) $ECHO_C" >&6 24290else 24291 cat >conftest.$ac_ext <<_ACEOF 24292/* confdefs.h. */ 24293_ACEOF 24294cat confdefs.h >>conftest.$ac_ext 24295cat >>conftest.$ac_ext <<_ACEOF 24296/* end confdefs.h. */ 24297#include <stdio.h> 24298int 24299main () 24300{ 24301 24302#ifndef fgets_unlocked 24303 char *p = (char *) fgets_unlocked; 24304#endif 24305 24306 ; 24307 return 0; 24308} 24309_ACEOF 24310rm -f conftest.$ac_objext 24311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24312 (eval $ac_compile) 2>conftest.er1 24313 ac_status=$? 24314 grep -v '^ *+' conftest.er1 >conftest.err 24315 rm -f conftest.er1 24316 cat conftest.err >&5 24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24318 (exit $ac_status); } && 24319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24321 (eval $ac_try) 2>&5 24322 ac_status=$? 24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24324 (exit $ac_status); }; } && 24325 { ac_try='test -s conftest.$ac_objext' 24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24327 (eval $ac_try) 2>&5 24328 ac_status=$? 24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24330 (exit $ac_status); }; }; then 24331 ac_cv_have_decl_fgets_unlocked=yes 24332else 24333 echo "$as_me: failed program was:" >&5 24334sed 's/^/| /' conftest.$ac_ext >&5 24335 24336ac_cv_have_decl_fgets_unlocked=no 24337fi 24338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24339fi 24340echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 24341echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 24342 if test $ac_cv_have_decl_fgets_unlocked = yes; then 24343 gt_value=1 24344 else 24345 gt_value=0 24346 fi 24347 24348cat >>confdefs.h <<_ACEOF 24349#define HAVE_DECL_FGETS_UNLOCKED $gt_value 24350_ACEOF 24351 24352 24353 24354 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 24355echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 24356if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 24357 echo $ECHO_N "(cached) $ECHO_C" >&6 24358else 24359 cat >conftest.$ac_ext <<_ACEOF 24360/* confdefs.h. */ 24361_ACEOF 24362cat confdefs.h >>conftest.$ac_ext 24363cat >>conftest.$ac_ext <<_ACEOF 24364/* end confdefs.h. */ 24365#include <stdio.h> 24366int 24367main () 24368{ 24369 24370#ifndef getc_unlocked 24371 char *p = (char *) getc_unlocked; 24372#endif 24373 24374 ; 24375 return 0; 24376} 24377_ACEOF 24378rm -f conftest.$ac_objext 24379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24380 (eval $ac_compile) 2>conftest.er1 24381 ac_status=$? 24382 grep -v '^ *+' conftest.er1 >conftest.err 24383 rm -f conftest.er1 24384 cat conftest.err >&5 24385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24386 (exit $ac_status); } && 24387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24389 (eval $ac_try) 2>&5 24390 ac_status=$? 24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24392 (exit $ac_status); }; } && 24393 { ac_try='test -s conftest.$ac_objext' 24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24395 (eval $ac_try) 2>&5 24396 ac_status=$? 24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24398 (exit $ac_status); }; }; then 24399 ac_cv_have_decl_getc_unlocked=yes 24400else 24401 echo "$as_me: failed program was:" >&5 24402sed 's/^/| /' conftest.$ac_ext >&5 24403 24404ac_cv_have_decl_getc_unlocked=no 24405fi 24406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24407fi 24408echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 24409echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 24410 if test $ac_cv_have_decl_getc_unlocked = yes; then 24411 gt_value=1 24412 else 24413 gt_value=0 24414 fi 24415 24416cat >>confdefs.h <<_ACEOF 24417#define HAVE_DECL_GETC_UNLOCKED $gt_value 24418_ACEOF 24419 24420 24421 24422 case $gt_cv_func_printf_posix in 24423 *yes) HAVE_POSIX_PRINTF=1 ;; 24424 *) HAVE_POSIX_PRINTF=0 ;; 24425 esac 24426 24427 if test "$ac_cv_func_asprintf" = yes; then 24428 HAVE_ASPRINTF=1 24429 else 24430 HAVE_ASPRINTF=0 24431 fi 24432 24433 if test "$ac_cv_func_snprintf" = yes; then 24434 HAVE_SNPRINTF=1 24435 else 24436 HAVE_SNPRINTF=0 24437 fi 24438 24439 if test "$ac_cv_func_wprintf" = yes; then 24440 HAVE_WPRINTF=1 24441 else 24442 HAVE_WPRINTF=0 24443 fi 24444 24445 24446 24447 24448 24449 24450 24451 am_save_CPPFLAGS="$CPPFLAGS" 24452 24453 for element in $INCICONV; do 24454 haveit= 24455 for x in $CPPFLAGS; do 24456 24457 acl_save_prefix="$prefix" 24458 prefix="$acl_final_prefix" 24459 acl_save_exec_prefix="$exec_prefix" 24460 exec_prefix="$acl_final_exec_prefix" 24461 eval x=\"$x\" 24462 exec_prefix="$acl_save_exec_prefix" 24463 prefix="$acl_save_prefix" 24464 24465 if test "X$x" = "X$element"; then 24466 haveit=yes 24467 break 24468 fi 24469 done 24470 if test -z "$haveit"; then 24471 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 24472 fi 24473 done 24474 24475 24476 echo "$as_me:$LINENO: checking for iconv" >&5 24477echo $ECHO_N "checking for iconv... $ECHO_C" >&6 24478if test "${am_cv_func_iconv+set}" = set; then 24479 echo $ECHO_N "(cached) $ECHO_C" >&6 24480else 24481 24482 am_cv_func_iconv="no, consider installing GNU libiconv" 24483 am_cv_lib_iconv=no 24484 cat >conftest.$ac_ext <<_ACEOF 24485/* confdefs.h. */ 24486_ACEOF 24487cat confdefs.h >>conftest.$ac_ext 24488cat >>conftest.$ac_ext <<_ACEOF 24489/* end confdefs.h. */ 24490#include <stdlib.h> 24491#include <iconv.h> 24492int 24493main () 24494{ 24495iconv_t cd = iconv_open("",""); 24496 iconv(cd,NULL,NULL,NULL,NULL); 24497 iconv_close(cd); 24498 ; 24499 return 0; 24500} 24501_ACEOF 24502rm -f conftest.$ac_objext conftest$ac_exeext 24503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24504 (eval $ac_link) 2>conftest.er1 24505 ac_status=$? 24506 grep -v '^ *+' conftest.er1 >conftest.err 24507 rm -f conftest.er1 24508 cat conftest.err >&5 24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24510 (exit $ac_status); } && 24511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24513 (eval $ac_try) 2>&5 24514 ac_status=$? 24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24516 (exit $ac_status); }; } && 24517 { ac_try='test -s conftest$ac_exeext' 24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24519 (eval $ac_try) 2>&5 24520 ac_status=$? 24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24522 (exit $ac_status); }; }; then 24523 am_cv_func_iconv=yes 24524else 24525 echo "$as_me: failed program was:" >&5 24526sed 's/^/| /' conftest.$ac_ext >&5 24527 24528fi 24529rm -f conftest.err conftest.$ac_objext \ 24530 conftest$ac_exeext conftest.$ac_ext 24531 if test "$am_cv_func_iconv" != yes; then 24532 am_save_LIBS="$LIBS" 24533 LIBS="$LIBS $LIBICONV" 24534 cat >conftest.$ac_ext <<_ACEOF 24535/* confdefs.h. */ 24536_ACEOF 24537cat confdefs.h >>conftest.$ac_ext 24538cat >>conftest.$ac_ext <<_ACEOF 24539/* end confdefs.h. */ 24540#include <stdlib.h> 24541#include <iconv.h> 24542int 24543main () 24544{ 24545iconv_t cd = iconv_open("",""); 24546 iconv(cd,NULL,NULL,NULL,NULL); 24547 iconv_close(cd); 24548 ; 24549 return 0; 24550} 24551_ACEOF 24552rm -f conftest.$ac_objext conftest$ac_exeext 24553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24554 (eval $ac_link) 2>conftest.er1 24555 ac_status=$? 24556 grep -v '^ *+' conftest.er1 >conftest.err 24557 rm -f conftest.er1 24558 cat conftest.err >&5 24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24560 (exit $ac_status); } && 24561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24563 (eval $ac_try) 2>&5 24564 ac_status=$? 24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24566 (exit $ac_status); }; } && 24567 { ac_try='test -s conftest$ac_exeext' 24568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24569 (eval $ac_try) 2>&5 24570 ac_status=$? 24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24572 (exit $ac_status); }; }; then 24573 am_cv_lib_iconv=yes 24574 am_cv_func_iconv=yes 24575else 24576 echo "$as_me: failed program was:" >&5 24577sed 's/^/| /' conftest.$ac_ext >&5 24578 24579fi 24580rm -f conftest.err conftest.$ac_objext \ 24581 conftest$ac_exeext conftest.$ac_ext 24582 LIBS="$am_save_LIBS" 24583 fi 24584 24585fi 24586echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 24587echo "${ECHO_T}$am_cv_func_iconv" >&6 24588 if test "$am_cv_func_iconv" = yes; then 24589 24590cat >>confdefs.h <<\_ACEOF 24591#define HAVE_ICONV 1 24592_ACEOF 24593 24594 fi 24595 if test "$am_cv_lib_iconv" = yes; then 24596 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 24597echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 24598 echo "$as_me:$LINENO: result: $LIBICONV" >&5 24599echo "${ECHO_T}$LIBICONV" >&6 24600 else 24601 CPPFLAGS="$am_save_CPPFLAGS" 24602 LIBICONV= 24603 LTLIBICONV= 24604 fi 24605 24606 24607 24608 if test "$am_cv_func_iconv" = yes; then 24609 echo "$as_me:$LINENO: checking for iconv declaration" >&5 24610echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 24611 if test "${am_cv_proto_iconv+set}" = set; then 24612 echo $ECHO_N "(cached) $ECHO_C" >&6 24613else 24614 24615 cat >conftest.$ac_ext <<_ACEOF 24616/* confdefs.h. */ 24617_ACEOF 24618cat confdefs.h >>conftest.$ac_ext 24619cat >>conftest.$ac_ext <<_ACEOF 24620/* end confdefs.h. */ 24621 24622#include <stdlib.h> 24623#include <iconv.h> 24624extern 24625#ifdef __cplusplus 24626"C" 24627#endif 24628#if defined(__STDC__) || defined(__cplusplus) 24629size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 24630#else 24631size_t iconv(); 24632#endif 24633 24634int 24635main () 24636{ 24637 24638 ; 24639 return 0; 24640} 24641_ACEOF 24642rm -f conftest.$ac_objext 24643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24644 (eval $ac_compile) 2>conftest.er1 24645 ac_status=$? 24646 grep -v '^ *+' conftest.er1 >conftest.err 24647 rm -f conftest.er1 24648 cat conftest.err >&5 24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24650 (exit $ac_status); } && 24651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24653 (eval $ac_try) 2>&5 24654 ac_status=$? 24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24656 (exit $ac_status); }; } && 24657 { ac_try='test -s conftest.$ac_objext' 24658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24659 (eval $ac_try) 2>&5 24660 ac_status=$? 24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24662 (exit $ac_status); }; }; then 24663 am_cv_proto_iconv_arg1="" 24664else 24665 echo "$as_me: failed program was:" >&5 24666sed 's/^/| /' conftest.$ac_ext >&5 24667 24668am_cv_proto_iconv_arg1="const" 24669fi 24670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24671 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 24672fi 24673 24674 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 24675 echo "$as_me:$LINENO: result: ${ac_t:- 24676 }$am_cv_proto_iconv" >&5 24677echo "${ECHO_T}${ac_t:- 24678 }$am_cv_proto_iconv" >&6 24679 24680cat >>confdefs.h <<_ACEOF 24681#define ICONV_CONST $am_cv_proto_iconv_arg1 24682_ACEOF 24683 24684 fi 24685 24686 24687 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 24688echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 24689if test "${am_cv_langinfo_codeset+set}" = set; then 24690 echo $ECHO_N "(cached) $ECHO_C" >&6 24691else 24692 cat >conftest.$ac_ext <<_ACEOF 24693/* confdefs.h. */ 24694_ACEOF 24695cat confdefs.h >>conftest.$ac_ext 24696cat >>conftest.$ac_ext <<_ACEOF 24697/* end confdefs.h. */ 24698#include <langinfo.h> 24699int 24700main () 24701{ 24702char* cs = nl_langinfo(CODESET); 24703 ; 24704 return 0; 24705} 24706_ACEOF 24707rm -f conftest.$ac_objext conftest$ac_exeext 24708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24709 (eval $ac_link) 2>conftest.er1 24710 ac_status=$? 24711 grep -v '^ *+' conftest.er1 >conftest.err 24712 rm -f conftest.er1 24713 cat conftest.err >&5 24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24715 (exit $ac_status); } && 24716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24718 (eval $ac_try) 2>&5 24719 ac_status=$? 24720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24721 (exit $ac_status); }; } && 24722 { ac_try='test -s conftest$ac_exeext' 24723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24724 (eval $ac_try) 2>&5 24725 ac_status=$? 24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24727 (exit $ac_status); }; }; then 24728 am_cv_langinfo_codeset=yes 24729else 24730 echo "$as_me: failed program was:" >&5 24731sed 's/^/| /' conftest.$ac_ext >&5 24732 24733am_cv_langinfo_codeset=no 24734fi 24735rm -f conftest.err conftest.$ac_objext \ 24736 conftest$ac_exeext conftest.$ac_ext 24737 24738fi 24739echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 24740echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 24741 if test $am_cv_langinfo_codeset = yes; then 24742 24743cat >>confdefs.h <<\_ACEOF 24744#define HAVE_LANGINFO_CODESET 1 24745_ACEOF 24746 24747 fi 24748 24749 if test $ac_cv_header_locale_h = yes; then 24750 24751 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 24752echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 24753if test "${am_cv_val_LC_MESSAGES+set}" = set; then 24754 echo $ECHO_N "(cached) $ECHO_C" >&6 24755else 24756 cat >conftest.$ac_ext <<_ACEOF 24757/* confdefs.h. */ 24758_ACEOF 24759cat confdefs.h >>conftest.$ac_ext 24760cat >>conftest.$ac_ext <<_ACEOF 24761/* end confdefs.h. */ 24762#include <locale.h> 24763int 24764main () 24765{ 24766return LC_MESSAGES 24767 ; 24768 return 0; 24769} 24770_ACEOF 24771rm -f conftest.$ac_objext conftest$ac_exeext 24772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24773 (eval $ac_link) 2>conftest.er1 24774 ac_status=$? 24775 grep -v '^ *+' conftest.er1 >conftest.err 24776 rm -f conftest.er1 24777 cat conftest.err >&5 24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24779 (exit $ac_status); } && 24780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24782 (eval $ac_try) 2>&5 24783 ac_status=$? 24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24785 (exit $ac_status); }; } && 24786 { ac_try='test -s conftest$ac_exeext' 24787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24788 (eval $ac_try) 2>&5 24789 ac_status=$? 24790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24791 (exit $ac_status); }; }; then 24792 am_cv_val_LC_MESSAGES=yes 24793else 24794 echo "$as_me: failed program was:" >&5 24795sed 's/^/| /' conftest.$ac_ext >&5 24796 24797am_cv_val_LC_MESSAGES=no 24798fi 24799rm -f conftest.err conftest.$ac_objext \ 24800 conftest$ac_exeext conftest.$ac_ext 24801fi 24802echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 24803echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 24804 if test $am_cv_val_LC_MESSAGES = yes; then 24805 24806cat >>confdefs.h <<\_ACEOF 24807#define HAVE_LC_MESSAGES 1 24808_ACEOF 24809 24810 fi 24811 24812 fi 24813 24814 for ac_prog in bison 24815do 24816 # Extract the first word of "$ac_prog", so it can be a program name with args. 24817set dummy $ac_prog; ac_word=$2 24818echo "$as_me:$LINENO: checking for $ac_word" >&5 24819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24820if test "${ac_cv_prog_INTLBISON+set}" = set; then 24821 echo $ECHO_N "(cached) $ECHO_C" >&6 24822else 24823 if test -n "$INTLBISON"; then 24824 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 24825else 24826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24827for as_dir in $PATH 24828do 24829 IFS=$as_save_IFS 24830 test -z "$as_dir" && as_dir=. 24831 for ac_exec_ext in '' $ac_executable_extensions; do 24832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24833 ac_cv_prog_INTLBISON="$ac_prog" 24834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 24835 break 2 24836 fi 24837done 24838done 24839 24840fi 24841fi 24842INTLBISON=$ac_cv_prog_INTLBISON 24843if test -n "$INTLBISON"; then 24844 echo "$as_me:$LINENO: result: $INTLBISON" >&5 24845echo "${ECHO_T}$INTLBISON" >&6 24846else 24847 echo "$as_me:$LINENO: result: no" >&5 24848echo "${ECHO_T}no" >&6 24849fi 24850 24851 test -n "$INTLBISON" && break 24852done 24853 24854 if test -z "$INTLBISON"; then 24855 ac_verc_fail=yes 24856 else 24857 echo "$as_me:$LINENO: checking version of bison" >&5 24858echo $ECHO_N "checking version of bison... $ECHO_C" >&6 24859 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 24860 case $ac_prog_version in 24861 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 24862 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 24863 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 24864 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 24865 esac 24866 echo "$as_me:$LINENO: result: $ac_prog_version" >&5 24867echo "${ECHO_T}$ac_prog_version" >&6 24868 fi 24869 if test $ac_verc_fail = yes; then 24870 INTLBISON=: 24871 fi 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 24889echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 24890 # Check whether --enable-nls or --disable-nls was given. 24891if test "${enable_nls+set}" = set; then 24892 enableval="$enable_nls" 24893 USE_NLS=$enableval 24894else 24895 USE_NLS=yes 24896fi; 24897 echo "$as_me:$LINENO: result: $USE_NLS" >&5 24898echo "${ECHO_T}$USE_NLS" >&6 24899 24900 24901 24902 24903 BUILD_INCLUDED_LIBINTL=no 24904 USE_INCLUDED_LIBINTL=no 24905 24906 LIBINTL= 24907 LTLIBINTL= 24908 POSUB= 24909 24910 if test "$USE_NLS" = "yes"; then 24911 gt_use_preinstalled_gnugettext=no 24912 24913 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 24914echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 24915 24916# Check whether --with-included-gettext or --without-included-gettext was given. 24917if test "${with_included_gettext+set}" = set; then 24918 withval="$with_included_gettext" 24919 nls_cv_force_use_gnu_gettext=$withval 24920else 24921 nls_cv_force_use_gnu_gettext=no 24922fi; 24923 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 24924echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 24925 24926 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 24927 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 24928 24929 24930 24931 24932 24933 24934 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 24935echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 24936if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 24937 echo $ECHO_N "(cached) $ECHO_C" >&6 24938else 24939 cat >conftest.$ac_ext <<_ACEOF 24940/* confdefs.h. */ 24941_ACEOF 24942cat confdefs.h >>conftest.$ac_ext 24943cat >>conftest.$ac_ext <<_ACEOF 24944/* end confdefs.h. */ 24945#include <libintl.h> 24946extern int _nl_msg_cat_cntr; 24947extern int *_nl_domain_bindings; 24948int 24949main () 24950{ 24951bindtextdomain ("", ""); 24952return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 24953 ; 24954 return 0; 24955} 24956_ACEOF 24957rm -f conftest.$ac_objext conftest$ac_exeext 24958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24959 (eval $ac_link) 2>conftest.er1 24960 ac_status=$? 24961 grep -v '^ *+' conftest.er1 >conftest.err 24962 rm -f conftest.er1 24963 cat conftest.err >&5 24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24965 (exit $ac_status); } && 24966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 24967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24968 (eval $ac_try) 2>&5 24969 ac_status=$? 24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24971 (exit $ac_status); }; } && 24972 { ac_try='test -s conftest$ac_exeext' 24973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24974 (eval $ac_try) 2>&5 24975 ac_status=$? 24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24977 (exit $ac_status); }; }; then 24978 gt_cv_func_gnugettext1_libc=yes 24979else 24980 echo "$as_me: failed program was:" >&5 24981sed 's/^/| /' conftest.$ac_ext >&5 24982 24983gt_cv_func_gnugettext1_libc=no 24984fi 24985rm -f conftest.err conftest.$ac_objext \ 24986 conftest$ac_exeext conftest.$ac_ext 24987fi 24988echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 24989echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 24990 24991 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 24992 24993 24994 24995 use_additional=yes 24996 24997 acl_save_prefix="$prefix" 24998 prefix="$acl_final_prefix" 24999 acl_save_exec_prefix="$exec_prefix" 25000 exec_prefix="$acl_final_exec_prefix" 25001 25002 eval additional_includedir=\"$includedir\" 25003 eval additional_libdir=\"$libdir\" 25004 25005 exec_prefix="$acl_save_exec_prefix" 25006 prefix="$acl_save_prefix" 25007 25008 25009# Check whether --with-libintl-prefix or --without-libintl-prefix was given. 25010if test "${with_libintl_prefix+set}" = set; then 25011 withval="$with_libintl_prefix" 25012 25013 if test "X$withval" = "Xno"; then 25014 use_additional=no 25015 else 25016 if test "X$withval" = "X"; then 25017 25018 acl_save_prefix="$prefix" 25019 prefix="$acl_final_prefix" 25020 acl_save_exec_prefix="$exec_prefix" 25021 exec_prefix="$acl_final_exec_prefix" 25022 25023 eval additional_includedir=\"$includedir\" 25024 eval additional_libdir=\"$libdir\" 25025 25026 exec_prefix="$acl_save_exec_prefix" 25027 prefix="$acl_save_prefix" 25028 25029 else 25030 additional_includedir="$withval/include" 25031 additional_libdir="$withval/lib" 25032 fi 25033 fi 25034 25035fi; 25036 LIBINTL= 25037 LTLIBINTL= 25038 INCINTL= 25039 rpathdirs= 25040 ltrpathdirs= 25041 names_already_handled= 25042 names_next_round='intl ' 25043 while test -n "$names_next_round"; do 25044 names_this_round="$names_next_round" 25045 names_next_round= 25046 for name in $names_this_round; do 25047 already_handled= 25048 for n in $names_already_handled; do 25049 if test "$n" = "$name"; then 25050 already_handled=yes 25051 break 25052 fi 25053 done 25054 if test -z "$already_handled"; then 25055 names_already_handled="$names_already_handled $name" 25056 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 25057 eval value=\"\$HAVE_LIB$uppername\" 25058 if test -n "$value"; then 25059 if test "$value" = yes; then 25060 eval value=\"\$LIB$uppername\" 25061 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 25062 eval value=\"\$LTLIB$uppername\" 25063 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 25064 else 25065 : 25066 fi 25067 else 25068 found_dir= 25069 found_la= 25070 found_so= 25071 found_a= 25072 if test $use_additional = yes; then 25073 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 25074 found_dir="$additional_libdir" 25075 found_so="$additional_libdir/lib$name.$shlibext" 25076 if test -f "$additional_libdir/lib$name.la"; then 25077 found_la="$additional_libdir/lib$name.la" 25078 fi 25079 else 25080 if test -f "$additional_libdir/lib$name.$libext"; then 25081 found_dir="$additional_libdir" 25082 found_a="$additional_libdir/lib$name.$libext" 25083 if test -f "$additional_libdir/lib$name.la"; then 25084 found_la="$additional_libdir/lib$name.la" 25085 fi 25086 fi 25087 fi 25088 fi 25089 if test "X$found_dir" = "X"; then 25090 for x in $LDFLAGS $LTLIBINTL; do 25091 25092 acl_save_prefix="$prefix" 25093 prefix="$acl_final_prefix" 25094 acl_save_exec_prefix="$exec_prefix" 25095 exec_prefix="$acl_final_exec_prefix" 25096 eval x=\"$x\" 25097 exec_prefix="$acl_save_exec_prefix" 25098 prefix="$acl_save_prefix" 25099 25100 case "$x" in 25101 -L*) 25102 dir=`echo "X$x" | sed -e 's/^X-L//'` 25103 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 25104 found_dir="$dir" 25105 found_so="$dir/lib$name.$shlibext" 25106 if test -f "$dir/lib$name.la"; then 25107 found_la="$dir/lib$name.la" 25108 fi 25109 else 25110 if test -f "$dir/lib$name.$libext"; then 25111 found_dir="$dir" 25112 found_a="$dir/lib$name.$libext" 25113 if test -f "$dir/lib$name.la"; then 25114 found_la="$dir/lib$name.la" 25115 fi 25116 fi 25117 fi 25118 ;; 25119 esac 25120 if test "X$found_dir" != "X"; then 25121 break 25122 fi 25123 done 25124 fi 25125 if test "X$found_dir" != "X"; then 25126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 25127 if test "X$found_so" != "X"; then 25128 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 25129 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 25130 else 25131 haveit= 25132 for x in $ltrpathdirs; do 25133 if test "X$x" = "X$found_dir"; then 25134 haveit=yes 25135 break 25136 fi 25137 done 25138 if test -z "$haveit"; then 25139 ltrpathdirs="$ltrpathdirs $found_dir" 25140 fi 25141 if test "$hardcode_direct" = yes; then 25142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 25143 else 25144 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 25145 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 25146 haveit= 25147 for x in $rpathdirs; do 25148 if test "X$x" = "X$found_dir"; then 25149 haveit=yes 25150 break 25151 fi 25152 done 25153 if test -z "$haveit"; then 25154 rpathdirs="$rpathdirs $found_dir" 25155 fi 25156 else 25157 haveit= 25158 for x in $LDFLAGS $LIBINTL; do 25159 25160 acl_save_prefix="$prefix" 25161 prefix="$acl_final_prefix" 25162 acl_save_exec_prefix="$exec_prefix" 25163 exec_prefix="$acl_final_exec_prefix" 25164 eval x=\"$x\" 25165 exec_prefix="$acl_save_exec_prefix" 25166 prefix="$acl_save_prefix" 25167 25168 if test "X$x" = "X-L$found_dir"; then 25169 haveit=yes 25170 break 25171 fi 25172 done 25173 if test -z "$haveit"; then 25174 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 25175 fi 25176 if test "$hardcode_minus_L" != no; then 25177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 25178 else 25179 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 25180 fi 25181 fi 25182 fi 25183 fi 25184 else 25185 if test "X$found_a" != "X"; then 25186 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 25187 else 25188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 25189 fi 25190 fi 25191 additional_includedir= 25192 case "$found_dir" in 25193 */lib | */lib/) 25194 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 25195 additional_includedir="$basedir/include" 25196 ;; 25197 esac 25198 if test "X$additional_includedir" != "X"; then 25199 if test "X$additional_includedir" != "X/usr/include"; then 25200 haveit= 25201 if test "X$additional_includedir" = "X/usr/local/include"; then 25202 if test -n "$GCC"; then 25203 case $host_os in 25204 linux*) haveit=yes;; 25205 esac 25206 fi 25207 fi 25208 if test -z "$haveit"; then 25209 for x in $CPPFLAGS $INCINTL; do 25210 25211 acl_save_prefix="$prefix" 25212 prefix="$acl_final_prefix" 25213 acl_save_exec_prefix="$exec_prefix" 25214 exec_prefix="$acl_final_exec_prefix" 25215 eval x=\"$x\" 25216 exec_prefix="$acl_save_exec_prefix" 25217 prefix="$acl_save_prefix" 25218 25219 if test "X$x" = "X-I$additional_includedir"; then 25220 haveit=yes 25221 break 25222 fi 25223 done 25224 if test -z "$haveit"; then 25225 if test -d "$additional_includedir"; then 25226 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 25227 fi 25228 fi 25229 fi 25230 fi 25231 fi 25232 if test -n "$found_la"; then 25233 save_libdir="$libdir" 25234 case "$found_la" in 25235 */* | *\\*) . "$found_la" ;; 25236 *) . "./$found_la" ;; 25237 esac 25238 libdir="$save_libdir" 25239 for dep in $dependency_libs; do 25240 case "$dep" in 25241 -L*) 25242 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 25243 if test "X$additional_libdir" != "X/usr/lib"; then 25244 haveit= 25245 if test "X$additional_libdir" = "X/usr/local/lib"; then 25246 if test -n "$GCC"; then 25247 case $host_os in 25248 linux*) haveit=yes;; 25249 esac 25250 fi 25251 fi 25252 if test -z "$haveit"; then 25253 haveit= 25254 for x in $LDFLAGS $LIBINTL; do 25255 25256 acl_save_prefix="$prefix" 25257 prefix="$acl_final_prefix" 25258 acl_save_exec_prefix="$exec_prefix" 25259 exec_prefix="$acl_final_exec_prefix" 25260 eval x=\"$x\" 25261 exec_prefix="$acl_save_exec_prefix" 25262 prefix="$acl_save_prefix" 25263 25264 if test "X$x" = "X-L$additional_libdir"; then 25265 haveit=yes 25266 break 25267 fi 25268 done 25269 if test -z "$haveit"; then 25270 if test -d "$additional_libdir"; then 25271 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 25272 fi 25273 fi 25274 haveit= 25275 for x in $LDFLAGS $LTLIBINTL; do 25276 25277 acl_save_prefix="$prefix" 25278 prefix="$acl_final_prefix" 25279 acl_save_exec_prefix="$exec_prefix" 25280 exec_prefix="$acl_final_exec_prefix" 25281 eval x=\"$x\" 25282 exec_prefix="$acl_save_exec_prefix" 25283 prefix="$acl_save_prefix" 25284 25285 if test "X$x" = "X-L$additional_libdir"; then 25286 haveit=yes 25287 break 25288 fi 25289 done 25290 if test -z "$haveit"; then 25291 if test -d "$additional_libdir"; then 25292 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 25293 fi 25294 fi 25295 fi 25296 fi 25297 ;; 25298 -R*) 25299 dir=`echo "X$dep" | sed -e 's/^X-R//'` 25300 if test "$enable_rpath" != no; then 25301 haveit= 25302 for x in $rpathdirs; do 25303 if test "X$x" = "X$dir"; then 25304 haveit=yes 25305 break 25306 fi 25307 done 25308 if test -z "$haveit"; then 25309 rpathdirs="$rpathdirs $dir" 25310 fi 25311 haveit= 25312 for x in $ltrpathdirs; do 25313 if test "X$x" = "X$dir"; then 25314 haveit=yes 25315 break 25316 fi 25317 done 25318 if test -z "$haveit"; then 25319 ltrpathdirs="$ltrpathdirs $dir" 25320 fi 25321 fi 25322 ;; 25323 -l*) 25324 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 25325 ;; 25326 *.la) 25327 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 25328 ;; 25329 *) 25330 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 25331 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 25332 ;; 25333 esac 25334 done 25335 fi 25336 else 25337 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 25338 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 25339 fi 25340 fi 25341 fi 25342 done 25343 done 25344 if test "X$rpathdirs" != "X"; then 25345 if test -n "$hardcode_libdir_separator"; then 25346 alldirs= 25347 for found_dir in $rpathdirs; do 25348 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 25349 done 25350 acl_save_libdir="$libdir" 25351 libdir="$alldirs" 25352 eval flag=\"$hardcode_libdir_flag_spec\" 25353 libdir="$acl_save_libdir" 25354 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 25355 else 25356 for found_dir in $rpathdirs; do 25357 acl_save_libdir="$libdir" 25358 libdir="$found_dir" 25359 eval flag=\"$hardcode_libdir_flag_spec\" 25360 libdir="$acl_save_libdir" 25361 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 25362 done 25363 fi 25364 fi 25365 if test "X$ltrpathdirs" != "X"; then 25366 for found_dir in $ltrpathdirs; do 25367 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 25368 done 25369 fi 25370 25371 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 25372echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 25373if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 25374 echo $ECHO_N "(cached) $ECHO_C" >&6 25375else 25376 gt_save_CPPFLAGS="$CPPFLAGS" 25377 CPPFLAGS="$CPPFLAGS $INCINTL" 25378 gt_save_LIBS="$LIBS" 25379 LIBS="$LIBS $LIBINTL" 25380 cat >conftest.$ac_ext <<_ACEOF 25381/* confdefs.h. */ 25382_ACEOF 25383cat confdefs.h >>conftest.$ac_ext 25384cat >>conftest.$ac_ext <<_ACEOF 25385/* end confdefs.h. */ 25386#include <libintl.h> 25387extern int _nl_msg_cat_cntr; 25388extern 25389#ifdef __cplusplus 25390"C" 25391#endif 25392const char *_nl_expand_alias (); 25393int 25394main () 25395{ 25396bindtextdomain ("", ""); 25397return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 25398 ; 25399 return 0; 25400} 25401_ACEOF 25402rm -f conftest.$ac_objext conftest$ac_exeext 25403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25404 (eval $ac_link) 2>conftest.er1 25405 ac_status=$? 25406 grep -v '^ *+' conftest.er1 >conftest.err 25407 rm -f conftest.er1 25408 cat conftest.err >&5 25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25410 (exit $ac_status); } && 25411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25413 (eval $ac_try) 2>&5 25414 ac_status=$? 25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25416 (exit $ac_status); }; } && 25417 { ac_try='test -s conftest$ac_exeext' 25418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25419 (eval $ac_try) 2>&5 25420 ac_status=$? 25421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25422 (exit $ac_status); }; }; then 25423 gt_cv_func_gnugettext1_libintl=yes 25424else 25425 echo "$as_me: failed program was:" >&5 25426sed 's/^/| /' conftest.$ac_ext >&5 25427 25428gt_cv_func_gnugettext1_libintl=no 25429fi 25430rm -f conftest.err conftest.$ac_objext \ 25431 conftest$ac_exeext conftest.$ac_ext 25432 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 25433 LIBS="$LIBS $LIBICONV" 25434 cat >conftest.$ac_ext <<_ACEOF 25435/* confdefs.h. */ 25436_ACEOF 25437cat confdefs.h >>conftest.$ac_ext 25438cat >>conftest.$ac_ext <<_ACEOF 25439/* end confdefs.h. */ 25440#include <libintl.h> 25441extern int _nl_msg_cat_cntr; 25442extern 25443#ifdef __cplusplus 25444"C" 25445#endif 25446const char *_nl_expand_alias (); 25447int 25448main () 25449{ 25450bindtextdomain ("", ""); 25451return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 25452 ; 25453 return 0; 25454} 25455_ACEOF 25456rm -f conftest.$ac_objext conftest$ac_exeext 25457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25458 (eval $ac_link) 2>conftest.er1 25459 ac_status=$? 25460 grep -v '^ *+' conftest.er1 >conftest.err 25461 rm -f conftest.er1 25462 cat conftest.err >&5 25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25464 (exit $ac_status); } && 25465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 25466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25467 (eval $ac_try) 2>&5 25468 ac_status=$? 25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25470 (exit $ac_status); }; } && 25471 { ac_try='test -s conftest$ac_exeext' 25472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25473 (eval $ac_try) 2>&5 25474 ac_status=$? 25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25476 (exit $ac_status); }; }; then 25477 LIBINTL="$LIBINTL $LIBICONV" 25478 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 25479 gt_cv_func_gnugettext1_libintl=yes 25480 25481else 25482 echo "$as_me: failed program was:" >&5 25483sed 's/^/| /' conftest.$ac_ext >&5 25484 25485fi 25486rm -f conftest.err conftest.$ac_objext \ 25487 conftest$ac_exeext conftest.$ac_ext 25488 fi 25489 CPPFLAGS="$gt_save_CPPFLAGS" 25490 LIBS="$gt_save_LIBS" 25491fi 25492echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 25493echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 25494 fi 25495 25496 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 25497 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 25498 && test "$PACKAGE" != gettext-runtime \ 25499 && test "$PACKAGE" != gettext-tools; }; then 25500 gt_use_preinstalled_gnugettext=yes 25501 else 25502 LIBINTL= 25503 LTLIBINTL= 25504 INCINTL= 25505 fi 25506 25507 25508 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 25509 nls_cv_use_gnu_gettext=yes 25510 fi 25511 fi 25512 25513 if test "$nls_cv_use_gnu_gettext" = "yes"; then 25514 BUILD_INCLUDED_LIBINTL=yes 25515 USE_INCLUDED_LIBINTL=yes 25516 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 25517 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 25518 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 25519 fi 25520 25521 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 25522 || test "$nls_cv_use_gnu_gettext" = "yes"; then 25523 CATOBJEXT=.gmo 25524 fi 25525 25526 25527 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 25528 || test "$nls_cv_use_gnu_gettext" = "yes"; then 25529 25530cat >>confdefs.h <<\_ACEOF 25531#define ENABLE_NLS 1 25532_ACEOF 25533 25534 else 25535 USE_NLS=no 25536 fi 25537 fi 25538 25539 echo "$as_me:$LINENO: checking whether to use NLS" >&5 25540echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 25541 echo "$as_me:$LINENO: result: $USE_NLS" >&5 25542echo "${ECHO_T}$USE_NLS" >&6 25543 if test "$USE_NLS" = "yes"; then 25544 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 25545echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 25546 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 25547 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 25548 gt_source="external libintl" 25549 else 25550 gt_source="libc" 25551 fi 25552 else 25553 gt_source="included intl directory" 25554 fi 25555 echo "$as_me:$LINENO: result: $gt_source" >&5 25556echo "${ECHO_T}$gt_source" >&6 25557 fi 25558 25559 if test "$USE_NLS" = "yes"; then 25560 25561 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 25562 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 25563 echo "$as_me:$LINENO: checking how to link with libintl" >&5 25564echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 25565 echo "$as_me:$LINENO: result: $LIBINTL" >&5 25566echo "${ECHO_T}$LIBINTL" >&6 25567 25568 for element in $INCINTL; do 25569 haveit= 25570 for x in $CPPFLAGS; do 25571 25572 acl_save_prefix="$prefix" 25573 prefix="$acl_final_prefix" 25574 acl_save_exec_prefix="$exec_prefix" 25575 exec_prefix="$acl_final_exec_prefix" 25576 eval x=\"$x\" 25577 exec_prefix="$acl_save_exec_prefix" 25578 prefix="$acl_save_prefix" 25579 25580 if test "X$x" = "X$element"; then 25581 haveit=yes 25582 break 25583 fi 25584 done 25585 if test -z "$haveit"; then 25586 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 25587 fi 25588 done 25589 25590 fi 25591 25592 25593cat >>confdefs.h <<\_ACEOF 25594#define HAVE_GETTEXT 1 25595_ACEOF 25596 25597 25598cat >>confdefs.h <<\_ACEOF 25599#define HAVE_DCGETTEXT 1 25600_ACEOF 25601 25602 fi 25603 25604 POSUB=po 25605 fi 25606 25607 25608 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 25609 BUILD_INCLUDED_LIBINTL=yes 25610 fi 25611 25612 25613 25614 25615 25616 nls_cv_header_intl= 25617 nls_cv_header_libgt= 25618 25619 DATADIRNAME=share 25620 25621 25622 INSTOBJEXT=.mo 25623 25624 25625 GENCAT=gencat 25626 25627 25628 if test "$USE_INCLUDED_LIBINTL" = yes; then 25629 INTLOBJS="\$(GETTOBJS)" 25630 fi 25631 25632 25633 INTL_LIBTOOL_SUFFIX_PREFIX= 25634 25635 25636 25637 INTLLIBS="$LIBINTL" 25638 25639 25640 25641 25642 25643 25644 25645 25646 succeeded=no 25647 25648 if test -z "$PKG_CONFIG"; then 25649 # Extract the first word of "pkg-config", so it can be a program name with args. 25650set dummy pkg-config; ac_word=$2 25651echo "$as_me:$LINENO: checking for $ac_word" >&5 25652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25653if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 25654 echo $ECHO_N "(cached) $ECHO_C" >&6 25655else 25656 case $PKG_CONFIG in 25657 [\\/]* | ?:[\\/]*) 25658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 25659 ;; 25660 *) 25661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25662for as_dir in $PATH 25663do 25664 IFS=$as_save_IFS 25665 test -z "$as_dir" && as_dir=. 25666 for ac_exec_ext in '' $ac_executable_extensions; do 25667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 25669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25670 break 2 25671 fi 25672done 25673done 25674 25675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 25676 ;; 25677esac 25678fi 25679PKG_CONFIG=$ac_cv_path_PKG_CONFIG 25680 25681if test -n "$PKG_CONFIG"; then 25682 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 25683echo "${ECHO_T}$PKG_CONFIG" >&6 25684else 25685 echo "$as_me:$LINENO: result: no" >&5 25686echo "${ECHO_T}no" >&6 25687fi 25688 25689 fi 25690 25691 if test "$PKG_CONFIG" = "no" ; then 25692 echo "*** The pkg-config script could not be found. Make sure it is" 25693 echo "*** in your path, or set the PKG_CONFIG environment variable" 25694 echo "*** to the full path to pkg-config." 25695 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 25696 else 25697 PKG_CONFIG_MIN_VERSION=0.9.0 25698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 25699 echo "$as_me:$LINENO: checking for gtk+-2.0" >&5 25700echo $ECHO_N "checking for gtk+-2.0... $ECHO_C" >&6 25701 25702 if $PKG_CONFIG --exists "gtk+-2.0" ; then 25703 echo "$as_me:$LINENO: result: yes" >&5 25704echo "${ECHO_T}yes" >&6 25705 succeeded=yes 25706 25707 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 25708echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6 25709 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0"` 25710 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 25711echo "${ECHO_T}$GTK_CFLAGS" >&6 25712 25713 echo "$as_me:$LINENO: checking GTK_LIBS" >&5 25714echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6 25715 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0"` 25716 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 25717echo "${ECHO_T}$GTK_LIBS" >&6 25718 else 25719 GTK_CFLAGS="" 25720 GTK_LIBS="" 25721 ## If we have a custom action on failure, don't print errors, but 25722 ## do set a variable so people can do so. 25723 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"` 25724 echo $GTK_PKG_ERRORS 25725 fi 25726 25727 25728 25729 else 25730 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 25731 echo "*** See http://www.freedesktop.org/software/pkgconfig" 25732 fi 25733 fi 25734 25735 if test $succeeded = yes; then 25736 : 25737 else 25738 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 25739echo "$as_me: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} 25740 { (exit 1); exit 1; }; } 25741 fi 25742 25743 25744 25745 25746# Check for XRes, from xrestop's configure.ac 25747# =========================================== 25748 25749 succeeded=no 25750 25751 if test -z "$PKG_CONFIG"; then 25752 # Extract the first word of "pkg-config", so it can be a program name with args. 25753set dummy pkg-config; ac_word=$2 25754echo "$as_me:$LINENO: checking for $ac_word" >&5 25755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25756if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 25757 echo $ECHO_N "(cached) $ECHO_C" >&6 25758else 25759 case $PKG_CONFIG in 25760 [\\/]* | ?:[\\/]*) 25761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 25762 ;; 25763 *) 25764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25765for as_dir in $PATH 25766do 25767 IFS=$as_save_IFS 25768 test -z "$as_dir" && as_dir=. 25769 for ac_exec_ext in '' $ac_executable_extensions; do 25770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 25772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25773 break 2 25774 fi 25775done 25776done 25777 25778 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 25779 ;; 25780esac 25781fi 25782PKG_CONFIG=$ac_cv_path_PKG_CONFIG 25783 25784if test -n "$PKG_CONFIG"; then 25785 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 25786echo "${ECHO_T}$PKG_CONFIG" >&6 25787else 25788 echo "$as_me:$LINENO: result: no" >&5 25789echo "${ECHO_T}no" >&6 25790fi 25791 25792 fi 25793 25794 if test "$PKG_CONFIG" = "no" ; then 25795 echo "*** The pkg-config script could not be found. Make sure it is" 25796 echo "*** in your path, or set the PKG_CONFIG environment variable" 25797 echo "*** to the full path to pkg-config." 25798 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 25799 else 25800 PKG_CONFIG_MIN_VERSION=0.9.0 25801 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 25802 echo "$as_me:$LINENO: checking for x11" >&5 25803echo $ECHO_N "checking for x11... $ECHO_C" >&6 25804 25805 if $PKG_CONFIG --exists "x11" ; then 25806 echo "$as_me:$LINENO: result: yes" >&5 25807echo "${ECHO_T}yes" >&6 25808 succeeded=yes 25809 25810 echo "$as_me:$LINENO: checking X11_CFLAGS" >&5 25811echo $ECHO_N "checking X11_CFLAGS... $ECHO_C" >&6 25812 X11_CFLAGS=`$PKG_CONFIG --cflags "x11"` 25813 echo "$as_me:$LINENO: result: $X11_CFLAGS" >&5 25814echo "${ECHO_T}$X11_CFLAGS" >&6 25815 25816 echo "$as_me:$LINENO: checking X11_LIBS" >&5 25817echo $ECHO_N "checking X11_LIBS... $ECHO_C" >&6 25818 X11_LIBS=`$PKG_CONFIG --libs "x11"` 25819 echo "$as_me:$LINENO: result: $X11_LIBS" >&5 25820echo "${ECHO_T}$X11_LIBS" >&6 25821 else 25822 X11_CFLAGS="" 25823 X11_LIBS="" 25824 ## If we have a custom action on failure, don't print errors, but 25825 ## do set a variable so people can do so. 25826 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"` 25827 25828 fi 25829 25830 25831 25832 else 25833 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 25834 echo "*** See http://www.freedesktop.org/software/pkgconfig" 25835 fi 25836 fi 25837 25838 if test $succeeded = yes; then 25839 have_libx11pc="yes" 25840 else 25841 have_libx11pc="no" 25842 fi 25843 25844if test $have_libx11pc = yes; then 25845 25846 succeeded=no 25847 25848 if test -z "$PKG_CONFIG"; then 25849 # Extract the first word of "pkg-config", so it can be a program name with args. 25850set dummy pkg-config; ac_word=$2 25851echo "$as_me:$LINENO: checking for $ac_word" >&5 25852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25853if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 25854 echo $ECHO_N "(cached) $ECHO_C" >&6 25855else 25856 case $PKG_CONFIG in 25857 [\\/]* | ?:[\\/]*) 25858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 25859 ;; 25860 *) 25861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25862for as_dir in $PATH 25863do 25864 IFS=$as_save_IFS 25865 test -z "$as_dir" && as_dir=. 25866 for ac_exec_ext in '' $ac_executable_extensions; do 25867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 25869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 25870 break 2 25871 fi 25872done 25873done 25874 25875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 25876 ;; 25877esac 25878fi 25879PKG_CONFIG=$ac_cv_path_PKG_CONFIG 25880 25881if test -n "$PKG_CONFIG"; then 25882 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 25883echo "${ECHO_T}$PKG_CONFIG" >&6 25884else 25885 echo "$as_me:$LINENO: result: no" >&5 25886echo "${ECHO_T}no" >&6 25887fi 25888 25889 fi 25890 25891 if test "$PKG_CONFIG" = "no" ; then 25892 echo "*** The pkg-config script could not be found. Make sure it is" 25893 echo "*** in your path, or set the PKG_CONFIG environment variable" 25894 echo "*** to the full path to pkg-config." 25895 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 25896 else 25897 PKG_CONFIG_MIN_VERSION=0.9.0 25898 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 25899 echo "$as_me:$LINENO: checking for x11 xres xext" >&5 25900echo $ECHO_N "checking for x11 xres xext... $ECHO_C" >&6 25901 25902 if $PKG_CONFIG --exists "x11 xres xext" ; then 25903 echo "$as_me:$LINENO: result: yes" >&5 25904echo "${ECHO_T}yes" >&6 25905 succeeded=yes 25906 25907 echo "$as_me:$LINENO: checking XLIBS_CFLAGS" >&5 25908echo $ECHO_N "checking XLIBS_CFLAGS... $ECHO_C" >&6 25909 XLIBS_CFLAGS=`$PKG_CONFIG --cflags "x11 xres xext"` 25910 echo "$as_me:$LINENO: result: $XLIBS_CFLAGS" >&5 25911echo "${ECHO_T}$XLIBS_CFLAGS" >&6 25912 25913 echo "$as_me:$LINENO: checking XLIBS_LIBS" >&5 25914echo $ECHO_N "checking XLIBS_LIBS... $ECHO_C" >&6 25915 XLIBS_LIBS=`$PKG_CONFIG --libs "x11 xres xext"` 25916 echo "$as_me:$LINENO: result: $XLIBS_LIBS" >&5 25917echo "${ECHO_T}$XLIBS_LIBS" >&6 25918 else 25919 XLIBS_CFLAGS="" 25920 XLIBS_LIBS="" 25921 ## If we have a custom action on failure, don't print errors, but 25922 ## do set a variable so people can do so. 25923 XLIBS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xres xext"` 25924 echo $XLIBS_PKG_ERRORS 25925 fi 25926 25927 25928 25929 else 25930 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 25931 echo "*** See http://www.freedesktop.org/software/pkgconfig" 25932 fi 25933 fi 25934 25935 if test $succeeded = yes; then 25936 : 25937 else 25938 { { echo "$as_me:$LINENO: error: Library requirements (x11 xres xext) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 25939echo "$as_me: error: Library requirements (x11 xres xext) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} 25940 { (exit 1); exit 1; }; } 25941 fi 25942 25943else 25944 25945if test "x$ac_path_x_has_been_run" != xyes; then 25946 echo "$as_me:$LINENO: checking for X" >&5 25947echo $ECHO_N "checking for X... $ECHO_C" >&6 25948 25949ac_path_x_has_been_run=yes 25950 25951# Check whether --with-x or --without-x was given. 25952if test "${with_x+set}" = set; then 25953 withval="$with_x" 25954 25955fi; 25956# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 25957if test "x$with_x" = xno; then 25958 # The user explicitly disabled X. 25959 have_x=disabled 25960else 25961 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 25962 # Both variables are already set. 25963 have_x=yes 25964 else 25965 if test "${ac_cv_have_x+set}" = set; then 25966 echo $ECHO_N "(cached) $ECHO_C" >&6 25967else 25968 # One or both of the vars are not set, and there is no cached value. 25969ac_x_includes=no ac_x_libraries=no 25970rm -fr conftest.dir 25971if mkdir conftest.dir; then 25972 cd conftest.dir 25973 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 25974 cat >Imakefile <<'_ACEOF' 25975acfindx: 25976 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 25977_ACEOF 25978 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 25979 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 25980 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 25981 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 25982 for ac_extension in a so sl; do 25983 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 25984 test -f $ac_im_libdir/libX11.$ac_extension; then 25985 ac_im_usrlibdir=$ac_im_libdir; break 25986 fi 25987 done 25988 # Screen out bogus values from the imake configuration. They are 25989 # bogus both because they are the default anyway, and because 25990 # using them would break gcc on systems where it needs fixed includes. 25991 case $ac_im_incroot in 25992 /usr/include) ;; 25993 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 25994 esac 25995 case $ac_im_usrlibdir in 25996 /usr/lib | /lib) ;; 25997 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 25998 esac 25999 fi 26000 cd .. 26001 rm -fr conftest.dir 26002fi 26003 26004# Standard set of common directories for X headers. 26005# Check X11 before X11Rn because it is often a symlink to the current release. 26006ac_x_header_dirs=' 26007/usr/X11/include 26008/usr/X11R6/include 26009/usr/X11R5/include 26010/usr/X11R4/include 26011 26012/usr/include/X11 26013/usr/include/X11R6 26014/usr/include/X11R5 26015/usr/include/X11R4 26016 26017/usr/local/X11/include 26018/usr/local/X11R6/include 26019/usr/local/X11R5/include 26020/usr/local/X11R4/include 26021 26022/usr/local/include/X11 26023/usr/local/include/X11R6 26024/usr/local/include/X11R5 26025/usr/local/include/X11R4 26026 26027/usr/X386/include 26028/usr/x386/include 26029/usr/XFree86/include/X11 26030 26031/usr/include 26032/usr/local/include 26033/usr/unsupported/include 26034/usr/athena/include 26035/usr/local/x11r5/include 26036/usr/lpp/Xamples/include 26037 26038/usr/openwin/include 26039/usr/openwin/share/include' 26040 26041if test "$ac_x_includes" = no; then 26042 # Guess where to find include files, by looking for a specified header file. 26043 # First, try using that file with no special directory specified. 26044 cat >conftest.$ac_ext <<_ACEOF 26045/* confdefs.h. */ 26046_ACEOF 26047cat confdefs.h >>conftest.$ac_ext 26048cat >>conftest.$ac_ext <<_ACEOF 26049/* end confdefs.h. */ 26050#include <X11/Intrinsic.h> 26051_ACEOF 26052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 26053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 26054 ac_status=$? 26055 grep -v '^ *+' conftest.er1 >conftest.err 26056 rm -f conftest.er1 26057 cat conftest.err >&5 26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26059 (exit $ac_status); } >/dev/null; then 26060 if test -s conftest.err; then 26061 ac_cpp_err=$ac_c_preproc_warn_flag 26062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 26063 else 26064 ac_cpp_err= 26065 fi 26066else 26067 ac_cpp_err=yes 26068fi 26069if test -z "$ac_cpp_err"; then 26070 # We can compile using X headers with no special include directory. 26071ac_x_includes= 26072else 26073 echo "$as_me: failed program was:" >&5 26074sed 's/^/| /' conftest.$ac_ext >&5 26075 26076 for ac_dir in $ac_x_header_dirs; do 26077 if test -r "$ac_dir/X11/Intrinsic.h"; then 26078 ac_x_includes=$ac_dir 26079 break 26080 fi 26081done 26082fi 26083rm -f conftest.err conftest.$ac_ext 26084fi # $ac_x_includes = no 26085 26086if test "$ac_x_libraries" = no; then 26087 # Check for the libraries. 26088 # See if we find them without any special options. 26089 # Don't add to $LIBS permanently. 26090 ac_save_LIBS=$LIBS 26091 LIBS="-lXt $LIBS" 26092 cat >conftest.$ac_ext <<_ACEOF 26093/* confdefs.h. */ 26094_ACEOF 26095cat confdefs.h >>conftest.$ac_ext 26096cat >>conftest.$ac_ext <<_ACEOF 26097/* end confdefs.h. */ 26098#include <X11/Intrinsic.h> 26099int 26100main () 26101{ 26102XtMalloc (0) 26103 ; 26104 return 0; 26105} 26106_ACEOF 26107rm -f conftest.$ac_objext conftest$ac_exeext 26108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26109 (eval $ac_link) 2>conftest.er1 26110 ac_status=$? 26111 grep -v '^ *+' conftest.er1 >conftest.err 26112 rm -f conftest.er1 26113 cat conftest.err >&5 26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26115 (exit $ac_status); } && 26116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26118 (eval $ac_try) 2>&5 26119 ac_status=$? 26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26121 (exit $ac_status); }; } && 26122 { ac_try='test -s conftest$ac_exeext' 26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26124 (eval $ac_try) 2>&5 26125 ac_status=$? 26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26127 (exit $ac_status); }; }; then 26128 LIBS=$ac_save_LIBS 26129# We can link X programs with no special library path. 26130ac_x_libraries= 26131else 26132 echo "$as_me: failed program was:" >&5 26133sed 's/^/| /' conftest.$ac_ext >&5 26134 26135LIBS=$ac_save_LIBS 26136for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 26137do 26138 # Don't even attempt the hair of trying to link an X program! 26139 for ac_extension in a so sl; do 26140 if test -r $ac_dir/libXt.$ac_extension; then 26141 ac_x_libraries=$ac_dir 26142 break 2 26143 fi 26144 done 26145done 26146fi 26147rm -f conftest.err conftest.$ac_objext \ 26148 conftest$ac_exeext conftest.$ac_ext 26149fi # $ac_x_libraries = no 26150 26151if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 26152 # Didn't find X anywhere. Cache the known absence of X. 26153 ac_cv_have_x="have_x=no" 26154else 26155 # Record where we found X for the cache. 26156 ac_cv_have_x="have_x=yes \ 26157 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 26158fi 26159fi 26160 26161 fi 26162 eval "$ac_cv_have_x" 26163fi # $with_x != no 26164 26165if test "$have_x" != yes; then 26166 echo "$as_me:$LINENO: result: $have_x" >&5 26167echo "${ECHO_T}$have_x" >&6 26168 no_x=yes 26169else 26170 # If each of the values was on the command line, it overrides each guess. 26171 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 26172 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 26173 # Update the cache value to reflect the command line values. 26174 ac_cv_have_x="have_x=yes \ 26175 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 26176 # It might be that x_includes is empty (headers are found in the 26177 # standard search path. Then output the corresponding message 26178 ac_out_x_includes=$x_includes 26179 test "x$x_includes" = x && ac_out_x_includes="in standard search path" 26180 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 26181echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 26182fi 26183 26184fi 26185if test "$no_x" = yes; then 26186 # Not all programs may use this symbol, but it does not hurt to define it. 26187 26188cat >>confdefs.h <<\_ACEOF 26189#define X_DISPLAY_MISSING 1 26190_ACEOF 26191 26192 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 26193else 26194 if test -n "$x_includes"; then 26195 X_CFLAGS="$X_CFLAGS -I$x_includes" 26196 fi 26197 26198 # It would also be nice to do this for all -L options, not just this one. 26199 if test -n "$x_libraries"; then 26200 X_LIBS="$X_LIBS -L$x_libraries" 26201 # For Solaris; some versions of Sun CC require a space after -R and 26202 # others require no space. Words are not sufficient . . . . 26203 case `(uname -sr) 2>/dev/null` in 26204 "SunOS 5"*) 26205 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 26206echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 26207 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 26208 cat >conftest.$ac_ext <<_ACEOF 26209/* confdefs.h. */ 26210_ACEOF 26211cat confdefs.h >>conftest.$ac_ext 26212cat >>conftest.$ac_ext <<_ACEOF 26213/* end confdefs.h. */ 26214 26215int 26216main () 26217{ 26218 26219 ; 26220 return 0; 26221} 26222_ACEOF 26223rm -f conftest.$ac_objext conftest$ac_exeext 26224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26225 (eval $ac_link) 2>conftest.er1 26226 ac_status=$? 26227 grep -v '^ *+' conftest.er1 >conftest.err 26228 rm -f conftest.er1 26229 cat conftest.err >&5 26230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26231 (exit $ac_status); } && 26232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26234 (eval $ac_try) 2>&5 26235 ac_status=$? 26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26237 (exit $ac_status); }; } && 26238 { ac_try='test -s conftest$ac_exeext' 26239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26240 (eval $ac_try) 2>&5 26241 ac_status=$? 26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26243 (exit $ac_status); }; }; then 26244 ac_R_nospace=yes 26245else 26246 echo "$as_me: failed program was:" >&5 26247sed 's/^/| /' conftest.$ac_ext >&5 26248 26249ac_R_nospace=no 26250fi 26251rm -f conftest.err conftest.$ac_objext \ 26252 conftest$ac_exeext conftest.$ac_ext 26253 if test $ac_R_nospace = yes; then 26254 echo "$as_me:$LINENO: result: no" >&5 26255echo "${ECHO_T}no" >&6 26256 X_LIBS="$X_LIBS -R$x_libraries" 26257 else 26258 LIBS="$ac_xsave_LIBS -R $x_libraries" 26259 cat >conftest.$ac_ext <<_ACEOF 26260/* confdefs.h. */ 26261_ACEOF 26262cat confdefs.h >>conftest.$ac_ext 26263cat >>conftest.$ac_ext <<_ACEOF 26264/* end confdefs.h. */ 26265 26266int 26267main () 26268{ 26269 26270 ; 26271 return 0; 26272} 26273_ACEOF 26274rm -f conftest.$ac_objext conftest$ac_exeext 26275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26276 (eval $ac_link) 2>conftest.er1 26277 ac_status=$? 26278 grep -v '^ *+' conftest.er1 >conftest.err 26279 rm -f conftest.er1 26280 cat conftest.err >&5 26281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26282 (exit $ac_status); } && 26283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26285 (eval $ac_try) 2>&5 26286 ac_status=$? 26287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26288 (exit $ac_status); }; } && 26289 { ac_try='test -s conftest$ac_exeext' 26290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26291 (eval $ac_try) 2>&5 26292 ac_status=$? 26293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26294 (exit $ac_status); }; }; then 26295 ac_R_space=yes 26296else 26297 echo "$as_me: failed program was:" >&5 26298sed 's/^/| /' conftest.$ac_ext >&5 26299 26300ac_R_space=no 26301fi 26302rm -f conftest.err conftest.$ac_objext \ 26303 conftest$ac_exeext conftest.$ac_ext 26304 if test $ac_R_space = yes; then 26305 echo "$as_me:$LINENO: result: yes" >&5 26306echo "${ECHO_T}yes" >&6 26307 X_LIBS="$X_LIBS -R $x_libraries" 26308 else 26309 echo "$as_me:$LINENO: result: neither works" >&5 26310echo "${ECHO_T}neither works" >&6 26311 fi 26312 fi 26313 LIBS=$ac_xsave_LIBS 26314 esac 26315 fi 26316 26317 # Check for system-dependent libraries X programs must link with. 26318 # Do this before checking for the system-independent R6 libraries 26319 # (-lICE), since we may need -lsocket or whatever for X linking. 26320 26321 if test "$ISC" = yes; then 26322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 26323 else 26324 # Martyn Johnson says this is needed for Ultrix, if the X 26325 # libraries were built with DECnet support. And Karl Berry says 26326 # the Alpha needs dnet_stub (dnet does not exist). 26327 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 26328 cat >conftest.$ac_ext <<_ACEOF 26329/* confdefs.h. */ 26330_ACEOF 26331cat confdefs.h >>conftest.$ac_ext 26332cat >>conftest.$ac_ext <<_ACEOF 26333/* end confdefs.h. */ 26334 26335/* Override any gcc2 internal prototype to avoid an error. */ 26336#ifdef __cplusplus 26337extern "C" 26338#endif 26339/* We use char because int might match the return type of a gcc2 26340 builtin and then its argument prototype would still apply. */ 26341char XOpenDisplay (); 26342int 26343main () 26344{ 26345XOpenDisplay (); 26346 ; 26347 return 0; 26348} 26349_ACEOF 26350rm -f conftest.$ac_objext conftest$ac_exeext 26351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26352 (eval $ac_link) 2>conftest.er1 26353 ac_status=$? 26354 grep -v '^ *+' conftest.er1 >conftest.err 26355 rm -f conftest.er1 26356 cat conftest.err >&5 26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26358 (exit $ac_status); } && 26359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26361 (eval $ac_try) 2>&5 26362 ac_status=$? 26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26364 (exit $ac_status); }; } && 26365 { ac_try='test -s conftest$ac_exeext' 26366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26367 (eval $ac_try) 2>&5 26368 ac_status=$? 26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26370 (exit $ac_status); }; }; then 26371 : 26372else 26373 echo "$as_me: failed program was:" >&5 26374sed 's/^/| /' conftest.$ac_ext >&5 26375 26376echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 26377echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 26378if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 26379 echo $ECHO_N "(cached) $ECHO_C" >&6 26380else 26381 ac_check_lib_save_LIBS=$LIBS 26382LIBS="-ldnet $LIBS" 26383cat >conftest.$ac_ext <<_ACEOF 26384/* confdefs.h. */ 26385_ACEOF 26386cat confdefs.h >>conftest.$ac_ext 26387cat >>conftest.$ac_ext <<_ACEOF 26388/* end confdefs.h. */ 26389 26390/* Override any gcc2 internal prototype to avoid an error. */ 26391#ifdef __cplusplus 26392extern "C" 26393#endif 26394/* We use char because int might match the return type of a gcc2 26395 builtin and then its argument prototype would still apply. */ 26396char dnet_ntoa (); 26397int 26398main () 26399{ 26400dnet_ntoa (); 26401 ; 26402 return 0; 26403} 26404_ACEOF 26405rm -f conftest.$ac_objext conftest$ac_exeext 26406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26407 (eval $ac_link) 2>conftest.er1 26408 ac_status=$? 26409 grep -v '^ *+' conftest.er1 >conftest.err 26410 rm -f conftest.er1 26411 cat conftest.err >&5 26412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26413 (exit $ac_status); } && 26414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26416 (eval $ac_try) 2>&5 26417 ac_status=$? 26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26419 (exit $ac_status); }; } && 26420 { ac_try='test -s conftest$ac_exeext' 26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26422 (eval $ac_try) 2>&5 26423 ac_status=$? 26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26425 (exit $ac_status); }; }; then 26426 ac_cv_lib_dnet_dnet_ntoa=yes 26427else 26428 echo "$as_me: failed program was:" >&5 26429sed 's/^/| /' conftest.$ac_ext >&5 26430 26431ac_cv_lib_dnet_dnet_ntoa=no 26432fi 26433rm -f conftest.err conftest.$ac_objext \ 26434 conftest$ac_exeext conftest.$ac_ext 26435LIBS=$ac_check_lib_save_LIBS 26436fi 26437echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 26438echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 26439if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 26440 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 26441fi 26442 26443 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 26444 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 26445echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 26446if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 26447 echo $ECHO_N "(cached) $ECHO_C" >&6 26448else 26449 ac_check_lib_save_LIBS=$LIBS 26450LIBS="-ldnet_stub $LIBS" 26451cat >conftest.$ac_ext <<_ACEOF 26452/* confdefs.h. */ 26453_ACEOF 26454cat confdefs.h >>conftest.$ac_ext 26455cat >>conftest.$ac_ext <<_ACEOF 26456/* end confdefs.h. */ 26457 26458/* Override any gcc2 internal prototype to avoid an error. */ 26459#ifdef __cplusplus 26460extern "C" 26461#endif 26462/* We use char because int might match the return type of a gcc2 26463 builtin and then its argument prototype would still apply. */ 26464char dnet_ntoa (); 26465int 26466main () 26467{ 26468dnet_ntoa (); 26469 ; 26470 return 0; 26471} 26472_ACEOF 26473rm -f conftest.$ac_objext conftest$ac_exeext 26474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26475 (eval $ac_link) 2>conftest.er1 26476 ac_status=$? 26477 grep -v '^ *+' conftest.er1 >conftest.err 26478 rm -f conftest.er1 26479 cat conftest.err >&5 26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26481 (exit $ac_status); } && 26482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26484 (eval $ac_try) 2>&5 26485 ac_status=$? 26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26487 (exit $ac_status); }; } && 26488 { ac_try='test -s conftest$ac_exeext' 26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26490 (eval $ac_try) 2>&5 26491 ac_status=$? 26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26493 (exit $ac_status); }; }; then 26494 ac_cv_lib_dnet_stub_dnet_ntoa=yes 26495else 26496 echo "$as_me: failed program was:" >&5 26497sed 's/^/| /' conftest.$ac_ext >&5 26498 26499ac_cv_lib_dnet_stub_dnet_ntoa=no 26500fi 26501rm -f conftest.err conftest.$ac_objext \ 26502 conftest$ac_exeext conftest.$ac_ext 26503LIBS=$ac_check_lib_save_LIBS 26504fi 26505echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 26506echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 26507if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 26508 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 26509fi 26510 26511 fi 26512fi 26513rm -f conftest.err conftest.$ac_objext \ 26514 conftest$ac_exeext conftest.$ac_ext 26515 LIBS="$ac_xsave_LIBS" 26516 26517 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 26518 # to get the SysV transport functions. 26519 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 26520 # needs -lnsl. 26521 # The nsl library prevents programs from opening the X display 26522 # on Irix 5.2, according to T.E. Dickey. 26523 # The functions gethostbyname, getservbyname, and inet_addr are 26524 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 26525 echo "$as_me:$LINENO: checking for gethostbyname" >&5 26526echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 26527if test "${ac_cv_func_gethostbyname+set}" = set; then 26528 echo $ECHO_N "(cached) $ECHO_C" >&6 26529else 26530 cat >conftest.$ac_ext <<_ACEOF 26531/* confdefs.h. */ 26532_ACEOF 26533cat confdefs.h >>conftest.$ac_ext 26534cat >>conftest.$ac_ext <<_ACEOF 26535/* end confdefs.h. */ 26536/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 26537 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26538#define gethostbyname innocuous_gethostbyname 26539 26540/* System header to define __stub macros and hopefully few prototypes, 26541 which can conflict with char gethostbyname (); below. 26542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26543 <limits.h> exists even on freestanding compilers. */ 26544 26545#ifdef __STDC__ 26546# include <limits.h> 26547#else 26548# include <assert.h> 26549#endif 26550 26551#undef gethostbyname 26552 26553/* Override any gcc2 internal prototype to avoid an error. */ 26554#ifdef __cplusplus 26555extern "C" 26556{ 26557#endif 26558/* We use char because int might match the return type of a gcc2 26559 builtin and then its argument prototype would still apply. */ 26560char gethostbyname (); 26561/* The GNU C library defines this for functions which it implements 26562 to always fail with ENOSYS. Some functions are actually named 26563 something starting with __ and the normal name is an alias. */ 26564#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 26565choke me 26566#else 26567char (*f) () = gethostbyname; 26568#endif 26569#ifdef __cplusplus 26570} 26571#endif 26572 26573int 26574main () 26575{ 26576return f != gethostbyname; 26577 ; 26578 return 0; 26579} 26580_ACEOF 26581rm -f conftest.$ac_objext conftest$ac_exeext 26582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26583 (eval $ac_link) 2>conftest.er1 26584 ac_status=$? 26585 grep -v '^ *+' conftest.er1 >conftest.err 26586 rm -f conftest.er1 26587 cat conftest.err >&5 26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26589 (exit $ac_status); } && 26590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26592 (eval $ac_try) 2>&5 26593 ac_status=$? 26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26595 (exit $ac_status); }; } && 26596 { ac_try='test -s conftest$ac_exeext' 26597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26598 (eval $ac_try) 2>&5 26599 ac_status=$? 26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26601 (exit $ac_status); }; }; then 26602 ac_cv_func_gethostbyname=yes 26603else 26604 echo "$as_me: failed program was:" >&5 26605sed 's/^/| /' conftest.$ac_ext >&5 26606 26607ac_cv_func_gethostbyname=no 26608fi 26609rm -f conftest.err conftest.$ac_objext \ 26610 conftest$ac_exeext conftest.$ac_ext 26611fi 26612echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 26613echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 26614 26615 if test $ac_cv_func_gethostbyname = no; then 26616 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 26617echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 26618if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 26619 echo $ECHO_N "(cached) $ECHO_C" >&6 26620else 26621 ac_check_lib_save_LIBS=$LIBS 26622LIBS="-lnsl $LIBS" 26623cat >conftest.$ac_ext <<_ACEOF 26624/* confdefs.h. */ 26625_ACEOF 26626cat confdefs.h >>conftest.$ac_ext 26627cat >>conftest.$ac_ext <<_ACEOF 26628/* end confdefs.h. */ 26629 26630/* Override any gcc2 internal prototype to avoid an error. */ 26631#ifdef __cplusplus 26632extern "C" 26633#endif 26634/* We use char because int might match the return type of a gcc2 26635 builtin and then its argument prototype would still apply. */ 26636char gethostbyname (); 26637int 26638main () 26639{ 26640gethostbyname (); 26641 ; 26642 return 0; 26643} 26644_ACEOF 26645rm -f conftest.$ac_objext conftest$ac_exeext 26646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26647 (eval $ac_link) 2>conftest.er1 26648 ac_status=$? 26649 grep -v '^ *+' conftest.er1 >conftest.err 26650 rm -f conftest.er1 26651 cat conftest.err >&5 26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26653 (exit $ac_status); } && 26654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26656 (eval $ac_try) 2>&5 26657 ac_status=$? 26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26659 (exit $ac_status); }; } && 26660 { ac_try='test -s conftest$ac_exeext' 26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26662 (eval $ac_try) 2>&5 26663 ac_status=$? 26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26665 (exit $ac_status); }; }; then 26666 ac_cv_lib_nsl_gethostbyname=yes 26667else 26668 echo "$as_me: failed program was:" >&5 26669sed 's/^/| /' conftest.$ac_ext >&5 26670 26671ac_cv_lib_nsl_gethostbyname=no 26672fi 26673rm -f conftest.err conftest.$ac_objext \ 26674 conftest$ac_exeext conftest.$ac_ext 26675LIBS=$ac_check_lib_save_LIBS 26676fi 26677echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 26678echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 26679if test $ac_cv_lib_nsl_gethostbyname = yes; then 26680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 26681fi 26682 26683 if test $ac_cv_lib_nsl_gethostbyname = no; then 26684 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 26685echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 26686if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 26687 echo $ECHO_N "(cached) $ECHO_C" >&6 26688else 26689 ac_check_lib_save_LIBS=$LIBS 26690LIBS="-lbsd $LIBS" 26691cat >conftest.$ac_ext <<_ACEOF 26692/* confdefs.h. */ 26693_ACEOF 26694cat confdefs.h >>conftest.$ac_ext 26695cat >>conftest.$ac_ext <<_ACEOF 26696/* end confdefs.h. */ 26697 26698/* Override any gcc2 internal prototype to avoid an error. */ 26699#ifdef __cplusplus 26700extern "C" 26701#endif 26702/* We use char because int might match the return type of a gcc2 26703 builtin and then its argument prototype would still apply. */ 26704char gethostbyname (); 26705int 26706main () 26707{ 26708gethostbyname (); 26709 ; 26710 return 0; 26711} 26712_ACEOF 26713rm -f conftest.$ac_objext conftest$ac_exeext 26714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26715 (eval $ac_link) 2>conftest.er1 26716 ac_status=$? 26717 grep -v '^ *+' conftest.er1 >conftest.err 26718 rm -f conftest.er1 26719 cat conftest.err >&5 26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26721 (exit $ac_status); } && 26722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26724 (eval $ac_try) 2>&5 26725 ac_status=$? 26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26727 (exit $ac_status); }; } && 26728 { ac_try='test -s conftest$ac_exeext' 26729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26730 (eval $ac_try) 2>&5 26731 ac_status=$? 26732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26733 (exit $ac_status); }; }; then 26734 ac_cv_lib_bsd_gethostbyname=yes 26735else 26736 echo "$as_me: failed program was:" >&5 26737sed 's/^/| /' conftest.$ac_ext >&5 26738 26739ac_cv_lib_bsd_gethostbyname=no 26740fi 26741rm -f conftest.err conftest.$ac_objext \ 26742 conftest$ac_exeext conftest.$ac_ext 26743LIBS=$ac_check_lib_save_LIBS 26744fi 26745echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 26746echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 26747if test $ac_cv_lib_bsd_gethostbyname = yes; then 26748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 26749fi 26750 26751 fi 26752 fi 26753 26754 # lieder@skyler.mavd.honeywell.com says without -lsocket, 26755 # socket/setsockopt and other routines are undefined under SCO ODT 26756 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 26757 # on later versions), says Simon Leinen: it contains gethostby* 26758 # variants that don't use the name server (or something). -lsocket 26759 # must be given before -lnsl if both are needed. We assume that 26760 # if connect needs -lnsl, so does gethostbyname. 26761 echo "$as_me:$LINENO: checking for connect" >&5 26762echo $ECHO_N "checking for connect... $ECHO_C" >&6 26763if test "${ac_cv_func_connect+set}" = set; then 26764 echo $ECHO_N "(cached) $ECHO_C" >&6 26765else 26766 cat >conftest.$ac_ext <<_ACEOF 26767/* confdefs.h. */ 26768_ACEOF 26769cat confdefs.h >>conftest.$ac_ext 26770cat >>conftest.$ac_ext <<_ACEOF 26771/* end confdefs.h. */ 26772/* Define connect to an innocuous variant, in case <limits.h> declares connect. 26773 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26774#define connect innocuous_connect 26775 26776/* System header to define __stub macros and hopefully few prototypes, 26777 which can conflict with char connect (); below. 26778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26779 <limits.h> exists even on freestanding compilers. */ 26780 26781#ifdef __STDC__ 26782# include <limits.h> 26783#else 26784# include <assert.h> 26785#endif 26786 26787#undef connect 26788 26789/* Override any gcc2 internal prototype to avoid an error. */ 26790#ifdef __cplusplus 26791extern "C" 26792{ 26793#endif 26794/* We use char because int might match the return type of a gcc2 26795 builtin and then its argument prototype would still apply. */ 26796char connect (); 26797/* The GNU C library defines this for functions which it implements 26798 to always fail with ENOSYS. Some functions are actually named 26799 something starting with __ and the normal name is an alias. */ 26800#if defined (__stub_connect) || defined (__stub___connect) 26801choke me 26802#else 26803char (*f) () = connect; 26804#endif 26805#ifdef __cplusplus 26806} 26807#endif 26808 26809int 26810main () 26811{ 26812return f != connect; 26813 ; 26814 return 0; 26815} 26816_ACEOF 26817rm -f conftest.$ac_objext conftest$ac_exeext 26818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26819 (eval $ac_link) 2>conftest.er1 26820 ac_status=$? 26821 grep -v '^ *+' conftest.er1 >conftest.err 26822 rm -f conftest.er1 26823 cat conftest.err >&5 26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26825 (exit $ac_status); } && 26826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26828 (eval $ac_try) 2>&5 26829 ac_status=$? 26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26831 (exit $ac_status); }; } && 26832 { ac_try='test -s conftest$ac_exeext' 26833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26834 (eval $ac_try) 2>&5 26835 ac_status=$? 26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26837 (exit $ac_status); }; }; then 26838 ac_cv_func_connect=yes 26839else 26840 echo "$as_me: failed program was:" >&5 26841sed 's/^/| /' conftest.$ac_ext >&5 26842 26843ac_cv_func_connect=no 26844fi 26845rm -f conftest.err conftest.$ac_objext \ 26846 conftest$ac_exeext conftest.$ac_ext 26847fi 26848echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 26849echo "${ECHO_T}$ac_cv_func_connect" >&6 26850 26851 if test $ac_cv_func_connect = no; then 26852 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 26853echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 26854if test "${ac_cv_lib_socket_connect+set}" = set; then 26855 echo $ECHO_N "(cached) $ECHO_C" >&6 26856else 26857 ac_check_lib_save_LIBS=$LIBS 26858LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 26859cat >conftest.$ac_ext <<_ACEOF 26860/* confdefs.h. */ 26861_ACEOF 26862cat confdefs.h >>conftest.$ac_ext 26863cat >>conftest.$ac_ext <<_ACEOF 26864/* end confdefs.h. */ 26865 26866/* Override any gcc2 internal prototype to avoid an error. */ 26867#ifdef __cplusplus 26868extern "C" 26869#endif 26870/* We use char because int might match the return type of a gcc2 26871 builtin and then its argument prototype would still apply. */ 26872char connect (); 26873int 26874main () 26875{ 26876connect (); 26877 ; 26878 return 0; 26879} 26880_ACEOF 26881rm -f conftest.$ac_objext conftest$ac_exeext 26882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26883 (eval $ac_link) 2>conftest.er1 26884 ac_status=$? 26885 grep -v '^ *+' conftest.er1 >conftest.err 26886 rm -f conftest.er1 26887 cat conftest.err >&5 26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26889 (exit $ac_status); } && 26890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26892 (eval $ac_try) 2>&5 26893 ac_status=$? 26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26895 (exit $ac_status); }; } && 26896 { ac_try='test -s conftest$ac_exeext' 26897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26898 (eval $ac_try) 2>&5 26899 ac_status=$? 26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26901 (exit $ac_status); }; }; then 26902 ac_cv_lib_socket_connect=yes 26903else 26904 echo "$as_me: failed program was:" >&5 26905sed 's/^/| /' conftest.$ac_ext >&5 26906 26907ac_cv_lib_socket_connect=no 26908fi 26909rm -f conftest.err conftest.$ac_objext \ 26910 conftest$ac_exeext conftest.$ac_ext 26911LIBS=$ac_check_lib_save_LIBS 26912fi 26913echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 26914echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 26915if test $ac_cv_lib_socket_connect = yes; then 26916 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 26917fi 26918 26919 fi 26920 26921 # Guillermo Gomez says -lposix is necessary on A/UX. 26922 echo "$as_me:$LINENO: checking for remove" >&5 26923echo $ECHO_N "checking for remove... $ECHO_C" >&6 26924if test "${ac_cv_func_remove+set}" = set; then 26925 echo $ECHO_N "(cached) $ECHO_C" >&6 26926else 26927 cat >conftest.$ac_ext <<_ACEOF 26928/* confdefs.h. */ 26929_ACEOF 26930cat confdefs.h >>conftest.$ac_ext 26931cat >>conftest.$ac_ext <<_ACEOF 26932/* end confdefs.h. */ 26933/* Define remove to an innocuous variant, in case <limits.h> declares remove. 26934 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26935#define remove innocuous_remove 26936 26937/* System header to define __stub macros and hopefully few prototypes, 26938 which can conflict with char remove (); below. 26939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26940 <limits.h> exists even on freestanding compilers. */ 26941 26942#ifdef __STDC__ 26943# include <limits.h> 26944#else 26945# include <assert.h> 26946#endif 26947 26948#undef remove 26949 26950/* Override any gcc2 internal prototype to avoid an error. */ 26951#ifdef __cplusplus 26952extern "C" 26953{ 26954#endif 26955/* We use char because int might match the return type of a gcc2 26956 builtin and then its argument prototype would still apply. */ 26957char remove (); 26958/* The GNU C library defines this for functions which it implements 26959 to always fail with ENOSYS. Some functions are actually named 26960 something starting with __ and the normal name is an alias. */ 26961#if defined (__stub_remove) || defined (__stub___remove) 26962choke me 26963#else 26964char (*f) () = remove; 26965#endif 26966#ifdef __cplusplus 26967} 26968#endif 26969 26970int 26971main () 26972{ 26973return f != remove; 26974 ; 26975 return 0; 26976} 26977_ACEOF 26978rm -f conftest.$ac_objext conftest$ac_exeext 26979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26980 (eval $ac_link) 2>conftest.er1 26981 ac_status=$? 26982 grep -v '^ *+' conftest.er1 >conftest.err 26983 rm -f conftest.er1 26984 cat conftest.err >&5 26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26986 (exit $ac_status); } && 26987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26989 (eval $ac_try) 2>&5 26990 ac_status=$? 26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26992 (exit $ac_status); }; } && 26993 { ac_try='test -s conftest$ac_exeext' 26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26995 (eval $ac_try) 2>&5 26996 ac_status=$? 26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26998 (exit $ac_status); }; }; then 26999 ac_cv_func_remove=yes 27000else 27001 echo "$as_me: failed program was:" >&5 27002sed 's/^/| /' conftest.$ac_ext >&5 27003 27004ac_cv_func_remove=no 27005fi 27006rm -f conftest.err conftest.$ac_objext \ 27007 conftest$ac_exeext conftest.$ac_ext 27008fi 27009echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 27010echo "${ECHO_T}$ac_cv_func_remove" >&6 27011 27012 if test $ac_cv_func_remove = no; then 27013 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 27014echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 27015if test "${ac_cv_lib_posix_remove+set}" = set; then 27016 echo $ECHO_N "(cached) $ECHO_C" >&6 27017else 27018 ac_check_lib_save_LIBS=$LIBS 27019LIBS="-lposix $LIBS" 27020cat >conftest.$ac_ext <<_ACEOF 27021/* confdefs.h. */ 27022_ACEOF 27023cat confdefs.h >>conftest.$ac_ext 27024cat >>conftest.$ac_ext <<_ACEOF 27025/* end confdefs.h. */ 27026 27027/* Override any gcc2 internal prototype to avoid an error. */ 27028#ifdef __cplusplus 27029extern "C" 27030#endif 27031/* We use char because int might match the return type of a gcc2 27032 builtin and then its argument prototype would still apply. */ 27033char remove (); 27034int 27035main () 27036{ 27037remove (); 27038 ; 27039 return 0; 27040} 27041_ACEOF 27042rm -f conftest.$ac_objext conftest$ac_exeext 27043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27044 (eval $ac_link) 2>conftest.er1 27045 ac_status=$? 27046 grep -v '^ *+' conftest.er1 >conftest.err 27047 rm -f conftest.er1 27048 cat conftest.err >&5 27049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27050 (exit $ac_status); } && 27051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 27052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27053 (eval $ac_try) 2>&5 27054 ac_status=$? 27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27056 (exit $ac_status); }; } && 27057 { ac_try='test -s conftest$ac_exeext' 27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27059 (eval $ac_try) 2>&5 27060 ac_status=$? 27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27062 (exit $ac_status); }; }; then 27063 ac_cv_lib_posix_remove=yes 27064else 27065 echo "$as_me: failed program was:" >&5 27066sed 's/^/| /' conftest.$ac_ext >&5 27067 27068ac_cv_lib_posix_remove=no 27069fi 27070rm -f conftest.err conftest.$ac_objext \ 27071 conftest$ac_exeext conftest.$ac_ext 27072LIBS=$ac_check_lib_save_LIBS 27073fi 27074echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 27075echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 27076if test $ac_cv_lib_posix_remove = yes; then 27077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 27078fi 27079 27080 fi 27081 27082 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 27083 echo "$as_me:$LINENO: checking for shmat" >&5 27084echo $ECHO_N "checking for shmat... $ECHO_C" >&6 27085if test "${ac_cv_func_shmat+set}" = set; then 27086 echo $ECHO_N "(cached) $ECHO_C" >&6 27087else 27088 cat >conftest.$ac_ext <<_ACEOF 27089/* confdefs.h. */ 27090_ACEOF 27091cat confdefs.h >>conftest.$ac_ext 27092cat >>conftest.$ac_ext <<_ACEOF 27093/* end confdefs.h. */ 27094/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 27095 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 27096#define shmat innocuous_shmat 27097 27098/* System header to define __stub macros and hopefully few prototypes, 27099 which can conflict with char shmat (); below. 27100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 27101 <limits.h> exists even on freestanding compilers. */ 27102 27103#ifdef __STDC__ 27104# include <limits.h> 27105#else 27106# include <assert.h> 27107#endif 27108 27109#undef shmat 27110 27111/* Override any gcc2 internal prototype to avoid an error. */ 27112#ifdef __cplusplus 27113extern "C" 27114{ 27115#endif 27116/* We use char because int might match the return type of a gcc2 27117 builtin and then its argument prototype would still apply. */ 27118char shmat (); 27119/* The GNU C library defines this for functions which it implements 27120 to always fail with ENOSYS. Some functions are actually named 27121 something starting with __ and the normal name is an alias. */ 27122#if defined (__stub_shmat) || defined (__stub___shmat) 27123choke me 27124#else 27125char (*f) () = shmat; 27126#endif 27127#ifdef __cplusplus 27128} 27129#endif 27130 27131int 27132main () 27133{ 27134return f != shmat; 27135 ; 27136 return 0; 27137} 27138_ACEOF 27139rm -f conftest.$ac_objext conftest$ac_exeext 27140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27141 (eval $ac_link) 2>conftest.er1 27142 ac_status=$? 27143 grep -v '^ *+' conftest.er1 >conftest.err 27144 rm -f conftest.er1 27145 cat conftest.err >&5 27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27147 (exit $ac_status); } && 27148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27150 (eval $ac_try) 2>&5 27151 ac_status=$? 27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27153 (exit $ac_status); }; } && 27154 { ac_try='test -s conftest$ac_exeext' 27155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27156 (eval $ac_try) 2>&5 27157 ac_status=$? 27158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27159 (exit $ac_status); }; }; then 27160 ac_cv_func_shmat=yes 27161else 27162 echo "$as_me: failed program was:" >&5 27163sed 's/^/| /' conftest.$ac_ext >&5 27164 27165ac_cv_func_shmat=no 27166fi 27167rm -f conftest.err conftest.$ac_objext \ 27168 conftest$ac_exeext conftest.$ac_ext 27169fi 27170echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 27171echo "${ECHO_T}$ac_cv_func_shmat" >&6 27172 27173 if test $ac_cv_func_shmat = no; then 27174 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 27175echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 27176if test "${ac_cv_lib_ipc_shmat+set}" = set; then 27177 echo $ECHO_N "(cached) $ECHO_C" >&6 27178else 27179 ac_check_lib_save_LIBS=$LIBS 27180LIBS="-lipc $LIBS" 27181cat >conftest.$ac_ext <<_ACEOF 27182/* confdefs.h. */ 27183_ACEOF 27184cat confdefs.h >>conftest.$ac_ext 27185cat >>conftest.$ac_ext <<_ACEOF 27186/* end confdefs.h. */ 27187 27188/* Override any gcc2 internal prototype to avoid an error. */ 27189#ifdef __cplusplus 27190extern "C" 27191#endif 27192/* We use char because int might match the return type of a gcc2 27193 builtin and then its argument prototype would still apply. */ 27194char shmat (); 27195int 27196main () 27197{ 27198shmat (); 27199 ; 27200 return 0; 27201} 27202_ACEOF 27203rm -f conftest.$ac_objext conftest$ac_exeext 27204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27205 (eval $ac_link) 2>conftest.er1 27206 ac_status=$? 27207 grep -v '^ *+' conftest.er1 >conftest.err 27208 rm -f conftest.er1 27209 cat conftest.err >&5 27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27211 (exit $ac_status); } && 27212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 27213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27214 (eval $ac_try) 2>&5 27215 ac_status=$? 27216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27217 (exit $ac_status); }; } && 27218 { ac_try='test -s conftest$ac_exeext' 27219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27220 (eval $ac_try) 2>&5 27221 ac_status=$? 27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27223 (exit $ac_status); }; }; then 27224 ac_cv_lib_ipc_shmat=yes 27225else 27226 echo "$as_me: failed program was:" >&5 27227sed 's/^/| /' conftest.$ac_ext >&5 27228 27229ac_cv_lib_ipc_shmat=no 27230fi 27231rm -f conftest.err conftest.$ac_objext \ 27232 conftest$ac_exeext conftest.$ac_ext 27233LIBS=$ac_check_lib_save_LIBS 27234fi 27235echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 27236echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 27237if test $ac_cv_lib_ipc_shmat = yes; then 27238 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 27239fi 27240 27241 fi 27242 fi 27243 27244 # Check for libraries that X11R6 Xt/Xaw programs need. 27245 ac_save_LDFLAGS=$LDFLAGS 27246 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 27247 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 27248 # check for ICE first), but we must link in the order -lSM -lICE or 27249 # we get undefined symbols. So assume we have SM if we have ICE. 27250 # These have to be linked with before -lX11, unlike the other 27251 # libraries we check for below, so use a different variable. 27252 # John Interrante, Karl Berry 27253 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 27254echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 27255if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 27256 echo $ECHO_N "(cached) $ECHO_C" >&6 27257else 27258 ac_check_lib_save_LIBS=$LIBS 27259LIBS="-lICE $X_EXTRA_LIBS $LIBS" 27260cat >conftest.$ac_ext <<_ACEOF 27261/* confdefs.h. */ 27262_ACEOF 27263cat confdefs.h >>conftest.$ac_ext 27264cat >>conftest.$ac_ext <<_ACEOF 27265/* end confdefs.h. */ 27266 27267/* Override any gcc2 internal prototype to avoid an error. */ 27268#ifdef __cplusplus 27269extern "C" 27270#endif 27271/* We use char because int might match the return type of a gcc2 27272 builtin and then its argument prototype would still apply. */ 27273char IceConnectionNumber (); 27274int 27275main () 27276{ 27277IceConnectionNumber (); 27278 ; 27279 return 0; 27280} 27281_ACEOF 27282rm -f conftest.$ac_objext conftest$ac_exeext 27283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27284 (eval $ac_link) 2>conftest.er1 27285 ac_status=$? 27286 grep -v '^ *+' conftest.er1 >conftest.err 27287 rm -f conftest.er1 27288 cat conftest.err >&5 27289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27290 (exit $ac_status); } && 27291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 27292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27293 (eval $ac_try) 2>&5 27294 ac_status=$? 27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27296 (exit $ac_status); }; } && 27297 { ac_try='test -s conftest$ac_exeext' 27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27299 (eval $ac_try) 2>&5 27300 ac_status=$? 27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27302 (exit $ac_status); }; }; then 27303 ac_cv_lib_ICE_IceConnectionNumber=yes 27304else 27305 echo "$as_me: failed program was:" >&5 27306sed 's/^/| /' conftest.$ac_ext >&5 27307 27308ac_cv_lib_ICE_IceConnectionNumber=no 27309fi 27310rm -f conftest.err conftest.$ac_objext \ 27311 conftest$ac_exeext conftest.$ac_ext 27312LIBS=$ac_check_lib_save_LIBS 27313fi 27314echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 27315echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 27316if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 27317 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 27318fi 27319 27320 LDFLAGS=$ac_save_LDFLAGS 27321 27322fi 27323 27324 27325 ALL_X_LIBS="$X_LIBS -lX11" 27326 27327 found_xres_lib=no 27328 echo "$as_me:$LINENO: checking for XResQueryClients in -lXRes" >&5 27329echo $ECHO_N "checking for XResQueryClients in -lXRes... $ECHO_C" >&6 27330if test "${ac_cv_lib_XRes_XResQueryClients+set}" = set; then 27331 echo $ECHO_N "(cached) $ECHO_C" >&6 27332else 27333 ac_check_lib_save_LIBS=$LIBS 27334LIBS="-lXRes -lXext $ALL_X_LIBS $LIBS" 27335cat >conftest.$ac_ext <<_ACEOF 27336/* confdefs.h. */ 27337_ACEOF 27338cat confdefs.h >>conftest.$ac_ext 27339cat >>conftest.$ac_ext <<_ACEOF 27340/* end confdefs.h. */ 27341 27342/* Override any gcc2 internal prototype to avoid an error. */ 27343#ifdef __cplusplus 27344extern "C" 27345#endif 27346/* We use char because int might match the return type of a gcc2 27347 builtin and then its argument prototype would still apply. */ 27348char XResQueryClients (); 27349int 27350main () 27351{ 27352XResQueryClients (); 27353 ; 27354 return 0; 27355} 27356_ACEOF 27357rm -f conftest.$ac_objext conftest$ac_exeext 27358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27359 (eval $ac_link) 2>conftest.er1 27360 ac_status=$? 27361 grep -v '^ *+' conftest.er1 >conftest.err 27362 rm -f conftest.er1 27363 cat conftest.err >&5 27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27365 (exit $ac_status); } && 27366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 27367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27368 (eval $ac_try) 2>&5 27369 ac_status=$? 27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27371 (exit $ac_status); }; } && 27372 { ac_try='test -s conftest$ac_exeext' 27373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27374 (eval $ac_try) 2>&5 27375 ac_status=$? 27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27377 (exit $ac_status); }; }; then 27378 ac_cv_lib_XRes_XResQueryClients=yes 27379else 27380 echo "$as_me: failed program was:" >&5 27381sed 's/^/| /' conftest.$ac_ext >&5 27382 27383ac_cv_lib_XRes_XResQueryClients=no 27384fi 27385rm -f conftest.err conftest.$ac_objext \ 27386 conftest$ac_exeext conftest.$ac_ext 27387LIBS=$ac_check_lib_save_LIBS 27388fi 27389echo "$as_me:$LINENO: result: $ac_cv_lib_XRes_XResQueryClients" >&5 27390echo "${ECHO_T}$ac_cv_lib_XRes_XResQueryClients" >&6 27391if test $ac_cv_lib_XRes_XResQueryClients = yes; then 27392 XRES_LIBS=-lXRes found_xres_lib=yes 27393fi 27394 27395 27396 if test "x$found_xres_lib" = "xno"; then 27397 # Try again, overriding defaults for certain platforms 27398 case `uname -sr` in 27399 "SunOS 5"*) 27400 # Solaris ships libXres in /usr/openwin/sfw/lib 27401 save_LDFLAGS=$LDFLAGS 27402 SOL_XRES_LDFLAGS="-L/usr/openwin/sfw/lib -R/usr/openwin/sfw/lib" 27403 LDFLAGS="$LDFLAGS $SOL_XRES_LDFLAGS" 27404 echo "$as_me:$LINENO: checking for XResQueryClientResources in -lXRes" >&5 27405echo $ECHO_N "checking for XResQueryClientResources in -lXRes... $ECHO_C" >&6 27406if test "${ac_cv_lib_XRes_XResQueryClientResources+set}" = set; then 27407 echo $ECHO_N "(cached) $ECHO_C" >&6 27408else 27409 ac_check_lib_save_LIBS=$LIBS 27410LIBS="-lXRes -lXext $ALL_X_LIBS $LIBS" 27411cat >conftest.$ac_ext <<_ACEOF 27412/* confdefs.h. */ 27413_ACEOF 27414cat confdefs.h >>conftest.$ac_ext 27415cat >>conftest.$ac_ext <<_ACEOF 27416/* end confdefs.h. */ 27417 27418/* Override any gcc2 internal prototype to avoid an error. */ 27419#ifdef __cplusplus 27420extern "C" 27421#endif 27422/* We use char because int might match the return type of a gcc2 27423 builtin and then its argument prototype would still apply. */ 27424char XResQueryClientResources (); 27425int 27426main () 27427{ 27428XResQueryClientResources (); 27429 ; 27430 return 0; 27431} 27432_ACEOF 27433rm -f conftest.$ac_objext conftest$ac_exeext 27434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 27435 (eval $ac_link) 2>conftest.er1 27436 ac_status=$? 27437 grep -v '^ *+' conftest.er1 >conftest.err 27438 rm -f conftest.er1 27439 cat conftest.err >&5 27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27441 (exit $ac_status); } && 27442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 27443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27444 (eval $ac_try) 2>&5 27445 ac_status=$? 27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27447 (exit $ac_status); }; } && 27448 { ac_try='test -s conftest$ac_exeext' 27449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27450 (eval $ac_try) 2>&5 27451 ac_status=$? 27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27453 (exit $ac_status); }; }; then 27454 ac_cv_lib_XRes_XResQueryClientResources=yes 27455else 27456 echo "$as_me: failed program was:" >&5 27457sed 's/^/| /' conftest.$ac_ext >&5 27458 27459ac_cv_lib_XRes_XResQueryClientResources=no 27460fi 27461rm -f conftest.err conftest.$ac_objext \ 27462 conftest$ac_exeext conftest.$ac_ext 27463LIBS=$ac_check_lib_save_LIBS 27464fi 27465echo "$as_me:$LINENO: result: $ac_cv_lib_XRes_XResQueryClientResources" >&5 27466echo "${ECHO_T}$ac_cv_lib_XRes_XResQueryClientResources" >&6 27467if test $ac_cv_lib_XRes_XResQueryClientResources = yes; then 27468 found_xres_lib=yes XRES_LIBS="$SOL_XRES_LDFLAGS -lXRes" 27469fi 27470 27471 LDFLAGS="$save_LDFLAGS" 27472 ;; 27473 esac 27474 fi 27475 27476 27477 if test "x$found_xres_lib" = "xno"; then 27478 { { echo "$as_me:$LINENO: error: Cannot find XRes extension library" >&5 27479echo "$as_me: error: Cannot find XRes extension library" >&2;} 27480 { (exit 1); exit 1; }; } 27481 exit 1 27482 fi 27483 27484 found_xres=no 27485 27486 echo "$as_me:$LINENO: checking for X11/extensions/XRes.h" >&5 27487echo $ECHO_N "checking for X11/extensions/XRes.h... $ECHO_C" >&6 27488if test "${ac_cv_header_X11_extensions_XRes_h+set}" = set; then 27489 echo $ECHO_N "(cached) $ECHO_C" >&6 27490else 27491 cat >conftest.$ac_ext <<_ACEOF 27492/* confdefs.h. */ 27493_ACEOF 27494cat confdefs.h >>conftest.$ac_ext 27495cat >>conftest.$ac_ext <<_ACEOF 27496/* end confdefs.h. */ 27497#include <X11/Xlib.h> 27498 27499#include <X11/extensions/XRes.h> 27500_ACEOF 27501rm -f conftest.$ac_objext 27502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27503 (eval $ac_compile) 2>conftest.er1 27504 ac_status=$? 27505 grep -v '^ *+' conftest.er1 >conftest.err 27506 rm -f conftest.er1 27507 cat conftest.err >&5 27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27509 (exit $ac_status); } && 27510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 27511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27512 (eval $ac_try) 2>&5 27513 ac_status=$? 27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27515 (exit $ac_status); }; } && 27516 { ac_try='test -s conftest.$ac_objext' 27517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27518 (eval $ac_try) 2>&5 27519 ac_status=$? 27520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27521 (exit $ac_status); }; }; then 27522 ac_cv_header_X11_extensions_XRes_h=yes 27523else 27524 echo "$as_me: failed program was:" >&5 27525sed 's/^/| /' conftest.$ac_ext >&5 27526 27527ac_cv_header_X11_extensions_XRes_h=no 27528fi 27529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 27530fi 27531echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XRes_h" >&5 27532echo "${ECHO_T}$ac_cv_header_X11_extensions_XRes_h" >&6 27533if test $ac_cv_header_X11_extensions_XRes_h = yes; then 27534 found_xres=yes 27535fi 27536 27537 27538 27539 if test "x$found_xres" = "xno"; then 27540 { { echo "$as_me:$LINENO: error: Cannot find XRes extension headers" >&5 27541echo "$as_me: error: Cannot find XRes extension headers" >&2;} 27542 { (exit 1); exit 1; }; } 27543 exit 1 27544 fi 27545 27546 XLIBS_LIBS="$XRES_LIBS -lXext $ALL_X_LIBS" 27547fi 27548 27549 27550 27551 27552 ac_config_files="$ac_config_files Makefile docs/Makefile src/Makefile intl/Makefile po/Makefile.in m4/Makefile" 27553 27554cat >confcache <<\_ACEOF 27555# This file is a shell script that caches the results of configure 27556# tests run on this system so they can be shared between configure 27557# scripts and configure runs, see configure's option --config-cache. 27558# It is not useful on other systems. If it contains results you don't 27559# want to keep, you may remove or edit it. 27560# 27561# config.status only pays attention to the cache file if you give it 27562# the --recheck option to rerun configure. 27563# 27564# `ac_cv_env_foo' variables (set or unset) will be overridden when 27565# loading this file, other *unset* `ac_cv_foo' will be assigned the 27566# following values. 27567 27568_ACEOF 27569 27570# The following way of writing the cache mishandles newlines in values, 27571# but we know of no workaround that is simple, portable, and efficient. 27572# So, don't put newlines in cache variables' values. 27573# Ultrix sh set writes to stderr and can't be redirected directly, 27574# and sets the high bit in the cache file unless we assign to the vars. 27575{ 27576 (set) 2>&1 | 27577 case `(ac_space=' '; set | grep ac_space) 2>&1` in 27578 *ac_space=\ *) 27579 # `set' does not quote correctly, so add quotes (double-quote 27580 # substitution turns \\\\ into \\, and sed turns \\ into \). 27581 sed -n \ 27582 "s/'/'\\\\''/g; 27583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27584 ;; 27585 *) 27586 # `set' quotes correctly as required by POSIX, so do not add quotes. 27587 sed -n \ 27588 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 27589 ;; 27590 esac; 27591} | 27592 sed ' 27593 t clear 27594 : clear 27595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27596 t end 27597 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27598 : end' >>confcache 27599if diff $cache_file confcache >/dev/null 2>&1; then :; else 27600 if test -w $cache_file; then 27601 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 27602 cat confcache >$cache_file 27603 else 27604 echo "not updating unwritable cache $cache_file" 27605 fi 27606fi 27607rm -f confcache 27608 27609test "x$prefix" = xNONE && prefix=$ac_default_prefix 27610# Let make expand exec_prefix. 27611test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27612 27613# VPATH may cause trouble with some makes, so we remove $(srcdir), 27614# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 27615# trailing colons and then remove the whole line if VPATH becomes empty 27616# (actually we leave an empty line to preserve line numbers). 27617if test "x$srcdir" = x.; then 27618 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 27619s/:*\$(srcdir):*/:/; 27620s/:*\${srcdir}:*/:/; 27621s/:*@srcdir@:*/:/; 27622s/^\([^=]*=[ ]*\):*/\1/; 27623s/:*$//; 27624s/^[^=]*=[ ]*$//; 27625}' 27626fi 27627 27628DEFS=-DHAVE_CONFIG_H 27629 27630ac_libobjs= 27631ac_ltlibobjs= 27632for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27633 # 1. Remove the extension, and $U if already installed. 27634 ac_i=`echo "$ac_i" | 27635 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 27636 # 2. Add them. 27637 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 27638 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 27639done 27640LIBOBJS=$ac_libobjs 27641 27642LTLIBOBJS=$ac_ltlibobjs 27643 27644 27645if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 27646 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 27647Usually this means the macro was only invoked conditionally." >&5 27648echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 27649Usually this means the macro was only invoked conditionally." >&2;} 27650 { (exit 1); exit 1; }; } 27651fi 27652if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27653 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 27654Usually this means the macro was only invoked conditionally." >&5 27655echo "$as_me: error: conditional \"AMDEP\" was never defined. 27656Usually this means the macro was only invoked conditionally." >&2;} 27657 { (exit 1); exit 1; }; } 27658fi 27659if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27660 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27661Usually this means the macro was only invoked conditionally." >&5 27662echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27663Usually this means the macro was only invoked conditionally." >&2;} 27664 { (exit 1); exit 1; }; } 27665fi 27666if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 27667 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 27668Usually this means the macro was only invoked conditionally." >&5 27669echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 27670Usually this means the macro was only invoked conditionally." >&2;} 27671 { (exit 1); exit 1; }; } 27672fi 27673 27674: ${CONFIG_STATUS=./config.status} 27675ac_clean_files_save=$ac_clean_files 27676ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27677{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 27678echo "$as_me: creating $CONFIG_STATUS" >&6;} 27679cat >$CONFIG_STATUS <<_ACEOF 27680#! $SHELL 27681# Generated by $as_me. 27682# Run this file to recreate the current configuration. 27683# Compiler output produced by configure, useful for debugging 27684# configure, is in config.log if it exists. 27685 27686debug=false 27687ac_cs_recheck=false 27688ac_cs_silent=false 27689SHELL=\${CONFIG_SHELL-$SHELL} 27690_ACEOF 27691 27692cat >>$CONFIG_STATUS <<\_ACEOF 27693## --------------------- ## 27694## M4sh Initialization. ## 27695## --------------------- ## 27696 27697# Be Bourne compatible 27698if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 27699 emulate sh 27700 NULLCMD=: 27701 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 27702 # is contrary to our usage. Disable this feature. 27703 alias -g '${1+"$@"}'='"$@"' 27704elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 27705 set -o posix 27706fi 27707DUALCASE=1; export DUALCASE # for MKS sh 27708 27709# Support unset when possible. 27710if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27711 as_unset=unset 27712else 27713 as_unset=false 27714fi 27715 27716 27717# Work around bugs in pre-3.0 UWIN ksh. 27718$as_unset ENV MAIL MAILPATH 27719PS1='$ ' 27720PS2='> ' 27721PS4='+ ' 27722 27723# NLS nuisances. 27724for as_var in \ 27725 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 27726 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 27727 LC_TELEPHONE LC_TIME 27728do 27729 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 27730 eval $as_var=C; export $as_var 27731 else 27732 $as_unset $as_var 27733 fi 27734done 27735 27736# Required to use basename. 27737if expr a : '\(a\)' >/dev/null 2>&1; then 27738 as_expr=expr 27739else 27740 as_expr=false 27741fi 27742 27743if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 27744 as_basename=basename 27745else 27746 as_basename=false 27747fi 27748 27749 27750# Name of the executable. 27751as_me=`$as_basename "$0" || 27752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27753 X"$0" : 'X\(//\)$' \| \ 27754 X"$0" : 'X\(/\)$' \| \ 27755 . : '\(.\)' 2>/dev/null || 27756echo X/"$0" | 27757 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 27758 /^X\/\(\/\/\)$/{ s//\1/; q; } 27759 /^X\/\(\/\).*/{ s//\1/; q; } 27760 s/.*/./; q'` 27761 27762 27763# PATH needs CR, and LINENO needs CR and PATH. 27764# Avoid depending upon Character Ranges. 27765as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27766as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27767as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27768as_cr_digits='0123456789' 27769as_cr_alnum=$as_cr_Letters$as_cr_digits 27770 27771# The user is always right. 27772if test "${PATH_SEPARATOR+set}" != set; then 27773 echo "#! /bin/sh" >conf$$.sh 27774 echo "exit 0" >>conf$$.sh 27775 chmod +x conf$$.sh 27776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 27777 PATH_SEPARATOR=';' 27778 else 27779 PATH_SEPARATOR=: 27780 fi 27781 rm -f conf$$.sh 27782fi 27783 27784 27785 as_lineno_1=$LINENO 27786 as_lineno_2=$LINENO 27787 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 27788 test "x$as_lineno_1" != "x$as_lineno_2" && 27789 test "x$as_lineno_3" = "x$as_lineno_2" || { 27790 # Find who we are. Look in the path if we contain no path at all 27791 # relative or not. 27792 case $0 in 27793 *[\\/]* ) as_myself=$0 ;; 27794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27795for as_dir in $PATH 27796do 27797 IFS=$as_save_IFS 27798 test -z "$as_dir" && as_dir=. 27799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27800done 27801 27802 ;; 27803 esac 27804 # We did not find ourselves, most probably we were run as `sh COMMAND' 27805 # in which case we are not to be found in the path. 27806 if test "x$as_myself" = x; then 27807 as_myself=$0 27808 fi 27809 if test ! -f "$as_myself"; then 27810 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 27811echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 27812 { (exit 1); exit 1; }; } 27813 fi 27814 case $CONFIG_SHELL in 27815 '') 27816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27817for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 27818do 27819 IFS=$as_save_IFS 27820 test -z "$as_dir" && as_dir=. 27821 for as_base in sh bash ksh sh5; do 27822 case $as_dir in 27823 /*) 27824 if ("$as_dir/$as_base" -c ' 27825 as_lineno_1=$LINENO 27826 as_lineno_2=$LINENO 27827 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 27828 test "x$as_lineno_1" != "x$as_lineno_2" && 27829 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 27830 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 27831 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 27832 CONFIG_SHELL=$as_dir/$as_base 27833 export CONFIG_SHELL 27834 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 27835 fi;; 27836 esac 27837 done 27838done 27839;; 27840 esac 27841 27842 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 27843 # uniformly replaced by the line number. The first 'sed' inserts a 27844 # line-number line before each line; the second 'sed' does the real 27845 # work. The second script uses 'N' to pair each line-number line 27846 # with the numbered line, and appends trailing '-' during 27847 # substitution so that $LINENO is not a special case at line end. 27848 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 27849 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 27850 sed '=' <$as_myself | 27851 sed ' 27852 N 27853 s,$,-, 27854 : loop 27855 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 27856 t loop 27857 s,-$,, 27858 s,^['$as_cr_digits']*\n,, 27859 ' >$as_me.lineno && 27860 chmod +x $as_me.lineno || 27861 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 27862echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 27863 { (exit 1); exit 1; }; } 27864 27865 # Don't try to exec as it changes $[0], causing all sort of problems 27866 # (the dirname of $[0] is not the place where we might find the 27867 # original and so on. Autoconf is especially sensible to this). 27868 . ./$as_me.lineno 27869 # Exit status is that of the last command. 27870 exit 27871} 27872 27873 27874case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 27875 *c*,-n*) ECHO_N= ECHO_C=' 27876' ECHO_T=' ' ;; 27877 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 27878 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 27879esac 27880 27881if expr a : '\(a\)' >/dev/null 2>&1; then 27882 as_expr=expr 27883else 27884 as_expr=false 27885fi 27886 27887rm -f conf$$ conf$$.exe conf$$.file 27888echo >conf$$.file 27889if ln -s conf$$.file conf$$ 2>/dev/null; then 27890 # We could just check for DJGPP; but this test a) works b) is more generic 27891 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 27892 if test -f conf$$.exe; then 27893 # Don't use ln at all; we don't have any links 27894 as_ln_s='cp -p' 27895 else 27896 as_ln_s='ln -s' 27897 fi 27898elif ln conf$$.file conf$$ 2>/dev/null; then 27899 as_ln_s=ln 27900else 27901 as_ln_s='cp -p' 27902fi 27903rm -f conf$$ conf$$.exe conf$$.file 27904 27905if mkdir -p . 2>/dev/null; then 27906 as_mkdir_p=: 27907else 27908 test -d ./-p && rmdir ./-p 27909 as_mkdir_p=false 27910fi 27911 27912as_executable_p="test -f" 27913 27914# Sed expression to map a string onto a valid CPP name. 27915as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27916 27917# Sed expression to map a string onto a valid variable name. 27918as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27919 27920 27921# IFS 27922# We need space, tab and new line, in precisely that order. 27923as_nl=' 27924' 27925IFS=" $as_nl" 27926 27927# CDPATH. 27928$as_unset CDPATH 27929 27930exec 6>&1 27931 27932# Open the log real soon, to keep \$[0] and so on meaningful, and to 27933# report actual input values of CONFIG_FILES etc. instead of their 27934# values after options handling. Logging --version etc. is OK. 27935exec 5>>config.log 27936{ 27937 echo 27938 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27939## Running $as_me. ## 27940_ASBOX 27941} >&5 27942cat >&5 <<_CSEOF 27943 27944This file was extended by wininfo $as_me 0.7, which was 27945generated by GNU Autoconf 2.59. Invocation command line was 27946 27947 CONFIG_FILES = $CONFIG_FILES 27948 CONFIG_HEADERS = $CONFIG_HEADERS 27949 CONFIG_LINKS = $CONFIG_LINKS 27950 CONFIG_COMMANDS = $CONFIG_COMMANDS 27951 $ $0 $@ 27952 27953_CSEOF 27954echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 27955echo >&5 27956_ACEOF 27957 27958# Files that config.status was made for. 27959if test -n "$ac_config_files"; then 27960 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 27961fi 27962 27963if test -n "$ac_config_headers"; then 27964 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 27965fi 27966 27967if test -n "$ac_config_links"; then 27968 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 27969fi 27970 27971if test -n "$ac_config_commands"; then 27972 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 27973fi 27974 27975cat >>$CONFIG_STATUS <<\_ACEOF 27976 27977ac_cs_usage="\ 27978\`$as_me' instantiates files from templates according to the 27979current configuration. 27980 27981Usage: $0 [OPTIONS] [FILE]... 27982 27983 -h, --help print this help, then exit 27984 -V, --version print version number, then exit 27985 -q, --quiet do not print progress messages 27986 -d, --debug don't remove temporary files 27987 --recheck update $as_me by reconfiguring in the same conditions 27988 --file=FILE[:TEMPLATE] 27989 instantiate the configuration file FILE 27990 --header=FILE[:TEMPLATE] 27991 instantiate the configuration header FILE 27992 27993Configuration files: 27994$config_files 27995 27996Configuration headers: 27997$config_headers 27998 27999Configuration commands: 28000$config_commands 28001 28002Report bugs to <bug-autoconf@gnu.org>." 28003_ACEOF 28004 28005cat >>$CONFIG_STATUS <<_ACEOF 28006ac_cs_version="\\ 28007wininfo config.status 0.7 28008configured by $0, generated by GNU Autoconf 2.59, 28009 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 28010 28011Copyright (C) 2003 Free Software Foundation, Inc. 28012This config.status script is free software; the Free Software Foundation 28013gives unlimited permission to copy, distribute and modify it." 28014srcdir=$srcdir 28015INSTALL="$INSTALL" 28016_ACEOF 28017 28018cat >>$CONFIG_STATUS <<\_ACEOF 28019# If no file are specified by the user, then we need to provide default 28020# value. By we need to know if files were specified by the user. 28021ac_need_defaults=: 28022while test $# != 0 28023do 28024 case $1 in 28025 --*=*) 28026 ac_option=`expr "x$1" : 'x\([^=]*\)='` 28027 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 28028 ac_shift=: 28029 ;; 28030 -*) 28031 ac_option=$1 28032 ac_optarg=$2 28033 ac_shift=shift 28034 ;; 28035 *) # This is not an option, so the user has probably given explicit 28036 # arguments. 28037 ac_option=$1 28038 ac_need_defaults=false;; 28039 esac 28040 28041 case $ac_option in 28042 # Handling of the options. 28043_ACEOF 28044cat >>$CONFIG_STATUS <<\_ACEOF 28045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28046 ac_cs_recheck=: ;; 28047 --version | --vers* | -V ) 28048 echo "$ac_cs_version"; exit 0 ;; 28049 --he | --h) 28050 # Conflict between --help and --header 28051 { { echo "$as_me:$LINENO: error: ambiguous option: $1 28052Try \`$0 --help' for more information." >&5 28053echo "$as_me: error: ambiguous option: $1 28054Try \`$0 --help' for more information." >&2;} 28055 { (exit 1); exit 1; }; };; 28056 --help | --hel | -h ) 28057 echo "$ac_cs_usage"; exit 0 ;; 28058 --debug | --d* | -d ) 28059 debug=: ;; 28060 --file | --fil | --fi | --f ) 28061 $ac_shift 28062 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 28063 ac_need_defaults=false;; 28064 --header | --heade | --head | --hea ) 28065 $ac_shift 28066 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 28067 ac_need_defaults=false;; 28068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 28069 | -silent | --silent | --silen | --sile | --sil | --si | --s) 28070 ac_cs_silent=: ;; 28071 28072 # This is an error. 28073 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 28074Try \`$0 --help' for more information." >&5 28075echo "$as_me: error: unrecognized option: $1 28076Try \`$0 --help' for more information." >&2;} 28077 { (exit 1); exit 1; }; } ;; 28078 28079 *) ac_config_targets="$ac_config_targets $1" ;; 28080 28081 esac 28082 shift 28083done 28084 28085ac_configure_extra_args= 28086 28087if $ac_cs_silent; then 28088 exec 6>/dev/null 28089 ac_configure_extra_args="$ac_configure_extra_args --silent" 28090fi 28091 28092_ACEOF 28093cat >>$CONFIG_STATUS <<_ACEOF 28094if \$ac_cs_recheck; then 28095 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 28096 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 28097fi 28098 28099_ACEOF 28100 28101cat >>$CONFIG_STATUS <<_ACEOF 28102# 28103# INIT-COMMANDS section. 28104# 28105 28106AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28107# Capture the value of obsolete ALL_LINGUAS because we need it to compute 28108 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 28109 # from automake. 28110 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 28111 # Capture the value of LINGUAS because we need it to compute CATALOGS. 28112 LINGUAS="${LINGUAS-%UNSET%}" 28113 28114 28115_ACEOF 28116 28117 28118 28119cat >>$CONFIG_STATUS <<\_ACEOF 28120for ac_config_target in $ac_config_targets 28121do 28122 case "$ac_config_target" in 28123 # Handling of arguments. 28124 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28125 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 28126 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 28127 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 28128 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 28129 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 28130 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 28131 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 28132 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 28133 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 28134echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 28135 { (exit 1); exit 1; }; };; 28136 esac 28137done 28138 28139# If the user did not use the arguments to specify the items to instantiate, 28140# then the envvar interface is used. Set only those that are not. 28141# We use the long form for the default assignment because of an extremely 28142# bizarre bug on SunOS 4.1.3. 28143if $ac_need_defaults; then 28144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28146 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28147fi 28148 28149# Have a temporary directory for convenience. Make it in the build tree 28150# simply because there is no reason to put it here, and in addition, 28151# creating and moving files from /tmp can sometimes cause problems. 28152# Create a temporary directory, and hook for its removal unless debugging. 28153$debug || 28154{ 28155 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 28156 trap '{ (exit 1); exit 1; }' 1 2 13 15 28157} 28158 28159# Create a (secure) tmp directory for tmp files. 28160 28161{ 28162 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 28163 test -n "$tmp" && test -d "$tmp" 28164} || 28165{ 28166 tmp=./confstat$$-$RANDOM 28167 (umask 077 && mkdir $tmp) 28168} || 28169{ 28170 echo "$me: cannot create a temporary directory in ." >&2 28171 { (exit 1); exit 1; } 28172} 28173 28174_ACEOF 28175 28176cat >>$CONFIG_STATUS <<_ACEOF 28177 28178# 28179# CONFIG_FILES section. 28180# 28181 28182# No need to generate the scripts if there are no CONFIG_FILES. 28183# This happens for instance when ./config.status config.h 28184if test -n "\$CONFIG_FILES"; then 28185 # Protect against being on the right side of a sed subst in config.status. 28186 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 28187 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 28188s,@SHELL@,$SHELL,;t t 28189s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 28190s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 28191s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 28192s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 28193s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 28194s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 28195s,@exec_prefix@,$exec_prefix,;t t 28196s,@prefix@,$prefix,;t t 28197s,@program_transform_name@,$program_transform_name,;t t 28198s,@bindir@,$bindir,;t t 28199s,@sbindir@,$sbindir,;t t 28200s,@libexecdir@,$libexecdir,;t t 28201s,@datadir@,$datadir,;t t 28202s,@sysconfdir@,$sysconfdir,;t t 28203s,@sharedstatedir@,$sharedstatedir,;t t 28204s,@localstatedir@,$localstatedir,;t t 28205s,@libdir@,$libdir,;t t 28206s,@includedir@,$includedir,;t t 28207s,@oldincludedir@,$oldincludedir,;t t 28208s,@infodir@,$infodir,;t t 28209s,@mandir@,$mandir,;t t 28210s,@build_alias@,$build_alias,;t t 28211s,@host_alias@,$host_alias,;t t 28212s,@target_alias@,$target_alias,;t t 28213s,@DEFS@,$DEFS,;t t 28214s,@ECHO_C@,$ECHO_C,;t t 28215s,@ECHO_N@,$ECHO_N,;t t 28216s,@ECHO_T@,$ECHO_T,;t t 28217s,@LIBS@,$LIBS,;t t 28218s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 28219s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 28220s,@INSTALL_DATA@,$INSTALL_DATA,;t t 28221s,@CYGPATH_W@,$CYGPATH_W,;t t 28222s,@PACKAGE@,$PACKAGE,;t t 28223s,@VERSION@,$VERSION,;t t 28224s,@ACLOCAL@,$ACLOCAL,;t t 28225s,@AUTOCONF@,$AUTOCONF,;t t 28226s,@AUTOMAKE@,$AUTOMAKE,;t t 28227s,@AUTOHEADER@,$AUTOHEADER,;t t 28228s,@MAKEINFO@,$MAKEINFO,;t t 28229s,@AMTAR@,$AMTAR,;t t 28230s,@install_sh@,$install_sh,;t t 28231s,@STRIP@,$STRIP,;t t 28232s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 28233s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 28234s,@AWK@,$AWK,;t t 28235s,@SET_MAKE@,$SET_MAKE,;t t 28236s,@am__leading_dot@,$am__leading_dot,;t t 28237s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 28238s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 28239s,@MAINT@,$MAINT,;t t 28240s,@build@,$build,;t t 28241s,@build_cpu@,$build_cpu,;t t 28242s,@build_vendor@,$build_vendor,;t t 28243s,@build_os@,$build_os,;t t 28244s,@host@,$host,;t t 28245s,@host_cpu@,$host_cpu,;t t 28246s,@host_vendor@,$host_vendor,;t t 28247s,@host_os@,$host_os,;t t 28248s,@CC@,$CC,;t t 28249s,@CFLAGS@,$CFLAGS,;t t 28250s,@LDFLAGS@,$LDFLAGS,;t t 28251s,@CPPFLAGS@,$CPPFLAGS,;t t 28252s,@ac_ct_CC@,$ac_ct_CC,;t t 28253s,@EXEEXT@,$EXEEXT,;t t 28254s,@OBJEXT@,$OBJEXT,;t t 28255s,@DEPDIR@,$DEPDIR,;t t 28256s,@am__include@,$am__include,;t t 28257s,@am__quote@,$am__quote,;t t 28258s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 28259s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 28260s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 28261s,@CCDEPMODE@,$CCDEPMODE,;t t 28262s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 28263s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 28264s,@EGREP@,$EGREP,;t t 28265s,@LN_S@,$LN_S,;t t 28266s,@ECHO@,$ECHO,;t t 28267s,@AR@,$AR,;t t 28268s,@ac_ct_AR@,$ac_ct_AR,;t t 28269s,@RANLIB@,$RANLIB,;t t 28270s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 28271s,@CPP@,$CPP,;t t 28272s,@CXX@,$CXX,;t t 28273s,@CXXFLAGS@,$CXXFLAGS,;t t 28274s,@ac_ct_CXX@,$ac_ct_CXX,;t t 28275s,@CXXDEPMODE@,$CXXDEPMODE,;t t 28276s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 28277s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 28278s,@CXXCPP@,$CXXCPP,;t t 28279s,@F77@,$F77,;t t 28280s,@FFLAGS@,$FFLAGS,;t t 28281s,@ac_ct_F77@,$ac_ct_F77,;t t 28282s,@LIBTOOL@,$LIBTOOL,;t t 28283s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 28284s,@USE_NLS@,$USE_NLS,;t t 28285s,@MSGFMT@,$MSGFMT,;t t 28286s,@GMSGFMT@,$GMSGFMT,;t t 28287s,@XGETTEXT@,$XGETTEXT,;t t 28288s,@MSGMERGE@,$MSGMERGE,;t t 28289s,@ALLOCA@,$ALLOCA,;t t 28290s,@GLIBC21@,$GLIBC21,;t t 28291s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t 28292s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t 28293s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t 28294s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t 28295s,@LIBICONV@,$LIBICONV,;t t 28296s,@LTLIBICONV@,$LTLIBICONV,;t t 28297s,@INTLBISON@,$INTLBISON,;t t 28298s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 28299s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 28300s,@CATOBJEXT@,$CATOBJEXT,;t t 28301s,@DATADIRNAME@,$DATADIRNAME,;t t 28302s,@INSTOBJEXT@,$INSTOBJEXT,;t t 28303s,@GENCAT@,$GENCAT,;t t 28304s,@INTLOBJS@,$INTLOBJS,;t t 28305s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 28306s,@INTLLIBS@,$INTLLIBS,;t t 28307s,@LIBINTL@,$LIBINTL,;t t 28308s,@LTLIBINTL@,$LTLIBINTL,;t t 28309s,@POSUB@,$POSUB,;t t 28310s,@PKG_CONFIG@,$PKG_CONFIG,;t t 28311s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 28312s,@GTK_LIBS@,$GTK_LIBS,;t t 28313s,@X11_CFLAGS@,$X11_CFLAGS,;t t 28314s,@X11_LIBS@,$X11_LIBS,;t t 28315s,@XLIBS_CFLAGS@,$XLIBS_CFLAGS,;t t 28316s,@XLIBS_LIBS@,$XLIBS_LIBS,;t t 28317s,@X_CFLAGS@,$X_CFLAGS,;t t 28318s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 28319s,@X_LIBS@,$X_LIBS,;t t 28320s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 28321s,@LIBOBJS@,$LIBOBJS,;t t 28322s,@LTLIBOBJS@,$LTLIBOBJS,;t t 28323CEOF 28324 28325_ACEOF 28326 28327 cat >>$CONFIG_STATUS <<\_ACEOF 28328 # Split the substitutions into bite-sized pieces for seds with 28329 # small command number limits, like on Digital OSF/1 and HP-UX. 28330 ac_max_sed_lines=48 28331 ac_sed_frag=1 # Number of current file. 28332 ac_beg=1 # First line for current file. 28333 ac_end=$ac_max_sed_lines # Line after last line for current file. 28334 ac_more_lines=: 28335 ac_sed_cmds= 28336 while $ac_more_lines; do 28337 if test $ac_beg -gt 1; then 28338 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 28339 else 28340 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 28341 fi 28342 if test ! -s $tmp/subs.frag; then 28343 ac_more_lines=false 28344 else 28345 # The purpose of the label and of the branching condition is to 28346 # speed up the sed processing (if there are no `@' at all, there 28347 # is no need to browse any of the substitutions). 28348 # These are the two extra sed commands mentioned above. 28349 (echo ':t 28350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 28351 if test -z "$ac_sed_cmds"; then 28352 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 28353 else 28354 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 28355 fi 28356 ac_sed_frag=`expr $ac_sed_frag + 1` 28357 ac_beg=$ac_end 28358 ac_end=`expr $ac_end + $ac_max_sed_lines` 28359 fi 28360 done 28361 if test -z "$ac_sed_cmds"; then 28362 ac_sed_cmds=cat 28363 fi 28364fi # test -n "$CONFIG_FILES" 28365 28366_ACEOF 28367cat >>$CONFIG_STATUS <<\_ACEOF 28368for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 28369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 28370 case $ac_file in 28371 - | *:- | *:-:* ) # input from stdin 28372 cat >$tmp/stdin 28373 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28375 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28377 * ) ac_file_in=$ac_file.in ;; 28378 esac 28379 28380 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 28381 ac_dir=`(dirname "$ac_file") 2>/dev/null || 28382$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28383 X"$ac_file" : 'X\(//\)[^/]' \| \ 28384 X"$ac_file" : 'X\(//\)$' \| \ 28385 X"$ac_file" : 'X\(/\)' \| \ 28386 . : '\(.\)' 2>/dev/null || 28387echo X"$ac_file" | 28388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28389 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28390 /^X\(\/\/\)$/{ s//\1/; q; } 28391 /^X\(\/\).*/{ s//\1/; q; } 28392 s/.*/./; q'` 28393 { if $as_mkdir_p; then 28394 mkdir -p "$ac_dir" 28395 else 28396 as_dir="$ac_dir" 28397 as_dirs= 28398 while test ! -d "$as_dir"; do 28399 as_dirs="$as_dir $as_dirs" 28400 as_dir=`(dirname "$as_dir") 2>/dev/null || 28401$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28402 X"$as_dir" : 'X\(//\)[^/]' \| \ 28403 X"$as_dir" : 'X\(//\)$' \| \ 28404 X"$as_dir" : 'X\(/\)' \| \ 28405 . : '\(.\)' 2>/dev/null || 28406echo X"$as_dir" | 28407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28408 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28409 /^X\(\/\/\)$/{ s//\1/; q; } 28410 /^X\(\/\).*/{ s//\1/; q; } 28411 s/.*/./; q'` 28412 done 28413 test ! -n "$as_dirs" || mkdir $as_dirs 28414 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 28415echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28416 { (exit 1); exit 1; }; }; } 28417 28418 ac_builddir=. 28419 28420if test "$ac_dir" != .; then 28421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 28422 # A "../" for each directory in $ac_dir_suffix. 28423 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 28424else 28425 ac_dir_suffix= ac_top_builddir= 28426fi 28427 28428case $srcdir in 28429 .) # No --srcdir option. We are building in place. 28430 ac_srcdir=. 28431 if test -z "$ac_top_builddir"; then 28432 ac_top_srcdir=. 28433 else 28434 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 28435 fi ;; 28436 [\\/]* | ?:[\\/]* ) # Absolute path. 28437 ac_srcdir=$srcdir$ac_dir_suffix; 28438 ac_top_srcdir=$srcdir ;; 28439 *) # Relative path. 28440 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 28441 ac_top_srcdir=$ac_top_builddir$srcdir ;; 28442esac 28443 28444# Do not use `cd foo && pwd` to compute absolute paths, because 28445# the directories may not exist. 28446case `pwd` in 28447.) ac_abs_builddir="$ac_dir";; 28448*) 28449 case "$ac_dir" in 28450 .) ac_abs_builddir=`pwd`;; 28451 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 28452 *) ac_abs_builddir=`pwd`/"$ac_dir";; 28453 esac;; 28454esac 28455case $ac_abs_builddir in 28456.) ac_abs_top_builddir=${ac_top_builddir}.;; 28457*) 28458 case ${ac_top_builddir}. in 28459 .) ac_abs_top_builddir=$ac_abs_builddir;; 28460 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 28461 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 28462 esac;; 28463esac 28464case $ac_abs_builddir in 28465.) ac_abs_srcdir=$ac_srcdir;; 28466*) 28467 case $ac_srcdir in 28468 .) ac_abs_srcdir=$ac_abs_builddir;; 28469 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 28470 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 28471 esac;; 28472esac 28473case $ac_abs_builddir in 28474.) ac_abs_top_srcdir=$ac_top_srcdir;; 28475*) 28476 case $ac_top_srcdir in 28477 .) ac_abs_top_srcdir=$ac_abs_builddir;; 28478 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 28479 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 28480 esac;; 28481esac 28482 28483 28484 case $INSTALL in 28485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28486 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 28487 esac 28488 28489 # Let's still pretend it is `configure' which instantiates (i.e., don't 28490 # use $as_me), people would be surprised to read: 28491 # /* config.h. Generated by config.status. */ 28492 if test x"$ac_file" = x-; then 28493 configure_input= 28494 else 28495 configure_input="$ac_file. " 28496 fi 28497 configure_input=$configure_input"Generated from `echo $ac_file_in | 28498 sed 's,.*/,,'` by configure." 28499 28500 # First look for the input files in the build tree, otherwise in the 28501 # src tree. 28502 ac_file_inputs=`IFS=: 28503 for f in $ac_file_in; do 28504 case $f in 28505 -) echo $tmp/stdin ;; 28506 [\\/$]*) 28507 # Absolute (can't be DOS-style, as IFS=:) 28508 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28509echo "$as_me: error: cannot find input file: $f" >&2;} 28510 { (exit 1); exit 1; }; } 28511 echo "$f";; 28512 *) # Relative 28513 if test -f "$f"; then 28514 # Build tree 28515 echo "$f" 28516 elif test -f "$srcdir/$f"; then 28517 # Source tree 28518 echo "$srcdir/$f" 28519 else 28520 # /dev/null tree 28521 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28522echo "$as_me: error: cannot find input file: $f" >&2;} 28523 { (exit 1); exit 1; }; } 28524 fi;; 28525 esac 28526 done` || { (exit 1); exit 1; } 28527 28528 if test x"$ac_file" != x-; then 28529 { echo "$as_me:$LINENO: creating $ac_file" >&5 28530echo "$as_me: creating $ac_file" >&6;} 28531 rm -f "$ac_file" 28532 fi 28533_ACEOF 28534cat >>$CONFIG_STATUS <<_ACEOF 28535 sed "$ac_vpsub 28536$extrasub 28537_ACEOF 28538cat >>$CONFIG_STATUS <<\_ACEOF 28539:t 28540/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28541s,@configure_input@,$configure_input,;t t 28542s,@srcdir@,$ac_srcdir,;t t 28543s,@abs_srcdir@,$ac_abs_srcdir,;t t 28544s,@top_srcdir@,$ac_top_srcdir,;t t 28545s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 28546s,@builddir@,$ac_builddir,;t t 28547s,@abs_builddir@,$ac_abs_builddir,;t t 28548s,@top_builddir@,$ac_top_builddir,;t t 28549s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 28550s,@INSTALL@,$ac_INSTALL,;t t 28551" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 28552 rm -f $tmp/stdin 28553 if test x"$ac_file" != x-; then 28554 mv $tmp/out $ac_file 28555 else 28556 cat $tmp/out 28557 rm -f $tmp/out 28558 fi 28559 28560done 28561_ACEOF 28562cat >>$CONFIG_STATUS <<\_ACEOF 28563 28564# 28565# CONFIG_HEADER section. 28566# 28567 28568# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 28569# NAME is the cpp macro being defined and VALUE is the value it is being given. 28570# 28571# ac_d sets the value in "#define NAME VALUE" lines. 28572ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 28573ac_dB='[ ].*$,\1#\2' 28574ac_dC=' ' 28575ac_dD=',;t' 28576# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 28577ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 28578ac_uB='$,\1#\2define\3' 28579ac_uC=' ' 28580ac_uD=',;t' 28581 28582for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 28583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 28584 case $ac_file in 28585 - | *:- | *:-:* ) # input from stdin 28586 cat >$tmp/stdin 28587 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28589 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 28590 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 28591 * ) ac_file_in=$ac_file.in ;; 28592 esac 28593 28594 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 28595echo "$as_me: creating $ac_file" >&6;} 28596 28597 # First look for the input files in the build tree, otherwise in the 28598 # src tree. 28599 ac_file_inputs=`IFS=: 28600 for f in $ac_file_in; do 28601 case $f in 28602 -) echo $tmp/stdin ;; 28603 [\\/$]*) 28604 # Absolute (can't be DOS-style, as IFS=:) 28605 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28606echo "$as_me: error: cannot find input file: $f" >&2;} 28607 { (exit 1); exit 1; }; } 28608 # Do quote $f, to prevent DOS paths from being IFS'd. 28609 echo "$f";; 28610 *) # Relative 28611 if test -f "$f"; then 28612 # Build tree 28613 echo "$f" 28614 elif test -f "$srcdir/$f"; then 28615 # Source tree 28616 echo "$srcdir/$f" 28617 else 28618 # /dev/null tree 28619 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 28620echo "$as_me: error: cannot find input file: $f" >&2;} 28621 { (exit 1); exit 1; }; } 28622 fi;; 28623 esac 28624 done` || { (exit 1); exit 1; } 28625 # Remove the trailing spaces. 28626 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 28627 28628_ACEOF 28629 28630# Transform confdefs.h into two sed scripts, `conftest.defines' and 28631# `conftest.undefs', that substitutes the proper values into 28632# config.h.in to produce config.h. The first handles `#define' 28633# templates, and the second `#undef' templates. 28634# And first: Protect against being on the right side of a sed subst in 28635# config.status. Protect against being in an unquoted here document 28636# in config.status. 28637rm -f conftest.defines conftest.undefs 28638# Using a here document instead of a string reduces the quoting nightmare. 28639# Putting comments in sed scripts is not portable. 28640# 28641# `end' is used to avoid that the second main sed command (meant for 28642# 0-ary CPP macros) applies to n-ary macro definitions. 28643# See the Autoconf documentation for `clear'. 28644cat >confdef2sed.sed <<\_ACEOF 28645s/[\\&,]/\\&/g 28646s,[\\$`],\\&,g 28647t clear 28648: clear 28649s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 28650t end 28651s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 28652: end 28653_ACEOF 28654# If some macros were called several times there might be several times 28655# the same #defines, which is useless. Nevertheless, we may not want to 28656# sort them, since we want the *last* AC-DEFINE to be honored. 28657uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 28658sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 28659rm -f confdef2sed.sed 28660 28661# This sed command replaces #undef with comments. This is necessary, for 28662# example, in the case of _POSIX_SOURCE, which is predefined and required 28663# on some systems where configure will not decide to define it. 28664cat >>conftest.undefs <<\_ACEOF 28665s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 28666_ACEOF 28667 28668# Break up conftest.defines because some shells have a limit on the size 28669# of here documents, and old seds have small limits too (100 cmds). 28670echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 28671echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 28672echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 28673echo ' :' >>$CONFIG_STATUS 28674rm -f conftest.tail 28675while grep . conftest.defines >/dev/null 28676do 28677 # Write a limited-size here document to $tmp/defines.sed. 28678 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 28679 # Speed up: don't consider the non `#define' lines. 28680 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 28681 # Work around the forget-to-reset-the-flag bug. 28682 echo 't clr' >>$CONFIG_STATUS 28683 echo ': clr' >>$CONFIG_STATUS 28684 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 28685 echo 'CEOF 28686 sed -f $tmp/defines.sed $tmp/in >$tmp/out 28687 rm -f $tmp/in 28688 mv $tmp/out $tmp/in 28689' >>$CONFIG_STATUS 28690 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 28691 rm -f conftest.defines 28692 mv conftest.tail conftest.defines 28693done 28694rm -f conftest.defines 28695echo ' fi # grep' >>$CONFIG_STATUS 28696echo >>$CONFIG_STATUS 28697 28698# Break up conftest.undefs because some shells have a limit on the size 28699# of here documents, and old seds have small limits too (100 cmds). 28700echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 28701rm -f conftest.tail 28702while grep . conftest.undefs >/dev/null 28703do 28704 # Write a limited-size here document to $tmp/undefs.sed. 28705 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 28706 # Speed up: don't consider the non `#undef' 28707 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 28708 # Work around the forget-to-reset-the-flag bug. 28709 echo 't clr' >>$CONFIG_STATUS 28710 echo ': clr' >>$CONFIG_STATUS 28711 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 28712 echo 'CEOF 28713 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 28714 rm -f $tmp/in 28715 mv $tmp/out $tmp/in 28716' >>$CONFIG_STATUS 28717 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 28718 rm -f conftest.undefs 28719 mv conftest.tail conftest.undefs 28720done 28721rm -f conftest.undefs 28722 28723cat >>$CONFIG_STATUS <<\_ACEOF 28724 # Let's still pretend it is `configure' which instantiates (i.e., don't 28725 # use $as_me), people would be surprised to read: 28726 # /* config.h. Generated by config.status. */ 28727 if test x"$ac_file" = x-; then 28728 echo "/* Generated by configure. */" >$tmp/config.h 28729 else 28730 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 28731 fi 28732 cat $tmp/in >>$tmp/config.h 28733 rm -f $tmp/in 28734 if test x"$ac_file" != x-; then 28735 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 28736 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 28737echo "$as_me: $ac_file is unchanged" >&6;} 28738 else 28739 ac_dir=`(dirname "$ac_file") 2>/dev/null || 28740$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28741 X"$ac_file" : 'X\(//\)[^/]' \| \ 28742 X"$ac_file" : 'X\(//\)$' \| \ 28743 X"$ac_file" : 'X\(/\)' \| \ 28744 . : '\(.\)' 2>/dev/null || 28745echo X"$ac_file" | 28746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28747 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28748 /^X\(\/\/\)$/{ s//\1/; q; } 28749 /^X\(\/\).*/{ s//\1/; q; } 28750 s/.*/./; q'` 28751 { if $as_mkdir_p; then 28752 mkdir -p "$ac_dir" 28753 else 28754 as_dir="$ac_dir" 28755 as_dirs= 28756 while test ! -d "$as_dir"; do 28757 as_dirs="$as_dir $as_dirs" 28758 as_dir=`(dirname "$as_dir") 2>/dev/null || 28759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28760 X"$as_dir" : 'X\(//\)[^/]' \| \ 28761 X"$as_dir" : 'X\(//\)$' \| \ 28762 X"$as_dir" : 'X\(/\)' \| \ 28763 . : '\(.\)' 2>/dev/null || 28764echo X"$as_dir" | 28765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28766 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28767 /^X\(\/\/\)$/{ s//\1/; q; } 28768 /^X\(\/\).*/{ s//\1/; q; } 28769 s/.*/./; q'` 28770 done 28771 test ! -n "$as_dirs" || mkdir $as_dirs 28772 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 28773echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28774 { (exit 1); exit 1; }; }; } 28775 28776 rm -f $ac_file 28777 mv $tmp/config.h $ac_file 28778 fi 28779 else 28780 cat $tmp/config.h 28781 rm -f $tmp/config.h 28782 fi 28783# Compute $ac_file's index in $config_headers. 28784_am_stamp_count=1 28785for _am_header in $config_headers :; do 28786 case $_am_header in 28787 $ac_file | $ac_file:* ) 28788 break ;; 28789 * ) 28790 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28791 esac 28792done 28793echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 28794$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28795 X$ac_file : 'X\(//\)[^/]' \| \ 28796 X$ac_file : 'X\(//\)$' \| \ 28797 X$ac_file : 'X\(/\)' \| \ 28798 . : '\(.\)' 2>/dev/null || 28799echo X$ac_file | 28800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28801 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28802 /^X\(\/\/\)$/{ s//\1/; q; } 28803 /^X\(\/\).*/{ s//\1/; q; } 28804 s/.*/./; q'`/stamp-h$_am_stamp_count 28805done 28806_ACEOF 28807cat >>$CONFIG_STATUS <<\_ACEOF 28808 28809# 28810# CONFIG_COMMANDS section. 28811# 28812for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 28813 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 28814 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 28815 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 28816$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28817 X"$ac_dest" : 'X\(//\)[^/]' \| \ 28818 X"$ac_dest" : 'X\(//\)$' \| \ 28819 X"$ac_dest" : 'X\(/\)' \| \ 28820 . : '\(.\)' 2>/dev/null || 28821echo X"$ac_dest" | 28822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28823 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28824 /^X\(\/\/\)$/{ s//\1/; q; } 28825 /^X\(\/\).*/{ s//\1/; q; } 28826 s/.*/./; q'` 28827 { if $as_mkdir_p; then 28828 mkdir -p "$ac_dir" 28829 else 28830 as_dir="$ac_dir" 28831 as_dirs= 28832 while test ! -d "$as_dir"; do 28833 as_dirs="$as_dir $as_dirs" 28834 as_dir=`(dirname "$as_dir") 2>/dev/null || 28835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28836 X"$as_dir" : 'X\(//\)[^/]' \| \ 28837 X"$as_dir" : 'X\(//\)$' \| \ 28838 X"$as_dir" : 'X\(/\)' \| \ 28839 . : '\(.\)' 2>/dev/null || 28840echo X"$as_dir" | 28841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28842 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28843 /^X\(\/\/\)$/{ s//\1/; q; } 28844 /^X\(\/\).*/{ s//\1/; q; } 28845 s/.*/./; q'` 28846 done 28847 test ! -n "$as_dirs" || mkdir $as_dirs 28848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 28849echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28850 { (exit 1); exit 1; }; }; } 28851 28852 ac_builddir=. 28853 28854if test "$ac_dir" != .; then 28855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 28856 # A "../" for each directory in $ac_dir_suffix. 28857 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 28858else 28859 ac_dir_suffix= ac_top_builddir= 28860fi 28861 28862case $srcdir in 28863 .) # No --srcdir option. We are building in place. 28864 ac_srcdir=. 28865 if test -z "$ac_top_builddir"; then 28866 ac_top_srcdir=. 28867 else 28868 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 28869 fi ;; 28870 [\\/]* | ?:[\\/]* ) # Absolute path. 28871 ac_srcdir=$srcdir$ac_dir_suffix; 28872 ac_top_srcdir=$srcdir ;; 28873 *) # Relative path. 28874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 28875 ac_top_srcdir=$ac_top_builddir$srcdir ;; 28876esac 28877 28878# Do not use `cd foo && pwd` to compute absolute paths, because 28879# the directories may not exist. 28880case `pwd` in 28881.) ac_abs_builddir="$ac_dir";; 28882*) 28883 case "$ac_dir" in 28884 .) ac_abs_builddir=`pwd`;; 28885 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 28886 *) ac_abs_builddir=`pwd`/"$ac_dir";; 28887 esac;; 28888esac 28889case $ac_abs_builddir in 28890.) ac_abs_top_builddir=${ac_top_builddir}.;; 28891*) 28892 case ${ac_top_builddir}. in 28893 .) ac_abs_top_builddir=$ac_abs_builddir;; 28894 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 28895 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 28896 esac;; 28897esac 28898case $ac_abs_builddir in 28899.) ac_abs_srcdir=$ac_srcdir;; 28900*) 28901 case $ac_srcdir in 28902 .) ac_abs_srcdir=$ac_abs_builddir;; 28903 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 28904 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 28905 esac;; 28906esac 28907case $ac_abs_builddir in 28908.) ac_abs_top_srcdir=$ac_top_srcdir;; 28909*) 28910 case $ac_top_srcdir in 28911 .) ac_abs_top_srcdir=$ac_abs_builddir;; 28912 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 28913 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 28914 esac;; 28915esac 28916 28917 28918 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 28919echo "$as_me: executing $ac_dest commands" >&6;} 28920 case $ac_dest in 28921 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28922 # Strip MF so we end up with the name of the file. 28923 mf=`echo "$mf" | sed -e 's/:.*$//'` 28924 # Check whether this is an Automake generated Makefile or not. 28925 # We used to match only the files named `Makefile.in', but 28926 # some people rename them; so instead we look at the file content. 28927 # Grep'ing the first line is not enough: some people post-process 28928 # each Makefile.in and add a new line on top of each file to say so. 28929 # So let's grep whole file. 28930 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 28931 dirpart=`(dirname "$mf") 2>/dev/null || 28932$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28933 X"$mf" : 'X\(//\)[^/]' \| \ 28934 X"$mf" : 'X\(//\)$' \| \ 28935 X"$mf" : 'X\(/\)' \| \ 28936 . : '\(.\)' 2>/dev/null || 28937echo X"$mf" | 28938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28939 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28940 /^X\(\/\/\)$/{ s//\1/; q; } 28941 /^X\(\/\).*/{ s//\1/; q; } 28942 s/.*/./; q'` 28943 else 28944 continue 28945 fi 28946 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 28947 # Extract the definition of DEP_FILES from the Makefile without 28948 # running `make'. 28949 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 28950 test -z "$DEPDIR" && continue 28951 # When using ansi2knr, U may be empty or an underscore; expand it 28952 U=`sed -n -e '/^U = / s///p' < "$mf"` 28953 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 28954 # We invoke sed twice because it is the simplest approach to 28955 # changing $(DEPDIR) to its actual value in the expansion. 28956 for file in `sed -n -e ' 28957 /^DEP_FILES = .*\\\\$/ { 28958 s/^DEP_FILES = // 28959 :loop 28960 s/\\\\$// 28961 p 28962 n 28963 /\\\\$/ b loop 28964 p 28965 } 28966 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 28967 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28968 # Make sure the directory exists. 28969 test -f "$dirpart/$file" && continue 28970 fdir=`(dirname "$file") 2>/dev/null || 28971$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28972 X"$file" : 'X\(//\)[^/]' \| \ 28973 X"$file" : 'X\(//\)$' \| \ 28974 X"$file" : 'X\(/\)' \| \ 28975 . : '\(.\)' 2>/dev/null || 28976echo X"$file" | 28977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28978 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28979 /^X\(\/\/\)$/{ s//\1/; q; } 28980 /^X\(\/\).*/{ s//\1/; q; } 28981 s/.*/./; q'` 28982 { if $as_mkdir_p; then 28983 mkdir -p $dirpart/$fdir 28984 else 28985 as_dir=$dirpart/$fdir 28986 as_dirs= 28987 while test ! -d "$as_dir"; do 28988 as_dirs="$as_dir $as_dirs" 28989 as_dir=`(dirname "$as_dir") 2>/dev/null || 28990$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28991 X"$as_dir" : 'X\(//\)[^/]' \| \ 28992 X"$as_dir" : 'X\(//\)$' \| \ 28993 X"$as_dir" : 'X\(/\)' \| \ 28994 . : '\(.\)' 2>/dev/null || 28995echo X"$as_dir" | 28996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28997 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28998 /^X\(\/\/\)$/{ s//\1/; q; } 28999 /^X\(\/\).*/{ s//\1/; q; } 29000 s/.*/./; q'` 29001 done 29002 test ! -n "$as_dirs" || mkdir $as_dirs 29003 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 29004echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 29005 { (exit 1); exit 1; }; }; } 29006 29007 # echo "creating $dirpart/$file" 29008 echo '# dummy' > "$dirpart/$file" 29009 done 29010done 29011 ;; 29012 default-1 ) 29013 for ac_file in $CONFIG_FILES; do 29014 # Support "outfile[:infile[:infile...]]" 29015 case "$ac_file" in 29016 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 29017 esac 29018 # PO directories have a Makefile.in generated from Makefile.in.in. 29019 case "$ac_file" in */Makefile.in) 29020 # Adjust a relative srcdir. 29021 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 29022 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 29023 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 29024 # In autoconf-2.13 it is called $ac_given_srcdir. 29025 # In autoconf-2.50 it is called $srcdir. 29026 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 29027 case "$ac_given_srcdir" in 29028 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 29029 /*) top_srcdir="$ac_given_srcdir" ;; 29030 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 29031 esac 29032 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 29033 rm -f "$ac_dir/POTFILES" 29034 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 29035 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 29036 POMAKEFILEDEPS="POTFILES.in" 29037 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 29038 # on $ac_dir but don't depend on user-specified configuration 29039 # parameters. 29040 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 29041 # The LINGUAS file contains the set of available languages. 29042 if test -n "$OBSOLETE_ALL_LINGUAS"; then 29043 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 29044 fi 29045 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 29046 # Hide the ALL_LINGUAS assigment from automake. 29047 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 29048 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 29049 else 29050 # The set of available languages was given in configure.in. 29051 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 29052 fi 29053 # Compute POFILES 29054 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 29055 # Compute UPDATEPOFILES 29056 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 29057 # Compute DUMMYPOFILES 29058 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 29059 # Compute GMOFILES 29060 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 29061 case "$ac_given_srcdir" in 29062 .) srcdirpre= ;; 29063 *) srcdirpre='$(srcdir)/' ;; 29064 esac 29065 POFILES= 29066 UPDATEPOFILES= 29067 DUMMYPOFILES= 29068 GMOFILES= 29069 for lang in $ALL_LINGUAS; do 29070 POFILES="$POFILES $srcdirpre$lang.po" 29071 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 29072 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 29073 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 29074 done 29075 # CATALOGS depends on both $ac_dir and the user's LINGUAS 29076 # environment variable. 29077 INST_LINGUAS= 29078 if test -n "$ALL_LINGUAS"; then 29079 for presentlang in $ALL_LINGUAS; do 29080 useit=no 29081 if test "%UNSET%" != "$LINGUAS"; then 29082 desiredlanguages="$LINGUAS" 29083 else 29084 desiredlanguages="$ALL_LINGUAS" 29085 fi 29086 for desiredlang in $desiredlanguages; do 29087 # Use the presentlang catalog if desiredlang is 29088 # a. equal to presentlang, or 29089 # b. a variant of presentlang (because in this case, 29090 # presentlang can be used as a fallback for messages 29091 # which are not translated in the desiredlang catalog). 29092 case "$desiredlang" in 29093 "$presentlang"*) useit=yes;; 29094 esac 29095 done 29096 if test $useit = yes; then 29097 INST_LINGUAS="$INST_LINGUAS $presentlang" 29098 fi 29099 done 29100 fi 29101 CATALOGS= 29102 if test -n "$INST_LINGUAS"; then 29103 for lang in $INST_LINGUAS; do 29104 CATALOGS="$CATALOGS $lang.gmo" 29105 done 29106 fi 29107 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 29108 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 29109 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 29110 if test -f "$f"; then 29111 case "$f" in 29112 *.orig | *.bak | *~) ;; 29113 *) cat "$f" >> "$ac_dir/Makefile" ;; 29114 esac 29115 fi 29116 done 29117 fi 29118 ;; 29119 esac 29120 done ;; 29121 esac 29122done 29123_ACEOF 29124 29125cat >>$CONFIG_STATUS <<\_ACEOF 29126 29127{ (exit 0); exit 0; } 29128_ACEOF 29129chmod +x $CONFIG_STATUS 29130ac_clean_files=$ac_clean_files_save 29131 29132 29133# configure is writing to config.log, and then calls config.status. 29134# config.status does its own redirection, appending to config.log. 29135# Unfortunately, on DOS this fails, as config.log is still kept open 29136# by configure, so config.status won't be able to write to it; its 29137# output is simply discarded. So we exec the FD to /dev/null, 29138# effectively closing config.log, so it can be properly (re)opened and 29139# appended to by config.status. When coming back to configure, we 29140# need to make the FD available again. 29141if test "$no_create" != yes; then 29142 ac_cs_success=: 29143 ac_config_status_args= 29144 test "$silent" = yes && 29145 ac_config_status_args="$ac_config_status_args --quiet" 29146 exec 5>/dev/null 29147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 29148 exec 5>>config.log 29149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 29150 # would make configure fail if this is the last instruction. 29151 $ac_cs_success || { (exit 1); exit 1; } 29152fi 29153 29154