1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for xosd 2.2.14. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string="`eval $cmd`") 2>/dev/null && 289 echo_test_string="`eval $cmd`" && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME='xosd' 423PACKAGE_TARNAME='xosd' 424PACKAGE_VERSION='2.2.14' 425PACKAGE_STRING='xosd 2.2.14' 426PACKAGE_BUGREPORT='' 427 428ac_unique_file="src/testprog.c" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar LT_CURRENT LT_AGE LT_REVISION MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP 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 X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS M4DATADIR GTK_CONFIG GTK_CFLAGS GTK_LIBS PKG_CONFIG BMP_CFLAGS BMP_LIBS BMP_GENERAL_PLUGIN_DIR XMMS_CONFIG XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR GDK_PIXBUF_CONFIG GDK_PIXBUF_CFLAGS GDK_PIXBUF_LIBS XMMS_PIXMAPDIR BUILD_NEW_PLUGIN_TRUE BUILD_NEW_PLUGIN_FALSE BUILD_BEEP_MEDIA_PLUGIN_TRUE BUILD_BEEP_MEDIA_PLUGIN_FALSE BUILD_OLD_PLUGIN_TRUE BUILD_OLD_PLUGIN_FALSE LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures xosd 2.2.14 to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013X features: 1014 --x-includes=DIR X include files are in DIR 1015 --x-libraries=DIR X library files are in DIR 1016 1017System types: 1018 --build=BUILD configure for building on BUILD [guessed] 1019 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1020_ACEOF 1021fi 1022 1023if test -n "$ac_init_help"; then 1024 case $ac_init_help in 1025 short | recursive ) echo "Configuration of xosd 2.2.14:";; 1026 esac 1027 cat <<\_ACEOF 1028 1029Optional Features: 1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1032 --enable-maintainer-mode enable make rules and dependencies not useful 1033 (and sometimes confusing) to the casual installer 1034 --disable-dependency-tracking speeds up one-time build 1035 --enable-dependency-tracking do not reject slow dependency extractors 1036 --enable-shared[=PKGS] 1037 build shared libraries [default=yes] 1038 --enable-static[=PKGS] 1039 build static libraries [default=yes] 1040 --enable-fast-install[=PKGS] 1041 optimize for fast installation [default=yes] 1042 --disable-libtool-lock avoid locking (might break parallel builds) 1043 --disable-gtktest Do not try to compile and run a test GTK program 1044 --disable-xinerama disable use of Xinerama extension 1045 --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program 1046 --disable-new-plugin Disable new xmms plugin (enabled by default) 1047 --enable-beep_media_player_plugin 1048 Enable beep media plugin (enabled by default) 1049 --enable-old-plugin Enable old xmms plugin (disabled by default) 1050 1051Optional Packages: 1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1054 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1055 --with-pic try to use only PIC/non-PIC objects [default=use 1056 both] 1057 --with-tags[=TAGS] 1058 include additional configurations [automatic] 1059 --with-x use the X Window System 1060 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1061 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 1062 --with-xmms-prefix=PFX Prefix where XMMS is installed (optional) 1063 --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional) 1064 --with-plugindir=DIR Set the xmms plugin directory 1065 --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional) 1066 --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional) 1067 --with-pixmapdir=DIR Set the directory for xmms plugin pixmaps 1068 1069Some influential environment variables: 1070 CC C compiler command 1071 CFLAGS C compiler flags 1072 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1073 nonstandard directory <lib dir> 1074 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1075 headers in a nonstandard directory <include dir> 1076 CPP C preprocessor 1077 CXX C++ compiler command 1078 CXXFLAGS C++ compiler flags 1079 CXXCPP C++ preprocessor 1080 F77 Fortran 77 compiler command 1081 FFLAGS Fortran 77 compiler flags 1082 1083Use these variables to override the choices made by `configure' or to help 1084it to find libraries and programs with nonstandard names/locations. 1085 1086_ACEOF 1087fi 1088 1089if test "$ac_init_help" = "recursive"; then 1090 # If there are subdirs, report their specific --help. 1091 ac_popdir=`pwd` 1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1093 test -d $ac_dir || continue 1094 ac_builddir=. 1095 1096if test "$ac_dir" != .; then 1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1098 # A "../" for each directory in $ac_dir_suffix. 1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1100else 1101 ac_dir_suffix= ac_top_builddir= 1102fi 1103 1104case $srcdir in 1105 .) # No --srcdir option. We are building in place. 1106 ac_srcdir=. 1107 if test -z "$ac_top_builddir"; then 1108 ac_top_srcdir=. 1109 else 1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1111 fi ;; 1112 [\\/]* | ?:[\\/]* ) # Absolute path. 1113 ac_srcdir=$srcdir$ac_dir_suffix; 1114 ac_top_srcdir=$srcdir ;; 1115 *) # Relative path. 1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1117 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1118esac 1119 1120# Do not use `cd foo && pwd` to compute absolute paths, because 1121# the directories may not exist. 1122case `pwd` in 1123.) ac_abs_builddir="$ac_dir";; 1124*) 1125 case "$ac_dir" in 1126 .) ac_abs_builddir=`pwd`;; 1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1128 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1129 esac;; 1130esac 1131case $ac_abs_builddir in 1132.) ac_abs_top_builddir=${ac_top_builddir}.;; 1133*) 1134 case ${ac_top_builddir}. in 1135 .) ac_abs_top_builddir=$ac_abs_builddir;; 1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1138 esac;; 1139esac 1140case $ac_abs_builddir in 1141.) ac_abs_srcdir=$ac_srcdir;; 1142*) 1143 case $ac_srcdir in 1144 .) ac_abs_srcdir=$ac_abs_builddir;; 1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1147 esac;; 1148esac 1149case $ac_abs_builddir in 1150.) ac_abs_top_srcdir=$ac_top_srcdir;; 1151*) 1152 case $ac_top_srcdir in 1153 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1156 esac;; 1157esac 1158 1159 cd $ac_dir 1160 # Check for guested configure; otherwise get Cygnus style configure. 1161 if test -f $ac_srcdir/configure.gnu; then 1162 echo 1163 $SHELL $ac_srcdir/configure.gnu --help=recursive 1164 elif test -f $ac_srcdir/configure; then 1165 echo 1166 $SHELL $ac_srcdir/configure --help=recursive 1167 elif test -f $ac_srcdir/configure.ac || 1168 test -f $ac_srcdir/configure.in; then 1169 echo 1170 $ac_configure --help 1171 else 1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1173 fi 1174 cd $ac_popdir 1175 done 1176fi 1177 1178test -n "$ac_init_help" && exit 0 1179if $ac_init_version; then 1180 cat <<\_ACEOF 1181xosd configure 2.2.14 1182generated by GNU Autoconf 2.59 1183 1184Copyright (C) 2003 Free Software Foundation, Inc. 1185This configure script is free software; the Free Software Foundation 1186gives unlimited permission to copy, distribute and modify it. 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 xosd $as_me 2.2.14, 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 1532am__api_version="1.9" 1533ac_aux_dir= 1534for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1535 if test -f $ac_dir/install-sh; then 1536 ac_aux_dir=$ac_dir 1537 ac_install_sh="$ac_aux_dir/install-sh -c" 1538 break 1539 elif test -f $ac_dir/install.sh; then 1540 ac_aux_dir=$ac_dir 1541 ac_install_sh="$ac_aux_dir/install.sh -c" 1542 break 1543 elif test -f $ac_dir/shtool; then 1544 ac_aux_dir=$ac_dir 1545 ac_install_sh="$ac_aux_dir/shtool install -c" 1546 break 1547 fi 1548done 1549if test -z "$ac_aux_dir"; then 1550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1551echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1552 { (exit 1); exit 1; }; } 1553fi 1554ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1555ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1556ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1557 1558# Find a good install program. We prefer a C program (faster), 1559# so one script is as good as another. But avoid the broken or 1560# incompatible versions: 1561# SysV /etc/install, /usr/sbin/install 1562# SunOS /usr/etc/install 1563# IRIX /sbin/install 1564# AIX /bin/install 1565# AmigaOS /C/install, which installs bootblocks on floppy discs 1566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1567# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1569# OS/2's system install, which has a completely different semantic 1570# ./install, which can be erroneously created by make from ./install.sh. 1571echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1572echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1573if test -z "$INSTALL"; then 1574if test "${ac_cv_path_install+set}" = set; then 1575 echo $ECHO_N "(cached) $ECHO_C" >&6 1576else 1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1578for as_dir in $PATH 1579do 1580 IFS=$as_save_IFS 1581 test -z "$as_dir" && as_dir=. 1582 # Account for people who put trailing slashes in PATH elements. 1583case $as_dir/ in 1584 ./ | .// | /cC/* | \ 1585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1586 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1587 /usr/ucb/* ) ;; 1588 *) 1589 # OSF1 and SCO ODT 3.0 have their own names for install. 1590 # Don't use installbsd from OSF since it installs stuff as root 1591 # by default. 1592 for ac_prog in ginstall scoinst install; do 1593 for ac_exec_ext in '' $ac_executable_extensions; do 1594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1595 if test $ac_prog = install && 1596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1597 # AIX install. It has an incompatible calling convention. 1598 : 1599 elif test $ac_prog = install && 1600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1601 # program-specific install script used by HP pwplus--don't use. 1602 : 1603 else 1604 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1605 break 3 1606 fi 1607 fi 1608 done 1609 done 1610 ;; 1611esac 1612done 1613 1614 1615fi 1616 if test "${ac_cv_path_install+set}" = set; then 1617 INSTALL=$ac_cv_path_install 1618 else 1619 # As a last resort, use the slow shell script. We don't cache a 1620 # path for INSTALL within a source directory, because that will 1621 # break other packages using the cache if that directory is 1622 # removed, or if the path is relative. 1623 INSTALL=$ac_install_sh 1624 fi 1625fi 1626echo "$as_me:$LINENO: result: $INSTALL" >&5 1627echo "${ECHO_T}$INSTALL" >&6 1628 1629# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1630# It thinks the first close brace ends the variable substitution. 1631test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1632 1633test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1634 1635test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1636 1637echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1638echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1639# Just in case 1640sleep 1 1641echo timestamp > conftest.file 1642# Do `set' in a subshell so we don't clobber the current shell's 1643# arguments. Must try -L first in case configure is actually a 1644# symlink; some systems play weird games with the mod time of symlinks 1645# (eg FreeBSD returns the mod time of the symlink's containing 1646# directory). 1647if ( 1648 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1649 if test "$*" = "X"; then 1650 # -L didn't work. 1651 set X `ls -t $srcdir/configure conftest.file` 1652 fi 1653 rm -f conftest.file 1654 if test "$*" != "X $srcdir/configure conftest.file" \ 1655 && test "$*" != "X conftest.file $srcdir/configure"; then 1656 1657 # If neither matched, then we have a broken ls. This can happen 1658 # if, for instance, CONFIG_SHELL is bash and it inherits a 1659 # broken ls alias from the environment. This has actually 1660 # happened. Such a system could not be considered "sane". 1661 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1662alias in your environment" >&5 1663echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1664alias in your environment" >&2;} 1665 { (exit 1); exit 1; }; } 1666 fi 1667 1668 test "$2" = conftest.file 1669 ) 1670then 1671 # Ok. 1672 : 1673else 1674 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1675Check your system clock" >&5 1676echo "$as_me: error: newly created file is older than distributed files! 1677Check your system clock" >&2;} 1678 { (exit 1); exit 1; }; } 1679fi 1680echo "$as_me:$LINENO: result: yes" >&5 1681echo "${ECHO_T}yes" >&6 1682test "$program_prefix" != NONE && 1683 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1684# Use a double $ so make ignores it. 1685test "$program_suffix" != NONE && 1686 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1687# Double any \ or $. echo might interpret backslashes. 1688# By default was `s,x,x', remove it if useless. 1689cat <<\_ACEOF >conftest.sed 1690s/[\\$]/&&/g;s/;s,x,x,$// 1691_ACEOF 1692program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1693rm conftest.sed 1694 1695# expand $ac_aux_dir to an absolute path 1696am_aux_dir=`cd $ac_aux_dir && pwd` 1697 1698test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1699# Use eval to expand $SHELL 1700if eval "$MISSING --run true"; then 1701 am_missing_run="$MISSING --run " 1702else 1703 am_missing_run= 1704 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1705echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1706fi 1707 1708if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1709 # We used to keeping the `.' as first argument, in order to 1710 # allow $(mkdir_p) to be used without argument. As in 1711 # $(mkdir_p) $(somedir) 1712 # where $(somedir) is conditionally defined. However this is wrong 1713 # for two reasons: 1714 # 1. if the package is installed by a user who cannot write `.' 1715 # make install will fail, 1716 # 2. the above comment should most certainly read 1717 # $(mkdir_p) $(DESTDIR)$(somedir) 1718 # so it does not work when $(somedir) is undefined and 1719 # $(DESTDIR) is not. 1720 # To support the latter case, we have to write 1721 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1722 # so the `.' trick is pointless. 1723 mkdir_p='mkdir -p --' 1724else 1725 # On NextStep and OpenStep, the `mkdir' command does not 1726 # recognize any option. It will interpret all options as 1727 # directories to create, and then abort because `.' already 1728 # exists. 1729 for d in ./-p ./--version; 1730 do 1731 test -d $d && rmdir $d 1732 done 1733 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1734 if test -f "$ac_aux_dir/mkinstalldirs"; then 1735 mkdir_p='$(mkinstalldirs)' 1736 else 1737 mkdir_p='$(install_sh) -d' 1738 fi 1739fi 1740 1741for ac_prog in gawk mawk nawk awk 1742do 1743 # Extract the first word of "$ac_prog", so it can be a program name with args. 1744set dummy $ac_prog; ac_word=$2 1745echo "$as_me:$LINENO: checking for $ac_word" >&5 1746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1747if test "${ac_cv_prog_AWK+set}" = set; then 1748 echo $ECHO_N "(cached) $ECHO_C" >&6 1749else 1750 if test -n "$AWK"; then 1751 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1752else 1753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1754for as_dir in $PATH 1755do 1756 IFS=$as_save_IFS 1757 test -z "$as_dir" && as_dir=. 1758 for ac_exec_ext in '' $ac_executable_extensions; do 1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1760 ac_cv_prog_AWK="$ac_prog" 1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1762 break 2 1763 fi 1764done 1765done 1766 1767fi 1768fi 1769AWK=$ac_cv_prog_AWK 1770if test -n "$AWK"; then 1771 echo "$as_me:$LINENO: result: $AWK" >&5 1772echo "${ECHO_T}$AWK" >&6 1773else 1774 echo "$as_me:$LINENO: result: no" >&5 1775echo "${ECHO_T}no" >&6 1776fi 1777 1778 test -n "$AWK" && break 1779done 1780 1781echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1782echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1783set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1784if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1785 echo $ECHO_N "(cached) $ECHO_C" >&6 1786else 1787 cat >conftest.make <<\_ACEOF 1788all: 1789 @echo 'ac_maketemp="$(MAKE)"' 1790_ACEOF 1791# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1792eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1793if test -n "$ac_maketemp"; then 1794 eval ac_cv_prog_make_${ac_make}_set=yes 1795else 1796 eval ac_cv_prog_make_${ac_make}_set=no 1797fi 1798rm -f conftest.make 1799fi 1800if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1801 echo "$as_me:$LINENO: result: yes" >&5 1802echo "${ECHO_T}yes" >&6 1803 SET_MAKE= 1804else 1805 echo "$as_me:$LINENO: result: no" >&5 1806echo "${ECHO_T}no" >&6 1807 SET_MAKE="MAKE=${MAKE-make}" 1808fi 1809 1810rm -rf .tst 2>/dev/null 1811mkdir .tst 2>/dev/null 1812if test -d .tst; then 1813 am__leading_dot=. 1814else 1815 am__leading_dot=_ 1816fi 1817rmdir .tst 2>/dev/null 1818 1819# test to see if srcdir already configured 1820if test "`cd $srcdir && pwd`" != "`pwd`" && 1821 test -f $srcdir/config.status; then 1822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1823echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1824 { (exit 1); exit 1; }; } 1825fi 1826 1827# test whether we have cygpath 1828if test -z "$CYGPATH_W"; then 1829 if (cygpath --version) >/dev/null 2>/dev/null; then 1830 CYGPATH_W='cygpath -w' 1831 else 1832 CYGPATH_W=echo 1833 fi 1834fi 1835 1836 1837# Define the identity of the package. 1838 PACKAGE='xosd' 1839 VERSION='2.2.14' 1840 1841 1842# Some tools Automake needs. 1843 1844ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1845 1846 1847AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1848 1849 1850AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1851 1852 1853AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1854 1855 1856MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1857 1858install_sh=${install_sh-"$am_aux_dir/install-sh"} 1859 1860# Installed binaries are usually stripped using `strip' when the user 1861# run `make install-strip'. However `strip' might not be the right 1862# tool to use in cross-compilation environments, therefore Automake 1863# will honor the `STRIP' environment variable to overrule this program. 1864if test "$cross_compiling" != no; then 1865 if test -n "$ac_tool_prefix"; then 1866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1867set dummy ${ac_tool_prefix}strip; ac_word=$2 1868echo "$as_me:$LINENO: checking for $ac_word" >&5 1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1870if test "${ac_cv_prog_STRIP+set}" = set; then 1871 echo $ECHO_N "(cached) $ECHO_C" >&6 1872else 1873 if test -n "$STRIP"; then 1874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1875else 1876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1877for as_dir in $PATH 1878do 1879 IFS=$as_save_IFS 1880 test -z "$as_dir" && as_dir=. 1881 for ac_exec_ext in '' $ac_executable_extensions; do 1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1883 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1885 break 2 1886 fi 1887done 1888done 1889 1890fi 1891fi 1892STRIP=$ac_cv_prog_STRIP 1893if test -n "$STRIP"; then 1894 echo "$as_me:$LINENO: result: $STRIP" >&5 1895echo "${ECHO_T}$STRIP" >&6 1896else 1897 echo "$as_me:$LINENO: result: no" >&5 1898echo "${ECHO_T}no" >&6 1899fi 1900 1901fi 1902if test -z "$ac_cv_prog_STRIP"; then 1903 ac_ct_STRIP=$STRIP 1904 # Extract the first word of "strip", so it can be a program name with args. 1905set dummy strip; ac_word=$2 1906echo "$as_me:$LINENO: checking for $ac_word" >&5 1907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1908if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1909 echo $ECHO_N "(cached) $ECHO_C" >&6 1910else 1911 if test -n "$ac_ct_STRIP"; then 1912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1913else 1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915for as_dir in $PATH 1916do 1917 IFS=$as_save_IFS 1918 test -z "$as_dir" && as_dir=. 1919 for ac_exec_ext in '' $ac_executable_extensions; do 1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1921 ac_cv_prog_ac_ct_STRIP="strip" 1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1923 break 2 1924 fi 1925done 1926done 1927 1928 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1929fi 1930fi 1931ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1932if test -n "$ac_ct_STRIP"; then 1933 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1934echo "${ECHO_T}$ac_ct_STRIP" >&6 1935else 1936 echo "$as_me:$LINENO: result: no" >&5 1937echo "${ECHO_T}no" >&6 1938fi 1939 1940 STRIP=$ac_ct_STRIP 1941else 1942 STRIP="$ac_cv_prog_STRIP" 1943fi 1944 1945fi 1946INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1947 1948# We need awk for the "check" target. The system "awk" is bad on 1949# some platforms. 1950# Always define AMTAR for backward compatibility. 1951 1952AMTAR=${AMTAR-"${am_missing_run}tar"} 1953 1954am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1955 1956 1957 1958 1959 1960 1961 1962 1963LT_CURRENT=4 1964LT_AGE=2 1965LT_REVISION=14 1966 1967 1968 1969 1970 1971echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1972echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1973 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1974if test "${enable_maintainer_mode+set}" = set; then 1975 enableval="$enable_maintainer_mode" 1976 USE_MAINTAINER_MODE=$enableval 1977else 1978 USE_MAINTAINER_MODE=no 1979fi; 1980 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1981echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1982 1983 1984if test $USE_MAINTAINER_MODE = yes; then 1985 MAINTAINER_MODE_TRUE= 1986 MAINTAINER_MODE_FALSE='#' 1987else 1988 MAINTAINER_MODE_TRUE='#' 1989 MAINTAINER_MODE_FALSE= 1990fi 1991 1992 MAINT=$MAINTAINER_MODE_TRUE 1993 1994 1995 1996ac_ext=c 1997ac_cpp='$CPP $CPPFLAGS' 1998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2000ac_compiler_gnu=$ac_cv_c_compiler_gnu 2001if test -n "$ac_tool_prefix"; then 2002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2003set dummy ${ac_tool_prefix}gcc; ac_word=$2 2004echo "$as_me:$LINENO: checking for $ac_word" >&5 2005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2006if test "${ac_cv_prog_CC+set}" = set; then 2007 echo $ECHO_N "(cached) $ECHO_C" >&6 2008else 2009 if test -n "$CC"; then 2010 ac_cv_prog_CC="$CC" # Let the user override the test. 2011else 2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2013for as_dir in $PATH 2014do 2015 IFS=$as_save_IFS 2016 test -z "$as_dir" && as_dir=. 2017 for ac_exec_ext in '' $ac_executable_extensions; do 2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2019 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2021 break 2 2022 fi 2023done 2024done 2025 2026fi 2027fi 2028CC=$ac_cv_prog_CC 2029if test -n "$CC"; then 2030 echo "$as_me:$LINENO: result: $CC" >&5 2031echo "${ECHO_T}$CC" >&6 2032else 2033 echo "$as_me:$LINENO: result: no" >&5 2034echo "${ECHO_T}no" >&6 2035fi 2036 2037fi 2038if test -z "$ac_cv_prog_CC"; then 2039 ac_ct_CC=$CC 2040 # Extract the first word of "gcc", so it can be a program name with args. 2041set dummy gcc; ac_word=$2 2042echo "$as_me:$LINENO: checking for $ac_word" >&5 2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2044if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2045 echo $ECHO_N "(cached) $ECHO_C" >&6 2046else 2047 if test -n "$ac_ct_CC"; then 2048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2049else 2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2051for as_dir in $PATH 2052do 2053 IFS=$as_save_IFS 2054 test -z "$as_dir" && as_dir=. 2055 for ac_exec_ext in '' $ac_executable_extensions; do 2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2057 ac_cv_prog_ac_ct_CC="gcc" 2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2059 break 2 2060 fi 2061done 2062done 2063 2064fi 2065fi 2066ac_ct_CC=$ac_cv_prog_ac_ct_CC 2067if test -n "$ac_ct_CC"; then 2068 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2069echo "${ECHO_T}$ac_ct_CC" >&6 2070else 2071 echo "$as_me:$LINENO: result: no" >&5 2072echo "${ECHO_T}no" >&6 2073fi 2074 2075 CC=$ac_ct_CC 2076else 2077 CC="$ac_cv_prog_CC" 2078fi 2079 2080if test -z "$CC"; then 2081 if test -n "$ac_tool_prefix"; then 2082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2083set dummy ${ac_tool_prefix}cc; ac_word=$2 2084echo "$as_me:$LINENO: checking for $ac_word" >&5 2085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2086if test "${ac_cv_prog_CC+set}" = set; then 2087 echo $ECHO_N "(cached) $ECHO_C" >&6 2088else 2089 if test -n "$CC"; then 2090 ac_cv_prog_CC="$CC" # Let the user override the test. 2091else 2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2093for as_dir in $PATH 2094do 2095 IFS=$as_save_IFS 2096 test -z "$as_dir" && as_dir=. 2097 for ac_exec_ext in '' $ac_executable_extensions; do 2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2099 ac_cv_prog_CC="${ac_tool_prefix}cc" 2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2101 break 2 2102 fi 2103done 2104done 2105 2106fi 2107fi 2108CC=$ac_cv_prog_CC 2109if test -n "$CC"; then 2110 echo "$as_me:$LINENO: result: $CC" >&5 2111echo "${ECHO_T}$CC" >&6 2112else 2113 echo "$as_me:$LINENO: result: no" >&5 2114echo "${ECHO_T}no" >&6 2115fi 2116 2117fi 2118if test -z "$ac_cv_prog_CC"; then 2119 ac_ct_CC=$CC 2120 # Extract the first word of "cc", so it can be a program name with args. 2121set dummy cc; ac_word=$2 2122echo "$as_me:$LINENO: checking for $ac_word" >&5 2123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2124if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2125 echo $ECHO_N "(cached) $ECHO_C" >&6 2126else 2127 if test -n "$ac_ct_CC"; then 2128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2129else 2130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2131for as_dir in $PATH 2132do 2133 IFS=$as_save_IFS 2134 test -z "$as_dir" && as_dir=. 2135 for ac_exec_ext in '' $ac_executable_extensions; do 2136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2137 ac_cv_prog_ac_ct_CC="cc" 2138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2139 break 2 2140 fi 2141done 2142done 2143 2144fi 2145fi 2146ac_ct_CC=$ac_cv_prog_ac_ct_CC 2147if test -n "$ac_ct_CC"; then 2148 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2149echo "${ECHO_T}$ac_ct_CC" >&6 2150else 2151 echo "$as_me:$LINENO: result: no" >&5 2152echo "${ECHO_T}no" >&6 2153fi 2154 2155 CC=$ac_ct_CC 2156else 2157 CC="$ac_cv_prog_CC" 2158fi 2159 2160fi 2161if test -z "$CC"; then 2162 # Extract the first word of "cc", so it can be a program name with args. 2163set dummy cc; ac_word=$2 2164echo "$as_me:$LINENO: checking for $ac_word" >&5 2165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2166if test "${ac_cv_prog_CC+set}" = set; then 2167 echo $ECHO_N "(cached) $ECHO_C" >&6 2168else 2169 if test -n "$CC"; then 2170 ac_cv_prog_CC="$CC" # Let the user override the test. 2171else 2172 ac_prog_rejected=no 2173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2174for as_dir in $PATH 2175do 2176 IFS=$as_save_IFS 2177 test -z "$as_dir" && as_dir=. 2178 for ac_exec_ext in '' $ac_executable_extensions; do 2179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2181 ac_prog_rejected=yes 2182 continue 2183 fi 2184 ac_cv_prog_CC="cc" 2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2186 break 2 2187 fi 2188done 2189done 2190 2191if test $ac_prog_rejected = yes; then 2192 # We found a bogon in the path, so make sure we never use it. 2193 set dummy $ac_cv_prog_CC 2194 shift 2195 if test $# != 0; then 2196 # We chose a different compiler from the bogus one. 2197 # However, it has the same basename, so the bogon will be chosen 2198 # first if we set CC to just the basename; use the full file name. 2199 shift 2200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2201 fi 2202fi 2203fi 2204fi 2205CC=$ac_cv_prog_CC 2206if test -n "$CC"; then 2207 echo "$as_me:$LINENO: result: $CC" >&5 2208echo "${ECHO_T}$CC" >&6 2209else 2210 echo "$as_me:$LINENO: result: no" >&5 2211echo "${ECHO_T}no" >&6 2212fi 2213 2214fi 2215if test -z "$CC"; then 2216 if test -n "$ac_tool_prefix"; then 2217 for ac_prog in cl 2218 do 2219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2220set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2221echo "$as_me:$LINENO: checking for $ac_word" >&5 2222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2223if test "${ac_cv_prog_CC+set}" = set; then 2224 echo $ECHO_N "(cached) $ECHO_C" >&6 2225else 2226 if test -n "$CC"; then 2227 ac_cv_prog_CC="$CC" # Let the user override the test. 2228else 2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2230for as_dir in $PATH 2231do 2232 IFS=$as_save_IFS 2233 test -z "$as_dir" && as_dir=. 2234 for ac_exec_ext in '' $ac_executable_extensions; do 2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2238 break 2 2239 fi 2240done 2241done 2242 2243fi 2244fi 2245CC=$ac_cv_prog_CC 2246if test -n "$CC"; then 2247 echo "$as_me:$LINENO: result: $CC" >&5 2248echo "${ECHO_T}$CC" >&6 2249else 2250 echo "$as_me:$LINENO: result: no" >&5 2251echo "${ECHO_T}no" >&6 2252fi 2253 2254 test -n "$CC" && break 2255 done 2256fi 2257if test -z "$CC"; then 2258 ac_ct_CC=$CC 2259 for ac_prog in cl 2260do 2261 # Extract the first word of "$ac_prog", so it can be a program name with args. 2262set dummy $ac_prog; ac_word=$2 2263echo "$as_me:$LINENO: checking for $ac_word" >&5 2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2265if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2266 echo $ECHO_N "(cached) $ECHO_C" >&6 2267else 2268 if test -n "$ac_ct_CC"; then 2269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2270else 2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2272for as_dir in $PATH 2273do 2274 IFS=$as_save_IFS 2275 test -z "$as_dir" && as_dir=. 2276 for ac_exec_ext in '' $ac_executable_extensions; do 2277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2278 ac_cv_prog_ac_ct_CC="$ac_prog" 2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2280 break 2 2281 fi 2282done 2283done 2284 2285fi 2286fi 2287ac_ct_CC=$ac_cv_prog_ac_ct_CC 2288if test -n "$ac_ct_CC"; then 2289 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2290echo "${ECHO_T}$ac_ct_CC" >&6 2291else 2292 echo "$as_me:$LINENO: result: no" >&5 2293echo "${ECHO_T}no" >&6 2294fi 2295 2296 test -n "$ac_ct_CC" && break 2297done 2298 2299 CC=$ac_ct_CC 2300fi 2301 2302fi 2303 2304 2305test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2306See \`config.log' for more details." >&5 2307echo "$as_me: error: no acceptable C compiler found in \$PATH 2308See \`config.log' for more details." >&2;} 2309 { (exit 1); exit 1; }; } 2310 2311# Provide some information about the compiler. 2312echo "$as_me:$LINENO:" \ 2313 "checking for C compiler version" >&5 2314ac_compiler=`set X $ac_compile; echo $2` 2315{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2316 (eval $ac_compiler --version </dev/null >&5) 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); } 2320{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2321 (eval $ac_compiler -v </dev/null >&5) 2>&5 2322 ac_status=$? 2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2324 (exit $ac_status); } 2325{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2326 (eval $ac_compiler -V </dev/null >&5) 2>&5 2327 ac_status=$? 2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2329 (exit $ac_status); } 2330 2331cat >conftest.$ac_ext <<_ACEOF 2332/* confdefs.h. */ 2333_ACEOF 2334cat confdefs.h >>conftest.$ac_ext 2335cat >>conftest.$ac_ext <<_ACEOF 2336/* end confdefs.h. */ 2337 2338int 2339main () 2340{ 2341 2342 ; 2343 return 0; 2344} 2345_ACEOF 2346ac_clean_files_save=$ac_clean_files 2347ac_clean_files="$ac_clean_files a.out a.exe b.out" 2348# Try to create an executable without -o first, disregard a.out. 2349# It will help us diagnose broken compilers, and finding out an intuition 2350# of exeext. 2351echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2352echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2353ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2354if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2355 (eval $ac_link_default) 2>&5 2356 ac_status=$? 2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2358 (exit $ac_status); }; then 2359 # Find the output, starting from the most likely. This scheme is 2360# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2361# resort. 2362 2363# Be careful to initialize this variable, since it used to be cached. 2364# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2365ac_cv_exeext= 2366# b.out is created by i960 compilers. 2367for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2368do 2369 test -f "$ac_file" || continue 2370 case $ac_file in 2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2372 ;; 2373 conftest.$ac_ext ) 2374 # This is the source file. 2375 ;; 2376 [ab].out ) 2377 # We found the default executable, but exeext='' is most 2378 # certainly right. 2379 break;; 2380 *.* ) 2381 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2382 # FIXME: I believe we export ac_cv_exeext for Libtool, 2383 # but it would be cool to find out if it's true. Does anybody 2384 # maintain Libtool? --akim. 2385 export ac_cv_exeext 2386 break;; 2387 * ) 2388 break;; 2389 esac 2390done 2391else 2392 echo "$as_me: failed program was:" >&5 2393sed 's/^/| /' conftest.$ac_ext >&5 2394 2395{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2396See \`config.log' for more details." >&5 2397echo "$as_me: error: C compiler cannot create executables 2398See \`config.log' for more details." >&2;} 2399 { (exit 77); exit 77; }; } 2400fi 2401 2402ac_exeext=$ac_cv_exeext 2403echo "$as_me:$LINENO: result: $ac_file" >&5 2404echo "${ECHO_T}$ac_file" >&6 2405 2406# Check the compiler produces executables we can run. If not, either 2407# the compiler is broken, or we cross compile. 2408echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2409echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2410# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2411# If not cross compiling, check that we can run a simple program. 2412if test "$cross_compiling" != yes; then 2413 if { ac_try='./$ac_file' 2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2415 (eval $ac_try) 2>&5 2416 ac_status=$? 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2418 (exit $ac_status); }; }; then 2419 cross_compiling=no 2420 else 2421 if test "$cross_compiling" = maybe; then 2422 cross_compiling=yes 2423 else 2424 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2425If you meant to cross compile, use \`--host'. 2426See \`config.log' for more details." >&5 2427echo "$as_me: error: cannot run C compiled programs. 2428If you meant to cross compile, use \`--host'. 2429See \`config.log' for more details." >&2;} 2430 { (exit 1); exit 1; }; } 2431 fi 2432 fi 2433fi 2434echo "$as_me:$LINENO: result: yes" >&5 2435echo "${ECHO_T}yes" >&6 2436 2437rm -f a.out a.exe conftest$ac_cv_exeext b.out 2438ac_clean_files=$ac_clean_files_save 2439# Check the compiler produces executables we can run. If not, either 2440# the compiler is broken, or we cross compile. 2441echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2442echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2443echo "$as_me:$LINENO: result: $cross_compiling" >&5 2444echo "${ECHO_T}$cross_compiling" >&6 2445 2446echo "$as_me:$LINENO: checking for suffix of executables" >&5 2447echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2449 (eval $ac_link) 2>&5 2450 ac_status=$? 2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2452 (exit $ac_status); }; then 2453 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2454# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2455# work properly (i.e., refer to `conftest.exe'), while it won't with 2456# `rm'. 2457for ac_file in conftest.exe conftest conftest.*; do 2458 test -f "$ac_file" || continue 2459 case $ac_file in 2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2461 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2462 export ac_cv_exeext 2463 break;; 2464 * ) break;; 2465 esac 2466done 2467else 2468 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2469See \`config.log' for more details." >&5 2470echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2471See \`config.log' for more details." >&2;} 2472 { (exit 1); exit 1; }; } 2473fi 2474 2475rm -f conftest$ac_cv_exeext 2476echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2477echo "${ECHO_T}$ac_cv_exeext" >&6 2478 2479rm -f conftest.$ac_ext 2480EXEEXT=$ac_cv_exeext 2481ac_exeext=$EXEEXT 2482echo "$as_me:$LINENO: checking for suffix of object files" >&5 2483echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2484if test "${ac_cv_objext+set}" = set; then 2485 echo $ECHO_N "(cached) $ECHO_C" >&6 2486else 2487 cat >conftest.$ac_ext <<_ACEOF 2488/* confdefs.h. */ 2489_ACEOF 2490cat confdefs.h >>conftest.$ac_ext 2491cat >>conftest.$ac_ext <<_ACEOF 2492/* end confdefs.h. */ 2493 2494int 2495main () 2496{ 2497 2498 ; 2499 return 0; 2500} 2501_ACEOF 2502rm -f conftest.o conftest.obj 2503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2504 (eval $ac_compile) 2>&5 2505 ac_status=$? 2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2507 (exit $ac_status); }; then 2508 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2509 case $ac_file in 2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2512 break;; 2513 esac 2514done 2515else 2516 echo "$as_me: failed program was:" >&5 2517sed 's/^/| /' conftest.$ac_ext >&5 2518 2519{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2520See \`config.log' for more details." >&5 2521echo "$as_me: error: cannot compute suffix of object files: cannot compile 2522See \`config.log' for more details." >&2;} 2523 { (exit 1); exit 1; }; } 2524fi 2525 2526rm -f conftest.$ac_cv_objext conftest.$ac_ext 2527fi 2528echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2529echo "${ECHO_T}$ac_cv_objext" >&6 2530OBJEXT=$ac_cv_objext 2531ac_objext=$OBJEXT 2532echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2533echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2534if test "${ac_cv_c_compiler_gnu+set}" = set; then 2535 echo $ECHO_N "(cached) $ECHO_C" >&6 2536else 2537 cat >conftest.$ac_ext <<_ACEOF 2538/* confdefs.h. */ 2539_ACEOF 2540cat confdefs.h >>conftest.$ac_ext 2541cat >>conftest.$ac_ext <<_ACEOF 2542/* end confdefs.h. */ 2543 2544int 2545main () 2546{ 2547#ifndef __GNUC__ 2548 choke me 2549#endif 2550 2551 ; 2552 return 0; 2553} 2554_ACEOF 2555rm -f conftest.$ac_objext 2556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2557 (eval $ac_compile) 2>conftest.er1 2558 ac_status=$? 2559 grep -v '^ *+' conftest.er1 >conftest.err 2560 rm -f conftest.er1 2561 cat conftest.err >&5 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2563 (exit $ac_status); } && 2564 { ac_try='test -z "$ac_c_werror_flag" 2565 || test ! -s conftest.err' 2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2567 (eval $ac_try) 2>&5 2568 ac_status=$? 2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2570 (exit $ac_status); }; } && 2571 { ac_try='test -s conftest.$ac_objext' 2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2573 (eval $ac_try) 2>&5 2574 ac_status=$? 2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2576 (exit $ac_status); }; }; then 2577 ac_compiler_gnu=yes 2578else 2579 echo "$as_me: failed program was:" >&5 2580sed 's/^/| /' conftest.$ac_ext >&5 2581 2582ac_compiler_gnu=no 2583fi 2584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2585ac_cv_c_compiler_gnu=$ac_compiler_gnu 2586 2587fi 2588echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2589echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2590GCC=`test $ac_compiler_gnu = yes && echo yes` 2591ac_test_CFLAGS=${CFLAGS+set} 2592ac_save_CFLAGS=$CFLAGS 2593CFLAGS="-g" 2594echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2595echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2596if test "${ac_cv_prog_cc_g+set}" = set; then 2597 echo $ECHO_N "(cached) $ECHO_C" >&6 2598else 2599 cat >conftest.$ac_ext <<_ACEOF 2600/* confdefs.h. */ 2601_ACEOF 2602cat confdefs.h >>conftest.$ac_ext 2603cat >>conftest.$ac_ext <<_ACEOF 2604/* end confdefs.h. */ 2605 2606int 2607main () 2608{ 2609 2610 ; 2611 return 0; 2612} 2613_ACEOF 2614rm -f conftest.$ac_objext 2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2616 (eval $ac_compile) 2>conftest.er1 2617 ac_status=$? 2618 grep -v '^ *+' conftest.er1 >conftest.err 2619 rm -f conftest.er1 2620 cat conftest.err >&5 2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2622 (exit $ac_status); } && 2623 { ac_try='test -z "$ac_c_werror_flag" 2624 || test ! -s conftest.err' 2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2626 (eval $ac_try) 2>&5 2627 ac_status=$? 2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2629 (exit $ac_status); }; } && 2630 { ac_try='test -s conftest.$ac_objext' 2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2632 (eval $ac_try) 2>&5 2633 ac_status=$? 2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2635 (exit $ac_status); }; }; then 2636 ac_cv_prog_cc_g=yes 2637else 2638 echo "$as_me: failed program was:" >&5 2639sed 's/^/| /' conftest.$ac_ext >&5 2640 2641ac_cv_prog_cc_g=no 2642fi 2643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2644fi 2645echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2646echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2647if test "$ac_test_CFLAGS" = set; then 2648 CFLAGS=$ac_save_CFLAGS 2649elif test $ac_cv_prog_cc_g = yes; then 2650 if test "$GCC" = yes; then 2651 CFLAGS="-g -O2" 2652 else 2653 CFLAGS="-g" 2654 fi 2655else 2656 if test "$GCC" = yes; then 2657 CFLAGS="-O2" 2658 else 2659 CFLAGS= 2660 fi 2661fi 2662echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2663echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2664if test "${ac_cv_prog_cc_stdc+set}" = set; then 2665 echo $ECHO_N "(cached) $ECHO_C" >&6 2666else 2667 ac_cv_prog_cc_stdc=no 2668ac_save_CC=$CC 2669cat >conftest.$ac_ext <<_ACEOF 2670/* confdefs.h. */ 2671_ACEOF 2672cat confdefs.h >>conftest.$ac_ext 2673cat >>conftest.$ac_ext <<_ACEOF 2674/* end confdefs.h. */ 2675#include <stdarg.h> 2676#include <stdio.h> 2677#include <sys/types.h> 2678#include <sys/stat.h> 2679/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2680struct buf { int x; }; 2681FILE * (*rcsopen) (struct buf *, struct stat *, int); 2682static char *e (p, i) 2683 char **p; 2684 int i; 2685{ 2686 return p[i]; 2687} 2688static char *f (char * (*g) (char **, int), char **p, ...) 2689{ 2690 char *s; 2691 va_list v; 2692 va_start (v,p); 2693 s = g (p, va_arg (v,int)); 2694 va_end (v); 2695 return s; 2696} 2697 2698/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2699 function prototypes and stuff, but not '\xHH' hex character constants. 2700 These don't provoke an error unfortunately, instead are silently treated 2701 as 'x'. The following induces an error, until -std1 is added to get 2702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2703 array size at least. It's necessary to write '\x00'==0 to get something 2704 that's true only with -std1. */ 2705int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2706 2707int test (int i, double x); 2708struct s1 {int (*f) (int a);}; 2709struct s2 {int (*f) (double a);}; 2710int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2711int argc; 2712char **argv; 2713int 2714main () 2715{ 2716return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2717 ; 2718 return 0; 2719} 2720_ACEOF 2721# Don't try gcc -ansi; that turns off useful extensions and 2722# breaks some systems' header files. 2723# AIX -qlanglvl=ansi 2724# Ultrix and OSF/1 -std1 2725# HP-UX 10.20 and later -Ae 2726# HP-UX older versions -Aa -D_HPUX_SOURCE 2727# SVR4 -Xc -D__EXTENSIONS__ 2728for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2729do 2730 CC="$ac_save_CC $ac_arg" 2731 rm -f conftest.$ac_objext 2732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2733 (eval $ac_compile) 2>conftest.er1 2734 ac_status=$? 2735 grep -v '^ *+' conftest.er1 >conftest.err 2736 rm -f conftest.er1 2737 cat conftest.err >&5 2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2739 (exit $ac_status); } && 2740 { ac_try='test -z "$ac_c_werror_flag" 2741 || test ! -s conftest.err' 2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2743 (eval $ac_try) 2>&5 2744 ac_status=$? 2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2746 (exit $ac_status); }; } && 2747 { ac_try='test -s conftest.$ac_objext' 2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2749 (eval $ac_try) 2>&5 2750 ac_status=$? 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 (exit $ac_status); }; }; then 2753 ac_cv_prog_cc_stdc=$ac_arg 2754break 2755else 2756 echo "$as_me: failed program was:" >&5 2757sed 's/^/| /' conftest.$ac_ext >&5 2758 2759fi 2760rm -f conftest.err conftest.$ac_objext 2761done 2762rm -f conftest.$ac_ext conftest.$ac_objext 2763CC=$ac_save_CC 2764 2765fi 2766 2767case "x$ac_cv_prog_cc_stdc" in 2768 x|xno) 2769 echo "$as_me:$LINENO: result: none needed" >&5 2770echo "${ECHO_T}none needed" >&6 ;; 2771 *) 2772 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2773echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2774 CC="$CC $ac_cv_prog_cc_stdc" ;; 2775esac 2776 2777# Some people use a C++ compiler to compile C. Since we use `exit', 2778# in C++ we need to declare it. In case someone uses the same compiler 2779# for both compiling C and C++ we need to have the C++ compiler decide 2780# the declaration of exit, since it's the most demanding environment. 2781cat >conftest.$ac_ext <<_ACEOF 2782#ifndef __cplusplus 2783 choke me 2784#endif 2785_ACEOF 2786rm -f conftest.$ac_objext 2787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2788 (eval $ac_compile) 2>conftest.er1 2789 ac_status=$? 2790 grep -v '^ *+' conftest.er1 >conftest.err 2791 rm -f conftest.er1 2792 cat conftest.err >&5 2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2794 (exit $ac_status); } && 2795 { ac_try='test -z "$ac_c_werror_flag" 2796 || test ! -s conftest.err' 2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2798 (eval $ac_try) 2>&5 2799 ac_status=$? 2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2801 (exit $ac_status); }; } && 2802 { ac_try='test -s conftest.$ac_objext' 2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2804 (eval $ac_try) 2>&5 2805 ac_status=$? 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); }; }; then 2808 for ac_declaration in \ 2809 '' \ 2810 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2811 'extern "C" void std::exit (int); using std::exit;' \ 2812 'extern "C" void exit (int) throw ();' \ 2813 'extern "C" void exit (int);' \ 2814 'void exit (int);' 2815do 2816 cat >conftest.$ac_ext <<_ACEOF 2817/* confdefs.h. */ 2818_ACEOF 2819cat confdefs.h >>conftest.$ac_ext 2820cat >>conftest.$ac_ext <<_ACEOF 2821/* end confdefs.h. */ 2822$ac_declaration 2823#include <stdlib.h> 2824int 2825main () 2826{ 2827exit (42); 2828 ; 2829 return 0; 2830} 2831_ACEOF 2832rm -f conftest.$ac_objext 2833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2834 (eval $ac_compile) 2>conftest.er1 2835 ac_status=$? 2836 grep -v '^ *+' conftest.er1 >conftest.err 2837 rm -f conftest.er1 2838 cat conftest.err >&5 2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2840 (exit $ac_status); } && 2841 { ac_try='test -z "$ac_c_werror_flag" 2842 || test ! -s conftest.err' 2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2844 (eval $ac_try) 2>&5 2845 ac_status=$? 2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847 (exit $ac_status); }; } && 2848 { ac_try='test -s conftest.$ac_objext' 2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2850 (eval $ac_try) 2>&5 2851 ac_status=$? 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); }; }; then 2854 : 2855else 2856 echo "$as_me: failed program was:" >&5 2857sed 's/^/| /' conftest.$ac_ext >&5 2858 2859continue 2860fi 2861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2862 cat >conftest.$ac_ext <<_ACEOF 2863/* confdefs.h. */ 2864_ACEOF 2865cat confdefs.h >>conftest.$ac_ext 2866cat >>conftest.$ac_ext <<_ACEOF 2867/* end confdefs.h. */ 2868$ac_declaration 2869int 2870main () 2871{ 2872exit (42); 2873 ; 2874 return 0; 2875} 2876_ACEOF 2877rm -f conftest.$ac_objext 2878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2879 (eval $ac_compile) 2>conftest.er1 2880 ac_status=$? 2881 grep -v '^ *+' conftest.er1 >conftest.err 2882 rm -f conftest.er1 2883 cat conftest.err >&5 2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2885 (exit $ac_status); } && 2886 { ac_try='test -z "$ac_c_werror_flag" 2887 || test ! -s conftest.err' 2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2889 (eval $ac_try) 2>&5 2890 ac_status=$? 2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2892 (exit $ac_status); }; } && 2893 { ac_try='test -s conftest.$ac_objext' 2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2895 (eval $ac_try) 2>&5 2896 ac_status=$? 2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2898 (exit $ac_status); }; }; then 2899 break 2900else 2901 echo "$as_me: failed program was:" >&5 2902sed 's/^/| /' conftest.$ac_ext >&5 2903 2904fi 2905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2906done 2907rm -f conftest* 2908if test -n "$ac_declaration"; then 2909 echo '#ifdef __cplusplus' >>confdefs.h 2910 echo $ac_declaration >>confdefs.h 2911 echo '#endif' >>confdefs.h 2912fi 2913 2914else 2915 echo "$as_me: failed program was:" >&5 2916sed 's/^/| /' conftest.$ac_ext >&5 2917 2918fi 2919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2920ac_ext=c 2921ac_cpp='$CPP $CPPFLAGS' 2922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2924ac_compiler_gnu=$ac_cv_c_compiler_gnu 2925DEPDIR="${am__leading_dot}deps" 2926 2927 ac_config_commands="$ac_config_commands depfiles" 2928 2929 2930am_make=${MAKE-make} 2931cat > confinc << 'END' 2932am__doit: 2933 @echo done 2934.PHONY: am__doit 2935END 2936# If we don't find an include directive, just comment out the code. 2937echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2938echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2939am__include="#" 2940am__quote= 2941_am_result=none 2942# First try GNU make style include. 2943echo "include confinc" > confmf 2944# We grep out `Entering directory' and `Leaving directory' 2945# messages which can occur if `w' ends up in MAKEFLAGS. 2946# In particular we don't look at `^make:' because GNU make might 2947# be invoked under some other name (usually "gmake"), in which 2948# case it prints its new name instead of `make'. 2949if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2950 am__include=include 2951 am__quote= 2952 _am_result=GNU 2953fi 2954# Now try BSD make style include. 2955if test "$am__include" = "#"; then 2956 echo '.include "confinc"' > confmf 2957 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2958 am__include=.include 2959 am__quote="\"" 2960 _am_result=BSD 2961 fi 2962fi 2963 2964 2965echo "$as_me:$LINENO: result: $_am_result" >&5 2966echo "${ECHO_T}$_am_result" >&6 2967rm -f confinc confmf 2968 2969# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2970if test "${enable_dependency_tracking+set}" = set; then 2971 enableval="$enable_dependency_tracking" 2972 2973fi; 2974if test "x$enable_dependency_tracking" != xno; then 2975 am_depcomp="$ac_aux_dir/depcomp" 2976 AMDEPBACKSLASH='\' 2977fi 2978 2979 2980if test "x$enable_dependency_tracking" != xno; then 2981 AMDEP_TRUE= 2982 AMDEP_FALSE='#' 2983else 2984 AMDEP_TRUE='#' 2985 AMDEP_FALSE= 2986fi 2987 2988 2989 2990 2991depcc="$CC" am_compiler_list= 2992 2993echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2994echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2995if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2996 echo $ECHO_N "(cached) $ECHO_C" >&6 2997else 2998 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2999 # We make a subdir and do the tests there. Otherwise we can end up 3000 # making bogus files that we don't know about and never remove. For 3001 # instance it was reported that on HP-UX the gcc test will end up 3002 # making a dummy file named `D' -- because `-MD' means `put the output 3003 # in D'. 3004 mkdir conftest.dir 3005 # Copy depcomp to subdir because otherwise we won't find it if we're 3006 # using a relative directory. 3007 cp "$am_depcomp" conftest.dir 3008 cd conftest.dir 3009 # We will build objects and dependencies in a subdirectory because 3010 # it helps to detect inapplicable dependency modes. For instance 3011 # both Tru64's cc and ICC support -MD to output dependencies as a 3012 # side effect of compilation, but ICC will put the dependencies in 3013 # the current directory while Tru64 will put them in the object 3014 # directory. 3015 mkdir sub 3016 3017 am_cv_CC_dependencies_compiler_type=none 3018 if test "$am_compiler_list" = ""; then 3019 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3020 fi 3021 for depmode in $am_compiler_list; do 3022 # Setup a source with many dependencies, because some compilers 3023 # like to wrap large dependency lists on column 80 (with \), and 3024 # we should not choose a depcomp mode which is confused by this. 3025 # 3026 # We need to recreate these files for each test, as the compiler may 3027 # overwrite some of them when testing with obscure command lines. 3028 # This happens at least with the AIX C compiler. 3029 : > sub/conftest.c 3030 for i in 1 2 3 4 5 6; do 3031 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3032 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3033 # Solaris 8's {/usr,}/bin/sh. 3034 touch sub/conftst$i.h 3035 done 3036 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3037 3038 case $depmode in 3039 nosideeffect) 3040 # after this tag, mechanisms are not by side-effect, so they'll 3041 # only be used when explicitly requested 3042 if test "x$enable_dependency_tracking" = xyes; then 3043 continue 3044 else 3045 break 3046 fi 3047 ;; 3048 none) break ;; 3049 esac 3050 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3051 # mode. It turns out that the SunPro C++ compiler does not properly 3052 # handle `-M -o', and we need to detect this. 3053 if depmode=$depmode \ 3054 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3056 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3057 >/dev/null 2>conftest.err && 3058 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3059 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3060 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3061 # icc doesn't choke on unknown options, it will just issue warnings 3062 # or remarks (even with -Werror). So we grep stderr for any message 3063 # that says an option was ignored or not supported. 3064 # When given -MP, icc 7.0 and 7.1 complain thusly: 3065 # icc: Command line warning: ignoring option '-M'; no argument required 3066 # The diagnosis changed in icc 8.0: 3067 # icc: Command line remark: option '-MP' not supported 3068 if (grep 'ignoring option' conftest.err || 3069 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3070 am_cv_CC_dependencies_compiler_type=$depmode 3071 break 3072 fi 3073 fi 3074 done 3075 3076 cd .. 3077 rm -rf conftest.dir 3078else 3079 am_cv_CC_dependencies_compiler_type=none 3080fi 3081 3082fi 3083echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3084echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3085CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3086 3087 3088 3089if 3090 test "x$enable_dependency_tracking" != xno \ 3091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3092 am__fastdepCC_TRUE= 3093 am__fastdepCC_FALSE='#' 3094else 3095 am__fastdepCC_TRUE='#' 3096 am__fastdepCC_FALSE= 3097fi 3098 3099 3100# Find a good install program. We prefer a C program (faster), 3101# so one script is as good as another. But avoid the broken or 3102# incompatible versions: 3103# SysV /etc/install, /usr/sbin/install 3104# SunOS /usr/etc/install 3105# IRIX /sbin/install 3106# AIX /bin/install 3107# AmigaOS /C/install, which installs bootblocks on floppy discs 3108# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3109# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3110# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3111# OS/2's system install, which has a completely different semantic 3112# ./install, which can be erroneously created by make from ./install.sh. 3113echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3114echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3115if test -z "$INSTALL"; then 3116if test "${ac_cv_path_install+set}" = set; then 3117 echo $ECHO_N "(cached) $ECHO_C" >&6 3118else 3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3120for as_dir in $PATH 3121do 3122 IFS=$as_save_IFS 3123 test -z "$as_dir" && as_dir=. 3124 # Account for people who put trailing slashes in PATH elements. 3125case $as_dir/ in 3126 ./ | .// | /cC/* | \ 3127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3128 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3129 /usr/ucb/* ) ;; 3130 *) 3131 # OSF1 and SCO ODT 3.0 have their own names for install. 3132 # Don't use installbsd from OSF since it installs stuff as root 3133 # by default. 3134 for ac_prog in ginstall scoinst install; do 3135 for ac_exec_ext in '' $ac_executable_extensions; do 3136 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3137 if test $ac_prog = install && 3138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3139 # AIX install. It has an incompatible calling convention. 3140 : 3141 elif test $ac_prog = install && 3142 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3143 # program-specific install script used by HP pwplus--don't use. 3144 : 3145 else 3146 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3147 break 3 3148 fi 3149 fi 3150 done 3151 done 3152 ;; 3153esac 3154done 3155 3156 3157fi 3158 if test "${ac_cv_path_install+set}" = set; then 3159 INSTALL=$ac_cv_path_install 3160 else 3161 # As a last resort, use the slow shell script. We don't cache a 3162 # path for INSTALL within a source directory, because that will 3163 # break other packages using the cache if that directory is 3164 # removed, or if the path is relative. 3165 INSTALL=$ac_install_sh 3166 fi 3167fi 3168echo "$as_me:$LINENO: result: $INSTALL" >&5 3169echo "${ECHO_T}$INSTALL" >&6 3170 3171# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3172# It thinks the first close brace ends the variable substitution. 3173test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3174 3175test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3176 3177test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3178 3179echo "$as_me:$LINENO: checking whether ln -s works" >&5 3180echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3181LN_S=$as_ln_s 3182if test "$LN_S" = "ln -s"; then 3183 echo "$as_me:$LINENO: result: yes" >&5 3184echo "${ECHO_T}yes" >&6 3185else 3186 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3187echo "${ECHO_T}no, using $LN_S" >&6 3188fi 3189 3190# Check whether --enable-shared or --disable-shared was given. 3191if test "${enable_shared+set}" = set; then 3192 enableval="$enable_shared" 3193 p=${PACKAGE-default} 3194 case $enableval in 3195 yes) enable_shared=yes ;; 3196 no) enable_shared=no ;; 3197 *) 3198 enable_shared=no 3199 # Look at the argument we got. We use all the common list separators. 3200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3201 for pkg in $enableval; do 3202 IFS="$lt_save_ifs" 3203 if test "X$pkg" = "X$p"; then 3204 enable_shared=yes 3205 fi 3206 done 3207 IFS="$lt_save_ifs" 3208 ;; 3209 esac 3210else 3211 enable_shared=yes 3212fi; 3213 3214# Check whether --enable-static or --disable-static was given. 3215if test "${enable_static+set}" = set; then 3216 enableval="$enable_static" 3217 p=${PACKAGE-default} 3218 case $enableval in 3219 yes) enable_static=yes ;; 3220 no) enable_static=no ;; 3221 *) 3222 enable_static=no 3223 # Look at the argument we got. We use all the common list separators. 3224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3225 for pkg in $enableval; do 3226 IFS="$lt_save_ifs" 3227 if test "X$pkg" = "X$p"; then 3228 enable_static=yes 3229 fi 3230 done 3231 IFS="$lt_save_ifs" 3232 ;; 3233 esac 3234else 3235 enable_static=yes 3236fi; 3237 3238# Check whether --enable-fast-install or --disable-fast-install was given. 3239if test "${enable_fast_install+set}" = set; then 3240 enableval="$enable_fast_install" 3241 p=${PACKAGE-default} 3242 case $enableval in 3243 yes) enable_fast_install=yes ;; 3244 no) enable_fast_install=no ;; 3245 *) 3246 enable_fast_install=no 3247 # Look at the argument we got. We use all the common list separators. 3248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3249 for pkg in $enableval; do 3250 IFS="$lt_save_ifs" 3251 if test "X$pkg" = "X$p"; then 3252 enable_fast_install=yes 3253 fi 3254 done 3255 IFS="$lt_save_ifs" 3256 ;; 3257 esac 3258else 3259 enable_fast_install=yes 3260fi; 3261 3262# Make sure we can run config.sub. 3263$ac_config_sub sun4 >/dev/null 2>&1 || 3264 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3265echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3266 { (exit 1); exit 1; }; } 3267 3268echo "$as_me:$LINENO: checking build system type" >&5 3269echo $ECHO_N "checking build system type... $ECHO_C" >&6 3270if test "${ac_cv_build+set}" = set; then 3271 echo $ECHO_N "(cached) $ECHO_C" >&6 3272else 3273 ac_cv_build_alias=$build_alias 3274test -z "$ac_cv_build_alias" && 3275 ac_cv_build_alias=`$ac_config_guess` 3276test -z "$ac_cv_build_alias" && 3277 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3278echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3279 { (exit 1); exit 1; }; } 3280ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3281 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3282echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3283 { (exit 1); exit 1; }; } 3284 3285fi 3286echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3287echo "${ECHO_T}$ac_cv_build" >&6 3288build=$ac_cv_build 3289build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3290build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3291build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3292 3293 3294echo "$as_me:$LINENO: checking host system type" >&5 3295echo $ECHO_N "checking host system type... $ECHO_C" >&6 3296if test "${ac_cv_host+set}" = set; then 3297 echo $ECHO_N "(cached) $ECHO_C" >&6 3298else 3299 ac_cv_host_alias=$host_alias 3300test -z "$ac_cv_host_alias" && 3301 ac_cv_host_alias=$ac_cv_build_alias 3302ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3303 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3304echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3305 { (exit 1); exit 1; }; } 3306 3307fi 3308echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3309echo "${ECHO_T}$ac_cv_host" >&6 3310host=$ac_cv_host 3311host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3312host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3313host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3314 3315 3316echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3317echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3318if test "${lt_cv_path_SED+set}" = set; then 3319 echo $ECHO_N "(cached) $ECHO_C" >&6 3320else 3321 # Loop through the user's path and test for sed and gsed. 3322# Then use that list of sed's as ones to test for truncation. 3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324for as_dir in $PATH 3325do 3326 IFS=$as_save_IFS 3327 test -z "$as_dir" && as_dir=. 3328 for lt_ac_prog in sed gsed; do 3329 for ac_exec_ext in '' $ac_executable_extensions; do 3330 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3331 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3332 fi 3333 done 3334 done 3335done 3336lt_ac_max=0 3337lt_ac_count=0 3338# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3339# along with /bin/sed that truncates output. 3340for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3341 test ! -f $lt_ac_sed && break 3342 cat /dev/null > conftest.in 3343 lt_ac_count=0 3344 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3345 # Check for GNU sed and select it if it is found. 3346 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3347 lt_cv_path_SED=$lt_ac_sed 3348 break 3349 fi 3350 while true; do 3351 cat conftest.in conftest.in >conftest.tmp 3352 mv conftest.tmp conftest.in 3353 cp conftest.in conftest.nl 3354 echo >>conftest.nl 3355 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3356 cmp -s conftest.out conftest.nl || break 3357 # 10000 chars as input seems more than enough 3358 test $lt_ac_count -gt 10 && break 3359 lt_ac_count=`expr $lt_ac_count + 1` 3360 if test $lt_ac_count -gt $lt_ac_max; then 3361 lt_ac_max=$lt_ac_count 3362 lt_cv_path_SED=$lt_ac_sed 3363 fi 3364 done 3365done 3366SED=$lt_cv_path_SED 3367 3368fi 3369 3370echo "$as_me:$LINENO: result: $SED" >&5 3371echo "${ECHO_T}$SED" >&6 3372 3373echo "$as_me:$LINENO: checking for egrep" >&5 3374echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3375if test "${ac_cv_prog_egrep+set}" = set; then 3376 echo $ECHO_N "(cached) $ECHO_C" >&6 3377else 3378 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3379 then ac_cv_prog_egrep='grep -E' 3380 else ac_cv_prog_egrep='egrep' 3381 fi 3382fi 3383echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3384echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3385 EGREP=$ac_cv_prog_egrep 3386 3387 3388 3389# Check whether --with-gnu-ld or --without-gnu-ld was given. 3390if test "${with_gnu_ld+set}" = set; then 3391 withval="$with_gnu_ld" 3392 test "$withval" = no || with_gnu_ld=yes 3393else 3394 with_gnu_ld=no 3395fi; 3396ac_prog=ld 3397if test "$GCC" = yes; then 3398 # Check if gcc -print-prog-name=ld gives a path. 3399 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3400echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3401 case $host in 3402 *-*-mingw*) 3403 # gcc leaves a trailing carriage return which upsets mingw 3404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3405 *) 3406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3407 esac 3408 case $ac_prog in 3409 # Accept absolute paths. 3410 [\\/]* | ?:[\\/]*) 3411 re_direlt='/[^/][^/]*/\.\./' 3412 # Canonicalize the pathname of ld 3413 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3414 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3415 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3416 done 3417 test -z "$LD" && LD="$ac_prog" 3418 ;; 3419 "") 3420 # If it fails, then pretend we aren't using GCC. 3421 ac_prog=ld 3422 ;; 3423 *) 3424 # If it is relative, then search for the first ld in PATH. 3425 with_gnu_ld=unknown 3426 ;; 3427 esac 3428elif test "$with_gnu_ld" = yes; then 3429 echo "$as_me:$LINENO: checking for GNU ld" >&5 3430echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3431else 3432 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3433echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3434fi 3435if test "${lt_cv_path_LD+set}" = set; then 3436 echo $ECHO_N "(cached) $ECHO_C" >&6 3437else 3438 if test -z "$LD"; then 3439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3440 for ac_dir in $PATH; do 3441 IFS="$lt_save_ifs" 3442 test -z "$ac_dir" && ac_dir=. 3443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3444 lt_cv_path_LD="$ac_dir/$ac_prog" 3445 # Check to see if the program is GNU ld. I'd rather use --version, 3446 # but apparently some GNU ld's only accept -v. 3447 # Break only if it was the GNU/non-GNU ld that we prefer. 3448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3449 *GNU* | *'with BFD'*) 3450 test "$with_gnu_ld" != no && break 3451 ;; 3452 *) 3453 test "$with_gnu_ld" != yes && break 3454 ;; 3455 esac 3456 fi 3457 done 3458 IFS="$lt_save_ifs" 3459else 3460 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3461fi 3462fi 3463 3464LD="$lt_cv_path_LD" 3465if test -n "$LD"; then 3466 echo "$as_me:$LINENO: result: $LD" >&5 3467echo "${ECHO_T}$LD" >&6 3468else 3469 echo "$as_me:$LINENO: result: no" >&5 3470echo "${ECHO_T}no" >&6 3471fi 3472test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3473echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3474 { (exit 1); exit 1; }; } 3475echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3476echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3477if test "${lt_cv_prog_gnu_ld+set}" = set; then 3478 echo $ECHO_N "(cached) $ECHO_C" >&6 3479else 3480 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3481case `$LD -v 2>&1 </dev/null` in 3482*GNU* | *'with BFD'*) 3483 lt_cv_prog_gnu_ld=yes 3484 ;; 3485*) 3486 lt_cv_prog_gnu_ld=no 3487 ;; 3488esac 3489fi 3490echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3491echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3492with_gnu_ld=$lt_cv_prog_gnu_ld 3493 3494 3495echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3496echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3497if test "${lt_cv_ld_reload_flag+set}" = set; then 3498 echo $ECHO_N "(cached) $ECHO_C" >&6 3499else 3500 lt_cv_ld_reload_flag='-r' 3501fi 3502echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3503echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3504reload_flag=$lt_cv_ld_reload_flag 3505case $reload_flag in 3506"" | " "*) ;; 3507*) reload_flag=" $reload_flag" ;; 3508esac 3509reload_cmds='$LD$reload_flag -o $output$reload_objs' 3510 3511echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3512echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3513if test "${lt_cv_path_NM+set}" = set; then 3514 echo $ECHO_N "(cached) $ECHO_C" >&6 3515else 3516 if test -n "$NM"; then 3517 # Let the user override the test. 3518 lt_cv_path_NM="$NM" 3519else 3520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3521 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3522 IFS="$lt_save_ifs" 3523 test -z "$ac_dir" && ac_dir=. 3524 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3525 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3526 # Check to see if the nm accepts a BSD-compat flag. 3527 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3528 # nm: unknown option "B" ignored 3529 # Tru64's nm complains that /dev/null is an invalid object file 3530 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3531 */dev/null* | *'Invalid file or object type'*) 3532 lt_cv_path_NM="$tmp_nm -B" 3533 break 3534 ;; 3535 *) 3536 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3537 */dev/null*) 3538 lt_cv_path_NM="$tmp_nm -p" 3539 break 3540 ;; 3541 *) 3542 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3543 continue # so that we can try to find one that supports BSD flags 3544 ;; 3545 esac 3546 esac 3547 fi 3548 done 3549 IFS="$lt_save_ifs" 3550 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3551fi 3552fi 3553echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3554echo "${ECHO_T}$lt_cv_path_NM" >&6 3555NM="$lt_cv_path_NM" 3556 3557echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3558echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3559if test "${lt_cv_deplibs_check_method+set}" = set; then 3560 echo $ECHO_N "(cached) $ECHO_C" >&6 3561else 3562 lt_cv_file_magic_cmd='$MAGIC_CMD' 3563lt_cv_file_magic_test_file= 3564lt_cv_deplibs_check_method='unknown' 3565# Need to set the preceding variable on all platforms that support 3566# interlibrary dependencies. 3567# 'none' -- dependencies not supported. 3568# `unknown' -- same as none, but documents that we really don't know. 3569# 'pass_all' -- all dependencies passed with no checks. 3570# 'test_compile' -- check by making test program. 3571# 'file_magic [[regex]]' -- check by looking for files in library path 3572# which responds to the $file_magic_cmd with a given extended regex. 3573# If you have `file' or equivalent on your system and you're not sure 3574# whether `pass_all' will *always* work, you probably want this one. 3575 3576case $host_os in 3577aix4* | aix5*) 3578 lt_cv_deplibs_check_method=pass_all 3579 ;; 3580 3581beos*) 3582 lt_cv_deplibs_check_method=pass_all 3583 ;; 3584 3585bsdi4*) 3586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3587 lt_cv_file_magic_cmd='/usr/bin/file -L' 3588 lt_cv_file_magic_test_file=/shlib/libc.so 3589 ;; 3590 3591cygwin*) 3592 # func_win32_libid is a shell function defined in ltmain.sh 3593 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3594 lt_cv_file_magic_cmd='func_win32_libid' 3595 ;; 3596 3597mingw* | pw32*) 3598 # Base MSYS/MinGW do not provide the 'file' command needed by 3599 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3600 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3601 lt_cv_file_magic_cmd='$OBJDUMP -f' 3602 ;; 3603 3604darwin* | rhapsody*) 3605 lt_cv_deplibs_check_method=pass_all 3606 ;; 3607 3608freebsd* | kfreebsd*-gnu) 3609 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3610 case $host_cpu in 3611 i*86 ) 3612 # Not sure whether the presence of OpenBSD here was a mistake. 3613 # Let's accept both of them until this is cleared up. 3614 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3615 lt_cv_file_magic_cmd=/usr/bin/file 3616 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3617 ;; 3618 esac 3619 else 3620 lt_cv_deplibs_check_method=pass_all 3621 fi 3622 ;; 3623 3624gnu*) 3625 lt_cv_deplibs_check_method=pass_all 3626 ;; 3627 3628hpux10.20* | hpux11*) 3629 lt_cv_file_magic_cmd=/usr/bin/file 3630 case "$host_cpu" in 3631 ia64*) 3632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3633 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3634 ;; 3635 hppa*64*) 3636 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]' 3637 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3638 ;; 3639 *) 3640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3641 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3642 ;; 3643 esac 3644 ;; 3645 3646irix5* | irix6* | nonstopux*) 3647 case $LD in 3648 *-32|*"-32 ") libmagic=32-bit;; 3649 *-n32|*"-n32 ") libmagic=N32;; 3650 *-64|*"-64 ") libmagic=64-bit;; 3651 *) libmagic=never-match;; 3652 esac 3653 lt_cv_deplibs_check_method=pass_all 3654 ;; 3655 3656# This must be Linux ELF. 3657linux*) 3658 case $host_cpu in 3659 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) 3660 lt_cv_deplibs_check_method=pass_all ;; 3661 *) 3662 # glibc up to 2.1.1 does not perform some relocations on ARM 3663 # this will be overridden with pass_all, but let us keep it just in case 3664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3665 esac 3666 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3667 lt_cv_deplibs_check_method=pass_all 3668 ;; 3669 3670netbsd*) 3671 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3673 else 3674 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3675 fi 3676 ;; 3677 3678newos6*) 3679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3680 lt_cv_file_magic_cmd=/usr/bin/file 3681 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3682 ;; 3683 3684nto-qnx*) 3685 lt_cv_deplibs_check_method=unknown 3686 ;; 3687 3688openbsd*) 3689 lt_cv_file_magic_cmd=/usr/bin/file 3690 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3691 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3693 else 3694 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3695 fi 3696 ;; 3697 3698osf3* | osf4* | osf5*) 3699 lt_cv_deplibs_check_method=pass_all 3700 ;; 3701 3702sco3.2v5*) 3703 lt_cv_deplibs_check_method=pass_all 3704 ;; 3705 3706solaris*) 3707 lt_cv_deplibs_check_method=pass_all 3708 ;; 3709 3710sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3711 case $host_vendor in 3712 motorola) 3713 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]' 3714 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3715 ;; 3716 ncr) 3717 lt_cv_deplibs_check_method=pass_all 3718 ;; 3719 sequent) 3720 lt_cv_file_magic_cmd='/bin/file' 3721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3722 ;; 3723 sni) 3724 lt_cv_file_magic_cmd='/bin/file' 3725 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3726 lt_cv_file_magic_test_file=/lib/libc.so 3727 ;; 3728 siemens) 3729 lt_cv_deplibs_check_method=pass_all 3730 ;; 3731 esac 3732 ;; 3733 3734sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3735 lt_cv_deplibs_check_method=pass_all 3736 ;; 3737esac 3738 3739fi 3740echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3741echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3742file_magic_cmd=$lt_cv_file_magic_cmd 3743deplibs_check_method=$lt_cv_deplibs_check_method 3744test -z "$deplibs_check_method" && deplibs_check_method=unknown 3745 3746 3747 3748 3749# If no C compiler was specified, use CC. 3750LTCC=${LTCC-"$CC"} 3751 3752# Allow CC to be a program name with arguments. 3753compiler=$CC 3754 3755 3756# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3757if test "${enable_libtool_lock+set}" = set; then 3758 enableval="$enable_libtool_lock" 3759 3760fi; 3761test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3762 3763# Some flags need to be propagated to the compiler or linker for good 3764# libtool support. 3765case $host in 3766ia64-*-hpux*) 3767 # Find out which ABI we are using. 3768 echo 'int i;' > conftest.$ac_ext 3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3770 (eval $ac_compile) 2>&5 3771 ac_status=$? 3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3773 (exit $ac_status); }; then 3774 case `/usr/bin/file conftest.$ac_objext` in 3775 *ELF-32*) 3776 HPUX_IA64_MODE="32" 3777 ;; 3778 *ELF-64*) 3779 HPUX_IA64_MODE="64" 3780 ;; 3781 esac 3782 fi 3783 rm -rf conftest* 3784 ;; 3785*-*-irix6*) 3786 # Find out which ABI we are using. 3787 echo '#line 3787 "configure"' > conftest.$ac_ext 3788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3789 (eval $ac_compile) 2>&5 3790 ac_status=$? 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); }; then 3793 if test "$lt_cv_prog_gnu_ld" = yes; then 3794 case `/usr/bin/file conftest.$ac_objext` in 3795 *32-bit*) 3796 LD="${LD-ld} -melf32bsmip" 3797 ;; 3798 *N32*) 3799 LD="${LD-ld} -melf32bmipn32" 3800 ;; 3801 *64-bit*) 3802 LD="${LD-ld} -melf64bmip" 3803 ;; 3804 esac 3805 else 3806 case `/usr/bin/file conftest.$ac_objext` in 3807 *32-bit*) 3808 LD="${LD-ld} -32" 3809 ;; 3810 *N32*) 3811 LD="${LD-ld} -n32" 3812 ;; 3813 *64-bit*) 3814 LD="${LD-ld} -64" 3815 ;; 3816 esac 3817 fi 3818 fi 3819 rm -rf conftest* 3820 ;; 3821 3822x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3823 # Find out which ABI we are using. 3824 echo 'int i;' > conftest.$ac_ext 3825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3826 (eval $ac_compile) 2>&5 3827 ac_status=$? 3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3829 (exit $ac_status); }; then 3830 case "`/usr/bin/file conftest.o`" in 3831 *32-bit*) 3832 case $host in 3833 x86_64-*linux*) 3834 LD="${LD-ld} -m elf_i386" 3835 ;; 3836 ppc64-*linux*|powerpc64-*linux*) 3837 LD="${LD-ld} -m elf32ppclinux" 3838 ;; 3839 s390x-*linux*) 3840 LD="${LD-ld} -m elf_s390" 3841 ;; 3842 sparc64-*linux*) 3843 LD="${LD-ld} -m elf32_sparc" 3844 ;; 3845 esac 3846 ;; 3847 *64-bit*) 3848 case $host in 3849 x86_64-*linux*) 3850 LD="${LD-ld} -m elf_x86_64" 3851 ;; 3852 ppc*-*linux*|powerpc*-*linux*) 3853 LD="${LD-ld} -m elf64ppc" 3854 ;; 3855 s390*-*linux*) 3856 LD="${LD-ld} -m elf64_s390" 3857 ;; 3858 sparc*-*linux*) 3859 LD="${LD-ld} -m elf64_sparc" 3860 ;; 3861 esac 3862 ;; 3863 esac 3864 fi 3865 rm -rf conftest* 3866 ;; 3867 3868*-*-sco3.2v5*) 3869 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3870 SAVE_CFLAGS="$CFLAGS" 3871 CFLAGS="$CFLAGS -belf" 3872 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3873echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3874if test "${lt_cv_cc_needs_belf+set}" = set; then 3875 echo $ECHO_N "(cached) $ECHO_C" >&6 3876else 3877 ac_ext=c 3878ac_cpp='$CPP $CPPFLAGS' 3879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3881ac_compiler_gnu=$ac_cv_c_compiler_gnu 3882 3883 cat >conftest.$ac_ext <<_ACEOF 3884/* confdefs.h. */ 3885_ACEOF 3886cat confdefs.h >>conftest.$ac_ext 3887cat >>conftest.$ac_ext <<_ACEOF 3888/* end confdefs.h. */ 3889 3890int 3891main () 3892{ 3893 3894 ; 3895 return 0; 3896} 3897_ACEOF 3898rm -f conftest.$ac_objext conftest$ac_exeext 3899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3900 (eval $ac_link) 2>conftest.er1 3901 ac_status=$? 3902 grep -v '^ *+' conftest.er1 >conftest.err 3903 rm -f conftest.er1 3904 cat conftest.err >&5 3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3906 (exit $ac_status); } && 3907 { ac_try='test -z "$ac_c_werror_flag" 3908 || test ! -s conftest.err' 3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3910 (eval $ac_try) 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); }; } && 3914 { ac_try='test -s conftest$ac_exeext' 3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3916 (eval $ac_try) 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); }; }; then 3920 lt_cv_cc_needs_belf=yes 3921else 3922 echo "$as_me: failed program was:" >&5 3923sed 's/^/| /' conftest.$ac_ext >&5 3924 3925lt_cv_cc_needs_belf=no 3926fi 3927rm -f conftest.err conftest.$ac_objext \ 3928 conftest$ac_exeext conftest.$ac_ext 3929 ac_ext=c 3930ac_cpp='$CPP $CPPFLAGS' 3931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3933ac_compiler_gnu=$ac_cv_c_compiler_gnu 3934 3935fi 3936echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3937echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3938 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3939 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3940 CFLAGS="$SAVE_CFLAGS" 3941 fi 3942 ;; 3943 3944esac 3945 3946need_locks="$enable_libtool_lock" 3947 3948 3949ac_ext=c 3950ac_cpp='$CPP $CPPFLAGS' 3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3953ac_compiler_gnu=$ac_cv_c_compiler_gnu 3954echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3955echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3956# On Suns, sometimes $CPP names a directory. 3957if test -n "$CPP" && test -d "$CPP"; then 3958 CPP= 3959fi 3960if test -z "$CPP"; then 3961 if test "${ac_cv_prog_CPP+set}" = set; then 3962 echo $ECHO_N "(cached) $ECHO_C" >&6 3963else 3964 # Double quotes because CPP needs to be expanded 3965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3966 do 3967 ac_preproc_ok=false 3968for ac_c_preproc_warn_flag in '' yes 3969do 3970 # Use a header file that comes with gcc, so configuring glibc 3971 # with a fresh cross-compiler works. 3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3973 # <limits.h> exists even on freestanding compilers. 3974 # On the NeXT, cc -E runs the code through the compiler's parser, 3975 # not just through cpp. "Syntax error" is here to catch this case. 3976 cat >conftest.$ac_ext <<_ACEOF 3977/* confdefs.h. */ 3978_ACEOF 3979cat confdefs.h >>conftest.$ac_ext 3980cat >>conftest.$ac_ext <<_ACEOF 3981/* end confdefs.h. */ 3982#ifdef __STDC__ 3983# include <limits.h> 3984#else 3985# include <assert.h> 3986#endif 3987 Syntax error 3988_ACEOF 3989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3991 ac_status=$? 3992 grep -v '^ *+' conftest.er1 >conftest.err 3993 rm -f conftest.er1 3994 cat conftest.err >&5 3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3996 (exit $ac_status); } >/dev/null; then 3997 if test -s conftest.err; then 3998 ac_cpp_err=$ac_c_preproc_warn_flag 3999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4000 else 4001 ac_cpp_err= 4002 fi 4003else 4004 ac_cpp_err=yes 4005fi 4006if test -z "$ac_cpp_err"; then 4007 : 4008else 4009 echo "$as_me: failed program was:" >&5 4010sed 's/^/| /' conftest.$ac_ext >&5 4011 4012 # Broken: fails on valid input. 4013continue 4014fi 4015rm -f conftest.err conftest.$ac_ext 4016 4017 # OK, works on sane cases. Now check whether non-existent headers 4018 # can be detected and how. 4019 cat >conftest.$ac_ext <<_ACEOF 4020/* confdefs.h. */ 4021_ACEOF 4022cat confdefs.h >>conftest.$ac_ext 4023cat >>conftest.$ac_ext <<_ACEOF 4024/* end confdefs.h. */ 4025#include <ac_nonexistent.h> 4026_ACEOF 4027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4029 ac_status=$? 4030 grep -v '^ *+' conftest.er1 >conftest.err 4031 rm -f conftest.er1 4032 cat conftest.err >&5 4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4034 (exit $ac_status); } >/dev/null; then 4035 if test -s conftest.err; then 4036 ac_cpp_err=$ac_c_preproc_warn_flag 4037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4038 else 4039 ac_cpp_err= 4040 fi 4041else 4042 ac_cpp_err=yes 4043fi 4044if test -z "$ac_cpp_err"; then 4045 # Broken: success on invalid input. 4046continue 4047else 4048 echo "$as_me: failed program was:" >&5 4049sed 's/^/| /' conftest.$ac_ext >&5 4050 4051 # Passes both tests. 4052ac_preproc_ok=: 4053break 4054fi 4055rm -f conftest.err conftest.$ac_ext 4056 4057done 4058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4059rm -f conftest.err conftest.$ac_ext 4060if $ac_preproc_ok; then 4061 break 4062fi 4063 4064 done 4065 ac_cv_prog_CPP=$CPP 4066 4067fi 4068 CPP=$ac_cv_prog_CPP 4069else 4070 ac_cv_prog_CPP=$CPP 4071fi 4072echo "$as_me:$LINENO: result: $CPP" >&5 4073echo "${ECHO_T}$CPP" >&6 4074ac_preproc_ok=false 4075for ac_c_preproc_warn_flag in '' yes 4076do 4077 # Use a header file that comes with gcc, so configuring glibc 4078 # with a fresh cross-compiler works. 4079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4080 # <limits.h> exists even on freestanding compilers. 4081 # On the NeXT, cc -E runs the code through the compiler's parser, 4082 # not just through cpp. "Syntax error" is here to catch this case. 4083 cat >conftest.$ac_ext <<_ACEOF 4084/* confdefs.h. */ 4085_ACEOF 4086cat confdefs.h >>conftest.$ac_ext 4087cat >>conftest.$ac_ext <<_ACEOF 4088/* end confdefs.h. */ 4089#ifdef __STDC__ 4090# include <limits.h> 4091#else 4092# include <assert.h> 4093#endif 4094 Syntax error 4095_ACEOF 4096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4098 ac_status=$? 4099 grep -v '^ *+' conftest.er1 >conftest.err 4100 rm -f conftest.er1 4101 cat conftest.err >&5 4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4103 (exit $ac_status); } >/dev/null; then 4104 if test -s conftest.err; then 4105 ac_cpp_err=$ac_c_preproc_warn_flag 4106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4107 else 4108 ac_cpp_err= 4109 fi 4110else 4111 ac_cpp_err=yes 4112fi 4113if test -z "$ac_cpp_err"; then 4114 : 4115else 4116 echo "$as_me: failed program was:" >&5 4117sed 's/^/| /' conftest.$ac_ext >&5 4118 4119 # Broken: fails on valid input. 4120continue 4121fi 4122rm -f conftest.err conftest.$ac_ext 4123 4124 # OK, works on sane cases. Now check whether non-existent headers 4125 # can be detected and how. 4126 cat >conftest.$ac_ext <<_ACEOF 4127/* confdefs.h. */ 4128_ACEOF 4129cat confdefs.h >>conftest.$ac_ext 4130cat >>conftest.$ac_ext <<_ACEOF 4131/* end confdefs.h. */ 4132#include <ac_nonexistent.h> 4133_ACEOF 4134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4136 ac_status=$? 4137 grep -v '^ *+' conftest.er1 >conftest.err 4138 rm -f conftest.er1 4139 cat conftest.err >&5 4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4141 (exit $ac_status); } >/dev/null; then 4142 if test -s conftest.err; then 4143 ac_cpp_err=$ac_c_preproc_warn_flag 4144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4145 else 4146 ac_cpp_err= 4147 fi 4148else 4149 ac_cpp_err=yes 4150fi 4151if test -z "$ac_cpp_err"; then 4152 # Broken: success on invalid input. 4153continue 4154else 4155 echo "$as_me: failed program was:" >&5 4156sed 's/^/| /' conftest.$ac_ext >&5 4157 4158 # Passes both tests. 4159ac_preproc_ok=: 4160break 4161fi 4162rm -f conftest.err conftest.$ac_ext 4163 4164done 4165# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4166rm -f conftest.err conftest.$ac_ext 4167if $ac_preproc_ok; then 4168 : 4169else 4170 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4171See \`config.log' for more details." >&5 4172echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4173See \`config.log' for more details." >&2;} 4174 { (exit 1); exit 1; }; } 4175fi 4176 4177ac_ext=c 4178ac_cpp='$CPP $CPPFLAGS' 4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4181ac_compiler_gnu=$ac_cv_c_compiler_gnu 4182 4183 4184echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4185echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4186if test "${ac_cv_header_stdc+set}" = set; then 4187 echo $ECHO_N "(cached) $ECHO_C" >&6 4188else 4189 cat >conftest.$ac_ext <<_ACEOF 4190/* confdefs.h. */ 4191_ACEOF 4192cat confdefs.h >>conftest.$ac_ext 4193cat >>conftest.$ac_ext <<_ACEOF 4194/* end confdefs.h. */ 4195#include <stdlib.h> 4196#include <stdarg.h> 4197#include <string.h> 4198#include <float.h> 4199 4200int 4201main () 4202{ 4203 4204 ; 4205 return 0; 4206} 4207_ACEOF 4208rm -f conftest.$ac_objext 4209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4210 (eval $ac_compile) 2>conftest.er1 4211 ac_status=$? 4212 grep -v '^ *+' conftest.er1 >conftest.err 4213 rm -f conftest.er1 4214 cat conftest.err >&5 4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4216 (exit $ac_status); } && 4217 { ac_try='test -z "$ac_c_werror_flag" 4218 || test ! -s conftest.err' 4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4220 (eval $ac_try) 2>&5 4221 ac_status=$? 4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4223 (exit $ac_status); }; } && 4224 { ac_try='test -s conftest.$ac_objext' 4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4226 (eval $ac_try) 2>&5 4227 ac_status=$? 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4229 (exit $ac_status); }; }; then 4230 ac_cv_header_stdc=yes 4231else 4232 echo "$as_me: failed program was:" >&5 4233sed 's/^/| /' conftest.$ac_ext >&5 4234 4235ac_cv_header_stdc=no 4236fi 4237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4238 4239if test $ac_cv_header_stdc = yes; then 4240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4241 cat >conftest.$ac_ext <<_ACEOF 4242/* confdefs.h. */ 4243_ACEOF 4244cat confdefs.h >>conftest.$ac_ext 4245cat >>conftest.$ac_ext <<_ACEOF 4246/* end confdefs.h. */ 4247#include <string.h> 4248 4249_ACEOF 4250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4251 $EGREP "memchr" >/dev/null 2>&1; then 4252 : 4253else 4254 ac_cv_header_stdc=no 4255fi 4256rm -f conftest* 4257 4258fi 4259 4260if test $ac_cv_header_stdc = yes; then 4261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4262 cat >conftest.$ac_ext <<_ACEOF 4263/* confdefs.h. */ 4264_ACEOF 4265cat confdefs.h >>conftest.$ac_ext 4266cat >>conftest.$ac_ext <<_ACEOF 4267/* end confdefs.h. */ 4268#include <stdlib.h> 4269 4270_ACEOF 4271if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4272 $EGREP "free" >/dev/null 2>&1; then 4273 : 4274else 4275 ac_cv_header_stdc=no 4276fi 4277rm -f conftest* 4278 4279fi 4280 4281if test $ac_cv_header_stdc = yes; then 4282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4283 if test "$cross_compiling" = yes; then 4284 : 4285else 4286 cat >conftest.$ac_ext <<_ACEOF 4287/* confdefs.h. */ 4288_ACEOF 4289cat confdefs.h >>conftest.$ac_ext 4290cat >>conftest.$ac_ext <<_ACEOF 4291/* end confdefs.h. */ 4292#include <ctype.h> 4293#if ((' ' & 0x0FF) == 0x020) 4294# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4295# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4296#else 4297# define ISLOWER(c) \ 4298 (('a' <= (c) && (c) <= 'i') \ 4299 || ('j' <= (c) && (c) <= 'r') \ 4300 || ('s' <= (c) && (c) <= 'z')) 4301# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4302#endif 4303 4304#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4305int 4306main () 4307{ 4308 int i; 4309 for (i = 0; i < 256; i++) 4310 if (XOR (islower (i), ISLOWER (i)) 4311 || toupper (i) != TOUPPER (i)) 4312 exit(2); 4313 exit (0); 4314} 4315_ACEOF 4316rm -f conftest$ac_exeext 4317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4318 (eval $ac_link) 2>&5 4319 ac_status=$? 4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4323 (eval $ac_try) 2>&5 4324 ac_status=$? 4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4326 (exit $ac_status); }; }; then 4327 : 4328else 4329 echo "$as_me: program exited with status $ac_status" >&5 4330echo "$as_me: failed program was:" >&5 4331sed 's/^/| /' conftest.$ac_ext >&5 4332 4333( exit $ac_status ) 4334ac_cv_header_stdc=no 4335fi 4336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4337fi 4338fi 4339fi 4340echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4341echo "${ECHO_T}$ac_cv_header_stdc" >&6 4342if test $ac_cv_header_stdc = yes; then 4343 4344cat >>confdefs.h <<\_ACEOF 4345#define STDC_HEADERS 1 4346_ACEOF 4347 4348fi 4349 4350# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4361 inttypes.h stdint.h unistd.h 4362do 4363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4364echo "$as_me:$LINENO: checking for $ac_header" >&5 4365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4366if eval "test \"\${$as_ac_Header+set}\" = set"; then 4367 echo $ECHO_N "(cached) $ECHO_C" >&6 4368else 4369 cat >conftest.$ac_ext <<_ACEOF 4370/* confdefs.h. */ 4371_ACEOF 4372cat confdefs.h >>conftest.$ac_ext 4373cat >>conftest.$ac_ext <<_ACEOF 4374/* end confdefs.h. */ 4375$ac_includes_default 4376 4377#include <$ac_header> 4378_ACEOF 4379rm -f conftest.$ac_objext 4380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4381 (eval $ac_compile) 2>conftest.er1 4382 ac_status=$? 4383 grep -v '^ *+' conftest.er1 >conftest.err 4384 rm -f conftest.er1 4385 cat conftest.err >&5 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); } && 4388 { ac_try='test -z "$ac_c_werror_flag" 4389 || test ! -s conftest.err' 4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4391 (eval $ac_try) 2>&5 4392 ac_status=$? 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); }; } && 4395 { ac_try='test -s conftest.$ac_objext' 4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4397 (eval $ac_try) 2>&5 4398 ac_status=$? 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); }; }; then 4401 eval "$as_ac_Header=yes" 4402else 4403 echo "$as_me: failed program was:" >&5 4404sed 's/^/| /' conftest.$ac_ext >&5 4405 4406eval "$as_ac_Header=no" 4407fi 4408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4409fi 4410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4412if test `eval echo '${'$as_ac_Header'}'` = yes; then 4413 cat >>confdefs.h <<_ACEOF 4414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4415_ACEOF 4416 4417fi 4418 4419done 4420 4421 4422 4423for ac_header in dlfcn.h 4424do 4425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4426if eval "test \"\${$as_ac_Header+set}\" = set"; then 4427 echo "$as_me:$LINENO: checking for $ac_header" >&5 4428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4429if eval "test \"\${$as_ac_Header+set}\" = set"; then 4430 echo $ECHO_N "(cached) $ECHO_C" >&6 4431fi 4432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4434else 4435 # Is the header compilable? 4436echo "$as_me:$LINENO: checking $ac_header usability" >&5 4437echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4438cat >conftest.$ac_ext <<_ACEOF 4439/* confdefs.h. */ 4440_ACEOF 4441cat confdefs.h >>conftest.$ac_ext 4442cat >>conftest.$ac_ext <<_ACEOF 4443/* end confdefs.h. */ 4444$ac_includes_default 4445#include <$ac_header> 4446_ACEOF 4447rm -f conftest.$ac_objext 4448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4449 (eval $ac_compile) 2>conftest.er1 4450 ac_status=$? 4451 grep -v '^ *+' conftest.er1 >conftest.err 4452 rm -f conftest.er1 4453 cat conftest.err >&5 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); } && 4456 { ac_try='test -z "$ac_c_werror_flag" 4457 || test ! -s conftest.err' 4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4459 (eval $ac_try) 2>&5 4460 ac_status=$? 4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4462 (exit $ac_status); }; } && 4463 { ac_try='test -s conftest.$ac_objext' 4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4465 (eval $ac_try) 2>&5 4466 ac_status=$? 4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4468 (exit $ac_status); }; }; then 4469 ac_header_compiler=yes 4470else 4471 echo "$as_me: failed program was:" >&5 4472sed 's/^/| /' conftest.$ac_ext >&5 4473 4474ac_header_compiler=no 4475fi 4476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4477echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4478echo "${ECHO_T}$ac_header_compiler" >&6 4479 4480# Is the header present? 4481echo "$as_me:$LINENO: checking $ac_header presence" >&5 4482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4483cat >conftest.$ac_ext <<_ACEOF 4484/* confdefs.h. */ 4485_ACEOF 4486cat confdefs.h >>conftest.$ac_ext 4487cat >>conftest.$ac_ext <<_ACEOF 4488/* end confdefs.h. */ 4489#include <$ac_header> 4490_ACEOF 4491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4493 ac_status=$? 4494 grep -v '^ *+' conftest.er1 >conftest.err 4495 rm -f conftest.er1 4496 cat conftest.err >&5 4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); } >/dev/null; then 4499 if test -s conftest.err; then 4500 ac_cpp_err=$ac_c_preproc_warn_flag 4501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4502 else 4503 ac_cpp_err= 4504 fi 4505else 4506 ac_cpp_err=yes 4507fi 4508if test -z "$ac_cpp_err"; then 4509 ac_header_preproc=yes 4510else 4511 echo "$as_me: failed program was:" >&5 4512sed 's/^/| /' conftest.$ac_ext >&5 4513 4514 ac_header_preproc=no 4515fi 4516rm -f conftest.err conftest.$ac_ext 4517echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4518echo "${ECHO_T}$ac_header_preproc" >&6 4519 4520# So? What about this header? 4521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4522 yes:no: ) 4523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4527 ac_header_preproc=yes 4528 ;; 4529 no:yes:* ) 4530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4542 ( 4543 cat <<\_ASBOX 4544## ------------------------------- ## 4545## Report this to the xosd lists. ## 4546## ------------------------------- ## 4547_ASBOX 4548 ) | 4549 sed "s/^/$as_me: WARNING: /" >&2 4550 ;; 4551esac 4552echo "$as_me:$LINENO: checking for $ac_header" >&5 4553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4554if eval "test \"\${$as_ac_Header+set}\" = set"; then 4555 echo $ECHO_N "(cached) $ECHO_C" >&6 4556else 4557 eval "$as_ac_Header=\$ac_header_preproc" 4558fi 4559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4561 4562fi 4563if test `eval echo '${'$as_ac_Header'}'` = yes; then 4564 cat >>confdefs.h <<_ACEOF 4565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4566_ACEOF 4567 4568fi 4569 4570done 4571 4572ac_ext=cc 4573ac_cpp='$CXXCPP $CPPFLAGS' 4574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4577if test -n "$ac_tool_prefix"; then 4578 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4579 do 4580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4581set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4582echo "$as_me:$LINENO: checking for $ac_word" >&5 4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4584if test "${ac_cv_prog_CXX+set}" = set; then 4585 echo $ECHO_N "(cached) $ECHO_C" >&6 4586else 4587 if test -n "$CXX"; then 4588 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4589else 4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4591for as_dir in $PATH 4592do 4593 IFS=$as_save_IFS 4594 test -z "$as_dir" && as_dir=. 4595 for ac_exec_ext in '' $ac_executable_extensions; do 4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4597 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4599 break 2 4600 fi 4601done 4602done 4603 4604fi 4605fi 4606CXX=$ac_cv_prog_CXX 4607if test -n "$CXX"; then 4608 echo "$as_me:$LINENO: result: $CXX" >&5 4609echo "${ECHO_T}$CXX" >&6 4610else 4611 echo "$as_me:$LINENO: result: no" >&5 4612echo "${ECHO_T}no" >&6 4613fi 4614 4615 test -n "$CXX" && break 4616 done 4617fi 4618if test -z "$CXX"; then 4619 ac_ct_CXX=$CXX 4620 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4621do 4622 # Extract the first word of "$ac_prog", so it can be a program name with args. 4623set dummy $ac_prog; ac_word=$2 4624echo "$as_me:$LINENO: checking for $ac_word" >&5 4625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4626if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4627 echo $ECHO_N "(cached) $ECHO_C" >&6 4628else 4629 if test -n "$ac_ct_CXX"; then 4630 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4631else 4632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4633for as_dir in $PATH 4634do 4635 IFS=$as_save_IFS 4636 test -z "$as_dir" && as_dir=. 4637 for ac_exec_ext in '' $ac_executable_extensions; do 4638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4639 ac_cv_prog_ac_ct_CXX="$ac_prog" 4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4641 break 2 4642 fi 4643done 4644done 4645 4646fi 4647fi 4648ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4649if test -n "$ac_ct_CXX"; then 4650 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4651echo "${ECHO_T}$ac_ct_CXX" >&6 4652else 4653 echo "$as_me:$LINENO: result: no" >&5 4654echo "${ECHO_T}no" >&6 4655fi 4656 4657 test -n "$ac_ct_CXX" && break 4658done 4659test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4660 4661 CXX=$ac_ct_CXX 4662fi 4663 4664 4665# Provide some information about the compiler. 4666echo "$as_me:$LINENO:" \ 4667 "checking for C++ compiler version" >&5 4668ac_compiler=`set X $ac_compile; echo $2` 4669{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4670 (eval $ac_compiler --version </dev/null >&5) 2>&5 4671 ac_status=$? 4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 (exit $ac_status); } 4674{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4675 (eval $ac_compiler -v </dev/null >&5) 2>&5 4676 ac_status=$? 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4678 (exit $ac_status); } 4679{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4680 (eval $ac_compiler -V </dev/null >&5) 2>&5 4681 ac_status=$? 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); } 4684 4685echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4686echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4687if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4688 echo $ECHO_N "(cached) $ECHO_C" >&6 4689else 4690 cat >conftest.$ac_ext <<_ACEOF 4691/* confdefs.h. */ 4692_ACEOF 4693cat confdefs.h >>conftest.$ac_ext 4694cat >>conftest.$ac_ext <<_ACEOF 4695/* end confdefs.h. */ 4696 4697int 4698main () 4699{ 4700#ifndef __GNUC__ 4701 choke me 4702#endif 4703 4704 ; 4705 return 0; 4706} 4707_ACEOF 4708rm -f conftest.$ac_objext 4709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4710 (eval $ac_compile) 2>conftest.er1 4711 ac_status=$? 4712 grep -v '^ *+' conftest.er1 >conftest.err 4713 rm -f conftest.er1 4714 cat conftest.err >&5 4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4716 (exit $ac_status); } && 4717 { ac_try='test -z "$ac_cxx_werror_flag" 4718 || test ! -s conftest.err' 4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4720 (eval $ac_try) 2>&5 4721 ac_status=$? 4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4723 (exit $ac_status); }; } && 4724 { ac_try='test -s conftest.$ac_objext' 4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4726 (eval $ac_try) 2>&5 4727 ac_status=$? 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); }; }; then 4730 ac_compiler_gnu=yes 4731else 4732 echo "$as_me: failed program was:" >&5 4733sed 's/^/| /' conftest.$ac_ext >&5 4734 4735ac_compiler_gnu=no 4736fi 4737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4738ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4739 4740fi 4741echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4742echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4743GXX=`test $ac_compiler_gnu = yes && echo yes` 4744ac_test_CXXFLAGS=${CXXFLAGS+set} 4745ac_save_CXXFLAGS=$CXXFLAGS 4746CXXFLAGS="-g" 4747echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4748echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4749if test "${ac_cv_prog_cxx_g+set}" = set; then 4750 echo $ECHO_N "(cached) $ECHO_C" >&6 4751else 4752 cat >conftest.$ac_ext <<_ACEOF 4753/* confdefs.h. */ 4754_ACEOF 4755cat confdefs.h >>conftest.$ac_ext 4756cat >>conftest.$ac_ext <<_ACEOF 4757/* end confdefs.h. */ 4758 4759int 4760main () 4761{ 4762 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767rm -f conftest.$ac_objext 4768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4769 (eval $ac_compile) 2>conftest.er1 4770 ac_status=$? 4771 grep -v '^ *+' conftest.er1 >conftest.err 4772 rm -f conftest.er1 4773 cat conftest.err >&5 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); } && 4776 { ac_try='test -z "$ac_cxx_werror_flag" 4777 || test ! -s conftest.err' 4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4779 (eval $ac_try) 2>&5 4780 ac_status=$? 4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4782 (exit $ac_status); }; } && 4783 { ac_try='test -s conftest.$ac_objext' 4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4785 (eval $ac_try) 2>&5 4786 ac_status=$? 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); }; }; then 4789 ac_cv_prog_cxx_g=yes 4790else 4791 echo "$as_me: failed program was:" >&5 4792sed 's/^/| /' conftest.$ac_ext >&5 4793 4794ac_cv_prog_cxx_g=no 4795fi 4796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4797fi 4798echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4799echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4800if test "$ac_test_CXXFLAGS" = set; then 4801 CXXFLAGS=$ac_save_CXXFLAGS 4802elif test $ac_cv_prog_cxx_g = yes; then 4803 if test "$GXX" = yes; then 4804 CXXFLAGS="-g -O2" 4805 else 4806 CXXFLAGS="-g" 4807 fi 4808else 4809 if test "$GXX" = yes; then 4810 CXXFLAGS="-O2" 4811 else 4812 CXXFLAGS= 4813 fi 4814fi 4815for ac_declaration in \ 4816 '' \ 4817 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4818 'extern "C" void std::exit (int); using std::exit;' \ 4819 'extern "C" void exit (int) throw ();' \ 4820 'extern "C" void exit (int);' \ 4821 'void exit (int);' 4822do 4823 cat >conftest.$ac_ext <<_ACEOF 4824/* confdefs.h. */ 4825_ACEOF 4826cat confdefs.h >>conftest.$ac_ext 4827cat >>conftest.$ac_ext <<_ACEOF 4828/* end confdefs.h. */ 4829$ac_declaration 4830#include <stdlib.h> 4831int 4832main () 4833{ 4834exit (42); 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839rm -f conftest.$ac_objext 4840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4841 (eval $ac_compile) 2>conftest.er1 4842 ac_status=$? 4843 grep -v '^ *+' conftest.er1 >conftest.err 4844 rm -f conftest.er1 4845 cat conftest.err >&5 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); } && 4848 { ac_try='test -z "$ac_cxx_werror_flag" 4849 || test ! -s conftest.err' 4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4851 (eval $ac_try) 2>&5 4852 ac_status=$? 4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4854 (exit $ac_status); }; } && 4855 { ac_try='test -s conftest.$ac_objext' 4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4857 (eval $ac_try) 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); }; }; then 4861 : 4862else 4863 echo "$as_me: failed program was:" >&5 4864sed 's/^/| /' conftest.$ac_ext >&5 4865 4866continue 4867fi 4868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4869 cat >conftest.$ac_ext <<_ACEOF 4870/* confdefs.h. */ 4871_ACEOF 4872cat confdefs.h >>conftest.$ac_ext 4873cat >>conftest.$ac_ext <<_ACEOF 4874/* end confdefs.h. */ 4875$ac_declaration 4876int 4877main () 4878{ 4879exit (42); 4880 ; 4881 return 0; 4882} 4883_ACEOF 4884rm -f conftest.$ac_objext 4885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4886 (eval $ac_compile) 2>conftest.er1 4887 ac_status=$? 4888 grep -v '^ *+' conftest.er1 >conftest.err 4889 rm -f conftest.er1 4890 cat conftest.err >&5 4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4892 (exit $ac_status); } && 4893 { ac_try='test -z "$ac_cxx_werror_flag" 4894 || test ! -s conftest.err' 4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4896 (eval $ac_try) 2>&5 4897 ac_status=$? 4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4899 (exit $ac_status); }; } && 4900 { ac_try='test -s conftest.$ac_objext' 4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4902 (eval $ac_try) 2>&5 4903 ac_status=$? 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); }; }; then 4906 break 4907else 4908 echo "$as_me: failed program was:" >&5 4909sed 's/^/| /' conftest.$ac_ext >&5 4910 4911fi 4912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4913done 4914rm -f conftest* 4915if test -n "$ac_declaration"; then 4916 echo '#ifdef __cplusplus' >>confdefs.h 4917 echo $ac_declaration >>confdefs.h 4918 echo '#endif' >>confdefs.h 4919fi 4920 4921ac_ext=cc 4922ac_cpp='$CXXCPP $CPPFLAGS' 4923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4926 4927depcc="$CXX" am_compiler_list= 4928 4929echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4930echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 4931if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4932 echo $ECHO_N "(cached) $ECHO_C" >&6 4933else 4934 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4935 # We make a subdir and do the tests there. Otherwise we can end up 4936 # making bogus files that we don't know about and never remove. For 4937 # instance it was reported that on HP-UX the gcc test will end up 4938 # making a dummy file named `D' -- because `-MD' means `put the output 4939 # in D'. 4940 mkdir conftest.dir 4941 # Copy depcomp to subdir because otherwise we won't find it if we're 4942 # using a relative directory. 4943 cp "$am_depcomp" conftest.dir 4944 cd conftest.dir 4945 # We will build objects and dependencies in a subdirectory because 4946 # it helps to detect inapplicable dependency modes. For instance 4947 # both Tru64's cc and ICC support -MD to output dependencies as a 4948 # side effect of compilation, but ICC will put the dependencies in 4949 # the current directory while Tru64 will put them in the object 4950 # directory. 4951 mkdir sub 4952 4953 am_cv_CXX_dependencies_compiler_type=none 4954 if test "$am_compiler_list" = ""; then 4955 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4956 fi 4957 for depmode in $am_compiler_list; do 4958 # Setup a source with many dependencies, because some compilers 4959 # like to wrap large dependency lists on column 80 (with \), and 4960 # we should not choose a depcomp mode which is confused by this. 4961 # 4962 # We need to recreate these files for each test, as the compiler may 4963 # overwrite some of them when testing with obscure command lines. 4964 # This happens at least with the AIX C compiler. 4965 : > sub/conftest.c 4966 for i in 1 2 3 4 5 6; do 4967 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4968 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4969 # Solaris 8's {/usr,}/bin/sh. 4970 touch sub/conftst$i.h 4971 done 4972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4973 4974 case $depmode in 4975 nosideeffect) 4976 # after this tag, mechanisms are not by side-effect, so they'll 4977 # only be used when explicitly requested 4978 if test "x$enable_dependency_tracking" = xyes; then 4979 continue 4980 else 4981 break 4982 fi 4983 ;; 4984 none) break ;; 4985 esac 4986 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4987 # mode. It turns out that the SunPro C++ compiler does not properly 4988 # handle `-M -o', and we need to detect this. 4989 if depmode=$depmode \ 4990 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4992 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4993 >/dev/null 2>conftest.err && 4994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4995 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4997 # icc doesn't choke on unknown options, it will just issue warnings 4998 # or remarks (even with -Werror). So we grep stderr for any message 4999 # that says an option was ignored or not supported. 5000 # When given -MP, icc 7.0 and 7.1 complain thusly: 5001 # icc: Command line warning: ignoring option '-M'; no argument required 5002 # The diagnosis changed in icc 8.0: 5003 # icc: Command line remark: option '-MP' not supported 5004 if (grep 'ignoring option' conftest.err || 5005 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5006 am_cv_CXX_dependencies_compiler_type=$depmode 5007 break 5008 fi 5009 fi 5010 done 5011 5012 cd .. 5013 rm -rf conftest.dir 5014else 5015 am_cv_CXX_dependencies_compiler_type=none 5016fi 5017 5018fi 5019echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5020echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 5021CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5022 5023 5024 5025if 5026 test "x$enable_dependency_tracking" != xno \ 5027 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5028 am__fastdepCXX_TRUE= 5029 am__fastdepCXX_FALSE='#' 5030else 5031 am__fastdepCXX_TRUE='#' 5032 am__fastdepCXX_FALSE= 5033fi 5034 5035 5036ac_ext=cc 5037ac_cpp='$CXXCPP $CPPFLAGS' 5038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5041echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5042echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5043if test -z "$CXXCPP"; then 5044 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5045 echo $ECHO_N "(cached) $ECHO_C" >&6 5046else 5047 # Double quotes because CXXCPP needs to be expanded 5048 for CXXCPP in "$CXX -E" "/lib/cpp" 5049 do 5050 ac_preproc_ok=false 5051for ac_cxx_preproc_warn_flag in '' yes 5052do 5053 # Use a header file that comes with gcc, so configuring glibc 5054 # with a fresh cross-compiler works. 5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5056 # <limits.h> exists even on freestanding compilers. 5057 # On the NeXT, cc -E runs the code through the compiler's parser, 5058 # not just through cpp. "Syntax error" is here to catch this case. 5059 cat >conftest.$ac_ext <<_ACEOF 5060/* confdefs.h. */ 5061_ACEOF 5062cat confdefs.h >>conftest.$ac_ext 5063cat >>conftest.$ac_ext <<_ACEOF 5064/* end confdefs.h. */ 5065#ifdef __STDC__ 5066# include <limits.h> 5067#else 5068# include <assert.h> 5069#endif 5070 Syntax error 5071_ACEOF 5072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5074 ac_status=$? 5075 grep -v '^ *+' conftest.er1 >conftest.err 5076 rm -f conftest.er1 5077 cat conftest.err >&5 5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5079 (exit $ac_status); } >/dev/null; then 5080 if test -s conftest.err; then 5081 ac_cpp_err=$ac_cxx_preproc_warn_flag 5082 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5083 else 5084 ac_cpp_err= 5085 fi 5086else 5087 ac_cpp_err=yes 5088fi 5089if test -z "$ac_cpp_err"; then 5090 : 5091else 5092 echo "$as_me: failed program was:" >&5 5093sed 's/^/| /' conftest.$ac_ext >&5 5094 5095 # Broken: fails on valid input. 5096continue 5097fi 5098rm -f conftest.err conftest.$ac_ext 5099 5100 # OK, works on sane cases. Now check whether non-existent headers 5101 # can be detected and how. 5102 cat >conftest.$ac_ext <<_ACEOF 5103/* confdefs.h. */ 5104_ACEOF 5105cat confdefs.h >>conftest.$ac_ext 5106cat >>conftest.$ac_ext <<_ACEOF 5107/* end confdefs.h. */ 5108#include <ac_nonexistent.h> 5109_ACEOF 5110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5112 ac_status=$? 5113 grep -v '^ *+' conftest.er1 >conftest.err 5114 rm -f conftest.er1 5115 cat conftest.err >&5 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5117 (exit $ac_status); } >/dev/null; then 5118 if test -s conftest.err; then 5119 ac_cpp_err=$ac_cxx_preproc_warn_flag 5120 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5121 else 5122 ac_cpp_err= 5123 fi 5124else 5125 ac_cpp_err=yes 5126fi 5127if test -z "$ac_cpp_err"; then 5128 # Broken: success on invalid input. 5129continue 5130else 5131 echo "$as_me: failed program was:" >&5 5132sed 's/^/| /' conftest.$ac_ext >&5 5133 5134 # Passes both tests. 5135ac_preproc_ok=: 5136break 5137fi 5138rm -f conftest.err conftest.$ac_ext 5139 5140done 5141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5142rm -f conftest.err conftest.$ac_ext 5143if $ac_preproc_ok; then 5144 break 5145fi 5146 5147 done 5148 ac_cv_prog_CXXCPP=$CXXCPP 5149 5150fi 5151 CXXCPP=$ac_cv_prog_CXXCPP 5152else 5153 ac_cv_prog_CXXCPP=$CXXCPP 5154fi 5155echo "$as_me:$LINENO: result: $CXXCPP" >&5 5156echo "${ECHO_T}$CXXCPP" >&6 5157ac_preproc_ok=false 5158for ac_cxx_preproc_warn_flag in '' yes 5159do 5160 # Use a header file that comes with gcc, so configuring glibc 5161 # with a fresh cross-compiler works. 5162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5163 # <limits.h> exists even on freestanding compilers. 5164 # On the NeXT, cc -E runs the code through the compiler's parser, 5165 # not just through cpp. "Syntax error" is here to catch this case. 5166 cat >conftest.$ac_ext <<_ACEOF 5167/* confdefs.h. */ 5168_ACEOF 5169cat confdefs.h >>conftest.$ac_ext 5170cat >>conftest.$ac_ext <<_ACEOF 5171/* end confdefs.h. */ 5172#ifdef __STDC__ 5173# include <limits.h> 5174#else 5175# include <assert.h> 5176#endif 5177 Syntax error 5178_ACEOF 5179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5181 ac_status=$? 5182 grep -v '^ *+' conftest.er1 >conftest.err 5183 rm -f conftest.er1 5184 cat conftest.err >&5 5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5186 (exit $ac_status); } >/dev/null; then 5187 if test -s conftest.err; then 5188 ac_cpp_err=$ac_cxx_preproc_warn_flag 5189 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5190 else 5191 ac_cpp_err= 5192 fi 5193else 5194 ac_cpp_err=yes 5195fi 5196if test -z "$ac_cpp_err"; then 5197 : 5198else 5199 echo "$as_me: failed program was:" >&5 5200sed 's/^/| /' conftest.$ac_ext >&5 5201 5202 # Broken: fails on valid input. 5203continue 5204fi 5205rm -f conftest.err conftest.$ac_ext 5206 5207 # OK, works on sane cases. Now check whether non-existent headers 5208 # can be detected and how. 5209 cat >conftest.$ac_ext <<_ACEOF 5210/* confdefs.h. */ 5211_ACEOF 5212cat confdefs.h >>conftest.$ac_ext 5213cat >>conftest.$ac_ext <<_ACEOF 5214/* end confdefs.h. */ 5215#include <ac_nonexistent.h> 5216_ACEOF 5217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5219 ac_status=$? 5220 grep -v '^ *+' conftest.er1 >conftest.err 5221 rm -f conftest.er1 5222 cat conftest.err >&5 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); } >/dev/null; then 5225 if test -s conftest.err; then 5226 ac_cpp_err=$ac_cxx_preproc_warn_flag 5227 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5228 else 5229 ac_cpp_err= 5230 fi 5231else 5232 ac_cpp_err=yes 5233fi 5234if test -z "$ac_cpp_err"; then 5235 # Broken: success on invalid input. 5236continue 5237else 5238 echo "$as_me: failed program was:" >&5 5239sed 's/^/| /' conftest.$ac_ext >&5 5240 5241 # Passes both tests. 5242ac_preproc_ok=: 5243break 5244fi 5245rm -f conftest.err conftest.$ac_ext 5246 5247done 5248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5249rm -f conftest.err conftest.$ac_ext 5250if $ac_preproc_ok; then 5251 : 5252else 5253 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5254See \`config.log' for more details." >&5 5255echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5256See \`config.log' for more details." >&2;} 5257 { (exit 1); exit 1; }; } 5258fi 5259 5260ac_ext=cc 5261ac_cpp='$CXXCPP $CPPFLAGS' 5262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5265 5266 5267ac_ext=f 5268ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5269ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5270ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5271if test -n "$ac_tool_prefix"; then 5272 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5273 do 5274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5275set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5276echo "$as_me:$LINENO: checking for $ac_word" >&5 5277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5278if test "${ac_cv_prog_F77+set}" = set; then 5279 echo $ECHO_N "(cached) $ECHO_C" >&6 5280else 5281 if test -n "$F77"; then 5282 ac_cv_prog_F77="$F77" # Let the user override the test. 5283else 5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5285for as_dir in $PATH 5286do 5287 IFS=$as_save_IFS 5288 test -z "$as_dir" && as_dir=. 5289 for ac_exec_ext in '' $ac_executable_extensions; do 5290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5291 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5293 break 2 5294 fi 5295done 5296done 5297 5298fi 5299fi 5300F77=$ac_cv_prog_F77 5301if test -n "$F77"; then 5302 echo "$as_me:$LINENO: result: $F77" >&5 5303echo "${ECHO_T}$F77" >&6 5304else 5305 echo "$as_me:$LINENO: result: no" >&5 5306echo "${ECHO_T}no" >&6 5307fi 5308 5309 test -n "$F77" && break 5310 done 5311fi 5312if test -z "$F77"; then 5313 ac_ct_F77=$F77 5314 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5315do 5316 # Extract the first word of "$ac_prog", so it can be a program name with args. 5317set dummy $ac_prog; ac_word=$2 5318echo "$as_me:$LINENO: checking for $ac_word" >&5 5319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5320if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5321 echo $ECHO_N "(cached) $ECHO_C" >&6 5322else 5323 if test -n "$ac_ct_F77"; then 5324 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5325else 5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327for as_dir in $PATH 5328do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5333 ac_cv_prog_ac_ct_F77="$ac_prog" 5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337done 5338done 5339 5340fi 5341fi 5342ac_ct_F77=$ac_cv_prog_ac_ct_F77 5343if test -n "$ac_ct_F77"; then 5344 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5345echo "${ECHO_T}$ac_ct_F77" >&6 5346else 5347 echo "$as_me:$LINENO: result: no" >&5 5348echo "${ECHO_T}no" >&6 5349fi 5350 5351 test -n "$ac_ct_F77" && break 5352done 5353 5354 F77=$ac_ct_F77 5355fi 5356 5357 5358# Provide some information about the compiler. 5359echo "$as_me:5359:" \ 5360 "checking for Fortran 77 compiler version" >&5 5361ac_compiler=`set X $ac_compile; echo $2` 5362{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5363 (eval $ac_compiler --version </dev/null >&5) 2>&5 5364 ac_status=$? 5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5366 (exit $ac_status); } 5367{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5368 (eval $ac_compiler -v </dev/null >&5) 2>&5 5369 ac_status=$? 5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5371 (exit $ac_status); } 5372{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5373 (eval $ac_compiler -V </dev/null >&5) 2>&5 5374 ac_status=$? 5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5376 (exit $ac_status); } 5377rm -f a.out 5378 5379# If we don't use `.F' as extension, the preprocessor is not run on the 5380# input file. (Note that this only needs to work for GNU compilers.) 5381ac_save_ext=$ac_ext 5382ac_ext=F 5383echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5384echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5385if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5386 echo $ECHO_N "(cached) $ECHO_C" >&6 5387else 5388 cat >conftest.$ac_ext <<_ACEOF 5389 program main 5390#ifndef __GNUC__ 5391 choke me 5392#endif 5393 5394 end 5395_ACEOF 5396rm -f conftest.$ac_objext 5397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5398 (eval $ac_compile) 2>conftest.er1 5399 ac_status=$? 5400 grep -v '^ *+' conftest.er1 >conftest.err 5401 rm -f conftest.er1 5402 cat conftest.err >&5 5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5404 (exit $ac_status); } && 5405 { ac_try='test -z "$ac_f77_werror_flag" 5406 || test ! -s conftest.err' 5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5408 (eval $ac_try) 2>&5 5409 ac_status=$? 5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5411 (exit $ac_status); }; } && 5412 { ac_try='test -s conftest.$ac_objext' 5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5414 (eval $ac_try) 2>&5 5415 ac_status=$? 5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5417 (exit $ac_status); }; }; then 5418 ac_compiler_gnu=yes 5419else 5420 echo "$as_me: failed program was:" >&5 5421sed 's/^/| /' conftest.$ac_ext >&5 5422 5423ac_compiler_gnu=no 5424fi 5425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5426ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5427 5428fi 5429echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5430echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5431ac_ext=$ac_save_ext 5432ac_test_FFLAGS=${FFLAGS+set} 5433ac_save_FFLAGS=$FFLAGS 5434FFLAGS= 5435echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5436echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5437if test "${ac_cv_prog_f77_g+set}" = set; then 5438 echo $ECHO_N "(cached) $ECHO_C" >&6 5439else 5440 FFLAGS=-g 5441cat >conftest.$ac_ext <<_ACEOF 5442 program main 5443 5444 end 5445_ACEOF 5446rm -f conftest.$ac_objext 5447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5448 (eval $ac_compile) 2>conftest.er1 5449 ac_status=$? 5450 grep -v '^ *+' conftest.er1 >conftest.err 5451 rm -f conftest.er1 5452 cat conftest.err >&5 5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); } && 5455 { ac_try='test -z "$ac_f77_werror_flag" 5456 || test ! -s conftest.err' 5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5458 (eval $ac_try) 2>&5 5459 ac_status=$? 5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5461 (exit $ac_status); }; } && 5462 { ac_try='test -s conftest.$ac_objext' 5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5464 (eval $ac_try) 2>&5 5465 ac_status=$? 5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5467 (exit $ac_status); }; }; then 5468 ac_cv_prog_f77_g=yes 5469else 5470 echo "$as_me: failed program was:" >&5 5471sed 's/^/| /' conftest.$ac_ext >&5 5472 5473ac_cv_prog_f77_g=no 5474fi 5475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5476 5477fi 5478echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5479echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5480if test "$ac_test_FFLAGS" = set; then 5481 FFLAGS=$ac_save_FFLAGS 5482elif test $ac_cv_prog_f77_g = yes; then 5483 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5484 FFLAGS="-g -O2" 5485 else 5486 FFLAGS="-g" 5487 fi 5488else 5489 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5490 FFLAGS="-O2" 5491 else 5492 FFLAGS= 5493 fi 5494fi 5495 5496G77=`test $ac_compiler_gnu = yes && echo yes` 5497ac_ext=c 5498ac_cpp='$CPP $CPPFLAGS' 5499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5501ac_compiler_gnu=$ac_cv_c_compiler_gnu 5502 5503 5504 5505# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5506 5507# find the maximum length of command line arguments 5508echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5509echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5510if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5511 echo $ECHO_N "(cached) $ECHO_C" >&6 5512else 5513 i=0 5514 teststring="ABCD" 5515 5516 case $build_os in 5517 msdosdjgpp*) 5518 # On DJGPP, this test can blow up pretty badly due to problems in libc 5519 # (any single argument exceeding 2000 bytes causes a buffer overrun 5520 # during glob expansion). Even if it were fixed, the result of this 5521 # check would be larger than it should be. 5522 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5523 ;; 5524 5525 gnu*) 5526 # Under GNU Hurd, this test is not required because there is 5527 # no limit to the length of command line arguments. 5528 # Libtool will interpret -1 as no limit whatsoever 5529 lt_cv_sys_max_cmd_len=-1; 5530 ;; 5531 5532 cygwin* | mingw*) 5533 # On Win9x/ME, this test blows up -- it succeeds, but takes 5534 # about 5 minutes as the teststring grows exponentially. 5535 # Worse, since 9x/ME are not pre-emptively multitasking, 5536 # you end up with a "frozen" computer, even though with patience 5537 # the test eventually succeeds (with a max line length of 256k). 5538 # Instead, let's just punt: use the minimum linelength reported by 5539 # all of the supported platforms: 8192 (on NT/2K/XP). 5540 lt_cv_sys_max_cmd_len=8192; 5541 ;; 5542 5543 amigaos*) 5544 # On AmigaOS with pdksh, this test takes hours, literally. 5545 # So we just punt and use a minimum line length of 8192. 5546 lt_cv_sys_max_cmd_len=8192; 5547 ;; 5548 5549 *) 5550 # If test is not a shell built-in, we'll probably end up computing a 5551 # maximum length that is only half of the actual maximum length, but 5552 # we can't tell. 5553 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5554 = "XX$teststring") >/dev/null 2>&1 && 5555 new_result=`expr "X$teststring" : ".*" 2>&1` && 5556 lt_cv_sys_max_cmd_len=$new_result && 5557 test $i != 17 # 1/2 MB should be enough 5558 do 5559 i=`expr $i + 1` 5560 teststring=$teststring$teststring 5561 done 5562 teststring= 5563 # Add a significant safety factor because C++ compilers can tack on massive 5564 # amounts of additional arguments before passing them to the linker. 5565 # It appears as though 1/2 is a usable value. 5566 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5567 ;; 5568 esac 5569 5570fi 5571 5572if test -n $lt_cv_sys_max_cmd_len ; then 5573 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5574echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5575else 5576 echo "$as_me:$LINENO: result: none" >&5 5577echo "${ECHO_T}none" >&6 5578fi 5579 5580 5581 5582 5583# Check for command to grab the raw symbol name followed by C symbol from nm. 5584echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5585echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5586if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5587 echo $ECHO_N "(cached) $ECHO_C" >&6 5588else 5589 5590# These are sane defaults that work on at least a few old systems. 5591# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5592 5593# Character class describing NM global symbol codes. 5594symcode='[BCDEGRST]' 5595 5596# Regexp to match symbols that can be accessed directly from C. 5597sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5598 5599# Transform the above into a raw symbol and a C symbol. 5600symxfrm='\1 \2\3 \3' 5601 5602# Transform an extracted symbol line into a proper C declaration 5603lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5604 5605# Transform an extracted symbol line into symbol name and symbol address 5606lt_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'" 5607 5608# Define system-specific variables. 5609case $host_os in 5610aix*) 5611 symcode='[BCDT]' 5612 ;; 5613cygwin* | mingw* | pw32*) 5614 symcode='[ABCDGISTW]' 5615 ;; 5616hpux*) # Its linker distinguishes data from code symbols 5617 if test "$host_cpu" = ia64; then 5618 symcode='[ABCDEGRST]' 5619 fi 5620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5621 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'" 5622 ;; 5623irix* | nonstopux*) 5624 symcode='[BCDEGRST]' 5625 ;; 5626osf*) 5627 symcode='[BCDEGQRST]' 5628 ;; 5629solaris* | sysv5*) 5630 symcode='[BDRT]' 5631 ;; 5632sysv4) 5633 symcode='[DFNSTU]' 5634 ;; 5635esac 5636 5637# Handle CRLF in mingw tool chain 5638opt_cr= 5639case $build_os in 5640mingw*) 5641 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5642 ;; 5643esac 5644 5645# If we're using GNU nm, then use its standard symbol codes. 5646case `$NM -V 2>&1` in 5647*GNU* | *'with BFD'*) 5648 symcode='[ABCDGIRSTW]' ;; 5649esac 5650 5651# Try without a prefix undercore, then with it. 5652for ac_symprfx in "" "_"; do 5653 5654 # Write the raw and C identifiers. 5655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5656 5657 # Check to see that the pipe works correctly. 5658 pipe_works=no 5659 5660 rm -f conftest* 5661 cat > conftest.$ac_ext <<EOF 5662#ifdef __cplusplus 5663extern "C" { 5664#endif 5665char nm_test_var; 5666void nm_test_func(){} 5667#ifdef __cplusplus 5668} 5669#endif 5670int main(){nm_test_var='a';nm_test_func();return(0);} 5671EOF 5672 5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5674 (eval $ac_compile) 2>&5 5675 ac_status=$? 5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5677 (exit $ac_status); }; then 5678 # Now try to grab the symbols. 5679 nlist=conftest.nm 5680 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5681 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5682 ac_status=$? 5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5684 (exit $ac_status); } && test -s "$nlist"; then 5685 # Try sorting and uniquifying the output. 5686 if sort "$nlist" | uniq > "$nlist"T; then 5687 mv -f "$nlist"T "$nlist" 5688 else 5689 rm -f "$nlist"T 5690 fi 5691 5692 # Make sure that we snagged all the symbols we need. 5693 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5694 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5695 cat <<EOF > conftest.$ac_ext 5696#ifdef __cplusplus 5697extern "C" { 5698#endif 5699 5700EOF 5701 # Now generate the symbol file. 5702 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5703 5704 cat <<EOF >> conftest.$ac_ext 5705#if defined (__STDC__) && __STDC__ 5706# define lt_ptr_t void * 5707#else 5708# define lt_ptr_t char * 5709# define const 5710#endif 5711 5712/* The mapping between symbol names and symbols. */ 5713const struct { 5714 const char *name; 5715 lt_ptr_t address; 5716} 5717lt_preloaded_symbols[] = 5718{ 5719EOF 5720 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5721 cat <<\EOF >> conftest.$ac_ext 5722 {0, (lt_ptr_t) 0} 5723}; 5724 5725#ifdef __cplusplus 5726} 5727#endif 5728EOF 5729 # Now try linking the two files. 5730 mv conftest.$ac_objext conftstm.$ac_objext 5731 lt_save_LIBS="$LIBS" 5732 lt_save_CFLAGS="$CFLAGS" 5733 LIBS="conftstm.$ac_objext" 5734 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5736 (eval $ac_link) 2>&5 5737 ac_status=$? 5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5739 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5740 pipe_works=yes 5741 fi 5742 LIBS="$lt_save_LIBS" 5743 CFLAGS="$lt_save_CFLAGS" 5744 else 5745 echo "cannot find nm_test_func in $nlist" >&5 5746 fi 5747 else 5748 echo "cannot find nm_test_var in $nlist" >&5 5749 fi 5750 else 5751 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5752 fi 5753 else 5754 echo "$progname: failed program was:" >&5 5755 cat conftest.$ac_ext >&5 5756 fi 5757 rm -f conftest* conftst* 5758 5759 # Do not use the global_symbol_pipe unless it works. 5760 if test "$pipe_works" = yes; then 5761 break 5762 else 5763 lt_cv_sys_global_symbol_pipe= 5764 fi 5765done 5766 5767fi 5768 5769if test -z "$lt_cv_sys_global_symbol_pipe"; then 5770 lt_cv_sys_global_symbol_to_cdecl= 5771fi 5772if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5773 echo "$as_me:$LINENO: result: failed" >&5 5774echo "${ECHO_T}failed" >&6 5775else 5776 echo "$as_me:$LINENO: result: ok" >&5 5777echo "${ECHO_T}ok" >&6 5778fi 5779 5780echo "$as_me:$LINENO: checking for objdir" >&5 5781echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5782if test "${lt_cv_objdir+set}" = set; then 5783 echo $ECHO_N "(cached) $ECHO_C" >&6 5784else 5785 rm -f .libs 2>/dev/null 5786mkdir .libs 2>/dev/null 5787if test -d .libs; then 5788 lt_cv_objdir=.libs 5789else 5790 # MS-DOS does not allow filenames that begin with a dot. 5791 lt_cv_objdir=_libs 5792fi 5793rmdir .libs 2>/dev/null 5794fi 5795echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5796echo "${ECHO_T}$lt_cv_objdir" >&6 5797objdir=$lt_cv_objdir 5798 5799 5800 5801 5802 5803case $host_os in 5804aix3*) 5805 # AIX sometimes has problems with the GCC collect2 program. For some 5806 # reason, if we set the COLLECT_NAMES environment variable, the problems 5807 # vanish in a puff of smoke. 5808 if test "X${COLLECT_NAMES+set}" != Xset; then 5809 COLLECT_NAMES= 5810 export COLLECT_NAMES 5811 fi 5812 ;; 5813esac 5814 5815# Sed substitution that helps us do robust quoting. It backslashifies 5816# metacharacters that are still active within double-quoted strings. 5817Xsed='sed -e s/^X//' 5818sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5819 5820# Same as above, but do not quote variable references. 5821double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5822 5823# Sed substitution to delay expansion of an escaped shell variable in a 5824# double_quote_subst'ed string. 5825delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5826 5827# Sed substitution to avoid accidental globbing in evaled expressions 5828no_glob_subst='s/\*/\\\*/g' 5829 5830# Constants: 5831rm="rm -f" 5832 5833# Global variables: 5834default_ofile=libtool 5835can_build_shared=yes 5836 5837# All known linkers require a `.a' archive for static linking (except M$VC, 5838# which needs '.lib'). 5839libext=a 5840ltmain="$ac_aux_dir/ltmain.sh" 5841ofile="$default_ofile" 5842with_gnu_ld="$lt_cv_prog_gnu_ld" 5843 5844if test -n "$ac_tool_prefix"; then 5845 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5846set dummy ${ac_tool_prefix}ar; ac_word=$2 5847echo "$as_me:$LINENO: checking for $ac_word" >&5 5848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5849if test "${ac_cv_prog_AR+set}" = set; then 5850 echo $ECHO_N "(cached) $ECHO_C" >&6 5851else 5852 if test -n "$AR"; then 5853 ac_cv_prog_AR="$AR" # Let the user override the test. 5854else 5855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5856for as_dir in $PATH 5857do 5858 IFS=$as_save_IFS 5859 test -z "$as_dir" && as_dir=. 5860 for ac_exec_ext in '' $ac_executable_extensions; do 5861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5862 ac_cv_prog_AR="${ac_tool_prefix}ar" 5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5864 break 2 5865 fi 5866done 5867done 5868 5869fi 5870fi 5871AR=$ac_cv_prog_AR 5872if test -n "$AR"; then 5873 echo "$as_me:$LINENO: result: $AR" >&5 5874echo "${ECHO_T}$AR" >&6 5875else 5876 echo "$as_me:$LINENO: result: no" >&5 5877echo "${ECHO_T}no" >&6 5878fi 5879 5880fi 5881if test -z "$ac_cv_prog_AR"; then 5882 ac_ct_AR=$AR 5883 # Extract the first word of "ar", so it can be a program name with args. 5884set dummy ar; ac_word=$2 5885echo "$as_me:$LINENO: checking for $ac_word" >&5 5886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5887if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5888 echo $ECHO_N "(cached) $ECHO_C" >&6 5889else 5890 if test -n "$ac_ct_AR"; then 5891 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5892else 5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5894for as_dir in $PATH 5895do 5896 IFS=$as_save_IFS 5897 test -z "$as_dir" && as_dir=. 5898 for ac_exec_ext in '' $ac_executable_extensions; do 5899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5900 ac_cv_prog_ac_ct_AR="ar" 5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5902 break 2 5903 fi 5904done 5905done 5906 5907 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5908fi 5909fi 5910ac_ct_AR=$ac_cv_prog_ac_ct_AR 5911if test -n "$ac_ct_AR"; then 5912 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5913echo "${ECHO_T}$ac_ct_AR" >&6 5914else 5915 echo "$as_me:$LINENO: result: no" >&5 5916echo "${ECHO_T}no" >&6 5917fi 5918 5919 AR=$ac_ct_AR 5920else 5921 AR="$ac_cv_prog_AR" 5922fi 5923 5924if test -n "$ac_tool_prefix"; then 5925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5926set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5927echo "$as_me:$LINENO: checking for $ac_word" >&5 5928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5929if test "${ac_cv_prog_RANLIB+set}" = set; then 5930 echo $ECHO_N "(cached) $ECHO_C" >&6 5931else 5932 if test -n "$RANLIB"; then 5933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5934else 5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5936for as_dir in $PATH 5937do 5938 IFS=$as_save_IFS 5939 test -z "$as_dir" && as_dir=. 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5942 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947done 5948 5949fi 5950fi 5951RANLIB=$ac_cv_prog_RANLIB 5952if test -n "$RANLIB"; then 5953 echo "$as_me:$LINENO: result: $RANLIB" >&5 5954echo "${ECHO_T}$RANLIB" >&6 5955else 5956 echo "$as_me:$LINENO: result: no" >&5 5957echo "${ECHO_T}no" >&6 5958fi 5959 5960fi 5961if test -z "$ac_cv_prog_RANLIB"; then 5962 ac_ct_RANLIB=$RANLIB 5963 # Extract the first word of "ranlib", so it can be a program name with args. 5964set dummy ranlib; ac_word=$2 5965echo "$as_me:$LINENO: checking for $ac_word" >&5 5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5967if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5968 echo $ECHO_N "(cached) $ECHO_C" >&6 5969else 5970 if test -n "$ac_ct_RANLIB"; then 5971 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5972else 5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5974for as_dir in $PATH 5975do 5976 IFS=$as_save_IFS 5977 test -z "$as_dir" && as_dir=. 5978 for ac_exec_ext in '' $ac_executable_extensions; do 5979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5980 ac_cv_prog_ac_ct_RANLIB="ranlib" 5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5982 break 2 5983 fi 5984done 5985done 5986 5987 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5988fi 5989fi 5990ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5991if test -n "$ac_ct_RANLIB"; then 5992 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5993echo "${ECHO_T}$ac_ct_RANLIB" >&6 5994else 5995 echo "$as_me:$LINENO: result: no" >&5 5996echo "${ECHO_T}no" >&6 5997fi 5998 5999 RANLIB=$ac_ct_RANLIB 6000else 6001 RANLIB="$ac_cv_prog_RANLIB" 6002fi 6003 6004if test -n "$ac_tool_prefix"; then 6005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6006set dummy ${ac_tool_prefix}strip; ac_word=$2 6007echo "$as_me:$LINENO: checking for $ac_word" >&5 6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6009if test "${ac_cv_prog_STRIP+set}" = set; then 6010 echo $ECHO_N "(cached) $ECHO_C" >&6 6011else 6012 if test -n "$STRIP"; then 6013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6014else 6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6016for as_dir in $PATH 6017do 6018 IFS=$as_save_IFS 6019 test -z "$as_dir" && as_dir=. 6020 for ac_exec_ext in '' $ac_executable_extensions; do 6021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6022 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6024 break 2 6025 fi 6026done 6027done 6028 6029fi 6030fi 6031STRIP=$ac_cv_prog_STRIP 6032if test -n "$STRIP"; then 6033 echo "$as_me:$LINENO: result: $STRIP" >&5 6034echo "${ECHO_T}$STRIP" >&6 6035else 6036 echo "$as_me:$LINENO: result: no" >&5 6037echo "${ECHO_T}no" >&6 6038fi 6039 6040fi 6041if test -z "$ac_cv_prog_STRIP"; then 6042 ac_ct_STRIP=$STRIP 6043 # Extract the first word of "strip", so it can be a program name with args. 6044set dummy strip; ac_word=$2 6045echo "$as_me:$LINENO: checking for $ac_word" >&5 6046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6047if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6048 echo $ECHO_N "(cached) $ECHO_C" >&6 6049else 6050 if test -n "$ac_ct_STRIP"; then 6051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6052else 6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6054for as_dir in $PATH 6055do 6056 IFS=$as_save_IFS 6057 test -z "$as_dir" && as_dir=. 6058 for ac_exec_ext in '' $ac_executable_extensions; do 6059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6060 ac_cv_prog_ac_ct_STRIP="strip" 6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6062 break 2 6063 fi 6064done 6065done 6066 6067 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6068fi 6069fi 6070ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6071if test -n "$ac_ct_STRIP"; then 6072 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6073echo "${ECHO_T}$ac_ct_STRIP" >&6 6074else 6075 echo "$as_me:$LINENO: result: no" >&5 6076echo "${ECHO_T}no" >&6 6077fi 6078 6079 STRIP=$ac_ct_STRIP 6080else 6081 STRIP="$ac_cv_prog_STRIP" 6082fi 6083 6084 6085old_CC="$CC" 6086old_CFLAGS="$CFLAGS" 6087 6088# Set sane defaults for various variables 6089test -z "$AR" && AR=ar 6090test -z "$AR_FLAGS" && AR_FLAGS=cru 6091test -z "$AS" && AS=as 6092test -z "$CC" && CC=cc 6093test -z "$LTCC" && LTCC=$CC 6094test -z "$DLLTOOL" && DLLTOOL=dlltool 6095test -z "$LD" && LD=ld 6096test -z "$LN_S" && LN_S="ln -s" 6097test -z "$MAGIC_CMD" && MAGIC_CMD=file 6098test -z "$NM" && NM=nm 6099test -z "$SED" && SED=sed 6100test -z "$OBJDUMP" && OBJDUMP=objdump 6101test -z "$RANLIB" && RANLIB=: 6102test -z "$STRIP" && STRIP=: 6103test -z "$ac_objext" && ac_objext=o 6104 6105# Determine commands to create old-style static archives. 6106old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6107old_postinstall_cmds='chmod 644 $oldlib' 6108old_postuninstall_cmds= 6109 6110if test -n "$RANLIB"; then 6111 case $host_os in 6112 openbsd*) 6113 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6114 ;; 6115 *) 6116 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6117 ;; 6118 esac 6119 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6120fi 6121 6122# Only perform the check for file, if the check method requires it 6123case $deplibs_check_method in 6124file_magic*) 6125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6126 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6127echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6128if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6129 echo $ECHO_N "(cached) $ECHO_C" >&6 6130else 6131 case $MAGIC_CMD in 6132[\\/*] | ?:[\\/]*) 6133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6134 ;; 6135*) 6136 lt_save_MAGIC_CMD="$MAGIC_CMD" 6137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6138 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6139 for ac_dir in $ac_dummy; do 6140 IFS="$lt_save_ifs" 6141 test -z "$ac_dir" && ac_dir=. 6142 if test -f $ac_dir/${ac_tool_prefix}file; then 6143 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6144 if test -n "$file_magic_test_file"; then 6145 case $deplibs_check_method in 6146 "file_magic "*) 6147 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6149 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6150 $EGREP "$file_magic_regex" > /dev/null; then 6151 : 6152 else 6153 cat <<EOF 1>&2 6154 6155*** Warning: the command libtool uses to detect shared libraries, 6156*** $file_magic_cmd, produces output that libtool cannot recognize. 6157*** The result is that libtool may fail to recognize shared libraries 6158*** as such. This will affect the creation of libtool libraries that 6159*** depend on shared libraries, but programs linked with such libtool 6160*** libraries will work regardless of this problem. Nevertheless, you 6161*** may want to report the problem to your system manager and/or to 6162*** bug-libtool@gnu.org 6163 6164EOF 6165 fi ;; 6166 esac 6167 fi 6168 break 6169 fi 6170 done 6171 IFS="$lt_save_ifs" 6172 MAGIC_CMD="$lt_save_MAGIC_CMD" 6173 ;; 6174esac 6175fi 6176 6177MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6178if test -n "$MAGIC_CMD"; then 6179 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6180echo "${ECHO_T}$MAGIC_CMD" >&6 6181else 6182 echo "$as_me:$LINENO: result: no" >&5 6183echo "${ECHO_T}no" >&6 6184fi 6185 6186if test -z "$lt_cv_path_MAGIC_CMD"; then 6187 if test -n "$ac_tool_prefix"; then 6188 echo "$as_me:$LINENO: checking for file" >&5 6189echo $ECHO_N "checking for file... $ECHO_C" >&6 6190if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6191 echo $ECHO_N "(cached) $ECHO_C" >&6 6192else 6193 case $MAGIC_CMD in 6194[\\/*] | ?:[\\/]*) 6195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6196 ;; 6197*) 6198 lt_save_MAGIC_CMD="$MAGIC_CMD" 6199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6201 for ac_dir in $ac_dummy; do 6202 IFS="$lt_save_ifs" 6203 test -z "$ac_dir" && ac_dir=. 6204 if test -f $ac_dir/file; then 6205 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6206 if test -n "$file_magic_test_file"; then 6207 case $deplibs_check_method in 6208 "file_magic "*) 6209 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6212 $EGREP "$file_magic_regex" > /dev/null; then 6213 : 6214 else 6215 cat <<EOF 1>&2 6216 6217*** Warning: the command libtool uses to detect shared libraries, 6218*** $file_magic_cmd, produces output that libtool cannot recognize. 6219*** The result is that libtool may fail to recognize shared libraries 6220*** as such. This will affect the creation of libtool libraries that 6221*** depend on shared libraries, but programs linked with such libtool 6222*** libraries will work regardless of this problem. Nevertheless, you 6223*** may want to report the problem to your system manager and/or to 6224*** bug-libtool@gnu.org 6225 6226EOF 6227 fi ;; 6228 esac 6229 fi 6230 break 6231 fi 6232 done 6233 IFS="$lt_save_ifs" 6234 MAGIC_CMD="$lt_save_MAGIC_CMD" 6235 ;; 6236esac 6237fi 6238 6239MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6240if test -n "$MAGIC_CMD"; then 6241 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6242echo "${ECHO_T}$MAGIC_CMD" >&6 6243else 6244 echo "$as_me:$LINENO: result: no" >&5 6245echo "${ECHO_T}no" >&6 6246fi 6247 6248 else 6249 MAGIC_CMD=: 6250 fi 6251fi 6252 6253 fi 6254 ;; 6255esac 6256 6257enable_dlopen=no 6258enable_win32_dll=no 6259 6260# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6261if test "${enable_libtool_lock+set}" = set; then 6262 enableval="$enable_libtool_lock" 6263 6264fi; 6265test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6266 6267 6268# Check whether --with-pic or --without-pic was given. 6269if test "${with_pic+set}" = set; then 6270 withval="$with_pic" 6271 pic_mode="$withval" 6272else 6273 pic_mode=default 6274fi; 6275test -z "$pic_mode" && pic_mode=default 6276 6277# Use C for the default configuration in the libtool script 6278tagname= 6279lt_save_CC="$CC" 6280ac_ext=c 6281ac_cpp='$CPP $CPPFLAGS' 6282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6284ac_compiler_gnu=$ac_cv_c_compiler_gnu 6285 6286 6287# Source file extension for C test sources. 6288ac_ext=c 6289 6290# Object file extension for compiled C test sources. 6291objext=o 6292objext=$objext 6293 6294# Code to be used in simple compile tests 6295lt_simple_compile_test_code="int some_variable = 0;\n" 6296 6297# Code to be used in simple link tests 6298lt_simple_link_test_code='int main(){return(0);}\n' 6299 6300 6301# If no C compiler was specified, use CC. 6302LTCC=${LTCC-"$CC"} 6303 6304# Allow CC to be a program name with arguments. 6305compiler=$CC 6306 6307 6308# 6309# Check for any special shared library compilation flags. 6310# 6311lt_prog_cc_shlib= 6312if test "$GCC" = no; then 6313 case $host_os in 6314 sco3.2v5*) 6315 lt_prog_cc_shlib='-belf' 6316 ;; 6317 esac 6318fi 6319if test -n "$lt_prog_cc_shlib"; then 6320 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6321echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6322 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6323 else 6324 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6325echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6326 lt_cv_prog_cc_can_build_shared=no 6327 fi 6328fi 6329 6330 6331# 6332# Check to make sure the static flag actually works. 6333# 6334echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6335echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6336if test "${lt_prog_compiler_static_works+set}" = set; then 6337 echo $ECHO_N "(cached) $ECHO_C" >&6 6338else 6339 lt_prog_compiler_static_works=no 6340 save_LDFLAGS="$LDFLAGS" 6341 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6342 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6343 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6344 # The compiler can only warn and ignore the option if not recognized 6345 # So say no if there are warnings 6346 if test -s conftest.err; then 6347 # Append any errors to the config.log. 6348 cat conftest.err 1>&5 6349 else 6350 lt_prog_compiler_static_works=yes 6351 fi 6352 fi 6353 $rm conftest* 6354 LDFLAGS="$save_LDFLAGS" 6355 6356fi 6357echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6358echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6359 6360if test x"$lt_prog_compiler_static_works" = xyes; then 6361 : 6362else 6363 lt_prog_compiler_static= 6364fi 6365 6366 6367 6368 6369lt_prog_compiler_no_builtin_flag= 6370 6371if test "$GCC" = yes; then 6372 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6373 6374 6375echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6376echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6377if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6378 echo $ECHO_N "(cached) $ECHO_C" >&6 6379else 6380 lt_cv_prog_compiler_rtti_exceptions=no 6381 ac_outfile=conftest.$ac_objext 6382 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6383 lt_compiler_flag="-fno-rtti -fno-exceptions" 6384 # Insert the option either (1) after the last *FLAGS variable, or 6385 # (2) before a word containing "conftest.", or (3) at the end. 6386 # Note that $ac_compile itself does not contain backslashes and begins 6387 # with a dollar sign (not a hyphen), so the echo should work correctly. 6388 # The option is referenced via a variable to avoid confusing sed. 6389 lt_compile=`echo "$ac_compile" | $SED \ 6390 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6392 -e 's:$: $lt_compiler_flag:'` 6393 (eval echo "\"\$as_me:6393: $lt_compile\"" >&5) 6394 (eval "$lt_compile" 2>conftest.err) 6395 ac_status=$? 6396 cat conftest.err >&5 6397 echo "$as_me:6397: \$? = $ac_status" >&5 6398 if (exit $ac_status) && test -s "$ac_outfile"; then 6399 # The compiler can only warn and ignore the option if not recognized 6400 # So say no if there are warnings 6401 if test ! -s conftest.err; then 6402 lt_cv_prog_compiler_rtti_exceptions=yes 6403 fi 6404 fi 6405 $rm conftest* 6406 6407fi 6408echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6409echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6410 6411if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6412 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6413else 6414 : 6415fi 6416 6417fi 6418 6419lt_prog_compiler_wl= 6420lt_prog_compiler_pic= 6421lt_prog_compiler_static= 6422 6423echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6424echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6425 6426 if test "$GCC" = yes; then 6427 lt_prog_compiler_wl='-Wl,' 6428 lt_prog_compiler_static='-static' 6429 6430 case $host_os in 6431 aix*) 6432 # All AIX code is PIC. 6433 if test "$host_cpu" = ia64; then 6434 # AIX 5 now supports IA64 processor 6435 lt_prog_compiler_static='-Bstatic' 6436 fi 6437 ;; 6438 6439 amigaos*) 6440 # FIXME: we need at least 68020 code to build shared libraries, but 6441 # adding the `-m68020' flag to GCC prevents building anything better, 6442 # like `-m68040'. 6443 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6444 ;; 6445 6446 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6447 # PIC is the default for these OSes. 6448 ;; 6449 6450 mingw* | pw32* | os2*) 6451 # This hack is so that the source file can tell whether it is being 6452 # built for inclusion in a dll (and should export symbols for example). 6453 lt_prog_compiler_pic='-DDLL_EXPORT' 6454 ;; 6455 6456 darwin* | rhapsody*) 6457 # PIC is the default on this platform 6458 # Common symbols not allowed in MH_DYLIB files 6459 lt_prog_compiler_pic='-fno-common' 6460 ;; 6461 6462 msdosdjgpp*) 6463 # Just because we use GCC doesn't mean we suddenly get shared libraries 6464 # on systems that don't support them. 6465 lt_prog_compiler_can_build_shared=no 6466 enable_shared=no 6467 ;; 6468 6469 sysv4*MP*) 6470 if test -d /usr/nec; then 6471 lt_prog_compiler_pic=-Kconform_pic 6472 fi 6473 ;; 6474 6475 hpux*) 6476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6477 # not for PA HP-UX. 6478 case "$host_cpu" in 6479 hppa*64*|ia64*) 6480 # +Z the default 6481 ;; 6482 *) 6483 lt_prog_compiler_pic='-fPIC' 6484 ;; 6485 esac 6486 ;; 6487 6488 *) 6489 lt_prog_compiler_pic='-fPIC' 6490 ;; 6491 esac 6492 else 6493 # PORTME Check for flag to pass linker flags through the system compiler. 6494 case $host_os in 6495 aix*) 6496 lt_prog_compiler_wl='-Wl,' 6497 if test "$host_cpu" = ia64; then 6498 # AIX 5 now supports IA64 processor 6499 lt_prog_compiler_static='-Bstatic' 6500 else 6501 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6502 fi 6503 ;; 6504 6505 mingw* | pw32* | os2*) 6506 # This hack is so that the source file can tell whether it is being 6507 # built for inclusion in a dll (and should export symbols for example). 6508 lt_prog_compiler_pic='-DDLL_EXPORT' 6509 ;; 6510 6511 hpux9* | hpux10* | hpux11*) 6512 lt_prog_compiler_wl='-Wl,' 6513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6514 # not for PA HP-UX. 6515 case "$host_cpu" in 6516 hppa*64*|ia64*) 6517 # +Z the default 6518 ;; 6519 *) 6520 lt_prog_compiler_pic='+Z' 6521 ;; 6522 esac 6523 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6524 lt_prog_compiler_static='${wl}-a ${wl}archive' 6525 ;; 6526 6527 irix5* | irix6* | nonstopux*) 6528 lt_prog_compiler_wl='-Wl,' 6529 # PIC (with -KPIC) is the default. 6530 lt_prog_compiler_static='-non_shared' 6531 ;; 6532 6533 newsos6) 6534 lt_prog_compiler_pic='-KPIC' 6535 lt_prog_compiler_static='-Bstatic' 6536 ;; 6537 6538 linux*) 6539 case $CC in 6540 icc* | ecc*) 6541 lt_prog_compiler_wl='-Wl,' 6542 lt_prog_compiler_pic='-KPIC' 6543 lt_prog_compiler_static='-static' 6544 ;; 6545 ccc*) 6546 lt_prog_compiler_wl='-Wl,' 6547 # All Alpha code is PIC. 6548 lt_prog_compiler_static='-non_shared' 6549 ;; 6550 esac 6551 ;; 6552 6553 osf3* | osf4* | osf5*) 6554 lt_prog_compiler_wl='-Wl,' 6555 # All OSF/1 code is PIC. 6556 lt_prog_compiler_static='-non_shared' 6557 ;; 6558 6559 sco3.2v5*) 6560 lt_prog_compiler_pic='-Kpic' 6561 lt_prog_compiler_static='-dn' 6562 ;; 6563 6564 solaris*) 6565 lt_prog_compiler_wl='-Wl,' 6566 lt_prog_compiler_pic='-KPIC' 6567 lt_prog_compiler_static='-Bstatic' 6568 ;; 6569 6570 sunos4*) 6571 lt_prog_compiler_wl='-Qoption ld ' 6572 lt_prog_compiler_pic='-PIC' 6573 lt_prog_compiler_static='-Bstatic' 6574 ;; 6575 6576 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6577 lt_prog_compiler_wl='-Wl,' 6578 lt_prog_compiler_pic='-KPIC' 6579 lt_prog_compiler_static='-Bstatic' 6580 ;; 6581 6582 sysv4*MP*) 6583 if test -d /usr/nec ;then 6584 lt_prog_compiler_pic='-Kconform_pic' 6585 lt_prog_compiler_static='-Bstatic' 6586 fi 6587 ;; 6588 6589 uts4*) 6590 lt_prog_compiler_pic='-pic' 6591 lt_prog_compiler_static='-Bstatic' 6592 ;; 6593 6594 *) 6595 lt_prog_compiler_can_build_shared=no 6596 ;; 6597 esac 6598 fi 6599 6600echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6601echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6602 6603# 6604# Check to make sure the PIC flag actually works. 6605# 6606if test -n "$lt_prog_compiler_pic"; then 6607 6608echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6609echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6610if test "${lt_prog_compiler_pic_works+set}" = set; then 6611 echo $ECHO_N "(cached) $ECHO_C" >&6 6612else 6613 lt_prog_compiler_pic_works=no 6614 ac_outfile=conftest.$ac_objext 6615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6616 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6617 # Insert the option either (1) after the last *FLAGS variable, or 6618 # (2) before a word containing "conftest.", or (3) at the end. 6619 # Note that $ac_compile itself does not contain backslashes and begins 6620 # with a dollar sign (not a hyphen), so the echo should work correctly. 6621 # The option is referenced via a variable to avoid confusing sed. 6622 lt_compile=`echo "$ac_compile" | $SED \ 6623 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6625 -e 's:$: $lt_compiler_flag:'` 6626 (eval echo "\"\$as_me:6626: $lt_compile\"" >&5) 6627 (eval "$lt_compile" 2>conftest.err) 6628 ac_status=$? 6629 cat conftest.err >&5 6630 echo "$as_me:6630: \$? = $ac_status" >&5 6631 if (exit $ac_status) && test -s "$ac_outfile"; then 6632 # The compiler can only warn and ignore the option if not recognized 6633 # So say no if there are warnings 6634 if test ! -s conftest.err; then 6635 lt_prog_compiler_pic_works=yes 6636 fi 6637 fi 6638 $rm conftest* 6639 6640fi 6641echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6642echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6643 6644if test x"$lt_prog_compiler_pic_works" = xyes; then 6645 case $lt_prog_compiler_pic in 6646 "" | " "*) ;; 6647 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6648 esac 6649else 6650 lt_prog_compiler_pic= 6651 lt_prog_compiler_can_build_shared=no 6652fi 6653 6654fi 6655case "$host_os" in 6656 # For platforms which do not support PIC, -DPIC is meaningless: 6657 *djgpp*) 6658 lt_prog_compiler_pic= 6659 ;; 6660 *) 6661 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6662 ;; 6663esac 6664 6665echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6666echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6667if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6668 echo $ECHO_N "(cached) $ECHO_C" >&6 6669else 6670 lt_cv_prog_compiler_c_o=no 6671 $rm -r conftest 2>/dev/null 6672 mkdir conftest 6673 cd conftest 6674 mkdir out 6675 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6676 6677 lt_compiler_flag="-o out/conftest2.$ac_objext" 6678 # Insert the option either (1) after the last *FLAGS variable, or 6679 # (2) before a word containing "conftest.", or (3) at the end. 6680 # Note that $ac_compile itself does not contain backslashes and begins 6681 # with a dollar sign (not a hyphen), so the echo should work correctly. 6682 lt_compile=`echo "$ac_compile" | $SED \ 6683 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6685 -e 's:$: $lt_compiler_flag:'` 6686 (eval echo "\"\$as_me:6686: $lt_compile\"" >&5) 6687 (eval "$lt_compile" 2>out/conftest.err) 6688 ac_status=$? 6689 cat out/conftest.err >&5 6690 echo "$as_me:6690: \$? = $ac_status" >&5 6691 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6692 then 6693 # The compiler can only warn and ignore the option if not recognized 6694 # So say no if there are warnings 6695 if test ! -s out/conftest.err; then 6696 lt_cv_prog_compiler_c_o=yes 6697 fi 6698 fi 6699 chmod u+w . 6700 $rm conftest* 6701 # SGI C++ compiler will create directory out/ii_files/ for 6702 # template instantiation 6703 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6704 $rm out/* && rmdir out 6705 cd .. 6706 rmdir conftest 6707 $rm conftest* 6708 6709fi 6710echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6711echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6712 6713 6714hard_links="nottested" 6715if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6716 # do not overwrite the value of need_locks provided by the user 6717 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6718echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6719 hard_links=yes 6720 $rm conftest* 6721 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6722 touch conftest.a 6723 ln conftest.a conftest.b 2>&5 || hard_links=no 6724 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6725 echo "$as_me:$LINENO: result: $hard_links" >&5 6726echo "${ECHO_T}$hard_links" >&6 6727 if test "$hard_links" = no; then 6728 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6729echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6730 need_locks=warn 6731 fi 6732else 6733 need_locks=no 6734fi 6735 6736echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6737echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6738 6739 runpath_var= 6740 allow_undefined_flag= 6741 enable_shared_with_static_runtimes=no 6742 archive_cmds= 6743 archive_expsym_cmds= 6744 old_archive_From_new_cmds= 6745 old_archive_from_expsyms_cmds= 6746 export_dynamic_flag_spec= 6747 whole_archive_flag_spec= 6748 thread_safe_flag_spec= 6749 hardcode_libdir_flag_spec= 6750 hardcode_libdir_flag_spec_ld= 6751 hardcode_libdir_separator= 6752 hardcode_direct=no 6753 hardcode_minus_L=no 6754 hardcode_shlibpath_var=unsupported 6755 link_all_deplibs=unknown 6756 hardcode_automatic=no 6757 module_cmds= 6758 module_expsym_cmds= 6759 always_export_symbols=no 6760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6761 # include_expsyms should be a list of space-separated symbols to be *always* 6762 # included in the symbol list 6763 include_expsyms= 6764 # exclude_expsyms can be an extended regexp of symbols to exclude 6765 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6766 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6767 # as well as any symbol that contains `d'. 6768 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6769 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6770 # platforms (ab)use it in PIC code, but their linkers get confused if 6771 # the symbol is explicitly referenced. Since portable code cannot 6772 # rely on this symbol name, it's probably fine to never include it in 6773 # preloaded symbol tables. 6774 extract_expsyms_cmds= 6775 6776 case $host_os in 6777 cygwin* | mingw* | pw32*) 6778 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6779 # When not using gcc, we currently assume that we are using 6780 # Microsoft Visual C++. 6781 if test "$GCC" != yes; then 6782 with_gnu_ld=no 6783 fi 6784 ;; 6785 openbsd*) 6786 with_gnu_ld=no 6787 ;; 6788 esac 6789 6790 ld_shlibs=yes 6791 if test "$with_gnu_ld" = yes; then 6792 # If archive_cmds runs LD, not CC, wlarc should be empty 6793 wlarc='${wl}' 6794 6795 # See if GNU ld supports shared libraries. 6796 case $host_os in 6797 aix3* | aix4* | aix5*) 6798 # On AIX/PPC, the GNU linker is very broken 6799 if test "$host_cpu" != ia64; then 6800 ld_shlibs=no 6801 cat <<EOF 1>&2 6802 6803*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6804*** to be unable to reliably create shared libraries on AIX. 6805*** Therefore, libtool is disabling shared libraries support. If you 6806*** really care for shared libraries, you may want to modify your PATH 6807*** so that a non-GNU linker is found, and then restart. 6808 6809EOF 6810 fi 6811 ;; 6812 6813 amigaos*) 6814 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)' 6815 hardcode_libdir_flag_spec='-L$libdir' 6816 hardcode_minus_L=yes 6817 6818 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6819 # that the semantics of dynamic libraries on AmigaOS, at least up 6820 # to version 4, is to share data among multiple programs linked 6821 # with the same dynamic library. Since this doesn't match the 6822 # behavior of shared libraries on other platforms, we can't use 6823 # them. 6824 ld_shlibs=no 6825 ;; 6826 6827 beos*) 6828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6829 allow_undefined_flag=unsupported 6830 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6831 # support --undefined. This deserves some investigation. FIXME 6832 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6833 else 6834 ld_shlibs=no 6835 fi 6836 ;; 6837 6838 cygwin* | mingw* | pw32*) 6839 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6840 # as there is no search path for DLLs. 6841 hardcode_libdir_flag_spec='-L$libdir' 6842 allow_undefined_flag=unsupported 6843 always_export_symbols=no 6844 enable_shared_with_static_runtimes=yes 6845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6846 6847 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6849 # If the export-symbols file already is a .def file (1st line 6850 # is EXPORTS), use it as is; otherwise, prepend... 6851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6852 cp $export_symbols $output_objdir/$soname.def; 6853 else 6854 echo EXPORTS > $output_objdir/$soname.def; 6855 cat $export_symbols >> $output_objdir/$soname.def; 6856 fi~ 6857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6858 else 6859 ld_shlibs=no 6860 fi 6861 ;; 6862 6863 netbsd*) 6864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6865 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6866 wlarc= 6867 else 6868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6870 fi 6871 ;; 6872 6873 solaris* | sysv5*) 6874 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6875 ld_shlibs=no 6876 cat <<EOF 1>&2 6877 6878*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6879*** create shared libraries on Solaris systems. Therefore, libtool 6880*** is disabling shared libraries support. We urge you to upgrade GNU 6881*** binutils to release 2.9.1 or newer. Another option is to modify 6882*** your PATH or compiler configuration so that the native linker is 6883*** used, and then restart. 6884 6885EOF 6886 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6889 else 6890 ld_shlibs=no 6891 fi 6892 ;; 6893 6894 sunos4*) 6895 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6896 wlarc= 6897 hardcode_direct=yes 6898 hardcode_shlibpath_var=no 6899 ;; 6900 6901 linux*) 6902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6903 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6904 archive_cmds="$tmp_archive_cmds" 6905 supports_anon_versioning=no 6906 case `$LD -v 2>/dev/null` in 6907 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6910 *\ 2.11.*) ;; # other 2.11 versions 6911 *) supports_anon_versioning=yes ;; 6912 esac 6913 if test $supports_anon_versioning = yes; then 6914 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6915cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6916$echo "local: *; };" >> $output_objdir/$libname.ver~ 6917 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6918 else 6919 archive_expsym_cmds="$tmp_archive_cmds" 6920 fi 6921 else 6922 ld_shlibs=no 6923 fi 6924 ;; 6925 6926 *) 6927 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6930 else 6931 ld_shlibs=no 6932 fi 6933 ;; 6934 esac 6935 6936 if test "$ld_shlibs" = yes; then 6937 runpath_var=LD_RUN_PATH 6938 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6939 export_dynamic_flag_spec='${wl}--export-dynamic' 6940 # ancient GNU ld didn't support --whole-archive et. al. 6941 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6942 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6943 else 6944 whole_archive_flag_spec= 6945 fi 6946 fi 6947 else 6948 # PORTME fill in a description of your system's linker (not GNU ld) 6949 case $host_os in 6950 aix3*) 6951 allow_undefined_flag=unsupported 6952 always_export_symbols=yes 6953 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' 6954 # Note: this linker hardcodes the directories in LIBPATH if there 6955 # are no directories specified by -L. 6956 hardcode_minus_L=yes 6957 if test "$GCC" = yes && test -z "$link_static_flag"; then 6958 # Neither direct hardcoding nor static linking is supported with a 6959 # broken collect2. 6960 hardcode_direct=unsupported 6961 fi 6962 ;; 6963 6964 aix4* | aix5*) 6965 if test "$host_cpu" = ia64; then 6966 # On IA64, the linker does run time linking by default, so we don't 6967 # have to do anything special. 6968 aix_use_runtimelinking=no 6969 exp_sym_flag='-Bexport' 6970 no_entry_flag="" 6971 else 6972 # If we're using GNU nm, then we don't want the "-C" option. 6973 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6974 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6975 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' 6976 else 6977 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' 6978 fi 6979 aix_use_runtimelinking=no 6980 6981 # Test if we are trying to use run time linking or normal 6982 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6983 # need to do runtime linking. 6984 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6985 for ld_flag in $LDFLAGS; do 6986 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6987 aix_use_runtimelinking=yes 6988 break 6989 fi 6990 done 6991 esac 6992 6993 exp_sym_flag='-bexport' 6994 no_entry_flag='-bnoentry' 6995 fi 6996 6997 # When large executables or shared objects are built, AIX ld can 6998 # have problems creating the table of contents. If linking a library 6999 # or program results in "error TOC overflow" add -mminimal-toc to 7000 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7001 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7002 7003 archive_cmds='' 7004 hardcode_direct=yes 7005 hardcode_libdir_separator=':' 7006 link_all_deplibs=yes 7007 7008 if test "$GCC" = yes; then 7009 case $host_os in aix4.012|aix4.012.*) 7010 # We only want to do this on AIX 4.2 and lower, the check 7011 # below for broken collect2 doesn't work under 4.3+ 7012 collect2name=`${CC} -print-prog-name=collect2` 7013 if test -f "$collect2name" && \ 7014 strings "$collect2name" | grep resolve_lib_name >/dev/null 7015 then 7016 # We have reworked collect2 7017 hardcode_direct=yes 7018 else 7019 # We have old collect2 7020 hardcode_direct=unsupported 7021 # It fails to find uninstalled libraries when the uninstalled 7022 # path is not listed in the libpath. Setting hardcode_minus_L 7023 # to unsupported forces relinking 7024 hardcode_minus_L=yes 7025 hardcode_libdir_flag_spec='-L$libdir' 7026 hardcode_libdir_separator= 7027 fi 7028 esac 7029 shared_flag='-shared' 7030 else 7031 # not using gcc 7032 if test "$host_cpu" = ia64; then 7033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7034 # chokes on -Wl,-G. The following line is correct: 7035 shared_flag='-G' 7036 else 7037 if test "$aix_use_runtimelinking" = yes; then 7038 shared_flag='${wl}-G' 7039 else 7040 shared_flag='${wl}-bM:SRE' 7041 fi 7042 fi 7043 fi 7044 7045 # It seems that -bexpall does not export symbols beginning with 7046 # underscore (_), so it is better to generate a list of symbols to export. 7047 always_export_symbols=yes 7048 if test "$aix_use_runtimelinking" = yes; then 7049 # Warning - without using the other runtime loading flags (-brtl), 7050 # -berok will link without error, but may produce a broken library. 7051 allow_undefined_flag='-berok' 7052 # Determine the default libpath from the value encoded in an empty executable. 7053 cat >conftest.$ac_ext <<_ACEOF 7054/* confdefs.h. */ 7055_ACEOF 7056cat confdefs.h >>conftest.$ac_ext 7057cat >>conftest.$ac_ext <<_ACEOF 7058/* end confdefs.h. */ 7059 7060int 7061main () 7062{ 7063 7064 ; 7065 return 0; 7066} 7067_ACEOF 7068rm -f conftest.$ac_objext conftest$ac_exeext 7069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7070 (eval $ac_link) 2>conftest.er1 7071 ac_status=$? 7072 grep -v '^ *+' conftest.er1 >conftest.err 7073 rm -f conftest.er1 7074 cat conftest.err >&5 7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7076 (exit $ac_status); } && 7077 { ac_try='test -z "$ac_c_werror_flag" 7078 || test ! -s conftest.err' 7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7080 (eval $ac_try) 2>&5 7081 ac_status=$? 7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7083 (exit $ac_status); }; } && 7084 { ac_try='test -s conftest$ac_exeext' 7085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7086 (eval $ac_try) 2>&5 7087 ac_status=$? 7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7089 (exit $ac_status); }; }; then 7090 7091aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7092}'` 7093# Check for a 64-bit object if we didn't find anything. 7094if 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; } 7095}'`; fi 7096else 7097 echo "$as_me: failed program was:" >&5 7098sed 's/^/| /' conftest.$ac_ext >&5 7099 7100fi 7101rm -f conftest.err conftest.$ac_objext \ 7102 conftest$ac_exeext conftest.$ac_ext 7103if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7104 7105 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7106 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" 7107 else 7108 if test "$host_cpu" = ia64; then 7109 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7110 allow_undefined_flag="-z nodefs" 7111 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" 7112 else 7113 # Determine the default libpath from the value encoded in an empty executable. 7114 cat >conftest.$ac_ext <<_ACEOF 7115/* confdefs.h. */ 7116_ACEOF 7117cat confdefs.h >>conftest.$ac_ext 7118cat >>conftest.$ac_ext <<_ACEOF 7119/* end confdefs.h. */ 7120 7121int 7122main () 7123{ 7124 7125 ; 7126 return 0; 7127} 7128_ACEOF 7129rm -f conftest.$ac_objext conftest$ac_exeext 7130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7131 (eval $ac_link) 2>conftest.er1 7132 ac_status=$? 7133 grep -v '^ *+' conftest.er1 >conftest.err 7134 rm -f conftest.er1 7135 cat conftest.err >&5 7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7137 (exit $ac_status); } && 7138 { ac_try='test -z "$ac_c_werror_flag" 7139 || test ! -s conftest.err' 7140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7141 (eval $ac_try) 2>&5 7142 ac_status=$? 7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7144 (exit $ac_status); }; } && 7145 { ac_try='test -s conftest$ac_exeext' 7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7147 (eval $ac_try) 2>&5 7148 ac_status=$? 7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7150 (exit $ac_status); }; }; then 7151 7152aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7153}'` 7154# Check for a 64-bit object if we didn't find anything. 7155if 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; } 7156}'`; fi 7157else 7158 echo "$as_me: failed program was:" >&5 7159sed 's/^/| /' conftest.$ac_ext >&5 7160 7161fi 7162rm -f conftest.err conftest.$ac_objext \ 7163 conftest$ac_exeext conftest.$ac_ext 7164if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7165 7166 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7167 # Warning - without using the other run time loading flags, 7168 # -berok will link without error, but may produce a broken library. 7169 no_undefined_flag=' ${wl}-bernotok' 7170 allow_undefined_flag=' ${wl}-berok' 7171 # -bexpall does not export symbols beginning with underscore (_) 7172 always_export_symbols=yes 7173 # Exported symbols can be pulled into shared objects from archives 7174 whole_archive_flag_spec=' ' 7175 archive_cmds_need_lc=yes 7176 # This is similar to how AIX traditionally builds it's shared libraries. 7177 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' 7178 fi 7179 fi 7180 ;; 7181 7182 amigaos*) 7183 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)' 7184 hardcode_libdir_flag_spec='-L$libdir' 7185 hardcode_minus_L=yes 7186 # see comment about different semantics on the GNU ld section 7187 ld_shlibs=no 7188 ;; 7189 7190 bsdi4*) 7191 export_dynamic_flag_spec=-rdynamic 7192 ;; 7193 7194 cygwin* | mingw* | pw32*) 7195 # When not using gcc, we currently assume that we are using 7196 # Microsoft Visual C++. 7197 # hardcode_libdir_flag_spec is actually meaningless, as there is 7198 # no search path for DLLs. 7199 hardcode_libdir_flag_spec=' ' 7200 allow_undefined_flag=unsupported 7201 # Tell ltmain to make .lib files, not .a files. 7202 libext=lib 7203 # Tell ltmain to make .dll files, not .so files. 7204 shrext_cmds=".dll" 7205 # FIXME: Setting linknames here is a bad hack. 7206 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7207 # The linker will automatically build a .lib file if we build a DLL. 7208 old_archive_From_new_cmds='true' 7209 # FIXME: Should let the user specify the lib program. 7210 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7211 fix_srcfile_path='`cygpath -w "$srcfile"`' 7212 enable_shared_with_static_runtimes=yes 7213 ;; 7214 7215 darwin* | rhapsody*) 7216 if test "$GXX" = yes ; then 7217 archive_cmds_need_lc=no 7218 case "$host_os" in 7219 rhapsody* | darwin1.[012]) 7220 allow_undefined_flag='-undefined suppress' 7221 ;; 7222 *) # Darwin 1.3 on 7223 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7224 allow_undefined_flag='-flat_namespace -undefined suppress' 7225 else 7226 case ${MACOSX_DEPLOYMENT_TARGET} in 7227 10.[012]) 7228 allow_undefined_flag='-flat_namespace -undefined suppress' 7229 ;; 7230 10.*) 7231 allow_undefined_flag='-undefined dynamic_lookup' 7232 ;; 7233 esac 7234 fi 7235 ;; 7236 esac 7237 lt_int_apple_cc_single_mod=no 7238 output_verbose_link_cmd='echo' 7239 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 7240 lt_int_apple_cc_single_mod=yes 7241 fi 7242 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7243 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7244 else 7245 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' 7246 fi 7247 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 7249 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 7250 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}' 7251 else 7252 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}' 7253 fi 7254 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}' 7255 hardcode_direct=no 7256 hardcode_automatic=yes 7257 hardcode_shlibpath_var=unsupported 7258 whole_archive_flag_spec='-all_load $convenience' 7259 link_all_deplibs=yes 7260 else 7261 ld_shlibs=no 7262 fi 7263 ;; 7264 7265 dgux*) 7266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7267 hardcode_libdir_flag_spec='-L$libdir' 7268 hardcode_shlibpath_var=no 7269 ;; 7270 7271 freebsd1*) 7272 ld_shlibs=no 7273 ;; 7274 7275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7276 # support. Future versions do this automatically, but an explicit c++rt0.o 7277 # does not break anything, and helps significantly (at the cost of a little 7278 # extra space). 7279 freebsd2.2*) 7280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7281 hardcode_libdir_flag_spec='-R$libdir' 7282 hardcode_direct=yes 7283 hardcode_shlibpath_var=no 7284 ;; 7285 7286 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7287 freebsd2*) 7288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7289 hardcode_direct=yes 7290 hardcode_minus_L=yes 7291 hardcode_shlibpath_var=no 7292 ;; 7293 7294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7295 freebsd* | kfreebsd*-gnu) 7296 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7297 hardcode_libdir_flag_spec='-R$libdir' 7298 hardcode_direct=yes 7299 hardcode_shlibpath_var=no 7300 ;; 7301 7302 hpux9*) 7303 if test "$GCC" = yes; then 7304 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' 7305 else 7306 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' 7307 fi 7308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7309 hardcode_libdir_separator=: 7310 hardcode_direct=yes 7311 7312 # hardcode_minus_L: Not really in the search PATH, 7313 # but as the default location of the library. 7314 hardcode_minus_L=yes 7315 export_dynamic_flag_spec='${wl}-E' 7316 ;; 7317 7318 hpux10* | hpux11*) 7319 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7320 case "$host_cpu" in 7321 hppa*64*|ia64*) 7322 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7323 ;; 7324 *) 7325 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7326 ;; 7327 esac 7328 else 7329 case "$host_cpu" in 7330 hppa*64*|ia64*) 7331 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7332 ;; 7333 *) 7334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7335 ;; 7336 esac 7337 fi 7338 if test "$with_gnu_ld" = no; then 7339 case "$host_cpu" in 7340 hppa*64*) 7341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7342 hardcode_libdir_flag_spec_ld='+b $libdir' 7343 hardcode_libdir_separator=: 7344 hardcode_direct=no 7345 hardcode_shlibpath_var=no 7346 ;; 7347 ia64*) 7348 hardcode_libdir_flag_spec='-L$libdir' 7349 hardcode_direct=no 7350 hardcode_shlibpath_var=no 7351 7352 # hardcode_minus_L: Not really in the search PATH, 7353 # but as the default location of the library. 7354 hardcode_minus_L=yes 7355 ;; 7356 *) 7357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7358 hardcode_libdir_separator=: 7359 hardcode_direct=yes 7360 export_dynamic_flag_spec='${wl}-E' 7361 7362 # hardcode_minus_L: Not really in the search PATH, 7363 # but as the default location of the library. 7364 hardcode_minus_L=yes 7365 ;; 7366 esac 7367 fi 7368 ;; 7369 7370 irix5* | irix6* | nonstopux*) 7371 if test "$GCC" = yes; then 7372 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' 7373 else 7374 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' 7375 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7376 fi 7377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7378 hardcode_libdir_separator=: 7379 link_all_deplibs=yes 7380 ;; 7381 7382 netbsd*) 7383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7385 else 7386 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7387 fi 7388 hardcode_libdir_flag_spec='-R$libdir' 7389 hardcode_direct=yes 7390 hardcode_shlibpath_var=no 7391 ;; 7392 7393 newsos6) 7394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7395 hardcode_direct=yes 7396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7397 hardcode_libdir_separator=: 7398 hardcode_shlibpath_var=no 7399 ;; 7400 7401 openbsd*) 7402 hardcode_direct=yes 7403 hardcode_shlibpath_var=no 7404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7405 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7407 export_dynamic_flag_spec='${wl}-E' 7408 else 7409 case $host_os in 7410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7412 hardcode_libdir_flag_spec='-R$libdir' 7413 ;; 7414 *) 7415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7417 ;; 7418 esac 7419 fi 7420 ;; 7421 7422 os2*) 7423 hardcode_libdir_flag_spec='-L$libdir' 7424 hardcode_minus_L=yes 7425 allow_undefined_flag=unsupported 7426 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' 7427 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7428 ;; 7429 7430 osf3*) 7431 if test "$GCC" = yes; then 7432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7433 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' 7434 else 7435 allow_undefined_flag=' -expect_unresolved \*' 7436 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' 7437 fi 7438 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7439 hardcode_libdir_separator=: 7440 ;; 7441 7442 osf4* | osf5*) # as osf3* with the addition of -msym flag 7443 if test "$GCC" = yes; then 7444 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7445 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' 7446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7447 else 7448 allow_undefined_flag=' -expect_unresolved \*' 7449 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' 7450 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7451 $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' 7452 7453 # Both c and cxx compiler support -rpath directly 7454 hardcode_libdir_flag_spec='-rpath $libdir' 7455 fi 7456 hardcode_libdir_separator=: 7457 ;; 7458 7459 sco3.2v5*) 7460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7461 hardcode_shlibpath_var=no 7462 export_dynamic_flag_spec='${wl}-Bexport' 7463 runpath_var=LD_RUN_PATH 7464 hardcode_runpath_var=yes 7465 ;; 7466 7467 solaris*) 7468 no_undefined_flag=' -z text' 7469 if test "$GCC" = yes; then 7470 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7471 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7472 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7473 else 7474 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7475 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7476 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7477 fi 7478 hardcode_libdir_flag_spec='-R$libdir' 7479 hardcode_shlibpath_var=no 7480 case $host_os in 7481 solaris2.[0-5] | solaris2.[0-5].*) ;; 7482 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7483 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7484 esac 7485 link_all_deplibs=yes 7486 ;; 7487 7488 sunos4*) 7489 if test "x$host_vendor" = xsequent; then 7490 # Use $CC to link under sequent, because it throws in some extra .o 7491 # files that make .init and .fini sections work. 7492 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7493 else 7494 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7495 fi 7496 hardcode_libdir_flag_spec='-L$libdir' 7497 hardcode_direct=yes 7498 hardcode_minus_L=yes 7499 hardcode_shlibpath_var=no 7500 ;; 7501 7502 sysv4) 7503 case $host_vendor in 7504 sni) 7505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7506 hardcode_direct=yes # is this really true??? 7507 ;; 7508 siemens) 7509 ## LD is ld it makes a PLAMLIB 7510 ## CC just makes a GrossModule. 7511 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7512 reload_cmds='$CC -r -o $output$reload_objs' 7513 hardcode_direct=no 7514 ;; 7515 motorola) 7516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7517 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7518 ;; 7519 esac 7520 runpath_var='LD_RUN_PATH' 7521 hardcode_shlibpath_var=no 7522 ;; 7523 7524 sysv4.3*) 7525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7526 hardcode_shlibpath_var=no 7527 export_dynamic_flag_spec='-Bexport' 7528 ;; 7529 7530 sysv4*MP*) 7531 if test -d /usr/nec; then 7532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7533 hardcode_shlibpath_var=no 7534 runpath_var=LD_RUN_PATH 7535 hardcode_runpath_var=yes 7536 ld_shlibs=yes 7537 fi 7538 ;; 7539 7540 sysv4.2uw2*) 7541 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7542 hardcode_direct=yes 7543 hardcode_minus_L=no 7544 hardcode_shlibpath_var=no 7545 hardcode_runpath_var=yes 7546 runpath_var=LD_RUN_PATH 7547 ;; 7548 7549 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7550 no_undefined_flag='${wl}-z ${wl}text' 7551 if test "$GCC" = yes; then 7552 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7553 else 7554 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7555 fi 7556 runpath_var='LD_RUN_PATH' 7557 hardcode_shlibpath_var=no 7558 ;; 7559 7560 sysv5*) 7561 no_undefined_flag=' -z text' 7562 # $CC -shared without GNU ld will not create a library from C++ 7563 # object files and a static libstdc++, better avoid it by now 7564 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7565 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7566 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7567 hardcode_libdir_flag_spec= 7568 hardcode_shlibpath_var=no 7569 runpath_var='LD_RUN_PATH' 7570 ;; 7571 7572 uts4*) 7573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7574 hardcode_libdir_flag_spec='-L$libdir' 7575 hardcode_shlibpath_var=no 7576 ;; 7577 7578 *) 7579 ld_shlibs=no 7580 ;; 7581 esac 7582 fi 7583 7584echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7585echo "${ECHO_T}$ld_shlibs" >&6 7586test "$ld_shlibs" = no && can_build_shared=no 7587 7588variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7589if test "$GCC" = yes; then 7590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7591fi 7592 7593# 7594# Do we need to explicitly link libc? 7595# 7596case "x$archive_cmds_need_lc" in 7597x|xyes) 7598 # Assume -lc should be added 7599 archive_cmds_need_lc=yes 7600 7601 if test "$enable_shared" = yes && test "$GCC" = yes; then 7602 case $archive_cmds in 7603 *'~'*) 7604 # FIXME: we may have to deal with multi-command sequences. 7605 ;; 7606 '$CC '*) 7607 # Test whether the compiler implicitly links with -lc since on some 7608 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7609 # to ld, don't add -lc before -lgcc. 7610 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7611echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7612 $rm conftest* 7613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7614 7615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7616 (eval $ac_compile) 2>&5 7617 ac_status=$? 7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7619 (exit $ac_status); } 2>conftest.err; then 7620 soname=conftest 7621 lib=conftest 7622 libobjs=conftest.$ac_objext 7623 deplibs= 7624 wl=$lt_prog_compiler_wl 7625 compiler_flags=-v 7626 linker_flags=-v 7627 verstring= 7628 output_objdir=. 7629 libname=conftest 7630 lt_save_allow_undefined_flag=$allow_undefined_flag 7631 allow_undefined_flag= 7632 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7633 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7634 ac_status=$? 7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7636 (exit $ac_status); } 7637 then 7638 archive_cmds_need_lc=no 7639 else 7640 archive_cmds_need_lc=yes 7641 fi 7642 allow_undefined_flag=$lt_save_allow_undefined_flag 7643 else 7644 cat conftest.err 1>&5 7645 fi 7646 $rm conftest* 7647 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7648echo "${ECHO_T}$archive_cmds_need_lc" >&6 7649 ;; 7650 esac 7651 fi 7652 ;; 7653esac 7654 7655echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7656echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7657library_names_spec= 7658libname_spec='lib$name' 7659soname_spec= 7660shrext_cmds=".so" 7661postinstall_cmds= 7662postuninstall_cmds= 7663finish_cmds= 7664finish_eval= 7665shlibpath_var= 7666shlibpath_overrides_runpath=unknown 7667version_type=none 7668dynamic_linker="$host_os ld.so" 7669sys_lib_dlsearch_path_spec="/lib /usr/lib" 7670if test "$GCC" = yes; then 7671 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7672 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7673 # if the path contains ";" then we assume it to be the separator 7674 # otherwise default to the standard path separator (i.e. ":") - it is 7675 # assumed that no part of a normal pathname contains ";" but that should 7676 # okay in the real world where ";" in dirpaths is itself problematic. 7677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7678 else 7679 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7680 fi 7681else 7682 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7683fi 7684need_lib_prefix=unknown 7685hardcode_into_libs=no 7686 7687# when you set need_version to no, make sure it does not cause -set_version 7688# flags to be left without arguments 7689need_version=unknown 7690 7691case $host_os in 7692aix3*) 7693 version_type=linux 7694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7695 shlibpath_var=LIBPATH 7696 7697 # AIX 3 has no versioning support, so we append a major version to the name. 7698 soname_spec='${libname}${release}${shared_ext}$major' 7699 ;; 7700 7701aix4* | aix5*) 7702 version_type=linux 7703 need_lib_prefix=no 7704 need_version=no 7705 hardcode_into_libs=yes 7706 if test "$host_cpu" = ia64; then 7707 # AIX 5 supports IA64 7708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7709 shlibpath_var=LD_LIBRARY_PATH 7710 else 7711 # With GCC up to 2.95.x, collect2 would create an import file 7712 # for dependence libraries. The import file would start with 7713 # the line `#! .'. This would cause the generated library to 7714 # depend on `.', always an invalid library. This was fixed in 7715 # development snapshots of GCC prior to 3.0. 7716 case $host_os in 7717 aix4 | aix4.[01] | aix4.[01].*) 7718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7719 echo ' yes ' 7720 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7721 : 7722 else 7723 can_build_shared=no 7724 fi 7725 ;; 7726 esac 7727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7728 # soname into executable. Probably we can add versioning support to 7729 # collect2, so additional links can be useful in future. 7730 if test "$aix_use_runtimelinking" = yes; then 7731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7732 # instead of lib<name>.a to let people know that these are not 7733 # typical AIX shared libraries. 7734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7735 else 7736 # We preserve .a as extension for shared libraries through AIX4.2 7737 # and later when we are not doing run time linking. 7738 library_names_spec='${libname}${release}.a $libname.a' 7739 soname_spec='${libname}${release}${shared_ext}$major' 7740 fi 7741 shlibpath_var=LIBPATH 7742 fi 7743 ;; 7744 7745amigaos*) 7746 library_names_spec='$libname.ixlibrary $libname.a' 7747 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7748 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' 7749 ;; 7750 7751beos*) 7752 library_names_spec='${libname}${shared_ext}' 7753 dynamic_linker="$host_os ld.so" 7754 shlibpath_var=LIBRARY_PATH 7755 ;; 7756 7757bsdi4*) 7758 version_type=linux 7759 need_version=no 7760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7761 soname_spec='${libname}${release}${shared_ext}$major' 7762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7763 shlibpath_var=LD_LIBRARY_PATH 7764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7766 # the default ld.so.conf also contains /usr/contrib/lib and 7767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7768 # libtool to hard-code these into programs 7769 ;; 7770 7771cygwin* | mingw* | pw32*) 7772 version_type=windows 7773 shrext_cmds=".dll" 7774 need_version=no 7775 need_lib_prefix=no 7776 7777 case $GCC,$host_os in 7778 yes,cygwin* | yes,mingw* | yes,pw32*) 7779 library_names_spec='$libname.dll.a' 7780 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7781 postinstall_cmds='base_file=`basename \${file}`~ 7782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7783 dldir=$destdir/`dirname \$dlpath`~ 7784 test -d \$dldir || mkdir -p \$dldir~ 7785 $install_prog $dir/$dlname \$dldir/$dlname' 7786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7787 dlpath=$dir/\$dldll~ 7788 $rm \$dlpath' 7789 shlibpath_overrides_runpath=yes 7790 7791 case $host_os in 7792 cygwin*) 7793 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7795 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7796 ;; 7797 mingw*) 7798 # MinGW DLLs use traditional 'lib' prefix 7799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7801 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7802 # It is most probably a Windows format PATH printed by 7803 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7804 # path with ; separators, and with drive letters. We can handle the 7805 # drive letters (cygwin fileutils understands them), so leave them, 7806 # especially as we might pass files found there to a mingw objdump, 7807 # which wouldn't understand a cygwinified path. Ahh. 7808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7809 else 7810 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7811 fi 7812 ;; 7813 pw32*) 7814 # pw32 DLLs use 'pw' prefix rather than 'lib' 7815 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7816 ;; 7817 esac 7818 ;; 7819 7820 *) 7821 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7822 ;; 7823 esac 7824 dynamic_linker='Win32 ld.exe' 7825 # FIXME: first we should search . and the directory the executable is in 7826 shlibpath_var=PATH 7827 ;; 7828 7829darwin* | rhapsody*) 7830 dynamic_linker="$host_os dyld" 7831 version_type=darwin 7832 need_lib_prefix=no 7833 need_version=no 7834 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7835 soname_spec='${libname}${release}${major}$shared_ext' 7836 shlibpath_overrides_runpath=yes 7837 shlibpath_var=DYLD_LIBRARY_PATH 7838 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7839 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7840 if test "$GCC" = yes; then 7841 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"` 7842 else 7843 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7844 fi 7845 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7846 ;; 7847 7848dgux*) 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 shlibpath_var=LD_LIBRARY_PATH 7855 ;; 7856 7857freebsd1*) 7858 dynamic_linker=no 7859 ;; 7860 7861kfreebsd*-gnu) 7862 version_type=linux 7863 need_lib_prefix=no 7864 need_version=no 7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7866 soname_spec='${libname}${release}${shared_ext}$major' 7867 shlibpath_var=LD_LIBRARY_PATH 7868 shlibpath_overrides_runpath=no 7869 hardcode_into_libs=yes 7870 dynamic_linker='GNU ld.so' 7871 ;; 7872 7873freebsd*) 7874 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7875 version_type=freebsd-$objformat 7876 case $version_type in 7877 freebsd-elf*) 7878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7879 need_version=no 7880 need_lib_prefix=no 7881 ;; 7882 freebsd-*) 7883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7884 need_version=yes 7885 ;; 7886 esac 7887 shlibpath_var=LD_LIBRARY_PATH 7888 case $host_os in 7889 freebsd2*) 7890 shlibpath_overrides_runpath=yes 7891 ;; 7892 freebsd3.01* | freebsdelf3.01*) 7893 shlibpath_overrides_runpath=yes 7894 hardcode_into_libs=yes 7895 ;; 7896 *) # from 3.2 on 7897 shlibpath_overrides_runpath=no 7898 hardcode_into_libs=yes 7899 ;; 7900 esac 7901 ;; 7902 7903gnu*) 7904 version_type=linux 7905 need_lib_prefix=no 7906 need_version=no 7907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7908 soname_spec='${libname}${release}${shared_ext}$major' 7909 shlibpath_var=LD_LIBRARY_PATH 7910 hardcode_into_libs=yes 7911 ;; 7912 7913hpux9* | hpux10* | hpux11*) 7914 # Give a soname corresponding to the major version so that dld.sl refuses to 7915 # link against other versions. 7916 version_type=sunos 7917 need_lib_prefix=no 7918 need_version=no 7919 case "$host_cpu" in 7920 ia64*) 7921 shrext_cmds='.so' 7922 hardcode_into_libs=yes 7923 dynamic_linker="$host_os dld.so" 7924 shlibpath_var=LD_LIBRARY_PATH 7925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7927 soname_spec='${libname}${release}${shared_ext}$major' 7928 if test "X$HPUX_IA64_MODE" = X32; then 7929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7930 else 7931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7932 fi 7933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7934 ;; 7935 hppa*64*) 7936 shrext_cmds='.sl' 7937 hardcode_into_libs=yes 7938 dynamic_linker="$host_os dld.sl" 7939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7942 soname_spec='${libname}${release}${shared_ext}$major' 7943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7945 ;; 7946 *) 7947 shrext_cmds='.sl' 7948 dynamic_linker="$host_os dld.sl" 7949 shlibpath_var=SHLIB_PATH 7950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7952 soname_spec='${libname}${release}${shared_ext}$major' 7953 ;; 7954 esac 7955 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7956 postinstall_cmds='chmod 555 $lib' 7957 ;; 7958 7959irix5* | irix6* | nonstopux*) 7960 case $host_os in 7961 nonstopux*) version_type=nonstopux ;; 7962 *) 7963 if test "$lt_cv_prog_gnu_ld" = yes; then 7964 version_type=linux 7965 else 7966 version_type=irix 7967 fi ;; 7968 esac 7969 need_lib_prefix=no 7970 need_version=no 7971 soname_spec='${libname}${release}${shared_ext}$major' 7972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7973 case $host_os in 7974 irix5* | nonstopux*) 7975 libsuff= shlibsuff= 7976 ;; 7977 *) 7978 case $LD in # libtool.m4 will add one of these switches to LD 7979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7980 libsuff= shlibsuff= libmagic=32-bit;; 7981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7982 libsuff=32 shlibsuff=N32 libmagic=N32;; 7983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7984 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7985 *) libsuff= shlibsuff= libmagic=never-match;; 7986 esac 7987 ;; 7988 esac 7989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7990 shlibpath_overrides_runpath=no 7991 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7992 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7993 hardcode_into_libs=yes 7994 ;; 7995 7996# No shared lib support for Linux oldld, aout, or coff. 7997linux*oldld* | linux*aout* | linux*coff*) 7998 dynamic_linker=no 7999 ;; 8000 8001# This must be Linux ELF. 8002linux*) 8003 version_type=linux 8004 need_lib_prefix=no 8005 need_version=no 8006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8007 soname_spec='${libname}${release}${shared_ext}$major' 8008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8009 shlibpath_var=LD_LIBRARY_PATH 8010 shlibpath_overrides_runpath=no 8011 # This implies no fast_install, which is unacceptable. 8012 # Some rework will be needed to allow for fast_install 8013 # before this can be enabled. 8014 hardcode_into_libs=yes 8015 8016 # find out which ABI we are using 8017 libsuff= 8018 case "$host_cpu" in 8019 x86_64*|s390x*|powerpc64*) 8020 echo '#line 8020 "configure"' > conftest.$ac_ext 8021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8022 (eval $ac_compile) 2>&5 8023 ac_status=$? 8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8025 (exit $ac_status); }; then 8026 case `/usr/bin/file conftest.$ac_objext` in 8027 *64-bit*) 8028 libsuff=64 8029 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8030 ;; 8031 esac 8032 fi 8033 rm -rf conftest* 8034 ;; 8035 esac 8036 8037 # Append ld.so.conf contents to the search path 8038 if test -f /etc/ld.so.conf; then 8039 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 8040 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 8041 fi 8042 8043 # We used to test for /lib/ld.so.1 and disable shared libraries on 8044 # powerpc, because MkLinux only supported shared libraries with the 8045 # GNU dynamic linker. Since this was broken with cross compilers, 8046 # most powerpc-linux boxes support dynamic linking these days and 8047 # people can always --disable-shared, the test was removed, and we 8048 # assume the GNU/Linux dynamic linker is in use. 8049 dynamic_linker='GNU/Linux ld.so' 8050 ;; 8051 8052knetbsd*-gnu) 8053 version_type=linux 8054 need_lib_prefix=no 8055 need_version=no 8056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8057 soname_spec='${libname}${release}${shared_ext}$major' 8058 shlibpath_var=LD_LIBRARY_PATH 8059 shlibpath_overrides_runpath=no 8060 hardcode_into_libs=yes 8061 dynamic_linker='GNU ld.so' 8062 ;; 8063 8064netbsd*) 8065 version_type=sunos 8066 need_lib_prefix=no 8067 need_version=no 8068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8071 dynamic_linker='NetBSD (a.out) ld.so' 8072 else 8073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8074 soname_spec='${libname}${release}${shared_ext}$major' 8075 dynamic_linker='NetBSD ld.elf_so' 8076 fi 8077 shlibpath_var=LD_LIBRARY_PATH 8078 shlibpath_overrides_runpath=yes 8079 hardcode_into_libs=yes 8080 ;; 8081 8082newsos6) 8083 version_type=linux 8084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8085 shlibpath_var=LD_LIBRARY_PATH 8086 shlibpath_overrides_runpath=yes 8087 ;; 8088 8089nto-qnx*) 8090 version_type=linux 8091 need_lib_prefix=no 8092 need_version=no 8093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8094 soname_spec='${libname}${release}${shared_ext}$major' 8095 shlibpath_var=LD_LIBRARY_PATH 8096 shlibpath_overrides_runpath=yes 8097 ;; 8098 8099openbsd*) 8100 version_type=sunos 8101 need_lib_prefix=no 8102 need_version=yes 8103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8105 shlibpath_var=LD_LIBRARY_PATH 8106 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8107 case $host_os in 8108 openbsd2.[89] | openbsd2.[89].*) 8109 shlibpath_overrides_runpath=no 8110 ;; 8111 *) 8112 shlibpath_overrides_runpath=yes 8113 ;; 8114 esac 8115 else 8116 shlibpath_overrides_runpath=yes 8117 fi 8118 ;; 8119 8120os2*) 8121 libname_spec='$name' 8122 shrext_cmds=".dll" 8123 need_lib_prefix=no 8124 library_names_spec='$libname${shared_ext} $libname.a' 8125 dynamic_linker='OS/2 ld.exe' 8126 shlibpath_var=LIBPATH 8127 ;; 8128 8129osf3* | osf4* | osf5*) 8130 version_type=osf 8131 need_lib_prefix=no 8132 need_version=no 8133 soname_spec='${libname}${release}${shared_ext}$major' 8134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8135 shlibpath_var=LD_LIBRARY_PATH 8136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8138 ;; 8139 8140sco3.2v5*) 8141 version_type=osf 8142 soname_spec='${libname}${release}${shared_ext}$major' 8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8144 shlibpath_var=LD_LIBRARY_PATH 8145 ;; 8146 8147solaris*) 8148 version_type=linux 8149 need_lib_prefix=no 8150 need_version=no 8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8152 soname_spec='${libname}${release}${shared_ext}$major' 8153 shlibpath_var=LD_LIBRARY_PATH 8154 shlibpath_overrides_runpath=yes 8155 hardcode_into_libs=yes 8156 # ldd complains unless libraries are executable 8157 postinstall_cmds='chmod +x $lib' 8158 ;; 8159 8160sunos4*) 8161 version_type=sunos 8162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8164 shlibpath_var=LD_LIBRARY_PATH 8165 shlibpath_overrides_runpath=yes 8166 if test "$with_gnu_ld" = yes; then 8167 need_lib_prefix=no 8168 fi 8169 need_version=yes 8170 ;; 8171 8172sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8173 version_type=linux 8174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8175 soname_spec='${libname}${release}${shared_ext}$major' 8176 shlibpath_var=LD_LIBRARY_PATH 8177 case $host_vendor in 8178 sni) 8179 shlibpath_overrides_runpath=no 8180 need_lib_prefix=no 8181 export_dynamic_flag_spec='${wl}-Blargedynsym' 8182 runpath_var=LD_RUN_PATH 8183 ;; 8184 siemens) 8185 need_lib_prefix=no 8186 ;; 8187 motorola) 8188 need_lib_prefix=no 8189 need_version=no 8190 shlibpath_overrides_runpath=no 8191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8192 ;; 8193 esac 8194 ;; 8195 8196sysv4*MP*) 8197 if test -d /usr/nec ;then 8198 version_type=linux 8199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8200 soname_spec='$libname${shared_ext}.$major' 8201 shlibpath_var=LD_LIBRARY_PATH 8202 fi 8203 ;; 8204 8205uts4*) 8206 version_type=linux 8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8208 soname_spec='${libname}${release}${shared_ext}$major' 8209 shlibpath_var=LD_LIBRARY_PATH 8210 ;; 8211 8212*) 8213 dynamic_linker=no 8214 ;; 8215esac 8216echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8217echo "${ECHO_T}$dynamic_linker" >&6 8218test "$dynamic_linker" = no && can_build_shared=no 8219 8220echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8221echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8222hardcode_action= 8223if test -n "$hardcode_libdir_flag_spec" || \ 8224 test -n "$runpath_var " || \ 8225 test "X$hardcode_automatic"="Xyes" ; then 8226 8227 # We can hardcode non-existant directories. 8228 if test "$hardcode_direct" != no && 8229 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8230 # have to relink, otherwise we might link with an installed library 8231 # when we should be linking with a yet-to-be-installed one 8232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8233 test "$hardcode_minus_L" != no; then 8234 # Linking always hardcodes the temporary library directory. 8235 hardcode_action=relink 8236 else 8237 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8238 hardcode_action=immediate 8239 fi 8240else 8241 # We cannot hardcode anything, or else we can only hardcode existing 8242 # directories. 8243 hardcode_action=unsupported 8244fi 8245echo "$as_me:$LINENO: result: $hardcode_action" >&5 8246echo "${ECHO_T}$hardcode_action" >&6 8247 8248if test "$hardcode_action" = relink; then 8249 # Fast installation is not supported 8250 enable_fast_install=no 8251elif test "$shlibpath_overrides_runpath" = yes || 8252 test "$enable_shared" = no; then 8253 # Fast installation is not necessary 8254 enable_fast_install=needless 8255fi 8256 8257striplib= 8258old_striplib= 8259echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8260echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8261if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8263 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8264 echo "$as_me:$LINENO: result: yes" >&5 8265echo "${ECHO_T}yes" >&6 8266else 8267# FIXME - insert some real tests, host_os isn't really good enough 8268 case $host_os in 8269 darwin*) 8270 if test -n "$STRIP" ; then 8271 striplib="$STRIP -x" 8272 echo "$as_me:$LINENO: result: yes" >&5 8273echo "${ECHO_T}yes" >&6 8274 else 8275 echo "$as_me:$LINENO: result: no" >&5 8276echo "${ECHO_T}no" >&6 8277fi 8278 ;; 8279 *) 8280 echo "$as_me:$LINENO: result: no" >&5 8281echo "${ECHO_T}no" >&6 8282 ;; 8283 esac 8284fi 8285 8286if test "x$enable_dlopen" != xyes; then 8287 enable_dlopen=unknown 8288 enable_dlopen_self=unknown 8289 enable_dlopen_self_static=unknown 8290else 8291 lt_cv_dlopen=no 8292 lt_cv_dlopen_libs= 8293 8294 case $host_os in 8295 beos*) 8296 lt_cv_dlopen="load_add_on" 8297 lt_cv_dlopen_libs= 8298 lt_cv_dlopen_self=yes 8299 ;; 8300 8301 mingw* | pw32*) 8302 lt_cv_dlopen="LoadLibrary" 8303 lt_cv_dlopen_libs= 8304 ;; 8305 8306 cygwin*) 8307 lt_cv_dlopen="dlopen" 8308 lt_cv_dlopen_libs= 8309 ;; 8310 8311 darwin*) 8312 # if libdl is installed we need to link against it 8313 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8314echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8315if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8316 echo $ECHO_N "(cached) $ECHO_C" >&6 8317else 8318 ac_check_lib_save_LIBS=$LIBS 8319LIBS="-ldl $LIBS" 8320cat >conftest.$ac_ext <<_ACEOF 8321/* confdefs.h. */ 8322_ACEOF 8323cat confdefs.h >>conftest.$ac_ext 8324cat >>conftest.$ac_ext <<_ACEOF 8325/* end confdefs.h. */ 8326 8327/* Override any gcc2 internal prototype to avoid an error. */ 8328#ifdef __cplusplus 8329extern "C" 8330#endif 8331/* We use char because int might match the return type of a gcc2 8332 builtin and then its argument prototype would still apply. */ 8333char dlopen (); 8334int 8335main () 8336{ 8337dlopen (); 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342rm -f conftest.$ac_objext conftest$ac_exeext 8343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8344 (eval $ac_link) 2>conftest.er1 8345 ac_status=$? 8346 grep -v '^ *+' conftest.er1 >conftest.err 8347 rm -f conftest.er1 8348 cat conftest.err >&5 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 (exit $ac_status); } && 8351 { ac_try='test -z "$ac_c_werror_flag" 8352 || test ! -s conftest.err' 8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8354 (eval $ac_try) 2>&5 8355 ac_status=$? 8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8357 (exit $ac_status); }; } && 8358 { ac_try='test -s conftest$ac_exeext' 8359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8360 (eval $ac_try) 2>&5 8361 ac_status=$? 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); }; }; then 8364 ac_cv_lib_dl_dlopen=yes 8365else 8366 echo "$as_me: failed program was:" >&5 8367sed 's/^/| /' conftest.$ac_ext >&5 8368 8369ac_cv_lib_dl_dlopen=no 8370fi 8371rm -f conftest.err conftest.$ac_objext \ 8372 conftest$ac_exeext conftest.$ac_ext 8373LIBS=$ac_check_lib_save_LIBS 8374fi 8375echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8376echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8377if test $ac_cv_lib_dl_dlopen = yes; then 8378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8379else 8380 8381 lt_cv_dlopen="dyld" 8382 lt_cv_dlopen_libs= 8383 lt_cv_dlopen_self=yes 8384 8385fi 8386 8387 ;; 8388 8389 *) 8390 echo "$as_me:$LINENO: checking for shl_load" >&5 8391echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8392if test "${ac_cv_func_shl_load+set}" = set; then 8393 echo $ECHO_N "(cached) $ECHO_C" >&6 8394else 8395 cat >conftest.$ac_ext <<_ACEOF 8396/* confdefs.h. */ 8397_ACEOF 8398cat confdefs.h >>conftest.$ac_ext 8399cat >>conftest.$ac_ext <<_ACEOF 8400/* end confdefs.h. */ 8401/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8402 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8403#define shl_load innocuous_shl_load 8404 8405/* System header to define __stub macros and hopefully few prototypes, 8406 which can conflict with char shl_load (); below. 8407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8408 <limits.h> exists even on freestanding compilers. */ 8409 8410#ifdef __STDC__ 8411# include <limits.h> 8412#else 8413# include <assert.h> 8414#endif 8415 8416#undef shl_load 8417 8418/* Override any gcc2 internal prototype to avoid an error. */ 8419#ifdef __cplusplus 8420extern "C" 8421{ 8422#endif 8423/* We use char because int might match the return type of a gcc2 8424 builtin and then its argument prototype would still apply. */ 8425char shl_load (); 8426/* The GNU C library defines this for functions which it implements 8427 to always fail with ENOSYS. Some functions are actually named 8428 something starting with __ and the normal name is an alias. */ 8429#if defined (__stub_shl_load) || defined (__stub___shl_load) 8430choke me 8431#else 8432char (*f) () = shl_load; 8433#endif 8434#ifdef __cplusplus 8435} 8436#endif 8437 8438int 8439main () 8440{ 8441return f != shl_load; 8442 ; 8443 return 0; 8444} 8445_ACEOF 8446rm -f conftest.$ac_objext conftest$ac_exeext 8447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8448 (eval $ac_link) 2>conftest.er1 8449 ac_status=$? 8450 grep -v '^ *+' conftest.er1 >conftest.err 8451 rm -f conftest.er1 8452 cat conftest.err >&5 8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8454 (exit $ac_status); } && 8455 { ac_try='test -z "$ac_c_werror_flag" 8456 || test ! -s conftest.err' 8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8458 (eval $ac_try) 2>&5 8459 ac_status=$? 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 (exit $ac_status); }; } && 8462 { ac_try='test -s conftest$ac_exeext' 8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8464 (eval $ac_try) 2>&5 8465 ac_status=$? 8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8467 (exit $ac_status); }; }; then 8468 ac_cv_func_shl_load=yes 8469else 8470 echo "$as_me: failed program was:" >&5 8471sed 's/^/| /' conftest.$ac_ext >&5 8472 8473ac_cv_func_shl_load=no 8474fi 8475rm -f conftest.err conftest.$ac_objext \ 8476 conftest$ac_exeext conftest.$ac_ext 8477fi 8478echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8479echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8480if test $ac_cv_func_shl_load = yes; then 8481 lt_cv_dlopen="shl_load" 8482else 8483 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8484echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8485if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8486 echo $ECHO_N "(cached) $ECHO_C" >&6 8487else 8488 ac_check_lib_save_LIBS=$LIBS 8489LIBS="-ldld $LIBS" 8490cat >conftest.$ac_ext <<_ACEOF 8491/* confdefs.h. */ 8492_ACEOF 8493cat confdefs.h >>conftest.$ac_ext 8494cat >>conftest.$ac_ext <<_ACEOF 8495/* end confdefs.h. */ 8496 8497/* Override any gcc2 internal prototype to avoid an error. */ 8498#ifdef __cplusplus 8499extern "C" 8500#endif 8501/* We use char because int might match the return type of a gcc2 8502 builtin and then its argument prototype would still apply. */ 8503char shl_load (); 8504int 8505main () 8506{ 8507shl_load (); 8508 ; 8509 return 0; 8510} 8511_ACEOF 8512rm -f conftest.$ac_objext conftest$ac_exeext 8513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8514 (eval $ac_link) 2>conftest.er1 8515 ac_status=$? 8516 grep -v '^ *+' conftest.er1 >conftest.err 8517 rm -f conftest.er1 8518 cat conftest.err >&5 8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8520 (exit $ac_status); } && 8521 { ac_try='test -z "$ac_c_werror_flag" 8522 || test ! -s conftest.err' 8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8524 (eval $ac_try) 2>&5 8525 ac_status=$? 8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8527 (exit $ac_status); }; } && 8528 { ac_try='test -s conftest$ac_exeext' 8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8530 (eval $ac_try) 2>&5 8531 ac_status=$? 8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8533 (exit $ac_status); }; }; then 8534 ac_cv_lib_dld_shl_load=yes 8535else 8536 echo "$as_me: failed program was:" >&5 8537sed 's/^/| /' conftest.$ac_ext >&5 8538 8539ac_cv_lib_dld_shl_load=no 8540fi 8541rm -f conftest.err conftest.$ac_objext \ 8542 conftest$ac_exeext conftest.$ac_ext 8543LIBS=$ac_check_lib_save_LIBS 8544fi 8545echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8546echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8547if test $ac_cv_lib_dld_shl_load = yes; then 8548 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8549else 8550 echo "$as_me:$LINENO: checking for dlopen" >&5 8551echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8552if test "${ac_cv_func_dlopen+set}" = set; then 8553 echo $ECHO_N "(cached) $ECHO_C" >&6 8554else 8555 cat >conftest.$ac_ext <<_ACEOF 8556/* confdefs.h. */ 8557_ACEOF 8558cat confdefs.h >>conftest.$ac_ext 8559cat >>conftest.$ac_ext <<_ACEOF 8560/* end confdefs.h. */ 8561/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8562 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8563#define dlopen innocuous_dlopen 8564 8565/* System header to define __stub macros and hopefully few prototypes, 8566 which can conflict with char dlopen (); below. 8567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8568 <limits.h> exists even on freestanding compilers. */ 8569 8570#ifdef __STDC__ 8571# include <limits.h> 8572#else 8573# include <assert.h> 8574#endif 8575 8576#undef dlopen 8577 8578/* Override any gcc2 internal prototype to avoid an error. */ 8579#ifdef __cplusplus 8580extern "C" 8581{ 8582#endif 8583/* We use char because int might match the return type of a gcc2 8584 builtin and then its argument prototype would still apply. */ 8585char dlopen (); 8586/* The GNU C library defines this for functions which it implements 8587 to always fail with ENOSYS. Some functions are actually named 8588 something starting with __ and the normal name is an alias. */ 8589#if defined (__stub_dlopen) || defined (__stub___dlopen) 8590choke me 8591#else 8592char (*f) () = dlopen; 8593#endif 8594#ifdef __cplusplus 8595} 8596#endif 8597 8598int 8599main () 8600{ 8601return f != dlopen; 8602 ; 8603 return 0; 8604} 8605_ACEOF 8606rm -f conftest.$ac_objext conftest$ac_exeext 8607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8608 (eval $ac_link) 2>conftest.er1 8609 ac_status=$? 8610 grep -v '^ *+' conftest.er1 >conftest.err 8611 rm -f conftest.er1 8612 cat conftest.err >&5 8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8614 (exit $ac_status); } && 8615 { ac_try='test -z "$ac_c_werror_flag" 8616 || test ! -s conftest.err' 8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8618 (eval $ac_try) 2>&5 8619 ac_status=$? 8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8621 (exit $ac_status); }; } && 8622 { ac_try='test -s conftest$ac_exeext' 8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8624 (eval $ac_try) 2>&5 8625 ac_status=$? 8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8627 (exit $ac_status); }; }; then 8628 ac_cv_func_dlopen=yes 8629else 8630 echo "$as_me: failed program was:" >&5 8631sed 's/^/| /' conftest.$ac_ext >&5 8632 8633ac_cv_func_dlopen=no 8634fi 8635rm -f conftest.err conftest.$ac_objext \ 8636 conftest$ac_exeext conftest.$ac_ext 8637fi 8638echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8639echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8640if test $ac_cv_func_dlopen = yes; then 8641 lt_cv_dlopen="dlopen" 8642else 8643 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8644echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8645if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8646 echo $ECHO_N "(cached) $ECHO_C" >&6 8647else 8648 ac_check_lib_save_LIBS=$LIBS 8649LIBS="-ldl $LIBS" 8650cat >conftest.$ac_ext <<_ACEOF 8651/* confdefs.h. */ 8652_ACEOF 8653cat confdefs.h >>conftest.$ac_ext 8654cat >>conftest.$ac_ext <<_ACEOF 8655/* end confdefs.h. */ 8656 8657/* Override any gcc2 internal prototype to avoid an error. */ 8658#ifdef __cplusplus 8659extern "C" 8660#endif 8661/* We use char because int might match the return type of a gcc2 8662 builtin and then its argument prototype would still apply. */ 8663char dlopen (); 8664int 8665main () 8666{ 8667dlopen (); 8668 ; 8669 return 0; 8670} 8671_ACEOF 8672rm -f conftest.$ac_objext conftest$ac_exeext 8673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8674 (eval $ac_link) 2>conftest.er1 8675 ac_status=$? 8676 grep -v '^ *+' conftest.er1 >conftest.err 8677 rm -f conftest.er1 8678 cat conftest.err >&5 8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8680 (exit $ac_status); } && 8681 { ac_try='test -z "$ac_c_werror_flag" 8682 || test ! -s conftest.err' 8683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8684 (eval $ac_try) 2>&5 8685 ac_status=$? 8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8687 (exit $ac_status); }; } && 8688 { ac_try='test -s conftest$ac_exeext' 8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8690 (eval $ac_try) 2>&5 8691 ac_status=$? 8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8693 (exit $ac_status); }; }; then 8694 ac_cv_lib_dl_dlopen=yes 8695else 8696 echo "$as_me: failed program was:" >&5 8697sed 's/^/| /' conftest.$ac_ext >&5 8698 8699ac_cv_lib_dl_dlopen=no 8700fi 8701rm -f conftest.err conftest.$ac_objext \ 8702 conftest$ac_exeext conftest.$ac_ext 8703LIBS=$ac_check_lib_save_LIBS 8704fi 8705echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8706echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8707if test $ac_cv_lib_dl_dlopen = yes; then 8708 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8709else 8710 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8711echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8712if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8713 echo $ECHO_N "(cached) $ECHO_C" >&6 8714else 8715 ac_check_lib_save_LIBS=$LIBS 8716LIBS="-lsvld $LIBS" 8717cat >conftest.$ac_ext <<_ACEOF 8718/* confdefs.h. */ 8719_ACEOF 8720cat confdefs.h >>conftest.$ac_ext 8721cat >>conftest.$ac_ext <<_ACEOF 8722/* end confdefs.h. */ 8723 8724/* Override any gcc2 internal prototype to avoid an error. */ 8725#ifdef __cplusplus 8726extern "C" 8727#endif 8728/* We use char because int might match the return type of a gcc2 8729 builtin and then its argument prototype would still apply. */ 8730char dlopen (); 8731int 8732main () 8733{ 8734dlopen (); 8735 ; 8736 return 0; 8737} 8738_ACEOF 8739rm -f conftest.$ac_objext conftest$ac_exeext 8740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8741 (eval $ac_link) 2>conftest.er1 8742 ac_status=$? 8743 grep -v '^ *+' conftest.er1 >conftest.err 8744 rm -f conftest.er1 8745 cat conftest.err >&5 8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8747 (exit $ac_status); } && 8748 { ac_try='test -z "$ac_c_werror_flag" 8749 || test ! -s conftest.err' 8750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8751 (eval $ac_try) 2>&5 8752 ac_status=$? 8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8754 (exit $ac_status); }; } && 8755 { ac_try='test -s conftest$ac_exeext' 8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8757 (eval $ac_try) 2>&5 8758 ac_status=$? 8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8760 (exit $ac_status); }; }; then 8761 ac_cv_lib_svld_dlopen=yes 8762else 8763 echo "$as_me: failed program was:" >&5 8764sed 's/^/| /' conftest.$ac_ext >&5 8765 8766ac_cv_lib_svld_dlopen=no 8767fi 8768rm -f conftest.err conftest.$ac_objext \ 8769 conftest$ac_exeext conftest.$ac_ext 8770LIBS=$ac_check_lib_save_LIBS 8771fi 8772echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8773echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8774if test $ac_cv_lib_svld_dlopen = yes; then 8775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8776else 8777 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8778echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8779if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8780 echo $ECHO_N "(cached) $ECHO_C" >&6 8781else 8782 ac_check_lib_save_LIBS=$LIBS 8783LIBS="-ldld $LIBS" 8784cat >conftest.$ac_ext <<_ACEOF 8785/* confdefs.h. */ 8786_ACEOF 8787cat confdefs.h >>conftest.$ac_ext 8788cat >>conftest.$ac_ext <<_ACEOF 8789/* end confdefs.h. */ 8790 8791/* Override any gcc2 internal prototype to avoid an error. */ 8792#ifdef __cplusplus 8793extern "C" 8794#endif 8795/* We use char because int might match the return type of a gcc2 8796 builtin and then its argument prototype would still apply. */ 8797char dld_link (); 8798int 8799main () 8800{ 8801dld_link (); 8802 ; 8803 return 0; 8804} 8805_ACEOF 8806rm -f conftest.$ac_objext conftest$ac_exeext 8807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8808 (eval $ac_link) 2>conftest.er1 8809 ac_status=$? 8810 grep -v '^ *+' conftest.er1 >conftest.err 8811 rm -f conftest.er1 8812 cat conftest.err >&5 8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8814 (exit $ac_status); } && 8815 { ac_try='test -z "$ac_c_werror_flag" 8816 || test ! -s conftest.err' 8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8818 (eval $ac_try) 2>&5 8819 ac_status=$? 8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8821 (exit $ac_status); }; } && 8822 { ac_try='test -s conftest$ac_exeext' 8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8824 (eval $ac_try) 2>&5 8825 ac_status=$? 8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8827 (exit $ac_status); }; }; then 8828 ac_cv_lib_dld_dld_link=yes 8829else 8830 echo "$as_me: failed program was:" >&5 8831sed 's/^/| /' conftest.$ac_ext >&5 8832 8833ac_cv_lib_dld_dld_link=no 8834fi 8835rm -f conftest.err conftest.$ac_objext \ 8836 conftest$ac_exeext conftest.$ac_ext 8837LIBS=$ac_check_lib_save_LIBS 8838fi 8839echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8840echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8841if test $ac_cv_lib_dld_dld_link = yes; then 8842 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8843fi 8844 8845 8846fi 8847 8848 8849fi 8850 8851 8852fi 8853 8854 8855fi 8856 8857 8858fi 8859 8860 ;; 8861 esac 8862 8863 if test "x$lt_cv_dlopen" != xno; then 8864 enable_dlopen=yes 8865 else 8866 enable_dlopen=no 8867 fi 8868 8869 case $lt_cv_dlopen in 8870 dlopen) 8871 save_CPPFLAGS="$CPPFLAGS" 8872 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8873 8874 save_LDFLAGS="$LDFLAGS" 8875 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8876 8877 save_LIBS="$LIBS" 8878 LIBS="$lt_cv_dlopen_libs $LIBS" 8879 8880 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8881echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8882if test "${lt_cv_dlopen_self+set}" = set; then 8883 echo $ECHO_N "(cached) $ECHO_C" >&6 8884else 8885 if test "$cross_compiling" = yes; then : 8886 lt_cv_dlopen_self=cross 8887else 8888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8889 lt_status=$lt_dlunknown 8890 cat > conftest.$ac_ext <<EOF 8891#line 8891 "configure" 8892#include "confdefs.h" 8893 8894#if HAVE_DLFCN_H 8895#include <dlfcn.h> 8896#endif 8897 8898#include <stdio.h> 8899 8900#ifdef RTLD_GLOBAL 8901# define LT_DLGLOBAL RTLD_GLOBAL 8902#else 8903# ifdef DL_GLOBAL 8904# define LT_DLGLOBAL DL_GLOBAL 8905# else 8906# define LT_DLGLOBAL 0 8907# endif 8908#endif 8909 8910/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8911 find out it does not work in some platform. */ 8912#ifndef LT_DLLAZY_OR_NOW 8913# ifdef RTLD_LAZY 8914# define LT_DLLAZY_OR_NOW RTLD_LAZY 8915# else 8916# ifdef DL_LAZY 8917# define LT_DLLAZY_OR_NOW DL_LAZY 8918# else 8919# ifdef RTLD_NOW 8920# define LT_DLLAZY_OR_NOW RTLD_NOW 8921# else 8922# ifdef DL_NOW 8923# define LT_DLLAZY_OR_NOW DL_NOW 8924# else 8925# define LT_DLLAZY_OR_NOW 0 8926# endif 8927# endif 8928# endif 8929# endif 8930#endif 8931 8932#ifdef __cplusplus 8933extern "C" void exit (int); 8934#endif 8935 8936void fnord() { int i=42;} 8937int main () 8938{ 8939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8940 int status = $lt_dlunknown; 8941 8942 if (self) 8943 { 8944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8945 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8946 /* dlclose (self); */ 8947 } 8948 8949 exit (status); 8950} 8951EOF 8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8953 (eval $ac_link) 2>&5 8954 ac_status=$? 8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8956 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8957 (./conftest; exit; ) 2>/dev/null 8958 lt_status=$? 8959 case x$lt_status in 8960 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8961 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8962 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8963 esac 8964 else : 8965 # compilation failed 8966 lt_cv_dlopen_self=no 8967 fi 8968fi 8969rm -fr conftest* 8970 8971 8972fi 8973echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8974echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8975 8976 if test "x$lt_cv_dlopen_self" = xyes; then 8977 LDFLAGS="$LDFLAGS $link_static_flag" 8978 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8979echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8980if test "${lt_cv_dlopen_self_static+set}" = set; then 8981 echo $ECHO_N "(cached) $ECHO_C" >&6 8982else 8983 if test "$cross_compiling" = yes; then : 8984 lt_cv_dlopen_self_static=cross 8985else 8986 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8987 lt_status=$lt_dlunknown 8988 cat > conftest.$ac_ext <<EOF 8989#line 8989 "configure" 8990#include "confdefs.h" 8991 8992#if HAVE_DLFCN_H 8993#include <dlfcn.h> 8994#endif 8995 8996#include <stdio.h> 8997 8998#ifdef RTLD_GLOBAL 8999# define LT_DLGLOBAL RTLD_GLOBAL 9000#else 9001# ifdef DL_GLOBAL 9002# define LT_DLGLOBAL DL_GLOBAL 9003# else 9004# define LT_DLGLOBAL 0 9005# endif 9006#endif 9007 9008/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9009 find out it does not work in some platform. */ 9010#ifndef LT_DLLAZY_OR_NOW 9011# ifdef RTLD_LAZY 9012# define LT_DLLAZY_OR_NOW RTLD_LAZY 9013# else 9014# ifdef DL_LAZY 9015# define LT_DLLAZY_OR_NOW DL_LAZY 9016# else 9017# ifdef RTLD_NOW 9018# define LT_DLLAZY_OR_NOW RTLD_NOW 9019# else 9020# ifdef DL_NOW 9021# define LT_DLLAZY_OR_NOW DL_NOW 9022# else 9023# define LT_DLLAZY_OR_NOW 0 9024# endif 9025# endif 9026# endif 9027# endif 9028#endif 9029 9030#ifdef __cplusplus 9031extern "C" void exit (int); 9032#endif 9033 9034void fnord() { int i=42;} 9035int main () 9036{ 9037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9038 int status = $lt_dlunknown; 9039 9040 if (self) 9041 { 9042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9044 /* dlclose (self); */ 9045 } 9046 9047 exit (status); 9048} 9049EOF 9050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9051 (eval $ac_link) 2>&5 9052 ac_status=$? 9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9055 (./conftest; exit; ) 2>/dev/null 9056 lt_status=$? 9057 case x$lt_status in 9058 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9059 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9060 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9061 esac 9062 else : 9063 # compilation failed 9064 lt_cv_dlopen_self_static=no 9065 fi 9066fi 9067rm -fr conftest* 9068 9069 9070fi 9071echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9072echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9073 fi 9074 9075 CPPFLAGS="$save_CPPFLAGS" 9076 LDFLAGS="$save_LDFLAGS" 9077 LIBS="$save_LIBS" 9078 ;; 9079 esac 9080 9081 case $lt_cv_dlopen_self in 9082 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9083 *) enable_dlopen_self=unknown ;; 9084 esac 9085 9086 case $lt_cv_dlopen_self_static in 9087 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9088 *) enable_dlopen_self_static=unknown ;; 9089 esac 9090fi 9091 9092 9093# Report which librarie types wil actually be built 9094echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9095echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9096echo "$as_me:$LINENO: result: $can_build_shared" >&5 9097echo "${ECHO_T}$can_build_shared" >&6 9098 9099echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9100echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9101test "$can_build_shared" = "no" && enable_shared=no 9102 9103# On AIX, shared libraries and static libraries use the same namespace, and 9104# are all built from PIC. 9105case "$host_os" in 9106aix3*) 9107 test "$enable_shared" = yes && enable_static=no 9108 if test -n "$RANLIB"; then 9109 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9110 postinstall_cmds='$RANLIB $lib' 9111 fi 9112 ;; 9113 9114aix4* | aix5*) 9115 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9116 test "$enable_shared" = yes && enable_static=no 9117 fi 9118 ;; 9119 darwin* | rhapsody*) 9120 if test "$GCC" = yes; then 9121 archive_cmds_need_lc=no 9122 case "$host_os" in 9123 rhapsody* | darwin1.[012]) 9124 allow_undefined_flag='-undefined suppress' 9125 ;; 9126 *) # Darwin 1.3 on 9127 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9128 allow_undefined_flag='-flat_namespace -undefined suppress' 9129 else 9130 case ${MACOSX_DEPLOYMENT_TARGET} in 9131 10.[012]) 9132 allow_undefined_flag='-flat_namespace -undefined suppress' 9133 ;; 9134 10.*) 9135 allow_undefined_flag='-undefined dynamic_lookup' 9136 ;; 9137 esac 9138 fi 9139 ;; 9140 esac 9141 output_verbose_link_cmd='echo' 9142 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 9143 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9145 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}' 9146 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}' 9147 hardcode_direct=no 9148 hardcode_automatic=yes 9149 hardcode_shlibpath_var=unsupported 9150 whole_archive_flag_spec='-all_load $convenience' 9151 link_all_deplibs=yes 9152 else 9153 ld_shlibs=no 9154 fi 9155 ;; 9156esac 9157echo "$as_me:$LINENO: result: $enable_shared" >&5 9158echo "${ECHO_T}$enable_shared" >&6 9159 9160echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9161echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9162# Make sure either enable_shared or enable_static is yes. 9163test "$enable_shared" = yes || enable_static=yes 9164echo "$as_me:$LINENO: result: $enable_static" >&5 9165echo "${ECHO_T}$enable_static" >&6 9166 9167# The else clause should only fire when bootstrapping the 9168# libtool distribution, otherwise you forgot to ship ltmain.sh 9169# with your package, and you will get complaints that there are 9170# no rules to generate ltmain.sh. 9171if test -f "$ltmain"; then 9172 # See if we are running on zsh, and set the options which allow our commands through 9173 # without removal of \ escapes. 9174 if test -n "${ZSH_VERSION+set}" ; then 9175 setopt NO_GLOB_SUBST 9176 fi 9177 # Now quote all the things that may contain metacharacters while being 9178 # careful not to overquote the AC_SUBSTed values. We take copies of the 9179 # variables and quote the copies for generation of the libtool script. 9180 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9181 SED SHELL STRIP \ 9182 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9183 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9184 deplibs_check_method reload_flag reload_cmds need_locks \ 9185 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9186 lt_cv_sys_global_symbol_to_c_name_address \ 9187 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9188 old_postinstall_cmds old_postuninstall_cmds \ 9189 compiler \ 9190 CC \ 9191 LD \ 9192 lt_prog_compiler_wl \ 9193 lt_prog_compiler_pic \ 9194 lt_prog_compiler_static \ 9195 lt_prog_compiler_no_builtin_flag \ 9196 export_dynamic_flag_spec \ 9197 thread_safe_flag_spec \ 9198 whole_archive_flag_spec \ 9199 enable_shared_with_static_runtimes \ 9200 old_archive_cmds \ 9201 old_archive_from_new_cmds \ 9202 predep_objects \ 9203 postdep_objects \ 9204 predeps \ 9205 postdeps \ 9206 compiler_lib_search_path \ 9207 archive_cmds \ 9208 archive_expsym_cmds \ 9209 postinstall_cmds \ 9210 postuninstall_cmds \ 9211 old_archive_from_expsyms_cmds \ 9212 allow_undefined_flag \ 9213 no_undefined_flag \ 9214 export_symbols_cmds \ 9215 hardcode_libdir_flag_spec \ 9216 hardcode_libdir_flag_spec_ld \ 9217 hardcode_libdir_separator \ 9218 hardcode_automatic \ 9219 module_cmds \ 9220 module_expsym_cmds \ 9221 lt_cv_prog_compiler_c_o \ 9222 exclude_expsyms \ 9223 include_expsyms; do 9224 9225 case $var in 9226 old_archive_cmds | \ 9227 old_archive_from_new_cmds | \ 9228 archive_cmds | \ 9229 archive_expsym_cmds | \ 9230 module_cmds | \ 9231 module_expsym_cmds | \ 9232 old_archive_from_expsyms_cmds | \ 9233 export_symbols_cmds | \ 9234 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9235 postinstall_cmds | postuninstall_cmds | \ 9236 old_postinstall_cmds | old_postuninstall_cmds | \ 9237 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9238 # Double-quote double-evaled strings. 9239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9240 ;; 9241 *) 9242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9243 ;; 9244 esac 9245 done 9246 9247 case $lt_echo in 9248 *'\$0 --fallback-echo"') 9249 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9250 ;; 9251 esac 9252 9253cfgfile="${ofile}T" 9254 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9255 $rm -f "$cfgfile" 9256 { echo "$as_me:$LINENO: creating $ofile" >&5 9257echo "$as_me: creating $ofile" >&6;} 9258 9259 cat <<__EOF__ >> "$cfgfile" 9260#! $SHELL 9261 9262# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9263# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9264# NOTE: Changes made to this file will be lost: look at ltmain.sh. 9265# 9266# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9267# Free Software Foundation, Inc. 9268# 9269# This file is part of GNU Libtool: 9270# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9271# 9272# This program is free software; you can redistribute it and/or modify 9273# it under the terms of the GNU General Public License as published by 9274# the Free Software Foundation; either version 2 of the License, or 9275# (at your option) any later version. 9276# 9277# This program is distributed in the hope that it will be useful, but 9278# WITHOUT ANY WARRANTY; without even the implied warranty of 9279# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9280# General Public License for more details. 9281# 9282# You should have received a copy of the GNU General Public License 9283# along with this program; if not, write to the Free Software 9284# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9285# 9286# As a special exception to the GNU General Public License, if you 9287# distribute this file as part of a program that contains a 9288# configuration script generated by Autoconf, you may include it under 9289# the same distribution terms that you use for the rest of that program. 9290 9291# A sed program that does not truncate output. 9292SED=$lt_SED 9293 9294# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9295Xsed="$SED -e s/^X//" 9296 9297# The HP-UX ksh and POSIX shell print the target directory to stdout 9298# if CDPATH is set. 9299if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 9300 9301# The names of the tagged configurations supported by this script. 9302available_tags= 9303 9304# ### BEGIN LIBTOOL CONFIG 9305 9306# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9307 9308# Shell to use when invoking shell scripts. 9309SHELL=$lt_SHELL 9310 9311# Whether or not to build shared libraries. 9312build_libtool_libs=$enable_shared 9313 9314# Whether or not to build static libraries. 9315build_old_libs=$enable_static 9316 9317# Whether or not to add -lc for building shared libraries. 9318build_libtool_need_lc=$archive_cmds_need_lc 9319 9320# Whether or not to disallow shared libs when runtime libs are static 9321allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9322 9323# Whether or not to optimize for fast installation. 9324fast_install=$enable_fast_install 9325 9326# The host system. 9327host_alias=$host_alias 9328host=$host 9329 9330# An echo program that does not interpret backslashes. 9331echo=$lt_echo 9332 9333# The archiver. 9334AR=$lt_AR 9335AR_FLAGS=$lt_AR_FLAGS 9336 9337# A C compiler. 9338LTCC=$lt_LTCC 9339 9340# A language-specific compiler. 9341CC=$lt_compiler 9342 9343# Is the compiler the GNU C compiler? 9344with_gcc=$GCC 9345 9346# An ERE matcher. 9347EGREP=$lt_EGREP 9348 9349# The linker used to build libraries. 9350LD=$lt_LD 9351 9352# Whether we need hard or soft links. 9353LN_S=$lt_LN_S 9354 9355# A BSD-compatible nm program. 9356NM=$lt_NM 9357 9358# A symbol stripping program 9359STRIP=$lt_STRIP 9360 9361# Used to examine libraries when file_magic_cmd begins "file" 9362MAGIC_CMD=$MAGIC_CMD 9363 9364# Used on cygwin: DLL creation program. 9365DLLTOOL="$DLLTOOL" 9366 9367# Used on cygwin: object dumper. 9368OBJDUMP="$OBJDUMP" 9369 9370# Used on cygwin: assembler. 9371AS="$AS" 9372 9373# The name of the directory that contains temporary libtool files. 9374objdir=$objdir 9375 9376# How to create reloadable object files. 9377reload_flag=$lt_reload_flag 9378reload_cmds=$lt_reload_cmds 9379 9380# How to pass a linker flag through the compiler. 9381wl=$lt_lt_prog_compiler_wl 9382 9383# Object file suffix (normally "o"). 9384objext="$ac_objext" 9385 9386# Old archive suffix (normally "a"). 9387libext="$libext" 9388 9389# Shared library suffix (normally ".so"). 9390shrext_cmds='$shrext_cmds' 9391 9392# Executable file suffix (normally ""). 9393exeext="$exeext" 9394 9395# Additional compiler flags for building library objects. 9396pic_flag=$lt_lt_prog_compiler_pic 9397pic_mode=$pic_mode 9398 9399# What is the maximum length of a command? 9400max_cmd_len=$lt_cv_sys_max_cmd_len 9401 9402# Does compiler simultaneously support -c and -o options? 9403compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9404 9405# Must we lock files when doing compilation ? 9406need_locks=$lt_need_locks 9407 9408# Do we need the lib prefix for modules? 9409need_lib_prefix=$need_lib_prefix 9410 9411# Do we need a version for libraries? 9412need_version=$need_version 9413 9414# Whether dlopen is supported. 9415dlopen_support=$enable_dlopen 9416 9417# Whether dlopen of programs is supported. 9418dlopen_self=$enable_dlopen_self 9419 9420# Whether dlopen of statically linked programs is supported. 9421dlopen_self_static=$enable_dlopen_self_static 9422 9423# Compiler flag to prevent dynamic linking. 9424link_static_flag=$lt_lt_prog_compiler_static 9425 9426# Compiler flag to turn off builtin functions. 9427no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9428 9429# Compiler flag to allow reflexive dlopens. 9430export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9431 9432# Compiler flag to generate shared objects directly from archives. 9433whole_archive_flag_spec=$lt_whole_archive_flag_spec 9434 9435# Compiler flag to generate thread-safe objects. 9436thread_safe_flag_spec=$lt_thread_safe_flag_spec 9437 9438# Library versioning type. 9439version_type=$version_type 9440 9441# Format of library name prefix. 9442libname_spec=$lt_libname_spec 9443 9444# List of archive names. First name is the real one, the rest are links. 9445# The last name is the one that the linker finds with -lNAME. 9446library_names_spec=$lt_library_names_spec 9447 9448# The coded name of the library, if different from the real name. 9449soname_spec=$lt_soname_spec 9450 9451# Commands used to build and install an old-style archive. 9452RANLIB=$lt_RANLIB 9453old_archive_cmds=$lt_old_archive_cmds 9454old_postinstall_cmds=$lt_old_postinstall_cmds 9455old_postuninstall_cmds=$lt_old_postuninstall_cmds 9456 9457# Create an old-style archive from a shared archive. 9458old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9459 9460# Create a temporary old-style archive to link instead of a shared archive. 9461old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9462 9463# Commands used to build and install a shared archive. 9464archive_cmds=$lt_archive_cmds 9465archive_expsym_cmds=$lt_archive_expsym_cmds 9466postinstall_cmds=$lt_postinstall_cmds 9467postuninstall_cmds=$lt_postuninstall_cmds 9468 9469# Commands used to build a loadable module (assumed same as above if empty) 9470module_cmds=$lt_module_cmds 9471module_expsym_cmds=$lt_module_expsym_cmds 9472 9473# Commands to strip libraries. 9474old_striplib=$lt_old_striplib 9475striplib=$lt_striplib 9476 9477# Dependencies to place before the objects being linked to create a 9478# shared library. 9479predep_objects=$lt_predep_objects 9480 9481# Dependencies to place after the objects being linked to create a 9482# shared library. 9483postdep_objects=$lt_postdep_objects 9484 9485# Dependencies to place before the objects being linked to create a 9486# shared library. 9487predeps=$lt_predeps 9488 9489# Dependencies to place after the objects being linked to create a 9490# shared library. 9491postdeps=$lt_postdeps 9492 9493# The library search path used internally by the compiler when linking 9494# a shared library. 9495compiler_lib_search_path=$lt_compiler_lib_search_path 9496 9497# Method to check whether dependent libraries are shared objects. 9498deplibs_check_method=$lt_deplibs_check_method 9499 9500# Command to use when deplibs_check_method == file_magic. 9501file_magic_cmd=$lt_file_magic_cmd 9502 9503# Flag that allows shared libraries with undefined symbols to be built. 9504allow_undefined_flag=$lt_allow_undefined_flag 9505 9506# Flag that forces no undefined symbols. 9507no_undefined_flag=$lt_no_undefined_flag 9508 9509# Commands used to finish a libtool library installation in a directory. 9510finish_cmds=$lt_finish_cmds 9511 9512# Same as above, but a single script fragment to be evaled but not shown. 9513finish_eval=$lt_finish_eval 9514 9515# Take the output of nm and produce a listing of raw symbols and C names. 9516global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9517 9518# Transform the output of nm in a proper C declaration 9519global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9520 9521# Transform the output of nm in a C name address pair 9522global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9523 9524# This is the shared library runtime path variable. 9525runpath_var=$runpath_var 9526 9527# This is the shared library path variable. 9528shlibpath_var=$shlibpath_var 9529 9530# Is shlibpath searched before the hard-coded library search path? 9531shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9532 9533# How to hardcode a shared library path into an executable. 9534hardcode_action=$hardcode_action 9535 9536# Whether we should hardcode library paths into libraries. 9537hardcode_into_libs=$hardcode_into_libs 9538 9539# Flag to hardcode \$libdir into a binary during linking. 9540# This must work even if \$libdir does not exist. 9541hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9542 9543# If ld is used when linking, flag to hardcode \$libdir into 9544# a binary during linking. This must work even if \$libdir does 9545# not exist. 9546hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9547 9548# Whether we need a single -rpath flag with a separated argument. 9549hardcode_libdir_separator=$lt_hardcode_libdir_separator 9550 9551# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9552# resulting binary. 9553hardcode_direct=$hardcode_direct 9554 9555# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9556# resulting binary. 9557hardcode_minus_L=$hardcode_minus_L 9558 9559# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9560# the resulting binary. 9561hardcode_shlibpath_var=$hardcode_shlibpath_var 9562 9563# Set to yes if building a shared library automatically hardcodes DIR into the library 9564# and all subsequent libraries and executables linked against it. 9565hardcode_automatic=$hardcode_automatic 9566 9567# Variables whose values should be saved in libtool wrapper scripts and 9568# restored at relink time. 9569variables_saved_for_relink="$variables_saved_for_relink" 9570 9571# Whether libtool must link a program against all its dependency libraries. 9572link_all_deplibs=$link_all_deplibs 9573 9574# Compile-time system search path for libraries 9575sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9576 9577# Run-time system search path for libraries 9578sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9579 9580# Fix the shell variable \$srcfile for the compiler. 9581fix_srcfile_path="$fix_srcfile_path" 9582 9583# Set to yes if exported symbols are required. 9584always_export_symbols=$always_export_symbols 9585 9586# The commands to list exported symbols. 9587export_symbols_cmds=$lt_export_symbols_cmds 9588 9589# The commands to extract the exported symbol list from a shared archive. 9590extract_expsyms_cmds=$lt_extract_expsyms_cmds 9591 9592# Symbols that should not be listed in the preloaded symbols. 9593exclude_expsyms=$lt_exclude_expsyms 9594 9595# Symbols that must always be exported. 9596include_expsyms=$lt_include_expsyms 9597 9598# ### END LIBTOOL CONFIG 9599 9600__EOF__ 9601 9602 9603 case $host_os in 9604 aix3*) 9605 cat <<\EOF >> "$cfgfile" 9606 9607# AIX sometimes has problems with the GCC collect2 program. For some 9608# reason, if we set the COLLECT_NAMES environment variable, the problems 9609# vanish in a puff of smoke. 9610if test "X${COLLECT_NAMES+set}" != Xset; then 9611 COLLECT_NAMES= 9612 export COLLECT_NAMES 9613fi 9614EOF 9615 ;; 9616 esac 9617 9618 # We use sed instead of cat because bash on DJGPP gets confused if 9619 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9620 # text mode, it properly converts lines to CR/LF. This bash problem 9621 # is reportedly fixed, but why not run on old versions too? 9622 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9623 9624 mv -f "$cfgfile" "$ofile" || \ 9625 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9626 chmod +x "$ofile" 9627 9628else 9629 # If there is no Makefile yet, we rely on a make rule to execute 9630 # `config.status --recheck' to rerun these tests and create the 9631 # libtool script then. 9632 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9633 if test -f "$ltmain_in"; then 9634 test -f Makefile && make "$ltmain" 9635 fi 9636fi 9637 9638 9639ac_ext=c 9640ac_cpp='$CPP $CPPFLAGS' 9641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9643ac_compiler_gnu=$ac_cv_c_compiler_gnu 9644 9645CC="$lt_save_CC" 9646 9647 9648# Check whether --with-tags or --without-tags was given. 9649if test "${with_tags+set}" = set; then 9650 withval="$with_tags" 9651 tagnames="$withval" 9652fi; 9653 9654if test -f "$ltmain" && test -n "$tagnames"; then 9655 if test ! -f "${ofile}"; then 9656 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9657echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9658 fi 9659 9660 if test -z "$LTCC"; then 9661 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9662 if test -z "$LTCC"; then 9663 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9664echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9665 else 9666 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9667echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9668 fi 9669 fi 9670 9671 # Extract list of available tagged configurations in $ofile. 9672 # Note that this assumes the entire list is on one line. 9673 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9674 9675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9676 for tagname in $tagnames; do 9677 IFS="$lt_save_ifs" 9678 # Check whether tagname contains only valid characters 9679 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9680 "") ;; 9681 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9682echo "$as_me: error: invalid tag name: $tagname" >&2;} 9683 { (exit 1); exit 1; }; } 9684 ;; 9685 esac 9686 9687 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9688 then 9689 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9690echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9691 { (exit 1); exit 1; }; } 9692 fi 9693 9694 # Update the list of available tags. 9695 if test -n "$tagname"; then 9696 echo appending configuration tag \"$tagname\" to $ofile 9697 9698 case $tagname in 9699 CXX) 9700 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9701 ac_ext=cc 9702ac_cpp='$CXXCPP $CPPFLAGS' 9703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9706 9707 9708 9709 9710archive_cmds_need_lc_CXX=no 9711allow_undefined_flag_CXX= 9712always_export_symbols_CXX=no 9713archive_expsym_cmds_CXX= 9714export_dynamic_flag_spec_CXX= 9715hardcode_direct_CXX=no 9716hardcode_libdir_flag_spec_CXX= 9717hardcode_libdir_flag_spec_ld_CXX= 9718hardcode_libdir_separator_CXX= 9719hardcode_minus_L_CXX=no 9720hardcode_automatic_CXX=no 9721module_cmds_CXX= 9722module_expsym_cmds_CXX= 9723link_all_deplibs_CXX=unknown 9724old_archive_cmds_CXX=$old_archive_cmds 9725no_undefined_flag_CXX= 9726whole_archive_flag_spec_CXX= 9727enable_shared_with_static_runtimes_CXX=no 9728 9729# Dependencies to place before and after the object being linked: 9730predep_objects_CXX= 9731postdep_objects_CXX= 9732predeps_CXX= 9733postdeps_CXX= 9734compiler_lib_search_path_CXX= 9735 9736# Source file extension for C++ test sources. 9737ac_ext=cc 9738 9739# Object file extension for compiled C++ test sources. 9740objext=o 9741objext_CXX=$objext 9742 9743# Code to be used in simple compile tests 9744lt_simple_compile_test_code="int some_variable = 0;\n" 9745 9746# Code to be used in simple link tests 9747lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9748 9749# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9750 9751# If no C compiler was specified, use CC. 9752LTCC=${LTCC-"$CC"} 9753 9754# Allow CC to be a program name with arguments. 9755compiler=$CC 9756 9757 9758# Allow CC to be a program name with arguments. 9759lt_save_CC=$CC 9760lt_save_LD=$LD 9761lt_save_GCC=$GCC 9762GCC=$GXX 9763lt_save_with_gnu_ld=$with_gnu_ld 9764lt_save_path_LD=$lt_cv_path_LD 9765if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9766 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9767else 9768 unset lt_cv_prog_gnu_ld 9769fi 9770if test -n "${lt_cv_path_LDCXX+set}"; then 9771 lt_cv_path_LD=$lt_cv_path_LDCXX 9772else 9773 unset lt_cv_path_LD 9774fi 9775test -z "${LDCXX+set}" || LD=$LDCXX 9776CC=${CXX-"c++"} 9777compiler=$CC 9778compiler_CXX=$CC 9779cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9780 9781# We don't want -fno-exception wen compiling C++ code, so set the 9782# no_builtin_flag separately 9783if test "$GXX" = yes; then 9784 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9785else 9786 lt_prog_compiler_no_builtin_flag_CXX= 9787fi 9788 9789if test "$GXX" = yes; then 9790 # Set up default GNU C++ configuration 9791 9792 9793# Check whether --with-gnu-ld or --without-gnu-ld was given. 9794if test "${with_gnu_ld+set}" = set; then 9795 withval="$with_gnu_ld" 9796 test "$withval" = no || with_gnu_ld=yes 9797else 9798 with_gnu_ld=no 9799fi; 9800ac_prog=ld 9801if test "$GCC" = yes; then 9802 # Check if gcc -print-prog-name=ld gives a path. 9803 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9804echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9805 case $host in 9806 *-*-mingw*) 9807 # gcc leaves a trailing carriage return which upsets mingw 9808 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9809 *) 9810 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9811 esac 9812 case $ac_prog in 9813 # Accept absolute paths. 9814 [\\/]* | ?:[\\/]*) 9815 re_direlt='/[^/][^/]*/\.\./' 9816 # Canonicalize the pathname of ld 9817 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9818 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9819 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9820 done 9821 test -z "$LD" && LD="$ac_prog" 9822 ;; 9823 "") 9824 # If it fails, then pretend we aren't using GCC. 9825 ac_prog=ld 9826 ;; 9827 *) 9828 # If it is relative, then search for the first ld in PATH. 9829 with_gnu_ld=unknown 9830 ;; 9831 esac 9832elif test "$with_gnu_ld" = yes; then 9833 echo "$as_me:$LINENO: checking for GNU ld" >&5 9834echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9835else 9836 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9837echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9838fi 9839if test "${lt_cv_path_LD+set}" = set; then 9840 echo $ECHO_N "(cached) $ECHO_C" >&6 9841else 9842 if test -z "$LD"; then 9843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9844 for ac_dir in $PATH; do 9845 IFS="$lt_save_ifs" 9846 test -z "$ac_dir" && ac_dir=. 9847 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9848 lt_cv_path_LD="$ac_dir/$ac_prog" 9849 # Check to see if the program is GNU ld. I'd rather use --version, 9850 # but apparently some GNU ld's only accept -v. 9851 # Break only if it was the GNU/non-GNU ld that we prefer. 9852 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9853 *GNU* | *'with BFD'*) 9854 test "$with_gnu_ld" != no && break 9855 ;; 9856 *) 9857 test "$with_gnu_ld" != yes && break 9858 ;; 9859 esac 9860 fi 9861 done 9862 IFS="$lt_save_ifs" 9863else 9864 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9865fi 9866fi 9867 9868LD="$lt_cv_path_LD" 9869if test -n "$LD"; then 9870 echo "$as_me:$LINENO: result: $LD" >&5 9871echo "${ECHO_T}$LD" >&6 9872else 9873 echo "$as_me:$LINENO: result: no" >&5 9874echo "${ECHO_T}no" >&6 9875fi 9876test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9877echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9878 { (exit 1); exit 1; }; } 9879echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9880echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9881if test "${lt_cv_prog_gnu_ld+set}" = set; then 9882 echo $ECHO_N "(cached) $ECHO_C" >&6 9883else 9884 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9885case `$LD -v 2>&1 </dev/null` in 9886*GNU* | *'with BFD'*) 9887 lt_cv_prog_gnu_ld=yes 9888 ;; 9889*) 9890 lt_cv_prog_gnu_ld=no 9891 ;; 9892esac 9893fi 9894echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9895echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9896with_gnu_ld=$lt_cv_prog_gnu_ld 9897 9898 9899 9900 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9901 # archiving commands below assume that GNU ld is being used. 9902 if test "$with_gnu_ld" = yes; then 9903 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9904 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' 9905 9906 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9907 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9908 9909 # If archive_cmds runs LD, not CC, wlarc should be empty 9910 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9911 # investigate it a little bit more. (MM) 9912 wlarc='${wl}' 9913 9914 # ancient GNU ld didn't support --whole-archive et. al. 9915 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9916 grep 'no-whole-archive' > /dev/null; then 9917 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9918 else 9919 whole_archive_flag_spec_CXX= 9920 fi 9921 else 9922 with_gnu_ld=no 9923 wlarc= 9924 9925 # A generic and very simple default shared library creation 9926 # command for GNU C++ for the case where it uses the native 9927 # linker, instead of GNU ld. If possible, this setting should 9928 # overridden to take advantage of the native linker features on 9929 # the platform it is being used on. 9930 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9931 fi 9932 9933 # Commands to make compiler produce verbose output that lists 9934 # what "hidden" libraries, object files and flags are used when 9935 # linking a shared library. 9936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9937 9938else 9939 GXX=no 9940 with_gnu_ld=no 9941 wlarc= 9942fi 9943 9944# PORTME: fill in a description of your system's C++ link characteristics 9945echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9946echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9947ld_shlibs_CXX=yes 9948case $host_os in 9949 aix3*) 9950 # FIXME: insert proper C++ library support 9951 ld_shlibs_CXX=no 9952 ;; 9953 aix4* | aix5*) 9954 if test "$host_cpu" = ia64; then 9955 # On IA64, the linker does run time linking by default, so we don't 9956 # have to do anything special. 9957 aix_use_runtimelinking=no 9958 exp_sym_flag='-Bexport' 9959 no_entry_flag="" 9960 else 9961 aix_use_runtimelinking=no 9962 9963 # Test if we are trying to use run time linking or normal 9964 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9965 # need to do runtime linking. 9966 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9967 for ld_flag in $LDFLAGS; do 9968 case $ld_flag in 9969 *-brtl*) 9970 aix_use_runtimelinking=yes 9971 break 9972 ;; 9973 esac 9974 done 9975 esac 9976 9977 exp_sym_flag='-bexport' 9978 no_entry_flag='-bnoentry' 9979 fi 9980 9981 # When large executables or shared objects are built, AIX ld can 9982 # have problems creating the table of contents. If linking a library 9983 # or program results in "error TOC overflow" add -mminimal-toc to 9984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9986 9987 archive_cmds_CXX='' 9988 hardcode_direct_CXX=yes 9989 hardcode_libdir_separator_CXX=':' 9990 link_all_deplibs_CXX=yes 9991 9992 if test "$GXX" = yes; then 9993 case $host_os in aix4.012|aix4.012.*) 9994 # We only want to do this on AIX 4.2 and lower, the check 9995 # below for broken collect2 doesn't work under 4.3+ 9996 collect2name=`${CC} -print-prog-name=collect2` 9997 if test -f "$collect2name" && \ 9998 strings "$collect2name" | grep resolve_lib_name >/dev/null 9999 then 10000 # We have reworked collect2 10001 hardcode_direct_CXX=yes 10002 else 10003 # We have old collect2 10004 hardcode_direct_CXX=unsupported 10005 # It fails to find uninstalled libraries when the uninstalled 10006 # path is not listed in the libpath. Setting hardcode_minus_L 10007 # to unsupported forces relinking 10008 hardcode_minus_L_CXX=yes 10009 hardcode_libdir_flag_spec_CXX='-L$libdir' 10010 hardcode_libdir_separator_CXX= 10011 fi 10012 esac 10013 shared_flag='-shared' 10014 else 10015 # not using gcc 10016 if test "$host_cpu" = ia64; then 10017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10018 # chokes on -Wl,-G. The following line is correct: 10019 shared_flag='-G' 10020 else 10021 if test "$aix_use_runtimelinking" = yes; then 10022 shared_flag='${wl}-G' 10023 else 10024 shared_flag='${wl}-bM:SRE' 10025 fi 10026 fi 10027 fi 10028 10029 # It seems that -bexpall does not export symbols beginning with 10030 # underscore (_), so it is better to generate a list of symbols to export. 10031 always_export_symbols_CXX=yes 10032 if test "$aix_use_runtimelinking" = yes; then 10033 # Warning - without using the other runtime loading flags (-brtl), 10034 # -berok will link without error, but may produce a broken library. 10035 allow_undefined_flag_CXX='-berok' 10036 # Determine the default libpath from the value encoded in an empty executable. 10037 cat >conftest.$ac_ext <<_ACEOF 10038/* confdefs.h. */ 10039_ACEOF 10040cat confdefs.h >>conftest.$ac_ext 10041cat >>conftest.$ac_ext <<_ACEOF 10042/* end confdefs.h. */ 10043 10044int 10045main () 10046{ 10047 10048 ; 10049 return 0; 10050} 10051_ACEOF 10052rm -f conftest.$ac_objext conftest$ac_exeext 10053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10054 (eval $ac_link) 2>conftest.er1 10055 ac_status=$? 10056 grep -v '^ *+' conftest.er1 >conftest.err 10057 rm -f conftest.er1 10058 cat conftest.err >&5 10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10060 (exit $ac_status); } && 10061 { ac_try='test -z "$ac_cxx_werror_flag" 10062 || test ! -s conftest.err' 10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10064 (eval $ac_try) 2>&5 10065 ac_status=$? 10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10067 (exit $ac_status); }; } && 10068 { ac_try='test -s conftest$ac_exeext' 10069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10070 (eval $ac_try) 2>&5 10071 ac_status=$? 10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10073 (exit $ac_status); }; }; then 10074 10075aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10076}'` 10077# Check for a 64-bit object if we didn't find anything. 10078if 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; } 10079}'`; fi 10080else 10081 echo "$as_me: failed program was:" >&5 10082sed 's/^/| /' conftest.$ac_ext >&5 10083 10084fi 10085rm -f conftest.err conftest.$ac_objext \ 10086 conftest$ac_exeext conftest.$ac_ext 10087if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10088 10089 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10090 10091 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" 10092 else 10093 if test "$host_cpu" = ia64; then 10094 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10095 allow_undefined_flag_CXX="-z nodefs" 10096 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" 10097 else 10098 # Determine the default libpath from the value encoded in an empty executable. 10099 cat >conftest.$ac_ext <<_ACEOF 10100/* confdefs.h. */ 10101_ACEOF 10102cat confdefs.h >>conftest.$ac_ext 10103cat >>conftest.$ac_ext <<_ACEOF 10104/* end confdefs.h. */ 10105 10106int 10107main () 10108{ 10109 10110 ; 10111 return 0; 10112} 10113_ACEOF 10114rm -f conftest.$ac_objext conftest$ac_exeext 10115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10116 (eval $ac_link) 2>conftest.er1 10117 ac_status=$? 10118 grep -v '^ *+' conftest.er1 >conftest.err 10119 rm -f conftest.er1 10120 cat conftest.err >&5 10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10122 (exit $ac_status); } && 10123 { ac_try='test -z "$ac_cxx_werror_flag" 10124 || test ! -s conftest.err' 10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10126 (eval $ac_try) 2>&5 10127 ac_status=$? 10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10129 (exit $ac_status); }; } && 10130 { ac_try='test -s conftest$ac_exeext' 10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10132 (eval $ac_try) 2>&5 10133 ac_status=$? 10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10135 (exit $ac_status); }; }; then 10136 10137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10138}'` 10139# Check for a 64-bit object if we didn't find anything. 10140if 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; } 10141}'`; fi 10142else 10143 echo "$as_me: failed program was:" >&5 10144sed 's/^/| /' conftest.$ac_ext >&5 10145 10146fi 10147rm -f conftest.err conftest.$ac_objext \ 10148 conftest$ac_exeext conftest.$ac_ext 10149if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10150 10151 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10152 # Warning - without using the other run time loading flags, 10153 # -berok will link without error, but may produce a broken library. 10154 no_undefined_flag_CXX=' ${wl}-bernotok' 10155 allow_undefined_flag_CXX=' ${wl}-berok' 10156 # -bexpall does not export symbols beginning with underscore (_) 10157 always_export_symbols_CXX=yes 10158 # Exported symbols can be pulled into shared objects from archives 10159 whole_archive_flag_spec_CXX=' ' 10160 archive_cmds_need_lc_CXX=yes 10161 # This is similar to how AIX traditionally builds it's shared libraries. 10162 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' 10163 fi 10164 fi 10165 ;; 10166 chorus*) 10167 case $cc_basename in 10168 *) 10169 # FIXME: insert proper C++ library support 10170 ld_shlibs_CXX=no 10171 ;; 10172 esac 10173 ;; 10174 10175 cygwin* | mingw* | pw32*) 10176 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10177 # as there is no search path for DLLs. 10178 hardcode_libdir_flag_spec_CXX='-L$libdir' 10179 allow_undefined_flag_CXX=unsupported 10180 always_export_symbols_CXX=no 10181 enable_shared_with_static_runtimes_CXX=yes 10182 10183 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10184 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' 10185 # If the export-symbols file already is a .def file (1st line 10186 # is EXPORTS), use it as is; otherwise, prepend... 10187 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10188 cp $export_symbols $output_objdir/$soname.def; 10189 else 10190 echo EXPORTS > $output_objdir/$soname.def; 10191 cat $export_symbols >> $output_objdir/$soname.def; 10192 fi~ 10193 $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' 10194 else 10195 ld_shlibs_CXX=no 10196 fi 10197 ;; 10198 10199 darwin* | rhapsody*) 10200 if test "$GXX" = yes; then 10201 archive_cmds_need_lc_CXX=no 10202 case "$host_os" in 10203 rhapsody* | darwin1.[012]) 10204 allow_undefined_flag_CXX='-undefined suppress' 10205 ;; 10206 *) # Darwin 1.3 on 10207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10208 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10209 else 10210 case ${MACOSX_DEPLOYMENT_TARGET} in 10211 10.[012]) 10212 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10213 ;; 10214 10.*) 10215 allow_undefined_flag_CXX='-undefined dynamic_lookup' 10216 ;; 10217 esac 10218 fi 10219 ;; 10220 esac 10221 lt_int_apple_cc_single_mod=no 10222 output_verbose_link_cmd='echo' 10223 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 10224 lt_int_apple_cc_single_mod=yes 10225 fi 10226 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10227 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10228 else 10229 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' 10230 fi 10231 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10232 10233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 10234 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10235 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}' 10236 else 10237 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}' 10238 fi 10239 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}' 10240 hardcode_direct_CXX=no 10241 hardcode_automatic_CXX=yes 10242 hardcode_shlibpath_var_CXX=unsupported 10243 whole_archive_flag_spec_CXX='-all_load $convenience' 10244 link_all_deplibs_CXX=yes 10245 else 10246 ld_shlibs_CXX=no 10247 fi 10248 ;; 10249 10250 dgux*) 10251 case $cc_basename in 10252 ec++) 10253 # FIXME: insert proper C++ library support 10254 ld_shlibs_CXX=no 10255 ;; 10256 ghcx) 10257 # Green Hills C++ Compiler 10258 # FIXME: insert proper C++ library support 10259 ld_shlibs_CXX=no 10260 ;; 10261 *) 10262 # FIXME: insert proper C++ library support 10263 ld_shlibs_CXX=no 10264 ;; 10265 esac 10266 ;; 10267 freebsd12*) 10268 # C++ shared libraries reported to be fairly broken before switch to ELF 10269 ld_shlibs_CXX=no 10270 ;; 10271 freebsd-elf*) 10272 archive_cmds_need_lc_CXX=no 10273 ;; 10274 freebsd* | kfreebsd*-gnu) 10275 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10276 # conventions 10277 ld_shlibs_CXX=yes 10278 ;; 10279 gnu*) 10280 ;; 10281 hpux9*) 10282 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10283 hardcode_libdir_separator_CXX=: 10284 export_dynamic_flag_spec_CXX='${wl}-E' 10285 hardcode_direct_CXX=yes 10286 hardcode_minus_L_CXX=yes # Not in the search PATH, 10287 # but as the default 10288 # location of the library. 10289 10290 case $cc_basename in 10291 CC) 10292 # FIXME: insert proper C++ library support 10293 ld_shlibs_CXX=no 10294 ;; 10295 aCC) 10296 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' 10297 # Commands to make compiler produce verbose output that lists 10298 # what "hidden" libraries, object files and flags are used when 10299 # linking a shared library. 10300 # 10301 # There doesn't appear to be a way to prevent this compiler from 10302 # explicitly linking system object files so we need to strip them 10303 # from the output so that they don't get included in the library 10304 # dependencies. 10305 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' 10306 ;; 10307 *) 10308 if test "$GXX" = yes; then 10309 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' 10310 else 10311 # FIXME: insert proper C++ library support 10312 ld_shlibs_CXX=no 10313 fi 10314 ;; 10315 esac 10316 ;; 10317 hpux10*|hpux11*) 10318 if test $with_gnu_ld = no; then 10319 case "$host_cpu" in 10320 hppa*64*) 10321 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10322 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10323 hardcode_libdir_separator_CXX=: 10324 ;; 10325 ia64*) 10326 hardcode_libdir_flag_spec_CXX='-L$libdir' 10327 ;; 10328 *) 10329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10330 hardcode_libdir_separator_CXX=: 10331 export_dynamic_flag_spec_CXX='${wl}-E' 10332 ;; 10333 esac 10334 fi 10335 case "$host_cpu" in 10336 hppa*64*) 10337 hardcode_direct_CXX=no 10338 hardcode_shlibpath_var_CXX=no 10339 ;; 10340 ia64*) 10341 hardcode_direct_CXX=no 10342 hardcode_shlibpath_var_CXX=no 10343 hardcode_minus_L_CXX=yes # Not in the search PATH, 10344 # but as the default 10345 # location of the library. 10346 ;; 10347 *) 10348 hardcode_direct_CXX=yes 10349 hardcode_minus_L_CXX=yes # Not in the search PATH, 10350 # but as the default 10351 # location of the library. 10352 ;; 10353 esac 10354 10355 case $cc_basename in 10356 CC) 10357 # FIXME: insert proper C++ library support 10358 ld_shlibs_CXX=no 10359 ;; 10360 aCC) 10361 case "$host_cpu" in 10362 hppa*64*|ia64*) 10363 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10364 ;; 10365 *) 10366 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10367 ;; 10368 esac 10369 # Commands to make compiler produce verbose output that lists 10370 # what "hidden" libraries, object files and flags are used when 10371 # linking a shared library. 10372 # 10373 # There doesn't appear to be a way to prevent this compiler from 10374 # explicitly linking system object files so we need to strip them 10375 # from the output so that they don't get included in the library 10376 # dependencies. 10377 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' 10378 ;; 10379 *) 10380 if test "$GXX" = yes; then 10381 if test $with_gnu_ld = no; then 10382 case "$host_cpu" in 10383 ia64*|hppa*64*) 10384 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10385 ;; 10386 *) 10387 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' 10388 ;; 10389 esac 10390 fi 10391 else 10392 # FIXME: insert proper C++ library support 10393 ld_shlibs_CXX=no 10394 fi 10395 ;; 10396 esac 10397 ;; 10398 irix5* | irix6*) 10399 case $cc_basename in 10400 CC) 10401 # SGI C++ 10402 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' 10403 10404 # Archives containing C++ object files must be created using 10405 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10406 # necessary to make sure instantiated templates are included 10407 # in the archive. 10408 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10409 ;; 10410 *) 10411 if test "$GXX" = yes; then 10412 if test "$with_gnu_ld" = no; then 10413 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' 10414 else 10415 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' 10416 fi 10417 fi 10418 link_all_deplibs_CXX=yes 10419 ;; 10420 esac 10421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10422 hardcode_libdir_separator_CXX=: 10423 ;; 10424 linux*) 10425 case $cc_basename in 10426 KCC) 10427 # Kuck and Associates, Inc. (KAI) C++ Compiler 10428 10429 # KCC will only create a shared library if the output file 10430 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10431 # to its proper name (with version) after linking. 10432 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' 10433 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' 10434 # Commands to make compiler produce verbose output that lists 10435 # what "hidden" libraries, object files and flags are used when 10436 # linking a shared library. 10437 # 10438 # There doesn't appear to be a way to prevent this compiler from 10439 # explicitly linking system object files so we need to strip them 10440 # from the output so that they don't get included in the library 10441 # dependencies. 10442 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' 10443 10444 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10445 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10446 10447 # Archives containing C++ object files must be created using 10448 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10449 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10450 ;; 10451 icpc) 10452 # Intel C++ 10453 with_gnu_ld=yes 10454 archive_cmds_need_lc_CXX=no 10455 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10456 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' 10457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10459 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10460 ;; 10461 cxx) 10462 # Compaq C++ 10463 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10464 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' 10465 10466 runpath_var=LD_RUN_PATH 10467 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10468 hardcode_libdir_separator_CXX=: 10469 10470 # Commands to make compiler produce verbose output that lists 10471 # what "hidden" libraries, object files and flags are used when 10472 # linking a shared library. 10473 # 10474 # There doesn't appear to be a way to prevent this compiler from 10475 # explicitly linking system object files so we need to strip them 10476 # from the output so that they don't get included in the library 10477 # dependencies. 10478 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' 10479 ;; 10480 esac 10481 ;; 10482 lynxos*) 10483 # FIXME: insert proper C++ library support 10484 ld_shlibs_CXX=no 10485 ;; 10486 m88k*) 10487 # FIXME: insert proper C++ library support 10488 ld_shlibs_CXX=no 10489 ;; 10490 mvs*) 10491 case $cc_basename in 10492 cxx) 10493 # FIXME: insert proper C++ library support 10494 ld_shlibs_CXX=no 10495 ;; 10496 *) 10497 # FIXME: insert proper C++ library support 10498 ld_shlibs_CXX=no 10499 ;; 10500 esac 10501 ;; 10502 netbsd*) 10503 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10504 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10505 wlarc= 10506 hardcode_libdir_flag_spec_CXX='-R$libdir' 10507 hardcode_direct_CXX=yes 10508 hardcode_shlibpath_var_CXX=no 10509 fi 10510 # Workaround some broken pre-1.5 toolchains 10511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10512 ;; 10513 osf3*) 10514 case $cc_basename in 10515 KCC) 10516 # Kuck and Associates, Inc. (KAI) C++ Compiler 10517 10518 # KCC will only create a shared library if the output file 10519 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10520 # to its proper name (with version) after linking. 10521 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' 10522 10523 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10524 hardcode_libdir_separator_CXX=: 10525 10526 # Archives containing C++ object files must be created using 10527 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10528 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10529 10530 ;; 10531 RCC) 10532 # Rational C++ 2.4.1 10533 # FIXME: insert proper C++ library support 10534 ld_shlibs_CXX=no 10535 ;; 10536 cxx) 10537 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10538 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' 10539 10540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10541 hardcode_libdir_separator_CXX=: 10542 10543 # Commands to make compiler produce verbose output that lists 10544 # what "hidden" libraries, object files and flags are used when 10545 # linking a shared library. 10546 # 10547 # There doesn't appear to be a way to prevent this compiler from 10548 # explicitly linking system object files so we need to strip them 10549 # from the output so that they don't get included in the library 10550 # dependencies. 10551 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' 10552 ;; 10553 *) 10554 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10555 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10556 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' 10557 10558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10559 hardcode_libdir_separator_CXX=: 10560 10561 # Commands to make compiler produce verbose output that lists 10562 # what "hidden" libraries, object files and flags are used when 10563 # linking a shared library. 10564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10565 10566 else 10567 # FIXME: insert proper C++ library support 10568 ld_shlibs_CXX=no 10569 fi 10570 ;; 10571 esac 10572 ;; 10573 osf4* | osf5*) 10574 case $cc_basename in 10575 KCC) 10576 # Kuck and Associates, Inc. (KAI) C++ Compiler 10577 10578 # KCC will only create a shared library if the output file 10579 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10580 # to its proper name (with version) after linking. 10581 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' 10582 10583 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10584 hardcode_libdir_separator_CXX=: 10585 10586 # Archives containing C++ object files must be created using 10587 # the KAI C++ compiler. 10588 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10589 ;; 10590 RCC) 10591 # Rational C++ 2.4.1 10592 # FIXME: insert proper C++ library support 10593 ld_shlibs_CXX=no 10594 ;; 10595 cxx) 10596 allow_undefined_flag_CXX=' -expect_unresolved \*' 10597 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' 10598 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10599 echo "-hidden">> $lib.exp~ 10600 $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~ 10601 $rm $lib.exp' 10602 10603 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10604 hardcode_libdir_separator_CXX=: 10605 10606 # Commands to make compiler produce verbose output that lists 10607 # what "hidden" libraries, object files and flags are used when 10608 # linking a shared library. 10609 # 10610 # There doesn't appear to be a way to prevent this compiler from 10611 # explicitly linking system object files so we need to strip them 10612 # from the output so that they don't get included in the library 10613 # dependencies. 10614 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' 10615 ;; 10616 *) 10617 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10618 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10619 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' 10620 10621 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10622 hardcode_libdir_separator_CXX=: 10623 10624 # Commands to make compiler produce verbose output that lists 10625 # what "hidden" libraries, object files and flags are used when 10626 # linking a shared library. 10627 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10628 10629 else 10630 # FIXME: insert proper C++ library support 10631 ld_shlibs_CXX=no 10632 fi 10633 ;; 10634 esac 10635 ;; 10636 psos*) 10637 # FIXME: insert proper C++ library support 10638 ld_shlibs_CXX=no 10639 ;; 10640 sco*) 10641 archive_cmds_need_lc_CXX=no 10642 case $cc_basename in 10643 CC) 10644 # FIXME: insert proper C++ library support 10645 ld_shlibs_CXX=no 10646 ;; 10647 *) 10648 # FIXME: insert proper C++ library support 10649 ld_shlibs_CXX=no 10650 ;; 10651 esac 10652 ;; 10653 sunos4*) 10654 case $cc_basename in 10655 CC) 10656 # Sun C++ 4.x 10657 # FIXME: insert proper C++ library support 10658 ld_shlibs_CXX=no 10659 ;; 10660 lcc) 10661 # Lucid 10662 # FIXME: insert proper C++ library support 10663 ld_shlibs_CXX=no 10664 ;; 10665 *) 10666 # FIXME: insert proper C++ library support 10667 ld_shlibs_CXX=no 10668 ;; 10669 esac 10670 ;; 10671 solaris*) 10672 case $cc_basename in 10673 CC) 10674 # Sun C++ 4.2, 5.x and Centerline C++ 10675 no_undefined_flag_CXX=' -zdefs' 10676 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10677 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10678 $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' 10679 10680 hardcode_libdir_flag_spec_CXX='-R$libdir' 10681 hardcode_shlibpath_var_CXX=no 10682 case $host_os in 10683 solaris2.0-5 | solaris2.0-5.*) ;; 10684 *) 10685 # The C++ compiler is used as linker so we must use $wl 10686 # flag to pass the commands to the underlying system 10687 # linker. 10688 # Supported since Solaris 2.6 (maybe 2.5.1?) 10689 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10690 ;; 10691 esac 10692 link_all_deplibs_CXX=yes 10693 10694 # Commands to make compiler produce verbose output that lists 10695 # what "hidden" libraries, object files and flags are used when 10696 # linking a shared library. 10697 # 10698 # There doesn't appear to be a way to prevent this compiler from 10699 # explicitly linking system object files so we need to strip them 10700 # from the output so that they don't get included in the library 10701 # dependencies. 10702 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' 10703 10704 # Archives containing C++ object files must be created using 10705 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10706 # necessary to make sure instantiated templates are included 10707 # in the archive. 10708 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10709 ;; 10710 gcx) 10711 # Green Hills C++ Compiler 10712 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10713 10714 # The C++ compiler must be used to create the archive. 10715 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10716 ;; 10717 *) 10718 # GNU C++ compiler with Solaris linker 10719 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10720 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10721 if $CC --version | grep -v '^2\.7' > /dev/null; then 10722 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10723 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10724 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10725 10726 # Commands to make compiler produce verbose output that lists 10727 # what "hidden" libraries, object files and flags are used when 10728 # linking a shared library. 10729 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10730 else 10731 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10732 # platform. 10733 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10734 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10735 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10736 10737 # Commands to make compiler produce verbose output that lists 10738 # what "hidden" libraries, object files and flags are used when 10739 # linking a shared library. 10740 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10741 fi 10742 10743 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10744 fi 10745 ;; 10746 esac 10747 ;; 10748 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10749 archive_cmds_need_lc_CXX=no 10750 ;; 10751 tandem*) 10752 case $cc_basename in 10753 NCC) 10754 # NonStop-UX NCC 3.20 10755 # FIXME: insert proper C++ library support 10756 ld_shlibs_CXX=no 10757 ;; 10758 *) 10759 # FIXME: insert proper C++ library support 10760 ld_shlibs_CXX=no 10761 ;; 10762 esac 10763 ;; 10764 vxworks*) 10765 # FIXME: insert proper C++ library support 10766 ld_shlibs_CXX=no 10767 ;; 10768 *) 10769 # FIXME: insert proper C++ library support 10770 ld_shlibs_CXX=no 10771 ;; 10772esac 10773echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10774echo "${ECHO_T}$ld_shlibs_CXX" >&6 10775test "$ld_shlibs_CXX" = no && can_build_shared=no 10776 10777GCC_CXX="$GXX" 10778LD_CXX="$LD" 10779 10780 10781cat > conftest.$ac_ext <<EOF 10782class Foo 10783{ 10784public: 10785 Foo (void) { a = 0; } 10786private: 10787 int a; 10788}; 10789EOF 10790 10791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10792 (eval $ac_compile) 2>&5 10793 ac_status=$? 10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10795 (exit $ac_status); }; then 10796 # Parse the compiler output and extract the necessary 10797 # objects, libraries and library flags. 10798 10799 # Sentinel used to keep track of whether or not we are before 10800 # the conftest object file. 10801 pre_test_object_deps_done=no 10802 10803 # The `*' in the case matches for architectures that use `case' in 10804 # $output_verbose_cmd can trigger glob expansion during the loop 10805 # eval without this substitution. 10806 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10807 10808 for p in `eval $output_verbose_link_cmd`; do 10809 case $p in 10810 10811 -L* | -R* | -l*) 10812 # Some compilers place space between "-{L,R}" and the path. 10813 # Remove the space. 10814 if test $p = "-L" \ 10815 || test $p = "-R"; then 10816 prev=$p 10817 continue 10818 else 10819 prev= 10820 fi 10821 10822 if test "$pre_test_object_deps_done" = no; then 10823 case $p in 10824 -L* | -R*) 10825 # Internal compiler library paths should come after those 10826 # provided the user. The postdeps already come after the 10827 # user supplied libs so there is no need to process them. 10828 if test -z "$compiler_lib_search_path_CXX"; then 10829 compiler_lib_search_path_CXX="${prev}${p}" 10830 else 10831 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10832 fi 10833 ;; 10834 # The "-l" case would never come before the object being 10835 # linked, so don't bother handling this case. 10836 esac 10837 else 10838 if test -z "$postdeps_CXX"; then 10839 postdeps_CXX="${prev}${p}" 10840 else 10841 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10842 fi 10843 fi 10844 ;; 10845 10846 *.$objext) 10847 # This assumes that the test object file only shows up 10848 # once in the compiler output. 10849 if test "$p" = "conftest.$objext"; then 10850 pre_test_object_deps_done=yes 10851 continue 10852 fi 10853 10854 if test "$pre_test_object_deps_done" = no; then 10855 if test -z "$predep_objects_CXX"; then 10856 predep_objects_CXX="$p" 10857 else 10858 predep_objects_CXX="$predep_objects_CXX $p" 10859 fi 10860 else 10861 if test -z "$postdep_objects_CXX"; then 10862 postdep_objects_CXX="$p" 10863 else 10864 postdep_objects_CXX="$postdep_objects_CXX $p" 10865 fi 10866 fi 10867 ;; 10868 10869 *) ;; # Ignore the rest. 10870 10871 esac 10872 done 10873 10874 # Clean up. 10875 rm -f a.out a.exe 10876else 10877 echo "libtool.m4: error: problem compiling CXX test program" 10878fi 10879 10880$rm -f confest.$objext 10881 10882case " $postdeps_CXX " in 10883*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10884esac 10885 10886lt_prog_compiler_wl_CXX= 10887lt_prog_compiler_pic_CXX= 10888lt_prog_compiler_static_CXX= 10889 10890echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10891echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10892 10893 # C++ specific cases for pic, static, wl, etc. 10894 if test "$GXX" = yes; then 10895 lt_prog_compiler_wl_CXX='-Wl,' 10896 lt_prog_compiler_static_CXX='-static' 10897 10898 case $host_os in 10899 aix*) 10900 # All AIX code is PIC. 10901 if test "$host_cpu" = ia64; then 10902 # AIX 5 now supports IA64 processor 10903 lt_prog_compiler_static_CXX='-Bstatic' 10904 fi 10905 ;; 10906 amigaos*) 10907 # FIXME: we need at least 68020 code to build shared libraries, but 10908 # adding the `-m68020' flag to GCC prevents building anything better, 10909 # like `-m68040'. 10910 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10911 ;; 10912 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10913 # PIC is the default for these OSes. 10914 ;; 10915 mingw* | os2* | pw32*) 10916 # This hack is so that the source file can tell whether it is being 10917 # built for inclusion in a dll (and should export symbols for example). 10918 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10919 ;; 10920 darwin* | rhapsody*) 10921 # PIC is the default on this platform 10922 # Common symbols not allowed in MH_DYLIB files 10923 lt_prog_compiler_pic_CXX='-fno-common' 10924 ;; 10925 *djgpp*) 10926 # DJGPP does not support shared libraries at all 10927 lt_prog_compiler_pic_CXX= 10928 ;; 10929 sysv4*MP*) 10930 if test -d /usr/nec; then 10931 lt_prog_compiler_pic_CXX=-Kconform_pic 10932 fi 10933 ;; 10934 hpux*) 10935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10936 # not for PA HP-UX. 10937 case "$host_cpu" in 10938 hppa*64*|ia64*) 10939 ;; 10940 *) 10941 lt_prog_compiler_pic_CXX='-fPIC' 10942 ;; 10943 esac 10944 ;; 10945 *) 10946 lt_prog_compiler_pic_CXX='-fPIC' 10947 ;; 10948 esac 10949 else 10950 case $host_os in 10951 aix4* | aix5*) 10952 # All AIX code is PIC. 10953 if test "$host_cpu" = ia64; then 10954 # AIX 5 now supports IA64 processor 10955 lt_prog_compiler_static_CXX='-Bstatic' 10956 else 10957 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10958 fi 10959 ;; 10960 chorus*) 10961 case $cc_basename in 10962 cxch68) 10963 # Green Hills C++ Compiler 10964 # _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" 10965 ;; 10966 esac 10967 ;; 10968 dgux*) 10969 case $cc_basename in 10970 ec++) 10971 lt_prog_compiler_pic_CXX='-KPIC' 10972 ;; 10973 ghcx) 10974 # Green Hills C++ Compiler 10975 lt_prog_compiler_pic_CXX='-pic' 10976 ;; 10977 *) 10978 ;; 10979 esac 10980 ;; 10981 freebsd* | kfreebsd*-gnu) 10982 # FreeBSD uses GNU C++ 10983 ;; 10984 hpux9* | hpux10* | hpux11*) 10985 case $cc_basename in 10986 CC) 10987 lt_prog_compiler_wl_CXX='-Wl,' 10988 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10989 if test "$host_cpu" != ia64; then 10990 lt_prog_compiler_pic_CXX='+Z' 10991 fi 10992 ;; 10993 aCC) 10994 lt_prog_compiler_wl_CXX='-Wl,' 10995 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10996 case "$host_cpu" in 10997 hppa*64*|ia64*) 10998 # +Z the default 10999 ;; 11000 *) 11001 lt_prog_compiler_pic_CXX='+Z' 11002 ;; 11003 esac 11004 ;; 11005 *) 11006 ;; 11007 esac 11008 ;; 11009 irix5* | irix6* | nonstopux*) 11010 case $cc_basename in 11011 CC) 11012 lt_prog_compiler_wl_CXX='-Wl,' 11013 lt_prog_compiler_static_CXX='-non_shared' 11014 # CC pic flag -KPIC is the default. 11015 ;; 11016 *) 11017 ;; 11018 esac 11019 ;; 11020 linux*) 11021 case $cc_basename in 11022 KCC) 11023 # KAI C++ Compiler 11024 lt_prog_compiler_wl_CXX='--backend -Wl,' 11025 lt_prog_compiler_pic_CXX='-fPIC' 11026 ;; 11027 icpc) 11028 # Intel C++ 11029 lt_prog_compiler_wl_CXX='-Wl,' 11030 lt_prog_compiler_pic_CXX='-KPIC' 11031 lt_prog_compiler_static_CXX='-static' 11032 ;; 11033 cxx) 11034 # Compaq C++ 11035 # Make sure the PIC flag is empty. It appears that all Alpha 11036 # Linux and Compaq Tru64 Unix objects are PIC. 11037 lt_prog_compiler_pic_CXX= 11038 lt_prog_compiler_static_CXX='-non_shared' 11039 ;; 11040 *) 11041 ;; 11042 esac 11043 ;; 11044 lynxos*) 11045 ;; 11046 m88k*) 11047 ;; 11048 mvs*) 11049 case $cc_basename in 11050 cxx) 11051 lt_prog_compiler_pic_CXX='-W c,exportall' 11052 ;; 11053 *) 11054 ;; 11055 esac 11056 ;; 11057 netbsd*) 11058 ;; 11059 osf3* | osf4* | osf5*) 11060 case $cc_basename in 11061 KCC) 11062 lt_prog_compiler_wl_CXX='--backend -Wl,' 11063 ;; 11064 RCC) 11065 # Rational C++ 2.4.1 11066 lt_prog_compiler_pic_CXX='-pic' 11067 ;; 11068 cxx) 11069 # Digital/Compaq C++ 11070 lt_prog_compiler_wl_CXX='-Wl,' 11071 # Make sure the PIC flag is empty. It appears that all Alpha 11072 # Linux and Compaq Tru64 Unix objects are PIC. 11073 lt_prog_compiler_pic_CXX= 11074 lt_prog_compiler_static_CXX='-non_shared' 11075 ;; 11076 *) 11077 ;; 11078 esac 11079 ;; 11080 psos*) 11081 ;; 11082 sco*) 11083 case $cc_basename in 11084 CC) 11085 lt_prog_compiler_pic_CXX='-fPIC' 11086 ;; 11087 *) 11088 ;; 11089 esac 11090 ;; 11091 solaris*) 11092 case $cc_basename in 11093 CC) 11094 # Sun C++ 4.2, 5.x and Centerline C++ 11095 lt_prog_compiler_pic_CXX='-KPIC' 11096 lt_prog_compiler_static_CXX='-Bstatic' 11097 lt_prog_compiler_wl_CXX='-Qoption ld ' 11098 ;; 11099 gcx) 11100 # Green Hills C++ Compiler 11101 lt_prog_compiler_pic_CXX='-PIC' 11102 ;; 11103 *) 11104 ;; 11105 esac 11106 ;; 11107 sunos4*) 11108 case $cc_basename in 11109 CC) 11110 # Sun C++ 4.x 11111 lt_prog_compiler_pic_CXX='-pic' 11112 lt_prog_compiler_static_CXX='-Bstatic' 11113 ;; 11114 lcc) 11115 # Lucid 11116 lt_prog_compiler_pic_CXX='-pic' 11117 ;; 11118 *) 11119 ;; 11120 esac 11121 ;; 11122 tandem*) 11123 case $cc_basename in 11124 NCC) 11125 # NonStop-UX NCC 3.20 11126 lt_prog_compiler_pic_CXX='-KPIC' 11127 ;; 11128 *) 11129 ;; 11130 esac 11131 ;; 11132 unixware*) 11133 ;; 11134 vxworks*) 11135 ;; 11136 *) 11137 lt_prog_compiler_can_build_shared_CXX=no 11138 ;; 11139 esac 11140 fi 11141 11142echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11143echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11144 11145# 11146# Check to make sure the PIC flag actually works. 11147# 11148if test -n "$lt_prog_compiler_pic_CXX"; then 11149 11150echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11151echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11152if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11153 echo $ECHO_N "(cached) $ECHO_C" >&6 11154else 11155 lt_prog_compiler_pic_works_CXX=no 11156 ac_outfile=conftest.$ac_objext 11157 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11158 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11159 # Insert the option either (1) after the last *FLAGS variable, or 11160 # (2) before a word containing "conftest.", or (3) at the end. 11161 # Note that $ac_compile itself does not contain backslashes and begins 11162 # with a dollar sign (not a hyphen), so the echo should work correctly. 11163 # The option is referenced via a variable to avoid confusing sed. 11164 lt_compile=`echo "$ac_compile" | $SED \ 11165 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11167 -e 's:$: $lt_compiler_flag:'` 11168 (eval echo "\"\$as_me:11168: $lt_compile\"" >&5) 11169 (eval "$lt_compile" 2>conftest.err) 11170 ac_status=$? 11171 cat conftest.err >&5 11172 echo "$as_me:11172: \$? = $ac_status" >&5 11173 if (exit $ac_status) && test -s "$ac_outfile"; then 11174 # The compiler can only warn and ignore the option if not recognized 11175 # So say no if there are warnings 11176 if test ! -s conftest.err; then 11177 lt_prog_compiler_pic_works_CXX=yes 11178 fi 11179 fi 11180 $rm conftest* 11181 11182fi 11183echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11184echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11185 11186if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11187 case $lt_prog_compiler_pic_CXX in 11188 "" | " "*) ;; 11189 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11190 esac 11191else 11192 lt_prog_compiler_pic_CXX= 11193 lt_prog_compiler_can_build_shared_CXX=no 11194fi 11195 11196fi 11197case "$host_os" in 11198 # For platforms which do not support PIC, -DPIC is meaningless: 11199 *djgpp*) 11200 lt_prog_compiler_pic_CXX= 11201 ;; 11202 *) 11203 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11204 ;; 11205esac 11206 11207echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11208echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11209if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11210 echo $ECHO_N "(cached) $ECHO_C" >&6 11211else 11212 lt_cv_prog_compiler_c_o_CXX=no 11213 $rm -r conftest 2>/dev/null 11214 mkdir conftest 11215 cd conftest 11216 mkdir out 11217 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11218 11219 lt_compiler_flag="-o out/conftest2.$ac_objext" 11220 # Insert the option either (1) after the last *FLAGS variable, or 11221 # (2) before a word containing "conftest.", or (3) at the end. 11222 # Note that $ac_compile itself does not contain backslashes and begins 11223 # with a dollar sign (not a hyphen), so the echo should work correctly. 11224 lt_compile=`echo "$ac_compile" | $SED \ 11225 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11227 -e 's:$: $lt_compiler_flag:'` 11228 (eval echo "\"\$as_me:11228: $lt_compile\"" >&5) 11229 (eval "$lt_compile" 2>out/conftest.err) 11230 ac_status=$? 11231 cat out/conftest.err >&5 11232 echo "$as_me:11232: \$? = $ac_status" >&5 11233 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11234 then 11235 # The compiler can only warn and ignore the option if not recognized 11236 # So say no if there are warnings 11237 if test ! -s out/conftest.err; then 11238 lt_cv_prog_compiler_c_o_CXX=yes 11239 fi 11240 fi 11241 chmod u+w . 11242 $rm conftest* 11243 # SGI C++ compiler will create directory out/ii_files/ for 11244 # template instantiation 11245 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11246 $rm out/* && rmdir out 11247 cd .. 11248 rmdir conftest 11249 $rm conftest* 11250 11251fi 11252echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11253echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11254 11255 11256hard_links="nottested" 11257if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11258 # do not overwrite the value of need_locks provided by the user 11259 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11260echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11261 hard_links=yes 11262 $rm conftest* 11263 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11264 touch conftest.a 11265 ln conftest.a conftest.b 2>&5 || hard_links=no 11266 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11267 echo "$as_me:$LINENO: result: $hard_links" >&5 11268echo "${ECHO_T}$hard_links" >&6 11269 if test "$hard_links" = no; then 11270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11271echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11272 need_locks=warn 11273 fi 11274else 11275 need_locks=no 11276fi 11277 11278echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11279echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11280 11281 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11282 case $host_os in 11283 aix4* | aix5*) 11284 # If we're using GNU nm, then we don't want the "-C" option. 11285 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11286 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11287 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' 11288 else 11289 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' 11290 fi 11291 ;; 11292 pw32*) 11293 export_symbols_cmds_CXX="$ltdll_cmds" 11294 ;; 11295 cygwin* | mingw*) 11296 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11297 ;; 11298 *) 11299 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11300 ;; 11301 esac 11302 11303echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11304echo "${ECHO_T}$ld_shlibs_CXX" >&6 11305test "$ld_shlibs_CXX" = no && can_build_shared=no 11306 11307variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11308if test "$GCC" = yes; then 11309 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11310fi 11311 11312# 11313# Do we need to explicitly link libc? 11314# 11315case "x$archive_cmds_need_lc_CXX" in 11316x|xyes) 11317 # Assume -lc should be added 11318 archive_cmds_need_lc_CXX=yes 11319 11320 if test "$enable_shared" = yes && test "$GCC" = yes; then 11321 case $archive_cmds_CXX in 11322 *'~'*) 11323 # FIXME: we may have to deal with multi-command sequences. 11324 ;; 11325 '$CC '*) 11326 # Test whether the compiler implicitly links with -lc since on some 11327 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11328 # to ld, don't add -lc before -lgcc. 11329 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11330echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11331 $rm conftest* 11332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11333 11334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11335 (eval $ac_compile) 2>&5 11336 ac_status=$? 11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11338 (exit $ac_status); } 2>conftest.err; then 11339 soname=conftest 11340 lib=conftest 11341 libobjs=conftest.$ac_objext 11342 deplibs= 11343 wl=$lt_prog_compiler_wl_CXX 11344 compiler_flags=-v 11345 linker_flags=-v 11346 verstring= 11347 output_objdir=. 11348 libname=conftest 11349 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11350 allow_undefined_flag_CXX= 11351 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11352 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11353 ac_status=$? 11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11355 (exit $ac_status); } 11356 then 11357 archive_cmds_need_lc_CXX=no 11358 else 11359 archive_cmds_need_lc_CXX=yes 11360 fi 11361 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11362 else 11363 cat conftest.err 1>&5 11364 fi 11365 $rm conftest* 11366 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11367echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11368 ;; 11369 esac 11370 fi 11371 ;; 11372esac 11373 11374echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11375echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11376library_names_spec= 11377libname_spec='lib$name' 11378soname_spec= 11379shrext_cmds=".so" 11380postinstall_cmds= 11381postuninstall_cmds= 11382finish_cmds= 11383finish_eval= 11384shlibpath_var= 11385shlibpath_overrides_runpath=unknown 11386version_type=none 11387dynamic_linker="$host_os ld.so" 11388sys_lib_dlsearch_path_spec="/lib /usr/lib" 11389if test "$GCC" = yes; then 11390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11391 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11392 # if the path contains ";" then we assume it to be the separator 11393 # otherwise default to the standard path separator (i.e. ":") - it is 11394 # assumed that no part of a normal pathname contains ";" but that should 11395 # okay in the real world where ";" in dirpaths is itself problematic. 11396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11397 else 11398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11399 fi 11400else 11401 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11402fi 11403need_lib_prefix=unknown 11404hardcode_into_libs=no 11405 11406# when you set need_version to no, make sure it does not cause -set_version 11407# flags to be left without arguments 11408need_version=unknown 11409 11410case $host_os in 11411aix3*) 11412 version_type=linux 11413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11414 shlibpath_var=LIBPATH 11415 11416 # AIX 3 has no versioning support, so we append a major version to the name. 11417 soname_spec='${libname}${release}${shared_ext}$major' 11418 ;; 11419 11420aix4* | aix5*) 11421 version_type=linux 11422 need_lib_prefix=no 11423 need_version=no 11424 hardcode_into_libs=yes 11425 if test "$host_cpu" = ia64; then 11426 # AIX 5 supports IA64 11427 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11428 shlibpath_var=LD_LIBRARY_PATH 11429 else 11430 # With GCC up to 2.95.x, collect2 would create an import file 11431 # for dependence libraries. The import file would start with 11432 # the line `#! .'. This would cause the generated library to 11433 # depend on `.', always an invalid library. This was fixed in 11434 # development snapshots of GCC prior to 3.0. 11435 case $host_os in 11436 aix4 | aix4.[01] | aix4.[01].*) 11437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11438 echo ' yes ' 11439 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11440 : 11441 else 11442 can_build_shared=no 11443 fi 11444 ;; 11445 esac 11446 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11447 # soname into executable. Probably we can add versioning support to 11448 # collect2, so additional links can be useful in future. 11449 if test "$aix_use_runtimelinking" = yes; then 11450 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11451 # instead of lib<name>.a to let people know that these are not 11452 # typical AIX shared libraries. 11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11454 else 11455 # We preserve .a as extension for shared libraries through AIX4.2 11456 # and later when we are not doing run time linking. 11457 library_names_spec='${libname}${release}.a $libname.a' 11458 soname_spec='${libname}${release}${shared_ext}$major' 11459 fi 11460 shlibpath_var=LIBPATH 11461 fi 11462 ;; 11463 11464amigaos*) 11465 library_names_spec='$libname.ixlibrary $libname.a' 11466 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11467 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' 11468 ;; 11469 11470beos*) 11471 library_names_spec='${libname}${shared_ext}' 11472 dynamic_linker="$host_os ld.so" 11473 shlibpath_var=LIBRARY_PATH 11474 ;; 11475 11476bsdi4*) 11477 version_type=linux 11478 need_version=no 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11482 shlibpath_var=LD_LIBRARY_PATH 11483 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11484 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11485 # the default ld.so.conf also contains /usr/contrib/lib and 11486 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11487 # libtool to hard-code these into programs 11488 ;; 11489 11490cygwin* | mingw* | pw32*) 11491 version_type=windows 11492 shrext_cmds=".dll" 11493 need_version=no 11494 need_lib_prefix=no 11495 11496 case $GCC,$host_os in 11497 yes,cygwin* | yes,mingw* | yes,pw32*) 11498 library_names_spec='$libname.dll.a' 11499 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11500 postinstall_cmds='base_file=`basename \${file}`~ 11501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11502 dldir=$destdir/`dirname \$dlpath`~ 11503 test -d \$dldir || mkdir -p \$dldir~ 11504 $install_prog $dir/$dlname \$dldir/$dlname' 11505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11506 dlpath=$dir/\$dldll~ 11507 $rm \$dlpath' 11508 shlibpath_overrides_runpath=yes 11509 11510 case $host_os in 11511 cygwin*) 11512 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11513 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11514 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11515 ;; 11516 mingw*) 11517 # MinGW DLLs use traditional 'lib' prefix 11518 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11519 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11520 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11521 # It is most probably a Windows format PATH printed by 11522 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11523 # path with ; separators, and with drive letters. We can handle the 11524 # drive letters (cygwin fileutils understands them), so leave them, 11525 # especially as we might pass files found there to a mingw objdump, 11526 # which wouldn't understand a cygwinified path. Ahh. 11527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11528 else 11529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11530 fi 11531 ;; 11532 pw32*) 11533 # pw32 DLLs use 'pw' prefix rather than 'lib' 11534 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 11535 ;; 11536 esac 11537 ;; 11538 11539 *) 11540 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11541 ;; 11542 esac 11543 dynamic_linker='Win32 ld.exe' 11544 # FIXME: first we should search . and the directory the executable is in 11545 shlibpath_var=PATH 11546 ;; 11547 11548darwin* | rhapsody*) 11549 dynamic_linker="$host_os dyld" 11550 version_type=darwin 11551 need_lib_prefix=no 11552 need_version=no 11553 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11554 soname_spec='${libname}${release}${major}$shared_ext' 11555 shlibpath_overrides_runpath=yes 11556 shlibpath_var=DYLD_LIBRARY_PATH 11557 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 11558 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11559 if test "$GCC" = yes; then 11560 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"` 11561 else 11562 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11563 fi 11564 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11565 ;; 11566 11567dgux*) 11568 version_type=linux 11569 need_lib_prefix=no 11570 need_version=no 11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11572 soname_spec='${libname}${release}${shared_ext}$major' 11573 shlibpath_var=LD_LIBRARY_PATH 11574 ;; 11575 11576freebsd1*) 11577 dynamic_linker=no 11578 ;; 11579 11580kfreebsd*-gnu) 11581 version_type=linux 11582 need_lib_prefix=no 11583 need_version=no 11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11585 soname_spec='${libname}${release}${shared_ext}$major' 11586 shlibpath_var=LD_LIBRARY_PATH 11587 shlibpath_overrides_runpath=no 11588 hardcode_into_libs=yes 11589 dynamic_linker='GNU ld.so' 11590 ;; 11591 11592freebsd*) 11593 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 11594 version_type=freebsd-$objformat 11595 case $version_type in 11596 freebsd-elf*) 11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11598 need_version=no 11599 need_lib_prefix=no 11600 ;; 11601 freebsd-*) 11602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11603 need_version=yes 11604 ;; 11605 esac 11606 shlibpath_var=LD_LIBRARY_PATH 11607 case $host_os in 11608 freebsd2*) 11609 shlibpath_overrides_runpath=yes 11610 ;; 11611 freebsd3.01* | freebsdelf3.01*) 11612 shlibpath_overrides_runpath=yes 11613 hardcode_into_libs=yes 11614 ;; 11615 *) # from 3.2 on 11616 shlibpath_overrides_runpath=no 11617 hardcode_into_libs=yes 11618 ;; 11619 esac 11620 ;; 11621 11622gnu*) 11623 version_type=linux 11624 need_lib_prefix=no 11625 need_version=no 11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11627 soname_spec='${libname}${release}${shared_ext}$major' 11628 shlibpath_var=LD_LIBRARY_PATH 11629 hardcode_into_libs=yes 11630 ;; 11631 11632hpux9* | hpux10* | hpux11*) 11633 # Give a soname corresponding to the major version so that dld.sl refuses to 11634 # link against other versions. 11635 version_type=sunos 11636 need_lib_prefix=no 11637 need_version=no 11638 case "$host_cpu" in 11639 ia64*) 11640 shrext_cmds='.so' 11641 hardcode_into_libs=yes 11642 dynamic_linker="$host_os dld.so" 11643 shlibpath_var=LD_LIBRARY_PATH 11644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11646 soname_spec='${libname}${release}${shared_ext}$major' 11647 if test "X$HPUX_IA64_MODE" = X32; then 11648 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11649 else 11650 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11651 fi 11652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11653 ;; 11654 hppa*64*) 11655 shrext_cmds='.sl' 11656 hardcode_into_libs=yes 11657 dynamic_linker="$host_os dld.sl" 11658 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11661 soname_spec='${libname}${release}${shared_ext}$major' 11662 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11664 ;; 11665 *) 11666 shrext_cmds='.sl' 11667 dynamic_linker="$host_os dld.sl" 11668 shlibpath_var=SHLIB_PATH 11669 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11671 soname_spec='${libname}${release}${shared_ext}$major' 11672 ;; 11673 esac 11674 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11675 postinstall_cmds='chmod 555 $lib' 11676 ;; 11677 11678irix5* | irix6* | nonstopux*) 11679 case $host_os in 11680 nonstopux*) version_type=nonstopux ;; 11681 *) 11682 if test "$lt_cv_prog_gnu_ld" = yes; then 11683 version_type=linux 11684 else 11685 version_type=irix 11686 fi ;; 11687 esac 11688 need_lib_prefix=no 11689 need_version=no 11690 soname_spec='${libname}${release}${shared_ext}$major' 11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11692 case $host_os in 11693 irix5* | nonstopux*) 11694 libsuff= shlibsuff= 11695 ;; 11696 *) 11697 case $LD in # libtool.m4 will add one of these switches to LD 11698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11699 libsuff= shlibsuff= libmagic=32-bit;; 11700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11701 libsuff=32 shlibsuff=N32 libmagic=N32;; 11702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11703 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11704 *) libsuff= shlibsuff= libmagic=never-match;; 11705 esac 11706 ;; 11707 esac 11708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11709 shlibpath_overrides_runpath=no 11710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11712 hardcode_into_libs=yes 11713 ;; 11714 11715# No shared lib support for Linux oldld, aout, or coff. 11716linux*oldld* | linux*aout* | linux*coff*) 11717 dynamic_linker=no 11718 ;; 11719 11720# This must be Linux ELF. 11721linux*) 11722 version_type=linux 11723 need_lib_prefix=no 11724 need_version=no 11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11726 soname_spec='${libname}${release}${shared_ext}$major' 11727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11728 shlibpath_var=LD_LIBRARY_PATH 11729 shlibpath_overrides_runpath=no 11730 # This implies no fast_install, which is unacceptable. 11731 # Some rework will be needed to allow for fast_install 11732 # before this can be enabled. 11733 hardcode_into_libs=yes 11734 11735 # find out which ABI we are using 11736 libsuff= 11737 case "$host_cpu" in 11738 x86_64*|s390x*|powerpc64*) 11739 echo '#line 11739 "configure"' > conftest.$ac_ext 11740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11741 (eval $ac_compile) 2>&5 11742 ac_status=$? 11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11744 (exit $ac_status); }; then 11745 case `/usr/bin/file conftest.$ac_objext` in 11746 *64-bit*) 11747 libsuff=64 11748 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 11749 ;; 11750 esac 11751 fi 11752 rm -rf conftest* 11753 ;; 11754 esac 11755 11756 # Append ld.so.conf contents to the search path 11757 if test -f /etc/ld.so.conf; then 11758 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11759 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 11760 fi 11761 11762 # We used to test for /lib/ld.so.1 and disable shared libraries on 11763 # powerpc, because MkLinux only supported shared libraries with the 11764 # GNU dynamic linker. Since this was broken with cross compilers, 11765 # most powerpc-linux boxes support dynamic linking these days and 11766 # people can always --disable-shared, the test was removed, and we 11767 # assume the GNU/Linux dynamic linker is in use. 11768 dynamic_linker='GNU/Linux ld.so' 11769 ;; 11770 11771knetbsd*-gnu) 11772 version_type=linux 11773 need_lib_prefix=no 11774 need_version=no 11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11776 soname_spec='${libname}${release}${shared_ext}$major' 11777 shlibpath_var=LD_LIBRARY_PATH 11778 shlibpath_overrides_runpath=no 11779 hardcode_into_libs=yes 11780 dynamic_linker='GNU ld.so' 11781 ;; 11782 11783netbsd*) 11784 version_type=sunos 11785 need_lib_prefix=no 11786 need_version=no 11787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11790 dynamic_linker='NetBSD (a.out) ld.so' 11791 else 11792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11793 soname_spec='${libname}${release}${shared_ext}$major' 11794 dynamic_linker='NetBSD ld.elf_so' 11795 fi 11796 shlibpath_var=LD_LIBRARY_PATH 11797 shlibpath_overrides_runpath=yes 11798 hardcode_into_libs=yes 11799 ;; 11800 11801newsos6) 11802 version_type=linux 11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11804 shlibpath_var=LD_LIBRARY_PATH 11805 shlibpath_overrides_runpath=yes 11806 ;; 11807 11808nto-qnx*) 11809 version_type=linux 11810 need_lib_prefix=no 11811 need_version=no 11812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11813 soname_spec='${libname}${release}${shared_ext}$major' 11814 shlibpath_var=LD_LIBRARY_PATH 11815 shlibpath_overrides_runpath=yes 11816 ;; 11817 11818openbsd*) 11819 version_type=sunos 11820 need_lib_prefix=no 11821 need_version=yes 11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11824 shlibpath_var=LD_LIBRARY_PATH 11825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11826 case $host_os in 11827 openbsd2.[89] | openbsd2.[89].*) 11828 shlibpath_overrides_runpath=no 11829 ;; 11830 *) 11831 shlibpath_overrides_runpath=yes 11832 ;; 11833 esac 11834 else 11835 shlibpath_overrides_runpath=yes 11836 fi 11837 ;; 11838 11839os2*) 11840 libname_spec='$name' 11841 shrext_cmds=".dll" 11842 need_lib_prefix=no 11843 library_names_spec='$libname${shared_ext} $libname.a' 11844 dynamic_linker='OS/2 ld.exe' 11845 shlibpath_var=LIBPATH 11846 ;; 11847 11848osf3* | osf4* | osf5*) 11849 version_type=osf 11850 need_lib_prefix=no 11851 need_version=no 11852 soname_spec='${libname}${release}${shared_ext}$major' 11853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11854 shlibpath_var=LD_LIBRARY_PATH 11855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11857 ;; 11858 11859sco3.2v5*) 11860 version_type=osf 11861 soname_spec='${libname}${release}${shared_ext}$major' 11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11863 shlibpath_var=LD_LIBRARY_PATH 11864 ;; 11865 11866solaris*) 11867 version_type=linux 11868 need_lib_prefix=no 11869 need_version=no 11870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11871 soname_spec='${libname}${release}${shared_ext}$major' 11872 shlibpath_var=LD_LIBRARY_PATH 11873 shlibpath_overrides_runpath=yes 11874 hardcode_into_libs=yes 11875 # ldd complains unless libraries are executable 11876 postinstall_cmds='chmod +x $lib' 11877 ;; 11878 11879sunos4*) 11880 version_type=sunos 11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11882 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11883 shlibpath_var=LD_LIBRARY_PATH 11884 shlibpath_overrides_runpath=yes 11885 if test "$with_gnu_ld" = yes; then 11886 need_lib_prefix=no 11887 fi 11888 need_version=yes 11889 ;; 11890 11891sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11892 version_type=linux 11893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11894 soname_spec='${libname}${release}${shared_ext}$major' 11895 shlibpath_var=LD_LIBRARY_PATH 11896 case $host_vendor in 11897 sni) 11898 shlibpath_overrides_runpath=no 11899 need_lib_prefix=no 11900 export_dynamic_flag_spec='${wl}-Blargedynsym' 11901 runpath_var=LD_RUN_PATH 11902 ;; 11903 siemens) 11904 need_lib_prefix=no 11905 ;; 11906 motorola) 11907 need_lib_prefix=no 11908 need_version=no 11909 shlibpath_overrides_runpath=no 11910 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11911 ;; 11912 esac 11913 ;; 11914 11915sysv4*MP*) 11916 if test -d /usr/nec ;then 11917 version_type=linux 11918 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11919 soname_spec='$libname${shared_ext}.$major' 11920 shlibpath_var=LD_LIBRARY_PATH 11921 fi 11922 ;; 11923 11924uts4*) 11925 version_type=linux 11926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11927 soname_spec='${libname}${release}${shared_ext}$major' 11928 shlibpath_var=LD_LIBRARY_PATH 11929 ;; 11930 11931*) 11932 dynamic_linker=no 11933 ;; 11934esac 11935echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11936echo "${ECHO_T}$dynamic_linker" >&6 11937test "$dynamic_linker" = no && can_build_shared=no 11938 11939echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11940echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11941hardcode_action_CXX= 11942if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11943 test -n "$runpath_var CXX" || \ 11944 test "X$hardcode_automatic_CXX"="Xyes" ; then 11945 11946 # We can hardcode non-existant directories. 11947 if test "$hardcode_direct_CXX" != no && 11948 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11949 # have to relink, otherwise we might link with an installed library 11950 # when we should be linking with a yet-to-be-installed one 11951 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11952 test "$hardcode_minus_L_CXX" != no; then 11953 # Linking always hardcodes the temporary library directory. 11954 hardcode_action_CXX=relink 11955 else 11956 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11957 hardcode_action_CXX=immediate 11958 fi 11959else 11960 # We cannot hardcode anything, or else we can only hardcode existing 11961 # directories. 11962 hardcode_action_CXX=unsupported 11963fi 11964echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11965echo "${ECHO_T}$hardcode_action_CXX" >&6 11966 11967if test "$hardcode_action_CXX" = relink; then 11968 # Fast installation is not supported 11969 enable_fast_install=no 11970elif test "$shlibpath_overrides_runpath" = yes || 11971 test "$enable_shared" = no; then 11972 # Fast installation is not necessary 11973 enable_fast_install=needless 11974fi 11975 11976striplib= 11977old_striplib= 11978echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11979echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11980if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11981 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11982 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11983 echo "$as_me:$LINENO: result: yes" >&5 11984echo "${ECHO_T}yes" >&6 11985else 11986# FIXME - insert some real tests, host_os isn't really good enough 11987 case $host_os in 11988 darwin*) 11989 if test -n "$STRIP" ; then 11990 striplib="$STRIP -x" 11991 echo "$as_me:$LINENO: result: yes" >&5 11992echo "${ECHO_T}yes" >&6 11993 else 11994 echo "$as_me:$LINENO: result: no" >&5 11995echo "${ECHO_T}no" >&6 11996fi 11997 ;; 11998 *) 11999 echo "$as_me:$LINENO: result: no" >&5 12000echo "${ECHO_T}no" >&6 12001 ;; 12002 esac 12003fi 12004 12005if test "x$enable_dlopen" != xyes; then 12006 enable_dlopen=unknown 12007 enable_dlopen_self=unknown 12008 enable_dlopen_self_static=unknown 12009else 12010 lt_cv_dlopen=no 12011 lt_cv_dlopen_libs= 12012 12013 case $host_os in 12014 beos*) 12015 lt_cv_dlopen="load_add_on" 12016 lt_cv_dlopen_libs= 12017 lt_cv_dlopen_self=yes 12018 ;; 12019 12020 mingw* | pw32*) 12021 lt_cv_dlopen="LoadLibrary" 12022 lt_cv_dlopen_libs= 12023 ;; 12024 12025 cygwin*) 12026 lt_cv_dlopen="dlopen" 12027 lt_cv_dlopen_libs= 12028 ;; 12029 12030 darwin*) 12031 # if libdl is installed we need to link against it 12032 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12033echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12034if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12035 echo $ECHO_N "(cached) $ECHO_C" >&6 12036else 12037 ac_check_lib_save_LIBS=$LIBS 12038LIBS="-ldl $LIBS" 12039cat >conftest.$ac_ext <<_ACEOF 12040/* confdefs.h. */ 12041_ACEOF 12042cat confdefs.h >>conftest.$ac_ext 12043cat >>conftest.$ac_ext <<_ACEOF 12044/* end confdefs.h. */ 12045 12046/* Override any gcc2 internal prototype to avoid an error. */ 12047#ifdef __cplusplus 12048extern "C" 12049#endif 12050/* We use char because int might match the return type of a gcc2 12051 builtin and then its argument prototype would still apply. */ 12052char dlopen (); 12053int 12054main () 12055{ 12056dlopen (); 12057 ; 12058 return 0; 12059} 12060_ACEOF 12061rm -f conftest.$ac_objext conftest$ac_exeext 12062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12063 (eval $ac_link) 2>conftest.er1 12064 ac_status=$? 12065 grep -v '^ *+' conftest.er1 >conftest.err 12066 rm -f conftest.er1 12067 cat conftest.err >&5 12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12069 (exit $ac_status); } && 12070 { ac_try='test -z "$ac_cxx_werror_flag" 12071 || test ! -s conftest.err' 12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12073 (eval $ac_try) 2>&5 12074 ac_status=$? 12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12076 (exit $ac_status); }; } && 12077 { ac_try='test -s conftest$ac_exeext' 12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12079 (eval $ac_try) 2>&5 12080 ac_status=$? 12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12082 (exit $ac_status); }; }; then 12083 ac_cv_lib_dl_dlopen=yes 12084else 12085 echo "$as_me: failed program was:" >&5 12086sed 's/^/| /' conftest.$ac_ext >&5 12087 12088ac_cv_lib_dl_dlopen=no 12089fi 12090rm -f conftest.err conftest.$ac_objext \ 12091 conftest$ac_exeext conftest.$ac_ext 12092LIBS=$ac_check_lib_save_LIBS 12093fi 12094echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12095echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12096if test $ac_cv_lib_dl_dlopen = yes; then 12097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12098else 12099 12100 lt_cv_dlopen="dyld" 12101 lt_cv_dlopen_libs= 12102 lt_cv_dlopen_self=yes 12103 12104fi 12105 12106 ;; 12107 12108 *) 12109 echo "$as_me:$LINENO: checking for shl_load" >&5 12110echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12111if test "${ac_cv_func_shl_load+set}" = set; then 12112 echo $ECHO_N "(cached) $ECHO_C" >&6 12113else 12114 cat >conftest.$ac_ext <<_ACEOF 12115/* confdefs.h. */ 12116_ACEOF 12117cat confdefs.h >>conftest.$ac_ext 12118cat >>conftest.$ac_ext <<_ACEOF 12119/* end confdefs.h. */ 12120/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12121 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12122#define shl_load innocuous_shl_load 12123 12124/* System header to define __stub macros and hopefully few prototypes, 12125 which can conflict with char shl_load (); below. 12126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12127 <limits.h> exists even on freestanding compilers. */ 12128 12129#ifdef __STDC__ 12130# include <limits.h> 12131#else 12132# include <assert.h> 12133#endif 12134 12135#undef shl_load 12136 12137/* Override any gcc2 internal prototype to avoid an error. */ 12138#ifdef __cplusplus 12139extern "C" 12140{ 12141#endif 12142/* We use char because int might match the return type of a gcc2 12143 builtin and then its argument prototype would still apply. */ 12144char shl_load (); 12145/* The GNU C library defines this for functions which it implements 12146 to always fail with ENOSYS. Some functions are actually named 12147 something starting with __ and the normal name is an alias. */ 12148#if defined (__stub_shl_load) || defined (__stub___shl_load) 12149choke me 12150#else 12151char (*f) () = shl_load; 12152#endif 12153#ifdef __cplusplus 12154} 12155#endif 12156 12157int 12158main () 12159{ 12160return f != shl_load; 12161 ; 12162 return 0; 12163} 12164_ACEOF 12165rm -f conftest.$ac_objext conftest$ac_exeext 12166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12167 (eval $ac_link) 2>conftest.er1 12168 ac_status=$? 12169 grep -v '^ *+' conftest.er1 >conftest.err 12170 rm -f conftest.er1 12171 cat conftest.err >&5 12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12173 (exit $ac_status); } && 12174 { ac_try='test -z "$ac_cxx_werror_flag" 12175 || test ! -s conftest.err' 12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12177 (eval $ac_try) 2>&5 12178 ac_status=$? 12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12180 (exit $ac_status); }; } && 12181 { ac_try='test -s conftest$ac_exeext' 12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12183 (eval $ac_try) 2>&5 12184 ac_status=$? 12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12186 (exit $ac_status); }; }; then 12187 ac_cv_func_shl_load=yes 12188else 12189 echo "$as_me: failed program was:" >&5 12190sed 's/^/| /' conftest.$ac_ext >&5 12191 12192ac_cv_func_shl_load=no 12193fi 12194rm -f conftest.err conftest.$ac_objext \ 12195 conftest$ac_exeext conftest.$ac_ext 12196fi 12197echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12198echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12199if test $ac_cv_func_shl_load = yes; then 12200 lt_cv_dlopen="shl_load" 12201else 12202 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12203echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12204if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12205 echo $ECHO_N "(cached) $ECHO_C" >&6 12206else 12207 ac_check_lib_save_LIBS=$LIBS 12208LIBS="-ldld $LIBS" 12209cat >conftest.$ac_ext <<_ACEOF 12210/* confdefs.h. */ 12211_ACEOF 12212cat confdefs.h >>conftest.$ac_ext 12213cat >>conftest.$ac_ext <<_ACEOF 12214/* end confdefs.h. */ 12215 12216/* Override any gcc2 internal prototype to avoid an error. */ 12217#ifdef __cplusplus 12218extern "C" 12219#endif 12220/* We use char because int might match the return type of a gcc2 12221 builtin and then its argument prototype would still apply. */ 12222char shl_load (); 12223int 12224main () 12225{ 12226shl_load (); 12227 ; 12228 return 0; 12229} 12230_ACEOF 12231rm -f conftest.$ac_objext conftest$ac_exeext 12232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12233 (eval $ac_link) 2>conftest.er1 12234 ac_status=$? 12235 grep -v '^ *+' conftest.er1 >conftest.err 12236 rm -f conftest.er1 12237 cat conftest.err >&5 12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12239 (exit $ac_status); } && 12240 { ac_try='test -z "$ac_cxx_werror_flag" 12241 || test ! -s conftest.err' 12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12243 (eval $ac_try) 2>&5 12244 ac_status=$? 12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12246 (exit $ac_status); }; } && 12247 { ac_try='test -s conftest$ac_exeext' 12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12249 (eval $ac_try) 2>&5 12250 ac_status=$? 12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12252 (exit $ac_status); }; }; then 12253 ac_cv_lib_dld_shl_load=yes 12254else 12255 echo "$as_me: failed program was:" >&5 12256sed 's/^/| /' conftest.$ac_ext >&5 12257 12258ac_cv_lib_dld_shl_load=no 12259fi 12260rm -f conftest.err conftest.$ac_objext \ 12261 conftest$ac_exeext conftest.$ac_ext 12262LIBS=$ac_check_lib_save_LIBS 12263fi 12264echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12265echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12266if test $ac_cv_lib_dld_shl_load = yes; then 12267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12268else 12269 echo "$as_me:$LINENO: checking for dlopen" >&5 12270echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12271if test "${ac_cv_func_dlopen+set}" = set; then 12272 echo $ECHO_N "(cached) $ECHO_C" >&6 12273else 12274 cat >conftest.$ac_ext <<_ACEOF 12275/* confdefs.h. */ 12276_ACEOF 12277cat confdefs.h >>conftest.$ac_ext 12278cat >>conftest.$ac_ext <<_ACEOF 12279/* end confdefs.h. */ 12280/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12281 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12282#define dlopen innocuous_dlopen 12283 12284/* System header to define __stub macros and hopefully few prototypes, 12285 which can conflict with char dlopen (); below. 12286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12287 <limits.h> exists even on freestanding compilers. */ 12288 12289#ifdef __STDC__ 12290# include <limits.h> 12291#else 12292# include <assert.h> 12293#endif 12294 12295#undef dlopen 12296 12297/* Override any gcc2 internal prototype to avoid an error. */ 12298#ifdef __cplusplus 12299extern "C" 12300{ 12301#endif 12302/* We use char because int might match the return type of a gcc2 12303 builtin and then its argument prototype would still apply. */ 12304char dlopen (); 12305/* The GNU C library defines this for functions which it implements 12306 to always fail with ENOSYS. Some functions are actually named 12307 something starting with __ and the normal name is an alias. */ 12308#if defined (__stub_dlopen) || defined (__stub___dlopen) 12309choke me 12310#else 12311char (*f) () = dlopen; 12312#endif 12313#ifdef __cplusplus 12314} 12315#endif 12316 12317int 12318main () 12319{ 12320return f != dlopen; 12321 ; 12322 return 0; 12323} 12324_ACEOF 12325rm -f conftest.$ac_objext conftest$ac_exeext 12326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12327 (eval $ac_link) 2>conftest.er1 12328 ac_status=$? 12329 grep -v '^ *+' conftest.er1 >conftest.err 12330 rm -f conftest.er1 12331 cat conftest.err >&5 12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12333 (exit $ac_status); } && 12334 { ac_try='test -z "$ac_cxx_werror_flag" 12335 || test ! -s conftest.err' 12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12337 (eval $ac_try) 2>&5 12338 ac_status=$? 12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12340 (exit $ac_status); }; } && 12341 { ac_try='test -s conftest$ac_exeext' 12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12343 (eval $ac_try) 2>&5 12344 ac_status=$? 12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12346 (exit $ac_status); }; }; then 12347 ac_cv_func_dlopen=yes 12348else 12349 echo "$as_me: failed program was:" >&5 12350sed 's/^/| /' conftest.$ac_ext >&5 12351 12352ac_cv_func_dlopen=no 12353fi 12354rm -f conftest.err conftest.$ac_objext \ 12355 conftest$ac_exeext conftest.$ac_ext 12356fi 12357echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12358echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12359if test $ac_cv_func_dlopen = yes; then 12360 lt_cv_dlopen="dlopen" 12361else 12362 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12363echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12364if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12365 echo $ECHO_N "(cached) $ECHO_C" >&6 12366else 12367 ac_check_lib_save_LIBS=$LIBS 12368LIBS="-ldl $LIBS" 12369cat >conftest.$ac_ext <<_ACEOF 12370/* confdefs.h. */ 12371_ACEOF 12372cat confdefs.h >>conftest.$ac_ext 12373cat >>conftest.$ac_ext <<_ACEOF 12374/* end confdefs.h. */ 12375 12376/* Override any gcc2 internal prototype to avoid an error. */ 12377#ifdef __cplusplus 12378extern "C" 12379#endif 12380/* We use char because int might match the return type of a gcc2 12381 builtin and then its argument prototype would still apply. */ 12382char dlopen (); 12383int 12384main () 12385{ 12386dlopen (); 12387 ; 12388 return 0; 12389} 12390_ACEOF 12391rm -f conftest.$ac_objext conftest$ac_exeext 12392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12393 (eval $ac_link) 2>conftest.er1 12394 ac_status=$? 12395 grep -v '^ *+' conftest.er1 >conftest.err 12396 rm -f conftest.er1 12397 cat conftest.err >&5 12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12399 (exit $ac_status); } && 12400 { ac_try='test -z "$ac_cxx_werror_flag" 12401 || test ! -s conftest.err' 12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12403 (eval $ac_try) 2>&5 12404 ac_status=$? 12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); }; } && 12407 { ac_try='test -s conftest$ac_exeext' 12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12409 (eval $ac_try) 2>&5 12410 ac_status=$? 12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12412 (exit $ac_status); }; }; then 12413 ac_cv_lib_dl_dlopen=yes 12414else 12415 echo "$as_me: failed program was:" >&5 12416sed 's/^/| /' conftest.$ac_ext >&5 12417 12418ac_cv_lib_dl_dlopen=no 12419fi 12420rm -f conftest.err conftest.$ac_objext \ 12421 conftest$ac_exeext conftest.$ac_ext 12422LIBS=$ac_check_lib_save_LIBS 12423fi 12424echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12425echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12426if test $ac_cv_lib_dl_dlopen = yes; then 12427 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12428else 12429 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12430echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12431if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12432 echo $ECHO_N "(cached) $ECHO_C" >&6 12433else 12434 ac_check_lib_save_LIBS=$LIBS 12435LIBS="-lsvld $LIBS" 12436cat >conftest.$ac_ext <<_ACEOF 12437/* confdefs.h. */ 12438_ACEOF 12439cat confdefs.h >>conftest.$ac_ext 12440cat >>conftest.$ac_ext <<_ACEOF 12441/* end confdefs.h. */ 12442 12443/* Override any gcc2 internal prototype to avoid an error. */ 12444#ifdef __cplusplus 12445extern "C" 12446#endif 12447/* We use char because int might match the return type of a gcc2 12448 builtin and then its argument prototype would still apply. */ 12449char dlopen (); 12450int 12451main () 12452{ 12453dlopen (); 12454 ; 12455 return 0; 12456} 12457_ACEOF 12458rm -f conftest.$ac_objext conftest$ac_exeext 12459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12460 (eval $ac_link) 2>conftest.er1 12461 ac_status=$? 12462 grep -v '^ *+' conftest.er1 >conftest.err 12463 rm -f conftest.er1 12464 cat conftest.err >&5 12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12466 (exit $ac_status); } && 12467 { ac_try='test -z "$ac_cxx_werror_flag" 12468 || test ! -s conftest.err' 12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12470 (eval $ac_try) 2>&5 12471 ac_status=$? 12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12473 (exit $ac_status); }; } && 12474 { ac_try='test -s conftest$ac_exeext' 12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12476 (eval $ac_try) 2>&5 12477 ac_status=$? 12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12479 (exit $ac_status); }; }; then 12480 ac_cv_lib_svld_dlopen=yes 12481else 12482 echo "$as_me: failed program was:" >&5 12483sed 's/^/| /' conftest.$ac_ext >&5 12484 12485ac_cv_lib_svld_dlopen=no 12486fi 12487rm -f conftest.err conftest.$ac_objext \ 12488 conftest$ac_exeext conftest.$ac_ext 12489LIBS=$ac_check_lib_save_LIBS 12490fi 12491echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12492echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12493if test $ac_cv_lib_svld_dlopen = yes; then 12494 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12495else 12496 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12497echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12498if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12499 echo $ECHO_N "(cached) $ECHO_C" >&6 12500else 12501 ac_check_lib_save_LIBS=$LIBS 12502LIBS="-ldld $LIBS" 12503cat >conftest.$ac_ext <<_ACEOF 12504/* confdefs.h. */ 12505_ACEOF 12506cat confdefs.h >>conftest.$ac_ext 12507cat >>conftest.$ac_ext <<_ACEOF 12508/* end confdefs.h. */ 12509 12510/* Override any gcc2 internal prototype to avoid an error. */ 12511#ifdef __cplusplus 12512extern "C" 12513#endif 12514/* We use char because int might match the return type of a gcc2 12515 builtin and then its argument prototype would still apply. */ 12516char dld_link (); 12517int 12518main () 12519{ 12520dld_link (); 12521 ; 12522 return 0; 12523} 12524_ACEOF 12525rm -f conftest.$ac_objext conftest$ac_exeext 12526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12527 (eval $ac_link) 2>conftest.er1 12528 ac_status=$? 12529 grep -v '^ *+' conftest.er1 >conftest.err 12530 rm -f conftest.er1 12531 cat conftest.err >&5 12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12533 (exit $ac_status); } && 12534 { ac_try='test -z "$ac_cxx_werror_flag" 12535 || test ! -s conftest.err' 12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12537 (eval $ac_try) 2>&5 12538 ac_status=$? 12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12540 (exit $ac_status); }; } && 12541 { ac_try='test -s conftest$ac_exeext' 12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12543 (eval $ac_try) 2>&5 12544 ac_status=$? 12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12546 (exit $ac_status); }; }; then 12547 ac_cv_lib_dld_dld_link=yes 12548else 12549 echo "$as_me: failed program was:" >&5 12550sed 's/^/| /' conftest.$ac_ext >&5 12551 12552ac_cv_lib_dld_dld_link=no 12553fi 12554rm -f conftest.err conftest.$ac_objext \ 12555 conftest$ac_exeext conftest.$ac_ext 12556LIBS=$ac_check_lib_save_LIBS 12557fi 12558echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12559echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12560if test $ac_cv_lib_dld_dld_link = yes; then 12561 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12562fi 12563 12564 12565fi 12566 12567 12568fi 12569 12570 12571fi 12572 12573 12574fi 12575 12576 12577fi 12578 12579 ;; 12580 esac 12581 12582 if test "x$lt_cv_dlopen" != xno; then 12583 enable_dlopen=yes 12584 else 12585 enable_dlopen=no 12586 fi 12587 12588 case $lt_cv_dlopen in 12589 dlopen) 12590 save_CPPFLAGS="$CPPFLAGS" 12591 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12592 12593 save_LDFLAGS="$LDFLAGS" 12594 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12595 12596 save_LIBS="$LIBS" 12597 LIBS="$lt_cv_dlopen_libs $LIBS" 12598 12599 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12600echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12601if test "${lt_cv_dlopen_self+set}" = set; then 12602 echo $ECHO_N "(cached) $ECHO_C" >&6 12603else 12604 if test "$cross_compiling" = yes; then : 12605 lt_cv_dlopen_self=cross 12606else 12607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12608 lt_status=$lt_dlunknown 12609 cat > conftest.$ac_ext <<EOF 12610#line 12610 "configure" 12611#include "confdefs.h" 12612 12613#if HAVE_DLFCN_H 12614#include <dlfcn.h> 12615#endif 12616 12617#include <stdio.h> 12618 12619#ifdef RTLD_GLOBAL 12620# define LT_DLGLOBAL RTLD_GLOBAL 12621#else 12622# ifdef DL_GLOBAL 12623# define LT_DLGLOBAL DL_GLOBAL 12624# else 12625# define LT_DLGLOBAL 0 12626# endif 12627#endif 12628 12629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12630 find out it does not work in some platform. */ 12631#ifndef LT_DLLAZY_OR_NOW 12632# ifdef RTLD_LAZY 12633# define LT_DLLAZY_OR_NOW RTLD_LAZY 12634# else 12635# ifdef DL_LAZY 12636# define LT_DLLAZY_OR_NOW DL_LAZY 12637# else 12638# ifdef RTLD_NOW 12639# define LT_DLLAZY_OR_NOW RTLD_NOW 12640# else 12641# ifdef DL_NOW 12642# define LT_DLLAZY_OR_NOW DL_NOW 12643# else 12644# define LT_DLLAZY_OR_NOW 0 12645# endif 12646# endif 12647# endif 12648# endif 12649#endif 12650 12651#ifdef __cplusplus 12652extern "C" void exit (int); 12653#endif 12654 12655void fnord() { int i=42;} 12656int main () 12657{ 12658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12659 int status = $lt_dlunknown; 12660 12661 if (self) 12662 { 12663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12665 /* dlclose (self); */ 12666 } 12667 12668 exit (status); 12669} 12670EOF 12671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12672 (eval $ac_link) 2>&5 12673 ac_status=$? 12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12676 (./conftest; exit; ) 2>/dev/null 12677 lt_status=$? 12678 case x$lt_status in 12679 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12680 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12681 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12682 esac 12683 else : 12684 # compilation failed 12685 lt_cv_dlopen_self=no 12686 fi 12687fi 12688rm -fr conftest* 12689 12690 12691fi 12692echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12693echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12694 12695 if test "x$lt_cv_dlopen_self" = xyes; then 12696 LDFLAGS="$LDFLAGS $link_static_flag" 12697 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12698echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12699if test "${lt_cv_dlopen_self_static+set}" = set; then 12700 echo $ECHO_N "(cached) $ECHO_C" >&6 12701else 12702 if test "$cross_compiling" = yes; then : 12703 lt_cv_dlopen_self_static=cross 12704else 12705 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12706 lt_status=$lt_dlunknown 12707 cat > conftest.$ac_ext <<EOF 12708#line 12708 "configure" 12709#include "confdefs.h" 12710 12711#if HAVE_DLFCN_H 12712#include <dlfcn.h> 12713#endif 12714 12715#include <stdio.h> 12716 12717#ifdef RTLD_GLOBAL 12718# define LT_DLGLOBAL RTLD_GLOBAL 12719#else 12720# ifdef DL_GLOBAL 12721# define LT_DLGLOBAL DL_GLOBAL 12722# else 12723# define LT_DLGLOBAL 0 12724# endif 12725#endif 12726 12727/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12728 find out it does not work in some platform. */ 12729#ifndef LT_DLLAZY_OR_NOW 12730# ifdef RTLD_LAZY 12731# define LT_DLLAZY_OR_NOW RTLD_LAZY 12732# else 12733# ifdef DL_LAZY 12734# define LT_DLLAZY_OR_NOW DL_LAZY 12735# else 12736# ifdef RTLD_NOW 12737# define LT_DLLAZY_OR_NOW RTLD_NOW 12738# else 12739# ifdef DL_NOW 12740# define LT_DLLAZY_OR_NOW DL_NOW 12741# else 12742# define LT_DLLAZY_OR_NOW 0 12743# endif 12744# endif 12745# endif 12746# endif 12747#endif 12748 12749#ifdef __cplusplus 12750extern "C" void exit (int); 12751#endif 12752 12753void fnord() { int i=42;} 12754int main () 12755{ 12756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12757 int status = $lt_dlunknown; 12758 12759 if (self) 12760 { 12761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12762 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12763 /* dlclose (self); */ 12764 } 12765 12766 exit (status); 12767} 12768EOF 12769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12770 (eval $ac_link) 2>&5 12771 ac_status=$? 12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12773 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12774 (./conftest; exit; ) 2>/dev/null 12775 lt_status=$? 12776 case x$lt_status in 12777 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12778 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12779 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12780 esac 12781 else : 12782 # compilation failed 12783 lt_cv_dlopen_self_static=no 12784 fi 12785fi 12786rm -fr conftest* 12787 12788 12789fi 12790echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12791echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12792 fi 12793 12794 CPPFLAGS="$save_CPPFLAGS" 12795 LDFLAGS="$save_LDFLAGS" 12796 LIBS="$save_LIBS" 12797 ;; 12798 esac 12799 12800 case $lt_cv_dlopen_self in 12801 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12802 *) enable_dlopen_self=unknown ;; 12803 esac 12804 12805 case $lt_cv_dlopen_self_static in 12806 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12807 *) enable_dlopen_self_static=unknown ;; 12808 esac 12809fi 12810 12811 12812# The else clause should only fire when bootstrapping the 12813# libtool distribution, otherwise you forgot to ship ltmain.sh 12814# with your package, and you will get complaints that there are 12815# no rules to generate ltmain.sh. 12816if test -f "$ltmain"; then 12817 # See if we are running on zsh, and set the options which allow our commands through 12818 # without removal of \ escapes. 12819 if test -n "${ZSH_VERSION+set}" ; then 12820 setopt NO_GLOB_SUBST 12821 fi 12822 # Now quote all the things that may contain metacharacters while being 12823 # careful not to overquote the AC_SUBSTed values. We take copies of the 12824 # variables and quote the copies for generation of the libtool script. 12825 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12826 SED SHELL STRIP \ 12827 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12828 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12829 deplibs_check_method reload_flag reload_cmds need_locks \ 12830 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12831 lt_cv_sys_global_symbol_to_c_name_address \ 12832 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12833 old_postinstall_cmds old_postuninstall_cmds \ 12834 compiler_CXX \ 12835 CC_CXX \ 12836 LD_CXX \ 12837 lt_prog_compiler_wl_CXX \ 12838 lt_prog_compiler_pic_CXX \ 12839 lt_prog_compiler_static_CXX \ 12840 lt_prog_compiler_no_builtin_flag_CXX \ 12841 export_dynamic_flag_spec_CXX \ 12842 thread_safe_flag_spec_CXX \ 12843 whole_archive_flag_spec_CXX \ 12844 enable_shared_with_static_runtimes_CXX \ 12845 old_archive_cmds_CXX \ 12846 old_archive_from_new_cmds_CXX \ 12847 predep_objects_CXX \ 12848 postdep_objects_CXX \ 12849 predeps_CXX \ 12850 postdeps_CXX \ 12851 compiler_lib_search_path_CXX \ 12852 archive_cmds_CXX \ 12853 archive_expsym_cmds_CXX \ 12854 postinstall_cmds_CXX \ 12855 postuninstall_cmds_CXX \ 12856 old_archive_from_expsyms_cmds_CXX \ 12857 allow_undefined_flag_CXX \ 12858 no_undefined_flag_CXX \ 12859 export_symbols_cmds_CXX \ 12860 hardcode_libdir_flag_spec_CXX \ 12861 hardcode_libdir_flag_spec_ld_CXX \ 12862 hardcode_libdir_separator_CXX \ 12863 hardcode_automatic_CXX \ 12864 module_cmds_CXX \ 12865 module_expsym_cmds_CXX \ 12866 lt_cv_prog_compiler_c_o_CXX \ 12867 exclude_expsyms_CXX \ 12868 include_expsyms_CXX; do 12869 12870 case $var in 12871 old_archive_cmds_CXX | \ 12872 old_archive_from_new_cmds_CXX | \ 12873 archive_cmds_CXX | \ 12874 archive_expsym_cmds_CXX | \ 12875 module_cmds_CXX | \ 12876 module_expsym_cmds_CXX | \ 12877 old_archive_from_expsyms_cmds_CXX | \ 12878 export_symbols_cmds_CXX | \ 12879 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12880 postinstall_cmds | postuninstall_cmds | \ 12881 old_postinstall_cmds | old_postuninstall_cmds | \ 12882 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12883 # Double-quote double-evaled strings. 12884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12885 ;; 12886 *) 12887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12888 ;; 12889 esac 12890 done 12891 12892 case $lt_echo in 12893 *'\$0 --fallback-echo"') 12894 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12895 ;; 12896 esac 12897 12898cfgfile="$ofile" 12899 12900 cat <<__EOF__ >> "$cfgfile" 12901# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12902 12903# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12904 12905# Shell to use when invoking shell scripts. 12906SHELL=$lt_SHELL 12907 12908# Whether or not to build shared libraries. 12909build_libtool_libs=$enable_shared 12910 12911# Whether or not to build static libraries. 12912build_old_libs=$enable_static 12913 12914# Whether or not to add -lc for building shared libraries. 12915build_libtool_need_lc=$archive_cmds_need_lc_CXX 12916 12917# Whether or not to disallow shared libs when runtime libs are static 12918allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12919 12920# Whether or not to optimize for fast installation. 12921fast_install=$enable_fast_install 12922 12923# The host system. 12924host_alias=$host_alias 12925host=$host 12926 12927# An echo program that does not interpret backslashes. 12928echo=$lt_echo 12929 12930# The archiver. 12931AR=$lt_AR 12932AR_FLAGS=$lt_AR_FLAGS 12933 12934# A C compiler. 12935LTCC=$lt_LTCC 12936 12937# A language-specific compiler. 12938CC=$lt_compiler_CXX 12939 12940# Is the compiler the GNU C compiler? 12941with_gcc=$GCC_CXX 12942 12943# An ERE matcher. 12944EGREP=$lt_EGREP 12945 12946# The linker used to build libraries. 12947LD=$lt_LD_CXX 12948 12949# Whether we need hard or soft links. 12950LN_S=$lt_LN_S 12951 12952# A BSD-compatible nm program. 12953NM=$lt_NM 12954 12955# A symbol stripping program 12956STRIP=$lt_STRIP 12957 12958# Used to examine libraries when file_magic_cmd begins "file" 12959MAGIC_CMD=$MAGIC_CMD 12960 12961# Used on cygwin: DLL creation program. 12962DLLTOOL="$DLLTOOL" 12963 12964# Used on cygwin: object dumper. 12965OBJDUMP="$OBJDUMP" 12966 12967# Used on cygwin: assembler. 12968AS="$AS" 12969 12970# The name of the directory that contains temporary libtool files. 12971objdir=$objdir 12972 12973# How to create reloadable object files. 12974reload_flag=$lt_reload_flag 12975reload_cmds=$lt_reload_cmds 12976 12977# How to pass a linker flag through the compiler. 12978wl=$lt_lt_prog_compiler_wl_CXX 12979 12980# Object file suffix (normally "o"). 12981objext="$ac_objext" 12982 12983# Old archive suffix (normally "a"). 12984libext="$libext" 12985 12986# Shared library suffix (normally ".so"). 12987shrext_cmds='$shrext_cmds' 12988 12989# Executable file suffix (normally ""). 12990exeext="$exeext" 12991 12992# Additional compiler flags for building library objects. 12993pic_flag=$lt_lt_prog_compiler_pic_CXX 12994pic_mode=$pic_mode 12995 12996# What is the maximum length of a command? 12997max_cmd_len=$lt_cv_sys_max_cmd_len 12998 12999# Does compiler simultaneously support -c and -o options? 13000compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13001 13002# Must we lock files when doing compilation ? 13003need_locks=$lt_need_locks 13004 13005# Do we need the lib prefix for modules? 13006need_lib_prefix=$need_lib_prefix 13007 13008# Do we need a version for libraries? 13009need_version=$need_version 13010 13011# Whether dlopen is supported. 13012dlopen_support=$enable_dlopen 13013 13014# Whether dlopen of programs is supported. 13015dlopen_self=$enable_dlopen_self 13016 13017# Whether dlopen of statically linked programs is supported. 13018dlopen_self_static=$enable_dlopen_self_static 13019 13020# Compiler flag to prevent dynamic linking. 13021link_static_flag=$lt_lt_prog_compiler_static_CXX 13022 13023# Compiler flag to turn off builtin functions. 13024no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13025 13026# Compiler flag to allow reflexive dlopens. 13027export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13028 13029# Compiler flag to generate shared objects directly from archives. 13030whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13031 13032# Compiler flag to generate thread-safe objects. 13033thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13034 13035# Library versioning type. 13036version_type=$version_type 13037 13038# Format of library name prefix. 13039libname_spec=$lt_libname_spec 13040 13041# List of archive names. First name is the real one, the rest are links. 13042# The last name is the one that the linker finds with -lNAME. 13043library_names_spec=$lt_library_names_spec 13044 13045# The coded name of the library, if different from the real name. 13046soname_spec=$lt_soname_spec 13047 13048# Commands used to build and install an old-style archive. 13049RANLIB=$lt_RANLIB 13050old_archive_cmds=$lt_old_archive_cmds_CXX 13051old_postinstall_cmds=$lt_old_postinstall_cmds 13052old_postuninstall_cmds=$lt_old_postuninstall_cmds 13053 13054# Create an old-style archive from a shared archive. 13055old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13056 13057# Create a temporary old-style archive to link instead of a shared archive. 13058old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13059 13060# Commands used to build and install a shared archive. 13061archive_cmds=$lt_archive_cmds_CXX 13062archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13063postinstall_cmds=$lt_postinstall_cmds 13064postuninstall_cmds=$lt_postuninstall_cmds 13065 13066# Commands used to build a loadable module (assumed same as above if empty) 13067module_cmds=$lt_module_cmds_CXX 13068module_expsym_cmds=$lt_module_expsym_cmds_CXX 13069 13070# Commands to strip libraries. 13071old_striplib=$lt_old_striplib 13072striplib=$lt_striplib 13073 13074# Dependencies to place before the objects being linked to create a 13075# shared library. 13076predep_objects=$lt_predep_objects_CXX 13077 13078# Dependencies to place after the objects being linked to create a 13079# shared library. 13080postdep_objects=$lt_postdep_objects_CXX 13081 13082# Dependencies to place before the objects being linked to create a 13083# shared library. 13084predeps=$lt_predeps_CXX 13085 13086# Dependencies to place after the objects being linked to create a 13087# shared library. 13088postdeps=$lt_postdeps_CXX 13089 13090# The library search path used internally by the compiler when linking 13091# a shared library. 13092compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13093 13094# Method to check whether dependent libraries are shared objects. 13095deplibs_check_method=$lt_deplibs_check_method 13096 13097# Command to use when deplibs_check_method == file_magic. 13098file_magic_cmd=$lt_file_magic_cmd 13099 13100# Flag that allows shared libraries with undefined symbols to be built. 13101allow_undefined_flag=$lt_allow_undefined_flag_CXX 13102 13103# Flag that forces no undefined symbols. 13104no_undefined_flag=$lt_no_undefined_flag_CXX 13105 13106# Commands used to finish a libtool library installation in a directory. 13107finish_cmds=$lt_finish_cmds 13108 13109# Same as above, but a single script fragment to be evaled but not shown. 13110finish_eval=$lt_finish_eval 13111 13112# Take the output of nm and produce a listing of raw symbols and C names. 13113global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13114 13115# Transform the output of nm in a proper C declaration 13116global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13117 13118# Transform the output of nm in a C name address pair 13119global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13120 13121# This is the shared library runtime path variable. 13122runpath_var=$runpath_var 13123 13124# This is the shared library path variable. 13125shlibpath_var=$shlibpath_var 13126 13127# Is shlibpath searched before the hard-coded library search path? 13128shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13129 13130# How to hardcode a shared library path into an executable. 13131hardcode_action=$hardcode_action_CXX 13132 13133# Whether we should hardcode library paths into libraries. 13134hardcode_into_libs=$hardcode_into_libs 13135 13136# Flag to hardcode \$libdir into a binary during linking. 13137# This must work even if \$libdir does not exist. 13138hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13139 13140# If ld is used when linking, flag to hardcode \$libdir into 13141# a binary during linking. This must work even if \$libdir does 13142# not exist. 13143hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13144 13145# Whether we need a single -rpath flag with a separated argument. 13146hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13147 13148# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13149# resulting binary. 13150hardcode_direct=$hardcode_direct_CXX 13151 13152# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13153# resulting binary. 13154hardcode_minus_L=$hardcode_minus_L_CXX 13155 13156# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13157# the resulting binary. 13158hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13159 13160# Set to yes if building a shared library automatically hardcodes DIR into the library 13161# and all subsequent libraries and executables linked against it. 13162hardcode_automatic=$hardcode_automatic_CXX 13163 13164# Variables whose values should be saved in libtool wrapper scripts and 13165# restored at relink time. 13166variables_saved_for_relink="$variables_saved_for_relink" 13167 13168# Whether libtool must link a program against all its dependency libraries. 13169link_all_deplibs=$link_all_deplibs_CXX 13170 13171# Compile-time system search path for libraries 13172sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13173 13174# Run-time system search path for libraries 13175sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13176 13177# Fix the shell variable \$srcfile for the compiler. 13178fix_srcfile_path="$fix_srcfile_path_CXX" 13179 13180# Set to yes if exported symbols are required. 13181always_export_symbols=$always_export_symbols_CXX 13182 13183# The commands to list exported symbols. 13184export_symbols_cmds=$lt_export_symbols_cmds_CXX 13185 13186# The commands to extract the exported symbol list from a shared archive. 13187extract_expsyms_cmds=$lt_extract_expsyms_cmds 13188 13189# Symbols that should not be listed in the preloaded symbols. 13190exclude_expsyms=$lt_exclude_expsyms_CXX 13191 13192# Symbols that must always be exported. 13193include_expsyms=$lt_include_expsyms_CXX 13194 13195# ### END LIBTOOL TAG CONFIG: $tagname 13196 13197__EOF__ 13198 13199 13200else 13201 # If there is no Makefile yet, we rely on a make rule to execute 13202 # `config.status --recheck' to rerun these tests and create the 13203 # libtool script then. 13204 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13205 if test -f "$ltmain_in"; then 13206 test -f Makefile && make "$ltmain" 13207 fi 13208fi 13209 13210 13211ac_ext=c 13212ac_cpp='$CPP $CPPFLAGS' 13213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13215ac_compiler_gnu=$ac_cv_c_compiler_gnu 13216 13217CC=$lt_save_CC 13218LDCXX=$LD 13219LD=$lt_save_LD 13220GCC=$lt_save_GCC 13221with_gnu_ldcxx=$with_gnu_ld 13222with_gnu_ld=$lt_save_with_gnu_ld 13223lt_cv_path_LDCXX=$lt_cv_path_LD 13224lt_cv_path_LD=$lt_save_path_LD 13225lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13226lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13227 13228 else 13229 tagname="" 13230 fi 13231 ;; 13232 13233 F77) 13234 if test -n "$F77" && test "X$F77" != "Xno"; then 13235 13236ac_ext=f 13237ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13238ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13239ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13240 13241 13242archive_cmds_need_lc_F77=no 13243allow_undefined_flag_F77= 13244always_export_symbols_F77=no 13245archive_expsym_cmds_F77= 13246export_dynamic_flag_spec_F77= 13247hardcode_direct_F77=no 13248hardcode_libdir_flag_spec_F77= 13249hardcode_libdir_flag_spec_ld_F77= 13250hardcode_libdir_separator_F77= 13251hardcode_minus_L_F77=no 13252hardcode_automatic_F77=no 13253module_cmds_F77= 13254module_expsym_cmds_F77= 13255link_all_deplibs_F77=unknown 13256old_archive_cmds_F77=$old_archive_cmds 13257no_undefined_flag_F77= 13258whole_archive_flag_spec_F77= 13259enable_shared_with_static_runtimes_F77=no 13260 13261# Source file extension for f77 test sources. 13262ac_ext=f 13263 13264# Object file extension for compiled f77 test sources. 13265objext=o 13266objext_F77=$objext 13267 13268# Code to be used in simple compile tests 13269lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13270 13271# Code to be used in simple link tests 13272lt_simple_link_test_code=" program t\n end\n" 13273 13274# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13275 13276# If no C compiler was specified, use CC. 13277LTCC=${LTCC-"$CC"} 13278 13279# Allow CC to be a program name with arguments. 13280compiler=$CC 13281 13282 13283# Allow CC to be a program name with arguments. 13284lt_save_CC="$CC" 13285CC=${F77-"f77"} 13286compiler=$CC 13287compiler_F77=$CC 13288cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13289 13290echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13291echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13292echo "$as_me:$LINENO: result: $can_build_shared" >&5 13293echo "${ECHO_T}$can_build_shared" >&6 13294 13295echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13296echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13297test "$can_build_shared" = "no" && enable_shared=no 13298 13299# On AIX, shared libraries and static libraries use the same namespace, and 13300# are all built from PIC. 13301case "$host_os" in 13302aix3*) 13303 test "$enable_shared" = yes && enable_static=no 13304 if test -n "$RANLIB"; then 13305 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13306 postinstall_cmds='$RANLIB $lib' 13307 fi 13308 ;; 13309aix4* | aix5*) 13310 test "$enable_shared" = yes && enable_static=no 13311 ;; 13312esac 13313echo "$as_me:$LINENO: result: $enable_shared" >&5 13314echo "${ECHO_T}$enable_shared" >&6 13315 13316echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13317echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13318# Make sure either enable_shared or enable_static is yes. 13319test "$enable_shared" = yes || enable_static=yes 13320echo "$as_me:$LINENO: result: $enable_static" >&5 13321echo "${ECHO_T}$enable_static" >&6 13322 13323test "$ld_shlibs_F77" = no && can_build_shared=no 13324 13325GCC_F77="$G77" 13326LD_F77="$LD" 13327 13328lt_prog_compiler_wl_F77= 13329lt_prog_compiler_pic_F77= 13330lt_prog_compiler_static_F77= 13331 13332echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13333echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13334 13335 if test "$GCC" = yes; then 13336 lt_prog_compiler_wl_F77='-Wl,' 13337 lt_prog_compiler_static_F77='-static' 13338 13339 case $host_os in 13340 aix*) 13341 # All AIX code is PIC. 13342 if test "$host_cpu" = ia64; then 13343 # AIX 5 now supports IA64 processor 13344 lt_prog_compiler_static_F77='-Bstatic' 13345 fi 13346 ;; 13347 13348 amigaos*) 13349 # FIXME: we need at least 68020 code to build shared libraries, but 13350 # adding the `-m68020' flag to GCC prevents building anything better, 13351 # like `-m68040'. 13352 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13353 ;; 13354 13355 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13356 # PIC is the default for these OSes. 13357 ;; 13358 13359 mingw* | pw32* | os2*) 13360 # This hack is so that the source file can tell whether it is being 13361 # built for inclusion in a dll (and should export symbols for example). 13362 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13363 ;; 13364 13365 darwin* | rhapsody*) 13366 # PIC is the default on this platform 13367 # Common symbols not allowed in MH_DYLIB files 13368 lt_prog_compiler_pic_F77='-fno-common' 13369 ;; 13370 13371 msdosdjgpp*) 13372 # Just because we use GCC doesn't mean we suddenly get shared libraries 13373 # on systems that don't support them. 13374 lt_prog_compiler_can_build_shared_F77=no 13375 enable_shared=no 13376 ;; 13377 13378 sysv4*MP*) 13379 if test -d /usr/nec; then 13380 lt_prog_compiler_pic_F77=-Kconform_pic 13381 fi 13382 ;; 13383 13384 hpux*) 13385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13386 # not for PA HP-UX. 13387 case "$host_cpu" in 13388 hppa*64*|ia64*) 13389 # +Z the default 13390 ;; 13391 *) 13392 lt_prog_compiler_pic_F77='-fPIC' 13393 ;; 13394 esac 13395 ;; 13396 13397 *) 13398 lt_prog_compiler_pic_F77='-fPIC' 13399 ;; 13400 esac 13401 else 13402 # PORTME Check for flag to pass linker flags through the system compiler. 13403 case $host_os in 13404 aix*) 13405 lt_prog_compiler_wl_F77='-Wl,' 13406 if test "$host_cpu" = ia64; then 13407 # AIX 5 now supports IA64 processor 13408 lt_prog_compiler_static_F77='-Bstatic' 13409 else 13410 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13411 fi 13412 ;; 13413 13414 mingw* | pw32* | os2*) 13415 # This hack is so that the source file can tell whether it is being 13416 # built for inclusion in a dll (and should export symbols for example). 13417 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13418 ;; 13419 13420 hpux9* | hpux10* | hpux11*) 13421 lt_prog_compiler_wl_F77='-Wl,' 13422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13423 # not for PA HP-UX. 13424 case "$host_cpu" in 13425 hppa*64*|ia64*) 13426 # +Z the default 13427 ;; 13428 *) 13429 lt_prog_compiler_pic_F77='+Z' 13430 ;; 13431 esac 13432 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13433 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13434 ;; 13435 13436 irix5* | irix6* | nonstopux*) 13437 lt_prog_compiler_wl_F77='-Wl,' 13438 # PIC (with -KPIC) is the default. 13439 lt_prog_compiler_static_F77='-non_shared' 13440 ;; 13441 13442 newsos6) 13443 lt_prog_compiler_pic_F77='-KPIC' 13444 lt_prog_compiler_static_F77='-Bstatic' 13445 ;; 13446 13447 linux*) 13448 case $CC in 13449 icc* | ecc*) 13450 lt_prog_compiler_wl_F77='-Wl,' 13451 lt_prog_compiler_pic_F77='-KPIC' 13452 lt_prog_compiler_static_F77='-static' 13453 ;; 13454 ccc*) 13455 lt_prog_compiler_wl_F77='-Wl,' 13456 # All Alpha code is PIC. 13457 lt_prog_compiler_static_F77='-non_shared' 13458 ;; 13459 esac 13460 ;; 13461 13462 osf3* | osf4* | osf5*) 13463 lt_prog_compiler_wl_F77='-Wl,' 13464 # All OSF/1 code is PIC. 13465 lt_prog_compiler_static_F77='-non_shared' 13466 ;; 13467 13468 sco3.2v5*) 13469 lt_prog_compiler_pic_F77='-Kpic' 13470 lt_prog_compiler_static_F77='-dn' 13471 ;; 13472 13473 solaris*) 13474 lt_prog_compiler_wl_F77='-Wl,' 13475 lt_prog_compiler_pic_F77='-KPIC' 13476 lt_prog_compiler_static_F77='-Bstatic' 13477 ;; 13478 13479 sunos4*) 13480 lt_prog_compiler_wl_F77='-Qoption ld ' 13481 lt_prog_compiler_pic_F77='-PIC' 13482 lt_prog_compiler_static_F77='-Bstatic' 13483 ;; 13484 13485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13486 lt_prog_compiler_wl_F77='-Wl,' 13487 lt_prog_compiler_pic_F77='-KPIC' 13488 lt_prog_compiler_static_F77='-Bstatic' 13489 ;; 13490 13491 sysv4*MP*) 13492 if test -d /usr/nec ;then 13493 lt_prog_compiler_pic_F77='-Kconform_pic' 13494 lt_prog_compiler_static_F77='-Bstatic' 13495 fi 13496 ;; 13497 13498 uts4*) 13499 lt_prog_compiler_pic_F77='-pic' 13500 lt_prog_compiler_static_F77='-Bstatic' 13501 ;; 13502 13503 *) 13504 lt_prog_compiler_can_build_shared_F77=no 13505 ;; 13506 esac 13507 fi 13508 13509echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13510echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13511 13512# 13513# Check to make sure the PIC flag actually works. 13514# 13515if test -n "$lt_prog_compiler_pic_F77"; then 13516 13517echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13518echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13519if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13520 echo $ECHO_N "(cached) $ECHO_C" >&6 13521else 13522 lt_prog_compiler_pic_works_F77=no 13523 ac_outfile=conftest.$ac_objext 13524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13525 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13526 # Insert the option either (1) after the last *FLAGS variable, or 13527 # (2) before a word containing "conftest.", or (3) at the end. 13528 # Note that $ac_compile itself does not contain backslashes and begins 13529 # with a dollar sign (not a hyphen), so the echo should work correctly. 13530 # The option is referenced via a variable to avoid confusing sed. 13531 lt_compile=`echo "$ac_compile" | $SED \ 13532 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13534 -e 's:$: $lt_compiler_flag:'` 13535 (eval echo "\"\$as_me:13535: $lt_compile\"" >&5) 13536 (eval "$lt_compile" 2>conftest.err) 13537 ac_status=$? 13538 cat conftest.err >&5 13539 echo "$as_me:13539: \$? = $ac_status" >&5 13540 if (exit $ac_status) && test -s "$ac_outfile"; then 13541 # The compiler can only warn and ignore the option if not recognized 13542 # So say no if there are warnings 13543 if test ! -s conftest.err; then 13544 lt_prog_compiler_pic_works_F77=yes 13545 fi 13546 fi 13547 $rm conftest* 13548 13549fi 13550echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13551echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13552 13553if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13554 case $lt_prog_compiler_pic_F77 in 13555 "" | " "*) ;; 13556 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13557 esac 13558else 13559 lt_prog_compiler_pic_F77= 13560 lt_prog_compiler_can_build_shared_F77=no 13561fi 13562 13563fi 13564case "$host_os" in 13565 # For platforms which do not support PIC, -DPIC is meaningless: 13566 *djgpp*) 13567 lt_prog_compiler_pic_F77= 13568 ;; 13569 *) 13570 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13571 ;; 13572esac 13573 13574echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13576if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13577 echo $ECHO_N "(cached) $ECHO_C" >&6 13578else 13579 lt_cv_prog_compiler_c_o_F77=no 13580 $rm -r conftest 2>/dev/null 13581 mkdir conftest 13582 cd conftest 13583 mkdir out 13584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13585 13586 lt_compiler_flag="-o out/conftest2.$ac_objext" 13587 # Insert the option either (1) after the last *FLAGS variable, or 13588 # (2) before a word containing "conftest.", or (3) at the end. 13589 # Note that $ac_compile itself does not contain backslashes and begins 13590 # with a dollar sign (not a hyphen), so the echo should work correctly. 13591 lt_compile=`echo "$ac_compile" | $SED \ 13592 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13594 -e 's:$: $lt_compiler_flag:'` 13595 (eval echo "\"\$as_me:13595: $lt_compile\"" >&5) 13596 (eval "$lt_compile" 2>out/conftest.err) 13597 ac_status=$? 13598 cat out/conftest.err >&5 13599 echo "$as_me:13599: \$? = $ac_status" >&5 13600 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13601 then 13602 # The compiler can only warn and ignore the option if not recognized 13603 # So say no if there are warnings 13604 if test ! -s out/conftest.err; then 13605 lt_cv_prog_compiler_c_o_F77=yes 13606 fi 13607 fi 13608 chmod u+w . 13609 $rm conftest* 13610 # SGI C++ compiler will create directory out/ii_files/ for 13611 # template instantiation 13612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13613 $rm out/* && rmdir out 13614 cd .. 13615 rmdir conftest 13616 $rm conftest* 13617 13618fi 13619echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13620echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13621 13622 13623hard_links="nottested" 13624if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13625 # do not overwrite the value of need_locks provided by the user 13626 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13627echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13628 hard_links=yes 13629 $rm conftest* 13630 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13631 touch conftest.a 13632 ln conftest.a conftest.b 2>&5 || hard_links=no 13633 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13634 echo "$as_me:$LINENO: result: $hard_links" >&5 13635echo "${ECHO_T}$hard_links" >&6 13636 if test "$hard_links" = no; then 13637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13638echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13639 need_locks=warn 13640 fi 13641else 13642 need_locks=no 13643fi 13644 13645echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13646echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13647 13648 runpath_var= 13649 allow_undefined_flag_F77= 13650 enable_shared_with_static_runtimes_F77=no 13651 archive_cmds_F77= 13652 archive_expsym_cmds_F77= 13653 old_archive_From_new_cmds_F77= 13654 old_archive_from_expsyms_cmds_F77= 13655 export_dynamic_flag_spec_F77= 13656 whole_archive_flag_spec_F77= 13657 thread_safe_flag_spec_F77= 13658 hardcode_libdir_flag_spec_F77= 13659 hardcode_libdir_flag_spec_ld_F77= 13660 hardcode_libdir_separator_F77= 13661 hardcode_direct_F77=no 13662 hardcode_minus_L_F77=no 13663 hardcode_shlibpath_var_F77=unsupported 13664 link_all_deplibs_F77=unknown 13665 hardcode_automatic_F77=no 13666 module_cmds_F77= 13667 module_expsym_cmds_F77= 13668 always_export_symbols_F77=no 13669 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13670 # include_expsyms should be a list of space-separated symbols to be *always* 13671 # included in the symbol list 13672 include_expsyms_F77= 13673 # exclude_expsyms can be an extended regexp of symbols to exclude 13674 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13676 # as well as any symbol that contains `d'. 13677 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13679 # platforms (ab)use it in PIC code, but their linkers get confused if 13680 # the symbol is explicitly referenced. Since portable code cannot 13681 # rely on this symbol name, it's probably fine to never include it in 13682 # preloaded symbol tables. 13683 extract_expsyms_cmds= 13684 13685 case $host_os in 13686 cygwin* | mingw* | pw32*) 13687 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13688 # When not using gcc, we currently assume that we are using 13689 # Microsoft Visual C++. 13690 if test "$GCC" != yes; then 13691 with_gnu_ld=no 13692 fi 13693 ;; 13694 openbsd*) 13695 with_gnu_ld=no 13696 ;; 13697 esac 13698 13699 ld_shlibs_F77=yes 13700 if test "$with_gnu_ld" = yes; then 13701 # If archive_cmds runs LD, not CC, wlarc should be empty 13702 wlarc='${wl}' 13703 13704 # See if GNU ld supports shared libraries. 13705 case $host_os in 13706 aix3* | aix4* | aix5*) 13707 # On AIX/PPC, the GNU linker is very broken 13708 if test "$host_cpu" != ia64; then 13709 ld_shlibs_F77=no 13710 cat <<EOF 1>&2 13711 13712*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13713*** to be unable to reliably create shared libraries on AIX. 13714*** Therefore, libtool is disabling shared libraries support. If you 13715*** really care for shared libraries, you may want to modify your PATH 13716*** so that a non-GNU linker is found, and then restart. 13717 13718EOF 13719 fi 13720 ;; 13721 13722 amigaos*) 13723 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)' 13724 hardcode_libdir_flag_spec_F77='-L$libdir' 13725 hardcode_minus_L_F77=yes 13726 13727 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13728 # that the semantics of dynamic libraries on AmigaOS, at least up 13729 # to version 4, is to share data among multiple programs linked 13730 # with the same dynamic library. Since this doesn't match the 13731 # behavior of shared libraries on other platforms, we can't use 13732 # them. 13733 ld_shlibs_F77=no 13734 ;; 13735 13736 beos*) 13737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13738 allow_undefined_flag_F77=unsupported 13739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13740 # support --undefined. This deserves some investigation. FIXME 13741 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13742 else 13743 ld_shlibs_F77=no 13744 fi 13745 ;; 13746 13747 cygwin* | mingw* | pw32*) 13748 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13749 # as there is no search path for DLLs. 13750 hardcode_libdir_flag_spec_F77='-L$libdir' 13751 allow_undefined_flag_F77=unsupported 13752 always_export_symbols_F77=no 13753 enable_shared_with_static_runtimes_F77=yes 13754 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13755 13756 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13757 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13758 # If the export-symbols file already is a .def file (1st line 13759 # is EXPORTS), use it as is; otherwise, prepend... 13760 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13761 cp $export_symbols $output_objdir/$soname.def; 13762 else 13763 echo EXPORTS > $output_objdir/$soname.def; 13764 cat $export_symbols >> $output_objdir/$soname.def; 13765 fi~ 13766 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13767 else 13768 ld_shlibs=no 13769 fi 13770 ;; 13771 13772 netbsd*) 13773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13774 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13775 wlarc= 13776 else 13777 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13778 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13779 fi 13780 ;; 13781 13782 solaris* | sysv5*) 13783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13784 ld_shlibs_F77=no 13785 cat <<EOF 1>&2 13786 13787*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13788*** create shared libraries on Solaris systems. Therefore, libtool 13789*** is disabling shared libraries support. We urge you to upgrade GNU 13790*** binutils to release 2.9.1 or newer. Another option is to modify 13791*** your PATH or compiler configuration so that the native linker is 13792*** used, and then restart. 13793 13794EOF 13795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13797 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13798 else 13799 ld_shlibs_F77=no 13800 fi 13801 ;; 13802 13803 sunos4*) 13804 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13805 wlarc= 13806 hardcode_direct_F77=yes 13807 hardcode_shlibpath_var_F77=no 13808 ;; 13809 13810 linux*) 13811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13812 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13813 archive_cmds_F77="$tmp_archive_cmds" 13814 supports_anon_versioning=no 13815 case `$LD -v 2>/dev/null` in 13816 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13819 *\ 2.11.*) ;; # other 2.11 versions 13820 *) supports_anon_versioning=yes ;; 13821 esac 13822 if test $supports_anon_versioning = yes; then 13823 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13824cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13825$echo "local: *; };" >> $output_objdir/$libname.ver~ 13826 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13827 else 13828 archive_expsym_cmds_F77="$tmp_archive_cmds" 13829 fi 13830 else 13831 ld_shlibs_F77=no 13832 fi 13833 ;; 13834 13835 *) 13836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13837 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13838 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13839 else 13840 ld_shlibs_F77=no 13841 fi 13842 ;; 13843 esac 13844 13845 if test "$ld_shlibs_F77" = yes; then 13846 runpath_var=LD_RUN_PATH 13847 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13848 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13849 # ancient GNU ld didn't support --whole-archive et. al. 13850 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13851 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13852 else 13853 whole_archive_flag_spec_F77= 13854 fi 13855 fi 13856 else 13857 # PORTME fill in a description of your system's linker (not GNU ld) 13858 case $host_os in 13859 aix3*) 13860 allow_undefined_flag_F77=unsupported 13861 always_export_symbols_F77=yes 13862 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' 13863 # Note: this linker hardcodes the directories in LIBPATH if there 13864 # are no directories specified by -L. 13865 hardcode_minus_L_F77=yes 13866 if test "$GCC" = yes && test -z "$link_static_flag"; then 13867 # Neither direct hardcoding nor static linking is supported with a 13868 # broken collect2. 13869 hardcode_direct_F77=unsupported 13870 fi 13871 ;; 13872 13873 aix4* | aix5*) 13874 if test "$host_cpu" = ia64; then 13875 # On IA64, the linker does run time linking by default, so we don't 13876 # have to do anything special. 13877 aix_use_runtimelinking=no 13878 exp_sym_flag='-Bexport' 13879 no_entry_flag="" 13880 else 13881 # If we're using GNU nm, then we don't want the "-C" option. 13882 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13883 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13884 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' 13885 else 13886 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' 13887 fi 13888 aix_use_runtimelinking=no 13889 13890 # Test if we are trying to use run time linking or normal 13891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13892 # need to do runtime linking. 13893 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13894 for ld_flag in $LDFLAGS; do 13895 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13896 aix_use_runtimelinking=yes 13897 break 13898 fi 13899 done 13900 esac 13901 13902 exp_sym_flag='-bexport' 13903 no_entry_flag='-bnoentry' 13904 fi 13905 13906 # When large executables or shared objects are built, AIX ld can 13907 # have problems creating the table of contents. If linking a library 13908 # or program results in "error TOC overflow" add -mminimal-toc to 13909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13911 13912 archive_cmds_F77='' 13913 hardcode_direct_F77=yes 13914 hardcode_libdir_separator_F77=':' 13915 link_all_deplibs_F77=yes 13916 13917 if test "$GCC" = yes; then 13918 case $host_os in aix4.012|aix4.012.*) 13919 # We only want to do this on AIX 4.2 and lower, the check 13920 # below for broken collect2 doesn't work under 4.3+ 13921 collect2name=`${CC} -print-prog-name=collect2` 13922 if test -f "$collect2name" && \ 13923 strings "$collect2name" | grep resolve_lib_name >/dev/null 13924 then 13925 # We have reworked collect2 13926 hardcode_direct_F77=yes 13927 else 13928 # We have old collect2 13929 hardcode_direct_F77=unsupported 13930 # It fails to find uninstalled libraries when the uninstalled 13931 # path is not listed in the libpath. Setting hardcode_minus_L 13932 # to unsupported forces relinking 13933 hardcode_minus_L_F77=yes 13934 hardcode_libdir_flag_spec_F77='-L$libdir' 13935 hardcode_libdir_separator_F77= 13936 fi 13937 esac 13938 shared_flag='-shared' 13939 else 13940 # not using gcc 13941 if test "$host_cpu" = ia64; then 13942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13943 # chokes on -Wl,-G. The following line is correct: 13944 shared_flag='-G' 13945 else 13946 if test "$aix_use_runtimelinking" = yes; then 13947 shared_flag='${wl}-G' 13948 else 13949 shared_flag='${wl}-bM:SRE' 13950 fi 13951 fi 13952 fi 13953 13954 # It seems that -bexpall does not export symbols beginning with 13955 # underscore (_), so it is better to generate a list of symbols to export. 13956 always_export_symbols_F77=yes 13957 if test "$aix_use_runtimelinking" = yes; then 13958 # Warning - without using the other runtime loading flags (-brtl), 13959 # -berok will link without error, but may produce a broken library. 13960 allow_undefined_flag_F77='-berok' 13961 # Determine the default libpath from the value encoded in an empty executable. 13962 cat >conftest.$ac_ext <<_ACEOF 13963 program main 13964 13965 end 13966_ACEOF 13967rm -f conftest.$ac_objext conftest$ac_exeext 13968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13969 (eval $ac_link) 2>conftest.er1 13970 ac_status=$? 13971 grep -v '^ *+' conftest.er1 >conftest.err 13972 rm -f conftest.er1 13973 cat conftest.err >&5 13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13975 (exit $ac_status); } && 13976 { ac_try='test -z "$ac_f77_werror_flag" 13977 || test ! -s conftest.err' 13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13979 (eval $ac_try) 2>&5 13980 ac_status=$? 13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13982 (exit $ac_status); }; } && 13983 { ac_try='test -s conftest$ac_exeext' 13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13985 (eval $ac_try) 2>&5 13986 ac_status=$? 13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13988 (exit $ac_status); }; }; then 13989 13990aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13991}'` 13992# Check for a 64-bit object if we didn't find anything. 13993if 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; } 13994}'`; fi 13995else 13996 echo "$as_me: failed program was:" >&5 13997sed 's/^/| /' conftest.$ac_ext >&5 13998 13999fi 14000rm -f conftest.err conftest.$ac_objext \ 14001 conftest$ac_exeext conftest.$ac_ext 14002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14003 14004 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14005 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" 14006 else 14007 if test "$host_cpu" = ia64; then 14008 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14009 allow_undefined_flag_F77="-z nodefs" 14010 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" 14011 else 14012 # Determine the default libpath from the value encoded in an empty executable. 14013 cat >conftest.$ac_ext <<_ACEOF 14014 program main 14015 14016 end 14017_ACEOF 14018rm -f conftest.$ac_objext conftest$ac_exeext 14019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14020 (eval $ac_link) 2>conftest.er1 14021 ac_status=$? 14022 grep -v '^ *+' conftest.er1 >conftest.err 14023 rm -f conftest.er1 14024 cat conftest.err >&5 14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14026 (exit $ac_status); } && 14027 { ac_try='test -z "$ac_f77_werror_flag" 14028 || test ! -s conftest.err' 14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14030 (eval $ac_try) 2>&5 14031 ac_status=$? 14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14033 (exit $ac_status); }; } && 14034 { ac_try='test -s conftest$ac_exeext' 14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14036 (eval $ac_try) 2>&5 14037 ac_status=$? 14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14039 (exit $ac_status); }; }; then 14040 14041aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14042}'` 14043# Check for a 64-bit object if we didn't find anything. 14044if 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; } 14045}'`; fi 14046else 14047 echo "$as_me: failed program was:" >&5 14048sed 's/^/| /' conftest.$ac_ext >&5 14049 14050fi 14051rm -f conftest.err conftest.$ac_objext \ 14052 conftest$ac_exeext conftest.$ac_ext 14053if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14054 14055 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14056 # Warning - without using the other run time loading flags, 14057 # -berok will link without error, but may produce a broken library. 14058 no_undefined_flag_F77=' ${wl}-bernotok' 14059 allow_undefined_flag_F77=' ${wl}-berok' 14060 # -bexpall does not export symbols beginning with underscore (_) 14061 always_export_symbols_F77=yes 14062 # Exported symbols can be pulled into shared objects from archives 14063 whole_archive_flag_spec_F77=' ' 14064 archive_cmds_need_lc_F77=yes 14065 # This is similar to how AIX traditionally builds it's shared libraries. 14066 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' 14067 fi 14068 fi 14069 ;; 14070 14071 amigaos*) 14072 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)' 14073 hardcode_libdir_flag_spec_F77='-L$libdir' 14074 hardcode_minus_L_F77=yes 14075 # see comment about different semantics on the GNU ld section 14076 ld_shlibs_F77=no 14077 ;; 14078 14079 bsdi4*) 14080 export_dynamic_flag_spec_F77=-rdynamic 14081 ;; 14082 14083 cygwin* | mingw* | pw32*) 14084 # When not using gcc, we currently assume that we are using 14085 # Microsoft Visual C++. 14086 # hardcode_libdir_flag_spec is actually meaningless, as there is 14087 # no search path for DLLs. 14088 hardcode_libdir_flag_spec_F77=' ' 14089 allow_undefined_flag_F77=unsupported 14090 # Tell ltmain to make .lib files, not .a files. 14091 libext=lib 14092 # Tell ltmain to make .dll files, not .so files. 14093 shrext_cmds=".dll" 14094 # FIXME: Setting linknames here is a bad hack. 14095 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14096 # The linker will automatically build a .lib file if we build a DLL. 14097 old_archive_From_new_cmds_F77='true' 14098 # FIXME: Should let the user specify the lib program. 14099 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14100 fix_srcfile_path='`cygpath -w "$srcfile"`' 14101 enable_shared_with_static_runtimes_F77=yes 14102 ;; 14103 14104 darwin* | rhapsody*) 14105 if test "$GXX" = yes ; then 14106 archive_cmds_need_lc_F77=no 14107 case "$host_os" in 14108 rhapsody* | darwin1.[012]) 14109 allow_undefined_flag_F77='-undefined suppress' 14110 ;; 14111 *) # Darwin 1.3 on 14112 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14113 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14114 else 14115 case ${MACOSX_DEPLOYMENT_TARGET} in 14116 10.[012]) 14117 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14118 ;; 14119 10.*) 14120 allow_undefined_flag_F77='-undefined dynamic_lookup' 14121 ;; 14122 esac 14123 fi 14124 ;; 14125 esac 14126 lt_int_apple_cc_single_mod=no 14127 output_verbose_link_cmd='echo' 14128 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 14129 lt_int_apple_cc_single_mod=yes 14130 fi 14131 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14132 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14133 else 14134 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' 14135 fi 14136 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 14138 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14139 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}' 14140 else 14141 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}' 14142 fi 14143 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}' 14144 hardcode_direct_F77=no 14145 hardcode_automatic_F77=yes 14146 hardcode_shlibpath_var_F77=unsupported 14147 whole_archive_flag_spec_F77='-all_load $convenience' 14148 link_all_deplibs_F77=yes 14149 else 14150 ld_shlibs_F77=no 14151 fi 14152 ;; 14153 14154 dgux*) 14155 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14156 hardcode_libdir_flag_spec_F77='-L$libdir' 14157 hardcode_shlibpath_var_F77=no 14158 ;; 14159 14160 freebsd1*) 14161 ld_shlibs_F77=no 14162 ;; 14163 14164 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14165 # support. Future versions do this automatically, but an explicit c++rt0.o 14166 # does not break anything, and helps significantly (at the cost of a little 14167 # extra space). 14168 freebsd2.2*) 14169 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14170 hardcode_libdir_flag_spec_F77='-R$libdir' 14171 hardcode_direct_F77=yes 14172 hardcode_shlibpath_var_F77=no 14173 ;; 14174 14175 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14176 freebsd2*) 14177 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14178 hardcode_direct_F77=yes 14179 hardcode_minus_L_F77=yes 14180 hardcode_shlibpath_var_F77=no 14181 ;; 14182 14183 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14184 freebsd* | kfreebsd*-gnu) 14185 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14186 hardcode_libdir_flag_spec_F77='-R$libdir' 14187 hardcode_direct_F77=yes 14188 hardcode_shlibpath_var_F77=no 14189 ;; 14190 14191 hpux9*) 14192 if test "$GCC" = yes; then 14193 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' 14194 else 14195 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' 14196 fi 14197 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14198 hardcode_libdir_separator_F77=: 14199 hardcode_direct_F77=yes 14200 14201 # hardcode_minus_L: Not really in the search PATH, 14202 # but as the default location of the library. 14203 hardcode_minus_L_F77=yes 14204 export_dynamic_flag_spec_F77='${wl}-E' 14205 ;; 14206 14207 hpux10* | hpux11*) 14208 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14209 case "$host_cpu" in 14210 hppa*64*|ia64*) 14211 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14212 ;; 14213 *) 14214 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14215 ;; 14216 esac 14217 else 14218 case "$host_cpu" in 14219 hppa*64*|ia64*) 14220 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14221 ;; 14222 *) 14223 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14224 ;; 14225 esac 14226 fi 14227 if test "$with_gnu_ld" = no; then 14228 case "$host_cpu" in 14229 hppa*64*) 14230 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14231 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14232 hardcode_libdir_separator_F77=: 14233 hardcode_direct_F77=no 14234 hardcode_shlibpath_var_F77=no 14235 ;; 14236 ia64*) 14237 hardcode_libdir_flag_spec_F77='-L$libdir' 14238 hardcode_direct_F77=no 14239 hardcode_shlibpath_var_F77=no 14240 14241 # hardcode_minus_L: Not really in the search PATH, 14242 # but as the default location of the library. 14243 hardcode_minus_L_F77=yes 14244 ;; 14245 *) 14246 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14247 hardcode_libdir_separator_F77=: 14248 hardcode_direct_F77=yes 14249 export_dynamic_flag_spec_F77='${wl}-E' 14250 14251 # hardcode_minus_L: Not really in the search PATH, 14252 # but as the default location of the library. 14253 hardcode_minus_L_F77=yes 14254 ;; 14255 esac 14256 fi 14257 ;; 14258 14259 irix5* | irix6* | nonstopux*) 14260 if test "$GCC" = yes; then 14261 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' 14262 else 14263 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' 14264 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14265 fi 14266 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14267 hardcode_libdir_separator_F77=: 14268 link_all_deplibs_F77=yes 14269 ;; 14270 14271 netbsd*) 14272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14273 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14274 else 14275 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14276 fi 14277 hardcode_libdir_flag_spec_F77='-R$libdir' 14278 hardcode_direct_F77=yes 14279 hardcode_shlibpath_var_F77=no 14280 ;; 14281 14282 newsos6) 14283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14284 hardcode_direct_F77=yes 14285 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14286 hardcode_libdir_separator_F77=: 14287 hardcode_shlibpath_var_F77=no 14288 ;; 14289 14290 openbsd*) 14291 hardcode_direct_F77=yes 14292 hardcode_shlibpath_var_F77=no 14293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14294 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14295 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14296 export_dynamic_flag_spec_F77='${wl}-E' 14297 else 14298 case $host_os in 14299 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14301 hardcode_libdir_flag_spec_F77='-R$libdir' 14302 ;; 14303 *) 14304 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14305 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14306 ;; 14307 esac 14308 fi 14309 ;; 14310 14311 os2*) 14312 hardcode_libdir_flag_spec_F77='-L$libdir' 14313 hardcode_minus_L_F77=yes 14314 allow_undefined_flag_F77=unsupported 14315 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' 14316 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14317 ;; 14318 14319 osf3*) 14320 if test "$GCC" = yes; then 14321 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14322 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' 14323 else 14324 allow_undefined_flag_F77=' -expect_unresolved \*' 14325 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' 14326 fi 14327 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14328 hardcode_libdir_separator_F77=: 14329 ;; 14330 14331 osf4* | osf5*) # as osf3* with the addition of -msym flag 14332 if test "$GCC" = yes; then 14333 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14334 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' 14335 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14336 else 14337 allow_undefined_flag_F77=' -expect_unresolved \*' 14338 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' 14339 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~ 14340 $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' 14341 14342 # Both c and cxx compiler support -rpath directly 14343 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14344 fi 14345 hardcode_libdir_separator_F77=: 14346 ;; 14347 14348 sco3.2v5*) 14349 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14350 hardcode_shlibpath_var_F77=no 14351 export_dynamic_flag_spec_F77='${wl}-Bexport' 14352 runpath_var=LD_RUN_PATH 14353 hardcode_runpath_var=yes 14354 ;; 14355 14356 solaris*) 14357 no_undefined_flag_F77=' -z text' 14358 if test "$GCC" = yes; then 14359 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14360 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14361 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14362 else 14363 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14364 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14365 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14366 fi 14367 hardcode_libdir_flag_spec_F77='-R$libdir' 14368 hardcode_shlibpath_var_F77=no 14369 case $host_os in 14370 solaris2.[0-5] | solaris2.[0-5].*) ;; 14371 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 14372 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14373 esac 14374 link_all_deplibs_F77=yes 14375 ;; 14376 14377 sunos4*) 14378 if test "x$host_vendor" = xsequent; then 14379 # Use $CC to link under sequent, because it throws in some extra .o 14380 # files that make .init and .fini sections work. 14381 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14382 else 14383 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14384 fi 14385 hardcode_libdir_flag_spec_F77='-L$libdir' 14386 hardcode_direct_F77=yes 14387 hardcode_minus_L_F77=yes 14388 hardcode_shlibpath_var_F77=no 14389 ;; 14390 14391 sysv4) 14392 case $host_vendor in 14393 sni) 14394 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14395 hardcode_direct_F77=yes # is this really true??? 14396 ;; 14397 siemens) 14398 ## LD is ld it makes a PLAMLIB 14399 ## CC just makes a GrossModule. 14400 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14401 reload_cmds_F77='$CC -r -o $output$reload_objs' 14402 hardcode_direct_F77=no 14403 ;; 14404 motorola) 14405 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14406 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14407 ;; 14408 esac 14409 runpath_var='LD_RUN_PATH' 14410 hardcode_shlibpath_var_F77=no 14411 ;; 14412 14413 sysv4.3*) 14414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14415 hardcode_shlibpath_var_F77=no 14416 export_dynamic_flag_spec_F77='-Bexport' 14417 ;; 14418 14419 sysv4*MP*) 14420 if test -d /usr/nec; then 14421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14422 hardcode_shlibpath_var_F77=no 14423 runpath_var=LD_RUN_PATH 14424 hardcode_runpath_var=yes 14425 ld_shlibs_F77=yes 14426 fi 14427 ;; 14428 14429 sysv4.2uw2*) 14430 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14431 hardcode_direct_F77=yes 14432 hardcode_minus_L_F77=no 14433 hardcode_shlibpath_var_F77=no 14434 hardcode_runpath_var=yes 14435 runpath_var=LD_RUN_PATH 14436 ;; 14437 14438 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14439 no_undefined_flag_F77='${wl}-z ${wl}text' 14440 if test "$GCC" = yes; then 14441 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14442 else 14443 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14444 fi 14445 runpath_var='LD_RUN_PATH' 14446 hardcode_shlibpath_var_F77=no 14447 ;; 14448 14449 sysv5*) 14450 no_undefined_flag_F77=' -z text' 14451 # $CC -shared without GNU ld will not create a library from C++ 14452 # object files and a static libstdc++, better avoid it by now 14453 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14454 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14456 hardcode_libdir_flag_spec_F77= 14457 hardcode_shlibpath_var_F77=no 14458 runpath_var='LD_RUN_PATH' 14459 ;; 14460 14461 uts4*) 14462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14463 hardcode_libdir_flag_spec_F77='-L$libdir' 14464 hardcode_shlibpath_var_F77=no 14465 ;; 14466 14467 *) 14468 ld_shlibs_F77=no 14469 ;; 14470 esac 14471 fi 14472 14473echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14474echo "${ECHO_T}$ld_shlibs_F77" >&6 14475test "$ld_shlibs_F77" = no && can_build_shared=no 14476 14477variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14478if test "$GCC" = yes; then 14479 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14480fi 14481 14482# 14483# Do we need to explicitly link libc? 14484# 14485case "x$archive_cmds_need_lc_F77" in 14486x|xyes) 14487 # Assume -lc should be added 14488 archive_cmds_need_lc_F77=yes 14489 14490 if test "$enable_shared" = yes && test "$GCC" = yes; then 14491 case $archive_cmds_F77 in 14492 *'~'*) 14493 # FIXME: we may have to deal with multi-command sequences. 14494 ;; 14495 '$CC '*) 14496 # Test whether the compiler implicitly links with -lc since on some 14497 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14498 # to ld, don't add -lc before -lgcc. 14499 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14500echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14501 $rm conftest* 14502 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14503 14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14505 (eval $ac_compile) 2>&5 14506 ac_status=$? 14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14508 (exit $ac_status); } 2>conftest.err; then 14509 soname=conftest 14510 lib=conftest 14511 libobjs=conftest.$ac_objext 14512 deplibs= 14513 wl=$lt_prog_compiler_wl_F77 14514 compiler_flags=-v 14515 linker_flags=-v 14516 verstring= 14517 output_objdir=. 14518 libname=conftest 14519 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14520 allow_undefined_flag_F77= 14521 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14522 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14523 ac_status=$? 14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14525 (exit $ac_status); } 14526 then 14527 archive_cmds_need_lc_F77=no 14528 else 14529 archive_cmds_need_lc_F77=yes 14530 fi 14531 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14532 else 14533 cat conftest.err 1>&5 14534 fi 14535 $rm conftest* 14536 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14537echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14538 ;; 14539 esac 14540 fi 14541 ;; 14542esac 14543 14544echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14545echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14546library_names_spec= 14547libname_spec='lib$name' 14548soname_spec= 14549shrext_cmds=".so" 14550postinstall_cmds= 14551postuninstall_cmds= 14552finish_cmds= 14553finish_eval= 14554shlibpath_var= 14555shlibpath_overrides_runpath=unknown 14556version_type=none 14557dynamic_linker="$host_os ld.so" 14558sys_lib_dlsearch_path_spec="/lib /usr/lib" 14559if test "$GCC" = yes; then 14560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14562 # if the path contains ";" then we assume it to be the separator 14563 # otherwise default to the standard path separator (i.e. ":") - it is 14564 # assumed that no part of a normal pathname contains ";" but that should 14565 # okay in the real world where ";" in dirpaths is itself problematic. 14566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14567 else 14568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14569 fi 14570else 14571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14572fi 14573need_lib_prefix=unknown 14574hardcode_into_libs=no 14575 14576# when you set need_version to no, make sure it does not cause -set_version 14577# flags to be left without arguments 14578need_version=unknown 14579 14580case $host_os in 14581aix3*) 14582 version_type=linux 14583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14584 shlibpath_var=LIBPATH 14585 14586 # AIX 3 has no versioning support, so we append a major version to the name. 14587 soname_spec='${libname}${release}${shared_ext}$major' 14588 ;; 14589 14590aix4* | aix5*) 14591 version_type=linux 14592 need_lib_prefix=no 14593 need_version=no 14594 hardcode_into_libs=yes 14595 if test "$host_cpu" = ia64; then 14596 # AIX 5 supports IA64 14597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14598 shlibpath_var=LD_LIBRARY_PATH 14599 else 14600 # With GCC up to 2.95.x, collect2 would create an import file 14601 # for dependence libraries. The import file would start with 14602 # the line `#! .'. This would cause the generated library to 14603 # depend on `.', always an invalid library. This was fixed in 14604 # development snapshots of GCC prior to 3.0. 14605 case $host_os in 14606 aix4 | aix4.[01] | aix4.[01].*) 14607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14608 echo ' yes ' 14609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14610 : 14611 else 14612 can_build_shared=no 14613 fi 14614 ;; 14615 esac 14616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14617 # soname into executable. Probably we can add versioning support to 14618 # collect2, so additional links can be useful in future. 14619 if test "$aix_use_runtimelinking" = yes; then 14620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14621 # instead of lib<name>.a to let people know that these are not 14622 # typical AIX shared libraries. 14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14624 else 14625 # We preserve .a as extension for shared libraries through AIX4.2 14626 # and later when we are not doing run time linking. 14627 library_names_spec='${libname}${release}.a $libname.a' 14628 soname_spec='${libname}${release}${shared_ext}$major' 14629 fi 14630 shlibpath_var=LIBPATH 14631 fi 14632 ;; 14633 14634amigaos*) 14635 library_names_spec='$libname.ixlibrary $libname.a' 14636 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14637 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' 14638 ;; 14639 14640beos*) 14641 library_names_spec='${libname}${shared_ext}' 14642 dynamic_linker="$host_os ld.so" 14643 shlibpath_var=LIBRARY_PATH 14644 ;; 14645 14646bsdi4*) 14647 version_type=linux 14648 need_version=no 14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14650 soname_spec='${libname}${release}${shared_ext}$major' 14651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14652 shlibpath_var=LD_LIBRARY_PATH 14653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14655 # the default ld.so.conf also contains /usr/contrib/lib and 14656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14657 # libtool to hard-code these into programs 14658 ;; 14659 14660cygwin* | mingw* | pw32*) 14661 version_type=windows 14662 shrext_cmds=".dll" 14663 need_version=no 14664 need_lib_prefix=no 14665 14666 case $GCC,$host_os in 14667 yes,cygwin* | yes,mingw* | yes,pw32*) 14668 library_names_spec='$libname.dll.a' 14669 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14670 postinstall_cmds='base_file=`basename \${file}`~ 14671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14672 dldir=$destdir/`dirname \$dlpath`~ 14673 test -d \$dldir || mkdir -p \$dldir~ 14674 $install_prog $dir/$dlname \$dldir/$dlname' 14675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14676 dlpath=$dir/\$dldll~ 14677 $rm \$dlpath' 14678 shlibpath_overrides_runpath=yes 14679 14680 case $host_os in 14681 cygwin*) 14682 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14685 ;; 14686 mingw*) 14687 # MinGW DLLs use traditional 'lib' prefix 14688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14691 # It is most probably a Windows format PATH printed by 14692 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14693 # path with ; separators, and with drive letters. We can handle the 14694 # drive letters (cygwin fileutils understands them), so leave them, 14695 # especially as we might pass files found there to a mingw objdump, 14696 # which wouldn't understand a cygwinified path. Ahh. 14697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14698 else 14699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14700 fi 14701 ;; 14702 pw32*) 14703 # pw32 DLLs use 'pw' prefix rather than 'lib' 14704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14705 ;; 14706 esac 14707 ;; 14708 14709 *) 14710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14711 ;; 14712 esac 14713 dynamic_linker='Win32 ld.exe' 14714 # FIXME: first we should search . and the directory the executable is in 14715 shlibpath_var=PATH 14716 ;; 14717 14718darwin* | rhapsody*) 14719 dynamic_linker="$host_os dyld" 14720 version_type=darwin 14721 need_lib_prefix=no 14722 need_version=no 14723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14724 soname_spec='${libname}${release}${major}$shared_ext' 14725 shlibpath_overrides_runpath=yes 14726 shlibpath_var=DYLD_LIBRARY_PATH 14727 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14729 if test "$GCC" = yes; then 14730 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"` 14731 else 14732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14733 fi 14734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14735 ;; 14736 14737dgux*) 14738 version_type=linux 14739 need_lib_prefix=no 14740 need_version=no 14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14742 soname_spec='${libname}${release}${shared_ext}$major' 14743 shlibpath_var=LD_LIBRARY_PATH 14744 ;; 14745 14746freebsd1*) 14747 dynamic_linker=no 14748 ;; 14749 14750kfreebsd*-gnu) 14751 version_type=linux 14752 need_lib_prefix=no 14753 need_version=no 14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14755 soname_spec='${libname}${release}${shared_ext}$major' 14756 shlibpath_var=LD_LIBRARY_PATH 14757 shlibpath_overrides_runpath=no 14758 hardcode_into_libs=yes 14759 dynamic_linker='GNU ld.so' 14760 ;; 14761 14762freebsd*) 14763 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14764 version_type=freebsd-$objformat 14765 case $version_type in 14766 freebsd-elf*) 14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14768 need_version=no 14769 need_lib_prefix=no 14770 ;; 14771 freebsd-*) 14772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14773 need_version=yes 14774 ;; 14775 esac 14776 shlibpath_var=LD_LIBRARY_PATH 14777 case $host_os in 14778 freebsd2*) 14779 shlibpath_overrides_runpath=yes 14780 ;; 14781 freebsd3.01* | freebsdelf3.01*) 14782 shlibpath_overrides_runpath=yes 14783 hardcode_into_libs=yes 14784 ;; 14785 *) # from 3.2 on 14786 shlibpath_overrides_runpath=no 14787 hardcode_into_libs=yes 14788 ;; 14789 esac 14790 ;; 14791 14792gnu*) 14793 version_type=linux 14794 need_lib_prefix=no 14795 need_version=no 14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14797 soname_spec='${libname}${release}${shared_ext}$major' 14798 shlibpath_var=LD_LIBRARY_PATH 14799 hardcode_into_libs=yes 14800 ;; 14801 14802hpux9* | hpux10* | hpux11*) 14803 # Give a soname corresponding to the major version so that dld.sl refuses to 14804 # link against other versions. 14805 version_type=sunos 14806 need_lib_prefix=no 14807 need_version=no 14808 case "$host_cpu" in 14809 ia64*) 14810 shrext_cmds='.so' 14811 hardcode_into_libs=yes 14812 dynamic_linker="$host_os dld.so" 14813 shlibpath_var=LD_LIBRARY_PATH 14814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14816 soname_spec='${libname}${release}${shared_ext}$major' 14817 if test "X$HPUX_IA64_MODE" = X32; then 14818 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14819 else 14820 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14821 fi 14822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14823 ;; 14824 hppa*64*) 14825 shrext_cmds='.sl' 14826 hardcode_into_libs=yes 14827 dynamic_linker="$host_os dld.sl" 14828 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14831 soname_spec='${libname}${release}${shared_ext}$major' 14832 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14834 ;; 14835 *) 14836 shrext_cmds='.sl' 14837 dynamic_linker="$host_os dld.sl" 14838 shlibpath_var=SHLIB_PATH 14839 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14841 soname_spec='${libname}${release}${shared_ext}$major' 14842 ;; 14843 esac 14844 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14845 postinstall_cmds='chmod 555 $lib' 14846 ;; 14847 14848irix5* | irix6* | nonstopux*) 14849 case $host_os in 14850 nonstopux*) version_type=nonstopux ;; 14851 *) 14852 if test "$lt_cv_prog_gnu_ld" = yes; then 14853 version_type=linux 14854 else 14855 version_type=irix 14856 fi ;; 14857 esac 14858 need_lib_prefix=no 14859 need_version=no 14860 soname_spec='${libname}${release}${shared_ext}$major' 14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14862 case $host_os in 14863 irix5* | nonstopux*) 14864 libsuff= shlibsuff= 14865 ;; 14866 *) 14867 case $LD in # libtool.m4 will add one of these switches to LD 14868 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14869 libsuff= shlibsuff= libmagic=32-bit;; 14870 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14871 libsuff=32 shlibsuff=N32 libmagic=N32;; 14872 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14873 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14874 *) libsuff= shlibsuff= libmagic=never-match;; 14875 esac 14876 ;; 14877 esac 14878 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14879 shlibpath_overrides_runpath=no 14880 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14881 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14882 hardcode_into_libs=yes 14883 ;; 14884 14885# No shared lib support for Linux oldld, aout, or coff. 14886linux*oldld* | linux*aout* | linux*coff*) 14887 dynamic_linker=no 14888 ;; 14889 14890# This must be Linux ELF. 14891linux*) 14892 version_type=linux 14893 need_lib_prefix=no 14894 need_version=no 14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14896 soname_spec='${libname}${release}${shared_ext}$major' 14897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14898 shlibpath_var=LD_LIBRARY_PATH 14899 shlibpath_overrides_runpath=no 14900 # This implies no fast_install, which is unacceptable. 14901 # Some rework will be needed to allow for fast_install 14902 # before this can be enabled. 14903 hardcode_into_libs=yes 14904 14905 # find out which ABI we are using 14906 libsuff= 14907 case "$host_cpu" in 14908 x86_64*|s390x*|powerpc64*) 14909 echo '#line 14909 "configure"' > conftest.$ac_ext 14910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14911 (eval $ac_compile) 2>&5 14912 ac_status=$? 14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14914 (exit $ac_status); }; then 14915 case `/usr/bin/file conftest.$ac_objext` in 14916 *64-bit*) 14917 libsuff=64 14918 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14919 ;; 14920 esac 14921 fi 14922 rm -rf conftest* 14923 ;; 14924 esac 14925 14926 # Append ld.so.conf contents to the search path 14927 if test -f /etc/ld.so.conf; then 14928 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14929 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 14930 fi 14931 14932 # We used to test for /lib/ld.so.1 and disable shared libraries on 14933 # powerpc, because MkLinux only supported shared libraries with the 14934 # GNU dynamic linker. Since this was broken with cross compilers, 14935 # most powerpc-linux boxes support dynamic linking these days and 14936 # people can always --disable-shared, the test was removed, and we 14937 # assume the GNU/Linux dynamic linker is in use. 14938 dynamic_linker='GNU/Linux ld.so' 14939 ;; 14940 14941knetbsd*-gnu) 14942 version_type=linux 14943 need_lib_prefix=no 14944 need_version=no 14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14946 soname_spec='${libname}${release}${shared_ext}$major' 14947 shlibpath_var=LD_LIBRARY_PATH 14948 shlibpath_overrides_runpath=no 14949 hardcode_into_libs=yes 14950 dynamic_linker='GNU ld.so' 14951 ;; 14952 14953netbsd*) 14954 version_type=sunos 14955 need_lib_prefix=no 14956 need_version=no 14957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14960 dynamic_linker='NetBSD (a.out) ld.so' 14961 else 14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14963 soname_spec='${libname}${release}${shared_ext}$major' 14964 dynamic_linker='NetBSD ld.elf_so' 14965 fi 14966 shlibpath_var=LD_LIBRARY_PATH 14967 shlibpath_overrides_runpath=yes 14968 hardcode_into_libs=yes 14969 ;; 14970 14971newsos6) 14972 version_type=linux 14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14974 shlibpath_var=LD_LIBRARY_PATH 14975 shlibpath_overrides_runpath=yes 14976 ;; 14977 14978nto-qnx*) 14979 version_type=linux 14980 need_lib_prefix=no 14981 need_version=no 14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14983 soname_spec='${libname}${release}${shared_ext}$major' 14984 shlibpath_var=LD_LIBRARY_PATH 14985 shlibpath_overrides_runpath=yes 14986 ;; 14987 14988openbsd*) 14989 version_type=sunos 14990 need_lib_prefix=no 14991 need_version=yes 14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14994 shlibpath_var=LD_LIBRARY_PATH 14995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14996 case $host_os in 14997 openbsd2.[89] | openbsd2.[89].*) 14998 shlibpath_overrides_runpath=no 14999 ;; 15000 *) 15001 shlibpath_overrides_runpath=yes 15002 ;; 15003 esac 15004 else 15005 shlibpath_overrides_runpath=yes 15006 fi 15007 ;; 15008 15009os2*) 15010 libname_spec='$name' 15011 shrext_cmds=".dll" 15012 need_lib_prefix=no 15013 library_names_spec='$libname${shared_ext} $libname.a' 15014 dynamic_linker='OS/2 ld.exe' 15015 shlibpath_var=LIBPATH 15016 ;; 15017 15018osf3* | osf4* | osf5*) 15019 version_type=osf 15020 need_lib_prefix=no 15021 need_version=no 15022 soname_spec='${libname}${release}${shared_ext}$major' 15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15024 shlibpath_var=LD_LIBRARY_PATH 15025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15027 ;; 15028 15029sco3.2v5*) 15030 version_type=osf 15031 soname_spec='${libname}${release}${shared_ext}$major' 15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15033 shlibpath_var=LD_LIBRARY_PATH 15034 ;; 15035 15036solaris*) 15037 version_type=linux 15038 need_lib_prefix=no 15039 need_version=no 15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15041 soname_spec='${libname}${release}${shared_ext}$major' 15042 shlibpath_var=LD_LIBRARY_PATH 15043 shlibpath_overrides_runpath=yes 15044 hardcode_into_libs=yes 15045 # ldd complains unless libraries are executable 15046 postinstall_cmds='chmod +x $lib' 15047 ;; 15048 15049sunos4*) 15050 version_type=sunos 15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15053 shlibpath_var=LD_LIBRARY_PATH 15054 shlibpath_overrides_runpath=yes 15055 if test "$with_gnu_ld" = yes; then 15056 need_lib_prefix=no 15057 fi 15058 need_version=yes 15059 ;; 15060 15061sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15062 version_type=linux 15063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15064 soname_spec='${libname}${release}${shared_ext}$major' 15065 shlibpath_var=LD_LIBRARY_PATH 15066 case $host_vendor in 15067 sni) 15068 shlibpath_overrides_runpath=no 15069 need_lib_prefix=no 15070 export_dynamic_flag_spec='${wl}-Blargedynsym' 15071 runpath_var=LD_RUN_PATH 15072 ;; 15073 siemens) 15074 need_lib_prefix=no 15075 ;; 15076 motorola) 15077 need_lib_prefix=no 15078 need_version=no 15079 shlibpath_overrides_runpath=no 15080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15081 ;; 15082 esac 15083 ;; 15084 15085sysv4*MP*) 15086 if test -d /usr/nec ;then 15087 version_type=linux 15088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15089 soname_spec='$libname${shared_ext}.$major' 15090 shlibpath_var=LD_LIBRARY_PATH 15091 fi 15092 ;; 15093 15094uts4*) 15095 version_type=linux 15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15097 soname_spec='${libname}${release}${shared_ext}$major' 15098 shlibpath_var=LD_LIBRARY_PATH 15099 ;; 15100 15101*) 15102 dynamic_linker=no 15103 ;; 15104esac 15105echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15106echo "${ECHO_T}$dynamic_linker" >&6 15107test "$dynamic_linker" = no && can_build_shared=no 15108 15109echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15110echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15111hardcode_action_F77= 15112if test -n "$hardcode_libdir_flag_spec_F77" || \ 15113 test -n "$runpath_var F77" || \ 15114 test "X$hardcode_automatic_F77"="Xyes" ; then 15115 15116 # We can hardcode non-existant directories. 15117 if test "$hardcode_direct_F77" != no && 15118 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15119 # have to relink, otherwise we might link with an installed library 15120 # when we should be linking with a yet-to-be-installed one 15121 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15122 test "$hardcode_minus_L_F77" != no; then 15123 # Linking always hardcodes the temporary library directory. 15124 hardcode_action_F77=relink 15125 else 15126 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15127 hardcode_action_F77=immediate 15128 fi 15129else 15130 # We cannot hardcode anything, or else we can only hardcode existing 15131 # directories. 15132 hardcode_action_F77=unsupported 15133fi 15134echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15135echo "${ECHO_T}$hardcode_action_F77" >&6 15136 15137if test "$hardcode_action_F77" = relink; then 15138 # Fast installation is not supported 15139 enable_fast_install=no 15140elif test "$shlibpath_overrides_runpath" = yes || 15141 test "$enable_shared" = no; then 15142 # Fast installation is not necessary 15143 enable_fast_install=needless 15144fi 15145 15146striplib= 15147old_striplib= 15148echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15149echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15150if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15151 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15152 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15153 echo "$as_me:$LINENO: result: yes" >&5 15154echo "${ECHO_T}yes" >&6 15155else 15156# FIXME - insert some real tests, host_os isn't really good enough 15157 case $host_os in 15158 darwin*) 15159 if test -n "$STRIP" ; then 15160 striplib="$STRIP -x" 15161 echo "$as_me:$LINENO: result: yes" >&5 15162echo "${ECHO_T}yes" >&6 15163 else 15164 echo "$as_me:$LINENO: result: no" >&5 15165echo "${ECHO_T}no" >&6 15166fi 15167 ;; 15168 *) 15169 echo "$as_me:$LINENO: result: no" >&5 15170echo "${ECHO_T}no" >&6 15171 ;; 15172 esac 15173fi 15174 15175 15176 15177# The else clause should only fire when bootstrapping the 15178# libtool distribution, otherwise you forgot to ship ltmain.sh 15179# with your package, and you will get complaints that there are 15180# no rules to generate ltmain.sh. 15181if test -f "$ltmain"; then 15182 # See if we are running on zsh, and set the options which allow our commands through 15183 # without removal of \ escapes. 15184 if test -n "${ZSH_VERSION+set}" ; then 15185 setopt NO_GLOB_SUBST 15186 fi 15187 # Now quote all the things that may contain metacharacters while being 15188 # careful not to overquote the AC_SUBSTed values. We take copies of the 15189 # variables and quote the copies for generation of the libtool script. 15190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15191 SED SHELL STRIP \ 15192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15194 deplibs_check_method reload_flag reload_cmds need_locks \ 15195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15196 lt_cv_sys_global_symbol_to_c_name_address \ 15197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15198 old_postinstall_cmds old_postuninstall_cmds \ 15199 compiler_F77 \ 15200 CC_F77 \ 15201 LD_F77 \ 15202 lt_prog_compiler_wl_F77 \ 15203 lt_prog_compiler_pic_F77 \ 15204 lt_prog_compiler_static_F77 \ 15205 lt_prog_compiler_no_builtin_flag_F77 \ 15206 export_dynamic_flag_spec_F77 \ 15207 thread_safe_flag_spec_F77 \ 15208 whole_archive_flag_spec_F77 \ 15209 enable_shared_with_static_runtimes_F77 \ 15210 old_archive_cmds_F77 \ 15211 old_archive_from_new_cmds_F77 \ 15212 predep_objects_F77 \ 15213 postdep_objects_F77 \ 15214 predeps_F77 \ 15215 postdeps_F77 \ 15216 compiler_lib_search_path_F77 \ 15217 archive_cmds_F77 \ 15218 archive_expsym_cmds_F77 \ 15219 postinstall_cmds_F77 \ 15220 postuninstall_cmds_F77 \ 15221 old_archive_from_expsyms_cmds_F77 \ 15222 allow_undefined_flag_F77 \ 15223 no_undefined_flag_F77 \ 15224 export_symbols_cmds_F77 \ 15225 hardcode_libdir_flag_spec_F77 \ 15226 hardcode_libdir_flag_spec_ld_F77 \ 15227 hardcode_libdir_separator_F77 \ 15228 hardcode_automatic_F77 \ 15229 module_cmds_F77 \ 15230 module_expsym_cmds_F77 \ 15231 lt_cv_prog_compiler_c_o_F77 \ 15232 exclude_expsyms_F77 \ 15233 include_expsyms_F77; do 15234 15235 case $var in 15236 old_archive_cmds_F77 | \ 15237 old_archive_from_new_cmds_F77 | \ 15238 archive_cmds_F77 | \ 15239 archive_expsym_cmds_F77 | \ 15240 module_cmds_F77 | \ 15241 module_expsym_cmds_F77 | \ 15242 old_archive_from_expsyms_cmds_F77 | \ 15243 export_symbols_cmds_F77 | \ 15244 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15245 postinstall_cmds | postuninstall_cmds | \ 15246 old_postinstall_cmds | old_postuninstall_cmds | \ 15247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15248 # Double-quote double-evaled strings. 15249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15250 ;; 15251 *) 15252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15253 ;; 15254 esac 15255 done 15256 15257 case $lt_echo in 15258 *'\$0 --fallback-echo"') 15259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15260 ;; 15261 esac 15262 15263cfgfile="$ofile" 15264 15265 cat <<__EOF__ >> "$cfgfile" 15266# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15267 15268# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15269 15270# Shell to use when invoking shell scripts. 15271SHELL=$lt_SHELL 15272 15273# Whether or not to build shared libraries. 15274build_libtool_libs=$enable_shared 15275 15276# Whether or not to build static libraries. 15277build_old_libs=$enable_static 15278 15279# Whether or not to add -lc for building shared libraries. 15280build_libtool_need_lc=$archive_cmds_need_lc_F77 15281 15282# Whether or not to disallow shared libs when runtime libs are static 15283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15284 15285# Whether or not to optimize for fast installation. 15286fast_install=$enable_fast_install 15287 15288# The host system. 15289host_alias=$host_alias 15290host=$host 15291 15292# An echo program that does not interpret backslashes. 15293echo=$lt_echo 15294 15295# The archiver. 15296AR=$lt_AR 15297AR_FLAGS=$lt_AR_FLAGS 15298 15299# A C compiler. 15300LTCC=$lt_LTCC 15301 15302# A language-specific compiler. 15303CC=$lt_compiler_F77 15304 15305# Is the compiler the GNU C compiler? 15306with_gcc=$GCC_F77 15307 15308# An ERE matcher. 15309EGREP=$lt_EGREP 15310 15311# The linker used to build libraries. 15312LD=$lt_LD_F77 15313 15314# Whether we need hard or soft links. 15315LN_S=$lt_LN_S 15316 15317# A BSD-compatible nm program. 15318NM=$lt_NM 15319 15320# A symbol stripping program 15321STRIP=$lt_STRIP 15322 15323# Used to examine libraries when file_magic_cmd begins "file" 15324MAGIC_CMD=$MAGIC_CMD 15325 15326# Used on cygwin: DLL creation program. 15327DLLTOOL="$DLLTOOL" 15328 15329# Used on cygwin: object dumper. 15330OBJDUMP="$OBJDUMP" 15331 15332# Used on cygwin: assembler. 15333AS="$AS" 15334 15335# The name of the directory that contains temporary libtool files. 15336objdir=$objdir 15337 15338# How to create reloadable object files. 15339reload_flag=$lt_reload_flag 15340reload_cmds=$lt_reload_cmds 15341 15342# How to pass a linker flag through the compiler. 15343wl=$lt_lt_prog_compiler_wl_F77 15344 15345# Object file suffix (normally "o"). 15346objext="$ac_objext" 15347 15348# Old archive suffix (normally "a"). 15349libext="$libext" 15350 15351# Shared library suffix (normally ".so"). 15352shrext_cmds='$shrext_cmds' 15353 15354# Executable file suffix (normally ""). 15355exeext="$exeext" 15356 15357# Additional compiler flags for building library objects. 15358pic_flag=$lt_lt_prog_compiler_pic_F77 15359pic_mode=$pic_mode 15360 15361# What is the maximum length of a command? 15362max_cmd_len=$lt_cv_sys_max_cmd_len 15363 15364# Does compiler simultaneously support -c and -o options? 15365compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15366 15367# Must we lock files when doing compilation ? 15368need_locks=$lt_need_locks 15369 15370# Do we need the lib prefix for modules? 15371need_lib_prefix=$need_lib_prefix 15372 15373# Do we need a version for libraries? 15374need_version=$need_version 15375 15376# Whether dlopen is supported. 15377dlopen_support=$enable_dlopen 15378 15379# Whether dlopen of programs is supported. 15380dlopen_self=$enable_dlopen_self 15381 15382# Whether dlopen of statically linked programs is supported. 15383dlopen_self_static=$enable_dlopen_self_static 15384 15385# Compiler flag to prevent dynamic linking. 15386link_static_flag=$lt_lt_prog_compiler_static_F77 15387 15388# Compiler flag to turn off builtin functions. 15389no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15390 15391# Compiler flag to allow reflexive dlopens. 15392export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15393 15394# Compiler flag to generate shared objects directly from archives. 15395whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15396 15397# Compiler flag to generate thread-safe objects. 15398thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15399 15400# Library versioning type. 15401version_type=$version_type 15402 15403# Format of library name prefix. 15404libname_spec=$lt_libname_spec 15405 15406# List of archive names. First name is the real one, the rest are links. 15407# The last name is the one that the linker finds with -lNAME. 15408library_names_spec=$lt_library_names_spec 15409 15410# The coded name of the library, if different from the real name. 15411soname_spec=$lt_soname_spec 15412 15413# Commands used to build and install an old-style archive. 15414RANLIB=$lt_RANLIB 15415old_archive_cmds=$lt_old_archive_cmds_F77 15416old_postinstall_cmds=$lt_old_postinstall_cmds 15417old_postuninstall_cmds=$lt_old_postuninstall_cmds 15418 15419# Create an old-style archive from a shared archive. 15420old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15421 15422# Create a temporary old-style archive to link instead of a shared archive. 15423old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15424 15425# Commands used to build and install a shared archive. 15426archive_cmds=$lt_archive_cmds_F77 15427archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15428postinstall_cmds=$lt_postinstall_cmds 15429postuninstall_cmds=$lt_postuninstall_cmds 15430 15431# Commands used to build a loadable module (assumed same as above if empty) 15432module_cmds=$lt_module_cmds_F77 15433module_expsym_cmds=$lt_module_expsym_cmds_F77 15434 15435# Commands to strip libraries. 15436old_striplib=$lt_old_striplib 15437striplib=$lt_striplib 15438 15439# Dependencies to place before the objects being linked to create a 15440# shared library. 15441predep_objects=$lt_predep_objects_F77 15442 15443# Dependencies to place after the objects being linked to create a 15444# shared library. 15445postdep_objects=$lt_postdep_objects_F77 15446 15447# Dependencies to place before the objects being linked to create a 15448# shared library. 15449predeps=$lt_predeps_F77 15450 15451# Dependencies to place after the objects being linked to create a 15452# shared library. 15453postdeps=$lt_postdeps_F77 15454 15455# The library search path used internally by the compiler when linking 15456# a shared library. 15457compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15458 15459# Method to check whether dependent libraries are shared objects. 15460deplibs_check_method=$lt_deplibs_check_method 15461 15462# Command to use when deplibs_check_method == file_magic. 15463file_magic_cmd=$lt_file_magic_cmd 15464 15465# Flag that allows shared libraries with undefined symbols to be built. 15466allow_undefined_flag=$lt_allow_undefined_flag_F77 15467 15468# Flag that forces no undefined symbols. 15469no_undefined_flag=$lt_no_undefined_flag_F77 15470 15471# Commands used to finish a libtool library installation in a directory. 15472finish_cmds=$lt_finish_cmds 15473 15474# Same as above, but a single script fragment to be evaled but not shown. 15475finish_eval=$lt_finish_eval 15476 15477# Take the output of nm and produce a listing of raw symbols and C names. 15478global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15479 15480# Transform the output of nm in a proper C declaration 15481global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15482 15483# Transform the output of nm in a C name address pair 15484global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15485 15486# This is the shared library runtime path variable. 15487runpath_var=$runpath_var 15488 15489# This is the shared library path variable. 15490shlibpath_var=$shlibpath_var 15491 15492# Is shlibpath searched before the hard-coded library search path? 15493shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15494 15495# How to hardcode a shared library path into an executable. 15496hardcode_action=$hardcode_action_F77 15497 15498# Whether we should hardcode library paths into libraries. 15499hardcode_into_libs=$hardcode_into_libs 15500 15501# Flag to hardcode \$libdir into a binary during linking. 15502# This must work even if \$libdir does not exist. 15503hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15504 15505# If ld is used when linking, flag to hardcode \$libdir into 15506# a binary during linking. This must work even if \$libdir does 15507# not exist. 15508hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15509 15510# Whether we need a single -rpath flag with a separated argument. 15511hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15512 15513# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15514# resulting binary. 15515hardcode_direct=$hardcode_direct_F77 15516 15517# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15518# resulting binary. 15519hardcode_minus_L=$hardcode_minus_L_F77 15520 15521# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15522# the resulting binary. 15523hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15524 15525# Set to yes if building a shared library automatically hardcodes DIR into the library 15526# and all subsequent libraries and executables linked against it. 15527hardcode_automatic=$hardcode_automatic_F77 15528 15529# Variables whose values should be saved in libtool wrapper scripts and 15530# restored at relink time. 15531variables_saved_for_relink="$variables_saved_for_relink" 15532 15533# Whether libtool must link a program against all its dependency libraries. 15534link_all_deplibs=$link_all_deplibs_F77 15535 15536# Compile-time system search path for libraries 15537sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15538 15539# Run-time system search path for libraries 15540sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15541 15542# Fix the shell variable \$srcfile for the compiler. 15543fix_srcfile_path="$fix_srcfile_path_F77" 15544 15545# Set to yes if exported symbols are required. 15546always_export_symbols=$always_export_symbols_F77 15547 15548# The commands to list exported symbols. 15549export_symbols_cmds=$lt_export_symbols_cmds_F77 15550 15551# The commands to extract the exported symbol list from a shared archive. 15552extract_expsyms_cmds=$lt_extract_expsyms_cmds 15553 15554# Symbols that should not be listed in the preloaded symbols. 15555exclude_expsyms=$lt_exclude_expsyms_F77 15556 15557# Symbols that must always be exported. 15558include_expsyms=$lt_include_expsyms_F77 15559 15560# ### END LIBTOOL TAG CONFIG: $tagname 15561 15562__EOF__ 15563 15564 15565else 15566 # If there is no Makefile yet, we rely on a make rule to execute 15567 # `config.status --recheck' to rerun these tests and create the 15568 # libtool script then. 15569 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15570 if test -f "$ltmain_in"; then 15571 test -f Makefile && make "$ltmain" 15572 fi 15573fi 15574 15575 15576ac_ext=c 15577ac_cpp='$CPP $CPPFLAGS' 15578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15580ac_compiler_gnu=$ac_cv_c_compiler_gnu 15581 15582CC="$lt_save_CC" 15583 15584 else 15585 tagname="" 15586 fi 15587 ;; 15588 15589 GCJ) 15590 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 15591 15592 15593 15594# Source file extension for Java test sources. 15595ac_ext=java 15596 15597# Object file extension for compiled Java test sources. 15598objext=o 15599objext_GCJ=$objext 15600 15601# Code to be used in simple compile tests 15602lt_simple_compile_test_code="class foo {}\n" 15603 15604# Code to be used in simple link tests 15605lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 15606 15607# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15608 15609# If no C compiler was specified, use CC. 15610LTCC=${LTCC-"$CC"} 15611 15612# Allow CC to be a program name with arguments. 15613compiler=$CC 15614 15615 15616# Allow CC to be a program name with arguments. 15617lt_save_CC="$CC" 15618CC=${GCJ-"gcj"} 15619compiler=$CC 15620compiler_GCJ=$CC 15621 15622# GCJ did not exist at the time GCC didn't implicitly link libc in. 15623archive_cmds_need_lc_GCJ=no 15624 15625 15626lt_prog_compiler_no_builtin_flag_GCJ= 15627 15628if test "$GCC" = yes; then 15629 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 15630 15631 15632echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15633echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 15634if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 15635 echo $ECHO_N "(cached) $ECHO_C" >&6 15636else 15637 lt_cv_prog_compiler_rtti_exceptions=no 15638 ac_outfile=conftest.$ac_objext 15639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15640 lt_compiler_flag="-fno-rtti -fno-exceptions" 15641 # Insert the option either (1) after the last *FLAGS variable, or 15642 # (2) before a word containing "conftest.", or (3) at the end. 15643 # Note that $ac_compile itself does not contain backslashes and begins 15644 # with a dollar sign (not a hyphen), so the echo should work correctly. 15645 # The option is referenced via a variable to avoid confusing sed. 15646 lt_compile=`echo "$ac_compile" | $SED \ 15647 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15649 -e 's:$: $lt_compiler_flag:'` 15650 (eval echo "\"\$as_me:15650: $lt_compile\"" >&5) 15651 (eval "$lt_compile" 2>conftest.err) 15652 ac_status=$? 15653 cat conftest.err >&5 15654 echo "$as_me:15654: \$? = $ac_status" >&5 15655 if (exit $ac_status) && test -s "$ac_outfile"; then 15656 # The compiler can only warn and ignore the option if not recognized 15657 # So say no if there are warnings 15658 if test ! -s conftest.err; then 15659 lt_cv_prog_compiler_rtti_exceptions=yes 15660 fi 15661 fi 15662 $rm conftest* 15663 15664fi 15665echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15666echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15667 15668if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15669 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15670else 15671 : 15672fi 15673 15674fi 15675 15676lt_prog_compiler_wl_GCJ= 15677lt_prog_compiler_pic_GCJ= 15678lt_prog_compiler_static_GCJ= 15679 15680echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15681echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15682 15683 if test "$GCC" = yes; then 15684 lt_prog_compiler_wl_GCJ='-Wl,' 15685 lt_prog_compiler_static_GCJ='-static' 15686 15687 case $host_os in 15688 aix*) 15689 # All AIX code is PIC. 15690 if test "$host_cpu" = ia64; then 15691 # AIX 5 now supports IA64 processor 15692 lt_prog_compiler_static_GCJ='-Bstatic' 15693 fi 15694 ;; 15695 15696 amigaos*) 15697 # FIXME: we need at least 68020 code to build shared libraries, but 15698 # adding the `-m68020' flag to GCC prevents building anything better, 15699 # like `-m68040'. 15700 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15701 ;; 15702 15703 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15704 # PIC is the default for these OSes. 15705 ;; 15706 15707 mingw* | pw32* | os2*) 15708 # This hack is so that the source file can tell whether it is being 15709 # built for inclusion in a dll (and should export symbols for example). 15710 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15711 ;; 15712 15713 darwin* | rhapsody*) 15714 # PIC is the default on this platform 15715 # Common symbols not allowed in MH_DYLIB files 15716 lt_prog_compiler_pic_GCJ='-fno-common' 15717 ;; 15718 15719 msdosdjgpp*) 15720 # Just because we use GCC doesn't mean we suddenly get shared libraries 15721 # on systems that don't support them. 15722 lt_prog_compiler_can_build_shared_GCJ=no 15723 enable_shared=no 15724 ;; 15725 15726 sysv4*MP*) 15727 if test -d /usr/nec; then 15728 lt_prog_compiler_pic_GCJ=-Kconform_pic 15729 fi 15730 ;; 15731 15732 hpux*) 15733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15734 # not for PA HP-UX. 15735 case "$host_cpu" in 15736 hppa*64*|ia64*) 15737 # +Z the default 15738 ;; 15739 *) 15740 lt_prog_compiler_pic_GCJ='-fPIC' 15741 ;; 15742 esac 15743 ;; 15744 15745 *) 15746 lt_prog_compiler_pic_GCJ='-fPIC' 15747 ;; 15748 esac 15749 else 15750 # PORTME Check for flag to pass linker flags through the system compiler. 15751 case $host_os in 15752 aix*) 15753 lt_prog_compiler_wl_GCJ='-Wl,' 15754 if test "$host_cpu" = ia64; then 15755 # AIX 5 now supports IA64 processor 15756 lt_prog_compiler_static_GCJ='-Bstatic' 15757 else 15758 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15759 fi 15760 ;; 15761 15762 mingw* | pw32* | os2*) 15763 # This hack is so that the source file can tell whether it is being 15764 # built for inclusion in a dll (and should export symbols for example). 15765 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15766 ;; 15767 15768 hpux9* | hpux10* | hpux11*) 15769 lt_prog_compiler_wl_GCJ='-Wl,' 15770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15771 # not for PA HP-UX. 15772 case "$host_cpu" in 15773 hppa*64*|ia64*) 15774 # +Z the default 15775 ;; 15776 *) 15777 lt_prog_compiler_pic_GCJ='+Z' 15778 ;; 15779 esac 15780 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15781 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15782 ;; 15783 15784 irix5* | irix6* | nonstopux*) 15785 lt_prog_compiler_wl_GCJ='-Wl,' 15786 # PIC (with -KPIC) is the default. 15787 lt_prog_compiler_static_GCJ='-non_shared' 15788 ;; 15789 15790 newsos6) 15791 lt_prog_compiler_pic_GCJ='-KPIC' 15792 lt_prog_compiler_static_GCJ='-Bstatic' 15793 ;; 15794 15795 linux*) 15796 case $CC in 15797 icc* | ecc*) 15798 lt_prog_compiler_wl_GCJ='-Wl,' 15799 lt_prog_compiler_pic_GCJ='-KPIC' 15800 lt_prog_compiler_static_GCJ='-static' 15801 ;; 15802 ccc*) 15803 lt_prog_compiler_wl_GCJ='-Wl,' 15804 # All Alpha code is PIC. 15805 lt_prog_compiler_static_GCJ='-non_shared' 15806 ;; 15807 esac 15808 ;; 15809 15810 osf3* | osf4* | osf5*) 15811 lt_prog_compiler_wl_GCJ='-Wl,' 15812 # All OSF/1 code is PIC. 15813 lt_prog_compiler_static_GCJ='-non_shared' 15814 ;; 15815 15816 sco3.2v5*) 15817 lt_prog_compiler_pic_GCJ='-Kpic' 15818 lt_prog_compiler_static_GCJ='-dn' 15819 ;; 15820 15821 solaris*) 15822 lt_prog_compiler_wl_GCJ='-Wl,' 15823 lt_prog_compiler_pic_GCJ='-KPIC' 15824 lt_prog_compiler_static_GCJ='-Bstatic' 15825 ;; 15826 15827 sunos4*) 15828 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15829 lt_prog_compiler_pic_GCJ='-PIC' 15830 lt_prog_compiler_static_GCJ='-Bstatic' 15831 ;; 15832 15833 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15834 lt_prog_compiler_wl_GCJ='-Wl,' 15835 lt_prog_compiler_pic_GCJ='-KPIC' 15836 lt_prog_compiler_static_GCJ='-Bstatic' 15837 ;; 15838 15839 sysv4*MP*) 15840 if test -d /usr/nec ;then 15841 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15842 lt_prog_compiler_static_GCJ='-Bstatic' 15843 fi 15844 ;; 15845 15846 uts4*) 15847 lt_prog_compiler_pic_GCJ='-pic' 15848 lt_prog_compiler_static_GCJ='-Bstatic' 15849 ;; 15850 15851 *) 15852 lt_prog_compiler_can_build_shared_GCJ=no 15853 ;; 15854 esac 15855 fi 15856 15857echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15858echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15859 15860# 15861# Check to make sure the PIC flag actually works. 15862# 15863if test -n "$lt_prog_compiler_pic_GCJ"; then 15864 15865echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15866echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15867if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15868 echo $ECHO_N "(cached) $ECHO_C" >&6 15869else 15870 lt_prog_compiler_pic_works_GCJ=no 15871 ac_outfile=conftest.$ac_objext 15872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15873 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15874 # Insert the option either (1) after the last *FLAGS variable, or 15875 # (2) before a word containing "conftest.", or (3) at the end. 15876 # Note that $ac_compile itself does not contain backslashes and begins 15877 # with a dollar sign (not a hyphen), so the echo should work correctly. 15878 # The option is referenced via a variable to avoid confusing sed. 15879 lt_compile=`echo "$ac_compile" | $SED \ 15880 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15882 -e 's:$: $lt_compiler_flag:'` 15883 (eval echo "\"\$as_me:15883: $lt_compile\"" >&5) 15884 (eval "$lt_compile" 2>conftest.err) 15885 ac_status=$? 15886 cat conftest.err >&5 15887 echo "$as_me:15887: \$? = $ac_status" >&5 15888 if (exit $ac_status) && test -s "$ac_outfile"; then 15889 # The compiler can only warn and ignore the option if not recognized 15890 # So say no if there are warnings 15891 if test ! -s conftest.err; then 15892 lt_prog_compiler_pic_works_GCJ=yes 15893 fi 15894 fi 15895 $rm conftest* 15896 15897fi 15898echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15899echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15900 15901if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15902 case $lt_prog_compiler_pic_GCJ in 15903 "" | " "*) ;; 15904 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15905 esac 15906else 15907 lt_prog_compiler_pic_GCJ= 15908 lt_prog_compiler_can_build_shared_GCJ=no 15909fi 15910 15911fi 15912case "$host_os" in 15913 # For platforms which do not support PIC, -DPIC is meaningless: 15914 *djgpp*) 15915 lt_prog_compiler_pic_GCJ= 15916 ;; 15917 *) 15918 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15919 ;; 15920esac 15921 15922echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15923echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15924if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15925 echo $ECHO_N "(cached) $ECHO_C" >&6 15926else 15927 lt_cv_prog_compiler_c_o_GCJ=no 15928 $rm -r conftest 2>/dev/null 15929 mkdir conftest 15930 cd conftest 15931 mkdir out 15932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15933 15934 lt_compiler_flag="-o out/conftest2.$ac_objext" 15935 # Insert the option either (1) after the last *FLAGS variable, or 15936 # (2) before a word containing "conftest.", or (3) at the end. 15937 # Note that $ac_compile itself does not contain backslashes and begins 15938 # with a dollar sign (not a hyphen), so the echo should work correctly. 15939 lt_compile=`echo "$ac_compile" | $SED \ 15940 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15942 -e 's:$: $lt_compiler_flag:'` 15943 (eval echo "\"\$as_me:15943: $lt_compile\"" >&5) 15944 (eval "$lt_compile" 2>out/conftest.err) 15945 ac_status=$? 15946 cat out/conftest.err >&5 15947 echo "$as_me:15947: \$? = $ac_status" >&5 15948 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15949 then 15950 # The compiler can only warn and ignore the option if not recognized 15951 # So say no if there are warnings 15952 if test ! -s out/conftest.err; then 15953 lt_cv_prog_compiler_c_o_GCJ=yes 15954 fi 15955 fi 15956 chmod u+w . 15957 $rm conftest* 15958 # SGI C++ compiler will create directory out/ii_files/ for 15959 # template instantiation 15960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15961 $rm out/* && rmdir out 15962 cd .. 15963 rmdir conftest 15964 $rm conftest* 15965 15966fi 15967echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15968echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15969 15970 15971hard_links="nottested" 15972if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15973 # do not overwrite the value of need_locks provided by the user 15974 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15975echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15976 hard_links=yes 15977 $rm conftest* 15978 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15979 touch conftest.a 15980 ln conftest.a conftest.b 2>&5 || hard_links=no 15981 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15982 echo "$as_me:$LINENO: result: $hard_links" >&5 15983echo "${ECHO_T}$hard_links" >&6 15984 if test "$hard_links" = no; then 15985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15986echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15987 need_locks=warn 15988 fi 15989else 15990 need_locks=no 15991fi 15992 15993echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15994echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15995 15996 runpath_var= 15997 allow_undefined_flag_GCJ= 15998 enable_shared_with_static_runtimes_GCJ=no 15999 archive_cmds_GCJ= 16000 archive_expsym_cmds_GCJ= 16001 old_archive_From_new_cmds_GCJ= 16002 old_archive_from_expsyms_cmds_GCJ= 16003 export_dynamic_flag_spec_GCJ= 16004 whole_archive_flag_spec_GCJ= 16005 thread_safe_flag_spec_GCJ= 16006 hardcode_libdir_flag_spec_GCJ= 16007 hardcode_libdir_flag_spec_ld_GCJ= 16008 hardcode_libdir_separator_GCJ= 16009 hardcode_direct_GCJ=no 16010 hardcode_minus_L_GCJ=no 16011 hardcode_shlibpath_var_GCJ=unsupported 16012 link_all_deplibs_GCJ=unknown 16013 hardcode_automatic_GCJ=no 16014 module_cmds_GCJ= 16015 module_expsym_cmds_GCJ= 16016 always_export_symbols_GCJ=no 16017 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16018 # include_expsyms should be a list of space-separated symbols to be *always* 16019 # included in the symbol list 16020 include_expsyms_GCJ= 16021 # exclude_expsyms can be an extended regexp of symbols to exclude 16022 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16023 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16024 # as well as any symbol that contains `d'. 16025 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16026 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16027 # platforms (ab)use it in PIC code, but their linkers get confused if 16028 # the symbol is explicitly referenced. Since portable code cannot 16029 # rely on this symbol name, it's probably fine to never include it in 16030 # preloaded symbol tables. 16031 extract_expsyms_cmds= 16032 16033 case $host_os in 16034 cygwin* | mingw* | pw32*) 16035 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16036 # When not using gcc, we currently assume that we are using 16037 # Microsoft Visual C++. 16038 if test "$GCC" != yes; then 16039 with_gnu_ld=no 16040 fi 16041 ;; 16042 openbsd*) 16043 with_gnu_ld=no 16044 ;; 16045 esac 16046 16047 ld_shlibs_GCJ=yes 16048 if test "$with_gnu_ld" = yes; then 16049 # If archive_cmds runs LD, not CC, wlarc should be empty 16050 wlarc='${wl}' 16051 16052 # See if GNU ld supports shared libraries. 16053 case $host_os in 16054 aix3* | aix4* | aix5*) 16055 # On AIX/PPC, the GNU linker is very broken 16056 if test "$host_cpu" != ia64; then 16057 ld_shlibs_GCJ=no 16058 cat <<EOF 1>&2 16059 16060*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16061*** to be unable to reliably create shared libraries on AIX. 16062*** Therefore, libtool is disabling shared libraries support. If you 16063*** really care for shared libraries, you may want to modify your PATH 16064*** so that a non-GNU linker is found, and then restart. 16065 16066EOF 16067 fi 16068 ;; 16069 16070 amigaos*) 16071 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)' 16072 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16073 hardcode_minus_L_GCJ=yes 16074 16075 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16076 # that the semantics of dynamic libraries on AmigaOS, at least up 16077 # to version 4, is to share data among multiple programs linked 16078 # with the same dynamic library. Since this doesn't match the 16079 # behavior of shared libraries on other platforms, we can't use 16080 # them. 16081 ld_shlibs_GCJ=no 16082 ;; 16083 16084 beos*) 16085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16086 allow_undefined_flag_GCJ=unsupported 16087 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16088 # support --undefined. This deserves some investigation. FIXME 16089 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16090 else 16091 ld_shlibs_GCJ=no 16092 fi 16093 ;; 16094 16095 cygwin* | mingw* | pw32*) 16096 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16097 # as there is no search path for DLLs. 16098 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16099 allow_undefined_flag_GCJ=unsupported 16100 always_export_symbols_GCJ=no 16101 enable_shared_with_static_runtimes_GCJ=yes 16102 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16103 16104 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16105 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16106 # If the export-symbols file already is a .def file (1st line 16107 # is EXPORTS), use it as is; otherwise, prepend... 16108 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16109 cp $export_symbols $output_objdir/$soname.def; 16110 else 16111 echo EXPORTS > $output_objdir/$soname.def; 16112 cat $export_symbols >> $output_objdir/$soname.def; 16113 fi~ 16114 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16115 else 16116 ld_shlibs=no 16117 fi 16118 ;; 16119 16120 netbsd*) 16121 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16122 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16123 wlarc= 16124 else 16125 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16126 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16127 fi 16128 ;; 16129 16130 solaris* | sysv5*) 16131 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16132 ld_shlibs_GCJ=no 16133 cat <<EOF 1>&2 16134 16135*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16136*** create shared libraries on Solaris systems. Therefore, libtool 16137*** is disabling shared libraries support. We urge you to upgrade GNU 16138*** binutils to release 2.9.1 or newer. Another option is to modify 16139*** your PATH or compiler configuration so that the native linker is 16140*** used, and then restart. 16141 16142EOF 16143 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16144 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16145 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16146 else 16147 ld_shlibs_GCJ=no 16148 fi 16149 ;; 16150 16151 sunos4*) 16152 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16153 wlarc= 16154 hardcode_direct_GCJ=yes 16155 hardcode_shlibpath_var_GCJ=no 16156 ;; 16157 16158 linux*) 16159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16160 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16161 archive_cmds_GCJ="$tmp_archive_cmds" 16162 supports_anon_versioning=no 16163 case `$LD -v 2>/dev/null` in 16164 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16167 *\ 2.11.*) ;; # other 2.11 versions 16168 *) supports_anon_versioning=yes ;; 16169 esac 16170 if test $supports_anon_versioning = yes; then 16171 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16172cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16173$echo "local: *; };" >> $output_objdir/$libname.ver~ 16174 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16175 else 16176 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 16177 fi 16178 else 16179 ld_shlibs_GCJ=no 16180 fi 16181 ;; 16182 16183 *) 16184 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16185 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16186 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16187 else 16188 ld_shlibs_GCJ=no 16189 fi 16190 ;; 16191 esac 16192 16193 if test "$ld_shlibs_GCJ" = yes; then 16194 runpath_var=LD_RUN_PATH 16195 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16196 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16197 # ancient GNU ld didn't support --whole-archive et. al. 16198 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16199 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16200 else 16201 whole_archive_flag_spec_GCJ= 16202 fi 16203 fi 16204 else 16205 # PORTME fill in a description of your system's linker (not GNU ld) 16206 case $host_os in 16207 aix3*) 16208 allow_undefined_flag_GCJ=unsupported 16209 always_export_symbols_GCJ=yes 16210 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' 16211 # Note: this linker hardcodes the directories in LIBPATH if there 16212 # are no directories specified by -L. 16213 hardcode_minus_L_GCJ=yes 16214 if test "$GCC" = yes && test -z "$link_static_flag"; then 16215 # Neither direct hardcoding nor static linking is supported with a 16216 # broken collect2. 16217 hardcode_direct_GCJ=unsupported 16218 fi 16219 ;; 16220 16221 aix4* | aix5*) 16222 if test "$host_cpu" = ia64; then 16223 # On IA64, the linker does run time linking by default, so we don't 16224 # have to do anything special. 16225 aix_use_runtimelinking=no 16226 exp_sym_flag='-Bexport' 16227 no_entry_flag="" 16228 else 16229 # If we're using GNU nm, then we don't want the "-C" option. 16230 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16231 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16232 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' 16233 else 16234 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' 16235 fi 16236 aix_use_runtimelinking=no 16237 16238 # Test if we are trying to use run time linking or normal 16239 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16240 # need to do runtime linking. 16241 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16242 for ld_flag in $LDFLAGS; do 16243 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16244 aix_use_runtimelinking=yes 16245 break 16246 fi 16247 done 16248 esac 16249 16250 exp_sym_flag='-bexport' 16251 no_entry_flag='-bnoentry' 16252 fi 16253 16254 # When large executables or shared objects are built, AIX ld can 16255 # have problems creating the table of contents. If linking a library 16256 # or program results in "error TOC overflow" add -mminimal-toc to 16257 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16258 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16259 16260 archive_cmds_GCJ='' 16261 hardcode_direct_GCJ=yes 16262 hardcode_libdir_separator_GCJ=':' 16263 link_all_deplibs_GCJ=yes 16264 16265 if test "$GCC" = yes; then 16266 case $host_os in aix4.012|aix4.012.*) 16267 # We only want to do this on AIX 4.2 and lower, the check 16268 # below for broken collect2 doesn't work under 4.3+ 16269 collect2name=`${CC} -print-prog-name=collect2` 16270 if test -f "$collect2name" && \ 16271 strings "$collect2name" | grep resolve_lib_name >/dev/null 16272 then 16273 # We have reworked collect2 16274 hardcode_direct_GCJ=yes 16275 else 16276 # We have old collect2 16277 hardcode_direct_GCJ=unsupported 16278 # It fails to find uninstalled libraries when the uninstalled 16279 # path is not listed in the libpath. Setting hardcode_minus_L 16280 # to unsupported forces relinking 16281 hardcode_minus_L_GCJ=yes 16282 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16283 hardcode_libdir_separator_GCJ= 16284 fi 16285 esac 16286 shared_flag='-shared' 16287 else 16288 # not using gcc 16289 if test "$host_cpu" = ia64; then 16290 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16291 # chokes on -Wl,-G. The following line is correct: 16292 shared_flag='-G' 16293 else 16294 if test "$aix_use_runtimelinking" = yes; then 16295 shared_flag='${wl}-G' 16296 else 16297 shared_flag='${wl}-bM:SRE' 16298 fi 16299 fi 16300 fi 16301 16302 # It seems that -bexpall does not export symbols beginning with 16303 # underscore (_), so it is better to generate a list of symbols to export. 16304 always_export_symbols_GCJ=yes 16305 if test "$aix_use_runtimelinking" = yes; then 16306 # Warning - without using the other runtime loading flags (-brtl), 16307 # -berok will link without error, but may produce a broken library. 16308 allow_undefined_flag_GCJ='-berok' 16309 # Determine the default libpath from the value encoded in an empty executable. 16310 cat >conftest.$ac_ext <<_ACEOF 16311/* confdefs.h. */ 16312_ACEOF 16313cat confdefs.h >>conftest.$ac_ext 16314cat >>conftest.$ac_ext <<_ACEOF 16315/* end confdefs.h. */ 16316 16317int 16318main () 16319{ 16320 16321 ; 16322 return 0; 16323} 16324_ACEOF 16325rm -f conftest.$ac_objext conftest$ac_exeext 16326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16327 (eval $ac_link) 2>conftest.er1 16328 ac_status=$? 16329 grep -v '^ *+' conftest.er1 >conftest.err 16330 rm -f conftest.er1 16331 cat conftest.err >&5 16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16333 (exit $ac_status); } && 16334 { ac_try='test -z "$ac_c_werror_flag" 16335 || test ! -s conftest.err' 16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16337 (eval $ac_try) 2>&5 16338 ac_status=$? 16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16340 (exit $ac_status); }; } && 16341 { ac_try='test -s conftest$ac_exeext' 16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16343 (eval $ac_try) 2>&5 16344 ac_status=$? 16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16346 (exit $ac_status); }; }; then 16347 16348aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16349}'` 16350# Check for a 64-bit object if we didn't find anything. 16351if 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; } 16352}'`; fi 16353else 16354 echo "$as_me: failed program was:" >&5 16355sed 's/^/| /' conftest.$ac_ext >&5 16356 16357fi 16358rm -f conftest.err conftest.$ac_objext \ 16359 conftest$ac_exeext conftest.$ac_ext 16360if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16361 16362 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16363 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" 16364 else 16365 if test "$host_cpu" = ia64; then 16366 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16367 allow_undefined_flag_GCJ="-z nodefs" 16368 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" 16369 else 16370 # Determine the default libpath from the value encoded in an empty executable. 16371 cat >conftest.$ac_ext <<_ACEOF 16372/* confdefs.h. */ 16373_ACEOF 16374cat confdefs.h >>conftest.$ac_ext 16375cat >>conftest.$ac_ext <<_ACEOF 16376/* end confdefs.h. */ 16377 16378int 16379main () 16380{ 16381 16382 ; 16383 return 0; 16384} 16385_ACEOF 16386rm -f conftest.$ac_objext conftest$ac_exeext 16387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16388 (eval $ac_link) 2>conftest.er1 16389 ac_status=$? 16390 grep -v '^ *+' conftest.er1 >conftest.err 16391 rm -f conftest.er1 16392 cat conftest.err >&5 16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16394 (exit $ac_status); } && 16395 { ac_try='test -z "$ac_c_werror_flag" 16396 || test ! -s conftest.err' 16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16398 (eval $ac_try) 2>&5 16399 ac_status=$? 16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16401 (exit $ac_status); }; } && 16402 { ac_try='test -s conftest$ac_exeext' 16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16404 (eval $ac_try) 2>&5 16405 ac_status=$? 16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16407 (exit $ac_status); }; }; then 16408 16409aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16410}'` 16411# Check for a 64-bit object if we didn't find anything. 16412if 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; } 16413}'`; fi 16414else 16415 echo "$as_me: failed program was:" >&5 16416sed 's/^/| /' conftest.$ac_ext >&5 16417 16418fi 16419rm -f conftest.err conftest.$ac_objext \ 16420 conftest$ac_exeext conftest.$ac_ext 16421if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16422 16423 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16424 # Warning - without using the other run time loading flags, 16425 # -berok will link without error, but may produce a broken library. 16426 no_undefined_flag_GCJ=' ${wl}-bernotok' 16427 allow_undefined_flag_GCJ=' ${wl}-berok' 16428 # -bexpall does not export symbols beginning with underscore (_) 16429 always_export_symbols_GCJ=yes 16430 # Exported symbols can be pulled into shared objects from archives 16431 whole_archive_flag_spec_GCJ=' ' 16432 archive_cmds_need_lc_GCJ=yes 16433 # This is similar to how AIX traditionally builds it's shared libraries. 16434 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' 16435 fi 16436 fi 16437 ;; 16438 16439 amigaos*) 16440 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)' 16441 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16442 hardcode_minus_L_GCJ=yes 16443 # see comment about different semantics on the GNU ld section 16444 ld_shlibs_GCJ=no 16445 ;; 16446 16447 bsdi4*) 16448 export_dynamic_flag_spec_GCJ=-rdynamic 16449 ;; 16450 16451 cygwin* | mingw* | pw32*) 16452 # When not using gcc, we currently assume that we are using 16453 # Microsoft Visual C++. 16454 # hardcode_libdir_flag_spec is actually meaningless, as there is 16455 # no search path for DLLs. 16456 hardcode_libdir_flag_spec_GCJ=' ' 16457 allow_undefined_flag_GCJ=unsupported 16458 # Tell ltmain to make .lib files, not .a files. 16459 libext=lib 16460 # Tell ltmain to make .dll files, not .so files. 16461 shrext_cmds=".dll" 16462 # FIXME: Setting linknames here is a bad hack. 16463 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16464 # The linker will automatically build a .lib file if we build a DLL. 16465 old_archive_From_new_cmds_GCJ='true' 16466 # FIXME: Should let the user specify the lib program. 16467 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 16468 fix_srcfile_path='`cygpath -w "$srcfile"`' 16469 enable_shared_with_static_runtimes_GCJ=yes 16470 ;; 16471 16472 darwin* | rhapsody*) 16473 if test "$GXX" = yes ; then 16474 archive_cmds_need_lc_GCJ=no 16475 case "$host_os" in 16476 rhapsody* | darwin1.[012]) 16477 allow_undefined_flag_GCJ='-undefined suppress' 16478 ;; 16479 *) # Darwin 1.3 on 16480 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16481 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16482 else 16483 case ${MACOSX_DEPLOYMENT_TARGET} in 16484 10.[012]) 16485 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 16486 ;; 16487 10.*) 16488 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 16489 ;; 16490 esac 16491 fi 16492 ;; 16493 esac 16494 lt_int_apple_cc_single_mod=no 16495 output_verbose_link_cmd='echo' 16496 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 16497 lt_int_apple_cc_single_mod=yes 16498 fi 16499 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16500 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 16501 else 16502 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' 16503 fi 16504 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16505 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16506 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16507 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}' 16508 else 16509 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}' 16510 fi 16511 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}' 16512 hardcode_direct_GCJ=no 16513 hardcode_automatic_GCJ=yes 16514 hardcode_shlibpath_var_GCJ=unsupported 16515 whole_archive_flag_spec_GCJ='-all_load $convenience' 16516 link_all_deplibs_GCJ=yes 16517 else 16518 ld_shlibs_GCJ=no 16519 fi 16520 ;; 16521 16522 dgux*) 16523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16524 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16525 hardcode_shlibpath_var_GCJ=no 16526 ;; 16527 16528 freebsd1*) 16529 ld_shlibs_GCJ=no 16530 ;; 16531 16532 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16533 # support. Future versions do this automatically, but an explicit c++rt0.o 16534 # does not break anything, and helps significantly (at the cost of a little 16535 # extra space). 16536 freebsd2.2*) 16537 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16538 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16539 hardcode_direct_GCJ=yes 16540 hardcode_shlibpath_var_GCJ=no 16541 ;; 16542 16543 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16544 freebsd2*) 16545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16546 hardcode_direct_GCJ=yes 16547 hardcode_minus_L_GCJ=yes 16548 hardcode_shlibpath_var_GCJ=no 16549 ;; 16550 16551 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16552 freebsd* | kfreebsd*-gnu) 16553 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16554 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16555 hardcode_direct_GCJ=yes 16556 hardcode_shlibpath_var_GCJ=no 16557 ;; 16558 16559 hpux9*) 16560 if test "$GCC" = yes; then 16561 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' 16562 else 16563 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' 16564 fi 16565 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16566 hardcode_libdir_separator_GCJ=: 16567 hardcode_direct_GCJ=yes 16568 16569 # hardcode_minus_L: Not really in the search PATH, 16570 # but as the default location of the library. 16571 hardcode_minus_L_GCJ=yes 16572 export_dynamic_flag_spec_GCJ='${wl}-E' 16573 ;; 16574 16575 hpux10* | hpux11*) 16576 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16577 case "$host_cpu" in 16578 hppa*64*|ia64*) 16579 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16580 ;; 16581 *) 16582 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16583 ;; 16584 esac 16585 else 16586 case "$host_cpu" in 16587 hppa*64*|ia64*) 16588 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16589 ;; 16590 *) 16591 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16592 ;; 16593 esac 16594 fi 16595 if test "$with_gnu_ld" = no; then 16596 case "$host_cpu" in 16597 hppa*64*) 16598 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16599 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 16600 hardcode_libdir_separator_GCJ=: 16601 hardcode_direct_GCJ=no 16602 hardcode_shlibpath_var_GCJ=no 16603 ;; 16604 ia64*) 16605 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16606 hardcode_direct_GCJ=no 16607 hardcode_shlibpath_var_GCJ=no 16608 16609 # hardcode_minus_L: Not really in the search PATH, 16610 # but as the default location of the library. 16611 hardcode_minus_L_GCJ=yes 16612 ;; 16613 *) 16614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 16615 hardcode_libdir_separator_GCJ=: 16616 hardcode_direct_GCJ=yes 16617 export_dynamic_flag_spec_GCJ='${wl}-E' 16618 16619 # hardcode_minus_L: Not really in the search PATH, 16620 # but as the default location of the library. 16621 hardcode_minus_L_GCJ=yes 16622 ;; 16623 esac 16624 fi 16625 ;; 16626 16627 irix5* | irix6* | nonstopux*) 16628 if test "$GCC" = yes; then 16629 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' 16630 else 16631 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' 16632 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 16633 fi 16634 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16635 hardcode_libdir_separator_GCJ=: 16636 link_all_deplibs_GCJ=yes 16637 ;; 16638 16639 netbsd*) 16640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16641 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16642 else 16643 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16644 fi 16645 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16646 hardcode_direct_GCJ=yes 16647 hardcode_shlibpath_var_GCJ=no 16648 ;; 16649 16650 newsos6) 16651 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16652 hardcode_direct_GCJ=yes 16653 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16654 hardcode_libdir_separator_GCJ=: 16655 hardcode_shlibpath_var_GCJ=no 16656 ;; 16657 16658 openbsd*) 16659 hardcode_direct_GCJ=yes 16660 hardcode_shlibpath_var_GCJ=no 16661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16662 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16664 export_dynamic_flag_spec_GCJ='${wl}-E' 16665 else 16666 case $host_os in 16667 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16668 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16669 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16670 ;; 16671 *) 16672 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16674 ;; 16675 esac 16676 fi 16677 ;; 16678 16679 os2*) 16680 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16681 hardcode_minus_L_GCJ=yes 16682 allow_undefined_flag_GCJ=unsupported 16683 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' 16684 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16685 ;; 16686 16687 osf3*) 16688 if test "$GCC" = yes; then 16689 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16690 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' 16691 else 16692 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16693 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' 16694 fi 16695 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16696 hardcode_libdir_separator_GCJ=: 16697 ;; 16698 16699 osf4* | osf5*) # as osf3* with the addition of -msym flag 16700 if test "$GCC" = yes; then 16701 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16702 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' 16703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16704 else 16705 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16706 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' 16707 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~ 16708 $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' 16709 16710 # Both c and cxx compiler support -rpath directly 16711 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16712 fi 16713 hardcode_libdir_separator_GCJ=: 16714 ;; 16715 16716 sco3.2v5*) 16717 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16718 hardcode_shlibpath_var_GCJ=no 16719 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16720 runpath_var=LD_RUN_PATH 16721 hardcode_runpath_var=yes 16722 ;; 16723 16724 solaris*) 16725 no_undefined_flag_GCJ=' -z text' 16726 if test "$GCC" = yes; then 16727 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16728 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16729 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16730 else 16731 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16732 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16734 fi 16735 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16736 hardcode_shlibpath_var_GCJ=no 16737 case $host_os in 16738 solaris2.[0-5] | solaris2.[0-5].*) ;; 16739 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16740 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16741 esac 16742 link_all_deplibs_GCJ=yes 16743 ;; 16744 16745 sunos4*) 16746 if test "x$host_vendor" = xsequent; then 16747 # Use $CC to link under sequent, because it throws in some extra .o 16748 # files that make .init and .fini sections work. 16749 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16750 else 16751 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16752 fi 16753 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16754 hardcode_direct_GCJ=yes 16755 hardcode_minus_L_GCJ=yes 16756 hardcode_shlibpath_var_GCJ=no 16757 ;; 16758 16759 sysv4) 16760 case $host_vendor in 16761 sni) 16762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16763 hardcode_direct_GCJ=yes # is this really true??? 16764 ;; 16765 siemens) 16766 ## LD is ld it makes a PLAMLIB 16767 ## CC just makes a GrossModule. 16768 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16769 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16770 hardcode_direct_GCJ=no 16771 ;; 16772 motorola) 16773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16774 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16775 ;; 16776 esac 16777 runpath_var='LD_RUN_PATH' 16778 hardcode_shlibpath_var_GCJ=no 16779 ;; 16780 16781 sysv4.3*) 16782 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16783 hardcode_shlibpath_var_GCJ=no 16784 export_dynamic_flag_spec_GCJ='-Bexport' 16785 ;; 16786 16787 sysv4*MP*) 16788 if test -d /usr/nec; then 16789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16790 hardcode_shlibpath_var_GCJ=no 16791 runpath_var=LD_RUN_PATH 16792 hardcode_runpath_var=yes 16793 ld_shlibs_GCJ=yes 16794 fi 16795 ;; 16796 16797 sysv4.2uw2*) 16798 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16799 hardcode_direct_GCJ=yes 16800 hardcode_minus_L_GCJ=no 16801 hardcode_shlibpath_var_GCJ=no 16802 hardcode_runpath_var=yes 16803 runpath_var=LD_RUN_PATH 16804 ;; 16805 16806 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16807 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16808 if test "$GCC" = yes; then 16809 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16810 else 16811 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16812 fi 16813 runpath_var='LD_RUN_PATH' 16814 hardcode_shlibpath_var_GCJ=no 16815 ;; 16816 16817 sysv5*) 16818 no_undefined_flag_GCJ=' -z text' 16819 # $CC -shared without GNU ld will not create a library from C++ 16820 # object files and a static libstdc++, better avoid it by now 16821 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16822 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16823 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16824 hardcode_libdir_flag_spec_GCJ= 16825 hardcode_shlibpath_var_GCJ=no 16826 runpath_var='LD_RUN_PATH' 16827 ;; 16828 16829 uts4*) 16830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16831 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16832 hardcode_shlibpath_var_GCJ=no 16833 ;; 16834 16835 *) 16836 ld_shlibs_GCJ=no 16837 ;; 16838 esac 16839 fi 16840 16841echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16842echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16843test "$ld_shlibs_GCJ" = no && can_build_shared=no 16844 16845variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16846if test "$GCC" = yes; then 16847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16848fi 16849 16850# 16851# Do we need to explicitly link libc? 16852# 16853case "x$archive_cmds_need_lc_GCJ" in 16854x|xyes) 16855 # Assume -lc should be added 16856 archive_cmds_need_lc_GCJ=yes 16857 16858 if test "$enable_shared" = yes && test "$GCC" = yes; then 16859 case $archive_cmds_GCJ in 16860 *'~'*) 16861 # FIXME: we may have to deal with multi-command sequences. 16862 ;; 16863 '$CC '*) 16864 # Test whether the compiler implicitly links with -lc since on some 16865 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16866 # to ld, don't add -lc before -lgcc. 16867 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16868echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16869 $rm conftest* 16870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16871 16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16873 (eval $ac_compile) 2>&5 16874 ac_status=$? 16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16876 (exit $ac_status); } 2>conftest.err; then 16877 soname=conftest 16878 lib=conftest 16879 libobjs=conftest.$ac_objext 16880 deplibs= 16881 wl=$lt_prog_compiler_wl_GCJ 16882 compiler_flags=-v 16883 linker_flags=-v 16884 verstring= 16885 output_objdir=. 16886 libname=conftest 16887 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16888 allow_undefined_flag_GCJ= 16889 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16890 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16891 ac_status=$? 16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16893 (exit $ac_status); } 16894 then 16895 archive_cmds_need_lc_GCJ=no 16896 else 16897 archive_cmds_need_lc_GCJ=yes 16898 fi 16899 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16900 else 16901 cat conftest.err 1>&5 16902 fi 16903 $rm conftest* 16904 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16905echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16906 ;; 16907 esac 16908 fi 16909 ;; 16910esac 16911 16912echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16913echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16914library_names_spec= 16915libname_spec='lib$name' 16916soname_spec= 16917shrext_cmds=".so" 16918postinstall_cmds= 16919postuninstall_cmds= 16920finish_cmds= 16921finish_eval= 16922shlibpath_var= 16923shlibpath_overrides_runpath=unknown 16924version_type=none 16925dynamic_linker="$host_os ld.so" 16926sys_lib_dlsearch_path_spec="/lib /usr/lib" 16927if test "$GCC" = yes; then 16928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16929 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16930 # if the path contains ";" then we assume it to be the separator 16931 # otherwise default to the standard path separator (i.e. ":") - it is 16932 # assumed that no part of a normal pathname contains ";" but that should 16933 # okay in the real world where ";" in dirpaths is itself problematic. 16934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16935 else 16936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16937 fi 16938else 16939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16940fi 16941need_lib_prefix=unknown 16942hardcode_into_libs=no 16943 16944# when you set need_version to no, make sure it does not cause -set_version 16945# flags to be left without arguments 16946need_version=unknown 16947 16948case $host_os in 16949aix3*) 16950 version_type=linux 16951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16952 shlibpath_var=LIBPATH 16953 16954 # AIX 3 has no versioning support, so we append a major version to the name. 16955 soname_spec='${libname}${release}${shared_ext}$major' 16956 ;; 16957 16958aix4* | aix5*) 16959 version_type=linux 16960 need_lib_prefix=no 16961 need_version=no 16962 hardcode_into_libs=yes 16963 if test "$host_cpu" = ia64; then 16964 # AIX 5 supports IA64 16965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16966 shlibpath_var=LD_LIBRARY_PATH 16967 else 16968 # With GCC up to 2.95.x, collect2 would create an import file 16969 # for dependence libraries. The import file would start with 16970 # the line `#! .'. This would cause the generated library to 16971 # depend on `.', always an invalid library. This was fixed in 16972 # development snapshots of GCC prior to 3.0. 16973 case $host_os in 16974 aix4 | aix4.[01] | aix4.[01].*) 16975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16976 echo ' yes ' 16977 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16978 : 16979 else 16980 can_build_shared=no 16981 fi 16982 ;; 16983 esac 16984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16985 # soname into executable. Probably we can add versioning support to 16986 # collect2, so additional links can be useful in future. 16987 if test "$aix_use_runtimelinking" = yes; then 16988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16989 # instead of lib<name>.a to let people know that these are not 16990 # typical AIX shared libraries. 16991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16992 else 16993 # We preserve .a as extension for shared libraries through AIX4.2 16994 # and later when we are not doing run time linking. 16995 library_names_spec='${libname}${release}.a $libname.a' 16996 soname_spec='${libname}${release}${shared_ext}$major' 16997 fi 16998 shlibpath_var=LIBPATH 16999 fi 17000 ;; 17001 17002amigaos*) 17003 library_names_spec='$libname.ixlibrary $libname.a' 17004 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17005 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' 17006 ;; 17007 17008beos*) 17009 library_names_spec='${libname}${shared_ext}' 17010 dynamic_linker="$host_os ld.so" 17011 shlibpath_var=LIBRARY_PATH 17012 ;; 17013 17014bsdi4*) 17015 version_type=linux 17016 need_version=no 17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17018 soname_spec='${libname}${release}${shared_ext}$major' 17019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17020 shlibpath_var=LD_LIBRARY_PATH 17021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17023 # the default ld.so.conf also contains /usr/contrib/lib and 17024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17025 # libtool to hard-code these into programs 17026 ;; 17027 17028cygwin* | mingw* | pw32*) 17029 version_type=windows 17030 shrext_cmds=".dll" 17031 need_version=no 17032 need_lib_prefix=no 17033 17034 case $GCC,$host_os in 17035 yes,cygwin* | yes,mingw* | yes,pw32*) 17036 library_names_spec='$libname.dll.a' 17037 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17038 postinstall_cmds='base_file=`basename \${file}`~ 17039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17040 dldir=$destdir/`dirname \$dlpath`~ 17041 test -d \$dldir || mkdir -p \$dldir~ 17042 $install_prog $dir/$dlname \$dldir/$dlname' 17043 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17044 dlpath=$dir/\$dldll~ 17045 $rm \$dlpath' 17046 shlibpath_overrides_runpath=yes 17047 17048 case $host_os in 17049 cygwin*) 17050 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17051 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17052 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17053 ;; 17054 mingw*) 17055 # MinGW DLLs use traditional 'lib' prefix 17056 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17057 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17058 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17059 # It is most probably a Windows format PATH printed by 17060 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17061 # path with ; separators, and with drive letters. We can handle the 17062 # drive letters (cygwin fileutils understands them), so leave them, 17063 # especially as we might pass files found there to a mingw objdump, 17064 # which wouldn't understand a cygwinified path. Ahh. 17065 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17066 else 17067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17068 fi 17069 ;; 17070 pw32*) 17071 # pw32 DLLs use 'pw' prefix rather than 'lib' 17072 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 17073 ;; 17074 esac 17075 ;; 17076 17077 *) 17078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17079 ;; 17080 esac 17081 dynamic_linker='Win32 ld.exe' 17082 # FIXME: first we should search . and the directory the executable is in 17083 shlibpath_var=PATH 17084 ;; 17085 17086darwin* | rhapsody*) 17087 dynamic_linker="$host_os dyld" 17088 version_type=darwin 17089 need_lib_prefix=no 17090 need_version=no 17091 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17092 soname_spec='${libname}${release}${major}$shared_ext' 17093 shlibpath_overrides_runpath=yes 17094 shlibpath_var=DYLD_LIBRARY_PATH 17095 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 17096 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17097 if test "$GCC" = yes; then 17098 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"` 17099 else 17100 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17101 fi 17102 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17103 ;; 17104 17105dgux*) 17106 version_type=linux 17107 need_lib_prefix=no 17108 need_version=no 17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17110 soname_spec='${libname}${release}${shared_ext}$major' 17111 shlibpath_var=LD_LIBRARY_PATH 17112 ;; 17113 17114freebsd1*) 17115 dynamic_linker=no 17116 ;; 17117 17118kfreebsd*-gnu) 17119 version_type=linux 17120 need_lib_prefix=no 17121 need_version=no 17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17123 soname_spec='${libname}${release}${shared_ext}$major' 17124 shlibpath_var=LD_LIBRARY_PATH 17125 shlibpath_overrides_runpath=no 17126 hardcode_into_libs=yes 17127 dynamic_linker='GNU ld.so' 17128 ;; 17129 17130freebsd*) 17131 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17132 version_type=freebsd-$objformat 17133 case $version_type in 17134 freebsd-elf*) 17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17136 need_version=no 17137 need_lib_prefix=no 17138 ;; 17139 freebsd-*) 17140 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17141 need_version=yes 17142 ;; 17143 esac 17144 shlibpath_var=LD_LIBRARY_PATH 17145 case $host_os in 17146 freebsd2*) 17147 shlibpath_overrides_runpath=yes 17148 ;; 17149 freebsd3.01* | freebsdelf3.01*) 17150 shlibpath_overrides_runpath=yes 17151 hardcode_into_libs=yes 17152 ;; 17153 *) # from 3.2 on 17154 shlibpath_overrides_runpath=no 17155 hardcode_into_libs=yes 17156 ;; 17157 esac 17158 ;; 17159 17160gnu*) 17161 version_type=linux 17162 need_lib_prefix=no 17163 need_version=no 17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17165 soname_spec='${libname}${release}${shared_ext}$major' 17166 shlibpath_var=LD_LIBRARY_PATH 17167 hardcode_into_libs=yes 17168 ;; 17169 17170hpux9* | hpux10* | hpux11*) 17171 # Give a soname corresponding to the major version so that dld.sl refuses to 17172 # link against other versions. 17173 version_type=sunos 17174 need_lib_prefix=no 17175 need_version=no 17176 case "$host_cpu" in 17177 ia64*) 17178 shrext_cmds='.so' 17179 hardcode_into_libs=yes 17180 dynamic_linker="$host_os dld.so" 17181 shlibpath_var=LD_LIBRARY_PATH 17182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17184 soname_spec='${libname}${release}${shared_ext}$major' 17185 if test "X$HPUX_IA64_MODE" = X32; then 17186 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17187 else 17188 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17189 fi 17190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17191 ;; 17192 hppa*64*) 17193 shrext_cmds='.sl' 17194 hardcode_into_libs=yes 17195 dynamic_linker="$host_os dld.sl" 17196 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17199 soname_spec='${libname}${release}${shared_ext}$major' 17200 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17202 ;; 17203 *) 17204 shrext_cmds='.sl' 17205 dynamic_linker="$host_os dld.sl" 17206 shlibpath_var=SHLIB_PATH 17207 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17209 soname_spec='${libname}${release}${shared_ext}$major' 17210 ;; 17211 esac 17212 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17213 postinstall_cmds='chmod 555 $lib' 17214 ;; 17215 17216irix5* | irix6* | nonstopux*) 17217 case $host_os in 17218 nonstopux*) version_type=nonstopux ;; 17219 *) 17220 if test "$lt_cv_prog_gnu_ld" = yes; then 17221 version_type=linux 17222 else 17223 version_type=irix 17224 fi ;; 17225 esac 17226 need_lib_prefix=no 17227 need_version=no 17228 soname_spec='${libname}${release}${shared_ext}$major' 17229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17230 case $host_os in 17231 irix5* | nonstopux*) 17232 libsuff= shlibsuff= 17233 ;; 17234 *) 17235 case $LD in # libtool.m4 will add one of these switches to LD 17236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17237 libsuff= shlibsuff= libmagic=32-bit;; 17238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17239 libsuff=32 shlibsuff=N32 libmagic=N32;; 17240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17241 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17242 *) libsuff= shlibsuff= libmagic=never-match;; 17243 esac 17244 ;; 17245 esac 17246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17247 shlibpath_overrides_runpath=no 17248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17250 hardcode_into_libs=yes 17251 ;; 17252 17253# No shared lib support for Linux oldld, aout, or coff. 17254linux*oldld* | linux*aout* | linux*coff*) 17255 dynamic_linker=no 17256 ;; 17257 17258# This must be Linux ELF. 17259linux*) 17260 version_type=linux 17261 need_lib_prefix=no 17262 need_version=no 17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17264 soname_spec='${libname}${release}${shared_ext}$major' 17265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17266 shlibpath_var=LD_LIBRARY_PATH 17267 shlibpath_overrides_runpath=no 17268 # This implies no fast_install, which is unacceptable. 17269 # Some rework will be needed to allow for fast_install 17270 # before this can be enabled. 17271 hardcode_into_libs=yes 17272 17273 # find out which ABI we are using 17274 libsuff= 17275 case "$host_cpu" in 17276 x86_64*|s390x*|powerpc64*) 17277 echo '#line 17277 "configure"' > conftest.$ac_ext 17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17279 (eval $ac_compile) 2>&5 17280 ac_status=$? 17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17282 (exit $ac_status); }; then 17283 case `/usr/bin/file conftest.$ac_objext` in 17284 *64-bit*) 17285 libsuff=64 17286 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17287 ;; 17288 esac 17289 fi 17290 rm -rf conftest* 17291 ;; 17292 esac 17293 17294 # Append ld.so.conf contents to the search path 17295 if test -f /etc/ld.so.conf; then 17296 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 17297 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 17298 fi 17299 17300 # We used to test for /lib/ld.so.1 and disable shared libraries on 17301 # powerpc, because MkLinux only supported shared libraries with the 17302 # GNU dynamic linker. Since this was broken with cross compilers, 17303 # most powerpc-linux boxes support dynamic linking these days and 17304 # people can always --disable-shared, the test was removed, and we 17305 # assume the GNU/Linux dynamic linker is in use. 17306 dynamic_linker='GNU/Linux ld.so' 17307 ;; 17308 17309knetbsd*-gnu) 17310 version_type=linux 17311 need_lib_prefix=no 17312 need_version=no 17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17314 soname_spec='${libname}${release}${shared_ext}$major' 17315 shlibpath_var=LD_LIBRARY_PATH 17316 shlibpath_overrides_runpath=no 17317 hardcode_into_libs=yes 17318 dynamic_linker='GNU ld.so' 17319 ;; 17320 17321netbsd*) 17322 version_type=sunos 17323 need_lib_prefix=no 17324 need_version=no 17325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17328 dynamic_linker='NetBSD (a.out) ld.so' 17329 else 17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17331 soname_spec='${libname}${release}${shared_ext}$major' 17332 dynamic_linker='NetBSD ld.elf_so' 17333 fi 17334 shlibpath_var=LD_LIBRARY_PATH 17335 shlibpath_overrides_runpath=yes 17336 hardcode_into_libs=yes 17337 ;; 17338 17339newsos6) 17340 version_type=linux 17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17342 shlibpath_var=LD_LIBRARY_PATH 17343 shlibpath_overrides_runpath=yes 17344 ;; 17345 17346nto-qnx*) 17347 version_type=linux 17348 need_lib_prefix=no 17349 need_version=no 17350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17351 soname_spec='${libname}${release}${shared_ext}$major' 17352 shlibpath_var=LD_LIBRARY_PATH 17353 shlibpath_overrides_runpath=yes 17354 ;; 17355 17356openbsd*) 17357 version_type=sunos 17358 need_lib_prefix=no 17359 need_version=yes 17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17362 shlibpath_var=LD_LIBRARY_PATH 17363 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17364 case $host_os in 17365 openbsd2.[89] | openbsd2.[89].*) 17366 shlibpath_overrides_runpath=no 17367 ;; 17368 *) 17369 shlibpath_overrides_runpath=yes 17370 ;; 17371 esac 17372 else 17373 shlibpath_overrides_runpath=yes 17374 fi 17375 ;; 17376 17377os2*) 17378 libname_spec='$name' 17379 shrext_cmds=".dll" 17380 need_lib_prefix=no 17381 library_names_spec='$libname${shared_ext} $libname.a' 17382 dynamic_linker='OS/2 ld.exe' 17383 shlibpath_var=LIBPATH 17384 ;; 17385 17386osf3* | osf4* | osf5*) 17387 version_type=osf 17388 need_lib_prefix=no 17389 need_version=no 17390 soname_spec='${libname}${release}${shared_ext}$major' 17391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17392 shlibpath_var=LD_LIBRARY_PATH 17393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17395 ;; 17396 17397sco3.2v5*) 17398 version_type=osf 17399 soname_spec='${libname}${release}${shared_ext}$major' 17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17401 shlibpath_var=LD_LIBRARY_PATH 17402 ;; 17403 17404solaris*) 17405 version_type=linux 17406 need_lib_prefix=no 17407 need_version=no 17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17409 soname_spec='${libname}${release}${shared_ext}$major' 17410 shlibpath_var=LD_LIBRARY_PATH 17411 shlibpath_overrides_runpath=yes 17412 hardcode_into_libs=yes 17413 # ldd complains unless libraries are executable 17414 postinstall_cmds='chmod +x $lib' 17415 ;; 17416 17417sunos4*) 17418 version_type=sunos 17419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17421 shlibpath_var=LD_LIBRARY_PATH 17422 shlibpath_overrides_runpath=yes 17423 if test "$with_gnu_ld" = yes; then 17424 need_lib_prefix=no 17425 fi 17426 need_version=yes 17427 ;; 17428 17429sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17430 version_type=linux 17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17432 soname_spec='${libname}${release}${shared_ext}$major' 17433 shlibpath_var=LD_LIBRARY_PATH 17434 case $host_vendor in 17435 sni) 17436 shlibpath_overrides_runpath=no 17437 need_lib_prefix=no 17438 export_dynamic_flag_spec='${wl}-Blargedynsym' 17439 runpath_var=LD_RUN_PATH 17440 ;; 17441 siemens) 17442 need_lib_prefix=no 17443 ;; 17444 motorola) 17445 need_lib_prefix=no 17446 need_version=no 17447 shlibpath_overrides_runpath=no 17448 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17449 ;; 17450 esac 17451 ;; 17452 17453sysv4*MP*) 17454 if test -d /usr/nec ;then 17455 version_type=linux 17456 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17457 soname_spec='$libname${shared_ext}.$major' 17458 shlibpath_var=LD_LIBRARY_PATH 17459 fi 17460 ;; 17461 17462uts4*) 17463 version_type=linux 17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17465 soname_spec='${libname}${release}${shared_ext}$major' 17466 shlibpath_var=LD_LIBRARY_PATH 17467 ;; 17468 17469*) 17470 dynamic_linker=no 17471 ;; 17472esac 17473echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17474echo "${ECHO_T}$dynamic_linker" >&6 17475test "$dynamic_linker" = no && can_build_shared=no 17476 17477echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17478echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17479hardcode_action_GCJ= 17480if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 17481 test -n "$runpath_var GCJ" || \ 17482 test "X$hardcode_automatic_GCJ"="Xyes" ; then 17483 17484 # We can hardcode non-existant directories. 17485 if test "$hardcode_direct_GCJ" != no && 17486 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17487 # have to relink, otherwise we might link with an installed library 17488 # when we should be linking with a yet-to-be-installed one 17489 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 17490 test "$hardcode_minus_L_GCJ" != no; then 17491 # Linking always hardcodes the temporary library directory. 17492 hardcode_action_GCJ=relink 17493 else 17494 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17495 hardcode_action_GCJ=immediate 17496 fi 17497else 17498 # We cannot hardcode anything, or else we can only hardcode existing 17499 # directories. 17500 hardcode_action_GCJ=unsupported 17501fi 17502echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 17503echo "${ECHO_T}$hardcode_action_GCJ" >&6 17504 17505if test "$hardcode_action_GCJ" = relink; then 17506 # Fast installation is not supported 17507 enable_fast_install=no 17508elif test "$shlibpath_overrides_runpath" = yes || 17509 test "$enable_shared" = no; then 17510 # Fast installation is not necessary 17511 enable_fast_install=needless 17512fi 17513 17514striplib= 17515old_striplib= 17516echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17517echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17518if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17520 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17521 echo "$as_me:$LINENO: result: yes" >&5 17522echo "${ECHO_T}yes" >&6 17523else 17524# FIXME - insert some real tests, host_os isn't really good enough 17525 case $host_os in 17526 darwin*) 17527 if test -n "$STRIP" ; then 17528 striplib="$STRIP -x" 17529 echo "$as_me:$LINENO: result: yes" >&5 17530echo "${ECHO_T}yes" >&6 17531 else 17532 echo "$as_me:$LINENO: result: no" >&5 17533echo "${ECHO_T}no" >&6 17534fi 17535 ;; 17536 *) 17537 echo "$as_me:$LINENO: result: no" >&5 17538echo "${ECHO_T}no" >&6 17539 ;; 17540 esac 17541fi 17542 17543if test "x$enable_dlopen" != xyes; then 17544 enable_dlopen=unknown 17545 enable_dlopen_self=unknown 17546 enable_dlopen_self_static=unknown 17547else 17548 lt_cv_dlopen=no 17549 lt_cv_dlopen_libs= 17550 17551 case $host_os in 17552 beos*) 17553 lt_cv_dlopen="load_add_on" 17554 lt_cv_dlopen_libs= 17555 lt_cv_dlopen_self=yes 17556 ;; 17557 17558 mingw* | pw32*) 17559 lt_cv_dlopen="LoadLibrary" 17560 lt_cv_dlopen_libs= 17561 ;; 17562 17563 cygwin*) 17564 lt_cv_dlopen="dlopen" 17565 lt_cv_dlopen_libs= 17566 ;; 17567 17568 darwin*) 17569 # if libdl is installed we need to link against it 17570 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17571echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17572if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17573 echo $ECHO_N "(cached) $ECHO_C" >&6 17574else 17575 ac_check_lib_save_LIBS=$LIBS 17576LIBS="-ldl $LIBS" 17577cat >conftest.$ac_ext <<_ACEOF 17578/* confdefs.h. */ 17579_ACEOF 17580cat confdefs.h >>conftest.$ac_ext 17581cat >>conftest.$ac_ext <<_ACEOF 17582/* end confdefs.h. */ 17583 17584/* Override any gcc2 internal prototype to avoid an error. */ 17585#ifdef __cplusplus 17586extern "C" 17587#endif 17588/* We use char because int might match the return type of a gcc2 17589 builtin and then its argument prototype would still apply. */ 17590char dlopen (); 17591int 17592main () 17593{ 17594dlopen (); 17595 ; 17596 return 0; 17597} 17598_ACEOF 17599rm -f conftest.$ac_objext conftest$ac_exeext 17600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17601 (eval $ac_link) 2>conftest.er1 17602 ac_status=$? 17603 grep -v '^ *+' conftest.er1 >conftest.err 17604 rm -f conftest.er1 17605 cat conftest.err >&5 17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17607 (exit $ac_status); } && 17608 { ac_try='test -z "$ac_c_werror_flag" 17609 || test ! -s conftest.err' 17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17611 (eval $ac_try) 2>&5 17612 ac_status=$? 17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17614 (exit $ac_status); }; } && 17615 { ac_try='test -s conftest$ac_exeext' 17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17617 (eval $ac_try) 2>&5 17618 ac_status=$? 17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17620 (exit $ac_status); }; }; then 17621 ac_cv_lib_dl_dlopen=yes 17622else 17623 echo "$as_me: failed program was:" >&5 17624sed 's/^/| /' conftest.$ac_ext >&5 17625 17626ac_cv_lib_dl_dlopen=no 17627fi 17628rm -f conftest.err conftest.$ac_objext \ 17629 conftest$ac_exeext conftest.$ac_ext 17630LIBS=$ac_check_lib_save_LIBS 17631fi 17632echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17633echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17634if test $ac_cv_lib_dl_dlopen = yes; then 17635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17636else 17637 17638 lt_cv_dlopen="dyld" 17639 lt_cv_dlopen_libs= 17640 lt_cv_dlopen_self=yes 17641 17642fi 17643 17644 ;; 17645 17646 *) 17647 echo "$as_me:$LINENO: checking for shl_load" >&5 17648echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 17649if test "${ac_cv_func_shl_load+set}" = set; then 17650 echo $ECHO_N "(cached) $ECHO_C" >&6 17651else 17652 cat >conftest.$ac_ext <<_ACEOF 17653/* confdefs.h. */ 17654_ACEOF 17655cat confdefs.h >>conftest.$ac_ext 17656cat >>conftest.$ac_ext <<_ACEOF 17657/* end confdefs.h. */ 17658/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 17659 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17660#define shl_load innocuous_shl_load 17661 17662/* System header to define __stub macros and hopefully few prototypes, 17663 which can conflict with char shl_load (); below. 17664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17665 <limits.h> exists even on freestanding compilers. */ 17666 17667#ifdef __STDC__ 17668# include <limits.h> 17669#else 17670# include <assert.h> 17671#endif 17672 17673#undef shl_load 17674 17675/* Override any gcc2 internal prototype to avoid an error. */ 17676#ifdef __cplusplus 17677extern "C" 17678{ 17679#endif 17680/* We use char because int might match the return type of a gcc2 17681 builtin and then its argument prototype would still apply. */ 17682char shl_load (); 17683/* The GNU C library defines this for functions which it implements 17684 to always fail with ENOSYS. Some functions are actually named 17685 something starting with __ and the normal name is an alias. */ 17686#if defined (__stub_shl_load) || defined (__stub___shl_load) 17687choke me 17688#else 17689char (*f) () = shl_load; 17690#endif 17691#ifdef __cplusplus 17692} 17693#endif 17694 17695int 17696main () 17697{ 17698return f != shl_load; 17699 ; 17700 return 0; 17701} 17702_ACEOF 17703rm -f conftest.$ac_objext conftest$ac_exeext 17704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17705 (eval $ac_link) 2>conftest.er1 17706 ac_status=$? 17707 grep -v '^ *+' conftest.er1 >conftest.err 17708 rm -f conftest.er1 17709 cat conftest.err >&5 17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17711 (exit $ac_status); } && 17712 { ac_try='test -z "$ac_c_werror_flag" 17713 || test ! -s conftest.err' 17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17715 (eval $ac_try) 2>&5 17716 ac_status=$? 17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17718 (exit $ac_status); }; } && 17719 { ac_try='test -s conftest$ac_exeext' 17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17721 (eval $ac_try) 2>&5 17722 ac_status=$? 17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17724 (exit $ac_status); }; }; then 17725 ac_cv_func_shl_load=yes 17726else 17727 echo "$as_me: failed program was:" >&5 17728sed 's/^/| /' conftest.$ac_ext >&5 17729 17730ac_cv_func_shl_load=no 17731fi 17732rm -f conftest.err conftest.$ac_objext \ 17733 conftest$ac_exeext conftest.$ac_ext 17734fi 17735echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17736echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17737if test $ac_cv_func_shl_load = yes; then 17738 lt_cv_dlopen="shl_load" 17739else 17740 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17741echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17742if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17743 echo $ECHO_N "(cached) $ECHO_C" >&6 17744else 17745 ac_check_lib_save_LIBS=$LIBS 17746LIBS="-ldld $LIBS" 17747cat >conftest.$ac_ext <<_ACEOF 17748/* confdefs.h. */ 17749_ACEOF 17750cat confdefs.h >>conftest.$ac_ext 17751cat >>conftest.$ac_ext <<_ACEOF 17752/* end confdefs.h. */ 17753 17754/* Override any gcc2 internal prototype to avoid an error. */ 17755#ifdef __cplusplus 17756extern "C" 17757#endif 17758/* We use char because int might match the return type of a gcc2 17759 builtin and then its argument prototype would still apply. */ 17760char shl_load (); 17761int 17762main () 17763{ 17764shl_load (); 17765 ; 17766 return 0; 17767} 17768_ACEOF 17769rm -f conftest.$ac_objext conftest$ac_exeext 17770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17771 (eval $ac_link) 2>conftest.er1 17772 ac_status=$? 17773 grep -v '^ *+' conftest.er1 >conftest.err 17774 rm -f conftest.er1 17775 cat conftest.err >&5 17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17777 (exit $ac_status); } && 17778 { ac_try='test -z "$ac_c_werror_flag" 17779 || test ! -s conftest.err' 17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17781 (eval $ac_try) 2>&5 17782 ac_status=$? 17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17784 (exit $ac_status); }; } && 17785 { ac_try='test -s conftest$ac_exeext' 17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17787 (eval $ac_try) 2>&5 17788 ac_status=$? 17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17790 (exit $ac_status); }; }; then 17791 ac_cv_lib_dld_shl_load=yes 17792else 17793 echo "$as_me: failed program was:" >&5 17794sed 's/^/| /' conftest.$ac_ext >&5 17795 17796ac_cv_lib_dld_shl_load=no 17797fi 17798rm -f conftest.err conftest.$ac_objext \ 17799 conftest$ac_exeext conftest.$ac_ext 17800LIBS=$ac_check_lib_save_LIBS 17801fi 17802echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17803echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17804if test $ac_cv_lib_dld_shl_load = yes; then 17805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17806else 17807 echo "$as_me:$LINENO: checking for dlopen" >&5 17808echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17809if test "${ac_cv_func_dlopen+set}" = set; then 17810 echo $ECHO_N "(cached) $ECHO_C" >&6 17811else 17812 cat >conftest.$ac_ext <<_ACEOF 17813/* confdefs.h. */ 17814_ACEOF 17815cat confdefs.h >>conftest.$ac_ext 17816cat >>conftest.$ac_ext <<_ACEOF 17817/* end confdefs.h. */ 17818/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17819 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17820#define dlopen innocuous_dlopen 17821 17822/* System header to define __stub macros and hopefully few prototypes, 17823 which can conflict with char dlopen (); below. 17824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17825 <limits.h> exists even on freestanding compilers. */ 17826 17827#ifdef __STDC__ 17828# include <limits.h> 17829#else 17830# include <assert.h> 17831#endif 17832 17833#undef dlopen 17834 17835/* Override any gcc2 internal prototype to avoid an error. */ 17836#ifdef __cplusplus 17837extern "C" 17838{ 17839#endif 17840/* We use char because int might match the return type of a gcc2 17841 builtin and then its argument prototype would still apply. */ 17842char dlopen (); 17843/* The GNU C library defines this for functions which it implements 17844 to always fail with ENOSYS. Some functions are actually named 17845 something starting with __ and the normal name is an alias. */ 17846#if defined (__stub_dlopen) || defined (__stub___dlopen) 17847choke me 17848#else 17849char (*f) () = dlopen; 17850#endif 17851#ifdef __cplusplus 17852} 17853#endif 17854 17855int 17856main () 17857{ 17858return f != dlopen; 17859 ; 17860 return 0; 17861} 17862_ACEOF 17863rm -f conftest.$ac_objext conftest$ac_exeext 17864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17865 (eval $ac_link) 2>conftest.er1 17866 ac_status=$? 17867 grep -v '^ *+' conftest.er1 >conftest.err 17868 rm -f conftest.er1 17869 cat conftest.err >&5 17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17871 (exit $ac_status); } && 17872 { ac_try='test -z "$ac_c_werror_flag" 17873 || test ! -s conftest.err' 17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17875 (eval $ac_try) 2>&5 17876 ac_status=$? 17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17878 (exit $ac_status); }; } && 17879 { ac_try='test -s conftest$ac_exeext' 17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17881 (eval $ac_try) 2>&5 17882 ac_status=$? 17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17884 (exit $ac_status); }; }; then 17885 ac_cv_func_dlopen=yes 17886else 17887 echo "$as_me: failed program was:" >&5 17888sed 's/^/| /' conftest.$ac_ext >&5 17889 17890ac_cv_func_dlopen=no 17891fi 17892rm -f conftest.err conftest.$ac_objext \ 17893 conftest$ac_exeext conftest.$ac_ext 17894fi 17895echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17896echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17897if test $ac_cv_func_dlopen = yes; then 17898 lt_cv_dlopen="dlopen" 17899else 17900 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17902if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17903 echo $ECHO_N "(cached) $ECHO_C" >&6 17904else 17905 ac_check_lib_save_LIBS=$LIBS 17906LIBS="-ldl $LIBS" 17907cat >conftest.$ac_ext <<_ACEOF 17908/* confdefs.h. */ 17909_ACEOF 17910cat confdefs.h >>conftest.$ac_ext 17911cat >>conftest.$ac_ext <<_ACEOF 17912/* end confdefs.h. */ 17913 17914/* Override any gcc2 internal prototype to avoid an error. */ 17915#ifdef __cplusplus 17916extern "C" 17917#endif 17918/* We use char because int might match the return type of a gcc2 17919 builtin and then its argument prototype would still apply. */ 17920char dlopen (); 17921int 17922main () 17923{ 17924dlopen (); 17925 ; 17926 return 0; 17927} 17928_ACEOF 17929rm -f conftest.$ac_objext conftest$ac_exeext 17930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17931 (eval $ac_link) 2>conftest.er1 17932 ac_status=$? 17933 grep -v '^ *+' conftest.er1 >conftest.err 17934 rm -f conftest.er1 17935 cat conftest.err >&5 17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17937 (exit $ac_status); } && 17938 { ac_try='test -z "$ac_c_werror_flag" 17939 || test ! -s conftest.err' 17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17941 (eval $ac_try) 2>&5 17942 ac_status=$? 17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17944 (exit $ac_status); }; } && 17945 { ac_try='test -s conftest$ac_exeext' 17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17947 (eval $ac_try) 2>&5 17948 ac_status=$? 17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17950 (exit $ac_status); }; }; then 17951 ac_cv_lib_dl_dlopen=yes 17952else 17953 echo "$as_me: failed program was:" >&5 17954sed 's/^/| /' conftest.$ac_ext >&5 17955 17956ac_cv_lib_dl_dlopen=no 17957fi 17958rm -f conftest.err conftest.$ac_objext \ 17959 conftest$ac_exeext conftest.$ac_ext 17960LIBS=$ac_check_lib_save_LIBS 17961fi 17962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17964if test $ac_cv_lib_dl_dlopen = yes; then 17965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17966else 17967 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17968echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17969if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17970 echo $ECHO_N "(cached) $ECHO_C" >&6 17971else 17972 ac_check_lib_save_LIBS=$LIBS 17973LIBS="-lsvld $LIBS" 17974cat >conftest.$ac_ext <<_ACEOF 17975/* confdefs.h. */ 17976_ACEOF 17977cat confdefs.h >>conftest.$ac_ext 17978cat >>conftest.$ac_ext <<_ACEOF 17979/* end confdefs.h. */ 17980 17981/* Override any gcc2 internal prototype to avoid an error. */ 17982#ifdef __cplusplus 17983extern "C" 17984#endif 17985/* We use char because int might match the return type of a gcc2 17986 builtin and then its argument prototype would still apply. */ 17987char dlopen (); 17988int 17989main () 17990{ 17991dlopen (); 17992 ; 17993 return 0; 17994} 17995_ACEOF 17996rm -f conftest.$ac_objext conftest$ac_exeext 17997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17998 (eval $ac_link) 2>conftest.er1 17999 ac_status=$? 18000 grep -v '^ *+' conftest.er1 >conftest.err 18001 rm -f conftest.er1 18002 cat conftest.err >&5 18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18004 (exit $ac_status); } && 18005 { ac_try='test -z "$ac_c_werror_flag" 18006 || test ! -s conftest.err' 18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18008 (eval $ac_try) 2>&5 18009 ac_status=$? 18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18011 (exit $ac_status); }; } && 18012 { ac_try='test -s conftest$ac_exeext' 18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18014 (eval $ac_try) 2>&5 18015 ac_status=$? 18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18017 (exit $ac_status); }; }; then 18018 ac_cv_lib_svld_dlopen=yes 18019else 18020 echo "$as_me: failed program was:" >&5 18021sed 's/^/| /' conftest.$ac_ext >&5 18022 18023ac_cv_lib_svld_dlopen=no 18024fi 18025rm -f conftest.err conftest.$ac_objext \ 18026 conftest$ac_exeext conftest.$ac_ext 18027LIBS=$ac_check_lib_save_LIBS 18028fi 18029echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18030echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18031if test $ac_cv_lib_svld_dlopen = yes; then 18032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18033else 18034 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18035echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18036if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18037 echo $ECHO_N "(cached) $ECHO_C" >&6 18038else 18039 ac_check_lib_save_LIBS=$LIBS 18040LIBS="-ldld $LIBS" 18041cat >conftest.$ac_ext <<_ACEOF 18042/* confdefs.h. */ 18043_ACEOF 18044cat confdefs.h >>conftest.$ac_ext 18045cat >>conftest.$ac_ext <<_ACEOF 18046/* end confdefs.h. */ 18047 18048/* Override any gcc2 internal prototype to avoid an error. */ 18049#ifdef __cplusplus 18050extern "C" 18051#endif 18052/* We use char because int might match the return type of a gcc2 18053 builtin and then its argument prototype would still apply. */ 18054char dld_link (); 18055int 18056main () 18057{ 18058dld_link (); 18059 ; 18060 return 0; 18061} 18062_ACEOF 18063rm -f conftest.$ac_objext conftest$ac_exeext 18064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18065 (eval $ac_link) 2>conftest.er1 18066 ac_status=$? 18067 grep -v '^ *+' conftest.er1 >conftest.err 18068 rm -f conftest.er1 18069 cat conftest.err >&5 18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18071 (exit $ac_status); } && 18072 { ac_try='test -z "$ac_c_werror_flag" 18073 || test ! -s conftest.err' 18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18075 (eval $ac_try) 2>&5 18076 ac_status=$? 18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18078 (exit $ac_status); }; } && 18079 { ac_try='test -s conftest$ac_exeext' 18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18081 (eval $ac_try) 2>&5 18082 ac_status=$? 18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18084 (exit $ac_status); }; }; then 18085 ac_cv_lib_dld_dld_link=yes 18086else 18087 echo "$as_me: failed program was:" >&5 18088sed 's/^/| /' conftest.$ac_ext >&5 18089 18090ac_cv_lib_dld_dld_link=no 18091fi 18092rm -f conftest.err conftest.$ac_objext \ 18093 conftest$ac_exeext conftest.$ac_ext 18094LIBS=$ac_check_lib_save_LIBS 18095fi 18096echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18097echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18098if test $ac_cv_lib_dld_dld_link = yes; then 18099 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18100fi 18101 18102 18103fi 18104 18105 18106fi 18107 18108 18109fi 18110 18111 18112fi 18113 18114 18115fi 18116 18117 ;; 18118 esac 18119 18120 if test "x$lt_cv_dlopen" != xno; then 18121 enable_dlopen=yes 18122 else 18123 enable_dlopen=no 18124 fi 18125 18126 case $lt_cv_dlopen in 18127 dlopen) 18128 save_CPPFLAGS="$CPPFLAGS" 18129 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18130 18131 save_LDFLAGS="$LDFLAGS" 18132 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18133 18134 save_LIBS="$LIBS" 18135 LIBS="$lt_cv_dlopen_libs $LIBS" 18136 18137 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18138echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18139if test "${lt_cv_dlopen_self+set}" = set; then 18140 echo $ECHO_N "(cached) $ECHO_C" >&6 18141else 18142 if test "$cross_compiling" = yes; then : 18143 lt_cv_dlopen_self=cross 18144else 18145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18146 lt_status=$lt_dlunknown 18147 cat > conftest.$ac_ext <<EOF 18148#line 18148 "configure" 18149#include "confdefs.h" 18150 18151#if HAVE_DLFCN_H 18152#include <dlfcn.h> 18153#endif 18154 18155#include <stdio.h> 18156 18157#ifdef RTLD_GLOBAL 18158# define LT_DLGLOBAL RTLD_GLOBAL 18159#else 18160# ifdef DL_GLOBAL 18161# define LT_DLGLOBAL DL_GLOBAL 18162# else 18163# define LT_DLGLOBAL 0 18164# endif 18165#endif 18166 18167/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18168 find out it does not work in some platform. */ 18169#ifndef LT_DLLAZY_OR_NOW 18170# ifdef RTLD_LAZY 18171# define LT_DLLAZY_OR_NOW RTLD_LAZY 18172# else 18173# ifdef DL_LAZY 18174# define LT_DLLAZY_OR_NOW DL_LAZY 18175# else 18176# ifdef RTLD_NOW 18177# define LT_DLLAZY_OR_NOW RTLD_NOW 18178# else 18179# ifdef DL_NOW 18180# define LT_DLLAZY_OR_NOW DL_NOW 18181# else 18182# define LT_DLLAZY_OR_NOW 0 18183# endif 18184# endif 18185# endif 18186# endif 18187#endif 18188 18189#ifdef __cplusplus 18190extern "C" void exit (int); 18191#endif 18192 18193void fnord() { int i=42;} 18194int main () 18195{ 18196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18197 int status = $lt_dlunknown; 18198 18199 if (self) 18200 { 18201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18202 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18203 /* dlclose (self); */ 18204 } 18205 18206 exit (status); 18207} 18208EOF 18209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18210 (eval $ac_link) 2>&5 18211 ac_status=$? 18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18213 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18214 (./conftest; exit; ) 2>/dev/null 18215 lt_status=$? 18216 case x$lt_status in 18217 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18218 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18219 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18220 esac 18221 else : 18222 # compilation failed 18223 lt_cv_dlopen_self=no 18224 fi 18225fi 18226rm -fr conftest* 18227 18228 18229fi 18230echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18231echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18232 18233 if test "x$lt_cv_dlopen_self" = xyes; then 18234 LDFLAGS="$LDFLAGS $link_static_flag" 18235 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18236echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18237if test "${lt_cv_dlopen_self_static+set}" = set; then 18238 echo $ECHO_N "(cached) $ECHO_C" >&6 18239else 18240 if test "$cross_compiling" = yes; then : 18241 lt_cv_dlopen_self_static=cross 18242else 18243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18244 lt_status=$lt_dlunknown 18245 cat > conftest.$ac_ext <<EOF 18246#line 18246 "configure" 18247#include "confdefs.h" 18248 18249#if HAVE_DLFCN_H 18250#include <dlfcn.h> 18251#endif 18252 18253#include <stdio.h> 18254 18255#ifdef RTLD_GLOBAL 18256# define LT_DLGLOBAL RTLD_GLOBAL 18257#else 18258# ifdef DL_GLOBAL 18259# define LT_DLGLOBAL DL_GLOBAL 18260# else 18261# define LT_DLGLOBAL 0 18262# endif 18263#endif 18264 18265/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18266 find out it does not work in some platform. */ 18267#ifndef LT_DLLAZY_OR_NOW 18268# ifdef RTLD_LAZY 18269# define LT_DLLAZY_OR_NOW RTLD_LAZY 18270# else 18271# ifdef DL_LAZY 18272# define LT_DLLAZY_OR_NOW DL_LAZY 18273# else 18274# ifdef RTLD_NOW 18275# define LT_DLLAZY_OR_NOW RTLD_NOW 18276# else 18277# ifdef DL_NOW 18278# define LT_DLLAZY_OR_NOW DL_NOW 18279# else 18280# define LT_DLLAZY_OR_NOW 0 18281# endif 18282# endif 18283# endif 18284# endif 18285#endif 18286 18287#ifdef __cplusplus 18288extern "C" void exit (int); 18289#endif 18290 18291void fnord() { int i=42;} 18292int main () 18293{ 18294 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18295 int status = $lt_dlunknown; 18296 18297 if (self) 18298 { 18299 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18300 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18301 /* dlclose (self); */ 18302 } 18303 18304 exit (status); 18305} 18306EOF 18307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18308 (eval $ac_link) 2>&5 18309 ac_status=$? 18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18311 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18312 (./conftest; exit; ) 2>/dev/null 18313 lt_status=$? 18314 case x$lt_status in 18315 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18316 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18317 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18318 esac 18319 else : 18320 # compilation failed 18321 lt_cv_dlopen_self_static=no 18322 fi 18323fi 18324rm -fr conftest* 18325 18326 18327fi 18328echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18329echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18330 fi 18331 18332 CPPFLAGS="$save_CPPFLAGS" 18333 LDFLAGS="$save_LDFLAGS" 18334 LIBS="$save_LIBS" 18335 ;; 18336 esac 18337 18338 case $lt_cv_dlopen_self in 18339 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18340 *) enable_dlopen_self=unknown ;; 18341 esac 18342 18343 case $lt_cv_dlopen_self_static in 18344 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18345 *) enable_dlopen_self_static=unknown ;; 18346 esac 18347fi 18348 18349 18350# The else clause should only fire when bootstrapping the 18351# libtool distribution, otherwise you forgot to ship ltmain.sh 18352# with your package, and you will get complaints that there are 18353# no rules to generate ltmain.sh. 18354if test -f "$ltmain"; then 18355 # See if we are running on zsh, and set the options which allow our commands through 18356 # without removal of \ escapes. 18357 if test -n "${ZSH_VERSION+set}" ; then 18358 setopt NO_GLOB_SUBST 18359 fi 18360 # Now quote all the things that may contain metacharacters while being 18361 # careful not to overquote the AC_SUBSTed values. We take copies of the 18362 # variables and quote the copies for generation of the libtool script. 18363 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18364 SED SHELL STRIP \ 18365 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18366 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18367 deplibs_check_method reload_flag reload_cmds need_locks \ 18368 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18369 lt_cv_sys_global_symbol_to_c_name_address \ 18370 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18371 old_postinstall_cmds old_postuninstall_cmds \ 18372 compiler_GCJ \ 18373 CC_GCJ \ 18374 LD_GCJ \ 18375 lt_prog_compiler_wl_GCJ \ 18376 lt_prog_compiler_pic_GCJ \ 18377 lt_prog_compiler_static_GCJ \ 18378 lt_prog_compiler_no_builtin_flag_GCJ \ 18379 export_dynamic_flag_spec_GCJ \ 18380 thread_safe_flag_spec_GCJ \ 18381 whole_archive_flag_spec_GCJ \ 18382 enable_shared_with_static_runtimes_GCJ \ 18383 old_archive_cmds_GCJ \ 18384 old_archive_from_new_cmds_GCJ \ 18385 predep_objects_GCJ \ 18386 postdep_objects_GCJ \ 18387 predeps_GCJ \ 18388 postdeps_GCJ \ 18389 compiler_lib_search_path_GCJ \ 18390 archive_cmds_GCJ \ 18391 archive_expsym_cmds_GCJ \ 18392 postinstall_cmds_GCJ \ 18393 postuninstall_cmds_GCJ \ 18394 old_archive_from_expsyms_cmds_GCJ \ 18395 allow_undefined_flag_GCJ \ 18396 no_undefined_flag_GCJ \ 18397 export_symbols_cmds_GCJ \ 18398 hardcode_libdir_flag_spec_GCJ \ 18399 hardcode_libdir_flag_spec_ld_GCJ \ 18400 hardcode_libdir_separator_GCJ \ 18401 hardcode_automatic_GCJ \ 18402 module_cmds_GCJ \ 18403 module_expsym_cmds_GCJ \ 18404 lt_cv_prog_compiler_c_o_GCJ \ 18405 exclude_expsyms_GCJ \ 18406 include_expsyms_GCJ; do 18407 18408 case $var in 18409 old_archive_cmds_GCJ | \ 18410 old_archive_from_new_cmds_GCJ | \ 18411 archive_cmds_GCJ | \ 18412 archive_expsym_cmds_GCJ | \ 18413 module_cmds_GCJ | \ 18414 module_expsym_cmds_GCJ | \ 18415 old_archive_from_expsyms_cmds_GCJ | \ 18416 export_symbols_cmds_GCJ | \ 18417 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18418 postinstall_cmds | postuninstall_cmds | \ 18419 old_postinstall_cmds | old_postuninstall_cmds | \ 18420 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18421 # Double-quote double-evaled strings. 18422 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18423 ;; 18424 *) 18425 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18426 ;; 18427 esac 18428 done 18429 18430 case $lt_echo in 18431 *'\$0 --fallback-echo"') 18432 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18433 ;; 18434 esac 18435 18436cfgfile="$ofile" 18437 18438 cat <<__EOF__ >> "$cfgfile" 18439# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18440 18441# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18442 18443# Shell to use when invoking shell scripts. 18444SHELL=$lt_SHELL 18445 18446# Whether or not to build shared libraries. 18447build_libtool_libs=$enable_shared 18448 18449# Whether or not to build static libraries. 18450build_old_libs=$enable_static 18451 18452# Whether or not to add -lc for building shared libraries. 18453build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18454 18455# Whether or not to disallow shared libs when runtime libs are static 18456allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18457 18458# Whether or not to optimize for fast installation. 18459fast_install=$enable_fast_install 18460 18461# The host system. 18462host_alias=$host_alias 18463host=$host 18464 18465# An echo program that does not interpret backslashes. 18466echo=$lt_echo 18467 18468# The archiver. 18469AR=$lt_AR 18470AR_FLAGS=$lt_AR_FLAGS 18471 18472# A C compiler. 18473LTCC=$lt_LTCC 18474 18475# A language-specific compiler. 18476CC=$lt_compiler_GCJ 18477 18478# Is the compiler the GNU C compiler? 18479with_gcc=$GCC_GCJ 18480 18481# An ERE matcher. 18482EGREP=$lt_EGREP 18483 18484# The linker used to build libraries. 18485LD=$lt_LD_GCJ 18486 18487# Whether we need hard or soft links. 18488LN_S=$lt_LN_S 18489 18490# A BSD-compatible nm program. 18491NM=$lt_NM 18492 18493# A symbol stripping program 18494STRIP=$lt_STRIP 18495 18496# Used to examine libraries when file_magic_cmd begins "file" 18497MAGIC_CMD=$MAGIC_CMD 18498 18499# Used on cygwin: DLL creation program. 18500DLLTOOL="$DLLTOOL" 18501 18502# Used on cygwin: object dumper. 18503OBJDUMP="$OBJDUMP" 18504 18505# Used on cygwin: assembler. 18506AS="$AS" 18507 18508# The name of the directory that contains temporary libtool files. 18509objdir=$objdir 18510 18511# How to create reloadable object files. 18512reload_flag=$lt_reload_flag 18513reload_cmds=$lt_reload_cmds 18514 18515# How to pass a linker flag through the compiler. 18516wl=$lt_lt_prog_compiler_wl_GCJ 18517 18518# Object file suffix (normally "o"). 18519objext="$ac_objext" 18520 18521# Old archive suffix (normally "a"). 18522libext="$libext" 18523 18524# Shared library suffix (normally ".so"). 18525shrext_cmds='$shrext_cmds' 18526 18527# Executable file suffix (normally ""). 18528exeext="$exeext" 18529 18530# Additional compiler flags for building library objects. 18531pic_flag=$lt_lt_prog_compiler_pic_GCJ 18532pic_mode=$pic_mode 18533 18534# What is the maximum length of a command? 18535max_cmd_len=$lt_cv_sys_max_cmd_len 18536 18537# Does compiler simultaneously support -c and -o options? 18538compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18539 18540# Must we lock files when doing compilation ? 18541need_locks=$lt_need_locks 18542 18543# Do we need the lib prefix for modules? 18544need_lib_prefix=$need_lib_prefix 18545 18546# Do we need a version for libraries? 18547need_version=$need_version 18548 18549# Whether dlopen is supported. 18550dlopen_support=$enable_dlopen 18551 18552# Whether dlopen of programs is supported. 18553dlopen_self=$enable_dlopen_self 18554 18555# Whether dlopen of statically linked programs is supported. 18556dlopen_self_static=$enable_dlopen_self_static 18557 18558# Compiler flag to prevent dynamic linking. 18559link_static_flag=$lt_lt_prog_compiler_static_GCJ 18560 18561# Compiler flag to turn off builtin functions. 18562no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18563 18564# Compiler flag to allow reflexive dlopens. 18565export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18566 18567# Compiler flag to generate shared objects directly from archives. 18568whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18569 18570# Compiler flag to generate thread-safe objects. 18571thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18572 18573# Library versioning type. 18574version_type=$version_type 18575 18576# Format of library name prefix. 18577libname_spec=$lt_libname_spec 18578 18579# List of archive names. First name is the real one, the rest are links. 18580# The last name is the one that the linker finds with -lNAME. 18581library_names_spec=$lt_library_names_spec 18582 18583# The coded name of the library, if different from the real name. 18584soname_spec=$lt_soname_spec 18585 18586# Commands used to build and install an old-style archive. 18587RANLIB=$lt_RANLIB 18588old_archive_cmds=$lt_old_archive_cmds_GCJ 18589old_postinstall_cmds=$lt_old_postinstall_cmds 18590old_postuninstall_cmds=$lt_old_postuninstall_cmds 18591 18592# Create an old-style archive from a shared archive. 18593old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18594 18595# Create a temporary old-style archive to link instead of a shared archive. 18596old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18597 18598# Commands used to build and install a shared archive. 18599archive_cmds=$lt_archive_cmds_GCJ 18600archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18601postinstall_cmds=$lt_postinstall_cmds 18602postuninstall_cmds=$lt_postuninstall_cmds 18603 18604# Commands used to build a loadable module (assumed same as above if empty) 18605module_cmds=$lt_module_cmds_GCJ 18606module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18607 18608# Commands to strip libraries. 18609old_striplib=$lt_old_striplib 18610striplib=$lt_striplib 18611 18612# Dependencies to place before the objects being linked to create a 18613# shared library. 18614predep_objects=$lt_predep_objects_GCJ 18615 18616# Dependencies to place after the objects being linked to create a 18617# shared library. 18618postdep_objects=$lt_postdep_objects_GCJ 18619 18620# Dependencies to place before the objects being linked to create a 18621# shared library. 18622predeps=$lt_predeps_GCJ 18623 18624# Dependencies to place after the objects being linked to create a 18625# shared library. 18626postdeps=$lt_postdeps_GCJ 18627 18628# The library search path used internally by the compiler when linking 18629# a shared library. 18630compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18631 18632# Method to check whether dependent libraries are shared objects. 18633deplibs_check_method=$lt_deplibs_check_method 18634 18635# Command to use when deplibs_check_method == file_magic. 18636file_magic_cmd=$lt_file_magic_cmd 18637 18638# Flag that allows shared libraries with undefined symbols to be built. 18639allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18640 18641# Flag that forces no undefined symbols. 18642no_undefined_flag=$lt_no_undefined_flag_GCJ 18643 18644# Commands used to finish a libtool library installation in a directory. 18645finish_cmds=$lt_finish_cmds 18646 18647# Same as above, but a single script fragment to be evaled but not shown. 18648finish_eval=$lt_finish_eval 18649 18650# Take the output of nm and produce a listing of raw symbols and C names. 18651global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18652 18653# Transform the output of nm in a proper C declaration 18654global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18655 18656# Transform the output of nm in a C name address pair 18657global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18658 18659# This is the shared library runtime path variable. 18660runpath_var=$runpath_var 18661 18662# This is the shared library path variable. 18663shlibpath_var=$shlibpath_var 18664 18665# Is shlibpath searched before the hard-coded library search path? 18666shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18667 18668# How to hardcode a shared library path into an executable. 18669hardcode_action=$hardcode_action_GCJ 18670 18671# Whether we should hardcode library paths into libraries. 18672hardcode_into_libs=$hardcode_into_libs 18673 18674# Flag to hardcode \$libdir into a binary during linking. 18675# This must work even if \$libdir does not exist. 18676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18677 18678# If ld is used when linking, flag to hardcode \$libdir into 18679# a binary during linking. This must work even if \$libdir does 18680# not exist. 18681hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18682 18683# Whether we need a single -rpath flag with a separated argument. 18684hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18685 18686# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18687# resulting binary. 18688hardcode_direct=$hardcode_direct_GCJ 18689 18690# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18691# resulting binary. 18692hardcode_minus_L=$hardcode_minus_L_GCJ 18693 18694# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18695# the resulting binary. 18696hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18697 18698# Set to yes if building a shared library automatically hardcodes DIR into the library 18699# and all subsequent libraries and executables linked against it. 18700hardcode_automatic=$hardcode_automatic_GCJ 18701 18702# Variables whose values should be saved in libtool wrapper scripts and 18703# restored at relink time. 18704variables_saved_for_relink="$variables_saved_for_relink" 18705 18706# Whether libtool must link a program against all its dependency libraries. 18707link_all_deplibs=$link_all_deplibs_GCJ 18708 18709# Compile-time system search path for libraries 18710sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18711 18712# Run-time system search path for libraries 18713sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18714 18715# Fix the shell variable \$srcfile for the compiler. 18716fix_srcfile_path="$fix_srcfile_path_GCJ" 18717 18718# Set to yes if exported symbols are required. 18719always_export_symbols=$always_export_symbols_GCJ 18720 18721# The commands to list exported symbols. 18722export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18723 18724# The commands to extract the exported symbol list from a shared archive. 18725extract_expsyms_cmds=$lt_extract_expsyms_cmds 18726 18727# Symbols that should not be listed in the preloaded symbols. 18728exclude_expsyms=$lt_exclude_expsyms_GCJ 18729 18730# Symbols that must always be exported. 18731include_expsyms=$lt_include_expsyms_GCJ 18732 18733# ### END LIBTOOL TAG CONFIG: $tagname 18734 18735__EOF__ 18736 18737 18738else 18739 # If there is no Makefile yet, we rely on a make rule to execute 18740 # `config.status --recheck' to rerun these tests and create the 18741 # libtool script then. 18742 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18743 if test -f "$ltmain_in"; then 18744 test -f Makefile && make "$ltmain" 18745 fi 18746fi 18747 18748 18749ac_ext=c 18750ac_cpp='$CPP $CPPFLAGS' 18751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18753ac_compiler_gnu=$ac_cv_c_compiler_gnu 18754 18755CC="$lt_save_CC" 18756 18757 else 18758 tagname="" 18759 fi 18760 ;; 18761 18762 RC) 18763 18764 18765 18766# Source file extension for RC test sources. 18767ac_ext=rc 18768 18769# Object file extension for compiled RC test sources. 18770objext=o 18771objext_RC=$objext 18772 18773# Code to be used in simple compile tests 18774lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18775 18776# Code to be used in simple link tests 18777lt_simple_link_test_code="$lt_simple_compile_test_code" 18778 18779# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18780 18781# If no C compiler was specified, use CC. 18782LTCC=${LTCC-"$CC"} 18783 18784# Allow CC to be a program name with arguments. 18785compiler=$CC 18786 18787 18788# Allow CC to be a program name with arguments. 18789lt_save_CC="$CC" 18790CC=${RC-"windres"} 18791compiler=$CC 18792compiler_RC=$CC 18793lt_cv_prog_compiler_c_o_RC=yes 18794 18795# The else clause should only fire when bootstrapping the 18796# libtool distribution, otherwise you forgot to ship ltmain.sh 18797# with your package, and you will get complaints that there are 18798# no rules to generate ltmain.sh. 18799if test -f "$ltmain"; then 18800 # See if we are running on zsh, and set the options which allow our commands through 18801 # without removal of \ escapes. 18802 if test -n "${ZSH_VERSION+set}" ; then 18803 setopt NO_GLOB_SUBST 18804 fi 18805 # Now quote all the things that may contain metacharacters while being 18806 # careful not to overquote the AC_SUBSTed values. We take copies of the 18807 # variables and quote the copies for generation of the libtool script. 18808 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18809 SED SHELL STRIP \ 18810 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18811 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18812 deplibs_check_method reload_flag reload_cmds need_locks \ 18813 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18814 lt_cv_sys_global_symbol_to_c_name_address \ 18815 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18816 old_postinstall_cmds old_postuninstall_cmds \ 18817 compiler_RC \ 18818 CC_RC \ 18819 LD_RC \ 18820 lt_prog_compiler_wl_RC \ 18821 lt_prog_compiler_pic_RC \ 18822 lt_prog_compiler_static_RC \ 18823 lt_prog_compiler_no_builtin_flag_RC \ 18824 export_dynamic_flag_spec_RC \ 18825 thread_safe_flag_spec_RC \ 18826 whole_archive_flag_spec_RC \ 18827 enable_shared_with_static_runtimes_RC \ 18828 old_archive_cmds_RC \ 18829 old_archive_from_new_cmds_RC \ 18830 predep_objects_RC \ 18831 postdep_objects_RC \ 18832 predeps_RC \ 18833 postdeps_RC \ 18834 compiler_lib_search_path_RC \ 18835 archive_cmds_RC \ 18836 archive_expsym_cmds_RC \ 18837 postinstall_cmds_RC \ 18838 postuninstall_cmds_RC \ 18839 old_archive_from_expsyms_cmds_RC \ 18840 allow_undefined_flag_RC \ 18841 no_undefined_flag_RC \ 18842 export_symbols_cmds_RC \ 18843 hardcode_libdir_flag_spec_RC \ 18844 hardcode_libdir_flag_spec_ld_RC \ 18845 hardcode_libdir_separator_RC \ 18846 hardcode_automatic_RC \ 18847 module_cmds_RC \ 18848 module_expsym_cmds_RC \ 18849 lt_cv_prog_compiler_c_o_RC \ 18850 exclude_expsyms_RC \ 18851 include_expsyms_RC; do 18852 18853 case $var in 18854 old_archive_cmds_RC | \ 18855 old_archive_from_new_cmds_RC | \ 18856 archive_cmds_RC | \ 18857 archive_expsym_cmds_RC | \ 18858 module_cmds_RC | \ 18859 module_expsym_cmds_RC | \ 18860 old_archive_from_expsyms_cmds_RC | \ 18861 export_symbols_cmds_RC | \ 18862 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18863 postinstall_cmds | postuninstall_cmds | \ 18864 old_postinstall_cmds | old_postuninstall_cmds | \ 18865 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18866 # Double-quote double-evaled strings. 18867 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18868 ;; 18869 *) 18870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18871 ;; 18872 esac 18873 done 18874 18875 case $lt_echo in 18876 *'\$0 --fallback-echo"') 18877 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18878 ;; 18879 esac 18880 18881cfgfile="$ofile" 18882 18883 cat <<__EOF__ >> "$cfgfile" 18884# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18885 18886# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18887 18888# Shell to use when invoking shell scripts. 18889SHELL=$lt_SHELL 18890 18891# Whether or not to build shared libraries. 18892build_libtool_libs=$enable_shared 18893 18894# Whether or not to build static libraries. 18895build_old_libs=$enable_static 18896 18897# Whether or not to add -lc for building shared libraries. 18898build_libtool_need_lc=$archive_cmds_need_lc_RC 18899 18900# Whether or not to disallow shared libs when runtime libs are static 18901allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18902 18903# Whether or not to optimize for fast installation. 18904fast_install=$enable_fast_install 18905 18906# The host system. 18907host_alias=$host_alias 18908host=$host 18909 18910# An echo program that does not interpret backslashes. 18911echo=$lt_echo 18912 18913# The archiver. 18914AR=$lt_AR 18915AR_FLAGS=$lt_AR_FLAGS 18916 18917# A C compiler. 18918LTCC=$lt_LTCC 18919 18920# A language-specific compiler. 18921CC=$lt_compiler_RC 18922 18923# Is the compiler the GNU C compiler? 18924with_gcc=$GCC_RC 18925 18926# An ERE matcher. 18927EGREP=$lt_EGREP 18928 18929# The linker used to build libraries. 18930LD=$lt_LD_RC 18931 18932# Whether we need hard or soft links. 18933LN_S=$lt_LN_S 18934 18935# A BSD-compatible nm program. 18936NM=$lt_NM 18937 18938# A symbol stripping program 18939STRIP=$lt_STRIP 18940 18941# Used to examine libraries when file_magic_cmd begins "file" 18942MAGIC_CMD=$MAGIC_CMD 18943 18944# Used on cygwin: DLL creation program. 18945DLLTOOL="$DLLTOOL" 18946 18947# Used on cygwin: object dumper. 18948OBJDUMP="$OBJDUMP" 18949 18950# Used on cygwin: assembler. 18951AS="$AS" 18952 18953# The name of the directory that contains temporary libtool files. 18954objdir=$objdir 18955 18956# How to create reloadable object files. 18957reload_flag=$lt_reload_flag 18958reload_cmds=$lt_reload_cmds 18959 18960# How to pass a linker flag through the compiler. 18961wl=$lt_lt_prog_compiler_wl_RC 18962 18963# Object file suffix (normally "o"). 18964objext="$ac_objext" 18965 18966# Old archive suffix (normally "a"). 18967libext="$libext" 18968 18969# Shared library suffix (normally ".so"). 18970shrext_cmds='$shrext_cmds' 18971 18972# Executable file suffix (normally ""). 18973exeext="$exeext" 18974 18975# Additional compiler flags for building library objects. 18976pic_flag=$lt_lt_prog_compiler_pic_RC 18977pic_mode=$pic_mode 18978 18979# What is the maximum length of a command? 18980max_cmd_len=$lt_cv_sys_max_cmd_len 18981 18982# Does compiler simultaneously support -c and -o options? 18983compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18984 18985# Must we lock files when doing compilation ? 18986need_locks=$lt_need_locks 18987 18988# Do we need the lib prefix for modules? 18989need_lib_prefix=$need_lib_prefix 18990 18991# Do we need a version for libraries? 18992need_version=$need_version 18993 18994# Whether dlopen is supported. 18995dlopen_support=$enable_dlopen 18996 18997# Whether dlopen of programs is supported. 18998dlopen_self=$enable_dlopen_self 18999 19000# Whether dlopen of statically linked programs is supported. 19001dlopen_self_static=$enable_dlopen_self_static 19002 19003# Compiler flag to prevent dynamic linking. 19004link_static_flag=$lt_lt_prog_compiler_static_RC 19005 19006# Compiler flag to turn off builtin functions. 19007no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19008 19009# Compiler flag to allow reflexive dlopens. 19010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19011 19012# Compiler flag to generate shared objects directly from archives. 19013whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19014 19015# Compiler flag to generate thread-safe objects. 19016thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19017 19018# Library versioning type. 19019version_type=$version_type 19020 19021# Format of library name prefix. 19022libname_spec=$lt_libname_spec 19023 19024# List of archive names. First name is the real one, the rest are links. 19025# The last name is the one that the linker finds with -lNAME. 19026library_names_spec=$lt_library_names_spec 19027 19028# The coded name of the library, if different from the real name. 19029soname_spec=$lt_soname_spec 19030 19031# Commands used to build and install an old-style archive. 19032RANLIB=$lt_RANLIB 19033old_archive_cmds=$lt_old_archive_cmds_RC 19034old_postinstall_cmds=$lt_old_postinstall_cmds 19035old_postuninstall_cmds=$lt_old_postuninstall_cmds 19036 19037# Create an old-style archive from a shared archive. 19038old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19039 19040# Create a temporary old-style archive to link instead of a shared archive. 19041old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19042 19043# Commands used to build and install a shared archive. 19044archive_cmds=$lt_archive_cmds_RC 19045archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19046postinstall_cmds=$lt_postinstall_cmds 19047postuninstall_cmds=$lt_postuninstall_cmds 19048 19049# Commands used to build a loadable module (assumed same as above if empty) 19050module_cmds=$lt_module_cmds_RC 19051module_expsym_cmds=$lt_module_expsym_cmds_RC 19052 19053# Commands to strip libraries. 19054old_striplib=$lt_old_striplib 19055striplib=$lt_striplib 19056 19057# Dependencies to place before the objects being linked to create a 19058# shared library. 19059predep_objects=$lt_predep_objects_RC 19060 19061# Dependencies to place after the objects being linked to create a 19062# shared library. 19063postdep_objects=$lt_postdep_objects_RC 19064 19065# Dependencies to place before the objects being linked to create a 19066# shared library. 19067predeps=$lt_predeps_RC 19068 19069# Dependencies to place after the objects being linked to create a 19070# shared library. 19071postdeps=$lt_postdeps_RC 19072 19073# The library search path used internally by the compiler when linking 19074# a shared library. 19075compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19076 19077# Method to check whether dependent libraries are shared objects. 19078deplibs_check_method=$lt_deplibs_check_method 19079 19080# Command to use when deplibs_check_method == file_magic. 19081file_magic_cmd=$lt_file_magic_cmd 19082 19083# Flag that allows shared libraries with undefined symbols to be built. 19084allow_undefined_flag=$lt_allow_undefined_flag_RC 19085 19086# Flag that forces no undefined symbols. 19087no_undefined_flag=$lt_no_undefined_flag_RC 19088 19089# Commands used to finish a libtool library installation in a directory. 19090finish_cmds=$lt_finish_cmds 19091 19092# Same as above, but a single script fragment to be evaled but not shown. 19093finish_eval=$lt_finish_eval 19094 19095# Take the output of nm and produce a listing of raw symbols and C names. 19096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19097 19098# Transform the output of nm in a proper C declaration 19099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19100 19101# Transform the output of nm in a C name address pair 19102global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19103 19104# This is the shared library runtime path variable. 19105runpath_var=$runpath_var 19106 19107# This is the shared library path variable. 19108shlibpath_var=$shlibpath_var 19109 19110# Is shlibpath searched before the hard-coded library search path? 19111shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19112 19113# How to hardcode a shared library path into an executable. 19114hardcode_action=$hardcode_action_RC 19115 19116# Whether we should hardcode library paths into libraries. 19117hardcode_into_libs=$hardcode_into_libs 19118 19119# Flag to hardcode \$libdir into a binary during linking. 19120# This must work even if \$libdir does not exist. 19121hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19122 19123# If ld is used when linking, flag to hardcode \$libdir into 19124# a binary during linking. This must work even if \$libdir does 19125# not exist. 19126hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19127 19128# Whether we need a single -rpath flag with a separated argument. 19129hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19130 19131# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19132# resulting binary. 19133hardcode_direct=$hardcode_direct_RC 19134 19135# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19136# resulting binary. 19137hardcode_minus_L=$hardcode_minus_L_RC 19138 19139# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19140# the resulting binary. 19141hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19142 19143# Set to yes if building a shared library automatically hardcodes DIR into the library 19144# and all subsequent libraries and executables linked against it. 19145hardcode_automatic=$hardcode_automatic_RC 19146 19147# Variables whose values should be saved in libtool wrapper scripts and 19148# restored at relink time. 19149variables_saved_for_relink="$variables_saved_for_relink" 19150 19151# Whether libtool must link a program against all its dependency libraries. 19152link_all_deplibs=$link_all_deplibs_RC 19153 19154# Compile-time system search path for libraries 19155sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19156 19157# Run-time system search path for libraries 19158sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19159 19160# Fix the shell variable \$srcfile for the compiler. 19161fix_srcfile_path="$fix_srcfile_path_RC" 19162 19163# Set to yes if exported symbols are required. 19164always_export_symbols=$always_export_symbols_RC 19165 19166# The commands to list exported symbols. 19167export_symbols_cmds=$lt_export_symbols_cmds_RC 19168 19169# The commands to extract the exported symbol list from a shared archive. 19170extract_expsyms_cmds=$lt_extract_expsyms_cmds 19171 19172# Symbols that should not be listed in the preloaded symbols. 19173exclude_expsyms=$lt_exclude_expsyms_RC 19174 19175# Symbols that must always be exported. 19176include_expsyms=$lt_include_expsyms_RC 19177 19178# ### END LIBTOOL TAG CONFIG: $tagname 19179 19180__EOF__ 19181 19182 19183else 19184 # If there is no Makefile yet, we rely on a make rule to execute 19185 # `config.status --recheck' to rerun these tests and create the 19186 # libtool script then. 19187 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19188 if test -f "$ltmain_in"; then 19189 test -f Makefile && make "$ltmain" 19190 fi 19191fi 19192 19193 19194ac_ext=c 19195ac_cpp='$CPP $CPPFLAGS' 19196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19198ac_compiler_gnu=$ac_cv_c_compiler_gnu 19199 19200CC="$lt_save_CC" 19201 19202 ;; 19203 19204 *) 19205 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19206echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19207 { (exit 1); exit 1; }; } 19208 ;; 19209 esac 19210 19211 # Append the new tag name to the list of available tags. 19212 if test -n "$tagname" ; then 19213 available_tags="$available_tags $tagname" 19214 fi 19215 fi 19216 done 19217 IFS="$lt_save_ifs" 19218 19219 # Now substitute the updated list of available tags. 19220 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19221 mv "${ofile}T" "$ofile" 19222 chmod +x "$ofile" 19223 else 19224 rm -f "${ofile}T" 19225 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19226echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19227 { (exit 1); exit 1; }; } 19228 fi 19229fi 19230 19231 19232 19233# This can be used to rebuild libtool when needed 19234LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19235 19236# Always use our own libtool. 19237LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19238 19239# Prevent multiple expansion 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260echo "$as_me:$LINENO: checking for X" >&5 19261echo $ECHO_N "checking for X... $ECHO_C" >&6 19262 19263 19264# Check whether --with-x or --without-x was given. 19265if test "${with_x+set}" = set; then 19266 withval="$with_x" 19267 19268fi; 19269# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 19270if test "x$with_x" = xno; then 19271 # The user explicitly disabled X. 19272 have_x=disabled 19273else 19274 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 19275 # Both variables are already set. 19276 have_x=yes 19277 else 19278 if test "${ac_cv_have_x+set}" = set; then 19279 echo $ECHO_N "(cached) $ECHO_C" >&6 19280else 19281 # One or both of the vars are not set, and there is no cached value. 19282ac_x_includes=no ac_x_libraries=no 19283rm -fr conftest.dir 19284if mkdir conftest.dir; then 19285 cd conftest.dir 19286 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 19287 cat >Imakefile <<'_ACEOF' 19288acfindx: 19289 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 19290_ACEOF 19291 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 19292 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 19293 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 19294 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 19295 for ac_extension in a so sl; do 19296 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 19297 test -f $ac_im_libdir/libX11.$ac_extension; then 19298 ac_im_usrlibdir=$ac_im_libdir; break 19299 fi 19300 done 19301 # Screen out bogus values from the imake configuration. They are 19302 # bogus both because they are the default anyway, and because 19303 # using them would break gcc on systems where it needs fixed includes. 19304 case $ac_im_incroot in 19305 /usr/include) ;; 19306 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 19307 esac 19308 case $ac_im_usrlibdir in 19309 /usr/lib | /lib) ;; 19310 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 19311 esac 19312 fi 19313 cd .. 19314 rm -fr conftest.dir 19315fi 19316 19317# Standard set of common directories for X headers. 19318# Check X11 before X11Rn because it is often a symlink to the current release. 19319ac_x_header_dirs=' 19320/usr/X11/include 19321/usr/X11R6/include 19322/usr/X11R5/include 19323/usr/X11R4/include 19324 19325/usr/include/X11 19326/usr/include/X11R6 19327/usr/include/X11R5 19328/usr/include/X11R4 19329 19330/usr/local/X11/include 19331/usr/local/X11R6/include 19332/usr/local/X11R5/include 19333/usr/local/X11R4/include 19334 19335/usr/local/include/X11 19336/usr/local/include/X11R6 19337/usr/local/include/X11R5 19338/usr/local/include/X11R4 19339 19340/usr/X386/include 19341/usr/x386/include 19342/usr/XFree86/include/X11 19343 19344/usr/include 19345/usr/local/include 19346/usr/unsupported/include 19347/usr/athena/include 19348/usr/local/x11r5/include 19349/usr/lpp/Xamples/include 19350 19351/usr/openwin/include 19352/usr/openwin/share/include' 19353 19354if test "$ac_x_includes" = no; then 19355 # Guess where to find include files, by looking for Intrinsic.h. 19356 # First, try using that file with no special directory specified. 19357 cat >conftest.$ac_ext <<_ACEOF 19358/* confdefs.h. */ 19359_ACEOF 19360cat confdefs.h >>conftest.$ac_ext 19361cat >>conftest.$ac_ext <<_ACEOF 19362/* end confdefs.h. */ 19363#include <X11/Intrinsic.h> 19364_ACEOF 19365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 19366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 19367 ac_status=$? 19368 grep -v '^ *+' conftest.er1 >conftest.err 19369 rm -f conftest.er1 19370 cat conftest.err >&5 19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19372 (exit $ac_status); } >/dev/null; then 19373 if test -s conftest.err; then 19374 ac_cpp_err=$ac_c_preproc_warn_flag 19375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19376 else 19377 ac_cpp_err= 19378 fi 19379else 19380 ac_cpp_err=yes 19381fi 19382if test -z "$ac_cpp_err"; then 19383 # We can compile using X headers with no special include directory. 19384ac_x_includes= 19385else 19386 echo "$as_me: failed program was:" >&5 19387sed 's/^/| /' conftest.$ac_ext >&5 19388 19389 for ac_dir in $ac_x_header_dirs; do 19390 if test -r "$ac_dir/X11/Intrinsic.h"; then 19391 ac_x_includes=$ac_dir 19392 break 19393 fi 19394done 19395fi 19396rm -f conftest.err conftest.$ac_ext 19397fi # $ac_x_includes = no 19398 19399if test "$ac_x_libraries" = no; then 19400 # Check for the libraries. 19401 # See if we find them without any special options. 19402 # Don't add to $LIBS permanently. 19403 ac_save_LIBS=$LIBS 19404 LIBS="-lXt $LIBS" 19405 cat >conftest.$ac_ext <<_ACEOF 19406/* confdefs.h. */ 19407_ACEOF 19408cat confdefs.h >>conftest.$ac_ext 19409cat >>conftest.$ac_ext <<_ACEOF 19410/* end confdefs.h. */ 19411#include <X11/Intrinsic.h> 19412int 19413main () 19414{ 19415XtMalloc (0) 19416 ; 19417 return 0; 19418} 19419_ACEOF 19420rm -f conftest.$ac_objext conftest$ac_exeext 19421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19422 (eval $ac_link) 2>conftest.er1 19423 ac_status=$? 19424 grep -v '^ *+' conftest.er1 >conftest.err 19425 rm -f conftest.er1 19426 cat conftest.err >&5 19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19428 (exit $ac_status); } && 19429 { ac_try='test -z "$ac_c_werror_flag" 19430 || test ! -s conftest.err' 19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19432 (eval $ac_try) 2>&5 19433 ac_status=$? 19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19435 (exit $ac_status); }; } && 19436 { ac_try='test -s conftest$ac_exeext' 19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19438 (eval $ac_try) 2>&5 19439 ac_status=$? 19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19441 (exit $ac_status); }; }; then 19442 LIBS=$ac_save_LIBS 19443# We can link X programs with no special library path. 19444ac_x_libraries= 19445else 19446 echo "$as_me: failed program was:" >&5 19447sed 's/^/| /' conftest.$ac_ext >&5 19448 19449LIBS=$ac_save_LIBS 19450for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 19451do 19452 # Don't even attempt the hair of trying to link an X program! 19453 for ac_extension in a so sl; do 19454 if test -r $ac_dir/libXt.$ac_extension; then 19455 ac_x_libraries=$ac_dir 19456 break 2 19457 fi 19458 done 19459done 19460fi 19461rm -f conftest.err conftest.$ac_objext \ 19462 conftest$ac_exeext conftest.$ac_ext 19463fi # $ac_x_libraries = no 19464 19465if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 19466 # Didn't find X anywhere. Cache the known absence of X. 19467 ac_cv_have_x="have_x=no" 19468else 19469 # Record where we found X for the cache. 19470 ac_cv_have_x="have_x=yes \ 19471 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 19472fi 19473fi 19474 19475 fi 19476 eval "$ac_cv_have_x" 19477fi # $with_x != no 19478 19479if test "$have_x" != yes; then 19480 echo "$as_me:$LINENO: result: $have_x" >&5 19481echo "${ECHO_T}$have_x" >&6 19482 no_x=yes 19483else 19484 # If each of the values was on the command line, it overrides each guess. 19485 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 19486 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 19487 # Update the cache value to reflect the command line values. 19488 ac_cv_have_x="have_x=yes \ 19489 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 19490 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 19491echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 19492fi 19493 19494if test "$no_x" = yes; then 19495 # Not all programs may use this symbol, but it does not hurt to define it. 19496 19497cat >>confdefs.h <<\_ACEOF 19498#define X_DISPLAY_MISSING 1 19499_ACEOF 19500 19501 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 19502else 19503 if test -n "$x_includes"; then 19504 X_CFLAGS="$X_CFLAGS -I$x_includes" 19505 fi 19506 19507 # It would also be nice to do this for all -L options, not just this one. 19508 if test -n "$x_libraries"; then 19509 X_LIBS="$X_LIBS -L$x_libraries" 19510 # For Solaris; some versions of Sun CC require a space after -R and 19511 # others require no space. Words are not sufficient . . . . 19512 case `(uname -sr) 2>/dev/null` in 19513 "SunOS 5"*) 19514 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 19515echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 19516 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 19517 cat >conftest.$ac_ext <<_ACEOF 19518/* confdefs.h. */ 19519_ACEOF 19520cat confdefs.h >>conftest.$ac_ext 19521cat >>conftest.$ac_ext <<_ACEOF 19522/* end confdefs.h. */ 19523 19524int 19525main () 19526{ 19527 19528 ; 19529 return 0; 19530} 19531_ACEOF 19532rm -f conftest.$ac_objext conftest$ac_exeext 19533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19534 (eval $ac_link) 2>conftest.er1 19535 ac_status=$? 19536 grep -v '^ *+' conftest.er1 >conftest.err 19537 rm -f conftest.er1 19538 cat conftest.err >&5 19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19540 (exit $ac_status); } && 19541 { ac_try='test -z "$ac_c_werror_flag" 19542 || test ! -s conftest.err' 19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19544 (eval $ac_try) 2>&5 19545 ac_status=$? 19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19547 (exit $ac_status); }; } && 19548 { ac_try='test -s conftest$ac_exeext' 19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19550 (eval $ac_try) 2>&5 19551 ac_status=$? 19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19553 (exit $ac_status); }; }; then 19554 ac_R_nospace=yes 19555else 19556 echo "$as_me: failed program was:" >&5 19557sed 's/^/| /' conftest.$ac_ext >&5 19558 19559ac_R_nospace=no 19560fi 19561rm -f conftest.err conftest.$ac_objext \ 19562 conftest$ac_exeext conftest.$ac_ext 19563 if test $ac_R_nospace = yes; then 19564 echo "$as_me:$LINENO: result: no" >&5 19565echo "${ECHO_T}no" >&6 19566 X_LIBS="$X_LIBS -R$x_libraries" 19567 else 19568 LIBS="$ac_xsave_LIBS -R $x_libraries" 19569 cat >conftest.$ac_ext <<_ACEOF 19570/* confdefs.h. */ 19571_ACEOF 19572cat confdefs.h >>conftest.$ac_ext 19573cat >>conftest.$ac_ext <<_ACEOF 19574/* end confdefs.h. */ 19575 19576int 19577main () 19578{ 19579 19580 ; 19581 return 0; 19582} 19583_ACEOF 19584rm -f conftest.$ac_objext conftest$ac_exeext 19585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19586 (eval $ac_link) 2>conftest.er1 19587 ac_status=$? 19588 grep -v '^ *+' conftest.er1 >conftest.err 19589 rm -f conftest.er1 19590 cat conftest.err >&5 19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19592 (exit $ac_status); } && 19593 { ac_try='test -z "$ac_c_werror_flag" 19594 || test ! -s conftest.err' 19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19596 (eval $ac_try) 2>&5 19597 ac_status=$? 19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19599 (exit $ac_status); }; } && 19600 { ac_try='test -s conftest$ac_exeext' 19601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19602 (eval $ac_try) 2>&5 19603 ac_status=$? 19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19605 (exit $ac_status); }; }; then 19606 ac_R_space=yes 19607else 19608 echo "$as_me: failed program was:" >&5 19609sed 's/^/| /' conftest.$ac_ext >&5 19610 19611ac_R_space=no 19612fi 19613rm -f conftest.err conftest.$ac_objext \ 19614 conftest$ac_exeext conftest.$ac_ext 19615 if test $ac_R_space = yes; then 19616 echo "$as_me:$LINENO: result: yes" >&5 19617echo "${ECHO_T}yes" >&6 19618 X_LIBS="$X_LIBS -R $x_libraries" 19619 else 19620 echo "$as_me:$LINENO: result: neither works" >&5 19621echo "${ECHO_T}neither works" >&6 19622 fi 19623 fi 19624 LIBS=$ac_xsave_LIBS 19625 esac 19626 fi 19627 19628 # Check for system-dependent libraries X programs must link with. 19629 # Do this before checking for the system-independent R6 libraries 19630 # (-lICE), since we may need -lsocket or whatever for X linking. 19631 19632 if test "$ISC" = yes; then 19633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 19634 else 19635 # Martyn Johnson says this is needed for Ultrix, if the X 19636 # libraries were built with DECnet support. And Karl Berry says 19637 # the Alpha needs dnet_stub (dnet does not exist). 19638 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 19639 cat >conftest.$ac_ext <<_ACEOF 19640/* confdefs.h. */ 19641_ACEOF 19642cat confdefs.h >>conftest.$ac_ext 19643cat >>conftest.$ac_ext <<_ACEOF 19644/* end confdefs.h. */ 19645 19646/* Override any gcc2 internal prototype to avoid an error. */ 19647#ifdef __cplusplus 19648extern "C" 19649#endif 19650/* We use char because int might match the return type of a gcc2 19651 builtin and then its argument prototype would still apply. */ 19652char XOpenDisplay (); 19653int 19654main () 19655{ 19656XOpenDisplay (); 19657 ; 19658 return 0; 19659} 19660_ACEOF 19661rm -f conftest.$ac_objext conftest$ac_exeext 19662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19663 (eval $ac_link) 2>conftest.er1 19664 ac_status=$? 19665 grep -v '^ *+' conftest.er1 >conftest.err 19666 rm -f conftest.er1 19667 cat conftest.err >&5 19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19669 (exit $ac_status); } && 19670 { ac_try='test -z "$ac_c_werror_flag" 19671 || test ! -s conftest.err' 19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19673 (eval $ac_try) 2>&5 19674 ac_status=$? 19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19676 (exit $ac_status); }; } && 19677 { ac_try='test -s conftest$ac_exeext' 19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19679 (eval $ac_try) 2>&5 19680 ac_status=$? 19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19682 (exit $ac_status); }; }; then 19683 : 19684else 19685 echo "$as_me: failed program was:" >&5 19686sed 's/^/| /' conftest.$ac_ext >&5 19687 19688echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 19689echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 19690if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 19691 echo $ECHO_N "(cached) $ECHO_C" >&6 19692else 19693 ac_check_lib_save_LIBS=$LIBS 19694LIBS="-ldnet $LIBS" 19695cat >conftest.$ac_ext <<_ACEOF 19696/* confdefs.h. */ 19697_ACEOF 19698cat confdefs.h >>conftest.$ac_ext 19699cat >>conftest.$ac_ext <<_ACEOF 19700/* end confdefs.h. */ 19701 19702/* Override any gcc2 internal prototype to avoid an error. */ 19703#ifdef __cplusplus 19704extern "C" 19705#endif 19706/* We use char because int might match the return type of a gcc2 19707 builtin and then its argument prototype would still apply. */ 19708char dnet_ntoa (); 19709int 19710main () 19711{ 19712dnet_ntoa (); 19713 ; 19714 return 0; 19715} 19716_ACEOF 19717rm -f conftest.$ac_objext conftest$ac_exeext 19718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19719 (eval $ac_link) 2>conftest.er1 19720 ac_status=$? 19721 grep -v '^ *+' conftest.er1 >conftest.err 19722 rm -f conftest.er1 19723 cat conftest.err >&5 19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19725 (exit $ac_status); } && 19726 { ac_try='test -z "$ac_c_werror_flag" 19727 || test ! -s conftest.err' 19728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19729 (eval $ac_try) 2>&5 19730 ac_status=$? 19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19732 (exit $ac_status); }; } && 19733 { ac_try='test -s conftest$ac_exeext' 19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19735 (eval $ac_try) 2>&5 19736 ac_status=$? 19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19738 (exit $ac_status); }; }; then 19739 ac_cv_lib_dnet_dnet_ntoa=yes 19740else 19741 echo "$as_me: failed program was:" >&5 19742sed 's/^/| /' conftest.$ac_ext >&5 19743 19744ac_cv_lib_dnet_dnet_ntoa=no 19745fi 19746rm -f conftest.err conftest.$ac_objext \ 19747 conftest$ac_exeext conftest.$ac_ext 19748LIBS=$ac_check_lib_save_LIBS 19749fi 19750echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 19751echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 19752if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 19753 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 19754fi 19755 19756 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 19757 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 19758echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 19759if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 19760 echo $ECHO_N "(cached) $ECHO_C" >&6 19761else 19762 ac_check_lib_save_LIBS=$LIBS 19763LIBS="-ldnet_stub $LIBS" 19764cat >conftest.$ac_ext <<_ACEOF 19765/* confdefs.h. */ 19766_ACEOF 19767cat confdefs.h >>conftest.$ac_ext 19768cat >>conftest.$ac_ext <<_ACEOF 19769/* end confdefs.h. */ 19770 19771/* Override any gcc2 internal prototype to avoid an error. */ 19772#ifdef __cplusplus 19773extern "C" 19774#endif 19775/* We use char because int might match the return type of a gcc2 19776 builtin and then its argument prototype would still apply. */ 19777char dnet_ntoa (); 19778int 19779main () 19780{ 19781dnet_ntoa (); 19782 ; 19783 return 0; 19784} 19785_ACEOF 19786rm -f conftest.$ac_objext conftest$ac_exeext 19787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19788 (eval $ac_link) 2>conftest.er1 19789 ac_status=$? 19790 grep -v '^ *+' conftest.er1 >conftest.err 19791 rm -f conftest.er1 19792 cat conftest.err >&5 19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19794 (exit $ac_status); } && 19795 { ac_try='test -z "$ac_c_werror_flag" 19796 || test ! -s conftest.err' 19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19798 (eval $ac_try) 2>&5 19799 ac_status=$? 19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19801 (exit $ac_status); }; } && 19802 { ac_try='test -s conftest$ac_exeext' 19803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19804 (eval $ac_try) 2>&5 19805 ac_status=$? 19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19807 (exit $ac_status); }; }; then 19808 ac_cv_lib_dnet_stub_dnet_ntoa=yes 19809else 19810 echo "$as_me: failed program was:" >&5 19811sed 's/^/| /' conftest.$ac_ext >&5 19812 19813ac_cv_lib_dnet_stub_dnet_ntoa=no 19814fi 19815rm -f conftest.err conftest.$ac_objext \ 19816 conftest$ac_exeext conftest.$ac_ext 19817LIBS=$ac_check_lib_save_LIBS 19818fi 19819echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 19820echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 19821if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 19822 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 19823fi 19824 19825 fi 19826fi 19827rm -f conftest.err conftest.$ac_objext \ 19828 conftest$ac_exeext conftest.$ac_ext 19829 LIBS="$ac_xsave_LIBS" 19830 19831 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 19832 # to get the SysV transport functions. 19833 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 19834 # needs -lnsl. 19835 # The nsl library prevents programs from opening the X display 19836 # on Irix 5.2, according to T.E. Dickey. 19837 # The functions gethostbyname, getservbyname, and inet_addr are 19838 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 19839 echo "$as_me:$LINENO: checking for gethostbyname" >&5 19840echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 19841if test "${ac_cv_func_gethostbyname+set}" = set; then 19842 echo $ECHO_N "(cached) $ECHO_C" >&6 19843else 19844 cat >conftest.$ac_ext <<_ACEOF 19845/* confdefs.h. */ 19846_ACEOF 19847cat confdefs.h >>conftest.$ac_ext 19848cat >>conftest.$ac_ext <<_ACEOF 19849/* end confdefs.h. */ 19850/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 19851 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19852#define gethostbyname innocuous_gethostbyname 19853 19854/* System header to define __stub macros and hopefully few prototypes, 19855 which can conflict with char gethostbyname (); below. 19856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19857 <limits.h> exists even on freestanding compilers. */ 19858 19859#ifdef __STDC__ 19860# include <limits.h> 19861#else 19862# include <assert.h> 19863#endif 19864 19865#undef gethostbyname 19866 19867/* Override any gcc2 internal prototype to avoid an error. */ 19868#ifdef __cplusplus 19869extern "C" 19870{ 19871#endif 19872/* We use char because int might match the return type of a gcc2 19873 builtin and then its argument prototype would still apply. */ 19874char gethostbyname (); 19875/* The GNU C library defines this for functions which it implements 19876 to always fail with ENOSYS. Some functions are actually named 19877 something starting with __ and the normal name is an alias. */ 19878#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 19879choke me 19880#else 19881char (*f) () = gethostbyname; 19882#endif 19883#ifdef __cplusplus 19884} 19885#endif 19886 19887int 19888main () 19889{ 19890return f != gethostbyname; 19891 ; 19892 return 0; 19893} 19894_ACEOF 19895rm -f conftest.$ac_objext conftest$ac_exeext 19896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19897 (eval $ac_link) 2>conftest.er1 19898 ac_status=$? 19899 grep -v '^ *+' conftest.er1 >conftest.err 19900 rm -f conftest.er1 19901 cat conftest.err >&5 19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19903 (exit $ac_status); } && 19904 { ac_try='test -z "$ac_c_werror_flag" 19905 || test ! -s conftest.err' 19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19907 (eval $ac_try) 2>&5 19908 ac_status=$? 19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19910 (exit $ac_status); }; } && 19911 { ac_try='test -s conftest$ac_exeext' 19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19913 (eval $ac_try) 2>&5 19914 ac_status=$? 19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19916 (exit $ac_status); }; }; then 19917 ac_cv_func_gethostbyname=yes 19918else 19919 echo "$as_me: failed program was:" >&5 19920sed 's/^/| /' conftest.$ac_ext >&5 19921 19922ac_cv_func_gethostbyname=no 19923fi 19924rm -f conftest.err conftest.$ac_objext \ 19925 conftest$ac_exeext conftest.$ac_ext 19926fi 19927echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 19928echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 19929 19930 if test $ac_cv_func_gethostbyname = no; then 19931 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 19932echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 19933if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 19934 echo $ECHO_N "(cached) $ECHO_C" >&6 19935else 19936 ac_check_lib_save_LIBS=$LIBS 19937LIBS="-lnsl $LIBS" 19938cat >conftest.$ac_ext <<_ACEOF 19939/* confdefs.h. */ 19940_ACEOF 19941cat confdefs.h >>conftest.$ac_ext 19942cat >>conftest.$ac_ext <<_ACEOF 19943/* end confdefs.h. */ 19944 19945/* Override any gcc2 internal prototype to avoid an error. */ 19946#ifdef __cplusplus 19947extern "C" 19948#endif 19949/* We use char because int might match the return type of a gcc2 19950 builtin and then its argument prototype would still apply. */ 19951char gethostbyname (); 19952int 19953main () 19954{ 19955gethostbyname (); 19956 ; 19957 return 0; 19958} 19959_ACEOF 19960rm -f conftest.$ac_objext conftest$ac_exeext 19961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19962 (eval $ac_link) 2>conftest.er1 19963 ac_status=$? 19964 grep -v '^ *+' conftest.er1 >conftest.err 19965 rm -f conftest.er1 19966 cat conftest.err >&5 19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19968 (exit $ac_status); } && 19969 { ac_try='test -z "$ac_c_werror_flag" 19970 || 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_exeext' 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_lib_nsl_gethostbyname=yes 19983else 19984 echo "$as_me: failed program was:" >&5 19985sed 's/^/| /' conftest.$ac_ext >&5 19986 19987ac_cv_lib_nsl_gethostbyname=no 19988fi 19989rm -f conftest.err conftest.$ac_objext \ 19990 conftest$ac_exeext conftest.$ac_ext 19991LIBS=$ac_check_lib_save_LIBS 19992fi 19993echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 19994echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 19995if test $ac_cv_lib_nsl_gethostbyname = yes; then 19996 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 19997fi 19998 19999 if test $ac_cv_lib_nsl_gethostbyname = no; then 20000 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 20001echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 20002if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 20003 echo $ECHO_N "(cached) $ECHO_C" >&6 20004else 20005 ac_check_lib_save_LIBS=$LIBS 20006LIBS="-lbsd $LIBS" 20007cat >conftest.$ac_ext <<_ACEOF 20008/* confdefs.h. */ 20009_ACEOF 20010cat confdefs.h >>conftest.$ac_ext 20011cat >>conftest.$ac_ext <<_ACEOF 20012/* end confdefs.h. */ 20013 20014/* Override any gcc2 internal prototype to avoid an error. */ 20015#ifdef __cplusplus 20016extern "C" 20017#endif 20018/* We use char because int might match the return type of a gcc2 20019 builtin and then its argument prototype would still apply. */ 20020char gethostbyname (); 20021int 20022main () 20023{ 20024gethostbyname (); 20025 ; 20026 return 0; 20027} 20028_ACEOF 20029rm -f conftest.$ac_objext conftest$ac_exeext 20030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20031 (eval $ac_link) 2>conftest.er1 20032 ac_status=$? 20033 grep -v '^ *+' conftest.er1 >conftest.err 20034 rm -f conftest.er1 20035 cat conftest.err >&5 20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20037 (exit $ac_status); } && 20038 { ac_try='test -z "$ac_c_werror_flag" 20039 || test ! -s conftest.err' 20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20041 (eval $ac_try) 2>&5 20042 ac_status=$? 20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20044 (exit $ac_status); }; } && 20045 { ac_try='test -s conftest$ac_exeext' 20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20047 (eval $ac_try) 2>&5 20048 ac_status=$? 20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20050 (exit $ac_status); }; }; then 20051 ac_cv_lib_bsd_gethostbyname=yes 20052else 20053 echo "$as_me: failed program was:" >&5 20054sed 's/^/| /' conftest.$ac_ext >&5 20055 20056ac_cv_lib_bsd_gethostbyname=no 20057fi 20058rm -f conftest.err conftest.$ac_objext \ 20059 conftest$ac_exeext conftest.$ac_ext 20060LIBS=$ac_check_lib_save_LIBS 20061fi 20062echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 20063echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 20064if test $ac_cv_lib_bsd_gethostbyname = yes; then 20065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 20066fi 20067 20068 fi 20069 fi 20070 20071 # lieder@skyler.mavd.honeywell.com says without -lsocket, 20072 # socket/setsockopt and other routines are undefined under SCO ODT 20073 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 20074 # on later versions), says Simon Leinen: it contains gethostby* 20075 # variants that don't use the name server (or something). -lsocket 20076 # must be given before -lnsl if both are needed. We assume that 20077 # if connect needs -lnsl, so does gethostbyname. 20078 echo "$as_me:$LINENO: checking for connect" >&5 20079echo $ECHO_N "checking for connect... $ECHO_C" >&6 20080if test "${ac_cv_func_connect+set}" = set; then 20081 echo $ECHO_N "(cached) $ECHO_C" >&6 20082else 20083 cat >conftest.$ac_ext <<_ACEOF 20084/* confdefs.h. */ 20085_ACEOF 20086cat confdefs.h >>conftest.$ac_ext 20087cat >>conftest.$ac_ext <<_ACEOF 20088/* end confdefs.h. */ 20089/* Define connect to an innocuous variant, in case <limits.h> declares connect. 20090 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20091#define connect innocuous_connect 20092 20093/* System header to define __stub macros and hopefully few prototypes, 20094 which can conflict with char connect (); below. 20095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20096 <limits.h> exists even on freestanding compilers. */ 20097 20098#ifdef __STDC__ 20099# include <limits.h> 20100#else 20101# include <assert.h> 20102#endif 20103 20104#undef connect 20105 20106/* Override any gcc2 internal prototype to avoid an error. */ 20107#ifdef __cplusplus 20108extern "C" 20109{ 20110#endif 20111/* We use char because int might match the return type of a gcc2 20112 builtin and then its argument prototype would still apply. */ 20113char connect (); 20114/* The GNU C library defines this for functions which it implements 20115 to always fail with ENOSYS. Some functions are actually named 20116 something starting with __ and the normal name is an alias. */ 20117#if defined (__stub_connect) || defined (__stub___connect) 20118choke me 20119#else 20120char (*f) () = connect; 20121#endif 20122#ifdef __cplusplus 20123} 20124#endif 20125 20126int 20127main () 20128{ 20129return f != connect; 20130 ; 20131 return 0; 20132} 20133_ACEOF 20134rm -f conftest.$ac_objext conftest$ac_exeext 20135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20136 (eval $ac_link) 2>conftest.er1 20137 ac_status=$? 20138 grep -v '^ *+' conftest.er1 >conftest.err 20139 rm -f conftest.er1 20140 cat conftest.err >&5 20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20142 (exit $ac_status); } && 20143 { ac_try='test -z "$ac_c_werror_flag" 20144 || test ! -s conftest.err' 20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20146 (eval $ac_try) 2>&5 20147 ac_status=$? 20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20149 (exit $ac_status); }; } && 20150 { ac_try='test -s conftest$ac_exeext' 20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20152 (eval $ac_try) 2>&5 20153 ac_status=$? 20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20155 (exit $ac_status); }; }; then 20156 ac_cv_func_connect=yes 20157else 20158 echo "$as_me: failed program was:" >&5 20159sed 's/^/| /' conftest.$ac_ext >&5 20160 20161ac_cv_func_connect=no 20162fi 20163rm -f conftest.err conftest.$ac_objext \ 20164 conftest$ac_exeext conftest.$ac_ext 20165fi 20166echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 20167echo "${ECHO_T}$ac_cv_func_connect" >&6 20168 20169 if test $ac_cv_func_connect = no; then 20170 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 20171echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 20172if test "${ac_cv_lib_socket_connect+set}" = set; then 20173 echo $ECHO_N "(cached) $ECHO_C" >&6 20174else 20175 ac_check_lib_save_LIBS=$LIBS 20176LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 20177cat >conftest.$ac_ext <<_ACEOF 20178/* confdefs.h. */ 20179_ACEOF 20180cat confdefs.h >>conftest.$ac_ext 20181cat >>conftest.$ac_ext <<_ACEOF 20182/* end confdefs.h. */ 20183 20184/* Override any gcc2 internal prototype to avoid an error. */ 20185#ifdef __cplusplus 20186extern "C" 20187#endif 20188/* We use char because int might match the return type of a gcc2 20189 builtin and then its argument prototype would still apply. */ 20190char connect (); 20191int 20192main () 20193{ 20194connect (); 20195 ; 20196 return 0; 20197} 20198_ACEOF 20199rm -f conftest.$ac_objext conftest$ac_exeext 20200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20201 (eval $ac_link) 2>conftest.er1 20202 ac_status=$? 20203 grep -v '^ *+' conftest.er1 >conftest.err 20204 rm -f conftest.er1 20205 cat conftest.err >&5 20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20207 (exit $ac_status); } && 20208 { ac_try='test -z "$ac_c_werror_flag" 20209 || test ! -s conftest.err' 20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20211 (eval $ac_try) 2>&5 20212 ac_status=$? 20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20214 (exit $ac_status); }; } && 20215 { ac_try='test -s conftest$ac_exeext' 20216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20217 (eval $ac_try) 2>&5 20218 ac_status=$? 20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20220 (exit $ac_status); }; }; then 20221 ac_cv_lib_socket_connect=yes 20222else 20223 echo "$as_me: failed program was:" >&5 20224sed 's/^/| /' conftest.$ac_ext >&5 20225 20226ac_cv_lib_socket_connect=no 20227fi 20228rm -f conftest.err conftest.$ac_objext \ 20229 conftest$ac_exeext conftest.$ac_ext 20230LIBS=$ac_check_lib_save_LIBS 20231fi 20232echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 20233echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 20234if test $ac_cv_lib_socket_connect = yes; then 20235 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 20236fi 20237 20238 fi 20239 20240 # Guillermo Gomez says -lposix is necessary on A/UX. 20241 echo "$as_me:$LINENO: checking for remove" >&5 20242echo $ECHO_N "checking for remove... $ECHO_C" >&6 20243if test "${ac_cv_func_remove+set}" = set; then 20244 echo $ECHO_N "(cached) $ECHO_C" >&6 20245else 20246 cat >conftest.$ac_ext <<_ACEOF 20247/* confdefs.h. */ 20248_ACEOF 20249cat confdefs.h >>conftest.$ac_ext 20250cat >>conftest.$ac_ext <<_ACEOF 20251/* end confdefs.h. */ 20252/* Define remove to an innocuous variant, in case <limits.h> declares remove. 20253 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20254#define remove innocuous_remove 20255 20256/* System header to define __stub macros and hopefully few prototypes, 20257 which can conflict with char remove (); below. 20258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20259 <limits.h> exists even on freestanding compilers. */ 20260 20261#ifdef __STDC__ 20262# include <limits.h> 20263#else 20264# include <assert.h> 20265#endif 20266 20267#undef remove 20268 20269/* Override any gcc2 internal prototype to avoid an error. */ 20270#ifdef __cplusplus 20271extern "C" 20272{ 20273#endif 20274/* We use char because int might match the return type of a gcc2 20275 builtin and then its argument prototype would still apply. */ 20276char remove (); 20277/* The GNU C library defines this for functions which it implements 20278 to always fail with ENOSYS. Some functions are actually named 20279 something starting with __ and the normal name is an alias. */ 20280#if defined (__stub_remove) || defined (__stub___remove) 20281choke me 20282#else 20283char (*f) () = remove; 20284#endif 20285#ifdef __cplusplus 20286} 20287#endif 20288 20289int 20290main () 20291{ 20292return f != remove; 20293 ; 20294 return 0; 20295} 20296_ACEOF 20297rm -f conftest.$ac_objext conftest$ac_exeext 20298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20299 (eval $ac_link) 2>conftest.er1 20300 ac_status=$? 20301 grep -v '^ *+' conftest.er1 >conftest.err 20302 rm -f conftest.er1 20303 cat conftest.err >&5 20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20305 (exit $ac_status); } && 20306 { ac_try='test -z "$ac_c_werror_flag" 20307 || test ! -s conftest.err' 20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20309 (eval $ac_try) 2>&5 20310 ac_status=$? 20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20312 (exit $ac_status); }; } && 20313 { ac_try='test -s conftest$ac_exeext' 20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20315 (eval $ac_try) 2>&5 20316 ac_status=$? 20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20318 (exit $ac_status); }; }; then 20319 ac_cv_func_remove=yes 20320else 20321 echo "$as_me: failed program was:" >&5 20322sed 's/^/| /' conftest.$ac_ext >&5 20323 20324ac_cv_func_remove=no 20325fi 20326rm -f conftest.err conftest.$ac_objext \ 20327 conftest$ac_exeext conftest.$ac_ext 20328fi 20329echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 20330echo "${ECHO_T}$ac_cv_func_remove" >&6 20331 20332 if test $ac_cv_func_remove = no; then 20333 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 20334echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 20335if test "${ac_cv_lib_posix_remove+set}" = set; then 20336 echo $ECHO_N "(cached) $ECHO_C" >&6 20337else 20338 ac_check_lib_save_LIBS=$LIBS 20339LIBS="-lposix $LIBS" 20340cat >conftest.$ac_ext <<_ACEOF 20341/* confdefs.h. */ 20342_ACEOF 20343cat confdefs.h >>conftest.$ac_ext 20344cat >>conftest.$ac_ext <<_ACEOF 20345/* end confdefs.h. */ 20346 20347/* Override any gcc2 internal prototype to avoid an error. */ 20348#ifdef __cplusplus 20349extern "C" 20350#endif 20351/* We use char because int might match the return type of a gcc2 20352 builtin and then its argument prototype would still apply. */ 20353char remove (); 20354int 20355main () 20356{ 20357remove (); 20358 ; 20359 return 0; 20360} 20361_ACEOF 20362rm -f conftest.$ac_objext conftest$ac_exeext 20363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20364 (eval $ac_link) 2>conftest.er1 20365 ac_status=$? 20366 grep -v '^ *+' conftest.er1 >conftest.err 20367 rm -f conftest.er1 20368 cat conftest.err >&5 20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20370 (exit $ac_status); } && 20371 { ac_try='test -z "$ac_c_werror_flag" 20372 || test ! -s conftest.err' 20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20374 (eval $ac_try) 2>&5 20375 ac_status=$? 20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20377 (exit $ac_status); }; } && 20378 { ac_try='test -s conftest$ac_exeext' 20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20380 (eval $ac_try) 2>&5 20381 ac_status=$? 20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20383 (exit $ac_status); }; }; then 20384 ac_cv_lib_posix_remove=yes 20385else 20386 echo "$as_me: failed program was:" >&5 20387sed 's/^/| /' conftest.$ac_ext >&5 20388 20389ac_cv_lib_posix_remove=no 20390fi 20391rm -f conftest.err conftest.$ac_objext \ 20392 conftest$ac_exeext conftest.$ac_ext 20393LIBS=$ac_check_lib_save_LIBS 20394fi 20395echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 20396echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 20397if test $ac_cv_lib_posix_remove = yes; then 20398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 20399fi 20400 20401 fi 20402 20403 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 20404 echo "$as_me:$LINENO: checking for shmat" >&5 20405echo $ECHO_N "checking for shmat... $ECHO_C" >&6 20406if test "${ac_cv_func_shmat+set}" = set; then 20407 echo $ECHO_N "(cached) $ECHO_C" >&6 20408else 20409 cat >conftest.$ac_ext <<_ACEOF 20410/* confdefs.h. */ 20411_ACEOF 20412cat confdefs.h >>conftest.$ac_ext 20413cat >>conftest.$ac_ext <<_ACEOF 20414/* end confdefs.h. */ 20415/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 20416 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20417#define shmat innocuous_shmat 20418 20419/* System header to define __stub macros and hopefully few prototypes, 20420 which can conflict with char shmat (); below. 20421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20422 <limits.h> exists even on freestanding compilers. */ 20423 20424#ifdef __STDC__ 20425# include <limits.h> 20426#else 20427# include <assert.h> 20428#endif 20429 20430#undef shmat 20431 20432/* Override any gcc2 internal prototype to avoid an error. */ 20433#ifdef __cplusplus 20434extern "C" 20435{ 20436#endif 20437/* We use char because int might match the return type of a gcc2 20438 builtin and then its argument prototype would still apply. */ 20439char shmat (); 20440/* The GNU C library defines this for functions which it implements 20441 to always fail with ENOSYS. Some functions are actually named 20442 something starting with __ and the normal name is an alias. */ 20443#if defined (__stub_shmat) || defined (__stub___shmat) 20444choke me 20445#else 20446char (*f) () = shmat; 20447#endif 20448#ifdef __cplusplus 20449} 20450#endif 20451 20452int 20453main () 20454{ 20455return f != shmat; 20456 ; 20457 return 0; 20458} 20459_ACEOF 20460rm -f conftest.$ac_objext conftest$ac_exeext 20461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20462 (eval $ac_link) 2>conftest.er1 20463 ac_status=$? 20464 grep -v '^ *+' conftest.er1 >conftest.err 20465 rm -f conftest.er1 20466 cat conftest.err >&5 20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20468 (exit $ac_status); } && 20469 { ac_try='test -z "$ac_c_werror_flag" 20470 || test ! -s conftest.err' 20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20472 (eval $ac_try) 2>&5 20473 ac_status=$? 20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20475 (exit $ac_status); }; } && 20476 { ac_try='test -s conftest$ac_exeext' 20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20478 (eval $ac_try) 2>&5 20479 ac_status=$? 20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20481 (exit $ac_status); }; }; then 20482 ac_cv_func_shmat=yes 20483else 20484 echo "$as_me: failed program was:" >&5 20485sed 's/^/| /' conftest.$ac_ext >&5 20486 20487ac_cv_func_shmat=no 20488fi 20489rm -f conftest.err conftest.$ac_objext \ 20490 conftest$ac_exeext conftest.$ac_ext 20491fi 20492echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 20493echo "${ECHO_T}$ac_cv_func_shmat" >&6 20494 20495 if test $ac_cv_func_shmat = no; then 20496 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 20497echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 20498if test "${ac_cv_lib_ipc_shmat+set}" = set; then 20499 echo $ECHO_N "(cached) $ECHO_C" >&6 20500else 20501 ac_check_lib_save_LIBS=$LIBS 20502LIBS="-lipc $LIBS" 20503cat >conftest.$ac_ext <<_ACEOF 20504/* confdefs.h. */ 20505_ACEOF 20506cat confdefs.h >>conftest.$ac_ext 20507cat >>conftest.$ac_ext <<_ACEOF 20508/* end confdefs.h. */ 20509 20510/* Override any gcc2 internal prototype to avoid an error. */ 20511#ifdef __cplusplus 20512extern "C" 20513#endif 20514/* We use char because int might match the return type of a gcc2 20515 builtin and then its argument prototype would still apply. */ 20516char shmat (); 20517int 20518main () 20519{ 20520shmat (); 20521 ; 20522 return 0; 20523} 20524_ACEOF 20525rm -f conftest.$ac_objext conftest$ac_exeext 20526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20527 (eval $ac_link) 2>conftest.er1 20528 ac_status=$? 20529 grep -v '^ *+' conftest.er1 >conftest.err 20530 rm -f conftest.er1 20531 cat conftest.err >&5 20532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20533 (exit $ac_status); } && 20534 { ac_try='test -z "$ac_c_werror_flag" 20535 || test ! -s conftest.err' 20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20537 (eval $ac_try) 2>&5 20538 ac_status=$? 20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20540 (exit $ac_status); }; } && 20541 { ac_try='test -s conftest$ac_exeext' 20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20543 (eval $ac_try) 2>&5 20544 ac_status=$? 20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20546 (exit $ac_status); }; }; then 20547 ac_cv_lib_ipc_shmat=yes 20548else 20549 echo "$as_me: failed program was:" >&5 20550sed 's/^/| /' conftest.$ac_ext >&5 20551 20552ac_cv_lib_ipc_shmat=no 20553fi 20554rm -f conftest.err conftest.$ac_objext \ 20555 conftest$ac_exeext conftest.$ac_ext 20556LIBS=$ac_check_lib_save_LIBS 20557fi 20558echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 20559echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 20560if test $ac_cv_lib_ipc_shmat = yes; then 20561 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 20562fi 20563 20564 fi 20565 fi 20566 20567 # Check for libraries that X11R6 Xt/Xaw programs need. 20568 ac_save_LDFLAGS=$LDFLAGS 20569 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 20570 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 20571 # check for ICE first), but we must link in the order -lSM -lICE or 20572 # we get undefined symbols. So assume we have SM if we have ICE. 20573 # These have to be linked with before -lX11, unlike the other 20574 # libraries we check for below, so use a different variable. 20575 # John Interrante, Karl Berry 20576 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 20577echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 20578if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 20579 echo $ECHO_N "(cached) $ECHO_C" >&6 20580else 20581 ac_check_lib_save_LIBS=$LIBS 20582LIBS="-lICE $X_EXTRA_LIBS $LIBS" 20583cat >conftest.$ac_ext <<_ACEOF 20584/* confdefs.h. */ 20585_ACEOF 20586cat confdefs.h >>conftest.$ac_ext 20587cat >>conftest.$ac_ext <<_ACEOF 20588/* end confdefs.h. */ 20589 20590/* Override any gcc2 internal prototype to avoid an error. */ 20591#ifdef __cplusplus 20592extern "C" 20593#endif 20594/* We use char because int might match the return type of a gcc2 20595 builtin and then its argument prototype would still apply. */ 20596char IceConnectionNumber (); 20597int 20598main () 20599{ 20600IceConnectionNumber (); 20601 ; 20602 return 0; 20603} 20604_ACEOF 20605rm -f conftest.$ac_objext conftest$ac_exeext 20606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20607 (eval $ac_link) 2>conftest.er1 20608 ac_status=$? 20609 grep -v '^ *+' conftest.er1 >conftest.err 20610 rm -f conftest.er1 20611 cat conftest.err >&5 20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20613 (exit $ac_status); } && 20614 { ac_try='test -z "$ac_c_werror_flag" 20615 || test ! -s conftest.err' 20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20617 (eval $ac_try) 2>&5 20618 ac_status=$? 20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20620 (exit $ac_status); }; } && 20621 { ac_try='test -s conftest$ac_exeext' 20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20623 (eval $ac_try) 2>&5 20624 ac_status=$? 20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20626 (exit $ac_status); }; }; then 20627 ac_cv_lib_ICE_IceConnectionNumber=yes 20628else 20629 echo "$as_me: failed program was:" >&5 20630sed 's/^/| /' conftest.$ac_ext >&5 20631 20632ac_cv_lib_ICE_IceConnectionNumber=no 20633fi 20634rm -f conftest.err conftest.$ac_objext \ 20635 conftest$ac_exeext conftest.$ac_ext 20636LIBS=$ac_check_lib_save_LIBS 20637fi 20638echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 20639echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 20640if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 20641 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 20642fi 20643 20644 LDFLAGS=$ac_save_LDFLAGS 20645 20646fi 20647 20648# We need two libtools, one that builds both shared and static, and 20649# one that builds only static. This is because the resulting libtool 20650# does not allow us to choose which to build at runtime. 20651sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static 20652chmod +x libtool-disable-static 20653 20654LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS" 20655CFLAGS="$CFLAGS $X_CFLAGS -Wall" 20656M4DATADIR="$datadir/aclocal" 20657 20658 20659 20660# Check whether --with-gtk-prefix or --without-gtk-prefix was given. 20661if test "${with_gtk_prefix+set}" = set; then 20662 withval="$with_gtk_prefix" 20663 gtk_config_prefix="$withval" 20664else 20665 gtk_config_prefix="" 20666fi; 20667 20668# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. 20669if test "${with_gtk_exec_prefix+set}" = set; then 20670 withval="$with_gtk_exec_prefix" 20671 gtk_config_exec_prefix="$withval" 20672else 20673 gtk_config_exec_prefix="" 20674fi; 20675# Check whether --enable-gtktest or --disable-gtktest was given. 20676if test "${enable_gtktest+set}" = set; then 20677 enableval="$enable_gtktest" 20678 20679else 20680 enable_gtktest=yes 20681fi; 20682 20683 for module in . 20684 do 20685 case "$module" in 20686 gthread) 20687 gtk_config_args="$gtk_config_args gthread" 20688 ;; 20689 esac 20690 done 20691 20692 if test x$gtk_config_exec_prefix != x ; then 20693 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 20694 if test x${GTK_CONFIG+set} != xset ; then 20695 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 20696 fi 20697 fi 20698 if test x$gtk_config_prefix != x ; then 20699 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 20700 if test x${GTK_CONFIG+set} != xset ; then 20701 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 20702 fi 20703 fi 20704 20705 # Extract the first word of "gtk-config", so it can be a program name with args. 20706set dummy gtk-config; ac_word=$2 20707echo "$as_me:$LINENO: checking for $ac_word" >&5 20708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20709if test "${ac_cv_path_GTK_CONFIG+set}" = set; then 20710 echo $ECHO_N "(cached) $ECHO_C" >&6 20711else 20712 case $GTK_CONFIG in 20713 [\\/]* | ?:[\\/]*) 20714 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 20715 ;; 20716 *) 20717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20718for as_dir in $PATH 20719do 20720 IFS=$as_save_IFS 20721 test -z "$as_dir" && as_dir=. 20722 for ac_exec_ext in '' $ac_executable_extensions; do 20723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20724 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20726 break 2 20727 fi 20728done 20729done 20730 20731 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 20732 ;; 20733esac 20734fi 20735GTK_CONFIG=$ac_cv_path_GTK_CONFIG 20736 20737if test -n "$GTK_CONFIG"; then 20738 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 20739echo "${ECHO_T}$GTK_CONFIG" >&6 20740else 20741 echo "$as_me:$LINENO: result: no" >&5 20742echo "${ECHO_T}no" >&6 20743fi 20744 20745 min_gtk_version=1.2.2 20746 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 20747echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 20748 no_gtk="" 20749 if test "$GTK_CONFIG" = "no" ; then 20750 no_gtk=yes 20751 else 20752 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 20753 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 20754 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 20755 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 20756 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 20757 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 20758 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 20759 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 20760 if test "x$enable_gtktest" = "xyes" ; then 20761 ac_save_CFLAGS="$CFLAGS" 20762 ac_save_LIBS="$LIBS" 20763 CFLAGS="$CFLAGS $GTK_CFLAGS" 20764 LIBS="$GTK_LIBS $LIBS" 20765 rm -f conf.gtktest 20766 if test "$cross_compiling" = yes; then 20767 echo $ac_n "cross compiling; assumed OK... $ac_c" 20768else 20769 cat >conftest.$ac_ext <<_ACEOF 20770/* confdefs.h. */ 20771_ACEOF 20772cat confdefs.h >>conftest.$ac_ext 20773cat >>conftest.$ac_ext <<_ACEOF 20774/* end confdefs.h. */ 20775 20776#include <gtk/gtk.h> 20777#include <stdio.h> 20778#include <stdlib.h> 20779 20780int 20781main () 20782{ 20783 int major, minor, micro; 20784 char *tmp_version; 20785 20786 system ("touch conf.gtktest"); 20787 20788 /* HP/UX 9 (%@#!) writes to sscanf strings */ 20789 tmp_version = g_strdup("$min_gtk_version"); 20790 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 20791 printf("%s, bad version string\n", "$min_gtk_version"); 20792 exit(1); 20793 } 20794 20795 if ((gtk_major_version != $gtk_config_major_version) || 20796 (gtk_minor_version != $gtk_config_minor_version) || 20797 (gtk_micro_version != $gtk_config_micro_version)) 20798 { 20799 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 20800 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 20801 gtk_major_version, gtk_minor_version, gtk_micro_version); 20802 printf ("*** was found! If gtk-config was correct, then it is best\n"); 20803 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 20804 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 20805 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 20806 printf("*** required on your system.\n"); 20807 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 20808 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 20809 printf("*** before re-running configure\n"); 20810 } 20811#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 20812 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 20813 (gtk_minor_version != GTK_MINOR_VERSION) || 20814 (gtk_micro_version != GTK_MICRO_VERSION)) 20815 { 20816 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 20817 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 20818 printf("*** library (version %d.%d.%d)\n", 20819 gtk_major_version, gtk_minor_version, gtk_micro_version); 20820 } 20821#endif /* defined (GTK_MAJOR_VERSION) ... */ 20822 else 20823 { 20824 if ((gtk_major_version > major) || 20825 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 20826 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 20827 { 20828 return 0; 20829 } 20830 else 20831 { 20832 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 20833 gtk_major_version, gtk_minor_version, gtk_micro_version); 20834 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 20835 major, minor, micro); 20836 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 20837 printf("***\n"); 20838 printf("*** If you have already installed a sufficiently new version, this error\n"); 20839 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 20840 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 20841 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 20842 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 20843 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 20844 printf("*** so that the correct libraries are found at run-time))\n"); 20845 } 20846 } 20847 return 1; 20848} 20849 20850_ACEOF 20851rm -f conftest$ac_exeext 20852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20853 (eval $ac_link) 2>&5 20854 ac_status=$? 20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20858 (eval $ac_try) 2>&5 20859 ac_status=$? 20860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20861 (exit $ac_status); }; }; then 20862 : 20863else 20864 echo "$as_me: program exited with status $ac_status" >&5 20865echo "$as_me: failed program was:" >&5 20866sed 's/^/| /' conftest.$ac_ext >&5 20867 20868( exit $ac_status ) 20869no_gtk=yes 20870fi 20871rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20872fi 20873 CFLAGS="$ac_save_CFLAGS" 20874 LIBS="$ac_save_LIBS" 20875 fi 20876 fi 20877 if test "x$no_gtk" = x ; then 20878 echo "$as_me:$LINENO: result: yes" >&5 20879echo "${ECHO_T}yes" >&6 20880 : 20881 else 20882 echo "$as_me:$LINENO: result: no" >&5 20883echo "${ECHO_T}no" >&6 20884 if test "$GTK_CONFIG" = "no" ; then 20885 echo "*** The gtk-config script installed by GTK could not be found" 20886 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 20887 echo "*** your path, or set the GTK_CONFIG environment variable to the" 20888 echo "*** full path to gtk-config." 20889 else 20890 if test -f conf.gtktest ; then 20891 : 20892 else 20893 echo "*** Could not run GTK test program, checking why..." 20894 CFLAGS="$CFLAGS $GTK_CFLAGS" 20895 LIBS="$LIBS $GTK_LIBS" 20896 cat >conftest.$ac_ext <<_ACEOF 20897/* confdefs.h. */ 20898_ACEOF 20899cat confdefs.h >>conftest.$ac_ext 20900cat >>conftest.$ac_ext <<_ACEOF 20901/* end confdefs.h. */ 20902 20903#include <gtk/gtk.h> 20904#include <stdio.h> 20905 20906int 20907main () 20908{ 20909 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 20910 ; 20911 return 0; 20912} 20913_ACEOF 20914rm -f conftest.$ac_objext conftest$ac_exeext 20915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20916 (eval $ac_link) 2>conftest.er1 20917 ac_status=$? 20918 grep -v '^ *+' conftest.er1 >conftest.err 20919 rm -f conftest.er1 20920 cat conftest.err >&5 20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20922 (exit $ac_status); } && 20923 { ac_try='test -z "$ac_c_werror_flag" 20924 || test ! -s conftest.err' 20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20926 (eval $ac_try) 2>&5 20927 ac_status=$? 20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20929 (exit $ac_status); }; } && 20930 { ac_try='test -s conftest$ac_exeext' 20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20932 (eval $ac_try) 2>&5 20933 ac_status=$? 20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20935 (exit $ac_status); }; }; then 20936 echo "*** The test program compiled, but did not run. This usually means" 20937 echo "*** that the run-time linker is not finding GTK or finding the wrong" 20938 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 20939 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 20940 echo "*** to the installed location Also, make sure you have run ldconfig if that" 20941 echo "*** is required on your system" 20942 echo "***" 20943 echo "*** If you have an old version installed, it is best to remove it, although" 20944 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 20945 echo "***" 20946 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 20947 echo "*** came with the system with the command" 20948 echo "***" 20949 echo "*** rpm --erase --nodeps gtk gtk-devel" 20950else 20951 echo "$as_me: failed program was:" >&5 20952sed 's/^/| /' conftest.$ac_ext >&5 20953 20954 echo "*** The test program failed to compile or link. See the file config.log for the" 20955 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 20956 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 20957 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 20958fi 20959rm -f conftest.err conftest.$ac_objext \ 20960 conftest$ac_exeext conftest.$ac_ext 20961 CFLAGS="$ac_save_CFLAGS" 20962 LIBS="$ac_save_LIBS" 20963 fi 20964 fi 20965 GTK_CFLAGS="" 20966 GTK_LIBS="" 20967 { echo "$as_me:$LINENO: WARNING: *** GTK+ >= 1.2.2 not found ***" >&5 20968echo "$as_me: WARNING: *** GTK+ >= 1.2.2 not found ***" >&2;} 20969 fi 20970 20971 20972 rm -f conf.gtktest 20973 20974 20975echo "$as_me:$LINENO: checking for XInitThreads in -lX11" >&5 20976echo $ECHO_N "checking for XInitThreads in -lX11... $ECHO_C" >&6 20977if test "${ac_cv_lib_X11_XInitThreads+set}" = set; then 20978 echo $ECHO_N "(cached) $ECHO_C" >&6 20979else 20980 ac_check_lib_save_LIBS=$LIBS 20981LIBS="-lX11 $LIBS" 20982cat >conftest.$ac_ext <<_ACEOF 20983/* confdefs.h. */ 20984_ACEOF 20985cat confdefs.h >>conftest.$ac_ext 20986cat >>conftest.$ac_ext <<_ACEOF 20987/* end confdefs.h. */ 20988 20989/* Override any gcc2 internal prototype to avoid an error. */ 20990#ifdef __cplusplus 20991extern "C" 20992#endif 20993/* We use char because int might match the return type of a gcc2 20994 builtin and then its argument prototype would still apply. */ 20995char XInitThreads (); 20996int 20997main () 20998{ 20999XInitThreads (); 21000 ; 21001 return 0; 21002} 21003_ACEOF 21004rm -f conftest.$ac_objext conftest$ac_exeext 21005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21006 (eval $ac_link) 2>conftest.er1 21007 ac_status=$? 21008 grep -v '^ *+' conftest.er1 >conftest.err 21009 rm -f conftest.er1 21010 cat conftest.err >&5 21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21012 (exit $ac_status); } && 21013 { ac_try='test -z "$ac_c_werror_flag" 21014 || test ! -s conftest.err' 21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21016 (eval $ac_try) 2>&5 21017 ac_status=$? 21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21019 (exit $ac_status); }; } && 21020 { ac_try='test -s conftest$ac_exeext' 21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21022 (eval $ac_try) 2>&5 21023 ac_status=$? 21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21025 (exit $ac_status); }; }; then 21026 ac_cv_lib_X11_XInitThreads=yes 21027else 21028 echo "$as_me: failed program was:" >&5 21029sed 's/^/| /' conftest.$ac_ext >&5 21030 21031ac_cv_lib_X11_XInitThreads=no 21032fi 21033rm -f conftest.err conftest.$ac_objext \ 21034 conftest$ac_exeext conftest.$ac_ext 21035LIBS=$ac_check_lib_save_LIBS 21036fi 21037echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XInitThreads" >&5 21038echo "${ECHO_T}$ac_cv_lib_X11_XInitThreads" >&6 21039if test $ac_cv_lib_X11_XInitThreads = yes; then 21040 cat >>confdefs.h <<_ACEOF 21041#define HAVE_LIBX11 1 21042_ACEOF 21043 21044 LIBS="-lX11 $LIBS" 21045 21046else 21047 { { echo "$as_me:$LINENO: error: *** X11 not threadsafe ***" >&5 21048echo "$as_me: error: *** X11 not threadsafe ***" >&2;} 21049 { (exit 1); exit 1; }; } 21050fi 21051 21052 21053echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 21054echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 21055if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then 21056 echo $ECHO_N "(cached) $ECHO_C" >&6 21057else 21058 ac_check_lib_save_LIBS=$LIBS 21059LIBS="-lXext $LIBS" 21060cat >conftest.$ac_ext <<_ACEOF 21061/* confdefs.h. */ 21062_ACEOF 21063cat confdefs.h >>conftest.$ac_ext 21064cat >>conftest.$ac_ext <<_ACEOF 21065/* end confdefs.h. */ 21066 21067/* Override any gcc2 internal prototype to avoid an error. */ 21068#ifdef __cplusplus 21069extern "C" 21070#endif 21071/* We use char because int might match the return type of a gcc2 21072 builtin and then its argument prototype would still apply. */ 21073char XShapeQueryExtension (); 21074int 21075main () 21076{ 21077XShapeQueryExtension (); 21078 ; 21079 return 0; 21080} 21081_ACEOF 21082rm -f conftest.$ac_objext conftest$ac_exeext 21083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21084 (eval $ac_link) 2>conftest.er1 21085 ac_status=$? 21086 grep -v '^ *+' conftest.er1 >conftest.err 21087 rm -f conftest.er1 21088 cat conftest.err >&5 21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21090 (exit $ac_status); } && 21091 { ac_try='test -z "$ac_c_werror_flag" 21092 || test ! -s conftest.err' 21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21094 (eval $ac_try) 2>&5 21095 ac_status=$? 21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21097 (exit $ac_status); }; } && 21098 { ac_try='test -s conftest$ac_exeext' 21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21100 (eval $ac_try) 2>&5 21101 ac_status=$? 21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21103 (exit $ac_status); }; }; then 21104 ac_cv_lib_Xext_XShapeQueryExtension=yes 21105else 21106 echo "$as_me: failed program was:" >&5 21107sed 's/^/| /' conftest.$ac_ext >&5 21108 21109ac_cv_lib_Xext_XShapeQueryExtension=no 21110fi 21111rm -f conftest.err conftest.$ac_objext \ 21112 conftest$ac_exeext conftest.$ac_ext 21113LIBS=$ac_check_lib_save_LIBS 21114fi 21115echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 21116echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 21117if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then 21118 cat >>confdefs.h <<_ACEOF 21119#define HAVE_LIBXEXT 1 21120_ACEOF 21121 21122 LIBS="-lXext $LIBS" 21123 21124else 21125 { { echo "$as_me:$LINENO: error: *** X11 Shape extension not found ***" >&5 21126echo "$as_me: error: *** X11 Shape extension not found ***" >&2;} 21127 { (exit 1); exit 1; }; } 21128fi 21129 21130 21131echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 21132echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 21133if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 21134 echo $ECHO_N "(cached) $ECHO_C" >&6 21135else 21136 ac_check_lib_save_LIBS=$LIBS 21137LIBS="-lpthread $LIBS" 21138cat >conftest.$ac_ext <<_ACEOF 21139/* confdefs.h. */ 21140_ACEOF 21141cat confdefs.h >>conftest.$ac_ext 21142cat >>conftest.$ac_ext <<_ACEOF 21143/* end confdefs.h. */ 21144 21145/* Override any gcc2 internal prototype to avoid an error. */ 21146#ifdef __cplusplus 21147extern "C" 21148#endif 21149/* We use char because int might match the return type of a gcc2 21150 builtin and then its argument prototype would still apply. */ 21151char pthread_create (); 21152int 21153main () 21154{ 21155pthread_create (); 21156 ; 21157 return 0; 21158} 21159_ACEOF 21160rm -f conftest.$ac_objext conftest$ac_exeext 21161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21162 (eval $ac_link) 2>conftest.er1 21163 ac_status=$? 21164 grep -v '^ *+' conftest.er1 >conftest.err 21165 rm -f conftest.er1 21166 cat conftest.err >&5 21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21168 (exit $ac_status); } && 21169 { ac_try='test -z "$ac_c_werror_flag" 21170 || test ! -s conftest.err' 21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21172 (eval $ac_try) 2>&5 21173 ac_status=$? 21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21175 (exit $ac_status); }; } && 21176 { ac_try='test -s conftest$ac_exeext' 21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21178 (eval $ac_try) 2>&5 21179 ac_status=$? 21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21181 (exit $ac_status); }; }; then 21182 ac_cv_lib_pthread_pthread_create=yes 21183else 21184 echo "$as_me: failed program was:" >&5 21185sed 's/^/| /' conftest.$ac_ext >&5 21186 21187ac_cv_lib_pthread_pthread_create=no 21188fi 21189rm -f conftest.err conftest.$ac_objext \ 21190 conftest$ac_exeext conftest.$ac_ext 21191LIBS=$ac_check_lib_save_LIBS 21192fi 21193echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 21194echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 21195if test $ac_cv_lib_pthread_pthread_create = yes; then 21196 cat >>confdefs.h <<_ACEOF 21197#define HAVE_LIBPTHREAD 1 21198_ACEOF 21199 21200 LIBS="-lpthread $LIBS" 21201 21202else 21203 { { echo "$as_me:$LINENO: error: *** POSIX thread support not found ***" >&5 21204echo "$as_me: error: *** POSIX thread support not found ***" >&2;} 21205 { (exit 1); exit 1; }; } 21206fi 21207 21208 21209echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21210echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 21211if test "${ac_cv_header_stdc+set}" = set; then 21212 echo $ECHO_N "(cached) $ECHO_C" >&6 21213else 21214 cat >conftest.$ac_ext <<_ACEOF 21215/* confdefs.h. */ 21216_ACEOF 21217cat confdefs.h >>conftest.$ac_ext 21218cat >>conftest.$ac_ext <<_ACEOF 21219/* end confdefs.h. */ 21220#include <stdlib.h> 21221#include <stdarg.h> 21222#include <string.h> 21223#include <float.h> 21224 21225int 21226main () 21227{ 21228 21229 ; 21230 return 0; 21231} 21232_ACEOF 21233rm -f conftest.$ac_objext 21234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21235 (eval $ac_compile) 2>conftest.er1 21236 ac_status=$? 21237 grep -v '^ *+' conftest.er1 >conftest.err 21238 rm -f conftest.er1 21239 cat conftest.err >&5 21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21241 (exit $ac_status); } && 21242 { ac_try='test -z "$ac_c_werror_flag" 21243 || test ! -s conftest.err' 21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21245 (eval $ac_try) 2>&5 21246 ac_status=$? 21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21248 (exit $ac_status); }; } && 21249 { ac_try='test -s conftest.$ac_objext' 21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21251 (eval $ac_try) 2>&5 21252 ac_status=$? 21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21254 (exit $ac_status); }; }; then 21255 ac_cv_header_stdc=yes 21256else 21257 echo "$as_me: failed program was:" >&5 21258sed 's/^/| /' conftest.$ac_ext >&5 21259 21260ac_cv_header_stdc=no 21261fi 21262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21263 21264if test $ac_cv_header_stdc = yes; then 21265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21266 cat >conftest.$ac_ext <<_ACEOF 21267/* confdefs.h. */ 21268_ACEOF 21269cat confdefs.h >>conftest.$ac_ext 21270cat >>conftest.$ac_ext <<_ACEOF 21271/* end confdefs.h. */ 21272#include <string.h> 21273 21274_ACEOF 21275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21276 $EGREP "memchr" >/dev/null 2>&1; then 21277 : 21278else 21279 ac_cv_header_stdc=no 21280fi 21281rm -f conftest* 21282 21283fi 21284 21285if test $ac_cv_header_stdc = yes; then 21286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21287 cat >conftest.$ac_ext <<_ACEOF 21288/* confdefs.h. */ 21289_ACEOF 21290cat confdefs.h >>conftest.$ac_ext 21291cat >>conftest.$ac_ext <<_ACEOF 21292/* end confdefs.h. */ 21293#include <stdlib.h> 21294 21295_ACEOF 21296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21297 $EGREP "free" >/dev/null 2>&1; then 21298 : 21299else 21300 ac_cv_header_stdc=no 21301fi 21302rm -f conftest* 21303 21304fi 21305 21306if test $ac_cv_header_stdc = yes; then 21307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21308 if test "$cross_compiling" = yes; then 21309 : 21310else 21311 cat >conftest.$ac_ext <<_ACEOF 21312/* confdefs.h. */ 21313_ACEOF 21314cat confdefs.h >>conftest.$ac_ext 21315cat >>conftest.$ac_ext <<_ACEOF 21316/* end confdefs.h. */ 21317#include <ctype.h> 21318#if ((' ' & 0x0FF) == 0x020) 21319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21321#else 21322# define ISLOWER(c) \ 21323 (('a' <= (c) && (c) <= 'i') \ 21324 || ('j' <= (c) && (c) <= 'r') \ 21325 || ('s' <= (c) && (c) <= 'z')) 21326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21327#endif 21328 21329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21330int 21331main () 21332{ 21333 int i; 21334 for (i = 0; i < 256; i++) 21335 if (XOR (islower (i), ISLOWER (i)) 21336 || toupper (i) != TOUPPER (i)) 21337 exit(2); 21338 exit (0); 21339} 21340_ACEOF 21341rm -f conftest$ac_exeext 21342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21343 (eval $ac_link) 2>&5 21344 ac_status=$? 21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21348 (eval $ac_try) 2>&5 21349 ac_status=$? 21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21351 (exit $ac_status); }; }; then 21352 : 21353else 21354 echo "$as_me: program exited with status $ac_status" >&5 21355echo "$as_me: failed program was:" >&5 21356sed 's/^/| /' conftest.$ac_ext >&5 21357 21358( exit $ac_status ) 21359ac_cv_header_stdc=no 21360fi 21361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21362fi 21363fi 21364fi 21365echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21366echo "${ECHO_T}$ac_cv_header_stdc" >&6 21367if test $ac_cv_header_stdc = yes; then 21368 21369cat >>confdefs.h <<\_ACEOF 21370#define STDC_HEADERS 1 21371_ACEOF 21372 21373fi 21374 21375 21376for ac_header in unistd.h 21377do 21378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21379if eval "test \"\${$as_ac_Header+set}\" = set"; then 21380 echo "$as_me:$LINENO: checking for $ac_header" >&5 21381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21382if eval "test \"\${$as_ac_Header+set}\" = set"; then 21383 echo $ECHO_N "(cached) $ECHO_C" >&6 21384fi 21385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21387else 21388 # Is the header compilable? 21389echo "$as_me:$LINENO: checking $ac_header usability" >&5 21390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21391cat >conftest.$ac_ext <<_ACEOF 21392/* confdefs.h. */ 21393_ACEOF 21394cat confdefs.h >>conftest.$ac_ext 21395cat >>conftest.$ac_ext <<_ACEOF 21396/* end confdefs.h. */ 21397$ac_includes_default 21398#include <$ac_header> 21399_ACEOF 21400rm -f conftest.$ac_objext 21401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21402 (eval $ac_compile) 2>conftest.er1 21403 ac_status=$? 21404 grep -v '^ *+' conftest.er1 >conftest.err 21405 rm -f conftest.er1 21406 cat conftest.err >&5 21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21408 (exit $ac_status); } && 21409 { ac_try='test -z "$ac_c_werror_flag" 21410 || test ! -s conftest.err' 21411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21412 (eval $ac_try) 2>&5 21413 ac_status=$? 21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21415 (exit $ac_status); }; } && 21416 { ac_try='test -s conftest.$ac_objext' 21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21418 (eval $ac_try) 2>&5 21419 ac_status=$? 21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21421 (exit $ac_status); }; }; then 21422 ac_header_compiler=yes 21423else 21424 echo "$as_me: failed program was:" >&5 21425sed 's/^/| /' conftest.$ac_ext >&5 21426 21427ac_header_compiler=no 21428fi 21429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21431echo "${ECHO_T}$ac_header_compiler" >&6 21432 21433# Is the header present? 21434echo "$as_me:$LINENO: checking $ac_header presence" >&5 21435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21436cat >conftest.$ac_ext <<_ACEOF 21437/* confdefs.h. */ 21438_ACEOF 21439cat confdefs.h >>conftest.$ac_ext 21440cat >>conftest.$ac_ext <<_ACEOF 21441/* end confdefs.h. */ 21442#include <$ac_header> 21443_ACEOF 21444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21446 ac_status=$? 21447 grep -v '^ *+' conftest.er1 >conftest.err 21448 rm -f conftest.er1 21449 cat conftest.err >&5 21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21451 (exit $ac_status); } >/dev/null; then 21452 if test -s conftest.err; then 21453 ac_cpp_err=$ac_c_preproc_warn_flag 21454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21455 else 21456 ac_cpp_err= 21457 fi 21458else 21459 ac_cpp_err=yes 21460fi 21461if test -z "$ac_cpp_err"; then 21462 ac_header_preproc=yes 21463else 21464 echo "$as_me: failed program was:" >&5 21465sed 's/^/| /' conftest.$ac_ext >&5 21466 21467 ac_header_preproc=no 21468fi 21469rm -f conftest.err conftest.$ac_ext 21470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21471echo "${ECHO_T}$ac_header_preproc" >&6 21472 21473# So? What about this header? 21474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21475 yes:no: ) 21476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21480 ac_header_preproc=yes 21481 ;; 21482 no:yes:* ) 21483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21495 ( 21496 cat <<\_ASBOX 21497## ------------------------------- ## 21498## Report this to the xosd lists. ## 21499## ------------------------------- ## 21500_ASBOX 21501 ) | 21502 sed "s/^/$as_me: WARNING: /" >&2 21503 ;; 21504esac 21505echo "$as_me:$LINENO: checking for $ac_header" >&5 21506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21507if eval "test \"\${$as_ac_Header+set}\" = set"; then 21508 echo $ECHO_N "(cached) $ECHO_C" >&6 21509else 21510 eval "$as_ac_Header=\$ac_header_preproc" 21511fi 21512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21514 21515fi 21516if test `eval echo '${'$as_ac_Header'}'` = yes; then 21517 cat >>confdefs.h <<_ACEOF 21518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21519_ACEOF 21520 21521fi 21522 21523done 21524 21525if test "${ac_cv_header_pthread_h+set}" = set; then 21526 echo "$as_me:$LINENO: checking for pthread.h" >&5 21527echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 21528if test "${ac_cv_header_pthread_h+set}" = set; then 21529 echo $ECHO_N "(cached) $ECHO_C" >&6 21530fi 21531echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 21532echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 21533else 21534 # Is the header compilable? 21535echo "$as_me:$LINENO: checking pthread.h usability" >&5 21536echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6 21537cat >conftest.$ac_ext <<_ACEOF 21538/* confdefs.h. */ 21539_ACEOF 21540cat confdefs.h >>conftest.$ac_ext 21541cat >>conftest.$ac_ext <<_ACEOF 21542/* end confdefs.h. */ 21543$ac_includes_default 21544#include <pthread.h> 21545_ACEOF 21546rm -f conftest.$ac_objext 21547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21548 (eval $ac_compile) 2>conftest.er1 21549 ac_status=$? 21550 grep -v '^ *+' conftest.er1 >conftest.err 21551 rm -f conftest.er1 21552 cat conftest.err >&5 21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21554 (exit $ac_status); } && 21555 { ac_try='test -z "$ac_c_werror_flag" 21556 || test ! -s conftest.err' 21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21558 (eval $ac_try) 2>&5 21559 ac_status=$? 21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21561 (exit $ac_status); }; } && 21562 { ac_try='test -s conftest.$ac_objext' 21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21564 (eval $ac_try) 2>&5 21565 ac_status=$? 21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21567 (exit $ac_status); }; }; then 21568 ac_header_compiler=yes 21569else 21570 echo "$as_me: failed program was:" >&5 21571sed 's/^/| /' conftest.$ac_ext >&5 21572 21573ac_header_compiler=no 21574fi 21575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21577echo "${ECHO_T}$ac_header_compiler" >&6 21578 21579# Is the header present? 21580echo "$as_me:$LINENO: checking pthread.h presence" >&5 21581echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6 21582cat >conftest.$ac_ext <<_ACEOF 21583/* confdefs.h. */ 21584_ACEOF 21585cat confdefs.h >>conftest.$ac_ext 21586cat >>conftest.$ac_ext <<_ACEOF 21587/* end confdefs.h. */ 21588#include <pthread.h> 21589_ACEOF 21590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21592 ac_status=$? 21593 grep -v '^ *+' conftest.er1 >conftest.err 21594 rm -f conftest.er1 21595 cat conftest.err >&5 21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21597 (exit $ac_status); } >/dev/null; then 21598 if test -s conftest.err; then 21599 ac_cpp_err=$ac_c_preproc_warn_flag 21600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21601 else 21602 ac_cpp_err= 21603 fi 21604else 21605 ac_cpp_err=yes 21606fi 21607if test -z "$ac_cpp_err"; then 21608 ac_header_preproc=yes 21609else 21610 echo "$as_me: failed program was:" >&5 21611sed 's/^/| /' conftest.$ac_ext >&5 21612 21613 ac_header_preproc=no 21614fi 21615rm -f conftest.err conftest.$ac_ext 21616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21617echo "${ECHO_T}$ac_header_preproc" >&6 21618 21619# So? What about this header? 21620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21621 yes:no: ) 21622 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 21623echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21624 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 21625echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;} 21626 ac_header_preproc=yes 21627 ;; 21628 no:yes:* ) 21629 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 21630echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} 21631 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 21632echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} 21633 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 21634echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} 21635 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 21636echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} 21637 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 21638echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} 21639 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 21640echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;} 21641 ( 21642 cat <<\_ASBOX 21643## ------------------------------- ## 21644## Report this to the xosd lists. ## 21645## ------------------------------- ## 21646_ASBOX 21647 ) | 21648 sed "s/^/$as_me: WARNING: /" >&2 21649 ;; 21650esac 21651echo "$as_me:$LINENO: checking for pthread.h" >&5 21652echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6 21653if test "${ac_cv_header_pthread_h+set}" = set; then 21654 echo $ECHO_N "(cached) $ECHO_C" >&6 21655else 21656 ac_cv_header_pthread_h=$ac_header_preproc 21657fi 21658echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 21659echo "${ECHO_T}$ac_cv_header_pthread_h" >&6 21660 21661fi 21662if test $ac_cv_header_pthread_h = yes; then 21663 : 21664else 21665 { { echo "$as_me:$LINENO: error: *** POSIX thread support not installed ***" >&5 21666echo "$as_me: error: *** POSIX thread support not installed ***" >&2;} 21667 { (exit 1); exit 1; }; } 21668fi 21669 21670 21671 21672 21673 21674for ac_func in vprintf 21675do 21676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21677echo "$as_me:$LINENO: checking for $ac_func" >&5 21678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 21679if eval "test \"\${$as_ac_var+set}\" = set"; then 21680 echo $ECHO_N "(cached) $ECHO_C" >&6 21681else 21682 cat >conftest.$ac_ext <<_ACEOF 21683/* confdefs.h. */ 21684_ACEOF 21685cat confdefs.h >>conftest.$ac_ext 21686cat >>conftest.$ac_ext <<_ACEOF 21687/* end confdefs.h. */ 21688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21689 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21690#define $ac_func innocuous_$ac_func 21691 21692/* System header to define __stub macros and hopefully few prototypes, 21693 which can conflict with char $ac_func (); below. 21694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21695 <limits.h> exists even on freestanding compilers. */ 21696 21697#ifdef __STDC__ 21698# include <limits.h> 21699#else 21700# include <assert.h> 21701#endif 21702 21703#undef $ac_func 21704 21705/* Override any gcc2 internal prototype to avoid an error. */ 21706#ifdef __cplusplus 21707extern "C" 21708{ 21709#endif 21710/* We use char because int might match the return type of a gcc2 21711 builtin and then its argument prototype would still apply. */ 21712char $ac_func (); 21713/* The GNU C library defines this for functions which it implements 21714 to always fail with ENOSYS. Some functions are actually named 21715 something starting with __ and the normal name is an alias. */ 21716#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 21717choke me 21718#else 21719char (*f) () = $ac_func; 21720#endif 21721#ifdef __cplusplus 21722} 21723#endif 21724 21725int 21726main () 21727{ 21728return f != $ac_func; 21729 ; 21730 return 0; 21731} 21732_ACEOF 21733rm -f conftest.$ac_objext conftest$ac_exeext 21734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21735 (eval $ac_link) 2>conftest.er1 21736 ac_status=$? 21737 grep -v '^ *+' conftest.er1 >conftest.err 21738 rm -f conftest.er1 21739 cat conftest.err >&5 21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21741 (exit $ac_status); } && 21742 { ac_try='test -z "$ac_c_werror_flag" 21743 || test ! -s conftest.err' 21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21745 (eval $ac_try) 2>&5 21746 ac_status=$? 21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21748 (exit $ac_status); }; } && 21749 { ac_try='test -s conftest$ac_exeext' 21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21751 (eval $ac_try) 2>&5 21752 ac_status=$? 21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21754 (exit $ac_status); }; }; then 21755 eval "$as_ac_var=yes" 21756else 21757 echo "$as_me: failed program was:" >&5 21758sed 's/^/| /' conftest.$ac_ext >&5 21759 21760eval "$as_ac_var=no" 21761fi 21762rm -f conftest.err conftest.$ac_objext \ 21763 conftest$ac_exeext conftest.$ac_ext 21764fi 21765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 21766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 21767if test `eval echo '${'$as_ac_var'}'` = yes; then 21768 cat >>confdefs.h <<_ACEOF 21769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21770_ACEOF 21771 21772echo "$as_me:$LINENO: checking for _doprnt" >&5 21773echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 21774if test "${ac_cv_func__doprnt+set}" = set; then 21775 echo $ECHO_N "(cached) $ECHO_C" >&6 21776else 21777 cat >conftest.$ac_ext <<_ACEOF 21778/* confdefs.h. */ 21779_ACEOF 21780cat confdefs.h >>conftest.$ac_ext 21781cat >>conftest.$ac_ext <<_ACEOF 21782/* end confdefs.h. */ 21783/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 21784 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21785#define _doprnt innocuous__doprnt 21786 21787/* System header to define __stub macros and hopefully few prototypes, 21788 which can conflict with char _doprnt (); below. 21789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21790 <limits.h> exists even on freestanding compilers. */ 21791 21792#ifdef __STDC__ 21793# include <limits.h> 21794#else 21795# include <assert.h> 21796#endif 21797 21798#undef _doprnt 21799 21800/* Override any gcc2 internal prototype to avoid an error. */ 21801#ifdef __cplusplus 21802extern "C" 21803{ 21804#endif 21805/* We use char because int might match the return type of a gcc2 21806 builtin and then its argument prototype would still apply. */ 21807char _doprnt (); 21808/* The GNU C library defines this for functions which it implements 21809 to always fail with ENOSYS. Some functions are actually named 21810 something starting with __ and the normal name is an alias. */ 21811#if defined (__stub__doprnt) || defined (__stub____doprnt) 21812choke me 21813#else 21814char (*f) () = _doprnt; 21815#endif 21816#ifdef __cplusplus 21817} 21818#endif 21819 21820int 21821main () 21822{ 21823return f != _doprnt; 21824 ; 21825 return 0; 21826} 21827_ACEOF 21828rm -f conftest.$ac_objext conftest$ac_exeext 21829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21830 (eval $ac_link) 2>conftest.er1 21831 ac_status=$? 21832 grep -v '^ *+' conftest.er1 >conftest.err 21833 rm -f conftest.er1 21834 cat conftest.err >&5 21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21836 (exit $ac_status); } && 21837 { ac_try='test -z "$ac_c_werror_flag" 21838 || test ! -s conftest.err' 21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21840 (eval $ac_try) 2>&5 21841 ac_status=$? 21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21843 (exit $ac_status); }; } && 21844 { ac_try='test -s conftest$ac_exeext' 21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21846 (eval $ac_try) 2>&5 21847 ac_status=$? 21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21849 (exit $ac_status); }; }; then 21850 ac_cv_func__doprnt=yes 21851else 21852 echo "$as_me: failed program was:" >&5 21853sed 's/^/| /' conftest.$ac_ext >&5 21854 21855ac_cv_func__doprnt=no 21856fi 21857rm -f conftest.err conftest.$ac_objext \ 21858 conftest$ac_exeext conftest.$ac_ext 21859fi 21860echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 21861echo "${ECHO_T}$ac_cv_func__doprnt" >&6 21862if test $ac_cv_func__doprnt = yes; then 21863 21864cat >>confdefs.h <<\_ACEOF 21865#define HAVE_DOPRNT 1 21866_ACEOF 21867 21868fi 21869 21870fi 21871done 21872 21873 21874 21875# nicked from the irmix project... 21876# Check whether --enable-xinerama or --disable-xinerama was given. 21877if test "${enable_xinerama+set}" = set; then 21878 enableval="$enable_xinerama" 21879 disable_xinerama="yes" 21880else 21881 disable_xinerama="no" 21882fi; 21883 21884if test x$disable_xinerama = "xno" 21885then 21886 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama_pic" >&5 21887echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama_pic... $ECHO_C" >&6 21888if test "${ac_cv_lib_Xinerama_pic_XineramaQueryExtension+set}" = set; then 21889 echo $ECHO_N "(cached) $ECHO_C" >&6 21890else 21891 ac_check_lib_save_LIBS=$LIBS 21892LIBS="-lXinerama_pic $X_LIBS -lXext $X_EXTRA_LIBS $LIBS" 21893cat >conftest.$ac_ext <<_ACEOF 21894/* confdefs.h. */ 21895_ACEOF 21896cat confdefs.h >>conftest.$ac_ext 21897cat >>conftest.$ac_ext <<_ACEOF 21898/* end confdefs.h. */ 21899 21900/* Override any gcc2 internal prototype to avoid an error. */ 21901#ifdef __cplusplus 21902extern "C" 21903#endif 21904/* We use char because int might match the return type of a gcc2 21905 builtin and then its argument prototype would still apply. */ 21906char XineramaQueryExtension (); 21907int 21908main () 21909{ 21910XineramaQueryExtension (); 21911 ; 21912 return 0; 21913} 21914_ACEOF 21915rm -f conftest.$ac_objext conftest$ac_exeext 21916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21917 (eval $ac_link) 2>conftest.er1 21918 ac_status=$? 21919 grep -v '^ *+' conftest.er1 >conftest.err 21920 rm -f conftest.er1 21921 cat conftest.err >&5 21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21923 (exit $ac_status); } && 21924 { ac_try='test -z "$ac_c_werror_flag" 21925 || test ! -s conftest.err' 21926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21927 (eval $ac_try) 2>&5 21928 ac_status=$? 21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21930 (exit $ac_status); }; } && 21931 { ac_try='test -s conftest$ac_exeext' 21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21933 (eval $ac_try) 2>&5 21934 ac_status=$? 21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21936 (exit $ac_status); }; }; then 21937 ac_cv_lib_Xinerama_pic_XineramaQueryExtension=yes 21938else 21939 echo "$as_me: failed program was:" >&5 21940sed 's/^/| /' conftest.$ac_ext >&5 21941 21942ac_cv_lib_Xinerama_pic_XineramaQueryExtension=no 21943fi 21944rm -f conftest.err conftest.$ac_objext \ 21945 conftest$ac_exeext conftest.$ac_ext 21946LIBS=$ac_check_lib_save_LIBS 21947fi 21948echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_pic_XineramaQueryExtension" >&5 21949echo "${ECHO_T}$ac_cv_lib_Xinerama_pic_XineramaQueryExtension" >&6 21950if test $ac_cv_lib_Xinerama_pic_XineramaQueryExtension = yes; then 21951 X_LIBS="$X_LIBS -lXinerama_pic" 21952 21953cat >>confdefs.h <<\_ACEOF 21954#define HAVE_XINERAMA 1 21955_ACEOF 21956 21957 ac_have_xinerama="yes" 21958else 21959 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5 21960echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6 21961if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then 21962 echo $ECHO_N "(cached) $ECHO_C" >&6 21963else 21964 ac_check_lib_save_LIBS=$LIBS 21965LIBS="-lXinerama $X_LIBS -lXext $X_EXTRA_LIBS $LIBS" 21966cat >conftest.$ac_ext <<_ACEOF 21967/* confdefs.h. */ 21968_ACEOF 21969cat confdefs.h >>conftest.$ac_ext 21970cat >>conftest.$ac_ext <<_ACEOF 21971/* end confdefs.h. */ 21972 21973/* Override any gcc2 internal prototype to avoid an error. */ 21974#ifdef __cplusplus 21975extern "C" 21976#endif 21977/* We use char because int might match the return type of a gcc2 21978 builtin and then its argument prototype would still apply. */ 21979char XineramaQueryExtension (); 21980int 21981main () 21982{ 21983XineramaQueryExtension (); 21984 ; 21985 return 0; 21986} 21987_ACEOF 21988rm -f conftest.$ac_objext conftest$ac_exeext 21989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21990 (eval $ac_link) 2>conftest.er1 21991 ac_status=$? 21992 grep -v '^ *+' conftest.er1 >conftest.err 21993 rm -f conftest.er1 21994 cat conftest.err >&5 21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21996 (exit $ac_status); } && 21997 { ac_try='test -z "$ac_c_werror_flag" 21998 || test ! -s conftest.err' 21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22000 (eval $ac_try) 2>&5 22001 ac_status=$? 22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22003 (exit $ac_status); }; } && 22004 { ac_try='test -s conftest$ac_exeext' 22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22006 (eval $ac_try) 2>&5 22007 ac_status=$? 22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22009 (exit $ac_status); }; }; then 22010 ac_cv_lib_Xinerama_XineramaQueryExtension=yes 22011else 22012 echo "$as_me: failed program was:" >&5 22013sed 's/^/| /' conftest.$ac_ext >&5 22014 22015ac_cv_lib_Xinerama_XineramaQueryExtension=no 22016fi 22017rm -f conftest.err conftest.$ac_objext \ 22018 conftest$ac_exeext conftest.$ac_ext 22019LIBS=$ac_check_lib_save_LIBS 22020fi 22021echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5 22022echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6 22023if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then 22024 X_LIBS="$X_LIBS -lXinerama" 22025 22026cat >>confdefs.h <<\_ACEOF 22027#define HAVE_XINERAMA 1 22028_ACEOF 22029 22030 ac_have_xinerama="yes" 22031fi 22032 22033fi 22034 22035fi 22036 22037if pkg-config --exists bmp 22038then 22039 22040 succeeded=no 22041 22042 if test -z "$PKG_CONFIG"; then 22043 # Extract the first word of "pkg-config", so it can be a program name with args. 22044set dummy pkg-config; ac_word=$2 22045echo "$as_me:$LINENO: checking for $ac_word" >&5 22046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22047if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 22048 echo $ECHO_N "(cached) $ECHO_C" >&6 22049else 22050 case $PKG_CONFIG in 22051 [\\/]* | ?:[\\/]*) 22052 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22053 ;; 22054 *) 22055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22056for as_dir in $PATH 22057do 22058 IFS=$as_save_IFS 22059 test -z "$as_dir" && as_dir=. 22060 for ac_exec_ext in '' $ac_executable_extensions; do 22061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22062 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22064 break 2 22065 fi 22066done 22067done 22068 22069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 22070 ;; 22071esac 22072fi 22073PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22074 22075if test -n "$PKG_CONFIG"; then 22076 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 22077echo "${ECHO_T}$PKG_CONFIG" >&6 22078else 22079 echo "$as_me:$LINENO: result: no" >&5 22080echo "${ECHO_T}no" >&6 22081fi 22082 22083 fi 22084 22085 if test "$PKG_CONFIG" = "no" ; then 22086 echo "*** The pkg-config script could not be found. Make sure it is" 22087 echo "*** in your path, or set the PKG_CONFIG environment variable" 22088 echo "*** to the full path to pkg-config." 22089 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 22090 else 22091 PKG_CONFIG_MIN_VERSION=0.9.0 22092 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 22093 echo "$as_me:$LINENO: checking for bmp" >&5 22094echo $ECHO_N "checking for bmp... $ECHO_C" >&6 22095 22096 if $PKG_CONFIG --exists "bmp" ; then 22097 echo "$as_me:$LINENO: result: yes" >&5 22098echo "${ECHO_T}yes" >&6 22099 succeeded=yes 22100 22101 echo "$as_me:$LINENO: checking BMP_CFLAGS" >&5 22102echo $ECHO_N "checking BMP_CFLAGS... $ECHO_C" >&6 22103 BMP_CFLAGS=`$PKG_CONFIG --cflags "bmp"` 22104 echo "$as_me:$LINENO: result: $BMP_CFLAGS" >&5 22105echo "${ECHO_T}$BMP_CFLAGS" >&6 22106 22107 echo "$as_me:$LINENO: checking BMP_LIBS" >&5 22108echo $ECHO_N "checking BMP_LIBS... $ECHO_C" >&6 22109 BMP_LIBS=`$PKG_CONFIG --libs "bmp"` 22110 echo "$as_me:$LINENO: result: $BMP_LIBS" >&5 22111echo "${ECHO_T}$BMP_LIBS" >&6 22112 else 22113 BMP_CFLAGS="" 22114 BMP_LIBS="" 22115 ## If we have a custom action on failure, don't print errors, but 22116 ## do set a variable so people can do so. 22117 BMP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bmp"` 22118 echo $BMP_PKG_ERRORS 22119 fi 22120 22121 22122 22123 else 22124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 22125 echo "*** See http://www.freedesktop.org/software/pkgconfig" 22126 fi 22127 fi 22128 22129 if test $succeeded = yes; then 22130 : 22131 else 22132 { { echo "$as_me:$LINENO: error: Library requirements (bmp) 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 22133echo "$as_me: error: Library requirements (bmp) 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;} 22134 { (exit 1); exit 1; }; } 22135 fi 22136 22137 BMP_GENERAL_PLUGIN_DIR=$(pkg-config --variable general_plugin_dir bmp) 22138 22139 no_bmp="yes" 22140else 22141 no_bmp="no" 22142 { echo "$as_me:$LINENO: WARNING: \"beep media player not found\"" >&5 22143echo "$as_me: WARNING: \"beep media player not found\"" >&2;} 22144fi 22145 22146 22147 22148 22149 22150 22151# Check whether --with-xmms-prefix or --without-xmms-prefix was given. 22152if test "${with_xmms_prefix+set}" = set; then 22153 withval="$with_xmms_prefix" 22154 xmms_config_prefix="$withval" 22155else 22156 xmms_config_prefix="" 22157fi; 22158 22159# Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given. 22160if test "${with_xmms_exec_prefix+set}" = set; then 22161 withval="$with_xmms_exec_prefix" 22162 xmms_config_exec_prefix="$withval" 22163else 22164 xmms_config_exec_prefix="" 22165fi; 22166 22167if test x$xmms_config_exec_prefix != x; then 22168 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix" 22169 if test x${XMMS_CONFIG+set} != xset; then 22170 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config 22171 fi 22172fi 22173 22174if test x$xmms_config_prefix != x; then 22175 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix" 22176 if test x${XMMS_CONFIG+set} != xset; then 22177 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config 22178 fi 22179fi 22180 22181# Extract the first word of "xmms-config", so it can be a program name with args. 22182set dummy xmms-config; ac_word=$2 22183echo "$as_me:$LINENO: checking for $ac_word" >&5 22184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22185if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then 22186 echo $ECHO_N "(cached) $ECHO_C" >&6 22187else 22188 case $XMMS_CONFIG in 22189 [\\/]* | ?:[\\/]*) 22190 ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path. 22191 ;; 22192 *) 22193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22194for as_dir in $PATH 22195do 22196 IFS=$as_save_IFS 22197 test -z "$as_dir" && as_dir=. 22198 for ac_exec_ext in '' $ac_executable_extensions; do 22199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22200 ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22202 break 2 22203 fi 22204done 22205done 22206 22207 test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no" 22208 ;; 22209esac 22210fi 22211XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG 22212 22213if test -n "$XMMS_CONFIG"; then 22214 echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5 22215echo "${ECHO_T}$XMMS_CONFIG" >&6 22216else 22217 echo "$as_me:$LINENO: result: no" >&5 22218echo "${ECHO_T}no" >&6 22219fi 22220 22221min_xmms_version=1.2.7 22222 22223if test "$XMMS_CONFIG" = "no"; then 22224 no_xmms=yes 22225else 22226 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags` 22227 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs` 22228 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version` 22229 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir` 22230 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir` 22231 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \ 22232 --visualization-plugin-dir` 22233 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir` 22234 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir` 22235 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir` 22236 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir` 22237 22238 22239 22240# Determine which version number is greater. Prints 2 to stdout if 22241# the second number is greater, 1 if the first number is greater, 22242# 0 if the numbers are equal. 22243 22244# Written 15 December 1999 by Ben Gertzfield <che@debian.org> 22245# Revised 15 December 1999 by Jim Monty <monty@primenet.com> 22246 22247 for ac_prog in gawk mawk nawk awk 22248do 22249 # Extract the first word of "$ac_prog", so it can be a program name with args. 22250set dummy $ac_prog; ac_word=$2 22251echo "$as_me:$LINENO: checking for $ac_word" >&5 22252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22253if test "${ac_cv_prog_AWK+set}" = set; then 22254 echo $ECHO_N "(cached) $ECHO_C" >&6 22255else 22256 if test -n "$AWK"; then 22257 ac_cv_prog_AWK="$AWK" # Let the user override the test. 22258else 22259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22260for as_dir in $PATH 22261do 22262 IFS=$as_save_IFS 22263 test -z "$as_dir" && as_dir=. 22264 for ac_exec_ext in '' $ac_executable_extensions; do 22265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22266 ac_cv_prog_AWK="$ac_prog" 22267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22268 break 2 22269 fi 22270done 22271done 22272 22273fi 22274fi 22275AWK=$ac_cv_prog_AWK 22276if test -n "$AWK"; then 22277 echo "$as_me:$LINENO: result: $AWK" >&5 22278echo "${ECHO_T}$AWK" >&6 22279else 22280 echo "$as_me:$LINENO: result: no" >&5 22281echo "${ECHO_T}no" >&6 22282fi 22283 22284 test -n "$AWK" && break 22285done 22286 22287 xmms_got_version=` $AWK ' \ 22288BEGIN { \ 22289 print vercmp(ARGV[1], ARGV[2]); \ 22290} \ 22291 \ 22292function vercmp(ver1, ver2, ver1arr, ver2arr, \ 22293 ver1len, ver2len, \ 22294 ver1int, ver2int, len, i, p) { \ 22295 \ 22296 ver1len = split(ver1, ver1arr, /\./); \ 22297 ver2len = split(ver2, ver2arr, /\./); \ 22298 \ 22299 len = ver1len > ver2len ? ver1len : ver2len; \ 22300 \ 22301 for (i = 1; i <= len; i++) { \ 22302 p = 1000 ^ (len - i); \ 22303 ver1int += ver1arr[i] * p; \ 22304 ver2int += ver2arr[i] * p; \ 22305 } \ 22306 \ 22307 if (ver1int < ver2int) \ 22308 return 2; \ 22309 else if (ver1int > ver2int) \ 22310 return 1; \ 22311 else \ 22312 return 0; \ 22313}' $XMMS_VERSION $min_xmms_version` 22314 22315 if test $xmms_got_version -eq 2; then # failure 22316 no_xmms=version 22317 else # success! 22318 : 22319 fi 22320 22321fi 22322 22323echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5 22324echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6 22325 22326if test "x$no_xmms" = x; then 22327 echo "$as_me:$LINENO: result: yes" >&5 22328echo "${ECHO_T}yes" >&6 22329 : 22330else 22331 echo "$as_me:$LINENO: result: no" >&5 22332echo "${ECHO_T}no" >&6 22333 22334 if test "$XMMS_CONFIG" = "no" ; then 22335 echo "*** The xmms-config script installed by XMMS could not be found." 22336 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in" 22337 echo "*** your path, or set the XMMS_CONFIG environment variable to the" 22338 echo "*** full path to xmms-config." 22339 else 22340 if test "$no_xmms" = "version"; then 22341 echo "*** An old version of XMMS, $XMMS_VERSION, was found." 22342 echo "*** You need a version of XMMS newer than $min_xmms_version." 22343 echo "*** The latest version of XMMS is always available from" 22344 echo "*** http://www.xmms.org/" 22345 echo "***" 22346 22347 echo "*** If you have already installed a sufficiently new version, this error" 22348 echo "*** probably means that the wrong copy of the xmms-config shell script is" 22349 echo "*** being found. The easiest way to fix this is to remove the old version" 22350 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the" 22351 echo "*** correct copy of xmms-config. (In this case, you will have to" 22352 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf" 22353 echo "*** so that the correct libraries are found at run-time)" 22354 fi 22355 fi 22356 XMMS_CFLAGS="" 22357 XMMS_LIBS="" 22358 { echo "$as_me:$LINENO: WARNING: \"xmms plugins can not be built\"" >&5 22359echo "$as_me: WARNING: \"xmms plugins can not be built\"" >&2;} 22360fi 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373# Check whether --with-plugindir or --without-plugindir was given. 22374if test "${with_plugindir+set}" = set; then 22375 withval="$with_plugindir" 22376 XMMS_PLUGIN_DIR="$withval" 22377else 22378 XMMS_PLUGIN_DIR="$XMMS_GENERAL_PLUGIN_DIR" 22379fi; 22380 22381 22382# Check whether --with-gdk-pixbuf-prefix or --without-gdk-pixbuf-prefix was given. 22383if test "${with_gdk_pixbuf_prefix+set}" = set; then 22384 withval="$with_gdk_pixbuf_prefix" 22385 gdk_pixbuf_prefix="$withval" 22386else 22387 gdk_pixbuf_prefix="" 22388fi; 22389 22390# Check whether --with-gdk-pixbuf-exec-prefix or --without-gdk-pixbuf-exec-prefix was given. 22391if test "${with_gdk_pixbuf_exec_prefix+set}" = set; then 22392 withval="$with_gdk_pixbuf_exec_prefix" 22393 gdk_pixbuf_exec_prefix="$withval" 22394else 22395 gdk_pixbuf_exec_prefix="" 22396fi; 22397# Check whether --enable-gdk_pixbuftest or --disable-gdk_pixbuftest was given. 22398if test "${enable_gdk_pixbuftest+set}" = set; then 22399 enableval="$enable_gdk_pixbuftest" 22400 22401else 22402 enable_gdk_pixbuftest=yes 22403fi; 22404 22405 if test x$gdk_pixbuf_exec_prefix != x ; then 22406 gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix" 22407 if test x${GDK_PIXBUF_CONFIG+set} = xset ; then 22408 GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config 22409 fi 22410 fi 22411 if test x$gdk_pixbuf_prefix != x ; then 22412 gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix" 22413 if test x${GDK_PIXBUF_CONFIG+set} = xset ; then 22414 GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config 22415 fi 22416 fi 22417 22418 # Extract the first word of "gdk-pixbuf-config", so it can be a program name with args. 22419set dummy gdk-pixbuf-config; ac_word=$2 22420echo "$as_me:$LINENO: checking for $ac_word" >&5 22421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 22422if test "${ac_cv_path_GDK_PIXBUF_CONFIG+set}" = set; then 22423 echo $ECHO_N "(cached) $ECHO_C" >&6 22424else 22425 case $GDK_PIXBUF_CONFIG in 22426 [\\/]* | ?:[\\/]*) 22427 ac_cv_path_GDK_PIXBUF_CONFIG="$GDK_PIXBUF_CONFIG" # Let the user override the test with a path. 22428 ;; 22429 *) 22430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22431for as_dir in $PATH 22432do 22433 IFS=$as_save_IFS 22434 test -z "$as_dir" && as_dir=. 22435 for ac_exec_ext in '' $ac_executable_extensions; do 22436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22437 ac_cv_path_GDK_PIXBUF_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22439 break 2 22440 fi 22441done 22442done 22443 22444 test -z "$ac_cv_path_GDK_PIXBUF_CONFIG" && ac_cv_path_GDK_PIXBUF_CONFIG="no" 22445 ;; 22446esac 22447fi 22448GDK_PIXBUF_CONFIG=$ac_cv_path_GDK_PIXBUF_CONFIG 22449 22450if test -n "$GDK_PIXBUF_CONFIG"; then 22451 echo "$as_me:$LINENO: result: $GDK_PIXBUF_CONFIG" >&5 22452echo "${ECHO_T}$GDK_PIXBUF_CONFIG" >&6 22453else 22454 echo "$as_me:$LINENO: result: no" >&5 22455echo "${ECHO_T}no" >&6 22456fi 22457 22458 min_gdk_pixbuf_version=0.22.0 22459 echo "$as_me:$LINENO: checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version" >&5 22460echo $ECHO_N "checking for GDK_PIXBUF - version >= $min_gdk_pixbuf_version... $ECHO_C" >&6 22461 no_gdk_pixbuf="" 22462 if test "$GDK_PIXBUF_CONFIG" = "no" ; then 22463 no_gdk_pixbuf=yes 22464 else 22465 GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags` 22466 GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs` 22467 22468 gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \ 22469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 22470 gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \ 22471 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 22472 gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \ 22473 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 22474 if test "x$enable_gdk_pixbuftest" = "xyes" ; then 22475 ac_save_CFLAGS="$CFLAGS" 22476 ac_save_LIBS="$LIBS" 22477 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" 22478 LIBS="$LIBS $GDK_PIXBUF_LIBS" 22479 rm -f conf.gdk_pixbuftest 22480 if test "$cross_compiling" = yes; then 22481 echo $ac_n "cross compiling; assumed OK... $ac_c" 22482else 22483 cat >conftest.$ac_ext <<_ACEOF 22484/* confdefs.h. */ 22485_ACEOF 22486cat confdefs.h >>conftest.$ac_ext 22487cat >>conftest.$ac_ext <<_ACEOF 22488/* end confdefs.h. */ 22489 22490#include <stdio.h> 22491#include <stdlib.h> 22492#include <string.h> 22493#include <gdk-pixbuf/gdk-pixbuf.h> 22494 22495char* 22496my_strdup (char *str) 22497{ 22498 char *new_str; 22499 22500 if (str) 22501 { 22502 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 22503 strcpy (new_str, str); 22504 } 22505 else 22506 new_str = NULL; 22507 22508 return new_str; 22509} 22510 22511int main () 22512{ 22513 int major, minor, micro; 22514 char *tmp_version; 22515 22516 system ("touch conf.gdk_pixbuftest"); 22517 22518 /* HP/UX 9 (%@#!) writes to sscanf strings */ 22519 tmp_version = my_strdup("$min_gdk_pixbuf_version"); 22520 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 22521 printf("%s, bad version string\n", "$min_gdk_pixbuf_version"); 22522 exit(1); 22523 } 22524 22525 if (($gdk_pixbuf_major_version > major) || 22526 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) || 22527 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro))) 22528 { 22529 return 0; 22530 } 22531 else 22532 { 22533 printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version); 22534 printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro); 22535 printf("*** best to upgrade to the required version.\n"); 22536 printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n"); 22537 printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n"); 22538 printf("*** config.cache before re-running configure\n"); 22539 return 1; 22540 } 22541} 22542 22543 22544_ACEOF 22545rm -f conftest$ac_exeext 22546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22547 (eval $ac_link) 2>&5 22548 ac_status=$? 22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22552 (eval $ac_try) 2>&5 22553 ac_status=$? 22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22555 (exit $ac_status); }; }; then 22556 : 22557else 22558 echo "$as_me: program exited with status $ac_status" >&5 22559echo "$as_me: failed program was:" >&5 22560sed 's/^/| /' conftest.$ac_ext >&5 22561 22562( exit $ac_status ) 22563no_gdk_pixbuf=yes 22564fi 22565rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22566fi 22567 CFLAGS="$ac_save_CFLAGS" 22568 LIBS="$ac_save_LIBS" 22569 fi 22570 fi 22571 if test "x$no_gdk_pixbuf" = x ; then 22572 echo "$as_me:$LINENO: result: yes" >&5 22573echo "${ECHO_T}yes" >&6 22574 : 22575 else 22576 echo "$as_me:$LINENO: result: no" >&5 22577echo "${ECHO_T}no" >&6 22578 if test "$GDK_PIXBUF_CONFIG" = "no" ; then 22579 echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found" 22580 echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in" 22581 echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the" 22582 echo "*** full path to gdk-pixbuf-config." 22583 else 22584 if test -f conf.gdk_pixbuftest ; then 22585 : 22586 else 22587 echo "*** Could not run GDK_PIXBUF test program, checking why..." 22588 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" 22589 LIBS="$LIBS $GDK_PIXBUF_LIBS" 22590 cat >conftest.$ac_ext <<_ACEOF 22591/* confdefs.h. */ 22592_ACEOF 22593cat confdefs.h >>conftest.$ac_ext 22594cat >>conftest.$ac_ext <<_ACEOF 22595/* end confdefs.h. */ 22596 22597#include <stdio.h> 22598#include <gdk-pixbuf/gdk-pixbuf.h> 22599 22600int 22601main () 22602{ 22603 return 0; 22604 ; 22605 return 0; 22606} 22607_ACEOF 22608rm -f conftest.$ac_objext conftest$ac_exeext 22609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22610 (eval $ac_link) 2>conftest.er1 22611 ac_status=$? 22612 grep -v '^ *+' conftest.er1 >conftest.err 22613 rm -f conftest.er1 22614 cat conftest.err >&5 22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22616 (exit $ac_status); } && 22617 { ac_try='test -z "$ac_c_werror_flag" 22618 || test ! -s conftest.err' 22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22620 (eval $ac_try) 2>&5 22621 ac_status=$? 22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22623 (exit $ac_status); }; } && 22624 { ac_try='test -s conftest$ac_exeext' 22625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22626 (eval $ac_try) 2>&5 22627 ac_status=$? 22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22629 (exit $ac_status); }; }; then 22630 echo "*** The test program compiled, but did not run. This usually means" 22631 echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong" 22632 echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your" 22633 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 22634 echo "*** to the installed location Also, make sure you have run ldconfig if that" 22635 echo "*** is required on your system" 22636 echo "***" 22637 echo "*** If you have an old version installed, it is best to remove it, although" 22638 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 22639else 22640 echo "$as_me: failed program was:" >&5 22641sed 's/^/| /' conftest.$ac_ext >&5 22642 22643 echo "*** The test program failed to compile or link. See the file config.log for the" 22644 echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed" 22645 echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you" 22646 echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG" 22647fi 22648rm -f conftest.err conftest.$ac_objext \ 22649 conftest$ac_exeext conftest.$ac_ext 22650 CFLAGS="$ac_save_CFLAGS" 22651 LIBS="$ac_save_LIBS" 22652 fi 22653 fi 22654 GDK_PIXBUF_CFLAGS="" 22655 GDK_PIXBUF_LIBS="" 22656 { echo "$as_me:$LINENO: WARNING: \"new xmms plugin can not be built\"" >&5 22657echo "$as_me: WARNING: \"new xmms plugin can not be built\"" >&2;} 22658 fi 22659 22660 22661 rm -f conf.gdk_pixbuftest 22662 22663 22664# Check whether --with-pixmapdir or --without-pixmapdir was given. 22665if test "${with_pixmapdir+set}" = set; then 22666 withval="$with_pixmapdir" 22667 XMMS_PIXMAPDIR="$withval" 22668else 22669 XMMS_PIXMAPDIR="${datadir}/xosd" 22670fi; 22671 22672 22673# Check whether --enable-new-plugin or --disable-new-plugin was given. 22674if test "${enable_new_plugin+set}" = set; then 22675 enableval="$enable_new_plugin" 22676 enable_new_plugin="$enableval" 22677else 22678 enable_new_plugin="yes" 22679fi; 22680echo "$as_me:$LINENO: checking whether new xmms plugin was requested" >&5 22681echo $ECHO_N "checking whether new xmms plugin was requested... $ECHO_C" >&6 22682echo "$as_me:$LINENO: result: $enable_new_plugin" >&5 22683echo "${ECHO_T}$enable_new_plugin" >&6 22684 22685 22686if test x"$enable_new_plugin" = "xyes" -a x"$no_xmms" != "xyes" -a x"$no_gdk_pixbuf" != "xyes"; then 22687 BUILD_NEW_PLUGIN_TRUE= 22688 BUILD_NEW_PLUGIN_FALSE='#' 22689else 22690 BUILD_NEW_PLUGIN_TRUE='#' 22691 BUILD_NEW_PLUGIN_FALSE= 22692fi 22693 22694 22695 22696# Check whether --enable-beep_media_player_plugin or --disable-beep_media_player_plugin was given. 22697if test "${enable_beep_media_player_plugin+set}" = set; then 22698 enableval="$enable_beep_media_player_plugin" 22699 beep_media_player_plugin="$enableval" 22700else 22701 beep_media_player_plugin="yes" 22702fi; 22703echo "$as_me:$LINENO: checking whether beep media plugin was requested" >&5 22704echo $ECHO_N "checking whether beep media plugin was requested... $ECHO_C" >&6 22705echo "$as_me:$LINENO: result: $beep_media_player_plugin" >&5 22706echo "${ECHO_T}$beep_media_player_plugin" >&6 22707 22708 22709 22710if test x"$beep_media_player_plugin" = "xyes" -a x"$no_bmp" == "xyes"; then 22711 BUILD_BEEP_MEDIA_PLUGIN_TRUE= 22712 BUILD_BEEP_MEDIA_PLUGIN_FALSE='#' 22713else 22714 BUILD_BEEP_MEDIA_PLUGIN_TRUE='#' 22715 BUILD_BEEP_MEDIA_PLUGIN_FALSE= 22716fi 22717 22718 22719 22720 22721 22722# Check whether --enable-old-plugin or --disable-old-plugin was given. 22723if test "${enable_old_plugin+set}" = set; then 22724 enableval="$enable_old_plugin" 22725 enable_old_plugin="$enableval" 22726else 22727 enable_old_plugin="no" 22728fi; 22729echo "$as_me:$LINENO: checking whether old xmms plugin was requested" >&5 22730echo $ECHO_N "checking whether old xmms plugin was requested... $ECHO_C" >&6 22731echo "$as_me:$LINENO: result: $enable_old_plugin" >&5 22732echo "${ECHO_T}$enable_old_plugin" >&6 22733 22734 22735if test x"$enable_old_plugin" = "xyes" -a x"$no_xmms" != "xyes"; then 22736 BUILD_OLD_PLUGIN_TRUE= 22737 BUILD_OLD_PLUGIN_FALSE='#' 22738else 22739 BUILD_OLD_PLUGIN_TRUE='#' 22740 BUILD_OLD_PLUGIN_FALSE= 22741fi 22742 22743 22744 22745cat >>confdefs.h <<_ACEOF 22746#define XOSD_VERSION "${VERSION}" 22747_ACEOF 22748 22749 22750EXTRA_DIST=xosd.spec 22751 22752 ac_config_files="$ac_config_files Makefile src/Makefile src/libxosd/Makefile src/xmms_plugin/Makefile src/bmp_plugin/Makefile macros/Makefile man/Makefile pixmaps/Makefile script/Makefile script/xosd-config xosd.spec" 22753 22754 ac_config_commands="$ac_config_commands default" 22755 22756cat >confcache <<\_ACEOF 22757# This file is a shell script that caches the results of configure 22758# tests run on this system so they can be shared between configure 22759# scripts and configure runs, see configure's option --config-cache. 22760# It is not useful on other systems. If it contains results you don't 22761# want to keep, you may remove or edit it. 22762# 22763# config.status only pays attention to the cache file if you give it 22764# the --recheck option to rerun configure. 22765# 22766# `ac_cv_env_foo' variables (set or unset) will be overridden when 22767# loading this file, other *unset* `ac_cv_foo' will be assigned the 22768# following values. 22769 22770_ACEOF 22771 22772# The following way of writing the cache mishandles newlines in values, 22773# but we know of no workaround that is simple, portable, and efficient. 22774# So, don't put newlines in cache variables' values. 22775# Ultrix sh set writes to stderr and can't be redirected directly, 22776# and sets the high bit in the cache file unless we assign to the vars. 22777{ 22778 (set) 2>&1 | 22779 case `(ac_space=' '; set | grep ac_space) 2>&1` in 22780 *ac_space=\ *) 22781 # `set' does not quote correctly, so add quotes (double-quote 22782 # substitution turns \\\\ into \\, and sed turns \\ into \). 22783 sed -n \ 22784 "s/'/'\\\\''/g; 22785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22786 ;; 22787 *) 22788 # `set' quotes correctly as required by POSIX, so do not add quotes. 22789 sed -n \ 22790 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 22791 ;; 22792 esac; 22793} | 22794 sed ' 22795 t clear 22796 : clear 22797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22798 t end 22799 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22800 : end' >>confcache 22801if diff $cache_file confcache >/dev/null 2>&1; then :; else 22802 if test -w $cache_file; then 22803 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 22804 cat confcache >$cache_file 22805 else 22806 echo "not updating unwritable cache $cache_file" 22807 fi 22808fi 22809rm -f confcache 22810 22811test "x$prefix" = xNONE && prefix=$ac_default_prefix 22812# Let make expand exec_prefix. 22813test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22814 22815# VPATH may cause trouble with some makes, so we remove $(srcdir), 22816# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22817# trailing colons and then remove the whole line if VPATH becomes empty 22818# (actually we leave an empty line to preserve line numbers). 22819if test "x$srcdir" = x.; then 22820 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22821s/:*\$(srcdir):*/:/; 22822s/:*\${srcdir}:*/:/; 22823s/:*@srcdir@:*/:/; 22824s/^\([^=]*=[ ]*\):*/\1/; 22825s/:*$//; 22826s/^[^=]*=[ ]*$//; 22827}' 22828fi 22829 22830# Transform confdefs.h into DEFS. 22831# Protect against shell expansion while executing Makefile rules. 22832# Protect against Makefile macro expansion. 22833# 22834# If the first sed substitution is executed (which looks for macros that 22835# take arguments), then we branch to the quote section. Otherwise, 22836# look for a macro that doesn't take arguments. 22837cat >confdef2opt.sed <<\_ACEOF 22838t clear 22839: clear 22840s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 22841t quote 22842s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 22843t quote 22844d 22845: quote 22846s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 22847s,\[,\\&,g 22848s,\],\\&,g 22849s,\$,$$,g 22850p 22851_ACEOF 22852# We use echo to avoid assuming a particular line-breaking character. 22853# The extra dot is to prevent the shell from consuming trailing 22854# line-breaks from the sub-command output. A line-break within 22855# single-quotes doesn't work because, if this script is created in a 22856# platform that uses two characters for line-breaks (e.g., DOS), tr 22857# would break. 22858ac_LF_and_DOT=`echo; echo .` 22859DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 22860rm -f confdef2opt.sed 22861 22862 22863ac_libobjs= 22864ac_ltlibobjs= 22865for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22866 # 1. Remove the extension, and $U if already installed. 22867 ac_i=`echo "$ac_i" | 22868 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 22869 # 2. Add them. 22870 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 22871 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 22872done 22873LIBOBJS=$ac_libobjs 22874 22875LTLIBOBJS=$ac_ltlibobjs 22876 22877 22878if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22879 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22880Usually this means the macro was only invoked conditionally." >&5 22881echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22882Usually this means the macro was only invoked conditionally." >&2;} 22883 { (exit 1); exit 1; }; } 22884fi 22885if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22886 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22887Usually this means the macro was only invoked conditionally." >&5 22888echo "$as_me: error: conditional \"AMDEP\" was never defined. 22889Usually this means the macro was only invoked conditionally." >&2;} 22890 { (exit 1); exit 1; }; } 22891fi 22892if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22893 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22894Usually this means the macro was only invoked conditionally." >&5 22895echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22896Usually this means the macro was only invoked conditionally." >&2;} 22897 { (exit 1); exit 1; }; } 22898fi 22899if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22900 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22901Usually this means the macro was only invoked conditionally." >&5 22902echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22903Usually this means the macro was only invoked conditionally." >&2;} 22904 { (exit 1); exit 1; }; } 22905fi 22906if test -z "${BUILD_NEW_PLUGIN_TRUE}" && test -z "${BUILD_NEW_PLUGIN_FALSE}"; then 22907 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NEW_PLUGIN\" was never defined. 22908Usually this means the macro was only invoked conditionally." >&5 22909echo "$as_me: error: conditional \"BUILD_NEW_PLUGIN\" was never defined. 22910Usually this means the macro was only invoked conditionally." >&2;} 22911 { (exit 1); exit 1; }; } 22912fi 22913if test -z "${BUILD_BEEP_MEDIA_PLUGIN_TRUE}" && test -z "${BUILD_BEEP_MEDIA_PLUGIN_FALSE}"; then 22914 { { echo "$as_me:$LINENO: error: conditional \"BUILD_BEEP_MEDIA_PLUGIN\" was never defined. 22915Usually this means the macro was only invoked conditionally." >&5 22916echo "$as_me: error: conditional \"BUILD_BEEP_MEDIA_PLUGIN\" was never defined. 22917Usually this means the macro was only invoked conditionally." >&2;} 22918 { (exit 1); exit 1; }; } 22919fi 22920if test -z "${BUILD_OLD_PLUGIN_TRUE}" && test -z "${BUILD_OLD_PLUGIN_FALSE}"; then 22921 { { echo "$as_me:$LINENO: error: conditional \"BUILD_OLD_PLUGIN\" was never defined. 22922Usually this means the macro was only invoked conditionally." >&5 22923echo "$as_me: error: conditional \"BUILD_OLD_PLUGIN\" was never defined. 22924Usually this means the macro was only invoked conditionally." >&2;} 22925 { (exit 1); exit 1; }; } 22926fi 22927 22928: ${CONFIG_STATUS=./config.status} 22929ac_clean_files_save=$ac_clean_files 22930ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22931{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22932echo "$as_me: creating $CONFIG_STATUS" >&6;} 22933cat >$CONFIG_STATUS <<_ACEOF 22934#! $SHELL 22935# Generated by $as_me. 22936# Run this file to recreate the current configuration. 22937# Compiler output produced by configure, useful for debugging 22938# configure, is in config.log if it exists. 22939 22940debug=false 22941ac_cs_recheck=false 22942ac_cs_silent=false 22943SHELL=\${CONFIG_SHELL-$SHELL} 22944_ACEOF 22945 22946cat >>$CONFIG_STATUS <<\_ACEOF 22947## --------------------- ## 22948## M4sh Initialization. ## 22949## --------------------- ## 22950 22951# Be Bourne compatible 22952if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22953 emulate sh 22954 NULLCMD=: 22955 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22956 # is contrary to our usage. Disable this feature. 22957 alias -g '${1+"$@"}'='"$@"' 22958elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 22959 set -o posix 22960fi 22961DUALCASE=1; export DUALCASE # for MKS sh 22962 22963# Support unset when possible. 22964if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22965 as_unset=unset 22966else 22967 as_unset=false 22968fi 22969 22970 22971# Work around bugs in pre-3.0 UWIN ksh. 22972$as_unset ENV MAIL MAILPATH 22973PS1='$ ' 22974PS2='> ' 22975PS4='+ ' 22976 22977# NLS nuisances. 22978for as_var in \ 22979 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22980 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22981 LC_TELEPHONE LC_TIME 22982do 22983 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22984 eval $as_var=C; export $as_var 22985 else 22986 $as_unset $as_var 22987 fi 22988done 22989 22990# Required to use basename. 22991if expr a : '\(a\)' >/dev/null 2>&1; then 22992 as_expr=expr 22993else 22994 as_expr=false 22995fi 22996 22997if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 22998 as_basename=basename 22999else 23000 as_basename=false 23001fi 23002 23003 23004# Name of the executable. 23005as_me=`$as_basename "$0" || 23006$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23007 X"$0" : 'X\(//\)$' \| \ 23008 X"$0" : 'X\(/\)$' \| \ 23009 . : '\(.\)' 2>/dev/null || 23010echo X/"$0" | 23011 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23012 /^X\/\(\/\/\)$/{ s//\1/; q; } 23013 /^X\/\(\/\).*/{ s//\1/; q; } 23014 s/.*/./; q'` 23015 23016 23017# PATH needs CR, and LINENO needs CR and PATH. 23018# Avoid depending upon Character Ranges. 23019as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23020as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23021as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23022as_cr_digits='0123456789' 23023as_cr_alnum=$as_cr_Letters$as_cr_digits 23024 23025# The user is always right. 23026if test "${PATH_SEPARATOR+set}" != set; then 23027 echo "#! /bin/sh" >conf$$.sh 23028 echo "exit 0" >>conf$$.sh 23029 chmod +x conf$$.sh 23030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23031 PATH_SEPARATOR=';' 23032 else 23033 PATH_SEPARATOR=: 23034 fi 23035 rm -f conf$$.sh 23036fi 23037 23038 23039 as_lineno_1=$LINENO 23040 as_lineno_2=$LINENO 23041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23042 test "x$as_lineno_1" != "x$as_lineno_2" && 23043 test "x$as_lineno_3" = "x$as_lineno_2" || { 23044 # Find who we are. Look in the path if we contain no path at all 23045 # relative or not. 23046 case $0 in 23047 *[\\/]* ) as_myself=$0 ;; 23048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23049for as_dir in $PATH 23050do 23051 IFS=$as_save_IFS 23052 test -z "$as_dir" && as_dir=. 23053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23054done 23055 23056 ;; 23057 esac 23058 # We did not find ourselves, most probably we were run as `sh COMMAND' 23059 # in which case we are not to be found in the path. 23060 if test "x$as_myself" = x; then 23061 as_myself=$0 23062 fi 23063 if test ! -f "$as_myself"; then 23064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23065echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23066 { (exit 1); exit 1; }; } 23067 fi 23068 case $CONFIG_SHELL in 23069 '') 23070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23071for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23072do 23073 IFS=$as_save_IFS 23074 test -z "$as_dir" && as_dir=. 23075 for as_base in sh bash ksh sh5; do 23076 case $as_dir in 23077 /*) 23078 if ("$as_dir/$as_base" -c ' 23079 as_lineno_1=$LINENO 23080 as_lineno_2=$LINENO 23081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23082 test "x$as_lineno_1" != "x$as_lineno_2" && 23083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23084 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23085 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23086 CONFIG_SHELL=$as_dir/$as_base 23087 export CONFIG_SHELL 23088 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23089 fi;; 23090 esac 23091 done 23092done 23093;; 23094 esac 23095 23096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23097 # uniformly replaced by the line number. The first 'sed' inserts a 23098 # line-number line before each line; the second 'sed' does the real 23099 # work. The second script uses 'N' to pair each line-number line 23100 # with the numbered line, and appends trailing '-' during 23101 # substitution so that $LINENO is not a special case at line end. 23102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23103 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23104 sed '=' <$as_myself | 23105 sed ' 23106 N 23107 s,$,-, 23108 : loop 23109 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23110 t loop 23111 s,-$,, 23112 s,^['$as_cr_digits']*\n,, 23113 ' >$as_me.lineno && 23114 chmod +x $as_me.lineno || 23115 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23116echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23117 { (exit 1); exit 1; }; } 23118 23119 # Don't try to exec as it changes $[0], causing all sort of problems 23120 # (the dirname of $[0] is not the place where we might find the 23121 # original and so on. Autoconf is especially sensible to this). 23122 . ./$as_me.lineno 23123 # Exit status is that of the last command. 23124 exit 23125} 23126 23127 23128case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23129 *c*,-n*) ECHO_N= ECHO_C=' 23130' ECHO_T=' ' ;; 23131 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23132 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23133esac 23134 23135if expr a : '\(a\)' >/dev/null 2>&1; then 23136 as_expr=expr 23137else 23138 as_expr=false 23139fi 23140 23141rm -f conf$$ conf$$.exe conf$$.file 23142echo >conf$$.file 23143if ln -s conf$$.file conf$$ 2>/dev/null; then 23144 # We could just check for DJGPP; but this test a) works b) is more generic 23145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23146 if test -f conf$$.exe; then 23147 # Don't use ln at all; we don't have any links 23148 as_ln_s='cp -p' 23149 else 23150 as_ln_s='ln -s' 23151 fi 23152elif ln conf$$.file conf$$ 2>/dev/null; then 23153 as_ln_s=ln 23154else 23155 as_ln_s='cp -p' 23156fi 23157rm -f conf$$ conf$$.exe conf$$.file 23158 23159if mkdir -p . 2>/dev/null; then 23160 as_mkdir_p=: 23161else 23162 test -d ./-p && rmdir ./-p 23163 as_mkdir_p=false 23164fi 23165 23166as_executable_p="test -f" 23167 23168# Sed expression to map a string onto a valid CPP name. 23169as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23170 23171# Sed expression to map a string onto a valid variable name. 23172as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23173 23174 23175# IFS 23176# We need space, tab and new line, in precisely that order. 23177as_nl=' 23178' 23179IFS=" $as_nl" 23180 23181# CDPATH. 23182$as_unset CDPATH 23183 23184exec 6>&1 23185 23186# Open the log real soon, to keep \$[0] and so on meaningful, and to 23187# report actual input values of CONFIG_FILES etc. instead of their 23188# values after options handling. Logging --version etc. is OK. 23189exec 5>>config.log 23190{ 23191 echo 23192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23193## Running $as_me. ## 23194_ASBOX 23195} >&5 23196cat >&5 <<_CSEOF 23197 23198This file was extended by xosd $as_me 2.2.14, which was 23199generated by GNU Autoconf 2.59. Invocation command line was 23200 23201 CONFIG_FILES = $CONFIG_FILES 23202 CONFIG_HEADERS = $CONFIG_HEADERS 23203 CONFIG_LINKS = $CONFIG_LINKS 23204 CONFIG_COMMANDS = $CONFIG_COMMANDS 23205 $ $0 $@ 23206 23207_CSEOF 23208echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23209echo >&5 23210_ACEOF 23211 23212# Files that config.status was made for. 23213if test -n "$ac_config_files"; then 23214 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23215fi 23216 23217if test -n "$ac_config_headers"; then 23218 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23219fi 23220 23221if test -n "$ac_config_links"; then 23222 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23223fi 23224 23225if test -n "$ac_config_commands"; then 23226 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23227fi 23228 23229cat >>$CONFIG_STATUS <<\_ACEOF 23230 23231ac_cs_usage="\ 23232\`$as_me' instantiates files from templates according to the 23233current configuration. 23234 23235Usage: $0 [OPTIONS] [FILE]... 23236 23237 -h, --help print this help, then exit 23238 -V, --version print version number, then exit 23239 -q, --quiet do not print progress messages 23240 -d, --debug don't remove temporary files 23241 --recheck update $as_me by reconfiguring in the same conditions 23242 --file=FILE[:TEMPLATE] 23243 instantiate the configuration file FILE 23244 23245Configuration files: 23246$config_files 23247 23248Configuration commands: 23249$config_commands 23250 23251Report bugs to <bug-autoconf@gnu.org>." 23252_ACEOF 23253 23254cat >>$CONFIG_STATUS <<_ACEOF 23255ac_cs_version="\\ 23256xosd config.status 2.2.14 23257configured by $0, generated by GNU Autoconf 2.59, 23258 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23259 23260Copyright (C) 2003 Free Software Foundation, Inc. 23261This config.status script is free software; the Free Software Foundation 23262gives unlimited permission to copy, distribute and modify it." 23263srcdir=$srcdir 23264INSTALL="$INSTALL" 23265_ACEOF 23266 23267cat >>$CONFIG_STATUS <<\_ACEOF 23268# If no file are specified by the user, then we need to provide default 23269# value. By we need to know if files were specified by the user. 23270ac_need_defaults=: 23271while test $# != 0 23272do 23273 case $1 in 23274 --*=*) 23275 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23276 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23277 ac_shift=: 23278 ;; 23279 -*) 23280 ac_option=$1 23281 ac_optarg=$2 23282 ac_shift=shift 23283 ;; 23284 *) # This is not an option, so the user has probably given explicit 23285 # arguments. 23286 ac_option=$1 23287 ac_need_defaults=false;; 23288 esac 23289 23290 case $ac_option in 23291 # Handling of the options. 23292_ACEOF 23293cat >>$CONFIG_STATUS <<\_ACEOF 23294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23295 ac_cs_recheck=: ;; 23296 --version | --vers* | -V ) 23297 echo "$ac_cs_version"; exit 0 ;; 23298 --he | --h) 23299 # Conflict between --help and --header 23300 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23301Try \`$0 --help' for more information." >&5 23302echo "$as_me: error: ambiguous option: $1 23303Try \`$0 --help' for more information." >&2;} 23304 { (exit 1); exit 1; }; };; 23305 --help | --hel | -h ) 23306 echo "$ac_cs_usage"; exit 0 ;; 23307 --debug | --d* | -d ) 23308 debug=: ;; 23309 --file | --fil | --fi | --f ) 23310 $ac_shift 23311 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23312 ac_need_defaults=false;; 23313 --header | --heade | --head | --hea ) 23314 $ac_shift 23315 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23316 ac_need_defaults=false;; 23317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23318 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23319 ac_cs_silent=: ;; 23320 23321 # This is an error. 23322 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23323Try \`$0 --help' for more information." >&5 23324echo "$as_me: error: unrecognized option: $1 23325Try \`$0 --help' for more information." >&2;} 23326 { (exit 1); exit 1; }; } ;; 23327 23328 *) ac_config_targets="$ac_config_targets $1" ;; 23329 23330 esac 23331 shift 23332done 23333 23334ac_configure_extra_args= 23335 23336if $ac_cs_silent; then 23337 exec 6>/dev/null 23338 ac_configure_extra_args="$ac_configure_extra_args --silent" 23339fi 23340 23341_ACEOF 23342cat >>$CONFIG_STATUS <<_ACEOF 23343if \$ac_cs_recheck; then 23344 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23345 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23346fi 23347 23348_ACEOF 23349 23350cat >>$CONFIG_STATUS <<_ACEOF 23351# 23352# INIT-COMMANDS section. 23353# 23354 23355AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23356 23357 23358_ACEOF 23359 23360 23361 23362cat >>$CONFIG_STATUS <<\_ACEOF 23363for ac_config_target in $ac_config_targets 23364do 23365 case "$ac_config_target" in 23366 # Handling of arguments. 23367 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23368 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23369 "src/libxosd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/libxosd/Makefile" ;; 23370 "src/xmms_plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/xmms_plugin/Makefile" ;; 23371 "src/bmp_plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bmp_plugin/Makefile" ;; 23372 "macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;; 23373 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23374 "pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; 23375 "script/Makefile" ) CONFIG_FILES="$CONFIG_FILES script/Makefile" ;; 23376 "script/xosd-config" ) CONFIG_FILES="$CONFIG_FILES script/xosd-config" ;; 23377 "xosd.spec" ) CONFIG_FILES="$CONFIG_FILES xosd.spec" ;; 23378 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23379 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 23380 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23381echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23382 { (exit 1); exit 1; }; };; 23383 esac 23384done 23385 23386# If the user did not use the arguments to specify the items to instantiate, 23387# then the envvar interface is used. Set only those that are not. 23388# We use the long form for the default assignment because of an extremely 23389# bizarre bug on SunOS 4.1.3. 23390if $ac_need_defaults; then 23391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23392 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23393fi 23394 23395# Have a temporary directory for convenience. Make it in the build tree 23396# simply because there is no reason to put it here, and in addition, 23397# creating and moving files from /tmp can sometimes cause problems. 23398# Create a temporary directory, and hook for its removal unless debugging. 23399$debug || 23400{ 23401 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 23402 trap '{ (exit 1); exit 1; }' 1 2 13 15 23403} 23404 23405# Create a (secure) tmp directory for tmp files. 23406 23407{ 23408 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 23409 test -n "$tmp" && test -d "$tmp" 23410} || 23411{ 23412 tmp=./confstat$$-$RANDOM 23413 (umask 077 && mkdir $tmp) 23414} || 23415{ 23416 echo "$me: cannot create a temporary directory in ." >&2 23417 { (exit 1); exit 1; } 23418} 23419 23420_ACEOF 23421 23422cat >>$CONFIG_STATUS <<_ACEOF 23423 23424# 23425# CONFIG_FILES section. 23426# 23427 23428# No need to generate the scripts if there are no CONFIG_FILES. 23429# This happens for instance when ./config.status config.h 23430if test -n "\$CONFIG_FILES"; then 23431 # Protect against being on the right side of a sed subst in config.status. 23432 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 23433 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 23434s,@SHELL@,$SHELL,;t t 23435s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 23436s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 23437s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 23438s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 23439s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 23440s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 23441s,@exec_prefix@,$exec_prefix,;t t 23442s,@prefix@,$prefix,;t t 23443s,@program_transform_name@,$program_transform_name,;t t 23444s,@bindir@,$bindir,;t t 23445s,@sbindir@,$sbindir,;t t 23446s,@libexecdir@,$libexecdir,;t t 23447s,@datadir@,$datadir,;t t 23448s,@sysconfdir@,$sysconfdir,;t t 23449s,@sharedstatedir@,$sharedstatedir,;t t 23450s,@localstatedir@,$localstatedir,;t t 23451s,@libdir@,$libdir,;t t 23452s,@includedir@,$includedir,;t t 23453s,@oldincludedir@,$oldincludedir,;t t 23454s,@infodir@,$infodir,;t t 23455s,@mandir@,$mandir,;t t 23456s,@build_alias@,$build_alias,;t t 23457s,@host_alias@,$host_alias,;t t 23458s,@target_alias@,$target_alias,;t t 23459s,@DEFS@,$DEFS,;t t 23460s,@ECHO_C@,$ECHO_C,;t t 23461s,@ECHO_N@,$ECHO_N,;t t 23462s,@ECHO_T@,$ECHO_T,;t t 23463s,@LIBS@,$LIBS,;t t 23464s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 23465s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 23466s,@INSTALL_DATA@,$INSTALL_DATA,;t t 23467s,@CYGPATH_W@,$CYGPATH_W,;t t 23468s,@PACKAGE@,$PACKAGE,;t t 23469s,@VERSION@,$VERSION,;t t 23470s,@ACLOCAL@,$ACLOCAL,;t t 23471s,@AUTOCONF@,$AUTOCONF,;t t 23472s,@AUTOMAKE@,$AUTOMAKE,;t t 23473s,@AUTOHEADER@,$AUTOHEADER,;t t 23474s,@MAKEINFO@,$MAKEINFO,;t t 23475s,@install_sh@,$install_sh,;t t 23476s,@STRIP@,$STRIP,;t t 23477s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 23478s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 23479s,@mkdir_p@,$mkdir_p,;t t 23480s,@AWK@,$AWK,;t t 23481s,@SET_MAKE@,$SET_MAKE,;t t 23482s,@am__leading_dot@,$am__leading_dot,;t t 23483s,@AMTAR@,$AMTAR,;t t 23484s,@am__tar@,$am__tar,;t t 23485s,@am__untar@,$am__untar,;t t 23486s,@LT_CURRENT@,$LT_CURRENT,;t t 23487s,@LT_AGE@,$LT_AGE,;t t 23488s,@LT_REVISION@,$LT_REVISION,;t t 23489s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 23490s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 23491s,@MAINT@,$MAINT,;t t 23492s,@CC@,$CC,;t t 23493s,@CFLAGS@,$CFLAGS,;t t 23494s,@LDFLAGS@,$LDFLAGS,;t t 23495s,@CPPFLAGS@,$CPPFLAGS,;t t 23496s,@ac_ct_CC@,$ac_ct_CC,;t t 23497s,@EXEEXT@,$EXEEXT,;t t 23498s,@OBJEXT@,$OBJEXT,;t t 23499s,@DEPDIR@,$DEPDIR,;t t 23500s,@am__include@,$am__include,;t t 23501s,@am__quote@,$am__quote,;t t 23502s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 23503s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 23504s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 23505s,@CCDEPMODE@,$CCDEPMODE,;t t 23506s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 23507s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 23508s,@LN_S@,$LN_S,;t t 23509s,@build@,$build,;t t 23510s,@build_cpu@,$build_cpu,;t t 23511s,@build_vendor@,$build_vendor,;t t 23512s,@build_os@,$build_os,;t t 23513s,@host@,$host,;t t 23514s,@host_cpu@,$host_cpu,;t t 23515s,@host_vendor@,$host_vendor,;t t 23516s,@host_os@,$host_os,;t t 23517s,@EGREP@,$EGREP,;t t 23518s,@ECHO@,$ECHO,;t t 23519s,@AR@,$AR,;t t 23520s,@ac_ct_AR@,$ac_ct_AR,;t t 23521s,@RANLIB@,$RANLIB,;t t 23522s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 23523s,@CPP@,$CPP,;t t 23524s,@CXX@,$CXX,;t t 23525s,@CXXFLAGS@,$CXXFLAGS,;t t 23526s,@ac_ct_CXX@,$ac_ct_CXX,;t t 23527s,@CXXDEPMODE@,$CXXDEPMODE,;t t 23528s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 23529s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 23530s,@CXXCPP@,$CXXCPP,;t t 23531s,@F77@,$F77,;t t 23532s,@FFLAGS@,$FFLAGS,;t t 23533s,@ac_ct_F77@,$ac_ct_F77,;t t 23534s,@LIBTOOL@,$LIBTOOL,;t t 23535s,@X_CFLAGS@,$X_CFLAGS,;t t 23536s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 23537s,@X_LIBS@,$X_LIBS,;t t 23538s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 23539s,@M4DATADIR@,$M4DATADIR,;t t 23540s,@GTK_CONFIG@,$GTK_CONFIG,;t t 23541s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 23542s,@GTK_LIBS@,$GTK_LIBS,;t t 23543s,@PKG_CONFIG@,$PKG_CONFIG,;t t 23544s,@BMP_CFLAGS@,$BMP_CFLAGS,;t t 23545s,@BMP_LIBS@,$BMP_LIBS,;t t 23546s,@BMP_GENERAL_PLUGIN_DIR@,$BMP_GENERAL_PLUGIN_DIR,;t t 23547s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t 23548s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t 23549s,@XMMS_LIBS@,$XMMS_LIBS,;t t 23550s,@XMMS_VERSION@,$XMMS_VERSION,;t t 23551s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t 23552s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t 23553s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t 23554s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t 23555s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t 23556s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t 23557s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t 23558s,@GDK_PIXBUF_CONFIG@,$GDK_PIXBUF_CONFIG,;t t 23559s,@GDK_PIXBUF_CFLAGS@,$GDK_PIXBUF_CFLAGS,;t t 23560s,@GDK_PIXBUF_LIBS@,$GDK_PIXBUF_LIBS,;t t 23561s,@XMMS_PIXMAPDIR@,$XMMS_PIXMAPDIR,;t t 23562s,@BUILD_NEW_PLUGIN_TRUE@,$BUILD_NEW_PLUGIN_TRUE,;t t 23563s,@BUILD_NEW_PLUGIN_FALSE@,$BUILD_NEW_PLUGIN_FALSE,;t t 23564s,@BUILD_BEEP_MEDIA_PLUGIN_TRUE@,$BUILD_BEEP_MEDIA_PLUGIN_TRUE,;t t 23565s,@BUILD_BEEP_MEDIA_PLUGIN_FALSE@,$BUILD_BEEP_MEDIA_PLUGIN_FALSE,;t t 23566s,@BUILD_OLD_PLUGIN_TRUE@,$BUILD_OLD_PLUGIN_TRUE,;t t 23567s,@BUILD_OLD_PLUGIN_FALSE@,$BUILD_OLD_PLUGIN_FALSE,;t t 23568s,@LIBOBJS@,$LIBOBJS,;t t 23569s,@LTLIBOBJS@,$LTLIBOBJS,;t t 23570CEOF 23571 23572_ACEOF 23573 23574 cat >>$CONFIG_STATUS <<\_ACEOF 23575 # Split the substitutions into bite-sized pieces for seds with 23576 # small command number limits, like on Digital OSF/1 and HP-UX. 23577 ac_max_sed_lines=48 23578 ac_sed_frag=1 # Number of current file. 23579 ac_beg=1 # First line for current file. 23580 ac_end=$ac_max_sed_lines # Line after last line for current file. 23581 ac_more_lines=: 23582 ac_sed_cmds= 23583 while $ac_more_lines; do 23584 if test $ac_beg -gt 1; then 23585 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23586 else 23587 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 23588 fi 23589 if test ! -s $tmp/subs.frag; then 23590 ac_more_lines=false 23591 else 23592 # The purpose of the label and of the branching condition is to 23593 # speed up the sed processing (if there are no `@' at all, there 23594 # is no need to browse any of the substitutions). 23595 # These are the two extra sed commands mentioned above. 23596 (echo ':t 23597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 23598 if test -z "$ac_sed_cmds"; then 23599 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 23600 else 23601 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 23602 fi 23603 ac_sed_frag=`expr $ac_sed_frag + 1` 23604 ac_beg=$ac_end 23605 ac_end=`expr $ac_end + $ac_max_sed_lines` 23606 fi 23607 done 23608 if test -z "$ac_sed_cmds"; then 23609 ac_sed_cmds=cat 23610 fi 23611fi # test -n "$CONFIG_FILES" 23612 23613_ACEOF 23614cat >>$CONFIG_STATUS <<\_ACEOF 23615for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 23616 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 23617 case $ac_file in 23618 - | *:- | *:-:* ) # input from stdin 23619 cat >$tmp/stdin 23620 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23621 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23622 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 23623 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 23624 * ) ac_file_in=$ac_file.in ;; 23625 esac 23626 23627 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 23628 ac_dir=`(dirname "$ac_file") 2>/dev/null || 23629$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23630 X"$ac_file" : 'X\(//\)[^/]' \| \ 23631 X"$ac_file" : 'X\(//\)$' \| \ 23632 X"$ac_file" : 'X\(/\)' \| \ 23633 . : '\(.\)' 2>/dev/null || 23634echo X"$ac_file" | 23635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23636 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23637 /^X\(\/\/\)$/{ s//\1/; q; } 23638 /^X\(\/\).*/{ s//\1/; q; } 23639 s/.*/./; q'` 23640 { if $as_mkdir_p; then 23641 mkdir -p "$ac_dir" 23642 else 23643 as_dir="$ac_dir" 23644 as_dirs= 23645 while test ! -d "$as_dir"; do 23646 as_dirs="$as_dir $as_dirs" 23647 as_dir=`(dirname "$as_dir") 2>/dev/null || 23648$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23649 X"$as_dir" : 'X\(//\)[^/]' \| \ 23650 X"$as_dir" : 'X\(//\)$' \| \ 23651 X"$as_dir" : 'X\(/\)' \| \ 23652 . : '\(.\)' 2>/dev/null || 23653echo X"$as_dir" | 23654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23655 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23656 /^X\(\/\/\)$/{ s//\1/; q; } 23657 /^X\(\/\).*/{ s//\1/; q; } 23658 s/.*/./; q'` 23659 done 23660 test ! -n "$as_dirs" || mkdir $as_dirs 23661 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23662echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23663 { (exit 1); exit 1; }; }; } 23664 23665 ac_builddir=. 23666 23667if test "$ac_dir" != .; then 23668 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23669 # A "../" for each directory in $ac_dir_suffix. 23670 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23671else 23672 ac_dir_suffix= ac_top_builddir= 23673fi 23674 23675case $srcdir in 23676 .) # No --srcdir option. We are building in place. 23677 ac_srcdir=. 23678 if test -z "$ac_top_builddir"; then 23679 ac_top_srcdir=. 23680 else 23681 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23682 fi ;; 23683 [\\/]* | ?:[\\/]* ) # Absolute path. 23684 ac_srcdir=$srcdir$ac_dir_suffix; 23685 ac_top_srcdir=$srcdir ;; 23686 *) # Relative path. 23687 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23688 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23689esac 23690 23691# Do not use `cd foo && pwd` to compute absolute paths, because 23692# the directories may not exist. 23693case `pwd` in 23694.) ac_abs_builddir="$ac_dir";; 23695*) 23696 case "$ac_dir" in 23697 .) ac_abs_builddir=`pwd`;; 23698 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23699 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23700 esac;; 23701esac 23702case $ac_abs_builddir in 23703.) ac_abs_top_builddir=${ac_top_builddir}.;; 23704*) 23705 case ${ac_top_builddir}. in 23706 .) ac_abs_top_builddir=$ac_abs_builddir;; 23707 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23708 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23709 esac;; 23710esac 23711case $ac_abs_builddir in 23712.) ac_abs_srcdir=$ac_srcdir;; 23713*) 23714 case $ac_srcdir in 23715 .) ac_abs_srcdir=$ac_abs_builddir;; 23716 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23717 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23718 esac;; 23719esac 23720case $ac_abs_builddir in 23721.) ac_abs_top_srcdir=$ac_top_srcdir;; 23722*) 23723 case $ac_top_srcdir in 23724 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23725 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23726 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23727 esac;; 23728esac 23729 23730 23731 case $INSTALL in 23732 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23733 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 23734 esac 23735 23736 if test x"$ac_file" != x-; then 23737 { echo "$as_me:$LINENO: creating $ac_file" >&5 23738echo "$as_me: creating $ac_file" >&6;} 23739 rm -f "$ac_file" 23740 fi 23741 # Let's still pretend it is `configure' which instantiates (i.e., don't 23742 # use $as_me), people would be surprised to read: 23743 # /* config.h. Generated by config.status. */ 23744 if test x"$ac_file" = x-; then 23745 configure_input= 23746 else 23747 configure_input="$ac_file. " 23748 fi 23749 configure_input=$configure_input"Generated from `echo $ac_file_in | 23750 sed 's,.*/,,'` by configure." 23751 23752 # First look for the input files in the build tree, otherwise in the 23753 # src tree. 23754 ac_file_inputs=`IFS=: 23755 for f in $ac_file_in; do 23756 case $f in 23757 -) echo $tmp/stdin ;; 23758 [\\/$]*) 23759 # Absolute (can't be DOS-style, as IFS=:) 23760 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23761echo "$as_me: error: cannot find input file: $f" >&2;} 23762 { (exit 1); exit 1; }; } 23763 echo "$f";; 23764 *) # Relative 23765 if test -f "$f"; then 23766 # Build tree 23767 echo "$f" 23768 elif test -f "$srcdir/$f"; then 23769 # Source tree 23770 echo "$srcdir/$f" 23771 else 23772 # /dev/null tree 23773 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 23774echo "$as_me: error: cannot find input file: $f" >&2;} 23775 { (exit 1); exit 1; }; } 23776 fi;; 23777 esac 23778 done` || { (exit 1); exit 1; } 23779_ACEOF 23780cat >>$CONFIG_STATUS <<_ACEOF 23781 sed "$ac_vpsub 23782$extrasub 23783_ACEOF 23784cat >>$CONFIG_STATUS <<\_ACEOF 23785:t 23786/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23787s,@configure_input@,$configure_input,;t t 23788s,@srcdir@,$ac_srcdir,;t t 23789s,@abs_srcdir@,$ac_abs_srcdir,;t t 23790s,@top_srcdir@,$ac_top_srcdir,;t t 23791s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 23792s,@builddir@,$ac_builddir,;t t 23793s,@abs_builddir@,$ac_abs_builddir,;t t 23794s,@top_builddir@,$ac_top_builddir,;t t 23795s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 23796s,@INSTALL@,$ac_INSTALL,;t t 23797" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 23798 rm -f $tmp/stdin 23799 if test x"$ac_file" != x-; then 23800 mv $tmp/out $ac_file 23801 else 23802 cat $tmp/out 23803 rm -f $tmp/out 23804 fi 23805 23806done 23807_ACEOF 23808cat >>$CONFIG_STATUS <<\_ACEOF 23809 23810# 23811# CONFIG_COMMANDS section. 23812# 23813for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 23814 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 23815 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 23816 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 23817$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23818 X"$ac_dest" : 'X\(//\)[^/]' \| \ 23819 X"$ac_dest" : 'X\(//\)$' \| \ 23820 X"$ac_dest" : 'X\(/\)' \| \ 23821 . : '\(.\)' 2>/dev/null || 23822echo X"$ac_dest" | 23823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23824 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23825 /^X\(\/\/\)$/{ s//\1/; q; } 23826 /^X\(\/\).*/{ s//\1/; q; } 23827 s/.*/./; q'` 23828 { if $as_mkdir_p; then 23829 mkdir -p "$ac_dir" 23830 else 23831 as_dir="$ac_dir" 23832 as_dirs= 23833 while test ! -d "$as_dir"; do 23834 as_dirs="$as_dir $as_dirs" 23835 as_dir=`(dirname "$as_dir") 2>/dev/null || 23836$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23837 X"$as_dir" : 'X\(//\)[^/]' \| \ 23838 X"$as_dir" : 'X\(//\)$' \| \ 23839 X"$as_dir" : 'X\(/\)' \| \ 23840 . : '\(.\)' 2>/dev/null || 23841echo X"$as_dir" | 23842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23843 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23844 /^X\(\/\/\)$/{ s//\1/; q; } 23845 /^X\(\/\).*/{ s//\1/; q; } 23846 s/.*/./; q'` 23847 done 23848 test ! -n "$as_dirs" || mkdir $as_dirs 23849 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 23850echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 23851 { (exit 1); exit 1; }; }; } 23852 23853 ac_builddir=. 23854 23855if test "$ac_dir" != .; then 23856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23857 # A "../" for each directory in $ac_dir_suffix. 23858 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 23859else 23860 ac_dir_suffix= ac_top_builddir= 23861fi 23862 23863case $srcdir in 23864 .) # No --srcdir option. We are building in place. 23865 ac_srcdir=. 23866 if test -z "$ac_top_builddir"; then 23867 ac_top_srcdir=. 23868 else 23869 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 23870 fi ;; 23871 [\\/]* | ?:[\\/]* ) # Absolute path. 23872 ac_srcdir=$srcdir$ac_dir_suffix; 23873 ac_top_srcdir=$srcdir ;; 23874 *) # Relative path. 23875 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 23876 ac_top_srcdir=$ac_top_builddir$srcdir ;; 23877esac 23878 23879# Do not use `cd foo && pwd` to compute absolute paths, because 23880# the directories may not exist. 23881case `pwd` in 23882.) ac_abs_builddir="$ac_dir";; 23883*) 23884 case "$ac_dir" in 23885 .) ac_abs_builddir=`pwd`;; 23886 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 23887 *) ac_abs_builddir=`pwd`/"$ac_dir";; 23888 esac;; 23889esac 23890case $ac_abs_builddir in 23891.) ac_abs_top_builddir=${ac_top_builddir}.;; 23892*) 23893 case ${ac_top_builddir}. in 23894 .) ac_abs_top_builddir=$ac_abs_builddir;; 23895 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 23896 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 23897 esac;; 23898esac 23899case $ac_abs_builddir in 23900.) ac_abs_srcdir=$ac_srcdir;; 23901*) 23902 case $ac_srcdir in 23903 .) ac_abs_srcdir=$ac_abs_builddir;; 23904 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 23905 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 23906 esac;; 23907esac 23908case $ac_abs_builddir in 23909.) ac_abs_top_srcdir=$ac_top_srcdir;; 23910*) 23911 case $ac_top_srcdir in 23912 .) ac_abs_top_srcdir=$ac_abs_builddir;; 23913 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 23914 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 23915 esac;; 23916esac 23917 23918 23919 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 23920echo "$as_me: executing $ac_dest commands" >&6;} 23921 case $ac_dest in 23922 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23923 # Strip MF so we end up with the name of the file. 23924 mf=`echo "$mf" | sed -e 's/:.*$//'` 23925 # Check whether this is an Automake generated Makefile or not. 23926 # We used to match only the files named `Makefile.in', but 23927 # some people rename them; so instead we look at the file content. 23928 # Grep'ing the first line is not enough: some people post-process 23929 # each Makefile.in and add a new line on top of each file to say so. 23930 # So let's grep whole file. 23931 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23932 dirpart=`(dirname "$mf") 2>/dev/null || 23933$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23934 X"$mf" : 'X\(//\)[^/]' \| \ 23935 X"$mf" : 'X\(//\)$' \| \ 23936 X"$mf" : 'X\(/\)' \| \ 23937 . : '\(.\)' 2>/dev/null || 23938echo X"$mf" | 23939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23940 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23941 /^X\(\/\/\)$/{ s//\1/; q; } 23942 /^X\(\/\).*/{ s//\1/; q; } 23943 s/.*/./; q'` 23944 else 23945 continue 23946 fi 23947 # Extract the definition of DEPDIR, am__include, and am__quote 23948 # from the Makefile without running `make'. 23949 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23950 test -z "$DEPDIR" && continue 23951 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23952 test -z "am__include" && continue 23953 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23954 # When using ansi2knr, U may be empty or an underscore; expand it 23955 U=`sed -n 's/^U = //p' < "$mf"` 23956 # Find all dependency output files, they are included files with 23957 # $(DEPDIR) in their names. We invoke sed twice because it is the 23958 # simplest approach to changing $(DEPDIR) to its actual value in the 23959 # expansion. 23960 for file in `sed -n " 23961 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23962 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23963 # Make sure the directory exists. 23964 test -f "$dirpart/$file" && continue 23965 fdir=`(dirname "$file") 2>/dev/null || 23966$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23967 X"$file" : 'X\(//\)[^/]' \| \ 23968 X"$file" : 'X\(//\)$' \| \ 23969 X"$file" : 'X\(/\)' \| \ 23970 . : '\(.\)' 2>/dev/null || 23971echo X"$file" | 23972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23973 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23974 /^X\(\/\/\)$/{ s//\1/; q; } 23975 /^X\(\/\).*/{ s//\1/; q; } 23976 s/.*/./; q'` 23977 { if $as_mkdir_p; then 23978 mkdir -p $dirpart/$fdir 23979 else 23980 as_dir=$dirpart/$fdir 23981 as_dirs= 23982 while test ! -d "$as_dir"; do 23983 as_dirs="$as_dir $as_dirs" 23984 as_dir=`(dirname "$as_dir") 2>/dev/null || 23985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23986 X"$as_dir" : 'X\(//\)[^/]' \| \ 23987 X"$as_dir" : 'X\(//\)$' \| \ 23988 X"$as_dir" : 'X\(/\)' \| \ 23989 . : '\(.\)' 2>/dev/null || 23990echo X"$as_dir" | 23991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 23992 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 23993 /^X\(\/\/\)$/{ s//\1/; q; } 23994 /^X\(\/\).*/{ s//\1/; q; } 23995 s/.*/./; q'` 23996 done 23997 test ! -n "$as_dirs" || mkdir $as_dirs 23998 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 23999echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24000 { (exit 1); exit 1; }; }; } 24001 24002 # echo "creating $dirpart/$file" 24003 echo '# dummy' > "$dirpart/$file" 24004 done 24005done 24006 ;; 24007 default ) chmod +x script/xosd-config ;; 24008 esac 24009done 24010_ACEOF 24011 24012cat >>$CONFIG_STATUS <<\_ACEOF 24013 24014{ (exit 0); exit 0; } 24015_ACEOF 24016chmod +x $CONFIG_STATUS 24017ac_clean_files=$ac_clean_files_save 24018 24019 24020# configure is writing to config.log, and then calls config.status. 24021# config.status does its own redirection, appending to config.log. 24022# Unfortunately, on DOS this fails, as config.log is still kept open 24023# by configure, so config.status won't be able to write to it; its 24024# output is simply discarded. So we exec the FD to /dev/null, 24025# effectively closing config.log, so it can be properly (re)opened and 24026# appended to by config.status. When coming back to configure, we 24027# need to make the FD available again. 24028if test "$no_create" != yes; then 24029 ac_cs_success=: 24030 ac_config_status_args= 24031 test "$silent" = yes && 24032 ac_config_status_args="$ac_config_status_args --quiet" 24033 exec 5>/dev/null 24034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24035 exec 5>>config.log 24036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24037 # would make configure fail if this is the last instruction. 24038 $ac_cs_success || { (exit 1); exit 1; } 24039fi 24040 24041