1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.59. 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= 423PACKAGE_TARNAME= 424PACKAGE_VERSION= 425PACKAGE_STRING= 426PACKAGE_BUGREPORT= 427 428ac_unique_file="acinclude.m4" 429ac_default_prefix=/usr/local 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot 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 CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED LDFLAGS_NEW_DTAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN KDE_CHECK_PLUGIN all_includes all_libraries AUTODIRS SEND_TO_KEYBOARD_TRUE SEND_TO_KEYBOARD_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HELPER_SUID SETKEYCODES_SUID EVTEST_TRUE EVTEST_FALSE EVTEST CYGWIN_TRUE CYGWIN_FALSE CYGWIN TOPSUBDIRS LIB@&t@OBJS LTLIBOBJS' 468ac_subst_files='' 469 470# Initialize some variables set by options. 471ac_init_help= 472ac_init_version=false 473# The variables have the same names as the options, with 474# dashes changed to underlines. 475cache_file=/dev/null 476exec_prefix=NONE 477no_create= 478no_recursion= 479prefix=NONE 480program_prefix=NONE 481program_suffix=NONE 482program_transform_name=s,x,x, 483silent= 484site= 485srcdir= 486verbose= 487x_includes=NONE 488x_libraries=NONE 489 490# Installation directory options. 491# These are left unexpanded so users can "make install exec_prefix=/foo" 492# and all the variables that are supposed to be based on exec_prefix 493# by default will actually change. 494# Use braces instead of parens because sh, perl, etc. also accept them. 495bindir='${exec_prefix}/bin' 496sbindir='${exec_prefix}/sbin' 497libexecdir='${exec_prefix}/libexec' 498datadir='${prefix}/share' 499sysconfdir='${prefix}/etc' 500sharedstatedir='${prefix}/com' 501localstatedir='${prefix}/var' 502libdir='${exec_prefix}/lib' 503includedir='${prefix}/include' 504oldincludedir='/usr/include' 505infodir='${prefix}/info' 506mandir='${prefix}/man' 507 508ac_prev= 509for ac_option 510do 511 # If the previous option needs an argument, assign it. 512 if test -n "$ac_prev"; then 513 eval "$ac_prev=\$ac_option" 514 ac_prev= 515 continue 516 fi 517 518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 519 520 # Accept the important Cygnus configure options, so we can diagnose typos. 521 522 case $ac_option in 523 524 -bindir | --bindir | --bindi | --bind | --bin | --bi) 525 ac_prev=bindir ;; 526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 527 bindir=$ac_optarg ;; 528 529 -build | --build | --buil | --bui | --bu) 530 ac_prev=build_alias ;; 531 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 532 build_alias=$ac_optarg ;; 533 534 -cache-file | --cache-file | --cache-fil | --cache-fi \ 535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 536 ac_prev=cache_file ;; 537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 539 cache_file=$ac_optarg ;; 540 541 --config-cache | -C) 542 cache_file=config.cache ;; 543 544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 545 ac_prev=datadir ;; 546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 547 | --da=*) 548 datadir=$ac_optarg ;; 549 550 -disable-* | --disable-*) 551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 552 # Reject names that are not valid shell variable names. 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 555 { (exit 1); exit 1; }; } 556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 557 eval "enable_$ac_feature=no" ;; 558 559 -enable-* | --enable-*) 560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 561 # Reject names that are not valid shell variable names. 562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 564 { (exit 1); exit 1; }; } 565 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 566 case $ac_option in 567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 568 *) ac_optarg=yes ;; 569 esac 570 eval "enable_$ac_feature='$ac_optarg'" ;; 571 572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 574 | --exec | --exe | --ex) 575 ac_prev=exec_prefix ;; 576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 578 | --exec=* | --exe=* | --ex=*) 579 exec_prefix=$ac_optarg ;; 580 581 -gas | --gas | --ga | --g) 582 # Obsolete; use --with-gas. 583 with_gas=yes ;; 584 585 -help | --help | --hel | --he | -h) 586 ac_init_help=long ;; 587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 588 ac_init_help=recursive ;; 589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 590 ac_init_help=short ;; 591 592 -host | --host | --hos | --ho) 593 ac_prev=host_alias ;; 594 -host=* | --host=* | --hos=* | --ho=*) 595 host_alias=$ac_optarg ;; 596 597 -includedir | --includedir | --includedi | --included | --include \ 598 | --includ | --inclu | --incl | --inc) 599 ac_prev=includedir ;; 600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 601 | --includ=* | --inclu=* | --incl=* | --inc=*) 602 includedir=$ac_optarg ;; 603 604 -infodir | --infodir | --infodi | --infod | --info | --inf) 605 ac_prev=infodir ;; 606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 607 infodir=$ac_optarg ;; 608 609 -libdir | --libdir | --libdi | --libd) 610 ac_prev=libdir ;; 611 -libdir=* | --libdir=* | --libdi=* | --libd=*) 612 libdir=$ac_optarg ;; 613 614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 615 | --libexe | --libex | --libe) 616 ac_prev=libexecdir ;; 617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 618 | --libexe=* | --libex=* | --libe=*) 619 libexecdir=$ac_optarg ;; 620 621 -localstatedir | --localstatedir | --localstatedi | --localstated \ 622 | --localstate | --localstat | --localsta | --localst \ 623 | --locals | --local | --loca | --loc | --lo) 624 ac_prev=localstatedir ;; 625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 628 localstatedir=$ac_optarg ;; 629 630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 631 ac_prev=mandir ;; 632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 633 mandir=$ac_optarg ;; 634 635 -nfp | --nfp | --nf) 636 # Obsolete; use --without-fp. 637 with_fp=no ;; 638 639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 640 | --no-cr | --no-c | -n) 641 no_create=yes ;; 642 643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 645 no_recursion=yes ;; 646 647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 649 | --oldin | --oldi | --old | --ol | --o) 650 ac_prev=oldincludedir ;; 651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 654 oldincludedir=$ac_optarg ;; 655 656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 657 ac_prev=prefix ;; 658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 659 prefix=$ac_optarg ;; 660 661 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 662 | --program-pre | --program-pr | --program-p) 663 ac_prev=program_prefix ;; 664 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 666 program_prefix=$ac_optarg ;; 667 668 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 669 | --program-suf | --program-su | --program-s) 670 ac_prev=program_suffix ;; 671 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 673 program_suffix=$ac_optarg ;; 674 675 -program-transform-name | --program-transform-name \ 676 | --program-transform-nam | --program-transform-na \ 677 | --program-transform-n | --program-transform- \ 678 | --program-transform | --program-transfor \ 679 | --program-transfo | --program-transf \ 680 | --program-trans | --program-tran \ 681 | --progr-tra | --program-tr | --program-t) 682 ac_prev=program_transform_name ;; 683 -program-transform-name=* | --program-transform-name=* \ 684 | --program-transform-nam=* | --program-transform-na=* \ 685 | --program-transform-n=* | --program-transform-=* \ 686 | --program-transform=* | --program-transfor=* \ 687 | --program-transfo=* | --program-transf=* \ 688 | --program-trans=* | --program-tran=* \ 689 | --progr-tra=* | --program-tr=* | --program-t=*) 690 program_transform_name=$ac_optarg ;; 691 692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 693 | -silent | --silent | --silen | --sile | --sil) 694 silent=yes ;; 695 696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 697 ac_prev=sbindir ;; 698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 699 | --sbi=* | --sb=*) 700 sbindir=$ac_optarg ;; 701 702 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 704 | --sharedst | --shareds | --shared | --share | --shar \ 705 | --sha | --sh) 706 ac_prev=sharedstatedir ;; 707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 710 | --sha=* | --sh=*) 711 sharedstatedir=$ac_optarg ;; 712 713 -site | --site | --sit) 714 ac_prev=site ;; 715 -site=* | --site=* | --sit=*) 716 site=$ac_optarg ;; 717 718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 719 ac_prev=srcdir ;; 720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 721 srcdir=$ac_optarg ;; 722 723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 724 | --syscon | --sysco | --sysc | --sys | --sy) 725 ac_prev=sysconfdir ;; 726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 728 sysconfdir=$ac_optarg ;; 729 730 -target | --target | --targe | --targ | --tar | --ta | --t) 731 ac_prev=target_alias ;; 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 733 target_alias=$ac_optarg ;; 734 735 -v | -verbose | --verbose | --verbos | --verbo | --verb) 736 verbose=yes ;; 737 738 -version | --version | --versio | --versi | --vers | -V) 739 ac_init_version=: ;; 740 741 -with-* | --with-*) 742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 743 # Reject names that are not valid shell variable names. 744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 745 { echo "$as_me: error: invalid package name: $ac_package" >&2 746 { (exit 1); exit 1; }; } 747 ac_package=`echo $ac_package| sed 's/-/_/g'` 748 case $ac_option in 749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 750 *) ac_optarg=yes ;; 751 esac 752 eval "with_$ac_package='$ac_optarg'" ;; 753 754 -without-* | --without-*) 755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 756 # Reject names that are not valid shell variable names. 757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 758 { echo "$as_me: error: invalid package name: $ac_package" >&2 759 { (exit 1); exit 1; }; } 760 ac_package=`echo $ac_package | sed 's/-/_/g'` 761 eval "with_$ac_package=no" ;; 762 763 --x) 764 # Obsolete; use --with-x. 765 with_x=yes ;; 766 767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 768 | --x-incl | --x-inc | --x-in | --x-i) 769 ac_prev=x_includes ;; 770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 772 x_includes=$ac_optarg ;; 773 774 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 776 ac_prev=x_libraries ;; 777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 779 x_libraries=$ac_optarg ;; 780 781 -*) { echo "$as_me: error: unrecognized option: $ac_option 782Try \`$0 --help' for more information." >&2 783 { (exit 1); exit 1; }; } 784 ;; 785 786 *=*) 787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 788 # Reject names that are not valid shell variable names. 789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 791 { (exit 1); exit 1; }; } 792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 793 eval "$ac_envvar='$ac_optarg'" 794 export $ac_envvar ;; 795 796 *) 797 # FIXME: should be removed in autoconf 3.0. 798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 802 ;; 803 804 esac 805done 806 807if test -n "$ac_prev"; then 808 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 809 { echo "$as_me: error: missing argument to $ac_option" >&2 810 { (exit 1); exit 1; }; } 811fi 812 813# Be sure to have absolute paths. 814for ac_var in exec_prefix prefix 815do 816 eval ac_val=$`echo $ac_var` 817 case $ac_val in 818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 820 { (exit 1); exit 1; }; };; 821 esac 822done 823 824# Be sure to have absolute paths. 825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 826 localstatedir libdir includedir oldincludedir infodir mandir 827do 828 eval ac_val=$`echo $ac_var` 829 case $ac_val in 830 [\\/$]* | ?:[\\/]* ) ;; 831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 832 { (exit 1); exit 1; }; };; 833 esac 834done 835 836# There might be people who depend on the old broken behavior: `$host' 837# used to hold the argument of --host etc. 838# FIXME: To remove some day. 839build=$build_alias 840host=$host_alias 841target=$target_alias 842 843# FIXME: To remove some day. 844if test "x$host_alias" != x; then 845 if test "x$build_alias" = x; then 846 cross_compiling=maybe 847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 848 If a cross compiler is detected then cross compile mode will be used." >&2 849 elif test "x$build_alias" != "x$host_alias"; then 850 cross_compiling=yes 851 fi 852fi 853 854ac_tool_prefix= 855test -n "$host_alias" && ac_tool_prefix=$host_alias- 856 857test "$silent" = yes && exec 6>/dev/null 858 859 860# Find the source files, if location was not specified. 861if test -z "$srcdir"; then 862 ac_srcdir_defaulted=yes 863 # Try the directory containing this script, then its parent. 864 ac_confdir=`(dirname "$0") 2>/dev/null || 865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 866 X"$0" : 'X\(//\)[^/]' \| \ 867 X"$0" : 'X\(//\)$' \| \ 868 X"$0" : 'X\(/\)' \| \ 869 . : '\(.\)' 2>/dev/null || 870echo X"$0" | 871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 872 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 873 /^X\(\/\/\)$/{ s//\1/; q; } 874 /^X\(\/\).*/{ s//\1/; q; } 875 s/.*/./; q'` 876 srcdir=$ac_confdir 877 if test ! -r $srcdir/$ac_unique_file; then 878 srcdir=.. 879 fi 880else 881 ac_srcdir_defaulted=no 882fi 883if test ! -r $srcdir/$ac_unique_file; then 884 if test "$ac_srcdir_defaulted" = yes; then 885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 886 { (exit 1); exit 1; }; } 887 else 888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 889 { (exit 1); exit 1; }; } 890 fi 891fi 892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 894 { (exit 1); exit 1; }; } 895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 896ac_env_build_alias_set=${build_alias+set} 897ac_env_build_alias_value=$build_alias 898ac_cv_env_build_alias_set=${build_alias+set} 899ac_cv_env_build_alias_value=$build_alias 900ac_env_host_alias_set=${host_alias+set} 901ac_env_host_alias_value=$host_alias 902ac_cv_env_host_alias_set=${host_alias+set} 903ac_cv_env_host_alias_value=$host_alias 904ac_env_target_alias_set=${target_alias+set} 905ac_env_target_alias_value=$target_alias 906ac_cv_env_target_alias_set=${target_alias+set} 907ac_cv_env_target_alias_value=$target_alias 908ac_env_CC_set=${CC+set} 909ac_env_CC_value=$CC 910ac_cv_env_CC_set=${CC+set} 911ac_cv_env_CC_value=$CC 912ac_env_CFLAGS_set=${CFLAGS+set} 913ac_env_CFLAGS_value=$CFLAGS 914ac_cv_env_CFLAGS_set=${CFLAGS+set} 915ac_cv_env_CFLAGS_value=$CFLAGS 916ac_env_LDFLAGS_set=${LDFLAGS+set} 917ac_env_LDFLAGS_value=$LDFLAGS 918ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 919ac_cv_env_LDFLAGS_value=$LDFLAGS 920ac_env_CPPFLAGS_set=${CPPFLAGS+set} 921ac_env_CPPFLAGS_value=$CPPFLAGS 922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 923ac_cv_env_CPPFLAGS_value=$CPPFLAGS 924ac_env_CPP_set=${CPP+set} 925ac_env_CPP_value=$CPP 926ac_cv_env_CPP_set=${CPP+set} 927ac_cv_env_CPP_value=$CPP 928ac_env_CXX_set=${CXX+set} 929ac_env_CXX_value=$CXX 930ac_cv_env_CXX_set=${CXX+set} 931ac_cv_env_CXX_value=$CXX 932ac_env_CXXFLAGS_set=${CXXFLAGS+set} 933ac_env_CXXFLAGS_value=$CXXFLAGS 934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 935ac_cv_env_CXXFLAGS_value=$CXXFLAGS 936ac_env_CXXCPP_set=${CXXCPP+set} 937ac_env_CXXCPP_value=$CXXCPP 938ac_cv_env_CXXCPP_set=${CXXCPP+set} 939ac_cv_env_CXXCPP_value=$CXXCPP 940ac_env_F77_set=${F77+set} 941ac_env_F77_value=$F77 942ac_cv_env_F77_set=${F77+set} 943ac_cv_env_F77_value=$F77 944ac_env_FFLAGS_set=${FFLAGS+set} 945ac_env_FFLAGS_value=$FFLAGS 946ac_cv_env_FFLAGS_set=${FFLAGS+set} 947ac_cv_env_FFLAGS_value=$FFLAGS 948 949# 950# Report the --help message. 951# 952if test "$ac_init_help" = "long"; then 953 # Omit some internal or obsolete options to make the list less imposing. 954 # This message is too long to be a string in the A/UX 3.1 sh. 955 cat <<_ACEOF 956\`configure' configures this package to adapt to many kinds of systems. 957 958Usage: $0 [OPTION]... [VAR=VALUE]... 959 960To assign environment variables (e.g., CC, CFLAGS...), specify them as 961VAR=VALUE. See below for descriptions of some of the useful variables. 962 963Defaults for the options are specified in brackets. 964 965Configuration: 966 -h, --help display this help and exit 967 --help=short display options specific to this package 968 --help=recursive display the short help of all the included packages 969 -V, --version display version information and exit 970 -q, --quiet, --silent do not print \`checking...' messages 971 --cache-file=FILE cache test results in FILE [disabled] 972 -C, --config-cache alias for \`--cache-file=config.cache' 973 -n, --no-create do not create output files 974 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 975 976_ACEOF 977 978 cat <<_ACEOF 979Installation directories: 980 --prefix=PREFIX install architecture-independent files in PREFIX 981 [$ac_default_prefix] 982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 983 [PREFIX] 984 985By default, \`make install' will install all the files in 986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 987an installation prefix other than \`$ac_default_prefix' using \`--prefix', 988for instance \`--prefix=\$HOME'. 989 990For better control, use the options below. 991 992Fine tuning of the installation directories: 993 --bindir=DIR user executables [EPREFIX/bin] 994 --sbindir=DIR system admin executables [EPREFIX/sbin] 995 --libexecdir=DIR program executables [EPREFIX/libexec] 996 --datadir=DIR read-only architecture-independent data [PREFIX/share] 997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 999 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1000 --libdir=DIR object code libraries [EPREFIX/lib] 1001 --includedir=DIR C header files [PREFIX/include] 1002 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1003 --infodir=DIR info documentation [PREFIX/info] 1004 --mandir=DIR man documentation [PREFIX/man] 1005_ACEOF 1006 1007 cat <<\_ACEOF 1008 1009Program names: 1010 --program-prefix=PREFIX prepend PREFIX to installed program names 1011 --program-suffix=SUFFIX append SUFFIX to installed program names 1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1013 1014X features: 1015 --x-includes=DIR X include files are in DIR 1016 --x-libraries=DIR X library files are in DIR 1017 1018System types: 1019 --build=BUILD configure for building on BUILD [guessed] 1020 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1021 --target=TARGET configure for building compilers for TARGET [HOST] 1022_ACEOF 1023fi 1024 1025if test -n "$ac_init_help"; then 1026 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-debug=ARG enables debug symbols (yes|no|full) default=no 1033 --disable-debug disables debug output and debug symbols default=no 1034 --enable-strict compiles with strict compiler options (may not 1035 work!) 1036 --disable-warnings disables compilation with -Wall and similar 1037 --enable-profile creates profiling infos default=no 1038 --disable-dependency-tracking speeds up one-time build 1039 --enable-dependency-tracking do not reject slow dependency extractors 1040 --enable-pch enables precompiled header support (currently only 1041 KCC or gcc >=3.4+unsermake) default=no 1042 --enable-coverage use gcc coverage testing 1043 --enable-new-ldflags enable the new linker flags 1044 --enable-final build size optimized apps (experimental - needs lots 1045 of memory) 1046 --enable-closure delay template instantiation 1047 --enable-nmcheck enable automatic namespace cleanness check 1048 --enable-shared@<:@=PKGS@:>@ 1049 build shared libraries @<:@default=yes@:>@ 1050 --enable-static@<:@=PKGS@:>@ 1051 build static libraries @<:@default=yes@:>@ 1052 --enable-libsuffix /lib directory suffix (64,32,none,auto=default) 1053 --enable-fast-install@<:@=PKGS@:>@ 1054 optimize for fast installation @<:@default=yes@:>@ 1055 --disable-libtool-lock avoid locking (might break parallel builds) 1056 --enable-suid-helpers Install the helper applications SUID root 1057 (default=false) 1058 --enable-setkeycodes-suid 1059 Chown the setkeycodes command SUID root 1060 (default=false) 1061 --enable-evtest Make and install the evtest utility. (default=false) 1062 1063Optional Packages: 1064 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1065 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1066 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1067 --with-pic try to use only PIC/non-PIC objects @<:@default=use 1068 both@:>@ 1069 --with-tags@<:@=TAGS@:>@ 1070 include additional configurations @<:@automatic@:>@ 1071 --with-x use the X Window System 1072 1073Some influential environment variables: 1074 CC C compiler command 1075 CFLAGS C compiler flags 1076 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1077 nonstandard directory <lib dir> 1078 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1079 headers in a nonstandard directory <include dir> 1080 CPP C preprocessor 1081 CXX C++ compiler command 1082 CXXFLAGS C++ compiler flags 1083 CXXCPP C++ preprocessor 1084 F77 Fortran 77 compiler command 1085 FFLAGS Fortran 77 compiler flags 1086 1087Use these variables to override the choices made by `configure' or to help 1088it to find libraries and programs with nonstandard names/locations. 1089 1090_ACEOF 1091fi 1092 1093if test "$ac_init_help" = "recursive"; then 1094 # If there are subdirs, report their specific --help. 1095 ac_popdir=`pwd` 1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1097 test -d $ac_dir || continue 1098 ac_builddir=. 1099 1100if test "$ac_dir" != .; then 1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1102 # A "../" for each directory in $ac_dir_suffix. 1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1104else 1105 ac_dir_suffix= ac_top_builddir= 1106fi 1107 1108case $srcdir in 1109 .) # No --srcdir option. We are building in place. 1110 ac_srcdir=. 1111 if test -z "$ac_top_builddir"; then 1112 ac_top_srcdir=. 1113 else 1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1115 fi ;; 1116 [\\/]* | ?:[\\/]* ) # Absolute path. 1117 ac_srcdir=$srcdir$ac_dir_suffix; 1118 ac_top_srcdir=$srcdir ;; 1119 *) # Relative path. 1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1121 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1122esac 1123 1124# Do not use `cd foo && pwd` to compute absolute paths, because 1125# the directories may not exist. 1126case `pwd` in 1127.) ac_abs_builddir="$ac_dir";; 1128*) 1129 case "$ac_dir" in 1130 .) ac_abs_builddir=`pwd`;; 1131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1132 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1133 esac;; 1134esac 1135case $ac_abs_builddir in 1136.) ac_abs_top_builddir=${ac_top_builddir}.;; 1137*) 1138 case ${ac_top_builddir}. in 1139 .) ac_abs_top_builddir=$ac_abs_builddir;; 1140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1142 esac;; 1143esac 1144case $ac_abs_builddir in 1145.) ac_abs_srcdir=$ac_srcdir;; 1146*) 1147 case $ac_srcdir in 1148 .) ac_abs_srcdir=$ac_abs_builddir;; 1149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1151 esac;; 1152esac 1153case $ac_abs_builddir in 1154.) ac_abs_top_srcdir=$ac_top_srcdir;; 1155*) 1156 case $ac_top_srcdir in 1157 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1160 esac;; 1161esac 1162 1163 cd $ac_dir 1164 # Check for guested configure; otherwise get Cygnus style configure. 1165 if test -f $ac_srcdir/configure.gnu; then 1166 echo 1167 $SHELL $ac_srcdir/configure.gnu --help=recursive 1168 elif test -f $ac_srcdir/configure; then 1169 echo 1170 $SHELL $ac_srcdir/configure --help=recursive 1171 elif test -f $ac_srcdir/configure.ac || 1172 test -f $ac_srcdir/configure.in; then 1173 echo 1174 $ac_configure --help 1175 else 1176 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1177 fi 1178 cd "$ac_popdir" 1179 done 1180fi 1181 1182test -n "$ac_init_help" && exit 0 1183if $ac_init_version; then 1184 cat <<\_ACEOF 1185 1186Copyright (C) 2003 Free Software Foundation, Inc. 1187This configure script is free software; the Free Software Foundation 1188gives unlimited permission to copy, distribute and modify it. 1189_ACEOF 1190 exit 0 1191fi 1192exec 5>config.log 1193cat >&5 <<_ACEOF 1194This file contains any messages produced by compilers while 1195running configure, to aid debugging if configure makes a mistake. 1196 1197It was created by $as_me, which was 1198generated by GNU Autoconf 2.59. Invocation command line was 1199 1200 $ $0 $@ 1201 1202_ACEOF 1203{ 1204cat <<_ASUNAME 1205@%:@@%:@ --------- @%:@@%:@ 1206@%:@@%:@ Platform. @%:@@%:@ 1207@%:@@%:@ --------- @%:@@%:@ 1208 1209hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1210uname -m = `(uname -m) 2>/dev/null || echo unknown` 1211uname -r = `(uname -r) 2>/dev/null || echo unknown` 1212uname -s = `(uname -s) 2>/dev/null || echo unknown` 1213uname -v = `(uname -v) 2>/dev/null || echo unknown` 1214 1215/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1216/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1217 1218/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1219/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1220/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1221hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1222/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1223/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1224/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1225 1226_ASUNAME 1227 1228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1229for as_dir in $PATH 1230do 1231 IFS=$as_save_IFS 1232 test -z "$as_dir" && as_dir=. 1233 echo "PATH: $as_dir" 1234done 1235 1236} >&5 1237 1238cat >&5 <<_ACEOF 1239 1240 1241@%:@@%:@ ----------- @%:@@%:@ 1242@%:@@%:@ Core tests. @%:@@%:@ 1243@%:@@%:@ ----------- @%:@@%:@ 1244 1245_ACEOF 1246 1247 1248# Keep a trace of the command line. 1249# Strip out --no-create and --no-recursion so they do not pile up. 1250# Strip out --silent because we don't want to record it for future runs. 1251# Also quote any args containing shell meta-characters. 1252# Make two passes to allow for proper duplicate-argument suppression. 1253ac_configure_args= 1254ac_configure_args0= 1255ac_configure_args1= 1256ac_sep= 1257ac_must_keep_next=false 1258for ac_pass in 1 2 1259do 1260 for ac_arg 1261 do 1262 case $ac_arg in 1263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1265 | -silent | --silent | --silen | --sile | --sil) 1266 continue ;; 1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1268 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1269 esac 1270 case $ac_pass in 1271 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1272 2) 1273 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1274 if test $ac_must_keep_next = true; then 1275 ac_must_keep_next=false # Got value, back to normal. 1276 else 1277 case $ac_arg in 1278 *=* | --config-cache | -C | -disable-* | --disable-* \ 1279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1281 | -with-* | --with-* | -without-* | --without-* | --x) 1282 case "$ac_configure_args0 " in 1283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1284 esac 1285 ;; 1286 -* ) ac_must_keep_next=true ;; 1287 esac 1288 fi 1289 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1290 # Get rid of the leading space. 1291 ac_sep=" " 1292 ;; 1293 esac 1294 done 1295done 1296$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1297$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1298 1299# When interrupted or exit'd, cleanup temporary files, and complete 1300# config.log. We remove comments because anyway the quotes in there 1301# would cause problems or look ugly. 1302# WARNING: Be sure not to use single quotes in there, as some shells, 1303# such as our DU 5.0 friend, will then `close' the trap. 1304trap 'exit_status=$? 1305 # Save into config.log some information that might help in debugging. 1306 { 1307 echo 1308 1309 cat <<\_ASBOX 1310@%:@@%:@ ---------------- @%:@@%:@ 1311@%:@@%:@ Cache variables. @%:@@%:@ 1312@%:@@%:@ ---------------- @%:@@%:@ 1313_ASBOX 1314 echo 1315 # The following way of writing the cache mishandles newlines in values, 1316{ 1317 (set) 2>&1 | 1318 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1319 *ac_space=\ *) 1320 sed -n \ 1321 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1322 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1323 ;; 1324 *) 1325 sed -n \ 1326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1327 ;; 1328 esac; 1329} 1330 echo 1331 1332 cat <<\_ASBOX 1333@%:@@%:@ ----------------- @%:@@%:@ 1334@%:@@%:@ Output variables. @%:@@%:@ 1335@%:@@%:@ ----------------- @%:@@%:@ 1336_ASBOX 1337 echo 1338 for ac_var in $ac_subst_vars 1339 do 1340 eval ac_val=$`echo $ac_var` 1341 echo "$ac_var='"'"'$ac_val'"'"'" 1342 done | sort 1343 echo 1344 1345 if test -n "$ac_subst_files"; then 1346 cat <<\_ASBOX 1347@%:@@%:@ ------------- @%:@@%:@ 1348@%:@@%:@ Output files. @%:@@%:@ 1349@%:@@%:@ ------------- @%:@@%:@ 1350_ASBOX 1351 echo 1352 for ac_var in $ac_subst_files 1353 do 1354 eval ac_val=$`echo $ac_var` 1355 echo "$ac_var='"'"'$ac_val'"'"'" 1356 done | sort 1357 echo 1358 fi 1359 1360 if test -s confdefs.h; then 1361 cat <<\_ASBOX 1362@%:@@%:@ ----------- @%:@@%:@ 1363@%:@@%:@ confdefs.h. @%:@@%:@ 1364@%:@@%:@ ----------- @%:@@%:@ 1365_ASBOX 1366 echo 1367 sed "/^$/d" confdefs.h | sort 1368 echo 1369 fi 1370 test "$ac_signal" != 0 && 1371 echo "$as_me: caught signal $ac_signal" 1372 echo "$as_me: exit $exit_status" 1373 } >&5 1374 rm -f core *.core && 1375 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1376 exit $exit_status 1377 ' 0 1378for ac_signal in 1 2 13 15; do 1379 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1380done 1381ac_signal=0 1382 1383# confdefs.h avoids OS command line length limits that DEFS can exceed. 1384rm -rf conftest* confdefs.h 1385# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1386echo >confdefs.h 1387 1388# Predefined preprocessor variables. 1389 1390cat >>confdefs.h <<_ACEOF 1391@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1392_ACEOF 1393 1394 1395cat >>confdefs.h <<_ACEOF 1396@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1397_ACEOF 1398 1399 1400cat >>confdefs.h <<_ACEOF 1401@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1402_ACEOF 1403 1404 1405cat >>confdefs.h <<_ACEOF 1406@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1407_ACEOF 1408 1409 1410cat >>confdefs.h <<_ACEOF 1411@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1412_ACEOF 1413 1414 1415# Let the site file select an alternate cache file if it wants to. 1416# Prefer explicitly selected file to automatically selected ones. 1417if test -z "$CONFIG_SITE"; then 1418 if test "x$prefix" != xNONE; then 1419 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1420 else 1421 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1422 fi 1423fi 1424for ac_site_file in $CONFIG_SITE; do 1425 if test -r "$ac_site_file"; then 1426 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1427echo "$as_me: loading site script $ac_site_file" >&6;} 1428 sed 's/^/| /' "$ac_site_file" >&5 1429 . "$ac_site_file" 1430 fi 1431done 1432 1433if test -r "$cache_file"; then 1434 # Some versions of bash will fail to source /dev/null (special 1435 # files actually), so we avoid doing that. 1436 if test -f "$cache_file"; then 1437 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1438echo "$as_me: loading cache $cache_file" >&6;} 1439 case $cache_file in 1440 [\\/]* | ?:[\\/]* ) . $cache_file;; 1441 *) . ./$cache_file;; 1442 esac 1443 fi 1444else 1445 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1446echo "$as_me: creating cache $cache_file" >&6;} 1447 >$cache_file 1448fi 1449 1450# Check that the precious variables saved in the cache have kept the same 1451# value. 1452ac_cache_corrupted=false 1453for ac_var in `(set) 2>&1 | 1454 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1455 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1456 eval ac_new_set=\$ac_env_${ac_var}_set 1457 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1458 eval ac_new_val="\$ac_env_${ac_var}_value" 1459 case $ac_old_set,$ac_new_set in 1460 set,) 1461 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1462echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1463 ac_cache_corrupted=: ;; 1464 ,set) 1465 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1466echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1467 ac_cache_corrupted=: ;; 1468 ,);; 1469 *) 1470 if test "x$ac_old_val" != "x$ac_new_val"; then 1471 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1472echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1473 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1474echo "$as_me: former value: $ac_old_val" >&2;} 1475 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1476echo "$as_me: current value: $ac_new_val" >&2;} 1477 ac_cache_corrupted=: 1478 fi;; 1479 esac 1480 # Pass precious variables to config.status. 1481 if test "$ac_new_set" = set; then 1482 case $ac_new_val in 1483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1484 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1485 *) ac_arg=$ac_var=$ac_new_val ;; 1486 esac 1487 case " $ac_configure_args " in 1488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1490 esac 1491 fi 1492done 1493if $ac_cache_corrupted; then 1494 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1495echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1496 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1497echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1498 { (exit 1); exit 1; }; } 1499fi 1500 1501ac_ext=c 1502ac_cpp='$CPP $CPPFLAGS' 1503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1505ac_compiler_gnu=$ac_cv_c_compiler_gnu 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525ac_aux_dir= 1526for ac_dir in admin $srcdir/admin; do 1527 if test -f $ac_dir/install-sh; then 1528 ac_aux_dir=$ac_dir 1529 ac_install_sh="$ac_aux_dir/install-sh -c" 1530 break 1531 elif test -f $ac_dir/install.sh; then 1532 ac_aux_dir=$ac_dir 1533 ac_install_sh="$ac_aux_dir/install.sh -c" 1534 break 1535 elif test -f $ac_dir/shtool; then 1536 ac_aux_dir=$ac_dir 1537 ac_install_sh="$ac_aux_dir/shtool install -c" 1538 break 1539 fi 1540done 1541if test -z "$ac_aux_dir"; then 1542 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5 1543echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;} 1544 { (exit 1); exit 1; }; } 1545fi 1546ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1547ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1548ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1549 1550 1551unset CDPATH 1552 1553# Make sure we can run config.sub. 1554$ac_config_sub sun4 >/dev/null 2>&1 || 1555 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1556echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1557 { (exit 1); exit 1; }; } 1558 1559echo "$as_me:$LINENO: checking build system type" >&5 1560echo $ECHO_N "checking build system type... $ECHO_C" >&6 1561if test "${ac_cv_build+set}" = set; then 1562 echo $ECHO_N "(cached) $ECHO_C" >&6 1563else 1564 ac_cv_build_alias=$build_alias 1565test -z "$ac_cv_build_alias" && 1566 ac_cv_build_alias=`$ac_config_guess` 1567test -z "$ac_cv_build_alias" && 1568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1569echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1570 { (exit 1); exit 1; }; } 1571ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1573echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1574 { (exit 1); exit 1; }; } 1575 1576fi 1577echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1578echo "${ECHO_T}$ac_cv_build" >&6 1579build=$ac_cv_build 1580build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1581build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1582build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1583 1584 1585echo "$as_me:$LINENO: checking host system type" >&5 1586echo $ECHO_N "checking host system type... $ECHO_C" >&6 1587if test "${ac_cv_host+set}" = set; then 1588 echo $ECHO_N "(cached) $ECHO_C" >&6 1589else 1590 ac_cv_host_alias=$host_alias 1591test -z "$ac_cv_host_alias" && 1592 ac_cv_host_alias=$ac_cv_build_alias 1593ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1595echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1596 { (exit 1); exit 1; }; } 1597 1598fi 1599echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1600echo "${ECHO_T}$ac_cv_host" >&6 1601host=$ac_cv_host 1602host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1603host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1604host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1605 1606 1607echo "$as_me:$LINENO: checking target system type" >&5 1608echo $ECHO_N "checking target system type... $ECHO_C" >&6 1609if test "${ac_cv_target+set}" = set; then 1610 echo $ECHO_N "(cached) $ECHO_C" >&6 1611else 1612 ac_cv_target_alias=$target_alias 1613test "x$ac_cv_target_alias" = "x" && 1614 ac_cv_target_alias=$ac_cv_host_alias 1615ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1617echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1618 { (exit 1); exit 1; }; } 1619 1620fi 1621echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1622echo "${ECHO_T}$ac_cv_target" >&6 1623target=$ac_cv_target 1624target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1625target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1626target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1627 1628 1629# The aliases save the names the user supplied, while $host etc. 1630# will get canonicalized. 1631test -n "$target_alias" && 1632 test "$program_prefix$program_suffix$program_transform_name" = \ 1633 NONENONEs,x,x, && 1634 program_prefix=${target_alias}- 1635test "$program_prefix" != NONE && 1636 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1637# Use a double $ so make ignores it. 1638test "$program_suffix" != NONE && 1639 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1640# Double any \ or $. echo might interpret backslashes. 1641# By default was `s,x,x', remove it if useless. 1642cat <<\_ACEOF >conftest.sed 1643s/[\\$]/&&/g;s/;s,x,x,$// 1644_ACEOF 1645program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1646rm conftest.sed 1647 1648 1649am__api_version="1.8" 1650 1651 1652 test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL 1653 test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM 1654 test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT 1655 # Find a good install program. We prefer a C program (faster), 1656# so one script is as good as another. But avoid the broken or 1657# incompatible versions: 1658# SysV /etc/install, /usr/sbin/install 1659# SunOS /usr/etc/install 1660# IRIX /sbin/install 1661# AIX /bin/install 1662# AmigaOS /C/install, which installs bootblocks on floppy discs 1663# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1664# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1665# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1666# OS/2's system install, which has a completely different semantic 1667# ./install, which can be erroneously created by make from ./install.sh. 1668echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1669echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1670if test -z "$INSTALL"; then 1671if test "${ac_cv_path_install+set}" = set; then 1672 echo $ECHO_N "(cached) $ECHO_C" >&6 1673else 1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1675for as_dir in $PATH 1676do 1677 IFS=$as_save_IFS 1678 test -z "$as_dir" && as_dir=. 1679 # Account for people who put trailing slashes in PATH elements. 1680case $as_dir/ in 1681 ./ | .// | /cC/* | \ 1682 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1683 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1684 /usr/ucb/* ) ;; 1685 *) 1686 # OSF1 and SCO ODT 3.0 have their own names for install. 1687 # Don't use installbsd from OSF since it installs stuff as root 1688 # by default. 1689 for ac_prog in ginstall scoinst install; do 1690 for ac_exec_ext in '' $ac_executable_extensions; do 1691 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1692 if test $ac_prog = install && 1693 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1694 # AIX install. It has an incompatible calling convention. 1695 : 1696 elif test $ac_prog = install && 1697 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1698 # program-specific install script used by HP pwplus--don't use. 1699 : 1700 else 1701 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1702 break 3 1703 fi 1704 fi 1705 done 1706 done 1707 ;; 1708esac 1709done 1710 1711 1712fi 1713 if test "${ac_cv_path_install+set}" = set; then 1714 INSTALL=$ac_cv_path_install 1715 else 1716 # As a last resort, use the slow shell script. We don't cache a 1717 # path for INSTALL within a source directory, because that will 1718 # break other packages using the cache if that directory is 1719 # removed, or if the path is relative. 1720 INSTALL=$ac_install_sh 1721 fi 1722fi 1723echo "$as_me:$LINENO: result: $INSTALL" >&5 1724echo "${ECHO_T}$INSTALL" >&6 1725 1726# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1727# It thinks the first close brace ends the variable substitution. 1728test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1729 1730test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1731 1732test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1733 1734 1735 if test -z "$kde_save_INSTALL_given" ; then 1736 # OK, user hasn't given any INSTALL, autoconf found one for us 1737 # now we test, if it supports the -p flag 1738 echo "$as_me:$LINENO: checking for -p flag to install" >&5 1739echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6 1740 rm -f confinst.$$.* > /dev/null 2>&1 1741 echo "Testtest" > confinst.$$.orig 1742 ac_res=no 1743 if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then 1744 if test -f confinst.$$.new ; then 1745 # OK, -p seems to do no harm to install 1746 INSTALL="${INSTALL} -p" 1747 ac_res=yes 1748 fi 1749 fi 1750 rm -f confinst.$$.* 1751 echo "$as_me:$LINENO: result: $ac_res" >&5 1752echo "${ECHO_T}$ac_res" >&6 1753 fi 1754 1755 if test -z "$kde_save_INSTALL_PROGRAM_given" ; then 1756 INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)' 1757 fi 1758 if test -z "$kde_save_INSTALL_SCRIPT_given" ; then 1759 INSTALL_SCRIPT='${INSTALL}' 1760 fi 1761 1762echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1763echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1764# Just in case 1765sleep 1 1766echo timestamp > conftest.file 1767# Do `set' in a subshell so we don't clobber the current shell's 1768# arguments. Must try -L first in case configure is actually a 1769# symlink; some systems play weird games with the mod time of symlinks 1770# (eg FreeBSD returns the mod time of the symlink's containing 1771# directory). 1772if ( 1773 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1774 if test "$*" = "X"; then 1775 # -L didn't work. 1776 set X `ls -t $srcdir/configure conftest.file` 1777 fi 1778 rm -f conftest.file 1779 if test "$*" != "X $srcdir/configure conftest.file" \ 1780 && test "$*" != "X conftest.file $srcdir/configure"; then 1781 1782 # If neither matched, then we have a broken ls. This can happen 1783 # if, for instance, CONFIG_SHELL is bash and it inherits a 1784 # broken ls alias from the environment. This has actually 1785 # happened. Such a system could not be considered "sane". 1786 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1787alias in your environment" >&5 1788echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1789alias in your environment" >&2;} 1790 { (exit 1); exit 1; }; } 1791 fi 1792 1793 test "$2" = conftest.file 1794 ) 1795then 1796 # Ok. 1797 : 1798else 1799 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1800Check your system clock" >&5 1801echo "$as_me: error: newly created file is older than distributed files! 1802Check your system clock" >&2;} 1803 { (exit 1); exit 1; }; } 1804fi 1805echo "$as_me:$LINENO: result: yes" >&5 1806echo "${ECHO_T}yes" >&6 1807# expand $ac_aux_dir to an absolute path 1808am_aux_dir=`cd $ac_aux_dir && pwd` 1809 1810test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1811# Use eval to expand $SHELL 1812if eval "$MISSING --run true"; then 1813 am_missing_run="$MISSING --run " 1814else 1815 am_missing_run= 1816 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1817echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1818fi 1819 1820if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1821 # Keeping the `.' argument allows $(mkdir_p) to be used without 1822 # argument. Indeed, we sometimes output rules like 1823 # $(mkdir_p) $(somedir) 1824 # where $(somedir) is conditionally defined. 1825 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 1826 # expensive solution, as it forces Make to start a sub-shell.) 1827 mkdir_p='mkdir -p -- .' 1828else 1829 # On NextStep and OpenStep, the `mkdir' command does not 1830 # recognize any option. It will interpret all options as 1831 # directories to create, and then abort because `.' already 1832 # exists. 1833 for d in ./-p ./--version; 1834 do 1835 test -d $d && rmdir $d 1836 done 1837 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1838 if test -f "$ac_aux_dir/mkinstalldirs"; then 1839 mkdir_p='$(mkinstalldirs)' 1840 else 1841 mkdir_p='$(install_sh) -d' 1842 fi 1843fi 1844 1845for ac_prog in gawk mawk nawk awk 1846do 1847 # Extract the first word of "$ac_prog", so it can be a program name with args. 1848set dummy $ac_prog; ac_word=$2 1849echo "$as_me:$LINENO: checking for $ac_word" >&5 1850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1851if test "${ac_cv_prog_AWK+set}" = set; then 1852 echo $ECHO_N "(cached) $ECHO_C" >&6 1853else 1854 if test -n "$AWK"; then 1855 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1856else 1857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1858for as_dir in $PATH 1859do 1860 IFS=$as_save_IFS 1861 test -z "$as_dir" && as_dir=. 1862 for ac_exec_ext in '' $ac_executable_extensions; do 1863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1864 ac_cv_prog_AWK="$ac_prog" 1865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1866 break 2 1867 fi 1868done 1869done 1870 1871fi 1872fi 1873AWK=$ac_cv_prog_AWK 1874if test -n "$AWK"; then 1875 echo "$as_me:$LINENO: result: $AWK" >&5 1876echo "${ECHO_T}$AWK" >&6 1877else 1878 echo "$as_me:$LINENO: result: no" >&5 1879echo "${ECHO_T}no" >&6 1880fi 1881 1882 test -n "$AWK" && break 1883done 1884 1885echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1886echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1887set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1888if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1889 echo $ECHO_N "(cached) $ECHO_C" >&6 1890else 1891 cat >conftest.make <<\_ACEOF 1892all: 1893 @echo 'ac_maketemp="$(MAKE)"' 1894_ACEOF 1895# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1896eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1897if test -n "$ac_maketemp"; then 1898 eval ac_cv_prog_make_${ac_make}_set=yes 1899else 1900 eval ac_cv_prog_make_${ac_make}_set=no 1901fi 1902rm -f conftest.make 1903fi 1904if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1905 echo "$as_me:$LINENO: result: yes" >&5 1906echo "${ECHO_T}yes" >&6 1907 SET_MAKE= 1908else 1909 echo "$as_me:$LINENO: result: no" >&5 1910echo "${ECHO_T}no" >&6 1911 SET_MAKE="MAKE=${MAKE-make}" 1912fi 1913 1914rm -rf .tst 2>/dev/null 1915mkdir .tst 2>/dev/null 1916if test -d .tst; then 1917 am__leading_dot=. 1918else 1919 am__leading_dot=_ 1920fi 1921rmdir .tst 2>/dev/null 1922 1923# test to see if srcdir already configured 1924if test "`cd $srcdir && pwd`" != "`pwd`" && 1925 test -f $srcdir/config.status; then 1926 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1927echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1928 { (exit 1); exit 1; }; } 1929fi 1930 1931# test whether we have cygpath 1932if test -z "$CYGPATH_W"; then 1933 if (cygpath --version) >/dev/null 2>/dev/null; then 1934 CYGPATH_W='cygpath -w' 1935 else 1936 CYGPATH_W=echo 1937 fi 1938fi 1939 1940 1941# Define the identity of the package. 1942 PACKAGE=lineakd 1943 VERSION=0.9 1944 1945 1946cat >>confdefs.h <<_ACEOF 1947@%:@define PACKAGE "$PACKAGE" 1948_ACEOF 1949 1950 1951cat >>confdefs.h <<_ACEOF 1952@%:@define VERSION "$VERSION" 1953_ACEOF 1954 1955# Some tools Automake needs. 1956 1957ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1958 1959 1960AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1961 1962 1963AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1964 1965 1966AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1967 1968 1969MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1970 1971 1972AMTAR=${AMTAR-"${am_missing_run}tar"} 1973 1974install_sh=${install_sh-"$am_aux_dir/install-sh"} 1975 1976# Installed binaries are usually stripped using `strip' when the user 1977# run `make install-strip'. However `strip' might not be the right 1978# tool to use in cross-compilation environments, therefore Automake 1979# will honor the `STRIP' environment variable to overrule this program. 1980if test "$cross_compiling" != no; then 1981 if test -n "$ac_tool_prefix"; then 1982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1983set dummy ${ac_tool_prefix}strip; ac_word=$2 1984echo "$as_me:$LINENO: checking for $ac_word" >&5 1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1986if test "${ac_cv_prog_STRIP+set}" = set; then 1987 echo $ECHO_N "(cached) $ECHO_C" >&6 1988else 1989 if test -n "$STRIP"; then 1990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1991else 1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1993for as_dir in $PATH 1994do 1995 IFS=$as_save_IFS 1996 test -z "$as_dir" && as_dir=. 1997 for ac_exec_ext in '' $ac_executable_extensions; do 1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1999 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2001 break 2 2002 fi 2003done 2004done 2005 2006fi 2007fi 2008STRIP=$ac_cv_prog_STRIP 2009if test -n "$STRIP"; then 2010 echo "$as_me:$LINENO: result: $STRIP" >&5 2011echo "${ECHO_T}$STRIP" >&6 2012else 2013 echo "$as_me:$LINENO: result: no" >&5 2014echo "${ECHO_T}no" >&6 2015fi 2016 2017fi 2018if test -z "$ac_cv_prog_STRIP"; then 2019 ac_ct_STRIP=$STRIP 2020 # Extract the first word of "strip", so it can be a program name with args. 2021set dummy strip; ac_word=$2 2022echo "$as_me:$LINENO: checking for $ac_word" >&5 2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2024if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2025 echo $ECHO_N "(cached) $ECHO_C" >&6 2026else 2027 if test -n "$ac_ct_STRIP"; then 2028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2029else 2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2031for as_dir in $PATH 2032do 2033 IFS=$as_save_IFS 2034 test -z "$as_dir" && as_dir=. 2035 for ac_exec_ext in '' $ac_executable_extensions; do 2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2037 ac_cv_prog_ac_ct_STRIP="strip" 2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2039 break 2 2040 fi 2041done 2042done 2043 2044 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2045fi 2046fi 2047ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2048if test -n "$ac_ct_STRIP"; then 2049 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2050echo "${ECHO_T}$ac_ct_STRIP" >&6 2051else 2052 echo "$as_me:$LINENO: result: no" >&5 2053echo "${ECHO_T}no" >&6 2054fi 2055 2056 STRIP=$ac_ct_STRIP 2057else 2058 STRIP="$ac_cv_prog_STRIP" 2059fi 2060 2061fi 2062INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2063 2064# We need awk for the "check" target. The system "awk" is bad on 2065# some platforms. 2066 2067 2068 2069 2070unset CDPATH 2071 2072 2073if test "x$prefix" = "xNONE"; then 2074 prefix=$ac_default_prefix 2075 ac_configure_args="$ac_configure_args --prefix $prefix" 2076fi 2077 2078 ac_config_headers="$ac_config_headers config.h" 2079 2080 2081DEPDIR="${am__leading_dot}deps" 2082 2083 ac_config_commands="$ac_config_commands depfiles" 2084 2085 2086am_make=${MAKE-make} 2087cat > confinc << 'END' 2088am__doit: 2089 @echo done 2090.PHONY: am__doit 2091END 2092# If we don't find an include directive, just comment out the code. 2093echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2094echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2095am__include="#" 2096am__quote= 2097_am_result=none 2098# First try GNU make style include. 2099echo "include confinc" > confmf 2100# We grep out `Entering directory' and `Leaving directory' 2101# messages which can occur if `w' ends up in MAKEFLAGS. 2102# In particular we don't look at `^make:' because GNU make might 2103# be invoked under some other name (usually "gmake"), in which 2104# case it prints its new name instead of `make'. 2105if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2106 am__include=include 2107 am__quote= 2108 _am_result=GNU 2109fi 2110# Now try BSD make style include. 2111if test "$am__include" = "#"; then 2112 echo '.include "confinc"' > confmf 2113 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2114 am__include=.include 2115 am__quote="\"" 2116 _am_result=BSD 2117 fi 2118fi 2119 2120 2121echo "$as_me:$LINENO: result: $_am_result" >&5 2122echo "${ECHO_T}$_am_result" >&6 2123rm -f confinc confmf 2124 2125# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2126if test "${enable_dependency_tracking+set}" = set; then 2127 enableval="$enable_dependency_tracking" 2128 2129fi; 2130if test "x$enable_dependency_tracking" != xno; then 2131 am_depcomp="$ac_aux_dir/depcomp" 2132 AMDEPBACKSLASH='\' 2133fi 2134 2135 2136if test "x$enable_dependency_tracking" != xno; then 2137 AMDEP_TRUE= 2138 AMDEP_FALSE='#' 2139else 2140 AMDEP_TRUE='#' 2141 AMDEP_FALSE= 2142fi 2143 2144 2145 2146 2147 2148 2149 # Check whether --enable-debug or --disable-debug was given. 2150if test "${enable_debug+set}" = set; then 2151 enableval="$enable_debug" 2152 2153 case $enableval in 2154 yes) 2155 kde_use_debug_code="yes" 2156 kde_use_debug_define=no 2157 ;; 2158 full) 2159 kde_use_debug_code="full" 2160 kde_use_debug_define=no 2161 ;; 2162 *) 2163 kde_use_debug_code="no" 2164 kde_use_debug_define=yes 2165 ;; 2166 esac 2167 2168else 2169 kde_use_debug_code="no" 2170 kde_use_debug_define=no 2171 2172fi; 2173 2174 # Check whether --enable-dummyoption or --disable-dummyoption was given. 2175if test "${enable_dummyoption+set}" = set; then 2176 enableval="$enable_dummyoption" 2177 2178fi; 2179 2180 # Check whether --enable-strict or --disable-strict was given. 2181if test "${enable_strict+set}" = set; then 2182 enableval="$enable_strict" 2183 2184 if test $enableval = "no"; then 2185 kde_use_strict_options="no" 2186 else 2187 kde_use_strict_options="yes" 2188 fi 2189 2190else 2191 kde_use_strict_options="no" 2192fi; 2193 2194 # Check whether --enable-warnings or --disable-warnings was given. 2195if test "${enable_warnings+set}" = set; then 2196 enableval="$enable_warnings" 2197 2198 if test $enableval = "no"; then 2199 kde_use_warnings="no" 2200 else 2201 kde_use_warnings="yes" 2202 fi 2203 2204else 2205 kde_use_warnings="yes" 2206fi; 2207 2208 if test "$kde_use_debug_code" != "no"; then 2209 kde_use_warnings=yes 2210 fi 2211 2212 # Check whether --enable-profile or --disable-profile was given. 2213if test "${enable_profile+set}" = set; then 2214 enableval="$enable_profile" 2215 kde_use_profiling=$enableval 2216else 2217 kde_use_profiling="no" 2218 2219fi; 2220 2221 CFLAGS=" $CFLAGS" 2222 2223 ac_ext=c 2224ac_cpp='$CPP $CPPFLAGS' 2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2227ac_compiler_gnu=$ac_cv_c_compiler_gnu 2228if test -n "$ac_tool_prefix"; then 2229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2230set dummy ${ac_tool_prefix}gcc; ac_word=$2 2231echo "$as_me:$LINENO: checking for $ac_word" >&5 2232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2233if test "${ac_cv_prog_CC+set}" = set; then 2234 echo $ECHO_N "(cached) $ECHO_C" >&6 2235else 2236 if test -n "$CC"; then 2237 ac_cv_prog_CC="$CC" # Let the user override the test. 2238else 2239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2240for as_dir in $PATH 2241do 2242 IFS=$as_save_IFS 2243 test -z "$as_dir" && as_dir=. 2244 for ac_exec_ext in '' $ac_executable_extensions; do 2245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2246 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2248 break 2 2249 fi 2250done 2251done 2252 2253fi 2254fi 2255CC=$ac_cv_prog_CC 2256if test -n "$CC"; then 2257 echo "$as_me:$LINENO: result: $CC" >&5 2258echo "${ECHO_T}$CC" >&6 2259else 2260 echo "$as_me:$LINENO: result: no" >&5 2261echo "${ECHO_T}no" >&6 2262fi 2263 2264fi 2265if test -z "$ac_cv_prog_CC"; then 2266 ac_ct_CC=$CC 2267 # Extract the first word of "gcc", so it can be a program name with args. 2268set dummy gcc; ac_word=$2 2269echo "$as_me:$LINENO: checking for $ac_word" >&5 2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2272 echo $ECHO_N "(cached) $ECHO_C" >&6 2273else 2274 if test -n "$ac_ct_CC"; then 2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2276else 2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2278for as_dir in $PATH 2279do 2280 IFS=$as_save_IFS 2281 test -z "$as_dir" && as_dir=. 2282 for ac_exec_ext in '' $ac_executable_extensions; do 2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2284 ac_cv_prog_ac_ct_CC="gcc" 2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2286 break 2 2287 fi 2288done 2289done 2290 2291fi 2292fi 2293ac_ct_CC=$ac_cv_prog_ac_ct_CC 2294if test -n "$ac_ct_CC"; then 2295 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2296echo "${ECHO_T}$ac_ct_CC" >&6 2297else 2298 echo "$as_me:$LINENO: result: no" >&5 2299echo "${ECHO_T}no" >&6 2300fi 2301 2302 CC=$ac_ct_CC 2303else 2304 CC="$ac_cv_prog_CC" 2305fi 2306 2307if test -z "$CC"; then 2308 if test -n "$ac_tool_prefix"; then 2309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2310set dummy ${ac_tool_prefix}cc; ac_word=$2 2311echo "$as_me:$LINENO: checking for $ac_word" >&5 2312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2313if test "${ac_cv_prog_CC+set}" = set; then 2314 echo $ECHO_N "(cached) $ECHO_C" >&6 2315else 2316 if test -n "$CC"; then 2317 ac_cv_prog_CC="$CC" # Let the user override the test. 2318else 2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2320for as_dir in $PATH 2321do 2322 IFS=$as_save_IFS 2323 test -z "$as_dir" && as_dir=. 2324 for ac_exec_ext in '' $ac_executable_extensions; do 2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2326 ac_cv_prog_CC="${ac_tool_prefix}cc" 2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2328 break 2 2329 fi 2330done 2331done 2332 2333fi 2334fi 2335CC=$ac_cv_prog_CC 2336if test -n "$CC"; then 2337 echo "$as_me:$LINENO: result: $CC" >&5 2338echo "${ECHO_T}$CC" >&6 2339else 2340 echo "$as_me:$LINENO: result: no" >&5 2341echo "${ECHO_T}no" >&6 2342fi 2343 2344fi 2345if test -z "$ac_cv_prog_CC"; then 2346 ac_ct_CC=$CC 2347 # Extract the first word of "cc", so it can be a program name with args. 2348set dummy cc; ac_word=$2 2349echo "$as_me:$LINENO: checking for $ac_word" >&5 2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2351if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2352 echo $ECHO_N "(cached) $ECHO_C" >&6 2353else 2354 if test -n "$ac_ct_CC"; then 2355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2356else 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358for as_dir in $PATH 2359do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2364 ac_cv_prog_ac_ct_CC="cc" 2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2366 break 2 2367 fi 2368done 2369done 2370 2371fi 2372fi 2373ac_ct_CC=$ac_cv_prog_ac_ct_CC 2374if test -n "$ac_ct_CC"; then 2375 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2376echo "${ECHO_T}$ac_ct_CC" >&6 2377else 2378 echo "$as_me:$LINENO: result: no" >&5 2379echo "${ECHO_T}no" >&6 2380fi 2381 2382 CC=$ac_ct_CC 2383else 2384 CC="$ac_cv_prog_CC" 2385fi 2386 2387fi 2388if test -z "$CC"; then 2389 # Extract the first word of "cc", so it can be a program name with args. 2390set dummy cc; ac_word=$2 2391echo "$as_me:$LINENO: checking for $ac_word" >&5 2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2393if test "${ac_cv_prog_CC+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395else 2396 if test -n "$CC"; then 2397 ac_cv_prog_CC="$CC" # Let the user override the test. 2398else 2399 ac_prog_rejected=no 2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2401for as_dir in $PATH 2402do 2403 IFS=$as_save_IFS 2404 test -z "$as_dir" && as_dir=. 2405 for ac_exec_ext in '' $ac_executable_extensions; do 2406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2408 ac_prog_rejected=yes 2409 continue 2410 fi 2411 ac_cv_prog_CC="cc" 2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2413 break 2 2414 fi 2415done 2416done 2417 2418if test $ac_prog_rejected = yes; then 2419 # We found a bogon in the path, so make sure we never use it. 2420 set dummy $ac_cv_prog_CC 2421 shift 2422 if test $@%:@ != 0; then 2423 # We chose a different compiler from the bogus one. 2424 # However, it has the same basename, so the bogon will be chosen 2425 # first if we set CC to just the basename; use the full file name. 2426 shift 2427 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2428 fi 2429fi 2430fi 2431fi 2432CC=$ac_cv_prog_CC 2433if test -n "$CC"; then 2434 echo "$as_me:$LINENO: result: $CC" >&5 2435echo "${ECHO_T}$CC" >&6 2436else 2437 echo "$as_me:$LINENO: result: no" >&5 2438echo "${ECHO_T}no" >&6 2439fi 2440 2441fi 2442if test -z "$CC"; then 2443 if test -n "$ac_tool_prefix"; then 2444 for ac_prog in cl 2445 do 2446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2447set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2448echo "$as_me:$LINENO: checking for $ac_word" >&5 2449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2450if test "${ac_cv_prog_CC+set}" = set; then 2451 echo $ECHO_N "(cached) $ECHO_C" >&6 2452else 2453 if test -n "$CC"; then 2454 ac_cv_prog_CC="$CC" # Let the user override the test. 2455else 2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457for as_dir in $PATH 2458do 2459 IFS=$as_save_IFS 2460 test -z "$as_dir" && as_dir=. 2461 for ac_exec_ext in '' $ac_executable_extensions; do 2462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2465 break 2 2466 fi 2467done 2468done 2469 2470fi 2471fi 2472CC=$ac_cv_prog_CC 2473if test -n "$CC"; then 2474 echo "$as_me:$LINENO: result: $CC" >&5 2475echo "${ECHO_T}$CC" >&6 2476else 2477 echo "$as_me:$LINENO: result: no" >&5 2478echo "${ECHO_T}no" >&6 2479fi 2480 2481 test -n "$CC" && break 2482 done 2483fi 2484if test -z "$CC"; then 2485 ac_ct_CC=$CC 2486 for ac_prog in cl 2487do 2488 # Extract the first word of "$ac_prog", so it can be a program name with args. 2489set dummy $ac_prog; ac_word=$2 2490echo "$as_me:$LINENO: checking for $ac_word" >&5 2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2493 echo $ECHO_N "(cached) $ECHO_C" >&6 2494else 2495 if test -n "$ac_ct_CC"; then 2496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2497else 2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2499for as_dir in $PATH 2500do 2501 IFS=$as_save_IFS 2502 test -z "$as_dir" && as_dir=. 2503 for ac_exec_ext in '' $ac_executable_extensions; do 2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2505 ac_cv_prog_ac_ct_CC="$ac_prog" 2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2507 break 2 2508 fi 2509done 2510done 2511 2512fi 2513fi 2514ac_ct_CC=$ac_cv_prog_ac_ct_CC 2515if test -n "$ac_ct_CC"; then 2516 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2517echo "${ECHO_T}$ac_ct_CC" >&6 2518else 2519 echo "$as_me:$LINENO: result: no" >&5 2520echo "${ECHO_T}no" >&6 2521fi 2522 2523 test -n "$ac_ct_CC" && break 2524done 2525 2526 CC=$ac_ct_CC 2527fi 2528 2529fi 2530 2531 2532test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2533See \`config.log' for more details." >&5 2534echo "$as_me: error: no acceptable C compiler found in \$PATH 2535See \`config.log' for more details." >&2;} 2536 { (exit 1); exit 1; }; } 2537 2538# Provide some information about the compiler. 2539echo "$as_me:$LINENO:" \ 2540 "checking for C compiler version" >&5 2541ac_compiler=`set X $ac_compile; echo $2` 2542{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2543 (eval $ac_compiler --version </dev/null >&5) 2>&5 2544 ac_status=$? 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); } 2547{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2548 (eval $ac_compiler -v </dev/null >&5) 2>&5 2549 ac_status=$? 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2551 (exit $ac_status); } 2552{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2553 (eval $ac_compiler -V </dev/null >&5) 2>&5 2554 ac_status=$? 2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2556 (exit $ac_status); } 2557 2558cat >conftest.$ac_ext <<_ACEOF 2559/* confdefs.h. */ 2560_ACEOF 2561cat confdefs.h >>conftest.$ac_ext 2562cat >>conftest.$ac_ext <<_ACEOF 2563/* end confdefs.h. */ 2564 2565int 2566main () 2567{ 2568 2569 ; 2570 return 0; 2571} 2572_ACEOF 2573ac_clean_files_save=$ac_clean_files 2574ac_clean_files="$ac_clean_files a.out a.exe b.out" 2575# Try to create an executable without -o first, disregard a.out. 2576# It will help us diagnose broken compilers, and finding out an intuition 2577# of exeext. 2578echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2579echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2580ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2581if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2582 (eval $ac_link_default) 2>&5 2583 ac_status=$? 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2585 (exit $ac_status); }; then 2586 # Find the output, starting from the most likely. This scheme is 2587# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2588# resort. 2589 2590# Be careful to initialize this variable, since it used to be cached. 2591# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2592ac_cv_exeext= 2593# b.out is created by i960 compilers. 2594for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2595do 2596 test -f "$ac_file" || continue 2597 case $ac_file in 2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2599 ;; 2600 conftest.$ac_ext ) 2601 # This is the source file. 2602 ;; 2603 [ab].out ) 2604 # We found the default executable, but exeext='' is most 2605 # certainly right. 2606 break;; 2607 *.* ) 2608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2609 # FIXME: I believe we export ac_cv_exeext for Libtool, 2610 # but it would be cool to find out if it's true. Does anybody 2611 # maintain Libtool? --akim. 2612 export ac_cv_exeext 2613 break;; 2614 * ) 2615 break;; 2616 esac 2617done 2618else 2619 echo "$as_me: failed program was:" >&5 2620sed 's/^/| /' conftest.$ac_ext >&5 2621 2622{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2623See \`config.log' for more details." >&5 2624echo "$as_me: error: C compiler cannot create executables 2625See \`config.log' for more details." >&2;} 2626 { (exit 77); exit 77; }; } 2627fi 2628 2629ac_exeext=$ac_cv_exeext 2630echo "$as_me:$LINENO: result: $ac_file" >&5 2631echo "${ECHO_T}$ac_file" >&6 2632 2633# Check the compiler produces executables we can run. If not, either 2634# the compiler is broken, or we cross compile. 2635echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2636echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2637# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2638# If not cross compiling, check that we can run a simple program. 2639if test "$cross_compiling" != yes; then 2640 if { ac_try='./$ac_file' 2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2642 (eval $ac_try) 2>&5 2643 ac_status=$? 2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2645 (exit $ac_status); }; }; then 2646 cross_compiling=no 2647 else 2648 if test "$cross_compiling" = maybe; then 2649 cross_compiling=yes 2650 else 2651 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2652If you meant to cross compile, use \`--host'. 2653See \`config.log' for more details." >&5 2654echo "$as_me: error: cannot run C compiled programs. 2655If you meant to cross compile, use \`--host'. 2656See \`config.log' for more details." >&2;} 2657 { (exit 1); exit 1; }; } 2658 fi 2659 fi 2660fi 2661echo "$as_me:$LINENO: result: yes" >&5 2662echo "${ECHO_T}yes" >&6 2663 2664rm -f a.out a.exe conftest$ac_cv_exeext b.out 2665ac_clean_files=$ac_clean_files_save 2666# Check the compiler produces executables we can run. If not, either 2667# the compiler is broken, or we cross compile. 2668echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2669echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2670echo "$as_me:$LINENO: result: $cross_compiling" >&5 2671echo "${ECHO_T}$cross_compiling" >&6 2672 2673echo "$as_me:$LINENO: checking for suffix of executables" >&5 2674echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2676 (eval $ac_link) 2>&5 2677 ac_status=$? 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); }; then 2680 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2681# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2682# work properly (i.e., refer to `conftest.exe'), while it won't with 2683# `rm'. 2684for ac_file in conftest.exe conftest conftest.*; do 2685 test -f "$ac_file" || continue 2686 case $ac_file in 2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2688 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2689 export ac_cv_exeext 2690 break;; 2691 * ) break;; 2692 esac 2693done 2694else 2695 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2696See \`config.log' for more details." >&5 2697echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2698See \`config.log' for more details." >&2;} 2699 { (exit 1); exit 1; }; } 2700fi 2701 2702rm -f conftest$ac_cv_exeext 2703echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2704echo "${ECHO_T}$ac_cv_exeext" >&6 2705 2706rm -f conftest.$ac_ext 2707EXEEXT=$ac_cv_exeext 2708ac_exeext=$EXEEXT 2709echo "$as_me:$LINENO: checking for suffix of object files" >&5 2710echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2711if test "${ac_cv_objext+set}" = set; then 2712 echo $ECHO_N "(cached) $ECHO_C" >&6 2713else 2714 cat >conftest.$ac_ext <<_ACEOF 2715/* confdefs.h. */ 2716_ACEOF 2717cat confdefs.h >>conftest.$ac_ext 2718cat >>conftest.$ac_ext <<_ACEOF 2719/* end confdefs.h. */ 2720 2721int 2722main () 2723{ 2724 2725 ; 2726 return 0; 2727} 2728_ACEOF 2729rm -f conftest.o conftest.obj 2730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2731 (eval $ac_compile) 2>&5 2732 ac_status=$? 2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2734 (exit $ac_status); }; then 2735 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2736 case $ac_file in 2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2738 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2739 break;; 2740 esac 2741done 2742else 2743 echo "$as_me: failed program was:" >&5 2744sed 's/^/| /' conftest.$ac_ext >&5 2745 2746{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2747See \`config.log' for more details." >&5 2748echo "$as_me: error: cannot compute suffix of object files: cannot compile 2749See \`config.log' for more details." >&2;} 2750 { (exit 1); exit 1; }; } 2751fi 2752 2753rm -f conftest.$ac_cv_objext conftest.$ac_ext 2754fi 2755echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2756echo "${ECHO_T}$ac_cv_objext" >&6 2757OBJEXT=$ac_cv_objext 2758ac_objext=$OBJEXT 2759echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2760echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2761if test "${ac_cv_c_compiler_gnu+set}" = set; then 2762 echo $ECHO_N "(cached) $ECHO_C" >&6 2763else 2764 cat >conftest.$ac_ext <<_ACEOF 2765/* confdefs.h. */ 2766_ACEOF 2767cat confdefs.h >>conftest.$ac_ext 2768cat >>conftest.$ac_ext <<_ACEOF 2769/* end confdefs.h. */ 2770 2771int 2772main () 2773{ 2774#ifndef __GNUC__ 2775 choke me 2776#endif 2777 2778 ; 2779 return 0; 2780} 2781_ACEOF 2782rm -f conftest.$ac_objext 2783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2784 (eval $ac_compile) 2>conftest.er1 2785 ac_status=$? 2786 grep -v '^ *+' conftest.er1 >conftest.err 2787 rm -f conftest.er1 2788 cat conftest.err >&5 2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2790 (exit $ac_status); } && 2791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2793 (eval $ac_try) 2>&5 2794 ac_status=$? 2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2796 (exit $ac_status); }; } && 2797 { ac_try='test -s conftest.$ac_objext' 2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2799 (eval $ac_try) 2>&5 2800 ac_status=$? 2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2802 (exit $ac_status); }; }; then 2803 ac_compiler_gnu=yes 2804else 2805 echo "$as_me: failed program was:" >&5 2806sed 's/^/| /' conftest.$ac_ext >&5 2807 2808ac_compiler_gnu=no 2809fi 2810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2811ac_cv_c_compiler_gnu=$ac_compiler_gnu 2812 2813fi 2814echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2815echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2816GCC=`test $ac_compiler_gnu = yes && echo yes` 2817ac_test_CFLAGS=${CFLAGS+set} 2818ac_save_CFLAGS=$CFLAGS 2819CFLAGS="-g" 2820echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2821echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2822if test "${ac_cv_prog_cc_g+set}" = set; then 2823 echo $ECHO_N "(cached) $ECHO_C" >&6 2824else 2825 cat >conftest.$ac_ext <<_ACEOF 2826/* confdefs.h. */ 2827_ACEOF 2828cat confdefs.h >>conftest.$ac_ext 2829cat >>conftest.$ac_ext <<_ACEOF 2830/* end confdefs.h. */ 2831 2832int 2833main () 2834{ 2835 2836 ; 2837 return 0; 2838} 2839_ACEOF 2840rm -f conftest.$ac_objext 2841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2842 (eval $ac_compile) 2>conftest.er1 2843 ac_status=$? 2844 grep -v '^ *+' conftest.er1 >conftest.err 2845 rm -f conftest.er1 2846 cat conftest.err >&5 2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2848 (exit $ac_status); } && 2849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2851 (eval $ac_try) 2>&5 2852 ac_status=$? 2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); }; } && 2855 { ac_try='test -s conftest.$ac_objext' 2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2857 (eval $ac_try) 2>&5 2858 ac_status=$? 2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2860 (exit $ac_status); }; }; then 2861 ac_cv_prog_cc_g=yes 2862else 2863 echo "$as_me: failed program was:" >&5 2864sed 's/^/| /' conftest.$ac_ext >&5 2865 2866ac_cv_prog_cc_g=no 2867fi 2868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2869fi 2870echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2871echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2872if test "$ac_test_CFLAGS" = set; then 2873 CFLAGS=$ac_save_CFLAGS 2874elif test $ac_cv_prog_cc_g = yes; then 2875 if test "$GCC" = yes; then 2876 CFLAGS="-g -O2" 2877 else 2878 CFLAGS="-g" 2879 fi 2880else 2881 if test "$GCC" = yes; then 2882 CFLAGS="-O2" 2883 else 2884 CFLAGS= 2885 fi 2886fi 2887echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2888echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2889if test "${ac_cv_prog_cc_stdc+set}" = set; then 2890 echo $ECHO_N "(cached) $ECHO_C" >&6 2891else 2892 ac_cv_prog_cc_stdc=no 2893ac_save_CC=$CC 2894cat >conftest.$ac_ext <<_ACEOF 2895/* confdefs.h. */ 2896_ACEOF 2897cat confdefs.h >>conftest.$ac_ext 2898cat >>conftest.$ac_ext <<_ACEOF 2899/* end confdefs.h. */ 2900#include <stdarg.h> 2901#include <stdio.h> 2902#include <sys/types.h> 2903#include <sys/stat.h> 2904/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2905struct buf { int x; }; 2906FILE * (*rcsopen) (struct buf *, struct stat *, int); 2907static char *e (p, i) 2908 char **p; 2909 int i; 2910{ 2911 return p[i]; 2912} 2913static char *f (char * (*g) (char **, int), char **p, ...) 2914{ 2915 char *s; 2916 va_list v; 2917 va_start (v,p); 2918 s = g (p, va_arg (v,int)); 2919 va_end (v); 2920 return s; 2921} 2922 2923/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2924 function prototypes and stuff, but not '\xHH' hex character constants. 2925 These don't provoke an error unfortunately, instead are silently treated 2926 as 'x'. The following induces an error, until -std1 is added to get 2927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2928 array size at least. It's necessary to write '\x00'==0 to get something 2929 that's true only with -std1. */ 2930int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2931 2932int test (int i, double x); 2933struct s1 {int (*f) (int a);}; 2934struct s2 {int (*f) (double a);}; 2935int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2936int argc; 2937char **argv; 2938int 2939main () 2940{ 2941return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2942 ; 2943 return 0; 2944} 2945_ACEOF 2946# Don't try gcc -ansi; that turns off useful extensions and 2947# breaks some systems' header files. 2948# AIX -qlanglvl=ansi 2949# Ultrix and OSF/1 -std1 2950# HP-UX 10.20 and later -Ae 2951# HP-UX older versions -Aa -D_HPUX_SOURCE 2952# SVR4 -Xc -D__EXTENSIONS__ 2953for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2954do 2955 CC="$ac_save_CC $ac_arg" 2956 rm -f conftest.$ac_objext 2957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2958 (eval $ac_compile) 2>conftest.er1 2959 ac_status=$? 2960 grep -v '^ *+' conftest.er1 >conftest.err 2961 rm -f conftest.er1 2962 cat conftest.err >&5 2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2964 (exit $ac_status); } && 2965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2967 (eval $ac_try) 2>&5 2968 ac_status=$? 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); }; } && 2971 { ac_try='test -s conftest.$ac_objext' 2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2973 (eval $ac_try) 2>&5 2974 ac_status=$? 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); }; }; then 2977 ac_cv_prog_cc_stdc=$ac_arg 2978break 2979else 2980 echo "$as_me: failed program was:" >&5 2981sed 's/^/| /' conftest.$ac_ext >&5 2982 2983fi 2984rm -f conftest.err conftest.$ac_objext 2985done 2986rm -f conftest.$ac_ext conftest.$ac_objext 2987CC=$ac_save_CC 2988 2989fi 2990 2991case "x$ac_cv_prog_cc_stdc" in 2992 x|xno) 2993 echo "$as_me:$LINENO: result: none needed" >&5 2994echo "${ECHO_T}none needed" >&6 ;; 2995 *) 2996 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2997echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2998 CC="$CC $ac_cv_prog_cc_stdc" ;; 2999esac 3000 3001# Some people use a C++ compiler to compile C. Since we use `exit', 3002# in C++ we need to declare it. In case someone uses the same compiler 3003# for both compiling C and C++ we need to have the C++ compiler decide 3004# the declaration of exit, since it's the most demanding environment. 3005cat >conftest.$ac_ext <<_ACEOF 3006@%:@ifndef __cplusplus 3007 choke me 3008@%:@endif 3009_ACEOF 3010rm -f conftest.$ac_objext 3011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3012 (eval $ac_compile) 2>conftest.er1 3013 ac_status=$? 3014 grep -v '^ *+' conftest.er1 >conftest.err 3015 rm -f conftest.er1 3016 cat conftest.err >&5 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); } && 3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3021 (eval $ac_try) 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); }; } && 3025 { ac_try='test -s conftest.$ac_objext' 3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3027 (eval $ac_try) 2>&5 3028 ac_status=$? 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); }; }; then 3031 for ac_declaration in \ 3032 '' \ 3033 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3034 'extern "C" void std::exit (int); using std::exit;' \ 3035 'extern "C" void exit (int) throw ();' \ 3036 'extern "C" void exit (int);' \ 3037 'void exit (int);' 3038do 3039 cat >conftest.$ac_ext <<_ACEOF 3040/* confdefs.h. */ 3041_ACEOF 3042cat confdefs.h >>conftest.$ac_ext 3043cat >>conftest.$ac_ext <<_ACEOF 3044/* end confdefs.h. */ 3045$ac_declaration 3046@%:@include <stdlib.h> 3047int 3048main () 3049{ 3050exit (42); 3051 ; 3052 return 0; 3053} 3054_ACEOF 3055rm -f conftest.$ac_objext 3056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3057 (eval $ac_compile) 2>conftest.er1 3058 ac_status=$? 3059 grep -v '^ *+' conftest.er1 >conftest.err 3060 rm -f conftest.er1 3061 cat conftest.err >&5 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); } && 3064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3066 (eval $ac_try) 2>&5 3067 ac_status=$? 3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3069 (exit $ac_status); }; } && 3070 { ac_try='test -s conftest.$ac_objext' 3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3072 (eval $ac_try) 2>&5 3073 ac_status=$? 3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3075 (exit $ac_status); }; }; then 3076 : 3077else 3078 echo "$as_me: failed program was:" >&5 3079sed 's/^/| /' conftest.$ac_ext >&5 3080 3081continue 3082fi 3083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3084 cat >conftest.$ac_ext <<_ACEOF 3085/* confdefs.h. */ 3086_ACEOF 3087cat confdefs.h >>conftest.$ac_ext 3088cat >>conftest.$ac_ext <<_ACEOF 3089/* end confdefs.h. */ 3090$ac_declaration 3091int 3092main () 3093{ 3094exit (42); 3095 ; 3096 return 0; 3097} 3098_ACEOF 3099rm -f conftest.$ac_objext 3100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3101 (eval $ac_compile) 2>conftest.er1 3102 ac_status=$? 3103 grep -v '^ *+' conftest.er1 >conftest.err 3104 rm -f conftest.er1 3105 cat conftest.err >&5 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); } && 3108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3110 (eval $ac_try) 2>&5 3111 ac_status=$? 3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3113 (exit $ac_status); }; } && 3114 { ac_try='test -s conftest.$ac_objext' 3115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3116 (eval $ac_try) 2>&5 3117 ac_status=$? 3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3119 (exit $ac_status); }; }; then 3120 break 3121else 3122 echo "$as_me: failed program was:" >&5 3123sed 's/^/| /' conftest.$ac_ext >&5 3124 3125fi 3126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3127done 3128rm -f conftest* 3129if test -n "$ac_declaration"; then 3130 echo '#ifdef __cplusplus' >>confdefs.h 3131 echo $ac_declaration >>confdefs.h 3132 echo '#endif' >>confdefs.h 3133fi 3134 3135else 3136 echo "$as_me: failed program was:" >&5 3137sed 's/^/| /' conftest.$ac_ext >&5 3138 3139fi 3140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3141ac_ext=c 3142ac_cpp='$CPP $CPPFLAGS' 3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3145ac_compiler_gnu=$ac_cv_c_compiler_gnu 3146 3147depcc="$CC" am_compiler_list= 3148 3149echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3150echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3151if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3152 echo $ECHO_N "(cached) $ECHO_C" >&6 3153else 3154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3155 # We make a subdir and do the tests there. Otherwise we can end up 3156 # making bogus files that we don't know about and never remove. For 3157 # instance it was reported that on HP-UX the gcc test will end up 3158 # making a dummy file named `D' -- because `-MD' means `put the output 3159 # in D'. 3160 mkdir conftest.dir 3161 # Copy depcomp to subdir because otherwise we won't find it if we're 3162 # using a relative directory. 3163 cp "$am_depcomp" conftest.dir 3164 cd conftest.dir 3165 # We will build objects and dependencies in a subdirectory because 3166 # it helps to detect inapplicable dependency modes. For instance 3167 # both Tru64's cc and ICC support -MD to output dependencies as a 3168 # side effect of compilation, but ICC will put the dependencies in 3169 # the current directory while Tru64 will put them in the object 3170 # directory. 3171 mkdir sub 3172 3173 am_cv_CC_dependencies_compiler_type=none 3174 if test "$am_compiler_list" = ""; then 3175 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3176 fi 3177 for depmode in $am_compiler_list; do 3178 # Setup a source with many dependencies, because some compilers 3179 # like to wrap large dependency lists on column 80 (with \), and 3180 # we should not choose a depcomp mode which is confused by this. 3181 # 3182 # We need to recreate these files for each test, as the compiler may 3183 # overwrite some of them when testing with obscure command lines. 3184 # This happens at least with the AIX C compiler. 3185 : > sub/conftest.c 3186 for i in 1 2 3 4 5 6; do 3187 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3188 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3189 # Solaris 8's {/usr,}/bin/sh. 3190 touch sub/conftst$i.h 3191 done 3192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3193 3194 case $depmode in 3195 nosideeffect) 3196 # after this tag, mechanisms are not by side-effect, so they'll 3197 # only be used when explicitly requested 3198 if test "x$enable_dependency_tracking" = xyes; then 3199 continue 3200 else 3201 break 3202 fi 3203 ;; 3204 none) break ;; 3205 esac 3206 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3207 # mode. It turns out that the SunPro C++ compiler does not properly 3208 # handle `-M -o', and we need to detect this. 3209 if depmode=$depmode \ 3210 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3212 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3213 >/dev/null 2>conftest.err && 3214 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3215 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3216 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3217 # icc doesn't choke on unknown options, it will just issue warnings 3218 # or remarks (even with -Werror). So we grep stderr for any message 3219 # that says an option was ignored or not supported. 3220 # When given -MP, icc 7.0 and 7.1 complain thusly: 3221 # icc: Command line warning: ignoring option '-M'; no argument required 3222 # The diagnosis changed in icc 8.0: 3223 # icc: Command line remark: option '-MP' not supported 3224 if (grep 'ignoring option' conftest.err || 3225 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3226 am_cv_CC_dependencies_compiler_type=$depmode 3227 break 3228 fi 3229 fi 3230 done 3231 3232 cd .. 3233 rm -rf conftest.dir 3234else 3235 am_cv_CC_dependencies_compiler_type=none 3236fi 3237 3238fi 3239echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3240echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3241CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3242 3243 3244 3245if 3246 test "x$enable_dependency_tracking" != xno \ 3247 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3248 am__fastdepCC_TRUE= 3249 am__fastdepCC_FALSE='#' 3250else 3251 am__fastdepCC_TRUE='#' 3252 am__fastdepCC_FALSE= 3253fi 3254 3255 3256 3257 ac_ext=c 3258ac_cpp='$CPP $CPPFLAGS' 3259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3261ac_compiler_gnu=$ac_cv_c_compiler_gnu 3262echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3263echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3264# On Suns, sometimes $CPP names a directory. 3265if test -n "$CPP" && test -d "$CPP"; then 3266 CPP= 3267fi 3268if test -z "$CPP"; then 3269 if test "${ac_cv_prog_CPP+set}" = set; then 3270 echo $ECHO_N "(cached) $ECHO_C" >&6 3271else 3272 # Double quotes because CPP needs to be expanded 3273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3274 do 3275 ac_preproc_ok=false 3276for ac_c_preproc_warn_flag in '' yes 3277do 3278 # Use a header file that comes with gcc, so configuring glibc 3279 # with a fresh cross-compiler works. 3280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3281 # <limits.h> exists even on freestanding compilers. 3282 # On the NeXT, cc -E runs the code through the compiler's parser, 3283 # not just through cpp. "Syntax error" is here to catch this case. 3284 cat >conftest.$ac_ext <<_ACEOF 3285/* confdefs.h. */ 3286_ACEOF 3287cat confdefs.h >>conftest.$ac_ext 3288cat >>conftest.$ac_ext <<_ACEOF 3289/* end confdefs.h. */ 3290@%:@ifdef __STDC__ 3291@%:@ include <limits.h> 3292@%:@else 3293@%:@ include <assert.h> 3294@%:@endif 3295 Syntax error 3296_ACEOF 3297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3299 ac_status=$? 3300 grep -v '^ *+' conftest.er1 >conftest.err 3301 rm -f conftest.er1 3302 cat conftest.err >&5 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); } >/dev/null; then 3305 if test -s conftest.err; then 3306 ac_cpp_err=$ac_c_preproc_warn_flag 3307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3308 else 3309 ac_cpp_err= 3310 fi 3311else 3312 ac_cpp_err=yes 3313fi 3314if test -z "$ac_cpp_err"; then 3315 : 3316else 3317 echo "$as_me: failed program was:" >&5 3318sed 's/^/| /' conftest.$ac_ext >&5 3319 3320 # Broken: fails on valid input. 3321continue 3322fi 3323rm -f conftest.err conftest.$ac_ext 3324 3325 # OK, works on sane cases. Now check whether non-existent headers 3326 # can be detected and how. 3327 cat >conftest.$ac_ext <<_ACEOF 3328/* confdefs.h. */ 3329_ACEOF 3330cat confdefs.h >>conftest.$ac_ext 3331cat >>conftest.$ac_ext <<_ACEOF 3332/* end confdefs.h. */ 3333@%:@include <ac_nonexistent.h> 3334_ACEOF 3335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3337 ac_status=$? 3338 grep -v '^ *+' conftest.er1 >conftest.err 3339 rm -f conftest.er1 3340 cat conftest.err >&5 3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3342 (exit $ac_status); } >/dev/null; then 3343 if test -s conftest.err; then 3344 ac_cpp_err=$ac_c_preproc_warn_flag 3345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3346 else 3347 ac_cpp_err= 3348 fi 3349else 3350 ac_cpp_err=yes 3351fi 3352if test -z "$ac_cpp_err"; then 3353 # Broken: success on invalid input. 3354continue 3355else 3356 echo "$as_me: failed program was:" >&5 3357sed 's/^/| /' conftest.$ac_ext >&5 3358 3359 # Passes both tests. 3360ac_preproc_ok=: 3361break 3362fi 3363rm -f conftest.err conftest.$ac_ext 3364 3365done 3366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3367rm -f conftest.err conftest.$ac_ext 3368if $ac_preproc_ok; then 3369 break 3370fi 3371 3372 done 3373 ac_cv_prog_CPP=$CPP 3374 3375fi 3376 CPP=$ac_cv_prog_CPP 3377else 3378 ac_cv_prog_CPP=$CPP 3379fi 3380echo "$as_me:$LINENO: result: $CPP" >&5 3381echo "${ECHO_T}$CPP" >&6 3382ac_preproc_ok=false 3383for ac_c_preproc_warn_flag in '' yes 3384do 3385 # Use a header file that comes with gcc, so configuring glibc 3386 # with a fresh cross-compiler works. 3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3388 # <limits.h> exists even on freestanding compilers. 3389 # On the NeXT, cc -E runs the code through the compiler's parser, 3390 # not just through cpp. "Syntax error" is here to catch this case. 3391 cat >conftest.$ac_ext <<_ACEOF 3392/* confdefs.h. */ 3393_ACEOF 3394cat confdefs.h >>conftest.$ac_ext 3395cat >>conftest.$ac_ext <<_ACEOF 3396/* end confdefs.h. */ 3397@%:@ifdef __STDC__ 3398@%:@ include <limits.h> 3399@%:@else 3400@%:@ include <assert.h> 3401@%:@endif 3402 Syntax error 3403_ACEOF 3404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3406 ac_status=$? 3407 grep -v '^ *+' conftest.er1 >conftest.err 3408 rm -f conftest.er1 3409 cat conftest.err >&5 3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3411 (exit $ac_status); } >/dev/null; then 3412 if test -s conftest.err; then 3413 ac_cpp_err=$ac_c_preproc_warn_flag 3414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3415 else 3416 ac_cpp_err= 3417 fi 3418else 3419 ac_cpp_err=yes 3420fi 3421if test -z "$ac_cpp_err"; then 3422 : 3423else 3424 echo "$as_me: failed program was:" >&5 3425sed 's/^/| /' conftest.$ac_ext >&5 3426 3427 # Broken: fails on valid input. 3428continue 3429fi 3430rm -f conftest.err conftest.$ac_ext 3431 3432 # OK, works on sane cases. Now check whether non-existent headers 3433 # can be detected and how. 3434 cat >conftest.$ac_ext <<_ACEOF 3435/* confdefs.h. */ 3436_ACEOF 3437cat confdefs.h >>conftest.$ac_ext 3438cat >>conftest.$ac_ext <<_ACEOF 3439/* end confdefs.h. */ 3440@%:@include <ac_nonexistent.h> 3441_ACEOF 3442if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3444 ac_status=$? 3445 grep -v '^ *+' conftest.er1 >conftest.err 3446 rm -f conftest.er1 3447 cat conftest.err >&5 3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 (exit $ac_status); } >/dev/null; then 3450 if test -s conftest.err; then 3451 ac_cpp_err=$ac_c_preproc_warn_flag 3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3453 else 3454 ac_cpp_err= 3455 fi 3456else 3457 ac_cpp_err=yes 3458fi 3459if test -z "$ac_cpp_err"; then 3460 # Broken: success on invalid input. 3461continue 3462else 3463 echo "$as_me: failed program was:" >&5 3464sed 's/^/| /' conftest.$ac_ext >&5 3465 3466 # Passes both tests. 3467ac_preproc_ok=: 3468break 3469fi 3470rm -f conftest.err conftest.$ac_ext 3471 3472done 3473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3474rm -f conftest.err conftest.$ac_ext 3475if $ac_preproc_ok; then 3476 : 3477else 3478 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3479See \`config.log' for more details." >&5 3480echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3481See \`config.log' for more details." >&2;} 3482 { (exit 1); exit 1; }; } 3483fi 3484 3485ac_ext=c 3486ac_cpp='$CPP $CPPFLAGS' 3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3489ac_compiler_gnu=$ac_cv_c_compiler_gnu 3490 3491 3492 if test "$GCC" = "yes"; then 3493 if test "$kde_use_debug_code" != "no"; then 3494 if test $kde_use_debug_code = "full"; then 3495 CFLAGS="-g3 -fno-inline $CFLAGS" 3496 else 3497 CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS" 3498 fi 3499 else 3500 CFLAGS="-O2 $CFLAGS" 3501 fi 3502 fi 3503 3504 if test "$kde_use_debug_define" = "yes"; then 3505 CFLAGS="-DNDEBUG $CFLAGS" 3506 fi 3507 3508 3509 case "$host" in 3510 *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";; 3511 *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";; 3512 esac 3513 3514 if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then 3515 LDFLAGS="" 3516 fi 3517 3518 CXXFLAGS=" $CXXFLAGS" 3519 3520 ac_ext=cc 3521ac_cpp='$CXXCPP $CPPFLAGS' 3522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3525if test -n "$ac_tool_prefix"; then 3526 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3527 do 3528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3529set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3530echo "$as_me:$LINENO: checking for $ac_word" >&5 3531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3532if test "${ac_cv_prog_CXX+set}" = set; then 3533 echo $ECHO_N "(cached) $ECHO_C" >&6 3534else 3535 if test -n "$CXX"; then 3536 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3537else 3538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3539for as_dir in $PATH 3540do 3541 IFS=$as_save_IFS 3542 test -z "$as_dir" && as_dir=. 3543 for ac_exec_ext in '' $ac_executable_extensions; do 3544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3545 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3547 break 2 3548 fi 3549done 3550done 3551 3552fi 3553fi 3554CXX=$ac_cv_prog_CXX 3555if test -n "$CXX"; then 3556 echo "$as_me:$LINENO: result: $CXX" >&5 3557echo "${ECHO_T}$CXX" >&6 3558else 3559 echo "$as_me:$LINENO: result: no" >&5 3560echo "${ECHO_T}no" >&6 3561fi 3562 3563 test -n "$CXX" && break 3564 done 3565fi 3566if test -z "$CXX"; then 3567 ac_ct_CXX=$CXX 3568 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3569do 3570 # Extract the first word of "$ac_prog", so it can be a program name with args. 3571set dummy $ac_prog; ac_word=$2 3572echo "$as_me:$LINENO: checking for $ac_word" >&5 3573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3574if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3575 echo $ECHO_N "(cached) $ECHO_C" >&6 3576else 3577 if test -n "$ac_ct_CXX"; then 3578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3579else 3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3581for as_dir in $PATH 3582do 3583 IFS=$as_save_IFS 3584 test -z "$as_dir" && as_dir=. 3585 for ac_exec_ext in '' $ac_executable_extensions; do 3586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3587 ac_cv_prog_ac_ct_CXX="$ac_prog" 3588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3589 break 2 3590 fi 3591done 3592done 3593 3594fi 3595fi 3596ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3597if test -n "$ac_ct_CXX"; then 3598 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3599echo "${ECHO_T}$ac_ct_CXX" >&6 3600else 3601 echo "$as_me:$LINENO: result: no" >&5 3602echo "${ECHO_T}no" >&6 3603fi 3604 3605 test -n "$ac_ct_CXX" && break 3606done 3607test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 3608 3609 CXX=$ac_ct_CXX 3610fi 3611 3612 3613# Provide some information about the compiler. 3614echo "$as_me:$LINENO:" \ 3615 "checking for C++ compiler version" >&5 3616ac_compiler=`set X $ac_compile; echo $2` 3617{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3618 (eval $ac_compiler --version </dev/null >&5) 2>&5 3619 ac_status=$? 3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 (exit $ac_status); } 3622{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3623 (eval $ac_compiler -v </dev/null >&5) 2>&5 3624 ac_status=$? 3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3626 (exit $ac_status); } 3627{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 3628 (eval $ac_compiler -V </dev/null >&5) 2>&5 3629 ac_status=$? 3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3631 (exit $ac_status); } 3632 3633echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3634echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3635if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3636 echo $ECHO_N "(cached) $ECHO_C" >&6 3637else 3638 cat >conftest.$ac_ext <<_ACEOF 3639/* confdefs.h. */ 3640_ACEOF 3641cat confdefs.h >>conftest.$ac_ext 3642cat >>conftest.$ac_ext <<_ACEOF 3643/* end confdefs.h. */ 3644 3645int 3646main () 3647{ 3648#ifndef __GNUC__ 3649 choke me 3650#endif 3651 3652 ; 3653 return 0; 3654} 3655_ACEOF 3656rm -f conftest.$ac_objext 3657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3658 (eval $ac_compile) 2>conftest.er1 3659 ac_status=$? 3660 grep -v '^ *+' conftest.er1 >conftest.err 3661 rm -f conftest.er1 3662 cat conftest.err >&5 3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3664 (exit $ac_status); } && 3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3667 (eval $ac_try) 2>&5 3668 ac_status=$? 3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3670 (exit $ac_status); }; } && 3671 { ac_try='test -s conftest.$ac_objext' 3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3673 (eval $ac_try) 2>&5 3674 ac_status=$? 3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3676 (exit $ac_status); }; }; then 3677 ac_compiler_gnu=yes 3678else 3679 echo "$as_me: failed program was:" >&5 3680sed 's/^/| /' conftest.$ac_ext >&5 3681 3682ac_compiler_gnu=no 3683fi 3684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3685ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3686 3687fi 3688echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3689echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3690GXX=`test $ac_compiler_gnu = yes && echo yes` 3691ac_test_CXXFLAGS=${CXXFLAGS+set} 3692ac_save_CXXFLAGS=$CXXFLAGS 3693CXXFLAGS="-g" 3694echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3695echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 3696if test "${ac_cv_prog_cxx_g+set}" = set; then 3697 echo $ECHO_N "(cached) $ECHO_C" >&6 3698else 3699 cat >conftest.$ac_ext <<_ACEOF 3700/* confdefs.h. */ 3701_ACEOF 3702cat confdefs.h >>conftest.$ac_ext 3703cat >>conftest.$ac_ext <<_ACEOF 3704/* end confdefs.h. */ 3705 3706int 3707main () 3708{ 3709 3710 ; 3711 return 0; 3712} 3713_ACEOF 3714rm -f conftest.$ac_objext 3715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3716 (eval $ac_compile) 2>conftest.er1 3717 ac_status=$? 3718 grep -v '^ *+' conftest.er1 >conftest.err 3719 rm -f conftest.er1 3720 cat conftest.err >&5 3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3722 (exit $ac_status); } && 3723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3725 (eval $ac_try) 2>&5 3726 ac_status=$? 3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3728 (exit $ac_status); }; } && 3729 { ac_try='test -s conftest.$ac_objext' 3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3731 (eval $ac_try) 2>&5 3732 ac_status=$? 3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3734 (exit $ac_status); }; }; then 3735 ac_cv_prog_cxx_g=yes 3736else 3737 echo "$as_me: failed program was:" >&5 3738sed 's/^/| /' conftest.$ac_ext >&5 3739 3740ac_cv_prog_cxx_g=no 3741fi 3742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3743fi 3744echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3745echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3746if test "$ac_test_CXXFLAGS" = set; then 3747 CXXFLAGS=$ac_save_CXXFLAGS 3748elif test $ac_cv_prog_cxx_g = yes; then 3749 if test "$GXX" = yes; then 3750 CXXFLAGS="-g -O2" 3751 else 3752 CXXFLAGS="-g" 3753 fi 3754else 3755 if test "$GXX" = yes; then 3756 CXXFLAGS="-O2" 3757 else 3758 CXXFLAGS= 3759 fi 3760fi 3761for ac_declaration in \ 3762 '' \ 3763 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3764 'extern "C" void std::exit (int); using std::exit;' \ 3765 'extern "C" void exit (int) throw ();' \ 3766 'extern "C" void exit (int);' \ 3767 'void exit (int);' 3768do 3769 cat >conftest.$ac_ext <<_ACEOF 3770/* confdefs.h. */ 3771_ACEOF 3772cat confdefs.h >>conftest.$ac_ext 3773cat >>conftest.$ac_ext <<_ACEOF 3774/* end confdefs.h. */ 3775$ac_declaration 3776@%:@include <stdlib.h> 3777int 3778main () 3779{ 3780exit (42); 3781 ; 3782 return 0; 3783} 3784_ACEOF 3785rm -f conftest.$ac_objext 3786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3787 (eval $ac_compile) 2>conftest.er1 3788 ac_status=$? 3789 grep -v '^ *+' conftest.er1 >conftest.err 3790 rm -f conftest.er1 3791 cat conftest.err >&5 3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3793 (exit $ac_status); } && 3794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3796 (eval $ac_try) 2>&5 3797 ac_status=$? 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3799 (exit $ac_status); }; } && 3800 { ac_try='test -s conftest.$ac_objext' 3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3802 (eval $ac_try) 2>&5 3803 ac_status=$? 3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3805 (exit $ac_status); }; }; then 3806 : 3807else 3808 echo "$as_me: failed program was:" >&5 3809sed 's/^/| /' conftest.$ac_ext >&5 3810 3811continue 3812fi 3813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3814 cat >conftest.$ac_ext <<_ACEOF 3815/* confdefs.h. */ 3816_ACEOF 3817cat confdefs.h >>conftest.$ac_ext 3818cat >>conftest.$ac_ext <<_ACEOF 3819/* end confdefs.h. */ 3820$ac_declaration 3821int 3822main () 3823{ 3824exit (42); 3825 ; 3826 return 0; 3827} 3828_ACEOF 3829rm -f conftest.$ac_objext 3830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3831 (eval $ac_compile) 2>conftest.er1 3832 ac_status=$? 3833 grep -v '^ *+' conftest.er1 >conftest.err 3834 rm -f conftest.er1 3835 cat conftest.err >&5 3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 (exit $ac_status); } && 3838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3840 (eval $ac_try) 2>&5 3841 ac_status=$? 3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3843 (exit $ac_status); }; } && 3844 { ac_try='test -s conftest.$ac_objext' 3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3846 (eval $ac_try) 2>&5 3847 ac_status=$? 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3849 (exit $ac_status); }; }; then 3850 break 3851else 3852 echo "$as_me: failed program was:" >&5 3853sed 's/^/| /' conftest.$ac_ext >&5 3854 3855fi 3856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3857done 3858rm -f conftest* 3859if test -n "$ac_declaration"; then 3860 echo '#ifdef __cplusplus' >>confdefs.h 3861 echo $ac_declaration >>confdefs.h 3862 echo '#endif' >>confdefs.h 3863fi 3864 3865ac_ext=c 3866ac_cpp='$CPP $CPPFLAGS' 3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3869ac_compiler_gnu=$ac_cv_c_compiler_gnu 3870 3871depcc="$CXX" am_compiler_list= 3872 3873echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3874echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3875if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3876 echo $ECHO_N "(cached) $ECHO_C" >&6 3877else 3878 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3879 # We make a subdir and do the tests there. Otherwise we can end up 3880 # making bogus files that we don't know about and never remove. For 3881 # instance it was reported that on HP-UX the gcc test will end up 3882 # making a dummy file named `D' -- because `-MD' means `put the output 3883 # in D'. 3884 mkdir conftest.dir 3885 # Copy depcomp to subdir because otherwise we won't find it if we're 3886 # using a relative directory. 3887 cp "$am_depcomp" conftest.dir 3888 cd conftest.dir 3889 # We will build objects and dependencies in a subdirectory because 3890 # it helps to detect inapplicable dependency modes. For instance 3891 # both Tru64's cc and ICC support -MD to output dependencies as a 3892 # side effect of compilation, but ICC will put the dependencies in 3893 # the current directory while Tru64 will put them in the object 3894 # directory. 3895 mkdir sub 3896 3897 am_cv_CXX_dependencies_compiler_type=none 3898 if test "$am_compiler_list" = ""; then 3899 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3900 fi 3901 for depmode in $am_compiler_list; do 3902 # Setup a source with many dependencies, because some compilers 3903 # like to wrap large dependency lists on column 80 (with \), and 3904 # we should not choose a depcomp mode which is confused by this. 3905 # 3906 # We need to recreate these files for each test, as the compiler may 3907 # overwrite some of them when testing with obscure command lines. 3908 # This happens at least with the AIX C compiler. 3909 : > sub/conftest.c 3910 for i in 1 2 3 4 5 6; do 3911 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3912 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3913 # Solaris 8's {/usr,}/bin/sh. 3914 touch sub/conftst$i.h 3915 done 3916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3917 3918 case $depmode in 3919 nosideeffect) 3920 # after this tag, mechanisms are not by side-effect, so they'll 3921 # only be used when explicitly requested 3922 if test "x$enable_dependency_tracking" = xyes; then 3923 continue 3924 else 3925 break 3926 fi 3927 ;; 3928 none) break ;; 3929 esac 3930 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3931 # mode. It turns out that the SunPro C++ compiler does not properly 3932 # handle `-M -o', and we need to detect this. 3933 if depmode=$depmode \ 3934 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3935 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3936 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3937 >/dev/null 2>conftest.err && 3938 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3939 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3940 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3941 # icc doesn't choke on unknown options, it will just issue warnings 3942 # or remarks (even with -Werror). So we grep stderr for any message 3943 # that says an option was ignored or not supported. 3944 # When given -MP, icc 7.0 and 7.1 complain thusly: 3945 # icc: Command line warning: ignoring option '-M'; no argument required 3946 # The diagnosis changed in icc 8.0: 3947 # icc: Command line remark: option '-MP' not supported 3948 if (grep 'ignoring option' conftest.err || 3949 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3950 am_cv_CXX_dependencies_compiler_type=$depmode 3951 break 3952 fi 3953 fi 3954 done 3955 3956 cd .. 3957 rm -rf conftest.dir 3958else 3959 am_cv_CXX_dependencies_compiler_type=none 3960fi 3961 3962fi 3963echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3964echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 3965CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3966 3967 3968 3969if 3970 test "x$enable_dependency_tracking" != xno \ 3971 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3972 am__fastdepCXX_TRUE= 3973 am__fastdepCXX_FALSE='#' 3974else 3975 am__fastdepCXX_TRUE='#' 3976 am__fastdepCXX_FALSE= 3977fi 3978 3979 3980 3981 3982 echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5 3983echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6 3984 3985 3986 cat >conftest.$ac_ext <<_ACEOF 3987/* confdefs.h. */ 3988_ACEOF 3989cat confdefs.h >>conftest.$ac_ext 3990cat >>conftest.$ac_ext <<_ACEOF 3991/* end confdefs.h. */ 3992 3993#ifdef __GNUC__ 3994#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0 3995choke me 3996#endif 3997#endif 3998 3999int 4000main () 4001{ 4002 4003 ; 4004 return 0; 4005} 4006_ACEOF 4007rm -f conftest.$ac_objext 4008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4009 (eval $ac_compile) 2>conftest.er1 4010 ac_status=$? 4011 grep -v '^ *+' conftest.er1 >conftest.err 4012 rm -f conftest.er1 4013 cat conftest.err >&5 4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4015 (exit $ac_status); } && 4016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4018 (eval $ac_try) 2>&5 4019 ac_status=$? 4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4021 (exit $ac_status); }; } && 4022 { ac_try='test -s conftest.$ac_objext' 4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4024 (eval $ac_try) 2>&5 4025 ac_status=$? 4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4027 (exit $ac_status); }; }; then 4028 kde_bad_compiler=no 4029else 4030 echo "$as_me: failed program was:" >&5 4031sed 's/^/| /' conftest.$ac_ext >&5 4032 4033kde_bad_compiler=yes 4034 4035fi 4036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4037 4038 echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5 4039echo "${ECHO_T}$kde_bad_compiler" >&6 4040 4041if test "$kde_bad_compiler" = "yes"; then 4042 { { echo "$as_me:$LINENO: error: 4043 4044This particular compiler version is blacklisted because it 4045is known to miscompile KDE. Please use a newer version, or 4046if that is not yet available, choose an older version. 4047 4048Please do not report a bug or bother us reporting this 4049configure error. We know about it, and we introduced 4050it by intention to avoid untraceable bugs or crashes in KDE. 4051 4052" >&5 4053echo "$as_me: error: 4054 4055This particular compiler version is blacklisted because it 4056is known to miscompile KDE. Please use a newer version, or 4057if that is not yet available, choose an older version. 4058 4059Please do not report a bug or bother us reporting this 4060configure error. We know about it, and we introduced 4061it by intention to avoid untraceable bugs or crashes in KDE. 4062 4063" >&2;} 4064 { (exit 1); exit 1; }; } 4065fi 4066 4067 4068 4069 if test "$GXX" = "yes" || test "$CXX" = "KCC"; then 4070 if test "$kde_use_debug_code" != "no"; then 4071 if test "$CXX" = "KCC"; then 4072 CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS" 4073 else 4074 if test "$kde_use_debug_code" = "full"; then 4075 CXXFLAGS="-g3 -fno-inline $CXXFLAGS" 4076 else 4077 CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS" 4078 fi 4079 fi 4080 4081echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5 4082echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6 4083kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'` 4084if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4085 echo $ECHO_N "(cached) $ECHO_C" >&6 4086else 4087 4088 4089 4090 4091ac_ext=cc 4092ac_cpp='$CXXCPP $CPPFLAGS' 4093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4096 4097ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4098 4099 4100 4101 save_CXXFLAGS="$CXXFLAGS" 4102 CXXFLAGS="$CXXFLAGS -fno-builtin" 4103 cat >conftest.$ac_ext <<_ACEOF 4104/* confdefs.h. */ 4105_ACEOF 4106cat confdefs.h >>conftest.$ac_ext 4107cat >>conftest.$ac_ext <<_ACEOF 4108/* end confdefs.h. */ 4109 4110int 4111main () 4112{ 4113 return 0; 4114 ; 4115 return 0; 4116} 4117_ACEOF 4118rm -f conftest.$ac_objext conftest$ac_exeext 4119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4120 (eval $ac_link) 2>conftest.er1 4121 ac_status=$? 4122 grep -v '^ *+' conftest.er1 >conftest.err 4123 rm -f conftest.er1 4124 cat conftest.err >&5 4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4126 (exit $ac_status); } && 4127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4129 (eval $ac_try) 2>&5 4130 ac_status=$? 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); }; } && 4133 { ac_try='test -s conftest$ac_exeext' 4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4135 (eval $ac_try) 2>&5 4136 ac_status=$? 4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4138 (exit $ac_status); }; }; then 4139 eval "kde_cv_prog_cxx_$kde_cache=yes" 4140else 4141 echo "$as_me: failed program was:" >&5 4142sed 's/^/| /' conftest.$ac_ext >&5 4143 4144fi 4145rm -f conftest.err conftest.$ac_objext \ 4146 conftest$ac_exeext conftest.$ac_ext 4147 CXXFLAGS="$save_CXXFLAGS" 4148 ac_ext=c 4149ac_cpp='$CPP $CPPFLAGS' 4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4152ac_compiler_gnu=$ac_cv_c_compiler_gnu 4153 4154 4155fi 4156 4157if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4158 echo "$as_me:$LINENO: result: yes" >&5 4159echo "${ECHO_T}yes" >&6 4160 : 4161 CXXFLAGS="-fno-builtin $CXXFLAGS" 4162else 4163 echo "$as_me:$LINENO: result: no" >&5 4164echo "${ECHO_T}no" >&6 4165 : 4166 4167fi 4168 4169 4170 4171echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5 4172echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6 4173kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'` 4174if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4175 echo $ECHO_N "(cached) $ECHO_C" >&6 4176else 4177 4178 4179 4180 ac_ext=cc 4181ac_cpp='$CXXCPP $CPPFLAGS' 4182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4185 4186ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4187 4188 4189 save_CXXFLAGS="$CXXFLAGS" 4190 CXXFLAGS="$CXXFLAGS -Woverloaded-virtual" 4191 cat >conftest.$ac_ext <<_ACEOF 4192/* confdefs.h. */ 4193_ACEOF 4194cat confdefs.h >>conftest.$ac_ext 4195cat >>conftest.$ac_ext <<_ACEOF 4196/* end confdefs.h. */ 4197 4198int 4199main () 4200{ 4201 return 0; 4202 ; 4203 return 0; 4204} 4205_ACEOF 4206rm -f conftest.$ac_objext conftest$ac_exeext 4207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4208 (eval $ac_link) 2>conftest.er1 4209 ac_status=$? 4210 grep -v '^ *+' conftest.er1 >conftest.err 4211 rm -f conftest.er1 4212 cat conftest.err >&5 4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4214 (exit $ac_status); } && 4215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4217 (eval $ac_try) 2>&5 4218 ac_status=$? 4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4220 (exit $ac_status); }; } && 4221 { ac_try='test -s conftest$ac_exeext' 4222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4223 (eval $ac_try) 2>&5 4224 ac_status=$? 4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4226 (exit $ac_status); }; }; then 4227 eval "kde_cv_prog_cxx_$kde_cache=yes" 4228else 4229 echo "$as_me: failed program was:" >&5 4230sed 's/^/| /' conftest.$ac_ext >&5 4231 4232fi 4233rm -f conftest.err conftest.$ac_objext \ 4234 conftest$ac_exeext conftest.$ac_ext 4235 CXXFLAGS="$save_CXXFLAGS" 4236 ac_ext=c 4237ac_cpp='$CPP $CPPFLAGS' 4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4240ac_compiler_gnu=$ac_cv_c_compiler_gnu 4241 4242 4243fi 4244 4245if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4246 echo "$as_me:$LINENO: result: yes" >&5 4247echo "${ECHO_T}yes" >&6 4248 : 4249 WOVERLOADED_VIRTUAL="-Woverloaded-virtual" 4250else 4251 echo "$as_me:$LINENO: result: no" >&5 4252echo "${ECHO_T}no" >&6 4253 : 4254 WOVERLOADED_VRITUAL="" 4255fi 4256 4257 4258 else 4259 if test "$CXX" = "KCC"; then 4260 CXXFLAGS="+K3 $CXXFLAGS" 4261 else 4262 CXXFLAGS="-O2 $CXXFLAGS" 4263 fi 4264 fi 4265 fi 4266 4267 if test "$kde_use_debug_define" = "yes"; then 4268 CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS" 4269 fi 4270 4271 if test "$kde_use_profiling" = "yes"; then 4272 4273echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5 4274echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6 4275kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'` 4276if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4277 echo $ECHO_N "(cached) $ECHO_C" >&6 4278else 4279 4280 4281 4282 ac_ext=cc 4283ac_cpp='$CXXCPP $CPPFLAGS' 4284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4287 4288ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4289 4290 4291 save_CXXFLAGS="$CXXFLAGS" 4292 CXXFLAGS="$CXXFLAGS -pg" 4293 cat >conftest.$ac_ext <<_ACEOF 4294/* confdefs.h. */ 4295_ACEOF 4296cat confdefs.h >>conftest.$ac_ext 4297cat >>conftest.$ac_ext <<_ACEOF 4298/* end confdefs.h. */ 4299 4300int 4301main () 4302{ 4303 return 0; 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308rm -f conftest.$ac_objext conftest$ac_exeext 4309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4310 (eval $ac_link) 2>conftest.er1 4311 ac_status=$? 4312 grep -v '^ *+' conftest.er1 >conftest.err 4313 rm -f conftest.er1 4314 cat conftest.err >&5 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); } && 4317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4319 (eval $ac_try) 2>&5 4320 ac_status=$? 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); }; } && 4323 { ac_try='test -s conftest$ac_exeext' 4324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4325 (eval $ac_try) 2>&5 4326 ac_status=$? 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4328 (exit $ac_status); }; }; then 4329 eval "kde_cv_prog_cxx_$kde_cache=yes" 4330else 4331 echo "$as_me: failed program was:" >&5 4332sed 's/^/| /' conftest.$ac_ext >&5 4333 4334fi 4335rm -f conftest.err conftest.$ac_objext \ 4336 conftest$ac_exeext conftest.$ac_ext 4337 CXXFLAGS="$save_CXXFLAGS" 4338 ac_ext=c 4339ac_cpp='$CPP $CPPFLAGS' 4340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4342ac_compiler_gnu=$ac_cv_c_compiler_gnu 4343 4344 4345fi 4346 4347if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4348 echo "$as_me:$LINENO: result: yes" >&5 4349echo "${ECHO_T}yes" >&6 4350 : 4351 4352 CFLAGS="-pg $CFLAGS" 4353 CXXFLAGS="-pg $CXXFLAGS" 4354 4355else 4356 echo "$as_me:$LINENO: result: no" >&5 4357echo "${ECHO_T}no" >&6 4358 : 4359 4360fi 4361 4362 fi 4363 4364 if test "$kde_use_warnings" = "yes"; then 4365 if test "$GCC" = "yes"; then 4366 CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS" 4367 case $host in 4368 *-*-linux-gnu) 4369 CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" 4370 CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS" 4371 4372echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5 4373echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6 4374kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'` 4375if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4376 echo $ECHO_N "(cached) $ECHO_C" >&6 4377else 4378 4379 4380 4381 ac_ext=cc 4382ac_cpp='$CXXCPP $CPPFLAGS' 4383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4386 4387ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4388 4389 4390 save_CXXFLAGS="$CXXFLAGS" 4391 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute" 4392 cat >conftest.$ac_ext <<_ACEOF 4393/* confdefs.h. */ 4394_ACEOF 4395cat confdefs.h >>conftest.$ac_ext 4396cat >>conftest.$ac_ext <<_ACEOF 4397/* end confdefs.h. */ 4398 4399int 4400main () 4401{ 4402 return 0; 4403 ; 4404 return 0; 4405} 4406_ACEOF 4407rm -f conftest.$ac_objext conftest$ac_exeext 4408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4409 (eval $ac_link) 2>conftest.er1 4410 ac_status=$? 4411 grep -v '^ *+' conftest.er1 >conftest.err 4412 rm -f conftest.er1 4413 cat conftest.err >&5 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4415 (exit $ac_status); } && 4416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4418 (eval $ac_try) 2>&5 4419 ac_status=$? 4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4421 (exit $ac_status); }; } && 4422 { ac_try='test -s conftest$ac_exeext' 4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4424 (eval $ac_try) 2>&5 4425 ac_status=$? 4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4427 (exit $ac_status); }; }; then 4428 eval "kde_cv_prog_cxx_$kde_cache=yes" 4429else 4430 echo "$as_me: failed program was:" >&5 4431sed 's/^/| /' conftest.$ac_ext >&5 4432 4433fi 4434rm -f conftest.err conftest.$ac_objext \ 4435 conftest$ac_exeext conftest.$ac_ext 4436 CXXFLAGS="$save_CXXFLAGS" 4437 ac_ext=c 4438ac_cpp='$CPP $CPPFLAGS' 4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4441ac_compiler_gnu=$ac_cv_c_compiler_gnu 4442 4443 4444fi 4445 4446if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4447 echo "$as_me:$LINENO: result: yes" >&5 4448echo "${ECHO_T}yes" >&6 4449 : 4450 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute" 4451else 4452 echo "$as_me:$LINENO: result: no" >&5 4453echo "${ECHO_T}no" >&6 4454 : 4455 4456fi 4457 4458 4459echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5 4460echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6 4461kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'` 4462if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then 4463 echo $ECHO_N "(cached) $ECHO_C" >&6 4464else 4465 4466 4467 4468 ac_ext=c 4469ac_cpp='$CPP $CPPFLAGS' 4470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4472ac_compiler_gnu=$ac_cv_c_compiler_gnu 4473 4474 save_CFLAGS="$CFLAGS" 4475 CFLAGS="$CFLAGS -Wmissing-format-attribute" 4476 cat >conftest.$ac_ext <<_ACEOF 4477/* confdefs.h. */ 4478_ACEOF 4479cat confdefs.h >>conftest.$ac_ext 4480cat >>conftest.$ac_ext <<_ACEOF 4481/* end confdefs.h. */ 4482 4483int 4484main () 4485{ 4486 return 0; 4487 ; 4488 return 0; 4489} 4490_ACEOF 4491rm -f conftest.$ac_objext conftest$ac_exeext 4492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4493 (eval $ac_link) 2>conftest.er1 4494 ac_status=$? 4495 grep -v '^ *+' conftest.er1 >conftest.err 4496 rm -f conftest.er1 4497 cat conftest.err >&5 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4499 (exit $ac_status); } && 4500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4502 (eval $ac_try) 2>&5 4503 ac_status=$? 4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4505 (exit $ac_status); }; } && 4506 { ac_try='test -s conftest$ac_exeext' 4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4508 (eval $ac_try) 2>&5 4509 ac_status=$? 4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4511 (exit $ac_status); }; }; then 4512 eval "kde_cv_prog_cc_$kde_cache=yes" 4513else 4514 echo "$as_me: failed program was:" >&5 4515sed 's/^/| /' conftest.$ac_ext >&5 4516 4517fi 4518rm -f conftest.err conftest.$ac_objext \ 4519 conftest$ac_exeext conftest.$ac_ext 4520 CFLAGS="$save_CFLAGS" 4521 ac_ext=c 4522ac_cpp='$CPP $CPPFLAGS' 4523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4525ac_compiler_gnu=$ac_cv_c_compiler_gnu 4526 4527 4528fi 4529 4530if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then 4531 echo "$as_me:$LINENO: result: yes" >&5 4532echo "${ECHO_T}yes" >&6 4533 : 4534 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute" 4535else 4536 echo "$as_me:$LINENO: result: no" >&5 4537echo "${ECHO_T}no" >&6 4538 : 4539 4540fi 4541 4542 ;; 4543 esac 4544 4545echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5 4546echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6 4547kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'` 4548if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4549 echo $ECHO_N "(cached) $ECHO_C" >&6 4550else 4551 4552 4553 4554 ac_ext=cc 4555ac_cpp='$CXXCPP $CPPFLAGS' 4556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4559 4560ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4561 4562 4563 save_CXXFLAGS="$CXXFLAGS" 4564 CXXFLAGS="$CXXFLAGS -Wundef" 4565 cat >conftest.$ac_ext <<_ACEOF 4566/* confdefs.h. */ 4567_ACEOF 4568cat confdefs.h >>conftest.$ac_ext 4569cat >>conftest.$ac_ext <<_ACEOF 4570/* end confdefs.h. */ 4571 4572int 4573main () 4574{ 4575 return 0; 4576 ; 4577 return 0; 4578} 4579_ACEOF 4580rm -f conftest.$ac_objext conftest$ac_exeext 4581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4582 (eval $ac_link) 2>conftest.er1 4583 ac_status=$? 4584 grep -v '^ *+' conftest.er1 >conftest.err 4585 rm -f conftest.er1 4586 cat conftest.err >&5 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); } && 4589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4591 (eval $ac_try) 2>&5 4592 ac_status=$? 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); }; } && 4595 { ac_try='test -s conftest$ac_exeext' 4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4597 (eval $ac_try) 2>&5 4598 ac_status=$? 4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4600 (exit $ac_status); }; }; then 4601 eval "kde_cv_prog_cxx_$kde_cache=yes" 4602else 4603 echo "$as_me: failed program was:" >&5 4604sed 's/^/| /' conftest.$ac_ext >&5 4605 4606fi 4607rm -f conftest.err conftest.$ac_objext \ 4608 conftest$ac_exeext conftest.$ac_ext 4609 CXXFLAGS="$save_CXXFLAGS" 4610 ac_ext=c 4611ac_cpp='$CPP $CPPFLAGS' 4612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4614ac_compiler_gnu=$ac_cv_c_compiler_gnu 4615 4616 4617fi 4618 4619if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4620 echo "$as_me:$LINENO: result: yes" >&5 4621echo "${ECHO_T}yes" >&6 4622 : 4623 CXXFLAGS="-Wundef $CXXFLAGS" 4624else 4625 echo "$as_me:$LINENO: result: no" >&5 4626echo "${ECHO_T}no" >&6 4627 : 4628 4629fi 4630 4631 4632echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5 4633echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6 4634kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'` 4635if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4636 echo $ECHO_N "(cached) $ECHO_C" >&6 4637else 4638 4639 4640 4641 ac_ext=cc 4642ac_cpp='$CXXCPP $CPPFLAGS' 4643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4646 4647ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4648 4649 4650 save_CXXFLAGS="$CXXFLAGS" 4651 CXXFLAGS="$CXXFLAGS -Wno-long-long" 4652 cat >conftest.$ac_ext <<_ACEOF 4653/* confdefs.h. */ 4654_ACEOF 4655cat confdefs.h >>conftest.$ac_ext 4656cat >>conftest.$ac_ext <<_ACEOF 4657/* end confdefs.h. */ 4658 4659int 4660main () 4661{ 4662 return 0; 4663 ; 4664 return 0; 4665} 4666_ACEOF 4667rm -f conftest.$ac_objext conftest$ac_exeext 4668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4669 (eval $ac_link) 2>conftest.er1 4670 ac_status=$? 4671 grep -v '^ *+' conftest.er1 >conftest.err 4672 rm -f conftest.er1 4673 cat conftest.err >&5 4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4675 (exit $ac_status); } && 4676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4678 (eval $ac_try) 2>&5 4679 ac_status=$? 4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4681 (exit $ac_status); }; } && 4682 { ac_try='test -s conftest$ac_exeext' 4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4684 (eval $ac_try) 2>&5 4685 ac_status=$? 4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4687 (exit $ac_status); }; }; then 4688 eval "kde_cv_prog_cxx_$kde_cache=yes" 4689else 4690 echo "$as_me: failed program was:" >&5 4691sed 's/^/| /' conftest.$ac_ext >&5 4692 4693fi 4694rm -f conftest.err conftest.$ac_objext \ 4695 conftest$ac_exeext conftest.$ac_ext 4696 CXXFLAGS="$save_CXXFLAGS" 4697 ac_ext=c 4698ac_cpp='$CPP $CPPFLAGS' 4699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4701ac_compiler_gnu=$ac_cv_c_compiler_gnu 4702 4703 4704fi 4705 4706if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4707 echo "$as_me:$LINENO: result: yes" >&5 4708echo "${ECHO_T}yes" >&6 4709 : 4710 CXXFLAGS="-Wno-long-long $CXXFLAGS" 4711else 4712 echo "$as_me:$LINENO: result: no" >&5 4713echo "${ECHO_T}no" >&6 4714 : 4715 4716fi 4717 4718 4719echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5 4720echo $ECHO_N "checking whether $CXX supports -Wno-non-virtual-dtor... $ECHO_C" >&6 4721kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'` 4722if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4723 echo $ECHO_N "(cached) $ECHO_C" >&6 4724else 4725 4726 4727 4728 ac_ext=cc 4729ac_cpp='$CXXCPP $CPPFLAGS' 4730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4733 4734ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4735 4736 4737 save_CXXFLAGS="$CXXFLAGS" 4738 CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor" 4739 cat >conftest.$ac_ext <<_ACEOF 4740/* confdefs.h. */ 4741_ACEOF 4742cat confdefs.h >>conftest.$ac_ext 4743cat >>conftest.$ac_ext <<_ACEOF 4744/* end confdefs.h. */ 4745 4746int 4747main () 4748{ 4749 return 0; 4750 ; 4751 return 0; 4752} 4753_ACEOF 4754rm -f conftest.$ac_objext conftest$ac_exeext 4755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4756 (eval $ac_link) 2>conftest.er1 4757 ac_status=$? 4758 grep -v '^ *+' conftest.er1 >conftest.err 4759 rm -f conftest.er1 4760 cat conftest.err >&5 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4762 (exit $ac_status); } && 4763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4765 (eval $ac_try) 2>&5 4766 ac_status=$? 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4768 (exit $ac_status); }; } && 4769 { ac_try='test -s conftest$ac_exeext' 4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4771 (eval $ac_try) 2>&5 4772 ac_status=$? 4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4774 (exit $ac_status); }; }; then 4775 eval "kde_cv_prog_cxx_$kde_cache=yes" 4776else 4777 echo "$as_me: failed program was:" >&5 4778sed 's/^/| /' conftest.$ac_ext >&5 4779 4780fi 4781rm -f conftest.err conftest.$ac_objext \ 4782 conftest$ac_exeext conftest.$ac_ext 4783 CXXFLAGS="$save_CXXFLAGS" 4784 ac_ext=c 4785ac_cpp='$CPP $CPPFLAGS' 4786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4788ac_compiler_gnu=$ac_cv_c_compiler_gnu 4789 4790 4791fi 4792 4793if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4794 echo "$as_me:$LINENO: result: yes" >&5 4795echo "${ECHO_T}yes" >&6 4796 : 4797 CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor" 4798else 4799 echo "$as_me:$LINENO: result: no" >&5 4800echo "${ECHO_T}no" >&6 4801 : 4802 4803fi 4804 4805 fi 4806 fi 4807 4808 if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then 4809 CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS" 4810 fi 4811 4812 # Check whether --enable-pch or --disable-pch was given. 4813if test "${enable_pch+set}" = set; then 4814 enableval="$enable_pch" 4815 kde_use_pch=$enableval 4816else 4817 kde_use_pch=no 4818fi; 4819 4820 HAVE_GCC_VISIBILITY=0 4821 4822 4823 if test "$GXX" = "yes"; then 4824 gcc_no_reorder_blocks=NO 4825 4826echo "$as_me:$LINENO: checking whether $CXX supports -fno-reorder-blocks" >&5 4827echo $ECHO_N "checking whether $CXX supports -fno-reorder-blocks... $ECHO_C" >&6 4828kde_cache=`echo fno-reorder-blocks | sed 'y% .=/+-,%____p__%'` 4829if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4830 echo $ECHO_N "(cached) $ECHO_C" >&6 4831else 4832 4833 4834 4835 ac_ext=cc 4836ac_cpp='$CXXCPP $CPPFLAGS' 4837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4840 4841ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4842 4843 4844 save_CXXFLAGS="$CXXFLAGS" 4845 CXXFLAGS="$CXXFLAGS -fno-reorder-blocks" 4846 cat >conftest.$ac_ext <<_ACEOF 4847/* confdefs.h. */ 4848_ACEOF 4849cat confdefs.h >>conftest.$ac_ext 4850cat >>conftest.$ac_ext <<_ACEOF 4851/* end confdefs.h. */ 4852 4853int 4854main () 4855{ 4856 return 0; 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861rm -f conftest.$ac_objext conftest$ac_exeext 4862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4863 (eval $ac_link) 2>conftest.er1 4864 ac_status=$? 4865 grep -v '^ *+' conftest.er1 >conftest.err 4866 rm -f conftest.er1 4867 cat conftest.err >&5 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); } && 4870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4872 (eval $ac_try) 2>&5 4873 ac_status=$? 4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4875 (exit $ac_status); }; } && 4876 { ac_try='test -s conftest$ac_exeext' 4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4878 (eval $ac_try) 2>&5 4879 ac_status=$? 4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4881 (exit $ac_status); }; }; then 4882 eval "kde_cv_prog_cxx_$kde_cache=yes" 4883else 4884 echo "$as_me: failed program was:" >&5 4885sed 's/^/| /' conftest.$ac_ext >&5 4886 4887fi 4888rm -f conftest.err conftest.$ac_objext \ 4889 conftest$ac_exeext conftest.$ac_ext 4890 CXXFLAGS="$save_CXXFLAGS" 4891 ac_ext=c 4892ac_cpp='$CPP $CPPFLAGS' 4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4895ac_compiler_gnu=$ac_cv_c_compiler_gnu 4896 4897 4898fi 4899 4900if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4901 echo "$as_me:$LINENO: result: yes" >&5 4902echo "${ECHO_T}yes" >&6 4903 : 4904 gcc_no_reorder_blocks=YES 4905else 4906 echo "$as_me:$LINENO: result: no" >&5 4907echo "${ECHO_T}no" >&6 4908 : 4909 4910fi 4911 4912 if test $kde_use_debug_code != "no" && \ 4913 test $kde_use_debug_code != "full" && \ 4914 test "YES" = "$gcc_no_reorder_blocks" ; then 4915 CXXFLAGS="$CXXFLAGS -fno-reorder-blocks" 4916 CFLAGS="$CFLAGS -fno-reorder-blocks" 4917 fi 4918 4919echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5 4920echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6 4921kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'` 4922if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 4923 echo $ECHO_N "(cached) $ECHO_C" >&6 4924else 4925 4926 4927 4928 ac_ext=cc 4929ac_cpp='$CXXCPP $CPPFLAGS' 4930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4933 4934ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4935 4936 4937 save_CXXFLAGS="$CXXFLAGS" 4938 CXXFLAGS="$CXXFLAGS -fno-exceptions" 4939 cat >conftest.$ac_ext <<_ACEOF 4940/* confdefs.h. */ 4941_ACEOF 4942cat confdefs.h >>conftest.$ac_ext 4943cat >>conftest.$ac_ext <<_ACEOF 4944/* end confdefs.h. */ 4945 4946int 4947main () 4948{ 4949 return 0; 4950 ; 4951 return 0; 4952} 4953_ACEOF 4954rm -f conftest.$ac_objext conftest$ac_exeext 4955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4956 (eval $ac_link) 2>conftest.er1 4957 ac_status=$? 4958 grep -v '^ *+' conftest.er1 >conftest.err 4959 rm -f conftest.er1 4960 cat conftest.err >&5 4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 (exit $ac_status); } && 4963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4965 (eval $ac_try) 2>&5 4966 ac_status=$? 4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); }; } && 4969 { ac_try='test -s conftest$ac_exeext' 4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4971 (eval $ac_try) 2>&5 4972 ac_status=$? 4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4974 (exit $ac_status); }; }; then 4975 eval "kde_cv_prog_cxx_$kde_cache=yes" 4976else 4977 echo "$as_me: failed program was:" >&5 4978sed 's/^/| /' conftest.$ac_ext >&5 4979 4980fi 4981rm -f conftest.err conftest.$ac_objext \ 4982 conftest$ac_exeext conftest.$ac_ext 4983 CXXFLAGS="$save_CXXFLAGS" 4984 ac_ext=c 4985ac_cpp='$CPP $CPPFLAGS' 4986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4988ac_compiler_gnu=$ac_cv_c_compiler_gnu 4989 4990 4991fi 4992 4993if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 4994 echo "$as_me:$LINENO: result: yes" >&5 4995echo "${ECHO_T}yes" >&6 4996 : 4997 CXXFLAGS="$CXXFLAGS -fno-exceptions" 4998else 4999 echo "$as_me:$LINENO: result: no" >&5 5000echo "${ECHO_T}no" >&6 5001 : 5002 5003fi 5004 5005 5006echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5 5007echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6 5008kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'` 5009if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5010 echo $ECHO_N "(cached) $ECHO_C" >&6 5011else 5012 5013 5014 5015 ac_ext=cc 5016ac_cpp='$CXXCPP $CPPFLAGS' 5017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5020 5021ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5022 5023 5024 save_CXXFLAGS="$CXXFLAGS" 5025 CXXFLAGS="$CXXFLAGS -fno-check-new" 5026 cat >conftest.$ac_ext <<_ACEOF 5027/* confdefs.h. */ 5028_ACEOF 5029cat confdefs.h >>conftest.$ac_ext 5030cat >>conftest.$ac_ext <<_ACEOF 5031/* end confdefs.h. */ 5032 5033int 5034main () 5035{ 5036 return 0; 5037 ; 5038 return 0; 5039} 5040_ACEOF 5041rm -f conftest.$ac_objext conftest$ac_exeext 5042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5043 (eval $ac_link) 2>conftest.er1 5044 ac_status=$? 5045 grep -v '^ *+' conftest.er1 >conftest.err 5046 rm -f conftest.er1 5047 cat conftest.err >&5 5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5049 (exit $ac_status); } && 5050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5052 (eval $ac_try) 2>&5 5053 ac_status=$? 5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5055 (exit $ac_status); }; } && 5056 { ac_try='test -s conftest$ac_exeext' 5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5058 (eval $ac_try) 2>&5 5059 ac_status=$? 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); }; }; then 5062 eval "kde_cv_prog_cxx_$kde_cache=yes" 5063else 5064 echo "$as_me: failed program was:" >&5 5065sed 's/^/| /' conftest.$ac_ext >&5 5066 5067fi 5068rm -f conftest.err conftest.$ac_objext \ 5069 conftest$ac_exeext conftest.$ac_ext 5070 CXXFLAGS="$save_CXXFLAGS" 5071 ac_ext=c 5072ac_cpp='$CPP $CPPFLAGS' 5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5075ac_compiler_gnu=$ac_cv_c_compiler_gnu 5076 5077 5078fi 5079 5080if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5081 echo "$as_me:$LINENO: result: yes" >&5 5082echo "${ECHO_T}yes" >&6 5083 : 5084 CXXFLAGS="$CXXFLAGS -fno-check-new" 5085else 5086 echo "$as_me:$LINENO: result: no" >&5 5087echo "${ECHO_T}no" >&6 5088 : 5089 5090fi 5091 5092 5093echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5 5094echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6 5095kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'` 5096if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5097 echo $ECHO_N "(cached) $ECHO_C" >&6 5098else 5099 5100 5101 5102 ac_ext=cc 5103ac_cpp='$CXXCPP $CPPFLAGS' 5104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5107 5108ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5109 5110 5111 save_CXXFLAGS="$CXXFLAGS" 5112 CXXFLAGS="$CXXFLAGS -fno-common" 5113 cat >conftest.$ac_ext <<_ACEOF 5114/* confdefs.h. */ 5115_ACEOF 5116cat confdefs.h >>conftest.$ac_ext 5117cat >>conftest.$ac_ext <<_ACEOF 5118/* end confdefs.h. */ 5119 5120int 5121main () 5122{ 5123 return 0; 5124 ; 5125 return 0; 5126} 5127_ACEOF 5128rm -f conftest.$ac_objext conftest$ac_exeext 5129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5130 (eval $ac_link) 2>conftest.er1 5131 ac_status=$? 5132 grep -v '^ *+' conftest.er1 >conftest.err 5133 rm -f conftest.er1 5134 cat conftest.err >&5 5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5136 (exit $ac_status); } && 5137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5139 (eval $ac_try) 2>&5 5140 ac_status=$? 5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5142 (exit $ac_status); }; } && 5143 { ac_try='test -s conftest$ac_exeext' 5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5145 (eval $ac_try) 2>&5 5146 ac_status=$? 5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5148 (exit $ac_status); }; }; then 5149 eval "kde_cv_prog_cxx_$kde_cache=yes" 5150else 5151 echo "$as_me: failed program was:" >&5 5152sed 's/^/| /' conftest.$ac_ext >&5 5153 5154fi 5155rm -f conftest.err conftest.$ac_objext \ 5156 conftest$ac_exeext conftest.$ac_ext 5157 CXXFLAGS="$save_CXXFLAGS" 5158 ac_ext=c 5159ac_cpp='$CPP $CPPFLAGS' 5160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5162ac_compiler_gnu=$ac_cv_c_compiler_gnu 5163 5164 5165fi 5166 5167if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5168 echo "$as_me:$LINENO: result: yes" >&5 5169echo "${ECHO_T}yes" >&6 5170 : 5171 CXXFLAGS="$CXXFLAGS -fno-common" 5172else 5173 echo "$as_me:$LINENO: result: no" >&5 5174echo "${ECHO_T}no" >&6 5175 : 5176 5177fi 5178 5179 5180echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5 5181echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6 5182kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'` 5183if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5184 echo $ECHO_N "(cached) $ECHO_C" >&6 5185else 5186 5187 5188 5189 ac_ext=cc 5190ac_cpp='$CXXCPP $CPPFLAGS' 5191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5194 5195ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5196 5197 5198 save_CXXFLAGS="$CXXFLAGS" 5199 CXXFLAGS="$CXXFLAGS -fexceptions" 5200 cat >conftest.$ac_ext <<_ACEOF 5201/* confdefs.h. */ 5202_ACEOF 5203cat confdefs.h >>conftest.$ac_ext 5204cat >>conftest.$ac_ext <<_ACEOF 5205/* end confdefs.h. */ 5206 5207int 5208main () 5209{ 5210 return 0; 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215rm -f conftest.$ac_objext conftest$ac_exeext 5216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5217 (eval $ac_link) 2>conftest.er1 5218 ac_status=$? 5219 grep -v '^ *+' conftest.er1 >conftest.err 5220 rm -f conftest.er1 5221 cat conftest.err >&5 5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5223 (exit $ac_status); } && 5224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5226 (eval $ac_try) 2>&5 5227 ac_status=$? 5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5229 (exit $ac_status); }; } && 5230 { ac_try='test -s conftest$ac_exeext' 5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5232 (eval $ac_try) 2>&5 5233 ac_status=$? 5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5235 (exit $ac_status); }; }; then 5236 eval "kde_cv_prog_cxx_$kde_cache=yes" 5237else 5238 echo "$as_me: failed program was:" >&5 5239sed 's/^/| /' conftest.$ac_ext >&5 5240 5241fi 5242rm -f conftest.err conftest.$ac_objext \ 5243 conftest$ac_exeext conftest.$ac_ext 5244 CXXFLAGS="$save_CXXFLAGS" 5245 ac_ext=c 5246ac_cpp='$CPP $CPPFLAGS' 5247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5249ac_compiler_gnu=$ac_cv_c_compiler_gnu 5250 5251 5252fi 5253 5254if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5255 echo "$as_me:$LINENO: result: yes" >&5 5256echo "${ECHO_T}yes" >&6 5257 : 5258 USE_EXCEPTIONS="-fexceptions" 5259else 5260 echo "$as_me:$LINENO: result: no" >&5 5261echo "${ECHO_T}no" >&6 5262 : 5263 USE_EXCEPTIONS= 5264fi 5265 5266 ENABLE_PERMISSIVE_FLAG="-fpermissive" 5267 5268 if test "$kde_use_pch" = "yes"; then 5269 echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5 5270echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6 5271 echo >conftest.h 5272 if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then 5273 kde_gcc_supports_pch=yes 5274 echo "$as_me:$LINENO: result: yes" >&5 5275echo "${ECHO_T}yes" >&6 5276 else 5277 kde_gcc_supports_pch=no 5278 echo "$as_me:$LINENO: result: no" >&5 5279echo "${ECHO_T}no" >&6 5280 fi 5281 if test "$kde_gcc_supports_pch" = "yes"; then 5282 echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5 5283echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6 5284 if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then 5285 kde_gcc_supports_pch=yes 5286 echo "$as_me:$LINENO: result: yes" >&5 5287echo "${ECHO_T}yes" >&6 5288 else 5289 kde_gcc_supports_pch=no 5290 echo "$as_me:$LINENO: result: no" >&5 5291echo "${ECHO_T}no" >&6 5292 fi 5293 fi 5294 rm -f conftest.h conftest.h.gch 5295 fi 5296 5297 5298 echo "$as_me:$LINENO: checking whether system headers can cope with -O2 -fno-inline" >&5 5299echo $ECHO_N "checking whether system headers can cope with -O2 -fno-inline... $ECHO_C" >&6 5300if test "${kde_cv_opt_noinline_match+set}" = set; then 5301 echo $ECHO_N "(cached) $ECHO_C" >&6 5302else 5303 5304 kde_cv_opt_noinline_match=irrelevant 5305 if echo "$CFLAGS" | grep -qe -O2 \ 5306 && echo "$CFLAGS" | grep -qe -fno-inline ; then 5307 5308 ac_cflags_save="$CFLAGS" 5309 CFLAGS="$CFLAGS -D_USE_GNU" 5310 5311 cat >conftest.$ac_ext <<_ACEOF 5312/* confdefs.h. */ 5313_ACEOF 5314cat confdefs.h >>conftest.$ac_ext 5315cat >>conftest.$ac_ext <<_ACEOF 5316/* end confdefs.h. */ 5317 5318 #include <string.h> 5319 5320int 5321main () 5322{ 5323 const char *pt, *et; 5324 et = __extension__ ({ char __a0, __a1, __a2; (__builtin_constant_p ( ";," ) && ((size_t)(const void *)(( ";," )+ 1) - (size_t)(const void *)( ";," ) == 1) ? ((__a0 =((__const char *) ( ";," ))[0], __a0 == '\0') ? ((void) ( pt ),((void *)0) ) : ((__a1 = ((__const char *) ( ";," ))[1], __a1== '\0') ? (__extension__ (__builtin_constant_p ( __a0 ) && ( __a0 ) == '\0' ? (char *) __rawmemchr ( pt , __a0) : strchr( pt , __a0 ))) : ((__a2 = ((__const char *) ( ";," ))[2], __a2 == '\0') ? __strpbrk_c2 ( pt , __a0, __a1) :(((__const char *) ( ";," ))[3] == '\0' ? __strpbrk_c3 ( pt ,__a0, __a1, __a2): strpbrk ( pt , ";," ))))) : strpbrk ( pt , ";," )); }) ; 5325 5326 ; 5327 return 0; 5328} 5329_ACEOF 5330rm -f conftest.$ac_objext conftest$ac_exeext 5331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5332 (eval $ac_link) 2>conftest.er1 5333 ac_status=$? 5334 grep -v '^ *+' conftest.er1 >conftest.err 5335 rm -f conftest.er1 5336 cat conftest.err >&5 5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 (exit $ac_status); } && 5339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5341 (eval $ac_try) 2>&5 5342 ac_status=$? 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); }; } && 5345 { ac_try='test -s conftest$ac_exeext' 5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5347 (eval $ac_try) 2>&5 5348 ac_status=$? 5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5350 (exit $ac_status); }; }; then 5351 kde_cv_opt_noinline_match=yes 5352else 5353 echo "$as_me: failed program was:" >&5 5354sed 's/^/| /' conftest.$ac_ext >&5 5355 5356kde_cv_opt_noinline_match=no 5357 5358fi 5359rm -f conftest.err conftest.$ac_objext \ 5360 conftest$ac_exeext conftest.$ac_ext 5361 5362 CFLAGS="$ac_cflags_save" 5363 fi 5364 5365fi 5366echo "$as_me:$LINENO: result: $kde_cv_opt_noinline_match" >&5 5367echo "${ECHO_T}$kde_cv_opt_noinline_match" >&6 5368 5369 if test "x$kde_cv_opt_noinline_match" = "xno" ; then 5370 CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`" 5371 fi 5372 fi 5373 5374 5375if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then 5376 unsermake_enable_pch_TRUE= 5377 unsermake_enable_pch_FALSE='#' 5378else 5379 unsermake_enable_pch_TRUE='#' 5380 unsermake_enable_pch_FALSE= 5381fi 5382 5383 if test "$CXX" = "KCC"; then 5384 5385 if test "$kde_use_pch" = "yes"; then 5386 5387echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5 5388echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6 5389kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'` 5390if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5391 echo $ECHO_N "(cached) $ECHO_C" >&6 5392else 5393 5394 5395 5396 ac_ext=cc 5397ac_cpp='$CXXCPP $CPPFLAGS' 5398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5401 5402ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5403 5404 5405 save_CXXFLAGS="$CXXFLAGS" 5406 CXXFLAGS="$CXXFLAGS --pch" 5407 cat >conftest.$ac_ext <<_ACEOF 5408/* confdefs.h. */ 5409_ACEOF 5410cat confdefs.h >>conftest.$ac_ext 5411cat >>conftest.$ac_ext <<_ACEOF 5412/* end confdefs.h. */ 5413 5414int 5415main () 5416{ 5417 return 0; 5418 ; 5419 return 0; 5420} 5421_ACEOF 5422rm -f conftest.$ac_objext conftest$ac_exeext 5423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5424 (eval $ac_link) 2>conftest.er1 5425 ac_status=$? 5426 grep -v '^ *+' conftest.er1 >conftest.err 5427 rm -f conftest.er1 5428 cat conftest.err >&5 5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5430 (exit $ac_status); } && 5431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5433 (eval $ac_try) 2>&5 5434 ac_status=$? 5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); }; } && 5437 { ac_try='test -s conftest$ac_exeext' 5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5439 (eval $ac_try) 2>&5 5440 ac_status=$? 5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5442 (exit $ac_status); }; }; then 5443 eval "kde_cv_prog_cxx_$kde_cache=yes" 5444else 5445 echo "$as_me: failed program was:" >&5 5446sed 's/^/| /' conftest.$ac_ext >&5 5447 5448fi 5449rm -f conftest.err conftest.$ac_objext \ 5450 conftest$ac_exeext conftest.$ac_ext 5451 CXXFLAGS="$save_CXXFLAGS" 5452 ac_ext=c 5453ac_cpp='$CPP $CPPFLAGS' 5454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5456ac_compiler_gnu=$ac_cv_c_compiler_gnu 5457 5458 5459fi 5460 5461if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5462 echo "$as_me:$LINENO: result: yes" >&5 5463echo "${ECHO_T}yes" >&6 5464 : 5465 CXXFLAGS="$CXXFLAGS --pch" 5466else 5467 echo "$as_me:$LINENO: result: no" >&5 5468echo "${ECHO_T}no" >&6 5469 : 5470 5471fi 5472 5473 fi 5474 5475echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5 5476echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6 5477kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'` 5478if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5479 echo $ECHO_N "(cached) $ECHO_C" >&6 5480else 5481 5482 5483 5484 ac_ext=cc 5485ac_cpp='$CXXCPP $CPPFLAGS' 5486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5489 5490ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5491 5492 5493 save_CXXFLAGS="$CXXFLAGS" 5494 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6" 5495 cat >conftest.$ac_ext <<_ACEOF 5496/* confdefs.h. */ 5497_ACEOF 5498cat confdefs.h >>conftest.$ac_ext 5499cat >>conftest.$ac_ext <<_ACEOF 5500/* end confdefs.h. */ 5501 5502int 5503main () 5504{ 5505 return 0; 5506 ; 5507 return 0; 5508} 5509_ACEOF 5510rm -f conftest.$ac_objext conftest$ac_exeext 5511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5512 (eval $ac_link) 2>conftest.er1 5513 ac_status=$? 5514 grep -v '^ *+' conftest.er1 >conftest.err 5515 rm -f conftest.er1 5516 cat conftest.err >&5 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); } && 5519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5521 (eval $ac_try) 2>&5 5522 ac_status=$? 5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5524 (exit $ac_status); }; } && 5525 { ac_try='test -s conftest$ac_exeext' 5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5527 (eval $ac_try) 2>&5 5528 ac_status=$? 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); }; }; then 5531 eval "kde_cv_prog_cxx_$kde_cache=yes" 5532else 5533 echo "$as_me: failed program was:" >&5 5534sed 's/^/| /' conftest.$ac_ext >&5 5535 5536fi 5537rm -f conftest.err conftest.$ac_objext \ 5538 conftest$ac_exeext conftest.$ac_ext 5539 CXXFLAGS="$save_CXXFLAGS" 5540 ac_ext=c 5541ac_cpp='$CPP $CPPFLAGS' 5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5544ac_compiler_gnu=$ac_cv_c_compiler_gnu 5545 5546 5547fi 5548 5549if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5550 echo "$as_me:$LINENO: result: yes" >&5 5551echo "${ECHO_T}yes" >&6 5552 : 5553 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6" 5554else 5555 echo "$as_me:$LINENO: result: no" >&5 5556echo "${ECHO_T}no" >&6 5557 : 5558 5559fi 5560 5561 5562echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5 5563echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6 5564kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'` 5565if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5566 echo $ECHO_N "(cached) $ECHO_C" >&6 5567else 5568 5569 5570 5571 ac_ext=cc 5572ac_cpp='$CXXCPP $CPPFLAGS' 5573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5576 5577ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5578 5579 5580 save_CXXFLAGS="$CXXFLAGS" 5581 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2" 5582 cat >conftest.$ac_ext <<_ACEOF 5583/* confdefs.h. */ 5584_ACEOF 5585cat confdefs.h >>conftest.$ac_ext 5586cat >>conftest.$ac_ext <<_ACEOF 5587/* end confdefs.h. */ 5588 5589int 5590main () 5591{ 5592 return 0; 5593 ; 5594 return 0; 5595} 5596_ACEOF 5597rm -f conftest.$ac_objext conftest$ac_exeext 5598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5599 (eval $ac_link) 2>conftest.er1 5600 ac_status=$? 5601 grep -v '^ *+' conftest.er1 >conftest.err 5602 rm -f conftest.er1 5603 cat conftest.err >&5 5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5605 (exit $ac_status); } && 5606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5608 (eval $ac_try) 2>&5 5609 ac_status=$? 5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5611 (exit $ac_status); }; } && 5612 { ac_try='test -s conftest$ac_exeext' 5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5614 (eval $ac_try) 2>&5 5615 ac_status=$? 5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5617 (exit $ac_status); }; }; then 5618 eval "kde_cv_prog_cxx_$kde_cache=yes" 5619else 5620 echo "$as_me: failed program was:" >&5 5621sed 's/^/| /' conftest.$ac_ext >&5 5622 5623fi 5624rm -f conftest.err conftest.$ac_objext \ 5625 conftest$ac_exeext conftest.$ac_ext 5626 CXXFLAGS="$save_CXXFLAGS" 5627 ac_ext=c 5628ac_cpp='$CPP $CPPFLAGS' 5629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5631ac_compiler_gnu=$ac_cv_c_compiler_gnu 5632 5633 5634fi 5635 5636if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5637 echo "$as_me:$LINENO: result: yes" >&5 5638echo "${ECHO_T}yes" >&6 5639 : 5640 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2" 5641else 5642 echo "$as_me:$LINENO: result: no" >&5 5643echo "${ECHO_T}no" >&6 5644 : 5645 5646fi 5647 5648 5649echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5 5650echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6 5651kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'` 5652if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5653 echo $ECHO_N "(cached) $ECHO_C" >&6 5654else 5655 5656 5657 5658 ac_ext=cc 5659ac_cpp='$CXXCPP $CPPFLAGS' 5660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5663 5664ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5665 5666 5667 save_CXXFLAGS="$CXXFLAGS" 5668 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0" 5669 cat >conftest.$ac_ext <<_ACEOF 5670/* confdefs.h. */ 5671_ACEOF 5672cat confdefs.h >>conftest.$ac_ext 5673cat >>conftest.$ac_ext <<_ACEOF 5674/* end confdefs.h. */ 5675 5676int 5677main () 5678{ 5679 return 0; 5680 ; 5681 return 0; 5682} 5683_ACEOF 5684rm -f conftest.$ac_objext conftest$ac_exeext 5685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5686 (eval $ac_link) 2>conftest.er1 5687 ac_status=$? 5688 grep -v '^ *+' conftest.er1 >conftest.err 5689 rm -f conftest.er1 5690 cat conftest.err >&5 5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5692 (exit $ac_status); } && 5693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5695 (eval $ac_try) 2>&5 5696 ac_status=$? 5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5698 (exit $ac_status); }; } && 5699 { ac_try='test -s conftest$ac_exeext' 5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5701 (eval $ac_try) 2>&5 5702 ac_status=$? 5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5704 (exit $ac_status); }; }; then 5705 eval "kde_cv_prog_cxx_$kde_cache=yes" 5706else 5707 echo "$as_me: failed program was:" >&5 5708sed 's/^/| /' conftest.$ac_ext >&5 5709 5710fi 5711rm -f conftest.err conftest.$ac_objext \ 5712 conftest$ac_exeext conftest.$ac_ext 5713 CXXFLAGS="$save_CXXFLAGS" 5714 ac_ext=c 5715ac_cpp='$CPP $CPPFLAGS' 5716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5718ac_compiler_gnu=$ac_cv_c_compiler_gnu 5719 5720 5721fi 5722 5723if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5724 echo "$as_me:$LINENO: result: yes" >&5 5725echo "${ECHO_T}yes" >&6 5726 : 5727 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0" 5728else 5729 echo "$as_me:$LINENO: result: no" >&5 5730echo "${ECHO_T}no" >&6 5731 : 5732 5733fi 5734 5735 5736echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5 5737echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6 5738kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'` 5739if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5740 echo $ECHO_N "(cached) $ECHO_C" >&6 5741else 5742 5743 5744 5745 ac_ext=cc 5746ac_cpp='$CXXCPP $CPPFLAGS' 5747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5750 5751ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5752 5753 5754 save_CXXFLAGS="$CXXFLAGS" 5755 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0" 5756 cat >conftest.$ac_ext <<_ACEOF 5757/* confdefs.h. */ 5758_ACEOF 5759cat confdefs.h >>conftest.$ac_ext 5760cat >>conftest.$ac_ext <<_ACEOF 5761/* end confdefs.h. */ 5762 5763int 5764main () 5765{ 5766 return 0; 5767 ; 5768 return 0; 5769} 5770_ACEOF 5771rm -f conftest.$ac_objext conftest$ac_exeext 5772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5773 (eval $ac_link) 2>conftest.er1 5774 ac_status=$? 5775 grep -v '^ *+' conftest.er1 >conftest.err 5776 rm -f conftest.er1 5777 cat conftest.err >&5 5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5779 (exit $ac_status); } && 5780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5782 (eval $ac_try) 2>&5 5783 ac_status=$? 5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5785 (exit $ac_status); }; } && 5786 { ac_try='test -s conftest$ac_exeext' 5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5788 (eval $ac_try) 2>&5 5789 ac_status=$? 5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5791 (exit $ac_status); }; }; then 5792 eval "kde_cv_prog_cxx_$kde_cache=yes" 5793else 5794 echo "$as_me: failed program was:" >&5 5795sed 's/^/| /' conftest.$ac_ext >&5 5796 5797fi 5798rm -f conftest.err conftest.$ac_objext \ 5799 conftest$ac_exeext conftest.$ac_ext 5800 CXXFLAGS="$save_CXXFLAGS" 5801 ac_ext=c 5802ac_cpp='$CPP $CPPFLAGS' 5803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5805ac_compiler_gnu=$ac_cv_c_compiler_gnu 5806 5807 5808fi 5809 5810if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5811 echo "$as_me:$LINENO: result: yes" >&5 5812echo "${ECHO_T}yes" >&6 5813 : 5814 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0" 5815else 5816 echo "$as_me:$LINENO: result: no" >&5 5817echo "${ECHO_T}no" >&6 5818 : 5819 5820fi 5821 5822 5823echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5 5824echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6 5825kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'` 5826if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 5827 echo $ECHO_N "(cached) $ECHO_C" >&6 5828else 5829 5830 5831 5832 ac_ext=cc 5833ac_cpp='$CXXCPP $CPPFLAGS' 5834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5837 5838ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 5839 5840 5841 save_CXXFLAGS="$CXXFLAGS" 5842 CXXFLAGS="$CXXFLAGS --one_per" 5843 cat >conftest.$ac_ext <<_ACEOF 5844/* confdefs.h. */ 5845_ACEOF 5846cat confdefs.h >>conftest.$ac_ext 5847cat >>conftest.$ac_ext <<_ACEOF 5848/* end confdefs.h. */ 5849 5850int 5851main () 5852{ 5853 return 0; 5854 ; 5855 return 0; 5856} 5857_ACEOF 5858rm -f conftest.$ac_objext conftest$ac_exeext 5859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5860 (eval $ac_link) 2>conftest.er1 5861 ac_status=$? 5862 grep -v '^ *+' conftest.er1 >conftest.err 5863 rm -f conftest.er1 5864 cat conftest.err >&5 5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5866 (exit $ac_status); } && 5867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5869 (eval $ac_try) 2>&5 5870 ac_status=$? 5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5872 (exit $ac_status); }; } && 5873 { ac_try='test -s conftest$ac_exeext' 5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5875 (eval $ac_try) 2>&5 5876 ac_status=$? 5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5878 (exit $ac_status); }; }; then 5879 eval "kde_cv_prog_cxx_$kde_cache=yes" 5880else 5881 echo "$as_me: failed program was:" >&5 5882sed 's/^/| /' conftest.$ac_ext >&5 5883 5884fi 5885rm -f conftest.err conftest.$ac_objext \ 5886 conftest$ac_exeext conftest.$ac_ext 5887 CXXFLAGS="$save_CXXFLAGS" 5888 ac_ext=c 5889ac_cpp='$CPP $CPPFLAGS' 5890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5892ac_compiler_gnu=$ac_cv_c_compiler_gnu 5893 5894 5895fi 5896 5897if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 5898 echo "$as_me:$LINENO: result: yes" >&5 5899echo "${ECHO_T}yes" >&6 5900 : 5901 CXXFLAGS="$CXXFLAGS --one_per" 5902else 5903 echo "$as_me:$LINENO: result: no" >&5 5904echo "${ECHO_T}no" >&6 5905 : 5906 5907fi 5908 5909 fi 5910 5911 USE_RTTI= 5912 5913 5914 case "$host" in 5915 *-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;; 5916 *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";; 5917 *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";; 5918 *-*-solaris*) 5919 if test "$GXX" = yes; then 5920 libstdcpp=`$CXX -print-file-name=libstdc++.so` 5921 if test ! -f $libstdcpp; then 5922 { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5 5923echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;} 5924 { (exit 1); exit 1; }; } 5925 fi 5926 fi 5927 ;; 5928 esac 5929 5930 if test "x$kde_use_qt_emb" != "xyes"; then 5931 __val=$CXX 5932 __forbid=" -fno-rtti -rpath " 5933 if test -n "$__val"; then 5934 __new="" 5935 ac_save_IFS=$IFS 5936 IFS=" " 5937 for i in $__val; do 5938 case "$__forbid" in 5939 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5 5940echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;; 5941 *) # Careful to not add spaces, where there were none, because otherwise 5942 # libtool gets confused, if we change e.g. CXX 5943 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; 5944 esac 5945 done 5946 IFS=$ac_save_IFS 5947 CXX=$__new 5948 fi 5949 5950 __val=$CXXFLAGS 5951 __forbid=" -fno-rtti -rpath " 5952 if test -n "$__val"; then 5953 __new="" 5954 ac_save_IFS=$IFS 5955 IFS=" " 5956 for i in $__val; do 5957 case "$__forbid" in 5958 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5 5959echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;; 5960 *) # Careful to not add spaces, where there were none, because otherwise 5961 # libtool gets confused, if we change e.g. CXX 5962 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; 5963 esac 5964 done 5965 IFS=$ac_save_IFS 5966 CXXFLAGS=$__new 5967 fi 5968 5969else 5970 __val=$CXX 5971 __forbid=" -rpath " 5972 if test -n "$__val"; then 5973 __new="" 5974 ac_save_IFS=$IFS 5975 IFS=" " 5976 for i in $__val; do 5977 case "$__forbid" in 5978 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5 5979echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;; 5980 *) # Careful to not add spaces, where there were none, because otherwise 5981 # libtool gets confused, if we change e.g. CXX 5982 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; 5983 esac 5984 done 5985 IFS=$ac_save_IFS 5986 CXX=$__new 5987 fi 5988 5989 __val=$CXXFLAGS 5990 __forbid=" -rpath " 5991 if test -n "$__val"; then 5992 __new="" 5993 ac_save_IFS=$IFS 5994 IFS=" " 5995 for i in $__val; do 5996 case "$__forbid" in 5997 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5 5998echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;; 5999 *) # Careful to not add spaces, where there were none, because otherwise 6000 # libtool gets confused, if we change e.g. CXX 6001 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;; 6002 esac 6003 done 6004 IFS=$ac_save_IFS 6005 CXXFLAGS=$__new 6006 fi 6007 6008fi 6009 6010 6011 ac_ext=cc 6012ac_cpp='$CXXCPP $CPPFLAGS' 6013ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6014ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6015ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6016echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6017echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 6018if test -z "$CXXCPP"; then 6019 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6020 echo $ECHO_N "(cached) $ECHO_C" >&6 6021else 6022 # Double quotes because CXXCPP needs to be expanded 6023 for CXXCPP in "$CXX -E" "/lib/cpp" 6024 do 6025 ac_preproc_ok=false 6026for ac_cxx_preproc_warn_flag in '' yes 6027do 6028 # Use a header file that comes with gcc, so configuring glibc 6029 # with a fresh cross-compiler works. 6030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6031 # <limits.h> exists even on freestanding compilers. 6032 # On the NeXT, cc -E runs the code through the compiler's parser, 6033 # not just through cpp. "Syntax error" is here to catch this case. 6034 cat >conftest.$ac_ext <<_ACEOF 6035/* confdefs.h. */ 6036_ACEOF 6037cat confdefs.h >>conftest.$ac_ext 6038cat >>conftest.$ac_ext <<_ACEOF 6039/* end confdefs.h. */ 6040@%:@ifdef __STDC__ 6041@%:@ include <limits.h> 6042@%:@else 6043@%:@ include <assert.h> 6044@%:@endif 6045 Syntax error 6046_ACEOF 6047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6049 ac_status=$? 6050 grep -v '^ *+' conftest.er1 >conftest.err 6051 rm -f conftest.er1 6052 cat conftest.err >&5 6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6054 (exit $ac_status); } >/dev/null; then 6055 if test -s conftest.err; then 6056 ac_cpp_err=$ac_cxx_preproc_warn_flag 6057 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6058 else 6059 ac_cpp_err= 6060 fi 6061else 6062 ac_cpp_err=yes 6063fi 6064if test -z "$ac_cpp_err"; then 6065 : 6066else 6067 echo "$as_me: failed program was:" >&5 6068sed 's/^/| /' conftest.$ac_ext >&5 6069 6070 # Broken: fails on valid input. 6071continue 6072fi 6073rm -f conftest.err conftest.$ac_ext 6074 6075 # OK, works on sane cases. Now check whether non-existent headers 6076 # can be detected and how. 6077 cat >conftest.$ac_ext <<_ACEOF 6078/* confdefs.h. */ 6079_ACEOF 6080cat confdefs.h >>conftest.$ac_ext 6081cat >>conftest.$ac_ext <<_ACEOF 6082/* end confdefs.h. */ 6083@%:@include <ac_nonexistent.h> 6084_ACEOF 6085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6087 ac_status=$? 6088 grep -v '^ *+' conftest.er1 >conftest.err 6089 rm -f conftest.er1 6090 cat conftest.err >&5 6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6092 (exit $ac_status); } >/dev/null; then 6093 if test -s conftest.err; then 6094 ac_cpp_err=$ac_cxx_preproc_warn_flag 6095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6096 else 6097 ac_cpp_err= 6098 fi 6099else 6100 ac_cpp_err=yes 6101fi 6102if test -z "$ac_cpp_err"; then 6103 # Broken: success on invalid input. 6104continue 6105else 6106 echo "$as_me: failed program was:" >&5 6107sed 's/^/| /' conftest.$ac_ext >&5 6108 6109 # Passes both tests. 6110ac_preproc_ok=: 6111break 6112fi 6113rm -f conftest.err conftest.$ac_ext 6114 6115done 6116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6117rm -f conftest.err conftest.$ac_ext 6118if $ac_preproc_ok; then 6119 break 6120fi 6121 6122 done 6123 ac_cv_prog_CXXCPP=$CXXCPP 6124 6125fi 6126 CXXCPP=$ac_cv_prog_CXXCPP 6127else 6128 ac_cv_prog_CXXCPP=$CXXCPP 6129fi 6130echo "$as_me:$LINENO: result: $CXXCPP" >&5 6131echo "${ECHO_T}$CXXCPP" >&6 6132ac_preproc_ok=false 6133for ac_cxx_preproc_warn_flag in '' yes 6134do 6135 # Use a header file that comes with gcc, so configuring glibc 6136 # with a fresh cross-compiler works. 6137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6138 # <limits.h> exists even on freestanding compilers. 6139 # On the NeXT, cc -E runs the code through the compiler's parser, 6140 # not just through cpp. "Syntax error" is here to catch this case. 6141 cat >conftest.$ac_ext <<_ACEOF 6142/* confdefs.h. */ 6143_ACEOF 6144cat confdefs.h >>conftest.$ac_ext 6145cat >>conftest.$ac_ext <<_ACEOF 6146/* end confdefs.h. */ 6147@%:@ifdef __STDC__ 6148@%:@ include <limits.h> 6149@%:@else 6150@%:@ include <assert.h> 6151@%:@endif 6152 Syntax error 6153_ACEOF 6154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6156 ac_status=$? 6157 grep -v '^ *+' conftest.er1 >conftest.err 6158 rm -f conftest.er1 6159 cat conftest.err >&5 6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6161 (exit $ac_status); } >/dev/null; then 6162 if test -s conftest.err; then 6163 ac_cpp_err=$ac_cxx_preproc_warn_flag 6164 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6165 else 6166 ac_cpp_err= 6167 fi 6168else 6169 ac_cpp_err=yes 6170fi 6171if test -z "$ac_cpp_err"; then 6172 : 6173else 6174 echo "$as_me: failed program was:" >&5 6175sed 's/^/| /' conftest.$ac_ext >&5 6176 6177 # Broken: fails on valid input. 6178continue 6179fi 6180rm -f conftest.err conftest.$ac_ext 6181 6182 # OK, works on sane cases. Now check whether non-existent headers 6183 # can be detected and how. 6184 cat >conftest.$ac_ext <<_ACEOF 6185/* confdefs.h. */ 6186_ACEOF 6187cat confdefs.h >>conftest.$ac_ext 6188cat >>conftest.$ac_ext <<_ACEOF 6189/* end confdefs.h. */ 6190@%:@include <ac_nonexistent.h> 6191_ACEOF 6192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6194 ac_status=$? 6195 grep -v '^ *+' conftest.er1 >conftest.err 6196 rm -f conftest.er1 6197 cat conftest.err >&5 6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6199 (exit $ac_status); } >/dev/null; then 6200 if test -s conftest.err; then 6201 ac_cpp_err=$ac_cxx_preproc_warn_flag 6202 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6203 else 6204 ac_cpp_err= 6205 fi 6206else 6207 ac_cpp_err=yes 6208fi 6209if test -z "$ac_cpp_err"; then 6210 # Broken: success on invalid input. 6211continue 6212else 6213 echo "$as_me: failed program was:" >&5 6214sed 's/^/| /' conftest.$ac_ext >&5 6215 6216 # Passes both tests. 6217ac_preproc_ok=: 6218break 6219fi 6220rm -f conftest.err conftest.$ac_ext 6221 6222done 6223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6224rm -f conftest.err conftest.$ac_ext 6225if $ac_preproc_ok; then 6226 : 6227else 6228 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6229See \`config.log' for more details." >&5 6230echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6231See \`config.log' for more details." >&2;} 6232 { (exit 1); exit 1; }; } 6233fi 6234 6235ac_ext=c 6236ac_cpp='$CPP $CPPFLAGS' 6237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6239ac_compiler_gnu=$ac_cv_c_compiler_gnu 6240 6241 6242 if test "$GCC" = yes; then 6243 NOOPT_CFLAGS=-O0 6244 fi 6245 6246echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5 6247echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6 6248kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'` 6249if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 6250 echo $ECHO_N "(cached) $ECHO_C" >&6 6251else 6252 6253 6254 6255 ac_ext=cc 6256ac_cpp='$CXXCPP $CPPFLAGS' 6257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6260 6261ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6262 6263 6264 save_CXXFLAGS="$CXXFLAGS" 6265 CXXFLAGS="$CXXFLAGS -O0" 6266 cat >conftest.$ac_ext <<_ACEOF 6267/* confdefs.h. */ 6268_ACEOF 6269cat confdefs.h >>conftest.$ac_ext 6270cat >>conftest.$ac_ext <<_ACEOF 6271/* end confdefs.h. */ 6272 6273int 6274main () 6275{ 6276 return 0; 6277 ; 6278 return 0; 6279} 6280_ACEOF 6281rm -f conftest.$ac_objext conftest$ac_exeext 6282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6283 (eval $ac_link) 2>conftest.er1 6284 ac_status=$? 6285 grep -v '^ *+' conftest.er1 >conftest.err 6286 rm -f conftest.er1 6287 cat conftest.err >&5 6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6289 (exit $ac_status); } && 6290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6292 (eval $ac_try) 2>&5 6293 ac_status=$? 6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6295 (exit $ac_status); }; } && 6296 { ac_try='test -s conftest$ac_exeext' 6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6298 (eval $ac_try) 2>&5 6299 ac_status=$? 6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6301 (exit $ac_status); }; }; then 6302 eval "kde_cv_prog_cxx_$kde_cache=yes" 6303else 6304 echo "$as_me: failed program was:" >&5 6305sed 's/^/| /' conftest.$ac_ext >&5 6306 6307fi 6308rm -f conftest.err conftest.$ac_objext \ 6309 conftest$ac_exeext conftest.$ac_ext 6310 CXXFLAGS="$save_CXXFLAGS" 6311 ac_ext=c 6312ac_cpp='$CPP $CPPFLAGS' 6313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6315ac_compiler_gnu=$ac_cv_c_compiler_gnu 6316 6317 6318fi 6319 6320if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 6321 echo "$as_me:$LINENO: result: yes" >&5 6322echo "${ECHO_T}yes" >&6 6323 : 6324 NOOPT_CXXFLAGS=-O0 6325else 6326 echo "$as_me:$LINENO: result: no" >&5 6327echo "${ECHO_T}no" >&6 6328 : 6329 6330fi 6331 6332 6333 # Check whether --enable-coverage or --disable-coverage was given. 6334if test "${enable_coverage+set}" = set; then 6335 enableval="$enable_coverage" 6336 6337 if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then 6338 ac_coverage_compiler="-fprofile-arcs -ftest-coverage" 6339 ac_coverage_linker="-lgcc" 6340 elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then 6341 ac_coverage_compiler="-fprofile-arcs -ftest-coverage" 6342 ac_coverage_linker="" 6343 else 6344 { { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5 6345echo "$as_me: error: coverage with your compiler is not supported" >&2;} 6346 { (exit 1); exit 1; }; } 6347 fi 6348 CFLAGS="$CFLAGS $ac_coverage_compiler" 6349 CXXFLAGS="$CXXFLAGS $ac_coverage_compiler" 6350 LDFLAGS="$LDFLAGS $ac_coverage_linker" 6351 6352fi; 6353 6354 6355 6356 6357 6358 6359 # Check whether --enable-new_ldflags or --disable-new_ldflags was given. 6360if test "${enable_new_ldflags+set}" = set; then 6361 enableval="$enable_new_ldflags" 6362 kde_use_new_ldflags=$enableval 6363else 6364 kde_use_new_ldflags=no 6365fi; 6366 6367 LDFLAGS_AS_NEEDED="" 6368 LDFLAGS_NEW_DTAGS="" 6369 if test "x$kde_use_new_ldflags" = "xyes"; then 6370 LDFLAGS_NEW_DTAGS="" 6371 6372echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5 6373echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6 6374kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'` 6375if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 6376 echo $ECHO_N "(cached) $ECHO_C" >&6 6377else 6378 6379 6380 6381 ac_ext=cc 6382ac_cpp='$CXXCPP $CPPFLAGS' 6383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6386 6387ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6388 6389 6390 save_CXXFLAGS="$CXXFLAGS" 6391 CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags" 6392 cat >conftest.$ac_ext <<_ACEOF 6393/* confdefs.h. */ 6394_ACEOF 6395cat confdefs.h >>conftest.$ac_ext 6396cat >>conftest.$ac_ext <<_ACEOF 6397/* end confdefs.h. */ 6398 6399int 6400main () 6401{ 6402 return 0; 6403 ; 6404 return 0; 6405} 6406_ACEOF 6407rm -f conftest.$ac_objext conftest$ac_exeext 6408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6409 (eval $ac_link) 2>conftest.er1 6410 ac_status=$? 6411 grep -v '^ *+' conftest.er1 >conftest.err 6412 rm -f conftest.er1 6413 cat conftest.err >&5 6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6415 (exit $ac_status); } && 6416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6418 (eval $ac_try) 2>&5 6419 ac_status=$? 6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6421 (exit $ac_status); }; } && 6422 { ac_try='test -s conftest$ac_exeext' 6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6424 (eval $ac_try) 2>&5 6425 ac_status=$? 6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6427 (exit $ac_status); }; }; then 6428 eval "kde_cv_prog_cxx_$kde_cache=yes" 6429else 6430 echo "$as_me: failed program was:" >&5 6431sed 's/^/| /' conftest.$ac_ext >&5 6432 6433fi 6434rm -f conftest.err conftest.$ac_objext \ 6435 conftest$ac_exeext conftest.$ac_ext 6436 CXXFLAGS="$save_CXXFLAGS" 6437 ac_ext=c 6438ac_cpp='$CPP $CPPFLAGS' 6439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6441ac_compiler_gnu=$ac_cv_c_compiler_gnu 6442 6443 6444fi 6445 6446if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 6447 echo "$as_me:$LINENO: result: yes" >&5 6448echo "${ECHO_T}yes" >&6 6449 : 6450 LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags" 6451else 6452 echo "$as_me:$LINENO: result: no" >&5 6453echo "${ECHO_T}no" >&6 6454 : 6455 6456fi 6457 6458 6459 6460echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5 6461echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6 6462kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'` 6463if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 6464 echo $ECHO_N "(cached) $ECHO_C" >&6 6465else 6466 6467 6468 6469 ac_ext=cc 6470ac_cpp='$CXXCPP $CPPFLAGS' 6471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6474 6475ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6476 6477 6478 save_CXXFLAGS="$CXXFLAGS" 6479 CXXFLAGS="$CXXFLAGS -Wl,--as-needed" 6480 cat >conftest.$ac_ext <<_ACEOF 6481/* confdefs.h. */ 6482_ACEOF 6483cat confdefs.h >>conftest.$ac_ext 6484cat >>conftest.$ac_ext <<_ACEOF 6485/* end confdefs.h. */ 6486 6487int 6488main () 6489{ 6490 return 0; 6491 ; 6492 return 0; 6493} 6494_ACEOF 6495rm -f conftest.$ac_objext conftest$ac_exeext 6496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6497 (eval $ac_link) 2>conftest.er1 6498 ac_status=$? 6499 grep -v '^ *+' conftest.er1 >conftest.err 6500 rm -f conftest.er1 6501 cat conftest.err >&5 6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6503 (exit $ac_status); } && 6504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6506 (eval $ac_try) 2>&5 6507 ac_status=$? 6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6509 (exit $ac_status); }; } && 6510 { ac_try='test -s conftest$ac_exeext' 6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6512 (eval $ac_try) 2>&5 6513 ac_status=$? 6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6515 (exit $ac_status); }; }; then 6516 eval "kde_cv_prog_cxx_$kde_cache=yes" 6517else 6518 echo "$as_me: failed program was:" >&5 6519sed 's/^/| /' conftest.$ac_ext >&5 6520 6521fi 6522rm -f conftest.err conftest.$ac_objext \ 6523 conftest$ac_exeext conftest.$ac_ext 6524 CXXFLAGS="$save_CXXFLAGS" 6525 ac_ext=c 6526ac_cpp='$CPP $CPPFLAGS' 6527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6529ac_compiler_gnu=$ac_cv_c_compiler_gnu 6530 6531 6532fi 6533 6534if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 6535 echo "$as_me:$LINENO: result: yes" >&5 6536echo "${ECHO_T}yes" >&6 6537 : 6538 LDFLAGS_AS_NEEDED="-Wl,--as-needed" 6539else 6540 echo "$as_me:$LINENO: result: no" >&5 6541echo "${ECHO_T}no" >&6 6542 : 6543 6544fi 6545 6546 fi 6547 6548 6549 6550 6551 # Check whether --enable-final or --disable-final was given. 6552if test "${enable_final+set}" = set; then 6553 enableval="$enable_final" 6554 kde_use_final=$enableval 6555else 6556 kde_use_final=no 6557fi; 6558 6559 if test "x$kde_use_final" = "xyes"; then 6560 KDE_USE_FINAL_TRUE="" 6561 KDE_USE_FINAL_FALSE="#" 6562 else 6563 KDE_USE_FINAL_TRUE="#" 6564 KDE_USE_FINAL_FALSE="" 6565 fi 6566 6567 6568 6569 6570 # Check whether --enable-closure or --disable-closure was given. 6571if test "${enable_closure+set}" = set; then 6572 enableval="$enable_closure" 6573 kde_use_closure=$enableval 6574else 6575 kde_use_closure=no 6576fi; 6577 6578 KDE_NO_UNDEFINED="" 6579 if test "x$kde_use_closure" = "xyes"; then 6580 KDE_USE_CLOSURE_TRUE="" 6581 KDE_USE_CLOSURE_FALSE="#" 6582# CXXFLAGS="$CXXFLAGS $REPO" 6583 else 6584 KDE_USE_CLOSURE_TRUE="#" 6585 KDE_USE_CLOSURE_FALSE="" 6586 KDE_NO_UNDEFINED="" 6587 case $host in 6588 *-*-linux-gnu) 6589 6590echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5 6591echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6 6592kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'` 6593if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 6594 echo $ECHO_N "(cached) $ECHO_C" >&6 6595else 6596 6597 6598 6599 ac_ext=cc 6600ac_cpp='$CXXCPP $CPPFLAGS' 6601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6604 6605ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6606 6607 6608 save_CXXFLAGS="$CXXFLAGS" 6609 CXXFLAGS="$CXXFLAGS -Wl,--no-undefined" 6610 cat >conftest.$ac_ext <<_ACEOF 6611/* confdefs.h. */ 6612_ACEOF 6613cat confdefs.h >>conftest.$ac_ext 6614cat >>conftest.$ac_ext <<_ACEOF 6615/* end confdefs.h. */ 6616 6617int 6618main () 6619{ 6620 return 0; 6621 ; 6622 return 0; 6623} 6624_ACEOF 6625rm -f conftest.$ac_objext conftest$ac_exeext 6626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6627 (eval $ac_link) 2>conftest.er1 6628 ac_status=$? 6629 grep -v '^ *+' conftest.er1 >conftest.err 6630 rm -f conftest.er1 6631 cat conftest.err >&5 6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6633 (exit $ac_status); } && 6634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6636 (eval $ac_try) 2>&5 6637 ac_status=$? 6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6639 (exit $ac_status); }; } && 6640 { ac_try='test -s conftest$ac_exeext' 6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6642 (eval $ac_try) 2>&5 6643 ac_status=$? 6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6645 (exit $ac_status); }; }; then 6646 eval "kde_cv_prog_cxx_$kde_cache=yes" 6647else 6648 echo "$as_me: failed program was:" >&5 6649sed 's/^/| /' conftest.$ac_ext >&5 6650 6651fi 6652rm -f conftest.err conftest.$ac_objext \ 6653 conftest$ac_exeext conftest.$ac_ext 6654 CXXFLAGS="$save_CXXFLAGS" 6655 ac_ext=c 6656ac_cpp='$CPP $CPPFLAGS' 6657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6659ac_compiler_gnu=$ac_cv_c_compiler_gnu 6660 6661 6662fi 6663 6664if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 6665 echo "$as_me:$LINENO: result: yes" >&5 6666echo "${ECHO_T}yes" >&6 6667 : 6668 6669echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5 6670echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6 6671kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'` 6672if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then 6673 echo $ECHO_N "(cached) $ECHO_C" >&6 6674else 6675 6676 6677 6678 ac_ext=cc 6679ac_cpp='$CXXCPP $CPPFLAGS' 6680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6683 6684ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 6685 6686 6687 save_CXXFLAGS="$CXXFLAGS" 6688 CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined" 6689 cat >conftest.$ac_ext <<_ACEOF 6690/* confdefs.h. */ 6691_ACEOF 6692cat confdefs.h >>conftest.$ac_ext 6693cat >>conftest.$ac_ext <<_ACEOF 6694/* end confdefs.h. */ 6695 6696int 6697main () 6698{ 6699 return 0; 6700 ; 6701 return 0; 6702} 6703_ACEOF 6704rm -f conftest.$ac_objext conftest$ac_exeext 6705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6706 (eval $ac_link) 2>conftest.er1 6707 ac_status=$? 6708 grep -v '^ *+' conftest.er1 >conftest.err 6709 rm -f conftest.er1 6710 cat conftest.err >&5 6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6712 (exit $ac_status); } && 6713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6715 (eval $ac_try) 2>&5 6716 ac_status=$? 6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6718 (exit $ac_status); }; } && 6719 { ac_try='test -s conftest$ac_exeext' 6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6721 (eval $ac_try) 2>&5 6722 ac_status=$? 6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6724 (exit $ac_status); }; }; then 6725 eval "kde_cv_prog_cxx_$kde_cache=yes" 6726else 6727 echo "$as_me: failed program was:" >&5 6728sed 's/^/| /' conftest.$ac_ext >&5 6729 6730fi 6731rm -f conftest.err conftest.$ac_objext \ 6732 conftest$ac_exeext conftest.$ac_ext 6733 CXXFLAGS="$save_CXXFLAGS" 6734 ac_ext=c 6735ac_cpp='$CPP $CPPFLAGS' 6736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6738ac_compiler_gnu=$ac_cv_c_compiler_gnu 6739 6740 6741fi 6742 6743if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then 6744 echo "$as_me:$LINENO: result: yes" >&5 6745echo "${ECHO_T}yes" >&6 6746 : 6747 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined" 6748else 6749 echo "$as_me:$LINENO: result: no" >&5 6750echo "${ECHO_T}no" >&6 6751 : 6752 KDE_NO_UNDEFINED="" 6753fi 6754 6755else 6756 echo "$as_me:$LINENO: result: no" >&5 6757echo "${ECHO_T}no" >&6 6758 : 6759 KDE_NO_UNDEFINED="" 6760fi 6761 6762 ;; 6763 esac 6764 fi 6765 6766 6767 6768 6769 6770 # Check whether --enable-nmcheck or --disable-nmcheck was given. 6771if test "${enable_nmcheck+set}" = set; then 6772 enableval="$enable_nmcheck" 6773 kde_use_nmcheck=$enableval 6774else 6775 kde_use_nmcheck=no 6776fi; 6777 6778 if test "$kde_use_nmcheck" = "yes"; then 6779 KDE_USE_NMCHECK_TRUE="" 6780 KDE_USE_NMCHECK_FALSE="#" 6781 else 6782 KDE_USE_NMCHECK_TRUE="#" 6783 KDE_USE_NMCHECK_FALSE="" 6784 fi 6785 6786 6787 6788 6789 6790 6791 6792 6793# Check whether --enable-shared or --disable-shared was given. 6794if test "${enable_shared+set}" = set; then 6795 enableval="$enable_shared" 6796 p=${PACKAGE-default} 6797 case $enableval in 6798 yes) enable_shared=yes ;; 6799 no) enable_shared=no ;; 6800 *) 6801 enable_shared=no 6802 # Look at the argument we got. We use all the common list separators. 6803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6804 for pkg in $enableval; do 6805 IFS="$lt_save_ifs" 6806 if test "X$pkg" = "X$p"; then 6807 enable_shared=yes 6808 fi 6809 done 6810 IFS="$lt_save_ifs" 6811 ;; 6812 esac 6813else 6814 enable_shared=yes 6815fi; 6816 6817 6818# Check whether --enable-static or --disable-static was given. 6819if test "${enable_static+set}" = set; then 6820 enableval="$enable_static" 6821 p=${PACKAGE-default} 6822 case $enableval in 6823 yes) enable_static=yes ;; 6824 no) enable_static=no ;; 6825 *) 6826 enable_static=no 6827 # Look at the argument we got. We use all the common list separators. 6828 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6829 for pkg in $enableval; do 6830 IFS="$lt_save_ifs" 6831 if test "X$pkg" = "X$p"; then 6832 enable_static=yes 6833 fi 6834 done 6835 IFS="$lt_save_ifs" 6836 ;; 6837 esac 6838else 6839 enable_static=yes 6840fi; 6841 6842 6843 6844 6845 6846 kdelibsuff="$kde_libs_suffix" 6847 if test -z "$kdelibsuff"; then 6848 kdelibsuff="auto" 6849 fi 6850 # Check whether --enable-libsuffix or --disable-libsuffix was given. 6851if test "${enable_libsuffix+set}" = set; then 6852 enableval="$enable_libsuffix" 6853 kdelibsuff=$enableval 6854fi; 6855 6856 if test "$kdelibsuff" = "auto"; then 6857 6858cat > conftest.c << EOF 6859#include <stdio.h> 6860int main() { 6861 return 0; 6862} 6863EOF 6864 kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out | grep -E "libc.so"| grep -E -o "/lib[^\/]*/" | sed "s/lib//" | sed "s/\/*//g"` 6865 rm -rf conftest.* 6866 fi 6867 6868 if test "$kdelibsuff" = "no"; then 6869 kdelibsuff= 6870 fi 6871 if test -z "$kdelibsuff"; then 6872 echo "$as_me:$LINENO: result: not using lib directory suffix" >&5 6873echo "${ECHO_T}not using lib directory suffix" >&6 6874 6875cat >>confdefs.h <<\_ACEOF 6876@%:@define KDELIBSUFF "" 6877_ACEOF 6878 6879 else 6880 if test "$libdir" = '${exec_prefix}/lib'; then 6881 libdir="$libdir${kdelibsuff}" 6882 libdir="$libdir" 6883 fi 6884 6885cat >>confdefs.h <<_ACEOF 6886@%:@define KDELIBSUFF "${kdelibsuff}" 6887_ACEOF 6888 6889 echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5 6890echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6 6891 fi 6892 6893# Check whether --enable-fast-install or --disable-fast-install was given. 6894if test "${enable_fast_install+set}" = set; then 6895 enableval="$enable_fast_install" 6896 p=${PACKAGE-default} 6897 case $enableval in 6898 yes) enable_fast_install=yes ;; 6899 no) enable_fast_install=no ;; 6900 *) 6901 enable_fast_install=no 6902 # Look at the argument we got. We use all the common list separators. 6903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6904 for pkg in $enableval; do 6905 IFS="$lt_save_ifs" 6906 if test "X$pkg" = "X$p"; then 6907 enable_fast_install=yes 6908 fi 6909 done 6910 IFS="$lt_save_ifs" 6911 ;; 6912 esac 6913else 6914 enable_fast_install=yes 6915fi; 6916 6917echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 6918echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 6919if test "${lt_cv_path_SED+set}" = set; then 6920 echo $ECHO_N "(cached) $ECHO_C" >&6 6921else 6922 # Loop through the user's path and test for sed and gsed. 6923# Then use that list of sed's as ones to test for truncation. 6924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6925for as_dir in $PATH 6926do 6927 IFS=$as_save_IFS 6928 test -z "$as_dir" && as_dir=. 6929 for lt_ac_prog in sed gsed; do 6930 for ac_exec_ext in '' $ac_executable_extensions; do 6931 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 6932 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6933 fi 6934 done 6935 done 6936done 6937lt_ac_max=0 6938lt_ac_count=0 6939# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6940# along with /bin/sed that truncates output. 6941for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6942 test ! -f $lt_ac_sed && break 6943 cat /dev/null > conftest.in 6944 lt_ac_count=0 6945 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6946 # Check for GNU sed and select it if it is found. 6947 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6948 lt_cv_path_SED=$lt_ac_sed 6949 break 6950 fi 6951 while true; do 6952 cat conftest.in conftest.in >conftest.tmp 6953 mv conftest.tmp conftest.in 6954 cp conftest.in conftest.nl 6955 echo >>conftest.nl 6956 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 6957 cmp -s conftest.out conftest.nl || break 6958 # 10000 chars as input seems more than enough 6959 test $lt_ac_count -gt 10 && break 6960 lt_ac_count=`expr $lt_ac_count + 1` 6961 if test $lt_ac_count -gt $lt_ac_max; then 6962 lt_ac_max=$lt_ac_count 6963 lt_cv_path_SED=$lt_ac_sed 6964 fi 6965 done 6966done 6967 6968fi 6969 6970SED=$lt_cv_path_SED 6971echo "$as_me:$LINENO: result: $SED" >&5 6972echo "${ECHO_T}$SED" >&6 6973 6974echo "$as_me:$LINENO: checking for egrep" >&5 6975echo $ECHO_N "checking for egrep... $ECHO_C" >&6 6976if test "${ac_cv_prog_egrep+set}" = set; then 6977 echo $ECHO_N "(cached) $ECHO_C" >&6 6978else 6979 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 6980 then ac_cv_prog_egrep='grep -E' 6981 else ac_cv_prog_egrep='egrep' 6982 fi 6983fi 6984echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 6985echo "${ECHO_T}$ac_cv_prog_egrep" >&6 6986 EGREP=$ac_cv_prog_egrep 6987 6988 6989 6990# Check whether --with-gnu-ld or --without-gnu-ld was given. 6991if test "${with_gnu_ld+set}" = set; then 6992 withval="$with_gnu_ld" 6993 test "$withval" = no || with_gnu_ld=yes 6994else 6995 with_gnu_ld=no 6996fi; 6997ac_prog=ld 6998if test "$GCC" = yes; then 6999 # Check if gcc -print-prog-name=ld gives a path. 7000 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 7001echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 7002 case $host in 7003 *-*-mingw*) 7004 # gcc leaves a trailing carriage return which upsets mingw 7005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7006 *) 7007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7008 esac 7009 case $ac_prog in 7010 # Accept absolute paths. 7011 [\\/]* | ?:[\\/]*) 7012 re_direlt='/[^/][^/]*/\.\./' 7013 # Canonicalize the pathname of ld 7014 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 7015 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7016 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 7017 done 7018 test -z "$LD" && LD="$ac_prog" 7019 ;; 7020 "") 7021 # If it fails, then pretend we aren't using GCC. 7022 ac_prog=ld 7023 ;; 7024 *) 7025 # If it is relative, then search for the first ld in PATH. 7026 with_gnu_ld=unknown 7027 ;; 7028 esac 7029elif test "$with_gnu_ld" = yes; then 7030 echo "$as_me:$LINENO: checking for GNU ld" >&5 7031echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 7032else 7033 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7034echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 7035fi 7036if test "${lt_cv_path_LD+set}" = set; then 7037 echo $ECHO_N "(cached) $ECHO_C" >&6 7038else 7039 if test -z "$LD"; then 7040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7041 for ac_dir in $PATH; do 7042 IFS="$lt_save_ifs" 7043 test -z "$ac_dir" && ac_dir=. 7044 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7045 lt_cv_path_LD="$ac_dir/$ac_prog" 7046 # Check to see if the program is GNU ld. I'd rather use --version, 7047 # but apparently some GNU ld's only accept -v. 7048 # Break only if it was the GNU/non-GNU ld that we prefer. 7049 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7050 *GNU* | *'with BFD'*) 7051 test "$with_gnu_ld" != no && break 7052 ;; 7053 *) 7054 test "$with_gnu_ld" != yes && break 7055 ;; 7056 esac 7057 fi 7058 done 7059 IFS="$lt_save_ifs" 7060else 7061 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7062fi 7063fi 7064 7065LD="$lt_cv_path_LD" 7066if test -n "$LD"; then 7067 echo "$as_me:$LINENO: result: $LD" >&5 7068echo "${ECHO_T}$LD" >&6 7069else 7070 echo "$as_me:$LINENO: result: no" >&5 7071echo "${ECHO_T}no" >&6 7072fi 7073test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 7074echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7075 { (exit 1); exit 1; }; } 7076echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7077echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 7078if test "${lt_cv_prog_gnu_ld+set}" = set; then 7079 echo $ECHO_N "(cached) $ECHO_C" >&6 7080else 7081 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7082case `$LD -v 2>&1 </dev/null` in 7083*GNU* | *'with BFD'*) 7084 lt_cv_prog_gnu_ld=yes 7085 ;; 7086*) 7087 lt_cv_prog_gnu_ld=no 7088 ;; 7089esac 7090fi 7091echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 7092echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 7093with_gnu_ld=$lt_cv_prog_gnu_ld 7094 7095 7096echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 7097echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 7098if test "${lt_cv_ld_reload_flag+set}" = set; then 7099 echo $ECHO_N "(cached) $ECHO_C" >&6 7100else 7101 lt_cv_ld_reload_flag='-r' 7102fi 7103echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 7104echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 7105reload_flag=$lt_cv_ld_reload_flag 7106case $reload_flag in 7107"" | " "*) ;; 7108*) reload_flag=" $reload_flag" ;; 7109esac 7110reload_cmds='$LD$reload_flag -o $output$reload_objs' 7111 7112echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 7113echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 7114if test "${lt_cv_path_NM+set}" = set; then 7115 echo $ECHO_N "(cached) $ECHO_C" >&6 7116else 7117 if test -n "$NM"; then 7118 # Let the user override the test. 7119 lt_cv_path_NM="$NM" 7120else 7121 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7122 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 7123 IFS="$lt_save_ifs" 7124 test -z "$ac_dir" && ac_dir=. 7125 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 7126 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7127 # Check to see if the nm accepts a BSD-compat flag. 7128 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7129 # nm: unknown option "B" ignored 7130 # Tru64's nm complains that /dev/null is an invalid object file 7131 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7132 */dev/null* | *'Invalid file or object type'*) 7133 lt_cv_path_NM="$tmp_nm -B" 7134 break 7135 ;; 7136 *) 7137 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7138 */dev/null*) 7139 lt_cv_path_NM="$tmp_nm -p" 7140 break 7141 ;; 7142 *) 7143 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7144 continue # so that we can try to find one that supports BSD flags 7145 ;; 7146 esac 7147 esac 7148 fi 7149 done 7150 IFS="$lt_save_ifs" 7151 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 7152fi 7153fi 7154echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 7155echo "${ECHO_T}$lt_cv_path_NM" >&6 7156NM="$lt_cv_path_NM" 7157 7158echo "$as_me:$LINENO: checking whether ln -s works" >&5 7159echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 7160LN_S=$as_ln_s 7161if test "$LN_S" = "ln -s"; then 7162 echo "$as_me:$LINENO: result: yes" >&5 7163echo "${ECHO_T}yes" >&6 7164else 7165 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 7166echo "${ECHO_T}no, using $LN_S" >&6 7167fi 7168 7169echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 7170echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 7171if test "${lt_cv_deplibs_check_method+set}" = set; then 7172 echo $ECHO_N "(cached) $ECHO_C" >&6 7173else 7174 lt_cv_file_magic_cmd='$MAGIC_CMD' 7175lt_cv_file_magic_test_file= 7176lt_cv_deplibs_check_method='unknown' 7177# Need to set the preceding variable on all platforms that support 7178# interlibrary dependencies. 7179# 'none' -- dependencies not supported. 7180# `unknown' -- same as none, but documents that we really don't know. 7181# 'pass_all' -- all dependencies passed with no checks. 7182# 'test_compile' -- check by making test program. 7183# 'file_magic [[regex]]' -- check by looking for files in library path 7184# which responds to the $file_magic_cmd with a given extended regex. 7185# If you have `file' or equivalent on your system and you're not sure 7186# whether `pass_all' will *always* work, you probably want this one. 7187 7188case $host_os in 7189aix4* | aix5*) 7190 lt_cv_deplibs_check_method=pass_all 7191 ;; 7192 7193beos*) 7194 lt_cv_deplibs_check_method=pass_all 7195 ;; 7196 7197bsdi4*) 7198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7199 lt_cv_file_magic_cmd='/usr/bin/file -L' 7200 lt_cv_file_magic_test_file=/shlib/libc.so 7201 ;; 7202 7203cygwin*) 7204 lt_cv_deplibs_check_method=pass_all 7205 ;; 7206 7207mingw* | pw32*) 7208 # win32_libid is a shell function defined in ltmain.sh 7209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7210 lt_cv_file_magic_cmd='win32_libid' 7211 ;; 7212 7213darwin* | rhapsody*) 7214 # this will be overwritten by pass_all, but leave it in just in case 7215 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 7216 lt_cv_file_magic_cmd='/usr/bin/file -L' 7217 case "$host_os" in 7218 rhapsody* | darwin1.[012]) 7219 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 7220 ;; 7221 *) # Darwin 1.3 on 7222 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 7223 ;; 7224 esac 7225 lt_cv_deplibs_check_method=pass_all 7226 ;; 7227 7228freebsd* | kfreebsd*-gnu) 7229 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 7230 case $host_cpu in 7231 i*86 ) 7232 # Not sure whether the presence of OpenBSD here was a mistake. 7233 # Let's accept both of them until this is cleared up. 7234 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 7235 lt_cv_file_magic_cmd=/usr/bin/file 7236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7237 ;; 7238 esac 7239 else 7240 lt_cv_deplibs_check_method=pass_all 7241 fi 7242 ;; 7243 7244gnu*) 7245 lt_cv_deplibs_check_method=pass_all 7246 ;; 7247 7248hpux10.20* | hpux11*) 7249 lt_cv_file_magic_cmd=/usr/bin/file 7250 case "$host_cpu" in 7251 ia64*) 7252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7253 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7254 ;; 7255 hppa*64*) 7256 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]' 7257 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7258 ;; 7259 *) 7260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 7261 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7262 ;; 7263 esac 7264 ;; 7265 7266irix5* | irix6* | nonstopux*) 7267 case $host_os in 7268 irix5* | nonstopux*) 7269 # this will be overridden with pass_all, but let us keep it just in case 7270 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 7271 ;; 7272 *) 7273 case $LD in 7274 *-32|*"-32 ") libmagic=32-bit;; 7275 *-n32|*"-n32 ") libmagic=N32;; 7276 *-64|*"-64 ") libmagic=64-bit;; 7277 *) libmagic=never-match;; 7278 esac 7279 # this will be overridden with pass_all, but let us keep it just in case 7280 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 7281 ;; 7282 esac 7283 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 7284 lt_cv_deplibs_check_method=pass_all 7285 ;; 7286 7287# This must be Linux ELF. 7288linux*) 7289 case $host_cpu in 7290 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* ) 7291 lt_cv_deplibs_check_method=pass_all ;; 7292 # the debian people say, arm and glibc 2.3.1 works for them with pass_all 7293 arm* ) 7294 lt_cv_deplibs_check_method=pass_all ;; 7295 *) 7296 # glibc up to 2.1.1 does not perform some relocations on ARM 7297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 7298 esac 7299 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 7300 ;; 7301 7302netbsd*) 7303 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 7304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7305 else 7306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7307 fi 7308 ;; 7309 7310newos6*) 7311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7312 lt_cv_file_magic_cmd=/usr/bin/file 7313 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7314 ;; 7315 7316nto-qnx*) 7317 lt_cv_deplibs_check_method=unknown 7318 ;; 7319 7320openbsd*) 7321 lt_cv_file_magic_cmd=/usr/bin/file 7322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 7325 else 7326 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 7327 fi 7328 ;; 7329 7330osf3* | osf4* | osf5*) 7331 # this will be overridden with pass_all, but let us keep it just in case 7332 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 7333 lt_cv_file_magic_test_file=/shlib/libc.so 7334 lt_cv_deplibs_check_method=pass_all 7335 ;; 7336 7337sco3.2v5*) 7338 lt_cv_deplibs_check_method=pass_all 7339 ;; 7340 7341solaris*) 7342 lt_cv_deplibs_check_method=pass_all 7343 lt_cv_file_magic_test_file=/lib/libc.so 7344 ;; 7345 7346sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7347 case $host_vendor in 7348 motorola) 7349 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]' 7350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7351 ;; 7352 ncr) 7353 lt_cv_deplibs_check_method=pass_all 7354 ;; 7355 sequent) 7356 lt_cv_file_magic_cmd='/bin/file' 7357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7358 ;; 7359 sni) 7360 lt_cv_file_magic_cmd='/bin/file' 7361 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7362 lt_cv_file_magic_test_file=/lib/libc.so 7363 ;; 7364 siemens) 7365 lt_cv_deplibs_check_method=pass_all 7366 ;; 7367 esac 7368 ;; 7369 7370sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 7371 lt_cv_deplibs_check_method=pass_all 7372 ;; 7373esac 7374 7375fi 7376echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 7377echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 7378file_magic_cmd=$lt_cv_file_magic_cmd 7379deplibs_check_method=$lt_cv_deplibs_check_method 7380test -z "$deplibs_check_method" && deplibs_check_method=unknown 7381 7382 7383# If no C compiler was specified, use CC. 7384LTCC=${LTCC-"$CC"} 7385 7386# Allow CC to be a program name with arguments. 7387compiler=$CC 7388 7389# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 7390if test "${enable_libtool_lock+set}" = set; then 7391 enableval="$enable_libtool_lock" 7392 7393fi; 7394test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7395 7396# Some flags need to be propagated to the compiler or linker for good 7397# libtool support. 7398case $host in 7399ia64-*-hpux*) 7400 # Find out which ABI we are using. 7401 echo 'int i;' > conftest.$ac_ext 7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7403 (eval $ac_compile) 2>&5 7404 ac_status=$? 7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7406 (exit $ac_status); }; then 7407 case `/usr/bin/file conftest.$ac_objext` in 7408 *ELF-32*) 7409 HPUX_IA64_MODE="32" 7410 ;; 7411 *ELF-64*) 7412 HPUX_IA64_MODE="64" 7413 ;; 7414 esac 7415 fi 7416 rm -rf conftest* 7417 ;; 7418*-*-irix6*) 7419 # Find out which ABI we are using. 7420 echo '#line __oline__ "configure"' > conftest.$ac_ext 7421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7422 (eval $ac_compile) 2>&5 7423 ac_status=$? 7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7425 (exit $ac_status); }; then 7426 if test "$lt_cv_prog_gnu_ld" = yes; then 7427 case `/usr/bin/file conftest.$ac_objext` in 7428 *32-bit*) 7429 LD="${LD-ld} -melf32bsmip" 7430 ;; 7431 *N32*) 7432 LD="${LD-ld} -melf32bmipn32" 7433 ;; 7434 *64-bit*) 7435 LD="${LD-ld} -melf64bmip" 7436 ;; 7437 esac 7438 else 7439 case `/usr/bin/file conftest.$ac_objext` in 7440 *32-bit*) 7441 LD="${LD-ld} -32" 7442 ;; 7443 *N32*) 7444 LD="${LD-ld} -n32" 7445 ;; 7446 *64-bit*) 7447 LD="${LD-ld} -64" 7448 ;; 7449 esac 7450 fi 7451 fi 7452 rm -rf conftest* 7453 ;; 7454 7455x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 7456 # Find out which ABI we are using. 7457 echo 'int i;' > conftest.$ac_ext 7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7459 (eval $ac_compile) 2>&5 7460 ac_status=$? 7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7462 (exit $ac_status); }; then 7463 case "`/usr/bin/file conftest.o`" in 7464 *32-bit*) 7465 LINUX_64_MODE="32" 7466 case $host in 7467 x86_64-*linux*) 7468 LD="${LD-ld} -m elf_i386" 7469 ;; 7470 ppc64-*linux*) 7471 LD="${LD-ld} -m elf32ppclinux" 7472 ;; 7473 s390x-*linux*) 7474 LD="${LD-ld} -m elf_s390" 7475 ;; 7476 sparc64-*linux*) 7477 LD="${LD-ld} -m elf32_sparc" 7478 ;; 7479 esac 7480 ;; 7481 *64-bit*) 7482 LINUX_64_MODE="64" 7483 case $host in 7484 x86_64-*linux*) 7485 LD="${LD-ld} -m elf_x86_64" 7486 ;; 7487 ppc*-*linux*|powerpc*-*linux*) 7488 LD="${LD-ld} -m elf64ppc" 7489 ;; 7490 s390*-*linux*) 7491 LD="${LD-ld} -m elf64_s390" 7492 ;; 7493 sparc*-*linux*) 7494 LD="${LD-ld} -m elf64_sparc" 7495 ;; 7496 esac 7497 ;; 7498 esac 7499 fi 7500 rm -rf conftest* 7501 ;; 7502 7503*-*-sco3.2v5*) 7504 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7505 SAVE_CFLAGS="$CFLAGS" 7506 CFLAGS="$CFLAGS -belf" 7507 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7508echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 7509if test "${lt_cv_cc_needs_belf+set}" = set; then 7510 echo $ECHO_N "(cached) $ECHO_C" >&6 7511else 7512 ac_ext=c 7513ac_cpp='$CPP $CPPFLAGS' 7514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7516ac_compiler_gnu=$ac_cv_c_compiler_gnu 7517 7518 cat >conftest.$ac_ext <<_ACEOF 7519/* confdefs.h. */ 7520_ACEOF 7521cat confdefs.h >>conftest.$ac_ext 7522cat >>conftest.$ac_ext <<_ACEOF 7523/* end confdefs.h. */ 7524 7525int 7526main () 7527{ 7528 7529 ; 7530 return 0; 7531} 7532_ACEOF 7533rm -f conftest.$ac_objext conftest$ac_exeext 7534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7535 (eval $ac_link) 2>conftest.er1 7536 ac_status=$? 7537 grep -v '^ *+' conftest.er1 >conftest.err 7538 rm -f conftest.er1 7539 cat conftest.err >&5 7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7541 (exit $ac_status); } && 7542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7544 (eval $ac_try) 2>&5 7545 ac_status=$? 7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7547 (exit $ac_status); }; } && 7548 { ac_try='test -s conftest$ac_exeext' 7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7550 (eval $ac_try) 2>&5 7551 ac_status=$? 7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7553 (exit $ac_status); }; }; then 7554 lt_cv_cc_needs_belf=yes 7555else 7556 echo "$as_me: failed program was:" >&5 7557sed 's/^/| /' conftest.$ac_ext >&5 7558 7559lt_cv_cc_needs_belf=no 7560fi 7561rm -f conftest.err conftest.$ac_objext \ 7562 conftest$ac_exeext conftest.$ac_ext 7563 ac_ext=c 7564ac_cpp='$CPP $CPPFLAGS' 7565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7567ac_compiler_gnu=$ac_cv_c_compiler_gnu 7568 7569fi 7570echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7571echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 7572 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7574 CFLAGS="$SAVE_CFLAGS" 7575 fi 7576 ;; 7577 7578esac 7579 7580need_locks="$enable_libtool_lock" 7581 7582 7583 7584echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7585echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 7586if test "${ac_cv_header_stdc+set}" = set; then 7587 echo $ECHO_N "(cached) $ECHO_C" >&6 7588else 7589 cat >conftest.$ac_ext <<_ACEOF 7590/* confdefs.h. */ 7591_ACEOF 7592cat confdefs.h >>conftest.$ac_ext 7593cat >>conftest.$ac_ext <<_ACEOF 7594/* end confdefs.h. */ 7595#include <stdlib.h> 7596#include <stdarg.h> 7597#include <string.h> 7598#include <float.h> 7599 7600int 7601main () 7602{ 7603 7604 ; 7605 return 0; 7606} 7607_ACEOF 7608rm -f conftest.$ac_objext 7609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7610 (eval $ac_compile) 2>conftest.er1 7611 ac_status=$? 7612 grep -v '^ *+' conftest.er1 >conftest.err 7613 rm -f conftest.er1 7614 cat conftest.err >&5 7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7616 (exit $ac_status); } && 7617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7619 (eval $ac_try) 2>&5 7620 ac_status=$? 7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7622 (exit $ac_status); }; } && 7623 { ac_try='test -s conftest.$ac_objext' 7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7625 (eval $ac_try) 2>&5 7626 ac_status=$? 7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7628 (exit $ac_status); }; }; then 7629 ac_cv_header_stdc=yes 7630else 7631 echo "$as_me: failed program was:" >&5 7632sed 's/^/| /' conftest.$ac_ext >&5 7633 7634ac_cv_header_stdc=no 7635fi 7636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7637 7638if test $ac_cv_header_stdc = yes; then 7639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7640 cat >conftest.$ac_ext <<_ACEOF 7641/* confdefs.h. */ 7642_ACEOF 7643cat confdefs.h >>conftest.$ac_ext 7644cat >>conftest.$ac_ext <<_ACEOF 7645/* end confdefs.h. */ 7646#include <string.h> 7647 7648_ACEOF 7649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7650 $EGREP "memchr" >/dev/null 2>&1; then 7651 : 7652else 7653 ac_cv_header_stdc=no 7654fi 7655rm -f conftest* 7656 7657fi 7658 7659if test $ac_cv_header_stdc = yes; then 7660 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7661 cat >conftest.$ac_ext <<_ACEOF 7662/* confdefs.h. */ 7663_ACEOF 7664cat confdefs.h >>conftest.$ac_ext 7665cat >>conftest.$ac_ext <<_ACEOF 7666/* end confdefs.h. */ 7667#include <stdlib.h> 7668 7669_ACEOF 7670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7671 $EGREP "free" >/dev/null 2>&1; then 7672 : 7673else 7674 ac_cv_header_stdc=no 7675fi 7676rm -f conftest* 7677 7678fi 7679 7680if test $ac_cv_header_stdc = yes; then 7681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7682 if test "$cross_compiling" = yes; then 7683 : 7684else 7685 cat >conftest.$ac_ext <<_ACEOF 7686/* confdefs.h. */ 7687_ACEOF 7688cat confdefs.h >>conftest.$ac_ext 7689cat >>conftest.$ac_ext <<_ACEOF 7690/* end confdefs.h. */ 7691#include <ctype.h> 7692#if ((' ' & 0x0FF) == 0x020) 7693# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7694# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7695#else 7696# define ISLOWER(c) \ 7697 (('a' <= (c) && (c) <= 'i') \ 7698 || ('j' <= (c) && (c) <= 'r') \ 7699 || ('s' <= (c) && (c) <= 'z')) 7700# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7701#endif 7702 7703#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7704int 7705main () 7706{ 7707 int i; 7708 for (i = 0; i < 256; i++) 7709 if (XOR (islower (i), ISLOWER (i)) 7710 || toupper (i) != TOUPPER (i)) 7711 exit(2); 7712 exit (0); 7713} 7714_ACEOF 7715rm -f conftest$ac_exeext 7716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7717 (eval $ac_link) 2>&5 7718 ac_status=$? 7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7722 (eval $ac_try) 2>&5 7723 ac_status=$? 7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7725 (exit $ac_status); }; }; then 7726 : 7727else 7728 echo "$as_me: program exited with status $ac_status" >&5 7729echo "$as_me: failed program was:" >&5 7730sed 's/^/| /' conftest.$ac_ext >&5 7731 7732( exit $ac_status ) 7733ac_cv_header_stdc=no 7734fi 7735rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7736fi 7737fi 7738fi 7739echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7740echo "${ECHO_T}$ac_cv_header_stdc" >&6 7741if test $ac_cv_header_stdc = yes; then 7742 7743cat >>confdefs.h <<\_ACEOF 7744@%:@define STDC_HEADERS 1 7745_ACEOF 7746 7747fi 7748 7749# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7760 inttypes.h stdint.h unistd.h 7761do 7762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7763echo "$as_me:$LINENO: checking for $ac_header" >&5 7764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7765if eval "test \"\${$as_ac_Header+set}\" = set"; then 7766 echo $ECHO_N "(cached) $ECHO_C" >&6 7767else 7768 cat >conftest.$ac_ext <<_ACEOF 7769/* confdefs.h. */ 7770_ACEOF 7771cat confdefs.h >>conftest.$ac_ext 7772cat >>conftest.$ac_ext <<_ACEOF 7773/* end confdefs.h. */ 7774$ac_includes_default 7775 7776@%:@include <$ac_header> 7777_ACEOF 7778rm -f conftest.$ac_objext 7779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7780 (eval $ac_compile) 2>conftest.er1 7781 ac_status=$? 7782 grep -v '^ *+' conftest.er1 >conftest.err 7783 rm -f conftest.er1 7784 cat conftest.err >&5 7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7786 (exit $ac_status); } && 7787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7789 (eval $ac_try) 2>&5 7790 ac_status=$? 7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7792 (exit $ac_status); }; } && 7793 { ac_try='test -s conftest.$ac_objext' 7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7795 (eval $ac_try) 2>&5 7796 ac_status=$? 7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7798 (exit $ac_status); }; }; then 7799 eval "$as_ac_Header=yes" 7800else 7801 echo "$as_me: failed program was:" >&5 7802sed 's/^/| /' conftest.$ac_ext >&5 7803 7804eval "$as_ac_Header=no" 7805fi 7806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7807fi 7808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7810if test `eval echo '${'$as_ac_Header'}'` = yes; then 7811 cat >>confdefs.h <<_ACEOF 7812@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7813_ACEOF 7814 7815fi 7816 7817done 7818 7819 7820 7821for ac_header in dlfcn.h 7822do 7823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7824if eval "test \"\${$as_ac_Header+set}\" = set"; then 7825 echo "$as_me:$LINENO: checking for $ac_header" >&5 7826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7827if eval "test \"\${$as_ac_Header+set}\" = set"; then 7828 echo $ECHO_N "(cached) $ECHO_C" >&6 7829fi 7830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7832else 7833 # Is the header compilable? 7834echo "$as_me:$LINENO: checking $ac_header usability" >&5 7835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7836cat >conftest.$ac_ext <<_ACEOF 7837/* confdefs.h. */ 7838_ACEOF 7839cat confdefs.h >>conftest.$ac_ext 7840cat >>conftest.$ac_ext <<_ACEOF 7841/* end confdefs.h. */ 7842$ac_includes_default 7843@%:@include <$ac_header> 7844_ACEOF 7845rm -f conftest.$ac_objext 7846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7847 (eval $ac_compile) 2>conftest.er1 7848 ac_status=$? 7849 grep -v '^ *+' conftest.er1 >conftest.err 7850 rm -f conftest.er1 7851 cat conftest.err >&5 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 (exit $ac_status); } && 7854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7856 (eval $ac_try) 2>&5 7857 ac_status=$? 7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7859 (exit $ac_status); }; } && 7860 { ac_try='test -s conftest.$ac_objext' 7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7862 (eval $ac_try) 2>&5 7863 ac_status=$? 7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7865 (exit $ac_status); }; }; then 7866 ac_header_compiler=yes 7867else 7868 echo "$as_me: failed program was:" >&5 7869sed 's/^/| /' conftest.$ac_ext >&5 7870 7871ac_header_compiler=no 7872fi 7873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7875echo "${ECHO_T}$ac_header_compiler" >&6 7876 7877# Is the header present? 7878echo "$as_me:$LINENO: checking $ac_header presence" >&5 7879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7880cat >conftest.$ac_ext <<_ACEOF 7881/* confdefs.h. */ 7882_ACEOF 7883cat confdefs.h >>conftest.$ac_ext 7884cat >>conftest.$ac_ext <<_ACEOF 7885/* end confdefs.h. */ 7886@%:@include <$ac_header> 7887_ACEOF 7888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7890 ac_status=$? 7891 grep -v '^ *+' conftest.er1 >conftest.err 7892 rm -f conftest.er1 7893 cat conftest.err >&5 7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7895 (exit $ac_status); } >/dev/null; then 7896 if test -s conftest.err; then 7897 ac_cpp_err=$ac_c_preproc_warn_flag 7898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7899 else 7900 ac_cpp_err= 7901 fi 7902else 7903 ac_cpp_err=yes 7904fi 7905if test -z "$ac_cpp_err"; then 7906 ac_header_preproc=yes 7907else 7908 echo "$as_me: failed program was:" >&5 7909sed 's/^/| /' conftest.$ac_ext >&5 7910 7911 ac_header_preproc=no 7912fi 7913rm -f conftest.err conftest.$ac_ext 7914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7915echo "${ECHO_T}$ac_header_preproc" >&6 7916 7917# So? What about this header? 7918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7919 yes:no: ) 7920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7924 ac_header_preproc=yes 7925 ;; 7926 no:yes:* ) 7927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7939 ( 7940 cat <<\_ASBOX 7941@%:@@%:@ ------------------------------------------ @%:@@%:@ 7942@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ 7943@%:@@%:@ ------------------------------------------ @%:@@%:@ 7944_ASBOX 7945 ) | 7946 sed "s/^/$as_me: WARNING: /" >&2 7947 ;; 7948esac 7949echo "$as_me:$LINENO: checking for $ac_header" >&5 7950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7951if eval "test \"\${$as_ac_Header+set}\" = set"; then 7952 echo $ECHO_N "(cached) $ECHO_C" >&6 7953else 7954 eval "$as_ac_Header=\$ac_header_preproc" 7955fi 7956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7958 7959fi 7960if test `eval echo '${'$as_ac_Header'}'` = yes; then 7961 cat >>confdefs.h <<_ACEOF 7962@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7963_ACEOF 7964 7965fi 7966 7967done 7968 7969ac_ext=f 7970ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7971ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7972ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7973if test -n "$ac_tool_prefix"; then 7974 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 7975 do 7976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7977set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7978echo "$as_me:$LINENO: checking for $ac_word" >&5 7979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7980if test "${ac_cv_prog_F77+set}" = set; then 7981 echo $ECHO_N "(cached) $ECHO_C" >&6 7982else 7983 if test -n "$F77"; then 7984 ac_cv_prog_F77="$F77" # Let the user override the test. 7985else 7986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7987for as_dir in $PATH 7988do 7989 IFS=$as_save_IFS 7990 test -z "$as_dir" && as_dir=. 7991 for ac_exec_ext in '' $ac_executable_extensions; do 7992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7993 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7995 break 2 7996 fi 7997done 7998done 7999 8000fi 8001fi 8002F77=$ac_cv_prog_F77 8003if test -n "$F77"; then 8004 echo "$as_me:$LINENO: result: $F77" >&5 8005echo "${ECHO_T}$F77" >&6 8006else 8007 echo "$as_me:$LINENO: result: no" >&5 8008echo "${ECHO_T}no" >&6 8009fi 8010 8011 test -n "$F77" && break 8012 done 8013fi 8014if test -z "$F77"; then 8015 ac_ct_F77=$F77 8016 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 8017do 8018 # Extract the first word of "$ac_prog", so it can be a program name with args. 8019set dummy $ac_prog; ac_word=$2 8020echo "$as_me:$LINENO: checking for $ac_word" >&5 8021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8022if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 8023 echo $ECHO_N "(cached) $ECHO_C" >&6 8024else 8025 if test -n "$ac_ct_F77"; then 8026 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 8027else 8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8029for as_dir in $PATH 8030do 8031 IFS=$as_save_IFS 8032 test -z "$as_dir" && as_dir=. 8033 for ac_exec_ext in '' $ac_executable_extensions; do 8034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8035 ac_cv_prog_ac_ct_F77="$ac_prog" 8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8037 break 2 8038 fi 8039done 8040done 8041 8042fi 8043fi 8044ac_ct_F77=$ac_cv_prog_ac_ct_F77 8045if test -n "$ac_ct_F77"; then 8046 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 8047echo "${ECHO_T}$ac_ct_F77" >&6 8048else 8049 echo "$as_me:$LINENO: result: no" >&5 8050echo "${ECHO_T}no" >&6 8051fi 8052 8053 test -n "$ac_ct_F77" && break 8054done 8055 8056 F77=$ac_ct_F77 8057fi 8058 8059 8060# Provide some information about the compiler. 8061echo "$as_me:__oline__:" \ 8062 "checking for Fortran 77 compiler version" >&5 8063ac_compiler=`set X $ac_compile; echo $2` 8064{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 8065 (eval $ac_compiler --version </dev/null >&5) 2>&5 8066 ac_status=$? 8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8068 (exit $ac_status); } 8069{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 8070 (eval $ac_compiler -v </dev/null >&5) 2>&5 8071 ac_status=$? 8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8073 (exit $ac_status); } 8074{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 8075 (eval $ac_compiler -V </dev/null >&5) 2>&5 8076 ac_status=$? 8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8078 (exit $ac_status); } 8079rm -f a.out 8080 8081# If we don't use `.F' as extension, the preprocessor is not run on the 8082# input file. (Note that this only needs to work for GNU compilers.) 8083ac_save_ext=$ac_ext 8084ac_ext=F 8085echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 8086echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 8087if test "${ac_cv_f77_compiler_gnu+set}" = set; then 8088 echo $ECHO_N "(cached) $ECHO_C" >&6 8089else 8090 cat >conftest.$ac_ext <<_ACEOF 8091 program main 8092#ifndef __GNUC__ 8093 choke me 8094#endif 8095 8096 end 8097_ACEOF 8098rm -f conftest.$ac_objext 8099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8100 (eval $ac_compile) 2>conftest.er1 8101 ac_status=$? 8102 grep -v '^ *+' conftest.er1 >conftest.err 8103 rm -f conftest.er1 8104 cat conftest.err >&5 8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8106 (exit $ac_status); } && 8107 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8109 (eval $ac_try) 2>&5 8110 ac_status=$? 8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 (exit $ac_status); }; } && 8113 { ac_try='test -s conftest.$ac_objext' 8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8115 (eval $ac_try) 2>&5 8116 ac_status=$? 8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8118 (exit $ac_status); }; }; then 8119 ac_compiler_gnu=yes 8120else 8121 echo "$as_me: failed program was:" >&5 8122sed 's/^/| /' conftest.$ac_ext >&5 8123 8124ac_compiler_gnu=no 8125fi 8126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8127ac_cv_f77_compiler_gnu=$ac_compiler_gnu 8128 8129fi 8130echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 8131echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 8132ac_ext=$ac_save_ext 8133ac_test_FFLAGS=${FFLAGS+set} 8134ac_save_FFLAGS=$FFLAGS 8135FFLAGS= 8136echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 8137echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 8138if test "${ac_cv_prog_f77_g+set}" = set; then 8139 echo $ECHO_N "(cached) $ECHO_C" >&6 8140else 8141 FFLAGS=-g 8142cat >conftest.$ac_ext <<_ACEOF 8143 program main 8144 8145 end 8146_ACEOF 8147rm -f conftest.$ac_objext 8148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8149 (eval $ac_compile) 2>conftest.er1 8150 ac_status=$? 8151 grep -v '^ *+' conftest.er1 >conftest.err 8152 rm -f conftest.er1 8153 cat conftest.err >&5 8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8155 (exit $ac_status); } && 8156 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8158 (eval $ac_try) 2>&5 8159 ac_status=$? 8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8161 (exit $ac_status); }; } && 8162 { ac_try='test -s conftest.$ac_objext' 8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8164 (eval $ac_try) 2>&5 8165 ac_status=$? 8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8167 (exit $ac_status); }; }; then 8168 ac_cv_prog_f77_g=yes 8169else 8170 echo "$as_me: failed program was:" >&5 8171sed 's/^/| /' conftest.$ac_ext >&5 8172 8173ac_cv_prog_f77_g=no 8174fi 8175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8176 8177fi 8178echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 8179echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 8180if test "$ac_test_FFLAGS" = set; then 8181 FFLAGS=$ac_save_FFLAGS 8182elif test $ac_cv_prog_f77_g = yes; then 8183 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8184 FFLAGS="-g -O2" 8185 else 8186 FFLAGS="-g" 8187 fi 8188else 8189 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 8190 FFLAGS="-O2" 8191 else 8192 FFLAGS= 8193 fi 8194fi 8195 8196G77=`test $ac_compiler_gnu = yes && echo yes` 8197ac_ext=c 8198ac_cpp='$CPP $CPPFLAGS' 8199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8201ac_compiler_gnu=$ac_cv_c_compiler_gnu 8202 8203 8204 8205# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 8206 8207# find the maximum length of command line arguments 8208echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 8209echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 8210if test "${lt_cv_sys_max_cmd_len+set}" = set; then 8211 echo $ECHO_N "(cached) $ECHO_C" >&6 8212else 8213 i=0 8214 testring="ABCD" 8215 8216 case $build_os in 8217 msdosdjgpp*) 8218 # On DJGPP, this test can blow up pretty badly due to problems in libc 8219 # (any single argument exceeding 2000 bytes causes a buffer overrun 8220 # during glob expansion). Even if it were fixed, the result of this 8221 # check would be larger than it should be. 8222 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8223 ;; 8224 8225 gnu*) 8226 # Under GNU Hurd, this test is not required because there is 8227 # no limit to the length of command line arguments. 8228 # Libtool will interpret -1 as no limit whatsoever 8229 lt_cv_sys_max_cmd_len=-1; 8230 ;; 8231 8232 cygwin* | mingw*) 8233 # On Win9x/ME, this test blows up -- it succeeds, but takes 8234 # about 5 minutes as the teststring grows exponentially. 8235 # Worse, since 9x/ME are not pre-emptively multitasking, 8236 # you end up with a "frozen" computer, even though with patience 8237 # the test eventually succeeds (with a max line length of 256k). 8238 # Instead, let's just punt: use the minimum linelength reported by 8239 # all of the supported platforms: 8192 (on NT/2K/XP). 8240 lt_cv_sys_max_cmd_len=8192; 8241 ;; 8242 8243 *) 8244 # If test is not a shell built-in, we'll probably end up computing a 8245 # maximum length that is only half of the actual maximum length, but 8246 # we can't tell. 8247 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 8248 = "XX$testring") >/dev/null 2>&1 && 8249 new_result=`expr "X$testring" : ".*" 2>&1` && 8250 lt_cv_sys_max_cmd_len=$new_result && 8251 test $i != 17 # 1/2 MB should be enough 8252 do 8253 i=`expr $i + 1` 8254 testring=$testring$testring 8255 done 8256 testring= 8257 # Add a significant safety factor because C++ compilers can tack on massive 8258 # amounts of additional arguments before passing them to the linker. 8259 # It appears as though 1/2 is a usable value. 8260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8261 ;; 8262 esac 8263 8264fi 8265 8266if test -n $lt_cv_sys_max_cmd_len ; then 8267 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 8268echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 8269else 8270 echo "$as_me:$LINENO: result: none" >&5 8271echo "${ECHO_T}none" >&6 8272fi 8273 8274 8275 8276 8277# Check for command to grab the raw symbol name followed by C symbol from nm. 8278echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 8279echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 8280if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 8281 echo $ECHO_N "(cached) $ECHO_C" >&6 8282else 8283 8284# These are sane defaults that work on at least a few old systems. 8285# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8286 8287# Character class describing NM global symbol codes. 8288symcode='[BCDEGRST]' 8289 8290# Regexp to match symbols that can be accessed directly from C. 8291sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8292 8293# Transform the above into a raw symbol and a C symbol. 8294symxfrm='\1 \2\3 \3' 8295 8296# Transform an extracted symbol line into a proper C declaration 8297lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 8298 8299# Transform an extracted symbol line into symbol name and symbol address 8300lt_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'" 8301 8302# Define system-specific variables. 8303case $host_os in 8304aix*) 8305 symcode='[BCDT]' 8306 ;; 8307cygwin* | mingw* | pw32*) 8308 symcode='[ABCDGISTW]' 8309 ;; 8310hpux*) # Its linker distinguishes data from code symbols 8311 if test "$host_cpu" = ia64; then 8312 symcode='[ABCDEGRST]' 8313 fi 8314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8315 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'" 8316 ;; 8317irix* | nonstopux*) 8318 symcode='[BCDEGRST]' 8319 ;; 8320osf*) 8321 symcode='[BCDEGQRST]' 8322 ;; 8323solaris* | sysv5*) 8324 symcode='[BDT]' 8325 ;; 8326sysv4) 8327 symcode='[DFNSTU]' 8328 ;; 8329esac 8330 8331# Handle CRLF in mingw tool chain 8332opt_cr= 8333case $build_os in 8334mingw*) 8335 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8336 ;; 8337esac 8338 8339# If we're using GNU nm, then use its standard symbol codes. 8340case `$NM -V 2>&1` in 8341*GNU* | *'with BFD'*) 8342 symcode='[ABCDGISTW]' ;; 8343esac 8344 8345# Try without a prefix undercore, then with it. 8346for ac_symprfx in "" "_"; do 8347 8348 # Write the raw and C identifiers. 8349 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 8350 8351 # Check to see that the pipe works correctly. 8352 pipe_works=no 8353 8354 rm -f conftest* 8355 cat > conftest.$ac_ext <<EOF 8356#ifdef __cplusplus 8357extern "C" { 8358#endif 8359char nm_test_var; 8360void nm_test_func(){} 8361#ifdef __cplusplus 8362} 8363#endif 8364int main(){nm_test_var='a';nm_test_func();return(0);} 8365EOF 8366 8367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8368 (eval $ac_compile) 2>&5 8369 ac_status=$? 8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8371 (exit $ac_status); }; then 8372 # Now try to grab the symbols. 8373 nlist=conftest.nm 8374 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 8375 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 8376 ac_status=$? 8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8378 (exit $ac_status); } && test -s "$nlist"; then 8379 # Try sorting and uniquifying the output. 8380 if sort "$nlist" | uniq > "$nlist"T; then 8381 mv -f "$nlist"T "$nlist" 8382 else 8383 rm -f "$nlist"T 8384 fi 8385 8386 # Make sure that we snagged all the symbols we need. 8387 if grep ' nm_test_var$' "$nlist" >/dev/null; then 8388 if grep ' nm_test_func$' "$nlist" >/dev/null; then 8389 cat <<EOF > conftest.$ac_ext 8390#ifdef __cplusplus 8391extern "C" { 8392#endif 8393 8394EOF 8395 # Now generate the symbol file. 8396 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 8397 8398 cat <<EOF >> conftest.$ac_ext 8399#if defined (__STDC__) && __STDC__ 8400# define lt_ptr_t void * 8401#else 8402# define lt_ptr_t char * 8403# define const 8404#endif 8405 8406/* The mapping between symbol names and symbols. */ 8407const struct { 8408 const char *name; 8409 lt_ptr_t address; 8410} 8411lt_preloaded_symbols[] = 8412{ 8413EOF 8414 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 8415 cat <<\EOF >> conftest.$ac_ext 8416 {0, (lt_ptr_t) 0} 8417}; 8418 8419#ifdef __cplusplus 8420} 8421#endif 8422EOF 8423 # Now try linking the two files. 8424 mv conftest.$ac_objext conftstm.$ac_objext 8425 lt_save_LIBS="$LIBS" 8426 lt_save_CFLAGS="$CFLAGS" 8427 LIBS="conftstm.$ac_objext" 8428 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8430 (eval $ac_link) 2>&5 8431 ac_status=$? 8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8433 (exit $ac_status); } && test -s conftest${ac_exeext}; then 8434 pipe_works=yes 8435 fi 8436 LIBS="$lt_save_LIBS" 8437 CFLAGS="$lt_save_CFLAGS" 8438 else 8439 echo "cannot find nm_test_func in $nlist" >&5 8440 fi 8441 else 8442 echo "cannot find nm_test_var in $nlist" >&5 8443 fi 8444 else 8445 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8446 fi 8447 else 8448 echo "$progname: failed program was:" >&5 8449 cat conftest.$ac_ext >&5 8450 fi 8451 rm -f conftest* conftst* 8452 8453 # Do not use the global_symbol_pipe unless it works. 8454 if test "$pipe_works" = yes; then 8455 break 8456 else 8457 lt_cv_sys_global_symbol_pipe= 8458 fi 8459done 8460 8461fi 8462 8463if test -z "$lt_cv_sys_global_symbol_pipe"; then 8464 lt_cv_sys_global_symbol_to_cdecl= 8465fi 8466if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8467 echo "$as_me:$LINENO: result: failed" >&5 8468echo "${ECHO_T}failed" >&6 8469else 8470 echo "$as_me:$LINENO: result: ok" >&5 8471echo "${ECHO_T}ok" >&6 8472fi 8473 8474echo "$as_me:$LINENO: checking for objdir" >&5 8475echo $ECHO_N "checking for objdir... $ECHO_C" >&6 8476if test "${lt_cv_objdir+set}" = set; then 8477 echo $ECHO_N "(cached) $ECHO_C" >&6 8478else 8479 rm -f .libs 2>/dev/null 8480mkdir .libs 2>/dev/null 8481if test -d .libs; then 8482 lt_cv_objdir=.libs 8483else 8484 # MS-DOS does not allow filenames that begin with a dot. 8485 lt_cv_objdir=_libs 8486fi 8487rmdir .libs 2>/dev/null 8488fi 8489echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8490echo "${ECHO_T}$lt_cv_objdir" >&6 8491objdir=$lt_cv_objdir 8492 8493 8494 8495 8496 8497case $host_os in 8498aix3*) 8499 # AIX sometimes has problems with the GCC collect2 program. For some 8500 # reason, if we set the COLLECT_NAMES environment variable, the problems 8501 # vanish in a puff of smoke. 8502 if test "X${COLLECT_NAMES+set}" != Xset; then 8503 COLLECT_NAMES= 8504 export COLLECT_NAMES 8505 fi 8506 ;; 8507esac 8508 8509# Sed substitution that helps us do robust quoting. It backslashifies 8510# metacharacters that are still active within double-quoted strings. 8511Xsed='sed -e s/^X//' 8512sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 8513 8514# Same as above, but do not quote variable references. 8515double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 8516 8517# Sed substitution to delay expansion of an escaped shell variable in a 8518# double_quote_subst'ed string. 8519delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8520 8521# Sed substitution to avoid accidental globbing in evaled expressions 8522no_glob_subst='s/\*/\\\*/g' 8523 8524# Constants: 8525rm="rm -f" 8526 8527# Global variables: 8528default_ofile=libtool 8529can_build_shared=yes 8530 8531# All known linkers require a `.a' archive for static linking (except M$VC, 8532# which needs '.lib'). 8533libext=a 8534ltmain="$ac_aux_dir/ltmain.sh" 8535ofile="$default_ofile" 8536with_gnu_ld="$lt_cv_prog_gnu_ld" 8537 8538if test -n "$ac_tool_prefix"; then 8539 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8540set dummy ${ac_tool_prefix}ar; ac_word=$2 8541echo "$as_me:$LINENO: checking for $ac_word" >&5 8542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8543if test "${ac_cv_prog_AR+set}" = set; then 8544 echo $ECHO_N "(cached) $ECHO_C" >&6 8545else 8546 if test -n "$AR"; then 8547 ac_cv_prog_AR="$AR" # Let the user override the test. 8548else 8549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8550for as_dir in $PATH 8551do 8552 IFS=$as_save_IFS 8553 test -z "$as_dir" && as_dir=. 8554 for ac_exec_ext in '' $ac_executable_extensions; do 8555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8556 ac_cv_prog_AR="${ac_tool_prefix}ar" 8557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8558 break 2 8559 fi 8560done 8561done 8562 8563fi 8564fi 8565AR=$ac_cv_prog_AR 8566if test -n "$AR"; then 8567 echo "$as_me:$LINENO: result: $AR" >&5 8568echo "${ECHO_T}$AR" >&6 8569else 8570 echo "$as_me:$LINENO: result: no" >&5 8571echo "${ECHO_T}no" >&6 8572fi 8573 8574fi 8575if test -z "$ac_cv_prog_AR"; then 8576 ac_ct_AR=$AR 8577 # Extract the first word of "ar", so it can be a program name with args. 8578set dummy ar; ac_word=$2 8579echo "$as_me:$LINENO: checking for $ac_word" >&5 8580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8581if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 8582 echo $ECHO_N "(cached) $ECHO_C" >&6 8583else 8584 if test -n "$ac_ct_AR"; then 8585 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8586else 8587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8588for as_dir in $PATH 8589do 8590 IFS=$as_save_IFS 8591 test -z "$as_dir" && as_dir=. 8592 for ac_exec_ext in '' $ac_executable_extensions; do 8593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8594 ac_cv_prog_ac_ct_AR="ar" 8595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8596 break 2 8597 fi 8598done 8599done 8600 8601 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 8602fi 8603fi 8604ac_ct_AR=$ac_cv_prog_ac_ct_AR 8605if test -n "$ac_ct_AR"; then 8606 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 8607echo "${ECHO_T}$ac_ct_AR" >&6 8608else 8609 echo "$as_me:$LINENO: result: no" >&5 8610echo "${ECHO_T}no" >&6 8611fi 8612 8613 AR=$ac_ct_AR 8614else 8615 AR="$ac_cv_prog_AR" 8616fi 8617 8618if test -n "$ac_tool_prefix"; then 8619 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8620set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8621echo "$as_me:$LINENO: checking for $ac_word" >&5 8622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8623if test "${ac_cv_prog_RANLIB+set}" = set; then 8624 echo $ECHO_N "(cached) $ECHO_C" >&6 8625else 8626 if test -n "$RANLIB"; then 8627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8628else 8629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8630for as_dir in $PATH 8631do 8632 IFS=$as_save_IFS 8633 test -z "$as_dir" && as_dir=. 8634 for ac_exec_ext in '' $ac_executable_extensions; do 8635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8638 break 2 8639 fi 8640done 8641done 8642 8643fi 8644fi 8645RANLIB=$ac_cv_prog_RANLIB 8646if test -n "$RANLIB"; then 8647 echo "$as_me:$LINENO: result: $RANLIB" >&5 8648echo "${ECHO_T}$RANLIB" >&6 8649else 8650 echo "$as_me:$LINENO: result: no" >&5 8651echo "${ECHO_T}no" >&6 8652fi 8653 8654fi 8655if test -z "$ac_cv_prog_RANLIB"; then 8656 ac_ct_RANLIB=$RANLIB 8657 # Extract the first word of "ranlib", so it can be a program name with args. 8658set dummy ranlib; ac_word=$2 8659echo "$as_me:$LINENO: checking for $ac_word" >&5 8660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8661if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 8662 echo $ECHO_N "(cached) $ECHO_C" >&6 8663else 8664 if test -n "$ac_ct_RANLIB"; then 8665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8666else 8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8668for as_dir in $PATH 8669do 8670 IFS=$as_save_IFS 8671 test -z "$as_dir" && as_dir=. 8672 for ac_exec_ext in '' $ac_executable_extensions; do 8673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8674 ac_cv_prog_ac_ct_RANLIB="ranlib" 8675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8676 break 2 8677 fi 8678done 8679done 8680 8681 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 8682fi 8683fi 8684ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8685if test -n "$ac_ct_RANLIB"; then 8686 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 8687echo "${ECHO_T}$ac_ct_RANLIB" >&6 8688else 8689 echo "$as_me:$LINENO: result: no" >&5 8690echo "${ECHO_T}no" >&6 8691fi 8692 8693 RANLIB=$ac_ct_RANLIB 8694else 8695 RANLIB="$ac_cv_prog_RANLIB" 8696fi 8697 8698if test -n "$ac_tool_prefix"; then 8699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8700set dummy ${ac_tool_prefix}strip; ac_word=$2 8701echo "$as_me:$LINENO: checking for $ac_word" >&5 8702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8703if test "${ac_cv_prog_STRIP+set}" = set; then 8704 echo $ECHO_N "(cached) $ECHO_C" >&6 8705else 8706 if test -n "$STRIP"; then 8707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8708else 8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8710for as_dir in $PATH 8711do 8712 IFS=$as_save_IFS 8713 test -z "$as_dir" && as_dir=. 8714 for ac_exec_ext in '' $ac_executable_extensions; do 8715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8716 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8718 break 2 8719 fi 8720done 8721done 8722 8723fi 8724fi 8725STRIP=$ac_cv_prog_STRIP 8726if test -n "$STRIP"; then 8727 echo "$as_me:$LINENO: result: $STRIP" >&5 8728echo "${ECHO_T}$STRIP" >&6 8729else 8730 echo "$as_me:$LINENO: result: no" >&5 8731echo "${ECHO_T}no" >&6 8732fi 8733 8734fi 8735if test -z "$ac_cv_prog_STRIP"; then 8736 ac_ct_STRIP=$STRIP 8737 # Extract the first word of "strip", so it can be a program name with args. 8738set dummy strip; ac_word=$2 8739echo "$as_me:$LINENO: checking for $ac_word" >&5 8740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8741if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8742 echo $ECHO_N "(cached) $ECHO_C" >&6 8743else 8744 if test -n "$ac_ct_STRIP"; then 8745 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8746else 8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8748for as_dir in $PATH 8749do 8750 IFS=$as_save_IFS 8751 test -z "$as_dir" && as_dir=. 8752 for ac_exec_ext in '' $ac_executable_extensions; do 8753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8754 ac_cv_prog_ac_ct_STRIP="strip" 8755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8756 break 2 8757 fi 8758done 8759done 8760 8761 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 8762fi 8763fi 8764ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8765if test -n "$ac_ct_STRIP"; then 8766 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8767echo "${ECHO_T}$ac_ct_STRIP" >&6 8768else 8769 echo "$as_me:$LINENO: result: no" >&5 8770echo "${ECHO_T}no" >&6 8771fi 8772 8773 STRIP=$ac_ct_STRIP 8774else 8775 STRIP="$ac_cv_prog_STRIP" 8776fi 8777 8778 8779old_CC="$CC" 8780old_CFLAGS="$CFLAGS" 8781 8782# Set sane defaults for various variables 8783test -z "$AR" && AR=ar 8784test -z "$AR_FLAGS" && AR_FLAGS=cru 8785test -z "$AS" && AS=as 8786test -z "$CC" && CC=cc 8787test -z "$LTCC" && LTCC=$CC 8788test -z "$DLLTOOL" && DLLTOOL=dlltool 8789test -z "$LD" && LD=ld 8790test -z "$LN_S" && LN_S="ln -s" 8791test -z "$MAGIC_CMD" && MAGIC_CMD=file 8792test -z "$NM" && NM=nm 8793test -z "$SED" && SED=sed 8794test -z "$OBJDUMP" && OBJDUMP=objdump 8795test -z "$RANLIB" && RANLIB=: 8796test -z "$STRIP" && STRIP=: 8797test -z "$ac_objext" && ac_objext=o 8798 8799# Determine commands to create old-style static archives. 8800old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 8801old_postinstall_cmds='chmod 644 $oldlib' 8802old_postuninstall_cmds= 8803 8804if test -n "$RANLIB"; then 8805 case $host_os in 8806 openbsd*) 8807 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 8808 ;; 8809 *) 8810 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 8811 ;; 8812 esac 8813 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8814fi 8815 8816# Only perform the check for file, if the check method requires it 8817case $deplibs_check_method in 8818file_magic*) 8819 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8820 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8821echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 8822if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8823 echo $ECHO_N "(cached) $ECHO_C" >&6 8824else 8825 case $MAGIC_CMD in 8826[\\/*] | ?:[\\/]*) 8827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8828 ;; 8829*) 8830 lt_save_MAGIC_CMD="$MAGIC_CMD" 8831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8832 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8833 for ac_dir in $ac_dummy; do 8834 IFS="$lt_save_ifs" 8835 test -z "$ac_dir" && ac_dir=. 8836 if test -f $ac_dir/${ac_tool_prefix}file; then 8837 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8838 if test -n "$file_magic_test_file"; then 8839 case $deplibs_check_method in 8840 "file_magic "*) 8841 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 8842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8843 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8844 $EGREP "$file_magic_regex" > /dev/null; then 8845 : 8846 else 8847 cat <<EOF 1>&2 8848 8849*** Warning: the command libtool uses to detect shared libraries, 8850*** $file_magic_cmd, produces output that libtool cannot recognize. 8851*** The result is that libtool may fail to recognize shared libraries 8852*** as such. This will affect the creation of libtool libraries that 8853*** depend on shared libraries, but programs linked with such libtool 8854*** libraries will work regardless of this problem. Nevertheless, you 8855*** may want to report the problem to your system manager and/or to 8856*** bug-libtool@gnu.org 8857 8858EOF 8859 fi ;; 8860 esac 8861 fi 8862 break 8863 fi 8864 done 8865 IFS="$lt_save_ifs" 8866 MAGIC_CMD="$lt_save_MAGIC_CMD" 8867 ;; 8868esac 8869fi 8870 8871MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8872if test -n "$MAGIC_CMD"; then 8873 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8874echo "${ECHO_T}$MAGIC_CMD" >&6 8875else 8876 echo "$as_me:$LINENO: result: no" >&5 8877echo "${ECHO_T}no" >&6 8878fi 8879 8880if test -z "$lt_cv_path_MAGIC_CMD"; then 8881 if test -n "$ac_tool_prefix"; then 8882 echo "$as_me:$LINENO: checking for file" >&5 8883echo $ECHO_N "checking for file... $ECHO_C" >&6 8884if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8885 echo $ECHO_N "(cached) $ECHO_C" >&6 8886else 8887 case $MAGIC_CMD in 8888[\\/*] | ?:[\\/]*) 8889 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8890 ;; 8891*) 8892 lt_save_MAGIC_CMD="$MAGIC_CMD" 8893 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8894 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8895 for ac_dir in $ac_dummy; do 8896 IFS="$lt_save_ifs" 8897 test -z "$ac_dir" && ac_dir=. 8898 if test -f $ac_dir/file; then 8899 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8900 if test -n "$file_magic_test_file"; then 8901 case $deplibs_check_method in 8902 "file_magic "*) 8903 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 8904 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8905 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8906 $EGREP "$file_magic_regex" > /dev/null; then 8907 : 8908 else 8909 cat <<EOF 1>&2 8910 8911*** Warning: the command libtool uses to detect shared libraries, 8912*** $file_magic_cmd, produces output that libtool cannot recognize. 8913*** The result is that libtool may fail to recognize shared libraries 8914*** as such. This will affect the creation of libtool libraries that 8915*** depend on shared libraries, but programs linked with such libtool 8916*** libraries will work regardless of this problem. Nevertheless, you 8917*** may want to report the problem to your system manager and/or to 8918*** bug-libtool@gnu.org 8919 8920EOF 8921 fi ;; 8922 esac 8923 fi 8924 break 8925 fi 8926 done 8927 IFS="$lt_save_ifs" 8928 MAGIC_CMD="$lt_save_MAGIC_CMD" 8929 ;; 8930esac 8931fi 8932 8933MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8934if test -n "$MAGIC_CMD"; then 8935 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8936echo "${ECHO_T}$MAGIC_CMD" >&6 8937else 8938 echo "$as_me:$LINENO: result: no" >&5 8939echo "${ECHO_T}no" >&6 8940fi 8941 8942 else 8943 MAGIC_CMD=: 8944 fi 8945fi 8946 8947 fi 8948 ;; 8949esac 8950 8951enable_dlopen=yes 8952enable_win32_dll=no 8953 8954# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8955if test "${enable_libtool_lock+set}" = set; then 8956 enableval="$enable_libtool_lock" 8957 8958fi; 8959test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8960 8961 8962# Check whether --with-pic or --without-pic was given. 8963if test "${with_pic+set}" = set; then 8964 withval="$with_pic" 8965 pic_mode="$withval" 8966else 8967 pic_mode=default 8968fi; 8969test -z "$pic_mode" && pic_mode=default 8970 8971# Use C for the default configuration in the libtool script 8972tagname= 8973lt_save_CC="$CC" 8974ac_ext=c 8975ac_cpp='$CPP $CPPFLAGS' 8976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8978ac_compiler_gnu=$ac_cv_c_compiler_gnu 8979 8980 8981# Source file extension for C test sources. 8982ac_ext=c 8983 8984# Object file extension for compiled C test sources. 8985objext=o 8986objext=$objext 8987 8988# Code to be used in simple compile tests 8989lt_simple_compile_test_code="int some_variable = 0;\n" 8990 8991# Code to be used in simple link tests 8992lt_simple_link_test_code='int main(){return(0);}\n' 8993 8994 8995# If no C compiler was specified, use CC. 8996LTCC=${LTCC-"$CC"} 8997 8998# Allow CC to be a program name with arguments. 8999compiler=$CC 9000 9001 9002# 9003# Check for any special shared library compilation flags. 9004# 9005lt_prog_cc_shlib= 9006if test "$GCC" = no; then 9007 case $host_os in 9008 sco3.2v5*) 9009 lt_prog_cc_shlib='-belf' 9010 ;; 9011 esac 9012fi 9013if test -n "$lt_prog_cc_shlib"; then 9014 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 9015echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 9016 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 9017 else 9018 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 9019echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 9020 lt_cv_prog_cc_can_build_shared=no 9021 fi 9022fi 9023 9024 9025# 9026# Check to make sure the static flag actually works. 9027# 9028echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 9029echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 9030if test "${lt_prog_compiler_static_works+set}" = set; then 9031 echo $ECHO_N "(cached) $ECHO_C" >&6 9032else 9033 lt_prog_compiler_static_works=no 9034 save_LDFLAGS="$LDFLAGS" 9035 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 9036 printf "$lt_simple_link_test_code" > conftest.$ac_ext 9037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9038 # The compiler can only warn and ignore the option if not recognized 9039 # So say no if there are warnings 9040 if test -s conftest.err; then 9041 # Append any errors to the config.log. 9042 cat conftest.err 1>&5 9043 else 9044 lt_prog_compiler_static_works=yes 9045 fi 9046 fi 9047 $rm conftest* 9048 LDFLAGS="$save_LDFLAGS" 9049 9050fi 9051echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 9052echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 9053 9054if test x"$lt_prog_compiler_static_works" = xyes; then 9055 : 9056else 9057 lt_prog_compiler_static= 9058fi 9059 9060 9061 9062## CAVEAT EMPTOR: 9063## There is no encapsulation within the following macros, do not change 9064## the running order or otherwise move them around unless you know exactly 9065## what you are doing... 9066 9067lt_prog_compiler_no_builtin_flag= 9068 9069if test "$GCC" = yes; then 9070 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 9071 9072 9073echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9074echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 9075if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 9076 echo $ECHO_N "(cached) $ECHO_C" >&6 9077else 9078 lt_cv_prog_compiler_rtti_exceptions=no 9079 ac_outfile=conftest.$ac_objext 9080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9081 lt_compiler_flag="-fno-rtti -fno-exceptions" 9082 # Insert the option either (1) after the last *FLAGS variable, or 9083 # (2) before a word containing "conftest.", or (3) at the end. 9084 # Note that $ac_compile itself does not contain backslashes and begins 9085 # with a dollar sign (not a hyphen), so the echo should work correctly. 9086 # The option is referenced via a variable to avoid confusing sed. 9087 lt_compile=`echo "$ac_compile" | $SED \ 9088 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 9089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9090 -e 's:$: $lt_compiler_flag:'` 9091 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 9092 (eval "$lt_compile" 2>conftest.err) 9093 ac_status=$? 9094 cat conftest.err >&5 9095 echo "$as_me:__oline__: \$? = $ac_status" >&5 9096 if (exit $ac_status) && test -s "$ac_outfile"; then 9097 # The compiler can only warn and ignore the option if not recognized 9098 # So say no if there are warnings 9099 if test ! -s conftest.err; then 9100 lt_cv_prog_compiler_rtti_exceptions=yes 9101 fi 9102 fi 9103 $rm conftest* 9104 9105fi 9106echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9107echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 9108 9109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9110 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9111else 9112 : 9113fi 9114 9115fi 9116 9117lt_prog_compiler_wl= 9118lt_prog_compiler_pic= 9119lt_prog_compiler_static= 9120 9121echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 9122echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 9123 9124 if test "$GCC" = yes; then 9125 lt_prog_compiler_wl='-Wl,' 9126 lt_prog_compiler_static='-static' 9127 9128 case $host_os in 9129 aix*) 9130 # All AIX code is PIC. 9131 if test "$host_cpu" = ia64; then 9132 # AIX 5 now supports IA64 processor 9133 lt_prog_compiler_static='-Bstatic' 9134 fi 9135 ;; 9136 9137 amigaos*) 9138 # FIXME: we need at least 68020 code to build shared libraries, but 9139 # adding the `-m68020' flag to GCC prevents building anything better, 9140 # like `-m68040'. 9141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9142 ;; 9143 9144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9145 # PIC is the default for these OSes. 9146 ;; 9147 9148 mingw* | pw32* | os2*) 9149 # This hack is so that the source file can tell whether it is being 9150 # built for inclusion in a dll (and should export symbols for example). 9151 lt_prog_compiler_pic='-DDLL_EXPORT' 9152 ;; 9153 9154 darwin* | rhapsody*) 9155 # PIC is the default on this platform 9156 # Common symbols not allowed in MH_DYLIB files 9157 lt_prog_compiler_pic='-fno-common' 9158 ;; 9159 9160 msdosdjgpp*) 9161 # Just because we use GCC doesn't mean we suddenly get shared libraries 9162 # on systems that don't support them. 9163 lt_prog_compiler_can_build_shared=no 9164 enable_shared=no 9165 ;; 9166 9167 sysv4*MP*) 9168 if test -d /usr/nec; then 9169 lt_prog_compiler_pic=-Kconform_pic 9170 fi 9171 ;; 9172 9173 hpux*) 9174 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9175 # not for PA HP-UX. 9176 case "$host_cpu" in 9177 hppa*64*|ia64*) 9178 # +Z the default 9179 ;; 9180 *) 9181 lt_prog_compiler_pic='-fPIC' 9182 ;; 9183 esac 9184 ;; 9185 9186 *) 9187 lt_prog_compiler_pic='-fPIC' 9188 ;; 9189 esac 9190 else 9191 # PORTME Check for flag to pass linker flags through the system compiler. 9192 case $host_os in 9193 aix*) 9194 lt_prog_compiler_wl='-Wl,' 9195 if test "$host_cpu" = ia64; then 9196 # AIX 5 now supports IA64 processor 9197 lt_prog_compiler_static='-Bstatic' 9198 else 9199 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9200 fi 9201 ;; 9202 9203 mingw* | pw32* | os2*) 9204 # This hack is so that the source file can tell whether it is being 9205 # built for inclusion in a dll (and should export symbols for example). 9206 lt_prog_compiler_pic='-DDLL_EXPORT' 9207 ;; 9208 9209 hpux9* | hpux10* | hpux11*) 9210 lt_prog_compiler_wl='-Wl,' 9211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9212 # not for PA HP-UX. 9213 case "$host_cpu" in 9214 hppa*64*|ia64*) 9215 # +Z the default 9216 ;; 9217 *) 9218 lt_prog_compiler_pic='+Z' 9219 ;; 9220 esac 9221 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9222 lt_prog_compiler_static='${wl}-a ${wl}archive' 9223 ;; 9224 9225 irix5* | irix6* | nonstopux*) 9226 lt_prog_compiler_wl='-Wl,' 9227 # PIC (with -KPIC) is the default. 9228 lt_prog_compiler_static='-non_shared' 9229 ;; 9230 9231 newsos6) 9232 lt_prog_compiler_pic='-KPIC' 9233 lt_prog_compiler_static='-Bstatic' 9234 ;; 9235 9236 linux*) 9237 case $CC in 9238 icc* | ecc*) 9239 lt_prog_compiler_wl='-Wl,' 9240 lt_prog_compiler_pic='-KPIC' 9241 lt_prog_compiler_static='-static' 9242 ;; 9243 ccc*) 9244 lt_prog_compiler_wl='-Wl,' 9245 # All Alpha code is PIC. 9246 lt_prog_compiler_static='-non_shared' 9247 ;; 9248 esac 9249 ;; 9250 9251 osf3* | osf4* | osf5*) 9252 lt_prog_compiler_wl='-Wl,' 9253 # All OSF/1 code is PIC. 9254 lt_prog_compiler_static='-non_shared' 9255 ;; 9256 9257 sco3.2v5*) 9258 lt_prog_compiler_pic='-Kpic' 9259 lt_prog_compiler_static='-dn' 9260 ;; 9261 9262 solaris*) 9263 lt_prog_compiler_wl='-Wl,' 9264 lt_prog_compiler_pic='-KPIC' 9265 lt_prog_compiler_static='-Bstatic' 9266 ;; 9267 9268 sunos4*) 9269 lt_prog_compiler_wl='-Qoption ld ' 9270 lt_prog_compiler_pic='-PIC' 9271 lt_prog_compiler_static='-Bstatic' 9272 ;; 9273 9274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9275 lt_prog_compiler_wl='-Wl,' 9276 lt_prog_compiler_pic='-KPIC' 9277 lt_prog_compiler_static='-Bstatic' 9278 ;; 9279 9280 sysv4*MP*) 9281 if test -d /usr/nec ;then 9282 lt_prog_compiler_pic='-Kconform_pic' 9283 lt_prog_compiler_static='-Bstatic' 9284 fi 9285 ;; 9286 9287 uts4*) 9288 lt_prog_compiler_pic='-pic' 9289 lt_prog_compiler_static='-Bstatic' 9290 ;; 9291 9292 *) 9293 lt_prog_compiler_can_build_shared=no 9294 ;; 9295 esac 9296 fi 9297 9298echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9299echo "${ECHO_T}$lt_prog_compiler_pic" >&6 9300 9301# 9302# Check to make sure the PIC flag actually works. 9303# 9304if test -n "$lt_prog_compiler_pic"; then 9305 9306echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9307echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 9308if test "${lt_prog_compiler_pic_works+set}" = set; then 9309 echo $ECHO_N "(cached) $ECHO_C" >&6 9310else 9311 lt_prog_compiler_pic_works=no 9312 ac_outfile=conftest.$ac_objext 9313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9314 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9315 # Insert the option either (1) after the last *FLAGS variable, or 9316 # (2) before a word containing "conftest.", or (3) at the end. 9317 # Note that $ac_compile itself does not contain backslashes and begins 9318 # with a dollar sign (not a hyphen), so the echo should work correctly. 9319 # The option is referenced via a variable to avoid confusing sed. 9320 lt_compile=`echo "$ac_compile" | $SED \ 9321 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 9322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9323 -e 's:$: $lt_compiler_flag:'` 9324 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 9325 (eval "$lt_compile" 2>conftest.err) 9326 ac_status=$? 9327 cat conftest.err >&5 9328 echo "$as_me:__oline__: \$? = $ac_status" >&5 9329 if (exit $ac_status) && test -s "$ac_outfile"; then 9330 # The compiler can only warn and ignore the option if not recognized 9331 # So say no if there are warnings 9332 if test ! -s conftest.err; then 9333 lt_prog_compiler_pic_works=yes 9334 fi 9335 fi 9336 $rm conftest* 9337 9338fi 9339echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 9340echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 9341 9342if test x"$lt_prog_compiler_pic_works" = xyes; then 9343 case $lt_prog_compiler_pic in 9344 "" | " "*) ;; 9345 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9346 esac 9347else 9348 lt_prog_compiler_pic= 9349 lt_prog_compiler_can_build_shared=no 9350fi 9351 9352fi 9353case "$host_os" in 9354 # For platforms which do not support PIC, -DPIC is meaningless: 9355 *djgpp*) 9356 lt_prog_compiler_pic= 9357 ;; 9358 *) 9359 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9360 ;; 9361esac 9362 9363echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9364echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 9365if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9366 echo $ECHO_N "(cached) $ECHO_C" >&6 9367else 9368 lt_cv_prog_compiler_c_o=no 9369 $rm -r conftest 2>/dev/null 9370 mkdir conftest 9371 cd conftest 9372 mkdir out 9373 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 9374 9375 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 9376 # that will create temporary files in the current directory regardless of 9377 # the output directory. Thus, making CWD read-only will cause this test 9378 # to fail, enabling locking or at least warning the user not to do parallel 9379 # builds. 9380 chmod -w . 9381 9382 lt_compiler_flag="-o out/conftest2.$ac_objext" 9383 # Insert the option either (1) after the last *FLAGS variable, or 9384 # (2) before a word containing "conftest.", or (3) at the end. 9385 # Note that $ac_compile itself does not contain backslashes and begins 9386 # with a dollar sign (not a hyphen), so the echo should work correctly. 9387 lt_compile=`echo "$ac_compile" | $SED \ 9388 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 9389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9390 -e 's:$: $lt_compiler_flag:'` 9391 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 9392 (eval "$lt_compile" 2>out/conftest.err) 9393 ac_status=$? 9394 cat out/conftest.err >&5 9395 echo "$as_me:__oline__: \$? = $ac_status" >&5 9396 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9397 then 9398 # The compiler can only warn and ignore the option if not recognized 9399 # So say no if there are warnings 9400 if test ! -s out/conftest.err; then 9401 lt_cv_prog_compiler_c_o=yes 9402 fi 9403 fi 9404 chmod u+w . 9405 $rm conftest* out/* 9406 rmdir out 9407 cd .. 9408 rmdir conftest 9409 $rm conftest* 9410 9411fi 9412echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9413echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 9414 9415 9416hard_links="nottested" 9417if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9418 # do not overwrite the value of need_locks provided by the user 9419 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9420echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 9421 hard_links=yes 9422 $rm conftest* 9423 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9424 touch conftest.a 9425 ln conftest.a conftest.b 2>&5 || hard_links=no 9426 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9427 echo "$as_me:$LINENO: result: $hard_links" >&5 9428echo "${ECHO_T}$hard_links" >&6 9429 if test "$hard_links" = no; then 9430 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9431echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9432 need_locks=warn 9433 fi 9434else 9435 need_locks=no 9436fi 9437 9438echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9439echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9440 9441 runpath_var= 9442 allow_undefined_flag= 9443 enable_shared_with_static_runtimes=no 9444 archive_cmds= 9445 archive_expsym_cmds= 9446 old_archive_From_new_cmds= 9447 old_archive_from_expsyms_cmds= 9448 export_dynamic_flag_spec= 9449 whole_archive_flag_spec= 9450 thread_safe_flag_spec= 9451 hardcode_libdir_flag_spec= 9452 hardcode_libdir_flag_spec_ld= 9453 hardcode_libdir_separator= 9454 hardcode_direct=no 9455 hardcode_minus_L=no 9456 hardcode_shlibpath_var=unsupported 9457 link_all_deplibs=unknown 9458 hardcode_automatic=no 9459 module_cmds= 9460 module_expsym_cmds= 9461 always_export_symbols=no 9462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9463 # include_expsyms should be a list of space-separated symbols to be *always* 9464 # included in the symbol list 9465 include_expsyms= 9466 # exclude_expsyms can be an extended regexp of symbols to exclude 9467 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9469 # as well as any symbol that contains `d'. 9470 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 9471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9472 # platforms (ab)use it in PIC code, but their linkers get confused if 9473 # the symbol is explicitly referenced. Since portable code cannot 9474 # rely on this symbol name, it's probably fine to never include it in 9475 # preloaded symbol tables. 9476 extract_expsyms_cmds= 9477 9478 case $host_os in 9479 cygwin* | mingw* | pw32*) 9480 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9481 # When not using gcc, we currently assume that we are using 9482 # Microsoft Visual C++. 9483 if test "$GCC" != yes; then 9484 with_gnu_ld=no 9485 fi 9486 ;; 9487 openbsd*) 9488 with_gnu_ld=no 9489 ;; 9490 esac 9491 9492 ld_shlibs=yes 9493 if test "$with_gnu_ld" = yes; then 9494 # If archive_cmds runs LD, not CC, wlarc should be empty 9495 wlarc='${wl}' 9496 9497 # See if GNU ld supports shared libraries. 9498 case $host_os in 9499 aix3* | aix4* | aix5*) 9500 # On AIX/PPC, the GNU linker is very broken 9501 if test "$host_cpu" != ia64; then 9502 ld_shlibs=no 9503 cat <<EOF 1>&2 9504 9505*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9506*** to be unable to reliably create shared libraries on AIX. 9507*** Therefore, libtool is disabling shared libraries support. If you 9508*** really care for shared libraries, you may want to modify your PATH 9509*** so that a non-GNU linker is found, and then restart. 9510 9511EOF 9512 fi 9513 ;; 9514 9515 amigaos*) 9516 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)' 9517 hardcode_libdir_flag_spec='-L$libdir' 9518 hardcode_minus_L=yes 9519 9520 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 9521 # that the semantics of dynamic libraries on AmigaOS, at least up 9522 # to version 4, is to share data among multiple programs linked 9523 # with the same dynamic library. Since this doesn't match the 9524 # behavior of shared libraries on other platforms, we can't use 9525 # them. 9526 ld_shlibs=no 9527 ;; 9528 9529 beos*) 9530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9531 allow_undefined_flag=unsupported 9532 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9533 # support --undefined. This deserves some investigation. FIXME 9534 archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 9535 else 9536 ld_shlibs=no 9537 fi 9538 ;; 9539 9540 cygwin* | mingw* | pw32*) 9541 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9542 # as there is no search path for DLLs. 9543 hardcode_libdir_flag_spec='-L$libdir' 9544 allow_undefined_flag=no 9545 always_export_symbols=no 9546 enable_shared_with_static_runtimes=yes 9547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 9548 9549 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9550 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 9551 # If the export-symbols file already is a .def file (1st line 9552 # is EXPORTS), use it as is; otherwise, prepend... 9553 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9554 cp $export_symbols $output_objdir/$soname.def; 9555 else 9556 echo EXPORTS > $output_objdir/$soname.def; 9557 cat $export_symbols >> $output_objdir/$soname.def; 9558 fi~ 9559 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 9560 else 9561 ld_shlibs=no 9562 fi 9563 ;; 9564 9565 netbsd*) 9566 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9567 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9568 wlarc= 9569 else 9570 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 9571 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9572 fi 9573 ;; 9574 9575 solaris* | sysv5*) 9576 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9577 ld_shlibs=no 9578 cat <<EOF 1>&2 9579 9580*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9581*** create shared libraries on Solaris systems. Therefore, libtool 9582*** is disabling shared libraries support. We urge you to upgrade GNU 9583*** binutils to release 2.9.1 or newer. Another option is to modify 9584*** your PATH or compiler configuration so that the native linker is 9585*** used, and then restart. 9586 9587EOF 9588 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9589 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 9590 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9591 else 9592 ld_shlibs=no 9593 fi 9594 ;; 9595 9596 sunos4*) 9597 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9598 wlarc= 9599 hardcode_direct=yes 9600 hardcode_shlibpath_var=no 9601 ;; 9602 9603 *) 9604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9605 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 9606 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9607 else 9608 ld_shlibs=no 9609 fi 9610 ;; 9611 esac 9612 9613 if test "$ld_shlibs" = yes; then 9614 runpath_var=LD_RUN_PATH 9615 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 9616 export_dynamic_flag_spec='${wl}--export-dynamic' 9617 # ancient GNU ld didn't support --whole-archive et. al. 9618 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 9619 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9620 else 9621 whole_archive_flag_spec= 9622 fi 9623 fi 9624 else 9625 # PORTME fill in a description of your system's linker (not GNU ld) 9626 case $host_os in 9627 aix3*) 9628 allow_undefined_flag=unsupported 9629 always_export_symbols=yes 9630 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' 9631 # Note: this linker hardcodes the directories in LIBPATH if there 9632 # are no directories specified by -L. 9633 hardcode_minus_L=yes 9634 if test "$GCC" = yes && test -z "$link_static_flag"; then 9635 # Neither direct hardcoding nor static linking is supported with a 9636 # broken collect2. 9637 hardcode_direct=unsupported 9638 fi 9639 ;; 9640 9641 aix4* | aix5*) 9642 if test "$host_cpu" = ia64; then 9643 # On IA64, the linker does run time linking by default, so we don't 9644 # have to do anything special. 9645 aix_use_runtimelinking=no 9646 exp_sym_flag='-Bexport' 9647 no_entry_flag="" 9648 else 9649 # If we're using GNU nm, then we don't want the "-C" option. 9650 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9651 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9652 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' 9653 else 9654 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' 9655 fi 9656 9657 # KDE requires run time linking. Make it the default. 9658 aix_use_runtimelinking=yes 9659 exp_sym_flag='-bexport' 9660 no_entry_flag='-bnoentry' 9661 fi 9662 9663 # When large executables or shared objects are built, AIX ld can 9664 # have problems creating the table of contents. If linking a library 9665 # or program results in "error TOC overflow" add -mminimal-toc to 9666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9668 9669 archive_cmds='' 9670 hardcode_direct=yes 9671 hardcode_libdir_separator=':' 9672 link_all_deplibs=yes 9673 9674 if test "$GCC" = yes; then 9675 case $host_os in aix4.012|aix4.012.*) 9676 # We only want to do this on AIX 4.2 and lower, the check 9677 # below for broken collect2 doesn't work under 4.3+ 9678 collect2name=`${CC} -print-prog-name=collect2` 9679 if test -f "$collect2name" && \ 9680 strings "$collect2name" | grep resolve_lib_name >/dev/null 9681 then 9682 # We have reworked collect2 9683 hardcode_direct=yes 9684 else 9685 # We have old collect2 9686 hardcode_direct=unsupported 9687 # It fails to find uninstalled libraries when the uninstalled 9688 # path is not listed in the libpath. Setting hardcode_minus_L 9689 # to unsupported forces relinking 9690 hardcode_minus_L=yes 9691 hardcode_libdir_flag_spec='-L$libdir' 9692 hardcode_libdir_separator= 9693 fi 9694 esac 9695 shared_flag='-shared' 9696 else 9697 # not using gcc 9698 if test "$host_cpu" = ia64; then 9699 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9700 # chokes on -Wl,-G. The following line is correct: 9701 shared_flag='-G' 9702 else 9703 if test "$aix_use_runtimelinking" = yes; then 9704 shared_flag='-qmkshrobj ${wl}-G' 9705 else 9706 shared_flag='-qmkshrobj' 9707 fi 9708 fi 9709 fi 9710 9711 # Let the compiler handle the export list. 9712 always_export_symbols=no 9713 if test "$aix_use_runtimelinking" = yes; then 9714 # Warning - without using the other runtime loading flags (-brtl), 9715 # -berok will link without error, but may produce a broken library. 9716 allow_undefined_flag='-berok' 9717 # Determine the default libpath from the value encoded in an empty executable. 9718 cat >conftest.$ac_ext <<_ACEOF 9719/* confdefs.h. */ 9720_ACEOF 9721cat confdefs.h >>conftest.$ac_ext 9722cat >>conftest.$ac_ext <<_ACEOF 9723/* end confdefs.h. */ 9724 9725int 9726main () 9727{ 9728 9729 ; 9730 return 0; 9731} 9732_ACEOF 9733rm -f conftest.$ac_objext conftest$ac_exeext 9734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9735 (eval $ac_link) 2>conftest.er1 9736 ac_status=$? 9737 grep -v '^ *+' conftest.er1 >conftest.err 9738 rm -f conftest.er1 9739 cat conftest.err >&5 9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9741 (exit $ac_status); } && 9742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9744 (eval $ac_try) 2>&5 9745 ac_status=$? 9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9747 (exit $ac_status); }; } && 9748 { ac_try='test -s conftest$ac_exeext' 9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9750 (eval $ac_try) 2>&5 9751 ac_status=$? 9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9753 (exit $ac_status); }; }; then 9754 9755aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9756}'` 9757# Check for a 64-bit object if we didn't find anything. 9758if 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; } 9759}'`; fi 9760else 9761 echo "$as_me: failed program was:" >&5 9762sed 's/^/| /' conftest.$ac_ext >&5 9763 9764fi 9765rm -f conftest.err conftest.$ac_objext \ 9766 conftest$ac_exeext conftest.$ac_ext 9767if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9768 9769 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9770 archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" 9771 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9772 else 9773 if test "$host_cpu" = ia64; then 9774 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9775 allow_undefined_flag="-z nodefs" 9776 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 9777 else 9778 # Determine the default libpath from the value encoded in an empty executable. 9779 cat >conftest.$ac_ext <<_ACEOF 9780/* confdefs.h. */ 9781_ACEOF 9782cat confdefs.h >>conftest.$ac_ext 9783cat >>conftest.$ac_ext <<_ACEOF 9784/* end confdefs.h. */ 9785 9786int 9787main () 9788{ 9789 9790 ; 9791 return 0; 9792} 9793_ACEOF 9794rm -f conftest.$ac_objext conftest$ac_exeext 9795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9796 (eval $ac_link) 2>conftest.er1 9797 ac_status=$? 9798 grep -v '^ *+' conftest.er1 >conftest.err 9799 rm -f conftest.er1 9800 cat conftest.err >&5 9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9802 (exit $ac_status); } && 9803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9805 (eval $ac_try) 2>&5 9806 ac_status=$? 9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9808 (exit $ac_status); }; } && 9809 { ac_try='test -s conftest$ac_exeext' 9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9811 (eval $ac_try) 2>&5 9812 ac_status=$? 9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 (exit $ac_status); }; }; then 9815 9816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9817}'` 9818# Check for a 64-bit object if we didn't find anything. 9819if 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; } 9820}'`; fi 9821else 9822 echo "$as_me: failed program was:" >&5 9823sed 's/^/| /' conftest.$ac_ext >&5 9824 9825fi 9826rm -f conftest.err conftest.$ac_objext \ 9827 conftest$ac_exeext conftest.$ac_ext 9828if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9829 9830 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9831 # Warning - without using the other run time loading flags, 9832 # -berok will link without error, but may produce a broken library. 9833 no_undefined_flag=' ${wl}-bernotok' 9834 allow_undefined_flag=' ${wl}-berok' 9835 # -bexpall does not export symbols beginning with underscore (_) 9836 always_export_symbols=yes 9837 # Exported symbols can be pulled into shared objects from archives 9838 whole_archive_flag_spec=' ' 9839 archive_cmds_need_lc=yes 9840 # This is similar to how AIX traditionally builds it's shared libraries. 9841 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9842 fi 9843 fi 9844 ;; 9845 9846 amigaos*) 9847 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)' 9848 hardcode_libdir_flag_spec='-L$libdir' 9849 hardcode_minus_L=yes 9850 # see comment about different semantics on the GNU ld section 9851 ld_shlibs=no 9852 ;; 9853 9854 bsdi4*) 9855 export_dynamic_flag_spec=-rdynamic 9856 ;; 9857 9858 cygwin* | mingw* | pw32*) 9859 # When not using gcc, we currently assume that we are using 9860 # Microsoft Visual C++. 9861 # hardcode_libdir_flag_spec is actually meaningless, as there is 9862 # no search path for DLLs. 9863 hardcode_libdir_flag_spec=' ' 9864 allow_undefined_flag=no 9865 # Tell ltmain to make .lib files, not .a files. 9866 libext=lib 9867 # Tell ltmain to make .dll files, not .so files. 9868 shrext=".dll" 9869 # FIXME: Setting linknames here is a bad hack. 9870 archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9871 # The linker will automatically build a .lib file if we build a DLL. 9872 old_archive_From_new_cmds='true' 9873 # FIXME: Should let the user specify the lib program. 9874 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 9875 fix_srcfile_path='`cygpath -w "$srcfile"`' 9876 enable_shared_with_static_runtimes=yes 9877 ;; 9878 9879 darwin* | rhapsody*) 9880 if test "$GXX" = yes ; then 9881 archive_cmds_need_lc=no 9882 case "$host_os" in 9883 rhapsody* | darwin1.[012]) 9884 allow_undefined_flag='-Wl,-undefined -Wl,suppress' 9885 ;; 9886 *) # Darwin 1.3 on 9887 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9888 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 9889 else 9890 case ${MACOSX_DEPLOYMENT_TARGET} in 9891 10.012) 9892 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 9893 ;; 9894 10.*) 9895 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' 9896 ;; 9897 esac 9898 fi 9899 ;; 9900 esac 9901 lt_int_apple_cc_single_mod=no 9902 output_verbose_link_cmd='echo' 9903 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 9904 lt_int_apple_cc_single_mod=yes 9905 fi 9906 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9907 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' 9908 else 9909 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 $compiler_flags $deplibs -install_name $rpath/$soname $verstring' 9910 fi 9911 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' 9912 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9913 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9914 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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9915 else 9916 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 $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9917 fi 9918 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9919 hardcode_direct=no 9920 hardcode_automatic=yes 9921 hardcode_shlibpath_var=unsupported 9922 whole_archive_flag_spec='-all_load $convenience' 9923 link_all_deplibs=yes 9924 else 9925 ld_shlibs=no 9926 fi 9927 ;; 9928 9929 dgux*) 9930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9931 hardcode_libdir_flag_spec='-L$libdir' 9932 hardcode_shlibpath_var=no 9933 ;; 9934 9935 freebsd1*) 9936 ld_shlibs=no 9937 ;; 9938 9939 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9940 # support. Future versions do this automatically, but an explicit c++rt0.o 9941 # does not break anything, and helps significantly (at the cost of a little 9942 # extra space). 9943 freebsd2.2*) 9944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9945 hardcode_libdir_flag_spec='-R$libdir' 9946 hardcode_direct=yes 9947 hardcode_shlibpath_var=no 9948 ;; 9949 9950 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9951 freebsd2*) 9952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9953 hardcode_direct=yes 9954 hardcode_minus_L=yes 9955 hardcode_shlibpath_var=no 9956 ;; 9957 9958 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9959 freebsd* | kfreebsd*-gnu) 9960 archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' 9961 hardcode_libdir_flag_spec='-R$libdir' 9962 hardcode_direct=yes 9963 hardcode_shlibpath_var=no 9964 ;; 9965 9966 hpux9*) 9967 if test "$GCC" = yes; then 9968 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9969 else 9970 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' 9971 fi 9972 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9973 hardcode_libdir_separator=: 9974 hardcode_direct=yes 9975 9976 # hardcode_minus_L: Not really in the search PATH, 9977 # but as the default location of the library. 9978 hardcode_minus_L=yes 9979 export_dynamic_flag_spec='${wl}-E' 9980 ;; 9981 9982 hpux10* | hpux11*) 9983 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9984 case "$host_cpu" in 9985 hppa*64*|ia64*) 9986 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 9987 ;; 9988 *) 9989 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' 9990 ;; 9991 esac 9992 else 9993 case "$host_cpu" in 9994 hppa*64*|ia64*) 9995 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 9996 ;; 9997 *) 9998 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9999 ;; 10000 esac 10001 fi 10002 if test "$with_gnu_ld" = no; then 10003 case "$host_cpu" in 10004 hppa*64*) 10005 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10006 hardcode_libdir_flag_spec_ld='+b $libdir' 10007 hardcode_libdir_separator=: 10008 hardcode_direct=no 10009 hardcode_shlibpath_var=no 10010 ;; 10011 ia64*) 10012 hardcode_libdir_flag_spec='-L$libdir' 10013 hardcode_direct=no 10014 hardcode_shlibpath_var=no 10015 10016 # hardcode_minus_L: Not really in the search PATH, 10017 # but as the default location of the library. 10018 hardcode_minus_L=yes 10019 ;; 10020 *) 10021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10022 hardcode_libdir_separator=: 10023 hardcode_direct=yes 10024 export_dynamic_flag_spec='${wl}-E' 10025 10026 # hardcode_minus_L: Not really in the search PATH, 10027 # but as the default location of the library. 10028 hardcode_minus_L=yes 10029 ;; 10030 esac 10031 fi 10032 ;; 10033 10034 irix5* | irix6* | nonstopux*) 10035 if test "$GCC" = yes; then 10036 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10037 else 10038 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' 10039 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10040 fi 10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10042 hardcode_libdir_separator=: 10043 link_all_deplibs=yes 10044 ;; 10045 10046 netbsd*) 10047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10048 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10049 else 10050 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10051 fi 10052 hardcode_libdir_flag_spec='-R$libdir' 10053 hardcode_direct=yes 10054 hardcode_shlibpath_var=no 10055 ;; 10056 10057 newsos6) 10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10059 hardcode_direct=yes 10060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10061 hardcode_libdir_separator=: 10062 hardcode_shlibpath_var=no 10063 ;; 10064 10065 openbsd*) 10066 hardcode_direct=yes 10067 hardcode_shlibpath_var=no 10068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10069 archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' 10070 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10071 export_dynamic_flag_spec='${wl}-E' 10072 else 10073 case $host_os in 10074 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10076 hardcode_libdir_flag_spec='-R$libdir' 10077 ;; 10078 *) 10079 archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' 10080 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10081 ;; 10082 esac 10083 fi 10084 ;; 10085 10086 os2*) 10087 hardcode_libdir_flag_spec='-L$libdir' 10088 hardcode_minus_L=yes 10089 allow_undefined_flag=unsupported 10090 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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' 10091 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10092 ;; 10093 10094 osf3*) 10095 if test "$GCC" = yes; then 10096 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10097 archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10098 else 10099 allow_undefined_flag=' -expect_unresolved \*' 10100 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' 10101 fi 10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10103 hardcode_libdir_separator=: 10104 ;; 10105 10106 osf4* | osf5*) # as osf3* with the addition of -msym flag 10107 if test "$GCC" = yes; then 10108 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10109 archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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' 10110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10111 else 10112 allow_undefined_flag=' -expect_unresolved \*' 10113 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' 10114 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 10115 $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' 10116 10117 # Both c and cxx compiler support -rpath directly 10118 hardcode_libdir_flag_spec='-rpath $libdir' 10119 fi 10120 hardcode_libdir_separator=: 10121 ;; 10122 10123 sco3.2v5*) 10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10125 hardcode_shlibpath_var=no 10126 export_dynamic_flag_spec='${wl}-Bexport' 10127 runpath_var=LD_RUN_PATH 10128 hardcode_runpath_var=yes 10129 ;; 10130 10131 solaris*) 10132 no_undefined_flag=' -z text' 10133 if test "$GCC" = yes; then 10134 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 10135 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10136 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' 10137 else 10138 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10139 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10140 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10141 fi 10142 hardcode_libdir_flag_spec='-R$libdir' 10143 hardcode_shlibpath_var=no 10144 case $host_os in 10145 solaris2.[0-5] | solaris2.[0-5].*) ;; 10146 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 10147 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 10148 esac 10149 link_all_deplibs=yes 10150 ;; 10151 10152 sunos4*) 10153 if test "x$host_vendor" = xsequent; then 10154 # Use $CC to link under sequent, because it throws in some extra .o 10155 # files that make .init and .fini sections work. 10156 archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' 10157 else 10158 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10159 fi 10160 hardcode_libdir_flag_spec='-L$libdir' 10161 hardcode_direct=yes 10162 hardcode_minus_L=yes 10163 hardcode_shlibpath_var=no 10164 ;; 10165 10166 sysv4) 10167 case $host_vendor in 10168 sni) 10169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10170 hardcode_direct=yes # is this really true??? 10171 ;; 10172 siemens) 10173 ## LD is ld it makes a PLAMLIB 10174 ## CC just makes a GrossModule. 10175 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10176 reload_cmds='$CC -r -o $output$reload_objs' 10177 hardcode_direct=no 10178 ;; 10179 motorola) 10180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10181 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10182 ;; 10183 esac 10184 runpath_var='LD_RUN_PATH' 10185 hardcode_shlibpath_var=no 10186 ;; 10187 10188 sysv4.3*) 10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10190 hardcode_shlibpath_var=no 10191 export_dynamic_flag_spec='-Bexport' 10192 ;; 10193 10194 sysv4*MP*) 10195 if test -d /usr/nec; then 10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10197 hardcode_shlibpath_var=no 10198 runpath_var=LD_RUN_PATH 10199 hardcode_runpath_var=yes 10200 ld_shlibs=yes 10201 fi 10202 ;; 10203 10204 sysv4.2uw2*) 10205 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10206 hardcode_direct=yes 10207 hardcode_minus_L=no 10208 hardcode_shlibpath_var=no 10209 hardcode_runpath_var=yes 10210 runpath_var=LD_RUN_PATH 10211 ;; 10212 10213 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10214 no_undefined_flag='${wl}-z ${wl}text' 10215 if test "$GCC" = yes; then 10216 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 10217 else 10218 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 10219 fi 10220 runpath_var='LD_RUN_PATH' 10221 hardcode_shlibpath_var=no 10222 ;; 10223 10224 sysv5*) 10225 no_undefined_flag=' -z text' 10226 # $CC -shared without GNU ld will not create a library from C++ 10227 # object files and a static libstdc++, better avoid it by now 10228 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10229 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10231 hardcode_libdir_flag_spec= 10232 hardcode_shlibpath_var=no 10233 runpath_var='LD_RUN_PATH' 10234 ;; 10235 10236 uts4*) 10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10238 hardcode_libdir_flag_spec='-L$libdir' 10239 hardcode_shlibpath_var=no 10240 ;; 10241 10242 *) 10243 ld_shlibs=no 10244 ;; 10245 esac 10246 fi 10247 10248echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10249echo "${ECHO_T}$ld_shlibs" >&6 10250test "$ld_shlibs" = no && can_build_shared=no 10251 10252variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10253if test "$GCC" = yes; then 10254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10255fi 10256 10257# 10258# Do we need to explicitly link libc? 10259# 10260case "x$archive_cmds_need_lc" in 10261x|xyes) 10262 # Assume -lc should be added 10263 archive_cmds_need_lc=yes 10264 10265 if test "$enable_shared" = yes && test "$GCC" = yes; then 10266 case $archive_cmds in 10267 *'~'*) 10268 # FIXME: we may have to deal with multi-command sequences. 10269 ;; 10270 '$CC '*) 10271 # Test whether the compiler implicitly links with -lc since on some 10272 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10273 # to ld, don't add -lc before -lgcc. 10274 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10275echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 10276 $rm conftest* 10277 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10278 10279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10280 (eval $ac_compile) 2>&5 10281 ac_status=$? 10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10283 (exit $ac_status); } 2>conftest.err; then 10284 soname=conftest 10285 lib=conftest 10286 libobjs=conftest.$ac_objext 10287 deplibs= 10288 wl=$lt_prog_compiler_wl 10289 compiler_flags=-v 10290 linker_flags=-v 10291 verstring= 10292 output_objdir=. 10293 libname=conftest 10294 lt_save_allow_undefined_flag=$allow_undefined_flag 10295 allow_undefined_flag= 10296 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10297 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10298 ac_status=$? 10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); } 10301 then 10302 archive_cmds_need_lc=no 10303 else 10304 archive_cmds_need_lc=yes 10305 fi 10306 allow_undefined_flag=$lt_save_allow_undefined_flag 10307 else 10308 cat conftest.err 1>&5 10309 fi 10310 $rm conftest* 10311 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10312echo "${ECHO_T}$archive_cmds_need_lc" >&6 10313 ;; 10314 esac 10315 fi 10316 ;; 10317esac 10318 10319echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10320echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 10321library_names_spec= 10322libname_spec='lib$name' 10323soname_spec= 10324shrext=".so" 10325postinstall_cmds= 10326postuninstall_cmds= 10327finish_cmds= 10328finish_eval= 10329shlibpath_var= 10330shlibpath_overrides_runpath=unknown 10331version_type=none 10332dynamic_linker="$host_os ld.so" 10333sys_lib_dlsearch_path_spec="/lib /usr/lib" 10334sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10335need_lib_prefix=unknown 10336hardcode_into_libs=no 10337 10338# when you set need_version to no, make sure it does not cause -set_version 10339# flags to be left without arguments 10340need_version=unknown 10341 10342case $host_os in 10343aix3*) 10344 version_type=linux 10345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10346 shlibpath_var=LIBPATH 10347 10348 # AIX 3 has no versioning support, so we append a major version to the name. 10349 soname_spec='${libname}${release}${shared_ext}$major' 10350 ;; 10351 10352aix4* | aix5*) 10353 version_type=linux 10354 need_lib_prefix=no 10355 need_version=no 10356 hardcode_into_libs=yes 10357 if test "$host_cpu" = ia64; then 10358 # AIX 5 supports IA64 10359 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10360 shlibpath_var=LD_LIBRARY_PATH 10361 else 10362 # With GCC up to 2.95.x, collect2 would create an import file 10363 # for dependence libraries. The import file would start with 10364 # the line `#! .'. This would cause the generated library to 10365 # depend on `.', always an invalid library. This was fixed in 10366 # development snapshots of GCC prior to 3.0. 10367 case $host_os in 10368 aix4 | aix4.[01] | aix4.[01].*) 10369 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10370 echo ' yes ' 10371 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10372 : 10373 else 10374 can_build_shared=no 10375 fi 10376 ;; 10377 esac 10378 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10379 # soname into executable. Probably we can add versioning support to 10380 # collect2, so additional links can be useful in future. 10381 if test "$aix_use_runtimelinking" = yes; then 10382 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10383 # instead of lib<name>.a to let people know that these are not 10384 # typical AIX shared libraries. 10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10386 else 10387 # We preserve .a as extension for shared libraries through AIX4.2 10388 # and later when we are not doing run time linking. 10389 library_names_spec='${libname}${release}.a $libname.a' 10390 soname_spec='${libname}${release}${shared_ext}$major' 10391 fi 10392 shlibpath_var=LIBPATH 10393 fi 10394 ;; 10395 10396amigaos*) 10397 library_names_spec='$libname.ixlibrary $libname.a' 10398 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10399 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' 10400 ;; 10401 10402beos*) 10403 library_names_spec='${libname}${shared_ext}' 10404 dynamic_linker="$host_os ld.so" 10405 shlibpath_var=LIBRARY_PATH 10406 ;; 10407 10408bsdi4*) 10409 version_type=linux 10410 need_version=no 10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10412 soname_spec='${libname}${release}${shared_ext}$major' 10413 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10414 shlibpath_var=LD_LIBRARY_PATH 10415 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10416 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10417 # the default ld.so.conf also contains /usr/contrib/lib and 10418 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10419 # libtool to hard-code these into programs 10420 ;; 10421 10422cygwin* | mingw* | pw32*) 10423 version_type=windows 10424 shrext=".dll" 10425 need_version=no 10426 need_lib_prefix=no 10427 10428 case $GCC,$host_os in 10429 yes,cygwin* | yes,mingw* | yes,pw32*) 10430 library_names_spec='$libname.dll.a' 10431 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10432 postinstall_cmds='base_file=`basename \${file}`~ 10433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10434 dldir=$destdir/`dirname \$dlpath`~ 10435 test -d \$dldir || mkdir -p \$dldir~ 10436 $install_prog $dir/$dlname \$dldir/$dlname' 10437 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10438 dlpath=$dir/\$dldll~ 10439 $rm \$dlpath' 10440 shlibpath_overrides_runpath=yes 10441 10442 case $host_os in 10443 cygwin*) 10444 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10445 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10446 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10447 ;; 10448 mingw*) 10449 # MinGW DLLs use traditional 'lib' prefix 10450 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10451 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10452 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10453 # It is most probably a Windows format PATH printed by 10454 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10455 # path with ; separators, and with drive letters. We can handle the 10456 # drive letters (cygwin fileutils understands them), so leave them, 10457 # especially as we might pass files found there to a mingw objdump, 10458 # which wouldn't understand a cygwinified path. Ahh. 10459 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10460 else 10461 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10462 fi 10463 ;; 10464 pw32*) 10465 # pw32 DLLs use 'pw' prefix rather than 'lib' 10466 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 10467 ;; 10468 esac 10469 ;; 10470 10471 *) 10472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10473 ;; 10474 esac 10475 dynamic_linker='Win32 ld.exe' 10476 # FIXME: first we should search . and the directory the executable is in 10477 shlibpath_var=PATH 10478 ;; 10479 10480darwin* | rhapsody*) 10481 dynamic_linker="$host_os dyld" 10482 version_type=darwin 10483 need_lib_prefix=no 10484 need_version=no 10485 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10486 soname_spec='${libname}${release}${major}$shared_ext' 10487 shlibpath_overrides_runpath=yes 10488 shlibpath_var=DYLD_LIBRARY_PATH 10489 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 10490 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10491 if test "$GCC" = yes; then 10492 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"` 10493 else 10494 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10495 fi 10496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10497 ;; 10498 10499dgux*) 10500 version_type=linux 10501 need_lib_prefix=no 10502 need_version=no 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10504 soname_spec='${libname}${release}${shared_ext}$major' 10505 shlibpath_var=LD_LIBRARY_PATH 10506 ;; 10507 10508freebsd1*) 10509 dynamic_linker=no 10510 ;; 10511 10512kfreebsd*-gnu*) 10513 version_type=linux 10514 need_lib_prefix=no 10515 need_version=no 10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10517 soname_spec='${libname}${release}${shared_ext}$major' 10518 shlibpath_var=LD_LIBRARY_PATH 10519 shlibpath_overrides_runpath=no 10520 hardcode_into_libs=yes 10521 dynamic_linker='GNU ld.so' 10522 ;; 10523 10524freebsd*) 10525 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 10526 version_type=freebsd-$objformat 10527 case $version_type in 10528 freebsd-elf*) 10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10530 need_version=no 10531 need_lib_prefix=no 10532 ;; 10533 freebsd-*) 10534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10535 need_version=yes 10536 ;; 10537 esac 10538 shlibpath_var=LD_LIBRARY_PATH 10539 case $host_os in 10540 freebsd2*) 10541 shlibpath_overrides_runpath=yes 10542 ;; 10543 freebsd3.01* | freebsdelf3.01*) 10544 shlibpath_overrides_runpath=yes 10545 hardcode_into_libs=yes 10546 ;; 10547 *) # from 3.2 on 10548 shlibpath_overrides_runpath=no 10549 hardcode_into_libs=yes 10550 ;; 10551 esac 10552 ;; 10553 10554gnu*) 10555 version_type=linux 10556 need_lib_prefix=no 10557 need_version=no 10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10559 soname_spec='${libname}${release}${shared_ext}$major' 10560 shlibpath_var=LD_LIBRARY_PATH 10561 hardcode_into_libs=yes 10562 ;; 10563 10564hpux9* | hpux10* | hpux11*) 10565 # Give a soname corresponding to the major version so that dld.sl refuses to 10566 # link against other versions. 10567 version_type=sunos 10568 need_lib_prefix=no 10569 need_version=no 10570 case "$host_cpu" in 10571 ia64*) 10572 shrext='.so' 10573 hardcode_into_libs=yes 10574 dynamic_linker="$host_os dld.so" 10575 shlibpath_var=LD_LIBRARY_PATH 10576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10578 soname_spec='${libname}${release}${shared_ext}$major' 10579 if test "X$HPUX_IA64_MODE" = X32; then 10580 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10581 else 10582 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10583 fi 10584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10585 ;; 10586 hppa*64*) 10587 shrext='.sl' 10588 hardcode_into_libs=yes 10589 dynamic_linker="$host_os dld.sl" 10590 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10593 soname_spec='${libname}${release}${shared_ext}$major' 10594 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10596 ;; 10597 *) 10598 shrext='.sl' 10599 dynamic_linker="$host_os dld.sl" 10600 shlibpath_var=SHLIB_PATH 10601 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10603 soname_spec='${libname}${release}${shared_ext}$major' 10604 ;; 10605 esac 10606 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10607 postinstall_cmds='chmod 555 $lib' 10608 ;; 10609 10610irix5* | irix6* | nonstopux*) 10611 case $host_os in 10612 nonstopux*) version_type=nonstopux ;; 10613 *) 10614 if test "$lt_cv_prog_gnu_ld" = yes; then 10615 version_type=linux 10616 else 10617 version_type=irix 10618 fi ;; 10619 esac 10620 need_lib_prefix=no 10621 need_version=no 10622 soname_spec='${libname}${release}${shared_ext}$major' 10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10624 case $host_os in 10625 irix5* | nonstopux*) 10626 libsuff= shlibsuff= 10627 ;; 10628 *) 10629 case $LD in # libtool.m4 will add one of these switches to LD 10630 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10631 libsuff= shlibsuff= libmagic=32-bit;; 10632 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10633 libsuff=32 shlibsuff=N32 libmagic=N32;; 10634 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10635 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10636 *) libsuff= shlibsuff= libmagic=never-match;; 10637 esac 10638 ;; 10639 esac 10640 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10641 shlibpath_overrides_runpath=no 10642 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10643 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10644 hardcode_into_libs=yes 10645 ;; 10646 10647# No shared lib support for Linux oldld, aout, or coff. 10648linux*oldld* | linux*aout* | linux*coff*) 10649 dynamic_linker=no 10650 ;; 10651 10652# This must be Linux ELF. 10653linux*) 10654 version_type=linux 10655 need_lib_prefix=no 10656 need_version=no 10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10658 soname_spec='${libname}${release}${shared_ext}$major' 10659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10660 libsuff= 10661 if test "x$LINUX_64_MODE" = x64; then 10662 # Some platforms are per default 64-bit, so there's no /lib64 10663 if test -d /lib64; then 10664 libsuff=64 10665 fi 10666 fi 10667 shlibpath_var=LD_LIBRARY_PATH 10668 shlibpath_overrides_runpath=no 10669 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 10670 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 10671 # This implies no fast_install, which is unacceptable. 10672 # Some rework will be needed to allow for fast_install 10673 # before this can be enabled. 10674 hardcode_into_libs=yes 10675 10676 # We used to test for /lib/ld.so.1 and disable shared libraries on 10677 # powerpc, because MkLinux only supported shared libraries with the 10678 # GNU dynamic linker. Since this was broken with cross compilers, 10679 # most powerpc-linux boxes support dynamic linking these days and 10680 # people can always --disable-shared, the test was removed, and we 10681 # assume the GNU/Linux dynamic linker is in use. 10682 dynamic_linker='GNU/Linux ld.so' 10683 ;; 10684 10685netbsd*) 10686 version_type=sunos 10687 need_lib_prefix=no 10688 need_version=no 10689 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10692 dynamic_linker='NetBSD (a.out) ld.so' 10693 else 10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 10695 soname_spec='${libname}${release}${shared_ext}$major' 10696 dynamic_linker='NetBSD ld.elf_so' 10697 fi 10698 shlibpath_var=LD_LIBRARY_PATH 10699 shlibpath_overrides_runpath=yes 10700 hardcode_into_libs=yes 10701 ;; 10702 10703newsos6) 10704 version_type=linux 10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10706 shlibpath_var=LD_LIBRARY_PATH 10707 shlibpath_overrides_runpath=yes 10708 ;; 10709 10710nto-qnx*) 10711 version_type=linux 10712 need_lib_prefix=no 10713 need_version=no 10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10715 soname_spec='${libname}${release}${shared_ext}$major' 10716 shlibpath_var=LD_LIBRARY_PATH 10717 shlibpath_overrides_runpath=yes 10718 ;; 10719 10720openbsd*) 10721 version_type=sunos 10722 need_lib_prefix=no 10723 need_version=no 10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10726 shlibpath_var=LD_LIBRARY_PATH 10727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10728 case $host_os in 10729 openbsd2.[89] | openbsd2.[89].*) 10730 shlibpath_overrides_runpath=no 10731 ;; 10732 *) 10733 shlibpath_overrides_runpath=yes 10734 ;; 10735 esac 10736 else 10737 shlibpath_overrides_runpath=yes 10738 fi 10739 ;; 10740 10741os2*) 10742 libname_spec='$name' 10743 shrext=".dll" 10744 need_lib_prefix=no 10745 library_names_spec='$libname${shared_ext} $libname.a' 10746 dynamic_linker='OS/2 ld.exe' 10747 shlibpath_var=LIBPATH 10748 ;; 10749 10750osf3* | osf4* | osf5*) 10751 version_type=osf 10752 need_lib_prefix=no 10753 need_version=no 10754 soname_spec='${libname}${release}${shared_ext}$major' 10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10756 shlibpath_var=LD_LIBRARY_PATH 10757 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10758 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10759 ;; 10760 10761sco3.2v5*) 10762 version_type=osf 10763 soname_spec='${libname}${release}${shared_ext}$major' 10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10765 shlibpath_var=LD_LIBRARY_PATH 10766 ;; 10767 10768solaris*) 10769 version_type=linux 10770 need_lib_prefix=no 10771 need_version=no 10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10773 soname_spec='${libname}${release}${shared_ext}$major' 10774 shlibpath_var=LD_LIBRARY_PATH 10775 shlibpath_overrides_runpath=yes 10776 hardcode_into_libs=yes 10777 # ldd complains unless libraries are executable 10778 postinstall_cmds='chmod +x $lib' 10779 ;; 10780 10781sunos4*) 10782 version_type=sunos 10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10784 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10785 shlibpath_var=LD_LIBRARY_PATH 10786 shlibpath_overrides_runpath=yes 10787 if test "$with_gnu_ld" = yes; then 10788 need_lib_prefix=no 10789 fi 10790 need_version=yes 10791 ;; 10792 10793sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10794 version_type=linux 10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10796 soname_spec='${libname}${release}${shared_ext}$major' 10797 shlibpath_var=LD_LIBRARY_PATH 10798 case $host_vendor in 10799 sni) 10800 shlibpath_overrides_runpath=no 10801 need_lib_prefix=no 10802 export_dynamic_flag_spec='${wl}-Blargedynsym' 10803 runpath_var=LD_RUN_PATH 10804 ;; 10805 siemens) 10806 need_lib_prefix=no 10807 ;; 10808 motorola) 10809 need_lib_prefix=no 10810 need_version=no 10811 shlibpath_overrides_runpath=no 10812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10813 ;; 10814 esac 10815 ;; 10816 10817sysv4*MP*) 10818 if test -d /usr/nec ;then 10819 version_type=linux 10820 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10821 soname_spec='$libname${shared_ext}.$major' 10822 shlibpath_var=LD_LIBRARY_PATH 10823 fi 10824 ;; 10825 10826uts4*) 10827 version_type=linux 10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10829 soname_spec='${libname}${release}${shared_ext}$major' 10830 shlibpath_var=LD_LIBRARY_PATH 10831 ;; 10832 10833*) 10834 dynamic_linker=no 10835 ;; 10836esac 10837echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10838echo "${ECHO_T}$dynamic_linker" >&6 10839test "$dynamic_linker" = no && can_build_shared=no 10840 10841echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10842echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10843hardcode_action= 10844if test -n "$hardcode_libdir_flag_spec" || \ 10845 test -n "$runpath_var " || \ 10846 test "X$hardcode_automatic"="Xyes" ; then 10847 10848 # We can hardcode non-existant directories. 10849 if test "$hardcode_direct" != no && 10850 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10851 # have to relink, otherwise we might link with an installed library 10852 # when we should be linking with a yet-to-be-installed one 10853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10854 test "$hardcode_minus_L" != no; then 10855 # Linking always hardcodes the temporary library directory. 10856 hardcode_action=relink 10857 else 10858 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10859 hardcode_action=immediate 10860 fi 10861else 10862 # We cannot hardcode anything, or else we can only hardcode existing 10863 # directories. 10864 hardcode_action=unsupported 10865fi 10866echo "$as_me:$LINENO: result: $hardcode_action" >&5 10867echo "${ECHO_T}$hardcode_action" >&6 10868 10869if test "$hardcode_action" = relink; then 10870 # Fast installation is not supported 10871 enable_fast_install=no 10872elif test "$shlibpath_overrides_runpath" = yes || 10873 test "$enable_shared" = no; then 10874 # Fast installation is not necessary 10875 enable_fast_install=needless 10876fi 10877 10878striplib= 10879old_striplib= 10880echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10881echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10882if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10884 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10885 echo "$as_me:$LINENO: result: yes" >&5 10886echo "${ECHO_T}yes" >&6 10887else 10888# FIXME - insert some real tests, host_os isn't really good enough 10889 case $host_os in 10890 darwin*) 10891 if test -n "$STRIP" ; then 10892 striplib="$STRIP -x" 10893 echo "$as_me:$LINENO: result: yes" >&5 10894echo "${ECHO_T}yes" >&6 10895 else 10896 echo "$as_me:$LINENO: result: no" >&5 10897echo "${ECHO_T}no" >&6 10898fi 10899 ;; 10900 *) 10901 echo "$as_me:$LINENO: result: no" >&5 10902echo "${ECHO_T}no" >&6 10903 ;; 10904 esac 10905fi 10906 10907if test "x$enable_dlopen" != xyes; then 10908 enable_dlopen=unknown 10909 enable_dlopen_self=unknown 10910 enable_dlopen_self_static=unknown 10911else 10912 lt_cv_dlopen=no 10913 lt_cv_dlopen_libs= 10914 10915 case $host_os in 10916 beos*) 10917 lt_cv_dlopen="load_add_on" 10918 lt_cv_dlopen_libs= 10919 lt_cv_dlopen_self=yes 10920 ;; 10921 10922 mingw* | pw32*) 10923 lt_cv_dlopen="LoadLibrary" 10924 lt_cv_dlopen_libs= 10925 ;; 10926 10927 cygwin*) 10928 lt_cv_dlopen="dlopen" 10929 lt_cv_dlopen_libs= 10930 ;; 10931 10932 darwin*) 10933 # if libdl is installed we need to link against it 10934 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10935echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10936if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10937 echo $ECHO_N "(cached) $ECHO_C" >&6 10938else 10939 ac_check_lib_save_LIBS=$LIBS 10940LIBS="-ldl $LIBS" 10941cat >conftest.$ac_ext <<_ACEOF 10942/* confdefs.h. */ 10943_ACEOF 10944cat confdefs.h >>conftest.$ac_ext 10945cat >>conftest.$ac_ext <<_ACEOF 10946/* end confdefs.h. */ 10947 10948/* Override any gcc2 internal prototype to avoid an error. */ 10949#ifdef __cplusplus 10950extern "C" 10951#endif 10952/* We use char because int might match the return type of a gcc2 10953 builtin and then its argument prototype would still apply. */ 10954char dlopen (); 10955int 10956main () 10957{ 10958dlopen (); 10959 ; 10960 return 0; 10961} 10962_ACEOF 10963rm -f conftest.$ac_objext conftest$ac_exeext 10964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10965 (eval $ac_link) 2>conftest.er1 10966 ac_status=$? 10967 grep -v '^ *+' conftest.er1 >conftest.err 10968 rm -f conftest.er1 10969 cat conftest.err >&5 10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10971 (exit $ac_status); } && 10972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10974 (eval $ac_try) 2>&5 10975 ac_status=$? 10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10977 (exit $ac_status); }; } && 10978 { ac_try='test -s conftest$ac_exeext' 10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10980 (eval $ac_try) 2>&5 10981 ac_status=$? 10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10983 (exit $ac_status); }; }; then 10984 ac_cv_lib_dl_dlopen=yes 10985else 10986 echo "$as_me: failed program was:" >&5 10987sed 's/^/| /' conftest.$ac_ext >&5 10988 10989ac_cv_lib_dl_dlopen=no 10990fi 10991rm -f conftest.err conftest.$ac_objext \ 10992 conftest$ac_exeext conftest.$ac_ext 10993LIBS=$ac_check_lib_save_LIBS 10994fi 10995echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10996echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10997if test $ac_cv_lib_dl_dlopen = yes; then 10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10999else 11000 11001 lt_cv_dlopen="dyld" 11002 lt_cv_dlopen_libs= 11003 lt_cv_dlopen_self=yes 11004 11005fi 11006 11007 ;; 11008 11009 *) 11010 echo "$as_me:$LINENO: checking for shl_load" >&5 11011echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11012if test "${ac_cv_func_shl_load+set}" = set; then 11013 echo $ECHO_N "(cached) $ECHO_C" >&6 11014else 11015 cat >conftest.$ac_ext <<_ACEOF 11016/* confdefs.h. */ 11017_ACEOF 11018cat confdefs.h >>conftest.$ac_ext 11019cat >>conftest.$ac_ext <<_ACEOF 11020/* end confdefs.h. */ 11021/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11023#define shl_load innocuous_shl_load 11024 11025/* System header to define __stub macros and hopefully few prototypes, 11026 which can conflict with char shl_load (); below. 11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11028 <limits.h> exists even on freestanding compilers. */ 11029 11030#ifdef __STDC__ 11031# include <limits.h> 11032#else 11033# include <assert.h> 11034#endif 11035 11036#undef shl_load 11037 11038/* Override any gcc2 internal prototype to avoid an error. */ 11039#ifdef __cplusplus 11040extern "C" 11041{ 11042#endif 11043/* We use char because int might match the return type of a gcc2 11044 builtin and then its argument prototype would still apply. */ 11045char shl_load (); 11046/* The GNU C library defines this for functions which it implements 11047 to always fail with ENOSYS. Some functions are actually named 11048 something starting with __ and the normal name is an alias. */ 11049#if defined (__stub_shl_load) || defined (__stub___shl_load) 11050choke me 11051#else 11052char (*f) () = shl_load; 11053#endif 11054#ifdef __cplusplus 11055} 11056#endif 11057 11058int 11059main () 11060{ 11061return f != shl_load; 11062 ; 11063 return 0; 11064} 11065_ACEOF 11066rm -f conftest.$ac_objext conftest$ac_exeext 11067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11068 (eval $ac_link) 2>conftest.er1 11069 ac_status=$? 11070 grep -v '^ *+' conftest.er1 >conftest.err 11071 rm -f conftest.er1 11072 cat conftest.err >&5 11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11074 (exit $ac_status); } && 11075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11077 (eval $ac_try) 2>&5 11078 ac_status=$? 11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11080 (exit $ac_status); }; } && 11081 { ac_try='test -s conftest$ac_exeext' 11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11083 (eval $ac_try) 2>&5 11084 ac_status=$? 11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11086 (exit $ac_status); }; }; then 11087 ac_cv_func_shl_load=yes 11088else 11089 echo "$as_me: failed program was:" >&5 11090sed 's/^/| /' conftest.$ac_ext >&5 11091 11092ac_cv_func_shl_load=no 11093fi 11094rm -f conftest.err conftest.$ac_objext \ 11095 conftest$ac_exeext conftest.$ac_ext 11096fi 11097echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11098echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11099if test $ac_cv_func_shl_load = yes; then 11100 lt_cv_dlopen="shl_load" 11101else 11102 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11103echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11104if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11105 echo $ECHO_N "(cached) $ECHO_C" >&6 11106else 11107 ac_check_lib_save_LIBS=$LIBS 11108LIBS="-ldld $LIBS" 11109cat >conftest.$ac_ext <<_ACEOF 11110/* confdefs.h. */ 11111_ACEOF 11112cat confdefs.h >>conftest.$ac_ext 11113cat >>conftest.$ac_ext <<_ACEOF 11114/* end confdefs.h. */ 11115 11116/* Override any gcc2 internal prototype to avoid an error. */ 11117#ifdef __cplusplus 11118extern "C" 11119#endif 11120/* We use char because int might match the return type of a gcc2 11121 builtin and then its argument prototype would still apply. */ 11122char shl_load (); 11123int 11124main () 11125{ 11126shl_load (); 11127 ; 11128 return 0; 11129} 11130_ACEOF 11131rm -f conftest.$ac_objext conftest$ac_exeext 11132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11133 (eval $ac_link) 2>conftest.er1 11134 ac_status=$? 11135 grep -v '^ *+' conftest.er1 >conftest.err 11136 rm -f conftest.er1 11137 cat conftest.err >&5 11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11139 (exit $ac_status); } && 11140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11142 (eval $ac_try) 2>&5 11143 ac_status=$? 11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11145 (exit $ac_status); }; } && 11146 { ac_try='test -s conftest$ac_exeext' 11147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11148 (eval $ac_try) 2>&5 11149 ac_status=$? 11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11151 (exit $ac_status); }; }; then 11152 ac_cv_lib_dld_shl_load=yes 11153else 11154 echo "$as_me: failed program was:" >&5 11155sed 's/^/| /' conftest.$ac_ext >&5 11156 11157ac_cv_lib_dld_shl_load=no 11158fi 11159rm -f conftest.err conftest.$ac_objext \ 11160 conftest$ac_exeext conftest.$ac_ext 11161LIBS=$ac_check_lib_save_LIBS 11162fi 11163echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11164echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11165if test $ac_cv_lib_dld_shl_load = yes; then 11166 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11167else 11168 echo "$as_me:$LINENO: checking for dlopen" >&5 11169echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11170if test "${ac_cv_func_dlopen+set}" = set; then 11171 echo $ECHO_N "(cached) $ECHO_C" >&6 11172else 11173 cat >conftest.$ac_ext <<_ACEOF 11174/* confdefs.h. */ 11175_ACEOF 11176cat confdefs.h >>conftest.$ac_ext 11177cat >>conftest.$ac_ext <<_ACEOF 11178/* end confdefs.h. */ 11179/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11180 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11181#define dlopen innocuous_dlopen 11182 11183/* System header to define __stub macros and hopefully few prototypes, 11184 which can conflict with char dlopen (); below. 11185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11186 <limits.h> exists even on freestanding compilers. */ 11187 11188#ifdef __STDC__ 11189# include <limits.h> 11190#else 11191# include <assert.h> 11192#endif 11193 11194#undef dlopen 11195 11196/* Override any gcc2 internal prototype to avoid an error. */ 11197#ifdef __cplusplus 11198extern "C" 11199{ 11200#endif 11201/* We use char because int might match the return type of a gcc2 11202 builtin and then its argument prototype would still apply. */ 11203char dlopen (); 11204/* The GNU C library defines this for functions which it implements 11205 to always fail with ENOSYS. Some functions are actually named 11206 something starting with __ and the normal name is an alias. */ 11207#if defined (__stub_dlopen) || defined (__stub___dlopen) 11208choke me 11209#else 11210char (*f) () = dlopen; 11211#endif 11212#ifdef __cplusplus 11213} 11214#endif 11215 11216int 11217main () 11218{ 11219return f != dlopen; 11220 ; 11221 return 0; 11222} 11223_ACEOF 11224rm -f conftest.$ac_objext conftest$ac_exeext 11225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11226 (eval $ac_link) 2>conftest.er1 11227 ac_status=$? 11228 grep -v '^ *+' conftest.er1 >conftest.err 11229 rm -f conftest.er1 11230 cat conftest.err >&5 11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11232 (exit $ac_status); } && 11233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11235 (eval $ac_try) 2>&5 11236 ac_status=$? 11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11238 (exit $ac_status); }; } && 11239 { ac_try='test -s conftest$ac_exeext' 11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11241 (eval $ac_try) 2>&5 11242 ac_status=$? 11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11244 (exit $ac_status); }; }; then 11245 ac_cv_func_dlopen=yes 11246else 11247 echo "$as_me: failed program was:" >&5 11248sed 's/^/| /' conftest.$ac_ext >&5 11249 11250ac_cv_func_dlopen=no 11251fi 11252rm -f conftest.err conftest.$ac_objext \ 11253 conftest$ac_exeext conftest.$ac_ext 11254fi 11255echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11256echo "${ECHO_T}$ac_cv_func_dlopen" >&6 11257if test $ac_cv_func_dlopen = yes; then 11258 lt_cv_dlopen="dlopen" 11259else 11260 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11261echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11262if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11263 echo $ECHO_N "(cached) $ECHO_C" >&6 11264else 11265 ac_check_lib_save_LIBS=$LIBS 11266LIBS="-ldl $LIBS" 11267cat >conftest.$ac_ext <<_ACEOF 11268/* confdefs.h. */ 11269_ACEOF 11270cat confdefs.h >>conftest.$ac_ext 11271cat >>conftest.$ac_ext <<_ACEOF 11272/* end confdefs.h. */ 11273 11274/* Override any gcc2 internal prototype to avoid an error. */ 11275#ifdef __cplusplus 11276extern "C" 11277#endif 11278/* We use char because int might match the return type of a gcc2 11279 builtin and then its argument prototype would still apply. */ 11280char dlopen (); 11281int 11282main () 11283{ 11284dlopen (); 11285 ; 11286 return 0; 11287} 11288_ACEOF 11289rm -f conftest.$ac_objext conftest$ac_exeext 11290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11291 (eval $ac_link) 2>conftest.er1 11292 ac_status=$? 11293 grep -v '^ *+' conftest.er1 >conftest.err 11294 rm -f conftest.er1 11295 cat conftest.err >&5 11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11297 (exit $ac_status); } && 11298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11300 (eval $ac_try) 2>&5 11301 ac_status=$? 11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11303 (exit $ac_status); }; } && 11304 { ac_try='test -s conftest$ac_exeext' 11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11306 (eval $ac_try) 2>&5 11307 ac_status=$? 11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11309 (exit $ac_status); }; }; then 11310 ac_cv_lib_dl_dlopen=yes 11311else 11312 echo "$as_me: failed program was:" >&5 11313sed 's/^/| /' conftest.$ac_ext >&5 11314 11315ac_cv_lib_dl_dlopen=no 11316fi 11317rm -f conftest.err conftest.$ac_objext \ 11318 conftest$ac_exeext conftest.$ac_ext 11319LIBS=$ac_check_lib_save_LIBS 11320fi 11321echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11322echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11323if test $ac_cv_lib_dl_dlopen = yes; then 11324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11325else 11326 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11327echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 11328if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11329 echo $ECHO_N "(cached) $ECHO_C" >&6 11330else 11331 ac_check_lib_save_LIBS=$LIBS 11332LIBS="-lsvld $LIBS" 11333cat >conftest.$ac_ext <<_ACEOF 11334/* confdefs.h. */ 11335_ACEOF 11336cat confdefs.h >>conftest.$ac_ext 11337cat >>conftest.$ac_ext <<_ACEOF 11338/* end confdefs.h. */ 11339 11340/* Override any gcc2 internal prototype to avoid an error. */ 11341#ifdef __cplusplus 11342extern "C" 11343#endif 11344/* We use char because int might match the return type of a gcc2 11345 builtin and then its argument prototype would still apply. */ 11346char dlopen (); 11347int 11348main () 11349{ 11350dlopen (); 11351 ; 11352 return 0; 11353} 11354_ACEOF 11355rm -f conftest.$ac_objext conftest$ac_exeext 11356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11357 (eval $ac_link) 2>conftest.er1 11358 ac_status=$? 11359 grep -v '^ *+' conftest.er1 >conftest.err 11360 rm -f conftest.er1 11361 cat conftest.err >&5 11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11363 (exit $ac_status); } && 11364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11366 (eval $ac_try) 2>&5 11367 ac_status=$? 11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11369 (exit $ac_status); }; } && 11370 { ac_try='test -s conftest$ac_exeext' 11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11372 (eval $ac_try) 2>&5 11373 ac_status=$? 11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11375 (exit $ac_status); }; }; then 11376 ac_cv_lib_svld_dlopen=yes 11377else 11378 echo "$as_me: failed program was:" >&5 11379sed 's/^/| /' conftest.$ac_ext >&5 11380 11381ac_cv_lib_svld_dlopen=no 11382fi 11383rm -f conftest.err conftest.$ac_objext \ 11384 conftest$ac_exeext conftest.$ac_ext 11385LIBS=$ac_check_lib_save_LIBS 11386fi 11387echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11388echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 11389if test $ac_cv_lib_svld_dlopen = yes; then 11390 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11391else 11392 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11393echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 11394if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11395 echo $ECHO_N "(cached) $ECHO_C" >&6 11396else 11397 ac_check_lib_save_LIBS=$LIBS 11398LIBS="-ldld $LIBS" 11399cat >conftest.$ac_ext <<_ACEOF 11400/* confdefs.h. */ 11401_ACEOF 11402cat confdefs.h >>conftest.$ac_ext 11403cat >>conftest.$ac_ext <<_ACEOF 11404/* end confdefs.h. */ 11405 11406/* Override any gcc2 internal prototype to avoid an error. */ 11407#ifdef __cplusplus 11408extern "C" 11409#endif 11410/* We use char because int might match the return type of a gcc2 11411 builtin and then its argument prototype would still apply. */ 11412char dld_link (); 11413int 11414main () 11415{ 11416dld_link (); 11417 ; 11418 return 0; 11419} 11420_ACEOF 11421rm -f conftest.$ac_objext conftest$ac_exeext 11422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11423 (eval $ac_link) 2>conftest.er1 11424 ac_status=$? 11425 grep -v '^ *+' conftest.er1 >conftest.err 11426 rm -f conftest.er1 11427 cat conftest.err >&5 11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11429 (exit $ac_status); } && 11430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11432 (eval $ac_try) 2>&5 11433 ac_status=$? 11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11435 (exit $ac_status); }; } && 11436 { ac_try='test -s conftest$ac_exeext' 11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11438 (eval $ac_try) 2>&5 11439 ac_status=$? 11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11441 (exit $ac_status); }; }; then 11442 ac_cv_lib_dld_dld_link=yes 11443else 11444 echo "$as_me: failed program was:" >&5 11445sed 's/^/| /' conftest.$ac_ext >&5 11446 11447ac_cv_lib_dld_dld_link=no 11448fi 11449rm -f conftest.err conftest.$ac_objext \ 11450 conftest$ac_exeext conftest.$ac_ext 11451LIBS=$ac_check_lib_save_LIBS 11452fi 11453echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11454echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11455if test $ac_cv_lib_dld_dld_link = yes; then 11456 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11457fi 11458 11459 11460fi 11461 11462 11463fi 11464 11465 11466fi 11467 11468 11469fi 11470 11471 11472fi 11473 11474 ;; 11475 esac 11476 11477 if test "x$lt_cv_dlopen" != xno; then 11478 enable_dlopen=yes 11479 else 11480 enable_dlopen=no 11481 fi 11482 11483 case $lt_cv_dlopen in 11484 dlopen) 11485 save_CPPFLAGS="$CPPFLAGS" 11486 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11487 11488 save_LDFLAGS="$LDFLAGS" 11489 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11490 11491 save_LIBS="$LIBS" 11492 LIBS="$lt_cv_dlopen_libs $LIBS" 11493 11494 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11495echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11496if test "${lt_cv_dlopen_self+set}" = set; then 11497 echo $ECHO_N "(cached) $ECHO_C" >&6 11498else 11499 if test "$cross_compiling" = yes; then : 11500 lt_cv_dlopen_self=cross 11501else 11502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11503 lt_status=$lt_dlunknown 11504 cat > conftest.$ac_ext <<EOF 11505#line __oline__ "configure" 11506#include "confdefs.h" 11507 11508#if HAVE_DLFCN_H 11509#include <dlfcn.h> 11510#endif 11511 11512#include <stdio.h> 11513 11514#ifdef RTLD_GLOBAL 11515# define LT_DLGLOBAL RTLD_GLOBAL 11516#else 11517# ifdef DL_GLOBAL 11518# define LT_DLGLOBAL DL_GLOBAL 11519# else 11520# define LT_DLGLOBAL 0 11521# endif 11522#endif 11523 11524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11525 find out it does not work in some platform. */ 11526#ifndef LT_DLLAZY_OR_NOW 11527# ifdef RTLD_LAZY 11528# define LT_DLLAZY_OR_NOW RTLD_LAZY 11529# else 11530# ifdef DL_LAZY 11531# define LT_DLLAZY_OR_NOW DL_LAZY 11532# else 11533# ifdef RTLD_NOW 11534# define LT_DLLAZY_OR_NOW RTLD_NOW 11535# else 11536# ifdef DL_NOW 11537# define LT_DLLAZY_OR_NOW DL_NOW 11538# else 11539# define LT_DLLAZY_OR_NOW 0 11540# endif 11541# endif 11542# endif 11543# endif 11544#endif 11545 11546#ifdef __cplusplus 11547extern "C" void exit (int); 11548#endif 11549 11550void fnord() { int i=42;} 11551int main () 11552{ 11553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11554 int status = $lt_dlunknown; 11555 11556 if (self) 11557 { 11558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11559 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11560 /* dlclose (self); */ 11561 } 11562 11563 exit (status); 11564} 11565EOF 11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11567 (eval $ac_link) 2>&5 11568 ac_status=$? 11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11570 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11571 (./conftest; exit; ) 2>/dev/null 11572 lt_status=$? 11573 case x$lt_status in 11574 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11575 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11576 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 11577 esac 11578 else : 11579 # compilation failed 11580 lt_cv_dlopen_self=no 11581 fi 11582fi 11583rm -fr conftest* 11584 11585 11586fi 11587echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11588echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11589 11590 if test "x$lt_cv_dlopen_self" = xyes; then 11591 LDFLAGS="$LDFLAGS $link_static_flag" 11592 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11593echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11594if test "${lt_cv_dlopen_self_static+set}" = set; then 11595 echo $ECHO_N "(cached) $ECHO_C" >&6 11596else 11597 if test "$cross_compiling" = yes; then : 11598 lt_cv_dlopen_self_static=cross 11599else 11600 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11601 lt_status=$lt_dlunknown 11602 cat > conftest.$ac_ext <<EOF 11603#line __oline__ "configure" 11604#include "confdefs.h" 11605 11606#if HAVE_DLFCN_H 11607#include <dlfcn.h> 11608#endif 11609 11610#include <stdio.h> 11611 11612#ifdef RTLD_GLOBAL 11613# define LT_DLGLOBAL RTLD_GLOBAL 11614#else 11615# ifdef DL_GLOBAL 11616# define LT_DLGLOBAL DL_GLOBAL 11617# else 11618# define LT_DLGLOBAL 0 11619# endif 11620#endif 11621 11622/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11623 find out it does not work in some platform. */ 11624#ifndef LT_DLLAZY_OR_NOW 11625# ifdef RTLD_LAZY 11626# define LT_DLLAZY_OR_NOW RTLD_LAZY 11627# else 11628# ifdef DL_LAZY 11629# define LT_DLLAZY_OR_NOW DL_LAZY 11630# else 11631# ifdef RTLD_NOW 11632# define LT_DLLAZY_OR_NOW RTLD_NOW 11633# else 11634# ifdef DL_NOW 11635# define LT_DLLAZY_OR_NOW DL_NOW 11636# else 11637# define LT_DLLAZY_OR_NOW 0 11638# endif 11639# endif 11640# endif 11641# endif 11642#endif 11643 11644#ifdef __cplusplus 11645extern "C" void exit (int); 11646#endif 11647 11648void fnord() { int i=42;} 11649int main () 11650{ 11651 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11652 int status = $lt_dlunknown; 11653 11654 if (self) 11655 { 11656 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11657 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11658 /* dlclose (self); */ 11659 } 11660 11661 exit (status); 11662} 11663EOF 11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11665 (eval $ac_link) 2>&5 11666 ac_status=$? 11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11668 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11669 (./conftest; exit; ) 2>/dev/null 11670 lt_status=$? 11671 case x$lt_status in 11672 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11673 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11674 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 11675 esac 11676 else : 11677 # compilation failed 11678 lt_cv_dlopen_self_static=no 11679 fi 11680fi 11681rm -fr conftest* 11682 11683 11684fi 11685echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11686echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11687 fi 11688 11689 CPPFLAGS="$save_CPPFLAGS" 11690 LDFLAGS="$save_LDFLAGS" 11691 LIBS="$save_LIBS" 11692 ;; 11693 esac 11694 11695 case $lt_cv_dlopen_self in 11696 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11697 *) enable_dlopen_self=unknown ;; 11698 esac 11699 11700 case $lt_cv_dlopen_self_static in 11701 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11702 *) enable_dlopen_self_static=unknown ;; 11703 esac 11704fi 11705 11706 11707# Report which librarie types wil actually be built 11708echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11709echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 11710echo "$as_me:$LINENO: result: $can_build_shared" >&5 11711echo "${ECHO_T}$can_build_shared" >&6 11712 11713echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11714echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 11715test "$can_build_shared" = "no" && enable_shared=no 11716 11717# On AIX, shared libraries and static libraries use the same namespace, and 11718# are all built from PIC. 11719case "$host_os" in 11720aix3*) 11721 test "$enable_shared" = yes && enable_static=no 11722 if test -n "$RANLIB"; then 11723 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11724 postinstall_cmds='$RANLIB $lib' 11725 fi 11726 ;; 11727 11728aix4*) 11729 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11730 test "$enable_shared" = yes && enable_static=no 11731 fi 11732 ;; 11733 darwin* | rhapsody*) 11734 if test "$GCC" = yes; then 11735 archive_cmds_need_lc=no 11736 case "$host_os" in 11737 rhapsody* | darwin1.[012]) 11738 allow_undefined_flag='-Wl,-undefined -Wl,suppress' 11739 ;; 11740 *) # Darwin 1.3 on 11741 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11742 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 11743 else 11744 case ${MACOSX_DEPLOYMENT_TARGET} in 11745 10.012) 11746 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 11747 ;; 11748 10.*) 11749 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup' 11750 ;; 11751 esac 11752 fi 11753 ;; 11754 esac 11755 output_verbose_link_cmd='echo' 11756 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' 11757 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' 11758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 11759 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11760 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11761 hardcode_direct=no 11762 hardcode_automatic=yes 11763 hardcode_shlibpath_var=unsupported 11764 whole_archive_flag_spec='-all_load $convenience' 11765 link_all_deplibs=yes 11766 else 11767 ld_shlibs=no 11768 fi 11769 ;; 11770esac 11771echo "$as_me:$LINENO: result: $enable_shared" >&5 11772echo "${ECHO_T}$enable_shared" >&6 11773 11774echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11775echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 11776# Make sure either enable_shared or enable_static is yes. 11777test "$enable_shared" = yes || enable_static=yes 11778echo "$as_me:$LINENO: result: $enable_static" >&5 11779echo "${ECHO_T}$enable_static" >&6 11780 11781# The else clause should only fire when bootstrapping the 11782# libtool distribution, otherwise you forgot to ship ltmain.sh 11783# with your package, and you will get complaints that there are 11784# no rules to generate ltmain.sh. 11785if test -f "$ltmain"; then 11786 # See if we are running on zsh, and set the options which allow our commands through 11787 # without removal of \ escapes. 11788 if test -n "${ZSH_VERSION+set}" ; then 11789 setopt NO_GLOB_SUBST 11790 fi 11791 # Now quote all the things that may contain metacharacters while being 11792 # careful not to overquote the AC_SUBSTed values. We take copies of the 11793 # variables and quote the copies for generation of the libtool script. 11794 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 11795 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11796 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11797 deplibs_check_method reload_flag reload_cmds need_locks \ 11798 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11799 lt_cv_sys_global_symbol_to_c_name_address \ 11800 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11801 old_postinstall_cmds old_postuninstall_cmds \ 11802 compiler \ 11803 CC \ 11804 LD \ 11805 lt_prog_compiler_wl \ 11806 lt_prog_compiler_pic \ 11807 lt_prog_compiler_static \ 11808 lt_prog_compiler_no_builtin_flag \ 11809 export_dynamic_flag_spec \ 11810 thread_safe_flag_spec \ 11811 whole_archive_flag_spec \ 11812 enable_shared_with_static_runtimes \ 11813 old_archive_cmds \ 11814 old_archive_from_new_cmds \ 11815 predep_objects \ 11816 postdep_objects \ 11817 predeps \ 11818 postdeps \ 11819 compiler_lib_search_path \ 11820 archive_cmds \ 11821 archive_expsym_cmds \ 11822 postinstall_cmds \ 11823 postuninstall_cmds \ 11824 old_archive_from_expsyms_cmds \ 11825 allow_undefined_flag \ 11826 no_undefined_flag \ 11827 export_symbols_cmds \ 11828 hardcode_libdir_flag_spec \ 11829 hardcode_libdir_flag_spec_ld \ 11830 hardcode_libdir_separator \ 11831 hardcode_automatic \ 11832 module_cmds \ 11833 module_expsym_cmds \ 11834 lt_cv_prog_compiler_c_o \ 11835 exclude_expsyms \ 11836 include_expsyms; do 11837 11838 case $var in 11839 old_archive_cmds | \ 11840 old_archive_from_new_cmds | \ 11841 archive_cmds | \ 11842 archive_expsym_cmds | \ 11843 module_cmds | \ 11844 module_expsym_cmds | \ 11845 old_archive_from_expsyms_cmds | \ 11846 export_symbols_cmds | \ 11847 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11848 postinstall_cmds | postuninstall_cmds | \ 11849 old_postinstall_cmds | old_postuninstall_cmds | \ 11850 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11851 # Double-quote double-evaled strings. 11852 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11853 ;; 11854 *) 11855 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11856 ;; 11857 esac 11858 done 11859 11860 case $lt_echo in 11861 *'\$0 --fallback-echo"') 11862 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11863 ;; 11864 esac 11865 11866cfgfile="${ofile}T" 11867 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11868 $rm -f "$cfgfile" 11869 { echo "$as_me:$LINENO: creating $ofile" >&5 11870echo "$as_me: creating $ofile" >&6;} 11871 11872 cat <<__EOF__ >> "$cfgfile" 11873#! $SHELL 11874 11875# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11876# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11877# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11878# 11879# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 11880# Free Software Foundation, Inc. 11881# 11882# This file is part of GNU Libtool: 11883# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11884# 11885# This program is free software; you can redistribute it and/or modify 11886# it under the terms of the GNU General Public License as published by 11887# the Free Software Foundation; either version 2 of the License, or 11888# (at your option) any later version. 11889# 11890# This program is distributed in the hope that it will be useful, but 11891# WITHOUT ANY WARRANTY; without even the implied warranty of 11892# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11893# General Public License for more details. 11894# 11895# You should have received a copy of the GNU General Public License 11896# along with this program; if not, write to the Free Software 11897# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11898# 11899# As a special exception to the GNU General Public License, if you 11900# distribute this file as part of a program that contains a 11901# configuration script generated by Autoconf, you may include it under 11902# the same distribution terms that you use for the rest of that program. 11903 11904# A sed program that does not truncate output. 11905SED=$lt_SED 11906 11907# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11908Xsed="$SED -e s/^X//" 11909 11910# The HP-UX ksh and POSIX shell print the target directory to stdout 11911# if CDPATH is set. 11912if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 11913 11914# The names of the tagged configurations supported by this script. 11915available_tags= 11916 11917# ### BEGIN LIBTOOL CONFIG 11918 11919# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11920 11921# Shell to use when invoking shell scripts. 11922SHELL=$lt_SHELL 11923 11924# Whether or not to build shared libraries. 11925build_libtool_libs=$enable_shared 11926 11927# Whether or not to build static libraries. 11928build_old_libs=$enable_static 11929 11930# Whether or not to add -lc for building shared libraries. 11931build_libtool_need_lc=$archive_cmds_need_lc 11932 11933# Whether or not to disallow shared libs when runtime libs are static 11934allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11935 11936# Whether or not to optimize for fast installation. 11937fast_install=$enable_fast_install 11938 11939# The host system. 11940host_alias=$host_alias 11941host=$host 11942 11943# An echo program that does not interpret backslashes. 11944echo=$lt_echo 11945 11946# The archiver. 11947AR=$lt_AR 11948AR_FLAGS=$lt_AR_FLAGS 11949 11950# A C compiler. 11951LTCC=$lt_LTCC 11952 11953# A language-specific compiler. 11954CC=$lt_compiler 11955 11956# Is the compiler the GNU C compiler? 11957with_gcc=$GCC 11958 11959# An ERE matcher. 11960EGREP=$lt_EGREP 11961 11962# The linker used to build libraries. 11963LD=$lt_LD 11964 11965# Whether we need hard or soft links. 11966LN_S=$lt_LN_S 11967 11968# A BSD-compatible nm program. 11969NM=$lt_NM 11970 11971# A symbol stripping program 11972STRIP=$STRIP 11973 11974# Used to examine libraries when file_magic_cmd begins "file" 11975MAGIC_CMD=$MAGIC_CMD 11976 11977# Used on cygwin: DLL creation program. 11978DLLTOOL="$DLLTOOL" 11979 11980# Used on cygwin: object dumper. 11981OBJDUMP="$OBJDUMP" 11982 11983# Used on cygwin: assembler. 11984AS="$AS" 11985 11986# The name of the directory that contains temporary libtool files. 11987objdir=$objdir 11988 11989# How to create reloadable object files. 11990reload_flag=$lt_reload_flag 11991reload_cmds=$lt_reload_cmds 11992 11993# How to pass a linker flag through the compiler. 11994wl=$lt_lt_prog_compiler_wl 11995 11996# Object file suffix (normally "o"). 11997objext="$ac_objext" 11998 11999# Old archive suffix (normally "a"). 12000libext="$libext" 12001 12002# Shared library suffix (normally ".so"). 12003shrext='$shrext' 12004 12005# Executable file suffix (normally ""). 12006exeext="$exeext" 12007 12008# Additional compiler flags for building library objects. 12009pic_flag=$lt_lt_prog_compiler_pic 12010pic_mode=$pic_mode 12011 12012# What is the maximum length of a command? 12013max_cmd_len=$lt_cv_sys_max_cmd_len 12014 12015# Does compiler simultaneously support -c and -o options? 12016compiler_c_o=$lt_lt_cv_prog_compiler_c_o 12017 12018# Must we lock files when doing compilation ? 12019need_locks=$lt_need_locks 12020 12021# Do we need the lib prefix for modules? 12022need_lib_prefix=$need_lib_prefix 12023 12024# Do we need a version for libraries? 12025need_version=$need_version 12026 12027# Whether dlopen is supported. 12028dlopen_support=$enable_dlopen 12029 12030# Whether dlopen of programs is supported. 12031dlopen_self=$enable_dlopen_self 12032 12033# Whether dlopen of statically linked programs is supported. 12034dlopen_self_static=$enable_dlopen_self_static 12035 12036# Compiler flag to prevent dynamic linking. 12037link_static_flag=$lt_lt_prog_compiler_static 12038 12039# Compiler flag to turn off builtin functions. 12040no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12041 12042# Compiler flag to allow reflexive dlopens. 12043export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12044 12045# Compiler flag to generate shared objects directly from archives. 12046whole_archive_flag_spec=$lt_whole_archive_flag_spec 12047 12048# Compiler flag to generate thread-safe objects. 12049thread_safe_flag_spec=$lt_thread_safe_flag_spec 12050 12051# Library versioning type. 12052version_type=$version_type 12053 12054# Format of library name prefix. 12055libname_spec=$lt_libname_spec 12056 12057# List of archive names. First name is the real one, the rest are links. 12058# The last name is the one that the linker finds with -lNAME. 12059library_names_spec=$lt_library_names_spec 12060 12061# The coded name of the library, if different from the real name. 12062soname_spec=$lt_soname_spec 12063 12064# Commands used to build and install an old-style archive. 12065RANLIB=$lt_RANLIB 12066old_archive_cmds=$lt_old_archive_cmds 12067old_postinstall_cmds=$lt_old_postinstall_cmds 12068old_postuninstall_cmds=$lt_old_postuninstall_cmds 12069 12070# Create an old-style archive from a shared archive. 12071old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12072 12073# Create a temporary old-style archive to link instead of a shared archive. 12074old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12075 12076# Commands used to build and install a shared archive. 12077archive_cmds=$lt_archive_cmds 12078archive_expsym_cmds=$lt_archive_expsym_cmds 12079postinstall_cmds=$lt_postinstall_cmds 12080postuninstall_cmds=$lt_postuninstall_cmds 12081 12082# Commands used to build a loadable module (assumed same as above if empty) 12083module_cmds=$lt_module_cmds 12084module_expsym_cmds=$lt_module_expsym_cmds 12085 12086# Commands to strip libraries. 12087old_striplib=$lt_old_striplib 12088striplib=$lt_striplib 12089 12090# Dependencies to place before the objects being linked to create a 12091# shared library. 12092predep_objects=$lt_predep_objects 12093 12094# Dependencies to place after the objects being linked to create a 12095# shared library. 12096postdep_objects=$lt_postdep_objects 12097 12098# Dependencies to place before the objects being linked to create a 12099# shared library. 12100predeps=$lt_predeps 12101 12102# Dependencies to place after the objects being linked to create a 12103# shared library. 12104postdeps=$lt_postdeps 12105 12106# The library search path used internally by the compiler when linking 12107# a shared library. 12108compiler_lib_search_path=$lt_compiler_lib_search_path 12109 12110# Method to check whether dependent libraries are shared objects. 12111deplibs_check_method=$lt_deplibs_check_method 12112 12113# Command to use when deplibs_check_method == file_magic. 12114file_magic_cmd=$lt_file_magic_cmd 12115 12116# Flag that allows shared libraries with undefined symbols to be built. 12117allow_undefined_flag=$lt_allow_undefined_flag 12118 12119# Flag that forces no undefined symbols. 12120no_undefined_flag=$lt_no_undefined_flag 12121 12122# Commands used to finish a libtool library installation in a directory. 12123finish_cmds=$lt_finish_cmds 12124 12125# Same as above, but a single script fragment to be evaled but not shown. 12126finish_eval=$lt_finish_eval 12127 12128# Take the output of nm and produce a listing of raw symbols and C names. 12129global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12130 12131# Transform the output of nm in a proper C declaration 12132global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12133 12134# Transform the output of nm in a C name address pair 12135global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12136 12137# This is the shared library runtime path variable. 12138runpath_var=$runpath_var 12139 12140# This is the shared library path variable. 12141shlibpath_var=$shlibpath_var 12142 12143# Is shlibpath searched before the hard-coded library search path? 12144shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12145 12146# How to hardcode a shared library path into an executable. 12147hardcode_action=$hardcode_action 12148 12149# Whether we should hardcode library paths into libraries. 12150hardcode_into_libs=$hardcode_into_libs 12151 12152# Flag to hardcode \$libdir into a binary during linking. 12153# This must work even if \$libdir does not exist. 12154hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12155 12156# If ld is used when linking, flag to hardcode \$libdir into 12157# a binary during linking. This must work even if \$libdir does 12158# not exist. 12159hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12160 12161# Whether we need a single -rpath flag with a separated argument. 12162hardcode_libdir_separator=$lt_hardcode_libdir_separator 12163 12164# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12165# resulting binary. 12166hardcode_direct=$hardcode_direct 12167 12168# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12169# resulting binary. 12170hardcode_minus_L=$hardcode_minus_L 12171 12172# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12173# the resulting binary. 12174hardcode_shlibpath_var=$hardcode_shlibpath_var 12175 12176# Set to yes if building a shared library automatically hardcodes DIR into the library 12177# and all subsequent libraries and executables linked against it. 12178hardcode_automatic=$hardcode_automatic 12179 12180# Variables whose values should be saved in libtool wrapper scripts and 12181# restored at relink time. 12182variables_saved_for_relink="$variables_saved_for_relink" 12183 12184# Whether libtool must link a program against all its dependency libraries. 12185link_all_deplibs=$link_all_deplibs 12186 12187# Compile-time system search path for libraries 12188sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12189 12190# Run-time system search path for libraries 12191sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12192 12193# Fix the shell variable \$srcfile for the compiler. 12194fix_srcfile_path="$fix_srcfile_path" 12195 12196# Set to yes if exported symbols are required. 12197always_export_symbols=$always_export_symbols 12198 12199# The commands to list exported symbols. 12200export_symbols_cmds=$lt_export_symbols_cmds 12201 12202# The commands to extract the exported symbol list from a shared archive. 12203extract_expsyms_cmds=$lt_extract_expsyms_cmds 12204 12205# Symbols that should not be listed in the preloaded symbols. 12206exclude_expsyms=$lt_exclude_expsyms 12207 12208# Symbols that must always be exported. 12209include_expsyms=$lt_include_expsyms 12210 12211# ### END LIBTOOL CONFIG 12212 12213__EOF__ 12214 12215 12216 case $host_os in 12217 aix3*) 12218 cat <<\EOF >> "$cfgfile" 12219 12220# AIX sometimes has problems with the GCC collect2 program. For some 12221# reason, if we set the COLLECT_NAMES environment variable, the problems 12222# vanish in a puff of smoke. 12223if test "X${COLLECT_NAMES+set}" != Xset; then 12224 COLLECT_NAMES= 12225 export COLLECT_NAMES 12226fi 12227EOF 12228 ;; 12229 esac 12230 12231 # We use sed instead of cat because bash on DJGPP gets confused if 12232 # if finds mixed CR/LF and LF-only lines. Since sed operates in 12233 # text mode, it properly converts lines to CR/LF. This bash problem 12234 # is reportedly fixed, but why not run on old versions too? 12235 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 12236 12237 mv -f "$cfgfile" "$ofile" || \ 12238 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 12239 chmod +x "$ofile" 12240 12241else 12242 # If there is no Makefile yet, we rely on a make rule to execute 12243 # `config.status --recheck' to rerun these tests and create the 12244 # libtool script then. 12245 test -f Makefile && make "$ltmain" 12246fi 12247 12248 12249ac_ext=c 12250ac_cpp='$CPP $CPPFLAGS' 12251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12253ac_compiler_gnu=$ac_cv_c_compiler_gnu 12254 12255CC="$lt_save_CC" 12256 12257 12258# Check whether --with-tags or --without-tags was given. 12259if test "${with_tags+set}" = set; then 12260 withval="$with_tags" 12261 tagnames="$withval" 12262fi; 12263 12264if test -f "$ltmain" && test -n "$tagnames"; then 12265 if test ! -f "${ofile}"; then 12266 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 12267echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 12268 fi 12269 12270 if test -z "$LTCC"; then 12271 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 12272 if test -z "$LTCC"; then 12273 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 12274echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 12275 else 12276 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 12277echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 12278 fi 12279 fi 12280 12281 # Extract list of available tagged configurations in $ofile. 12282 # Note that this assumes the entire list is on one line. 12283 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 12284 12285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12286 for tagname in $tagnames; do 12287 IFS="$lt_save_ifs" 12288 # Check whether tagname contains only valid characters 12289 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 12290 "") ;; 12291 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 12292echo "$as_me: error: invalid tag name: $tagname" >&2;} 12293 { (exit 1); exit 1; }; } 12294 ;; 12295 esac 12296 12297 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 12298 then 12299 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 12300echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 12301 { (exit 1); exit 1; }; } 12302 fi 12303 12304 # Update the list of available tags. 12305 if test -n "$tagname"; then 12306 echo appending configuration tag \"$tagname\" to $ofile 12307 12308 case $tagname in 12309 CXX) 12310 if test -n "$CXX" && test "X$CXX" != "Xno"; then 12311 ac_ext=cc 12312ac_cpp='$CXXCPP $CPPFLAGS' 12313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12316 12317 12318 12319 12320archive_cmds_need_lc_CXX=no 12321allow_undefined_flag_CXX= 12322always_export_symbols_CXX=no 12323archive_expsym_cmds_CXX= 12324export_dynamic_flag_spec_CXX= 12325hardcode_direct_CXX=no 12326hardcode_libdir_flag_spec_CXX= 12327hardcode_libdir_flag_spec_ld_CXX= 12328hardcode_libdir_separator_CXX= 12329hardcode_minus_L_CXX=no 12330hardcode_automatic_CXX=no 12331module_cmds_CXX= 12332module_expsym_cmds_CXX= 12333link_all_deplibs_CXX=unknown 12334old_archive_cmds_CXX=$old_archive_cmds 12335no_undefined_flag_CXX= 12336whole_archive_flag_spec_CXX= 12337enable_shared_with_static_runtimes_CXX=no 12338 12339# Dependencies to place before and after the object being linked: 12340predep_objects_CXX= 12341postdep_objects_CXX= 12342predeps_CXX= 12343postdeps_CXX= 12344compiler_lib_search_path_CXX= 12345 12346# Source file extension for C++ test sources. 12347ac_ext=cc 12348 12349# Object file extension for compiled C++ test sources. 12350objext=o 12351objext_CXX=$objext 12352 12353# Code to be used in simple compile tests 12354lt_simple_compile_test_code="int some_variable = 0;\n" 12355 12356# Code to be used in simple link tests 12357lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 12358 12359# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12360 12361# If no C compiler was specified, use CC. 12362LTCC=${LTCC-"$CC"} 12363 12364# Allow CC to be a program name with arguments. 12365compiler=$CC 12366 12367 12368# Allow CC to be a program name with arguments. 12369lt_save_CC=$CC 12370lt_save_LD=$LD 12371lt_save_GCC=$GCC 12372GCC=$GXX 12373lt_save_with_gnu_ld=$with_gnu_ld 12374lt_save_path_LD=$lt_cv_path_LD 12375if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12376 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12377else 12378 unset lt_cv_prog_gnu_ld 12379fi 12380if test -n "${lt_cv_path_LDCXX+set}"; then 12381 lt_cv_path_LD=$lt_cv_path_LDCXX 12382else 12383 unset lt_cv_path_LD 12384fi 12385test -z "${LDCXX+set}" || LD=$LDCXX 12386CC=${CXX-"c++"} 12387compiler=$CC 12388compiler_CXX=$CC 12389cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 12390 12391# We don't want -fno-exception wen compiling C++ code, so set the 12392# no_builtin_flag separately 12393if test "$GXX" = yes; then 12394 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12395else 12396 lt_prog_compiler_no_builtin_flag_CXX= 12397fi 12398 12399if test "$GXX" = yes; then 12400 # Set up default GNU C++ configuration 12401 12402 12403# Check whether --with-gnu-ld or --without-gnu-ld was given. 12404if test "${with_gnu_ld+set}" = set; then 12405 withval="$with_gnu_ld" 12406 test "$withval" = no || with_gnu_ld=yes 12407else 12408 with_gnu_ld=no 12409fi; 12410ac_prog=ld 12411if test "$GCC" = yes; then 12412 # Check if gcc -print-prog-name=ld gives a path. 12413 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12414echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 12415 case $host in 12416 *-*-mingw*) 12417 # gcc leaves a trailing carriage return which upsets mingw 12418 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12419 *) 12420 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12421 esac 12422 case $ac_prog in 12423 # Accept absolute paths. 12424 [\\/]* | ?:[\\/]*) 12425 re_direlt='/[^/][^/]*/\.\./' 12426 # Canonicalize the pathname of ld 12427 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12428 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12429 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12430 done 12431 test -z "$LD" && LD="$ac_prog" 12432 ;; 12433 "") 12434 # If it fails, then pretend we aren't using GCC. 12435 ac_prog=ld 12436 ;; 12437 *) 12438 # If it is relative, then search for the first ld in PATH. 12439 with_gnu_ld=unknown 12440 ;; 12441 esac 12442elif test "$with_gnu_ld" = yes; then 12443 echo "$as_me:$LINENO: checking for GNU ld" >&5 12444echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 12445else 12446 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12447echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 12448fi 12449if test "${lt_cv_path_LD+set}" = set; then 12450 echo $ECHO_N "(cached) $ECHO_C" >&6 12451else 12452 if test -z "$LD"; then 12453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12454 for ac_dir in $PATH; do 12455 IFS="$lt_save_ifs" 12456 test -z "$ac_dir" && ac_dir=. 12457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12458 lt_cv_path_LD="$ac_dir/$ac_prog" 12459 # Check to see if the program is GNU ld. I'd rather use --version, 12460 # but apparently some GNU ld's only accept -v. 12461 # Break only if it was the GNU/non-GNU ld that we prefer. 12462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12463 *GNU* | *'with BFD'*) 12464 test "$with_gnu_ld" != no && break 12465 ;; 12466 *) 12467 test "$with_gnu_ld" != yes && break 12468 ;; 12469 esac 12470 fi 12471 done 12472 IFS="$lt_save_ifs" 12473else 12474 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12475fi 12476fi 12477 12478LD="$lt_cv_path_LD" 12479if test -n "$LD"; then 12480 echo "$as_me:$LINENO: result: $LD" >&5 12481echo "${ECHO_T}$LD" >&6 12482else 12483 echo "$as_me:$LINENO: result: no" >&5 12484echo "${ECHO_T}no" >&6 12485fi 12486test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12487echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12488 { (exit 1); exit 1; }; } 12489echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12490echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 12491if test "${lt_cv_prog_gnu_ld+set}" = set; then 12492 echo $ECHO_N "(cached) $ECHO_C" >&6 12493else 12494 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12495case `$LD -v 2>&1 </dev/null` in 12496*GNU* | *'with BFD'*) 12497 lt_cv_prog_gnu_ld=yes 12498 ;; 12499*) 12500 lt_cv_prog_gnu_ld=no 12501 ;; 12502esac 12503fi 12504echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12505echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 12506with_gnu_ld=$lt_cv_prog_gnu_ld 12507 12508 12509 12510 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12511 # archiving commands below assume that GNU ld is being used. 12512 if test "$with_gnu_ld" = yes; then 12513 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' 12514 archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12515 12516 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12517 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12518 12519 # If archive_cmds runs LD, not CC, wlarc should be empty 12520 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12521 # investigate it a little bit more. (MM) 12522 wlarc='${wl}' 12523 12524 # ancient GNU ld didn't support --whole-archive et. al. 12525 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12526 grep 'no-whole-archive' > /dev/null; then 12527 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12528 else 12529 whole_archive_flag_spec_CXX= 12530 fi 12531 else 12532 with_gnu_ld=no 12533 wlarc= 12534 12535 # A generic and very simple default shared library creation 12536 # command for GNU C++ for the case where it uses the native 12537 # linker, instead of GNU ld. If possible, this setting should 12538 # overridden to take advantage of the native linker features on 12539 # the platform it is being used on. 12540 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib' 12541 fi 12542 12543 # Commands to make compiler produce verbose output that lists 12544 # what "hidden" libraries, object files and flags are used when 12545 # linking a shared library. 12546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12547 12548else 12549 GXX=no 12550 with_gnu_ld=no 12551 wlarc= 12552fi 12553 12554# PORTME: fill in a description of your system's C++ link characteristics 12555echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12556echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12557ld_shlibs_CXX=yes 12558case $host_os in 12559 aix3*) 12560 # FIXME: insert proper C++ library support 12561 ld_shlibs_CXX=no 12562 ;; 12563 aix4* | aix5*) 12564 if test "$host_cpu" = ia64; then 12565 # On IA64, the linker does run time linking by default, so we don't 12566 # have to do anything special. 12567 aix_use_runtimelinking=no 12568 exp_sym_flag='-Bexport' 12569 no_entry_flag="" 12570 else 12571 # KDE requires run time linking. Make it the default. 12572 aix_use_runtimelinking=yes 12573 exp_sym_flag='-bexport' 12574 no_entry_flag='-bnoentry' 12575 fi 12576 12577 # When large executables or shared objects are built, AIX ld can 12578 # have problems creating the table of contents. If linking a library 12579 # or program results in "error TOC overflow" add -mminimal-toc to 12580 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12581 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12582 12583 archive_cmds_CXX='' 12584 hardcode_direct_CXX=yes 12585 hardcode_libdir_separator_CXX=':' 12586 link_all_deplibs_CXX=yes 12587 12588 if test "$GXX" = yes; then 12589 case $host_os in aix4.012|aix4.012.*) 12590 # We only want to do this on AIX 4.2 and lower, the check 12591 # below for broken collect2 doesn't work under 4.3+ 12592 collect2name=`${CC} -print-prog-name=collect2` 12593 if test -f "$collect2name" && \ 12594 strings "$collect2name" | grep resolve_lib_name >/dev/null 12595 then 12596 # We have reworked collect2 12597 hardcode_direct_CXX=yes 12598 else 12599 # We have old collect2 12600 hardcode_direct_CXX=unsupported 12601 # It fails to find uninstalled libraries when the uninstalled 12602 # path is not listed in the libpath. Setting hardcode_minus_L 12603 # to unsupported forces relinking 12604 hardcode_minus_L_CXX=yes 12605 hardcode_libdir_flag_spec_CXX='-L$libdir' 12606 hardcode_libdir_separator_CXX= 12607 fi 12608 esac 12609 shared_flag='-shared' 12610 else 12611 # not using gcc 12612 if test "$host_cpu" = ia64; then 12613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12614 # chokes on -Wl,-G. The following line is correct: 12615 shared_flag='-G' 12616 else 12617 if test "$aix_use_runtimelinking" = yes; then 12618 shared_flag='-qmkshrobj ${wl}-G' 12619 else 12620 shared_flag='-qmkshrobj' 12621 fi 12622 fi 12623 fi 12624 12625 # Let the compiler handle the export list. 12626 always_export_symbols_CXX=no 12627 if test "$aix_use_runtimelinking" = yes; then 12628 # Warning - without using the other runtime loading flags (-brtl), 12629 # -berok will link without error, but may produce a broken library. 12630 allow_undefined_flag_CXX='-berok' 12631 # Determine the default libpath from the value encoded in an empty executable. 12632 cat >conftest.$ac_ext <<_ACEOF 12633/* confdefs.h. */ 12634_ACEOF 12635cat confdefs.h >>conftest.$ac_ext 12636cat >>conftest.$ac_ext <<_ACEOF 12637/* end confdefs.h. */ 12638 12639int 12640main () 12641{ 12642 12643 ; 12644 return 0; 12645} 12646_ACEOF 12647rm -f conftest.$ac_objext conftest$ac_exeext 12648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12649 (eval $ac_link) 2>conftest.er1 12650 ac_status=$? 12651 grep -v '^ *+' conftest.er1 >conftest.err 12652 rm -f conftest.er1 12653 cat conftest.err >&5 12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12655 (exit $ac_status); } && 12656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12658 (eval $ac_try) 2>&5 12659 ac_status=$? 12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12661 (exit $ac_status); }; } && 12662 { ac_try='test -s conftest$ac_exeext' 12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12664 (eval $ac_try) 2>&5 12665 ac_status=$? 12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12667 (exit $ac_status); }; }; then 12668 12669aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12670}'` 12671# Check for a 64-bit object if we didn't find anything. 12672if 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; } 12673}'`; fi 12674else 12675 echo "$as_me: failed program was:" >&5 12676sed 's/^/| /' conftest.$ac_ext >&5 12677 12678fi 12679rm -f conftest.err conftest.$ac_objext \ 12680 conftest$ac_exeext conftest.$ac_ext 12681if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12682 12683 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12684 12685 archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" 12686 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12687 else 12688 if test "$host_cpu" = ia64; then 12689 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12690 allow_undefined_flag_CXX="-z nodefs" 12691 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 12692 else 12693 # Determine the default libpath from the value encoded in an empty executable. 12694 cat >conftest.$ac_ext <<_ACEOF 12695/* confdefs.h. */ 12696_ACEOF 12697cat confdefs.h >>conftest.$ac_ext 12698cat >>conftest.$ac_ext <<_ACEOF 12699/* end confdefs.h. */ 12700 12701int 12702main () 12703{ 12704 12705 ; 12706 return 0; 12707} 12708_ACEOF 12709rm -f conftest.$ac_objext conftest$ac_exeext 12710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12711 (eval $ac_link) 2>conftest.er1 12712 ac_status=$? 12713 grep -v '^ *+' conftest.er1 >conftest.err 12714 rm -f conftest.er1 12715 cat conftest.err >&5 12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12717 (exit $ac_status); } && 12718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12720 (eval $ac_try) 2>&5 12721 ac_status=$? 12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12723 (exit $ac_status); }; } && 12724 { ac_try='test -s conftest$ac_exeext' 12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12726 (eval $ac_try) 2>&5 12727 ac_status=$? 12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12729 (exit $ac_status); }; }; then 12730 12731aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12732}'` 12733# Check for a 64-bit object if we didn't find anything. 12734if 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; } 12735}'`; fi 12736else 12737 echo "$as_me: failed program was:" >&5 12738sed 's/^/| /' conftest.$ac_ext >&5 12739 12740fi 12741rm -f conftest.err conftest.$ac_objext \ 12742 conftest$ac_exeext conftest.$ac_ext 12743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12744 12745 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12746 # Warning - without using the other run time loading flags, 12747 # -berok will link without error, but may produce a broken library. 12748 no_undefined_flag_CXX=' ${wl}-bernotok' 12749 allow_undefined_flag_CXX=' ${wl}-berok' 12750 # -bexpall does not export symbols beginning with underscore (_) 12751 always_export_symbols_CXX=yes 12752 # Exported symbols can be pulled into shared objects from archives 12753 whole_archive_flag_spec_CXX=' ' 12754 archive_cmds_need_lc_CXX=yes 12755 # This is similar to how AIX traditionally builds it's shared libraries. 12756 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12757 fi 12758 fi 12759 ;; 12760 chorus*) 12761 case $cc_basename in 12762 *) 12763 # FIXME: insert proper C++ library support 12764 ld_shlibs_CXX=no 12765 ;; 12766 esac 12767 ;; 12768 12769 cygwin* | mingw* | pw32*) 12770 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12771 # as there is no search path for DLLs. 12772 hardcode_libdir_flag_spec_CXX='-L$libdir' 12773 allow_undefined_flag_CXX=no 12774 always_export_symbols_CXX=no 12775 enable_shared_with_static_runtimes_CXX=yes 12776 12777 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12778 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12779 # If the export-symbols file already is a .def file (1st line 12780 # is EXPORTS), use it as is; otherwise, prepend... 12781 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12782 cp $export_symbols $output_objdir/$soname.def; 12783 else 12784 echo EXPORTS > $output_objdir/$soname.def; 12785 cat $export_symbols >> $output_objdir/$soname.def; 12786 fi~ 12787 $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12788 else 12789 ld_shlibs_CXX=no 12790 fi 12791 ;; 12792 12793 darwin* | rhapsody*) 12794 if test "$GXX" = yes; then 12795 archive_cmds_need_lc_CXX=no 12796 case "$host_os" in 12797 rhapsody* | darwin1.[012]) 12798 allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress' 12799 ;; 12800 *) # Darwin 1.3 on 12801 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 12802 allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 12803 else 12804 case ${MACOSX_DEPLOYMENT_TARGET} in 12805 10.012) 12806 allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 12807 ;; 12808 10.*) 12809 allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup' 12810 ;; 12811 esac 12812 fi 12813 ;; 12814 esac 12815 lt_int_apple_cc_single_mod=no 12816 output_verbose_link_cmd='echo' 12817 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 12818 lt_int_apple_cc_single_mod=yes 12819 fi 12820 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12821 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' 12822 else 12823 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 $compiler_flags $deplibs -install_name $rpath/$soname $verstring' 12824 fi 12825 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' 12826 12827 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 12828 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12829 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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12830 else 12831 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 $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12832 fi 12833 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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12834 hardcode_direct_CXX=no 12835 hardcode_automatic_CXX=yes 12836 hardcode_shlibpath_var_CXX=unsupported 12837 whole_archive_flag_spec_CXX='-all_load $convenience' 12838 link_all_deplibs_CXX=yes 12839 else 12840 ld_shlibs_CXX=no 12841 fi 12842 ;; 12843 12844 dgux*) 12845 case $cc_basename in 12846 ec++) 12847 # FIXME: insert proper C++ library support 12848 ld_shlibs_CXX=no 12849 ;; 12850 ghcx) 12851 # Green Hills C++ Compiler 12852 # FIXME: insert proper C++ library support 12853 ld_shlibs_CXX=no 12854 ;; 12855 *) 12856 # FIXME: insert proper C++ library support 12857 ld_shlibs_CXX=no 12858 ;; 12859 esac 12860 ;; 12861 freebsd12*) 12862 # C++ shared libraries reported to be fairly broken before switch to ELF 12863 ld_shlibs_CXX=no 12864 ;; 12865 freebsd-elf*) 12866 archive_cmds_need_lc_CXX=no 12867 ;; 12868 freebsd* | kfreebsd*-gnu) 12869 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12870 # conventions 12871 ld_shlibs_CXX=yes 12872 ;; 12873 gnu*) 12874 ;; 12875 hpux9*) 12876 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12877 hardcode_libdir_separator_CXX=: 12878 export_dynamic_flag_spec_CXX='${wl}-E' 12879 hardcode_direct_CXX=yes 12880 hardcode_minus_L_CXX=yes # Not in the search PATH, 12881 # but as the default 12882 # location of the library. 12883 12884 case $cc_basename in 12885 CC) 12886 # FIXME: insert proper C++ library support 12887 ld_shlibs_CXX=no 12888 ;; 12889 aCC) 12890 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12891 # Commands to make compiler produce verbose output that lists 12892 # what "hidden" libraries, object files and flags are used when 12893 # linking a shared library. 12894 # 12895 # There doesn't appear to be a way to prevent this compiler from 12896 # explicitly linking system object files so we need to strip them 12897 # from the output so that they don't get included in the library 12898 # dependencies. 12899 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12900 ;; 12901 *) 12902 if test "$GXX" = yes; then 12903 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12904 else 12905 # FIXME: insert proper C++ library support 12906 ld_shlibs_CXX=no 12907 fi 12908 ;; 12909 esac 12910 ;; 12911 hpux10*|hpux11*) 12912 if test $with_gnu_ld = no; then 12913 case "$host_cpu" in 12914 hppa*64*) 12915 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12916 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 12917 hardcode_libdir_separator_CXX=: 12918 ;; 12919 ia64*) 12920 hardcode_libdir_flag_spec_CXX='-L$libdir' 12921 ;; 12922 *) 12923 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12924 hardcode_libdir_separator_CXX=: 12925 export_dynamic_flag_spec_CXX='${wl}-E' 12926 ;; 12927 esac 12928 fi 12929 case "$host_cpu" in 12930 hppa*64*) 12931 hardcode_direct_CXX=no 12932 hardcode_shlibpath_var_CXX=no 12933 ;; 12934 ia64*) 12935 hardcode_direct_CXX=no 12936 hardcode_shlibpath_var_CXX=no 12937 hardcode_minus_L_CXX=yes # Not in the search PATH, 12938 # but as the default 12939 # location of the library. 12940 ;; 12941 *) 12942 hardcode_direct_CXX=yes 12943 hardcode_minus_L_CXX=yes # Not in the search PATH, 12944 # but as the default 12945 # location of the library. 12946 ;; 12947 esac 12948 12949 case $cc_basename in 12950 CC) 12951 # FIXME: insert proper C++ library support 12952 ld_shlibs_CXX=no 12953 ;; 12954 aCC) 12955 case "$host_cpu" in 12956 hppa*64*|ia64*) 12957 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12958 ;; 12959 *) 12960 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' 12961 ;; 12962 esac 12963 # Commands to make compiler produce verbose output that lists 12964 # what "hidden" libraries, object files and flags are used when 12965 # linking a shared library. 12966 # 12967 # There doesn't appear to be a way to prevent this compiler from 12968 # explicitly linking system object files so we need to strip them 12969 # from the output so that they don't get included in the library 12970 # dependencies. 12971 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' 12972 ;; 12973 *) 12974 if test "$GXX" = yes; then 12975 if test $with_gnu_ld = no; then 12976 case "$host_cpu" in 12977 ia64*|hppa*64*) 12978 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12979 ;; 12980 *) 12981 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' 12982 ;; 12983 esac 12984 fi 12985 else 12986 # FIXME: insert proper C++ library support 12987 ld_shlibs_CXX=no 12988 fi 12989 ;; 12990 esac 12991 ;; 12992 irix5* | irix6*) 12993 case $cc_basename in 12994 CC) 12995 # SGI C++ 12996 archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 12997 12998 # Archives containing C++ object files must be created using 12999 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13000 # necessary to make sure instantiated templates are included 13001 # in the archive. 13002 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13003 ;; 13004 *) 13005 if test "$GXX" = yes; then 13006 if test "$with_gnu_ld" = no; then 13007 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 13008 else 13009 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 13010 fi 13011 fi 13012 link_all_deplibs_CXX=yes 13013 ;; 13014 esac 13015 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13016 hardcode_libdir_separator_CXX=: 13017 ;; 13018 linux*) 13019 case $cc_basename in 13020 KCC) 13021 # Kuck and Associates, Inc. (KAI) C++ Compiler 13022 13023 # KCC will only create a shared library if the output file 13024 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13025 # to its proper name (with version) after linking. 13026 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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' 13027 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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13028 # Commands to make compiler produce verbose output that lists 13029 # what "hidden" libraries, object files and flags are used when 13030 # linking a shared library. 13031 # 13032 # There doesn't appear to be a way to prevent this compiler from 13033 # explicitly linking system object files so we need to strip them 13034 # from the output so that they don't get included in the library 13035 # dependencies. 13036 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' 13037 13038 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 13039 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13040 13041 # Archives containing C++ object files must be created using 13042 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13043 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13044 ;; 13045 icpc) 13046 # Intel C++ 13047 with_gnu_ld=yes 13048 archive_cmds_need_lc_CXX=no 13049 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' 13050 archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13051 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13052 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13053 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13054 ;; 13055 cxx) 13056 # Compaq C++ 13057 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib' 13058 archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13059 13060 runpath_var=LD_RUN_PATH 13061 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13062 hardcode_libdir_separator_CXX=: 13063 13064 # Commands to make compiler produce verbose output that lists 13065 # what "hidden" libraries, object files and flags are used when 13066 # linking a shared library. 13067 # 13068 # There doesn't appear to be a way to prevent this compiler from 13069 # explicitly linking system object files so we need to strip them 13070 # from the output so that they don't get included in the library 13071 # dependencies. 13072 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' 13073 ;; 13074 esac 13075 ;; 13076 lynxos*) 13077 # FIXME: insert proper C++ library support 13078 ld_shlibs_CXX=no 13079 ;; 13080 m88k*) 13081 # FIXME: insert proper C++ library support 13082 ld_shlibs_CXX=no 13083 ;; 13084 mvs*) 13085 case $cc_basename in 13086 cxx) 13087 # FIXME: insert proper C++ library support 13088 ld_shlibs_CXX=no 13089 ;; 13090 *) 13091 # FIXME: insert proper C++ library support 13092 ld_shlibs_CXX=no 13093 ;; 13094 esac 13095 ;; 13096 netbsd*) 13097 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13098 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13099 wlarc= 13100 hardcode_libdir_flag_spec_CXX='-R$libdir' 13101 hardcode_direct_CXX=yes 13102 hardcode_shlibpath_var_CXX=no 13103 fi 13104 # Workaround some broken pre-1.5 toolchains 13105 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13106 ;; 13107 osf3*) 13108 case $cc_basename in 13109 KCC) 13110 # Kuck and Associates, Inc. (KAI) C++ Compiler 13111 13112 # KCC will only create a shared library if the output file 13113 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13114 # to its proper name (with version) after linking. 13115 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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' 13116 13117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13118 hardcode_libdir_separator_CXX=: 13119 13120 # Archives containing C++ object files must be created using 13121 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13122 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13123 13124 ;; 13125 RCC) 13126 # Rational C++ 2.4.1 13127 # FIXME: insert proper C++ library support 13128 ld_shlibs_CXX=no 13129 ;; 13130 cxx) 13131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13132 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 13133 13134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13135 hardcode_libdir_separator_CXX=: 13136 13137 # Commands to make compiler produce verbose output that lists 13138 # what "hidden" libraries, object files and flags are used when 13139 # linking a shared library. 13140 # 13141 # There doesn't appear to be a way to prevent this compiler from 13142 # explicitly linking system object files so we need to strip them 13143 # from the output so that they don't get included in the library 13144 # dependencies. 13145 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' 13146 ;; 13147 *) 13148 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13149 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13150 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 13151 13152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13153 hardcode_libdir_separator_CXX=: 13154 13155 # Commands to make compiler produce verbose output that lists 13156 # what "hidden" libraries, object files and flags are used when 13157 # linking a shared library. 13158 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13159 13160 else 13161 # FIXME: insert proper C++ library support 13162 ld_shlibs_CXX=no 13163 fi 13164 ;; 13165 esac 13166 ;; 13167 osf4* | osf5*) 13168 case $cc_basename in 13169 KCC) 13170 # Kuck and Associates, Inc. (KAI) C++ Compiler 13171 13172 # KCC will only create a shared library if the output file 13173 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13174 # to its proper name (with version) after linking. 13175 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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib' 13176 13177 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13178 hardcode_libdir_separator_CXX=: 13179 13180 # Archives containing C++ object files must be created using 13181 # the KAI C++ compiler. 13182 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 13183 ;; 13184 RCC) 13185 # Rational C++ 2.4.1 13186 # FIXME: insert proper C++ library support 13187 ld_shlibs_CXX=no 13188 ;; 13189 cxx) 13190 allow_undefined_flag_CXX=' -expect_unresolved \*' 13191 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 13192 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13193 echo "-hidden">> $lib.exp~ 13194 $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 13195 $rm $lib.exp' 13196 13197 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13198 hardcode_libdir_separator_CXX=: 13199 13200 # Commands to make compiler produce verbose output that lists 13201 # what "hidden" libraries, object files and flags are used when 13202 # linking a shared library. 13203 # 13204 # There doesn't appear to be a way to prevent this compiler from 13205 # explicitly linking system object files so we need to strip them 13206 # from the output so that they don't get included in the library 13207 # dependencies. 13208 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' 13209 ;; 13210 *) 13211 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13212 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13213 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 13214 13215 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13216 hardcode_libdir_separator_CXX=: 13217 13218 # Commands to make compiler produce verbose output that lists 13219 # what "hidden" libraries, object files and flags are used when 13220 # linking a shared library. 13221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13222 13223 else 13224 # FIXME: insert proper C++ library support 13225 ld_shlibs_CXX=no 13226 fi 13227 ;; 13228 esac 13229 ;; 13230 psos*) 13231 # FIXME: insert proper C++ library support 13232 ld_shlibs_CXX=no 13233 ;; 13234 sco*) 13235 archive_cmds_need_lc_CXX=no 13236 case $cc_basename in 13237 CC) 13238 # FIXME: insert proper C++ library support 13239 ld_shlibs_CXX=no 13240 ;; 13241 *) 13242 # FIXME: insert proper C++ library support 13243 ld_shlibs_CXX=no 13244 ;; 13245 esac 13246 ;; 13247 sunos4*) 13248 case $cc_basename in 13249 CC) 13250 # Sun C++ 4.x 13251 # FIXME: insert proper C++ library support 13252 ld_shlibs_CXX=no 13253 ;; 13254 lcc) 13255 # Lucid 13256 # FIXME: insert proper C++ library support 13257 ld_shlibs_CXX=no 13258 ;; 13259 *) 13260 # FIXME: insert proper C++ library support 13261 ld_shlibs_CXX=no 13262 ;; 13263 esac 13264 ;; 13265 solaris*) 13266 case $cc_basename in 13267 CC) 13268 # Sun C++ 4.2, 5.x and Centerline C++ 13269 no_undefined_flag_CXX=' -zdefs' 13270 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects' 13271 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13272 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' 13273 13274 hardcode_libdir_flag_spec_CXX='-R$libdir' 13275 hardcode_shlibpath_var_CXX=no 13276 case $host_os in 13277 solaris2.0-5 | solaris2.0-5.*) ;; 13278 *) 13279 # The C++ compiler is used as linker so we must use $wl 13280 # flag to pass the commands to the underlying system 13281 # linker. 13282 # Supported since Solaris 2.6 (maybe 2.5.1?) 13283 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13284 ;; 13285 esac 13286 link_all_deplibs_CXX=yes 13287 13288 # Commands to make compiler produce verbose output that lists 13289 # what "hidden" libraries, object files and flags are used when 13290 # linking a shared library. 13291 # 13292 # There doesn't appear to be a way to prevent this compiler from 13293 # explicitly linking system object files so we need to strip them 13294 # from the output so that they don't get included in the library 13295 # dependencies. 13296 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' 13297 13298 # Archives containing C++ object files must be created using 13299 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13300 # necessary to make sure instantiated templates are included 13301 # in the archive. 13302 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13303 ;; 13304 gcx) 13305 # Green Hills C++ Compiler 13306 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' 13307 13308 # The C++ compiler must be used to create the archive. 13309 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13310 ;; 13311 *) 13312 # GNU C++ compiler with Solaris linker 13313 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13314 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13315 if $CC --version | grep -v '^2\.7' > /dev/null; then 13316 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' 13317 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13318 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' 13319 13320 # Commands to make compiler produce verbose output that lists 13321 # what "hidden" libraries, object files and flags are used when 13322 # linking a shared library. 13323 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13324 else 13325 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13326 # platform. 13327 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib' 13328 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13329 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp' 13330 13331 # Commands to make compiler produce verbose output that lists 13332 # what "hidden" libraries, object files and flags are used when 13333 # linking a shared library. 13334 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13335 fi 13336 13337 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13338 fi 13339 ;; 13340 esac 13341 ;; 13342 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 13343 archive_cmds_need_lc_CXX=no 13344 ;; 13345 tandem*) 13346 case $cc_basename in 13347 NCC) 13348 # NonStop-UX NCC 3.20 13349 # FIXME: insert proper C++ library support 13350 ld_shlibs_CXX=no 13351 ;; 13352 *) 13353 # FIXME: insert proper C++ library support 13354 ld_shlibs_CXX=no 13355 ;; 13356 esac 13357 ;; 13358 vxworks*) 13359 # FIXME: insert proper C++ library support 13360 ld_shlibs_CXX=no 13361 ;; 13362 *) 13363 # FIXME: insert proper C++ library support 13364 ld_shlibs_CXX=no 13365 ;; 13366esac 13367echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13368echo "${ECHO_T}$ld_shlibs_CXX" >&6 13369test "$ld_shlibs_CXX" = no && can_build_shared=no 13370 13371GCC_CXX="$GXX" 13372LD_CXX="$LD" 13373 13374## CAVEAT EMPTOR: 13375## There is no encapsulation within the following macros, do not change 13376## the running order or otherwise move them around unless you know exactly 13377## what you are doing... 13378 13379cat > conftest.$ac_ext <<EOF 13380class Foo 13381{ 13382public: 13383 Foo (void) { a = 0; } 13384private: 13385 int a; 13386}; 13387EOF 13388 13389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13390 (eval $ac_compile) 2>&5 13391 ac_status=$? 13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13393 (exit $ac_status); }; then 13394 # Parse the compiler output and extract the necessary 13395 # objects, libraries and library flags. 13396 13397 # Sentinel used to keep track of whether or not we are before 13398 # the conftest object file. 13399 pre_test_object_deps_done=no 13400 13401 # The `*' in the case matches for architectures that use `case' in 13402 # $output_verbose_cmd can trigger glob expansion during the loop 13403 # eval without this substitution. 13404 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 13405 13406 for p in `eval $output_verbose_link_cmd`; do 13407 case $p in 13408 13409 -L* | -R* | -l*) 13410 # Some compilers place space between "-{L,R}" and the path. 13411 # Remove the space. 13412 if test $p = "-L" \ 13413 || test $p = "-R"; then 13414 prev=$p 13415 continue 13416 else 13417 prev= 13418 fi 13419 13420 if test "$pre_test_object_deps_done" = no; then 13421 case $p in 13422 -L* | -R*) 13423 # Internal compiler library paths should come after those 13424 # provided the user. The postdeps already come after the 13425 # user supplied libs so there is no need to process them. 13426 if test -z "$compiler_lib_search_path_CXX"; then 13427 compiler_lib_search_path_CXX="${prev}${p}" 13428 else 13429 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13430 fi 13431 ;; 13432 # The "-l" case would never come before the object being 13433 # linked, so don't bother handling this case. 13434 esac 13435 else 13436 if test -z "$postdeps_CXX"; then 13437 postdeps_CXX="${prev}${p}" 13438 else 13439 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13440 fi 13441 fi 13442 ;; 13443 13444 *.$objext|*.$libext) 13445 # This assumes that the test object file only shows up 13446 # once in the compiler output. 13447 if test "$p" = "conftest.$objext"; then 13448 pre_test_object_deps_done=yes 13449 continue 13450 fi 13451 13452 if test "$pre_test_object_deps_done" = no; then 13453 if test -z "$predep_objects_CXX"; then 13454 predep_objects_CXX="$p" 13455 else 13456 predep_objects_CXX="$predep_objects_CXX $p" 13457 fi 13458 else 13459 if test -z "$postdep_objects_CXX"; then 13460 postdep_objects_CXX="$p" 13461 else 13462 postdep_objects_CXX="$postdep_objects_CXX $p" 13463 fi 13464 fi 13465 ;; 13466 13467 *) ;; # Ignore the rest. 13468 13469 esac 13470 done 13471 13472 # Clean up. 13473 rm -f a.out a.exe 13474else 13475 echo "libtool.m4: error: problem compiling CXX test program" 13476fi 13477 13478$rm -f confest.$objext 13479 13480case " $postdeps_CXX " in 13481*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13482esac 13483 13484lt_prog_compiler_wl_CXX= 13485lt_prog_compiler_pic_CXX= 13486lt_prog_compiler_static_CXX= 13487 13488echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13489echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13490 13491 # C++ specific cases for pic, static, wl, etc. 13492 if test "$GXX" = yes; then 13493 lt_prog_compiler_wl_CXX='-Wl,' 13494 lt_prog_compiler_static_CXX='-static' 13495 13496 case $host_os in 13497 aix*) 13498 # All AIX code is PIC. 13499 if test "$host_cpu" = ia64; then 13500 # AIX 5 now supports IA64 processor 13501 lt_prog_compiler_static_CXX='-Bstatic' 13502 fi 13503 ;; 13504 amigaos*) 13505 # FIXME: we need at least 68020 code to build shared libraries, but 13506 # adding the `-m68020' flag to GCC prevents building anything better, 13507 # like `-m68040'. 13508 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13509 ;; 13510 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13511 # PIC is the default for these OSes. 13512 ;; 13513 mingw* | os2* | pw32*) 13514 # This hack is so that the source file can tell whether it is being 13515 # built for inclusion in a dll (and should export symbols for example). 13516 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13517 ;; 13518 darwin* | rhapsody*) 13519 # PIC is the default on this platform 13520 # Common symbols not allowed in MH_DYLIB files 13521 lt_prog_compiler_pic_CXX='-fno-common' 13522 ;; 13523 *djgpp*) 13524 # DJGPP does not support shared libraries at all 13525 lt_prog_compiler_pic_CXX= 13526 ;; 13527 sysv4*MP*) 13528 if test -d /usr/nec; then 13529 lt_prog_compiler_pic_CXX=-Kconform_pic 13530 fi 13531 ;; 13532 hpux*) 13533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13534 # not for PA HP-UX. 13535 case "$host_cpu" in 13536 hppa*64*|ia64*) 13537 ;; 13538 *) 13539 lt_prog_compiler_pic_CXX='-fPIC' 13540 ;; 13541 esac 13542 ;; 13543 *) 13544 lt_prog_compiler_pic_CXX='-fPIC' 13545 ;; 13546 esac 13547 else 13548 case $host_os in 13549 aix4* | aix5*) 13550 # All AIX code is PIC. 13551 if test "$host_cpu" = ia64; then 13552 # AIX 5 now supports IA64 processor 13553 lt_prog_compiler_static_CXX='-Bstatic' 13554 else 13555 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13556 fi 13557 ;; 13558 chorus*) 13559 case $cc_basename in 13560 cxch68) 13561 # Green Hills C++ Compiler 13562 # _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" 13563 ;; 13564 esac 13565 ;; 13566 dgux*) 13567 case $cc_basename in 13568 ec++) 13569 lt_prog_compiler_pic_CXX='-KPIC' 13570 ;; 13571 ghcx) 13572 # Green Hills C++ Compiler 13573 lt_prog_compiler_pic_CXX='-pic' 13574 ;; 13575 *) 13576 ;; 13577 esac 13578 ;; 13579 freebsd* | kfreebsd*-gnu) 13580 # FreeBSD uses GNU C++ 13581 ;; 13582 hpux9* | hpux10* | hpux11*) 13583 case $cc_basename in 13584 CC) 13585 lt_prog_compiler_wl_CXX='-Wl,' 13586 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 13587 if test "$host_cpu" != ia64; then 13588 lt_prog_compiler_pic_CXX='+Z' 13589 fi 13590 ;; 13591 aCC) 13592 lt_prog_compiler_wl_CXX='-Wl,' 13593 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 13594 case "$host_cpu" in 13595 hppa*64*|ia64*) 13596 # +Z the default 13597 ;; 13598 *) 13599 lt_prog_compiler_pic_CXX='+Z' 13600 ;; 13601 esac 13602 ;; 13603 *) 13604 ;; 13605 esac 13606 ;; 13607 irix5* | irix6* | nonstopux*) 13608 case $cc_basename in 13609 CC) 13610 lt_prog_compiler_wl_CXX='-Wl,' 13611 lt_prog_compiler_static_CXX='-non_shared' 13612 # CC pic flag -KPIC is the default. 13613 ;; 13614 *) 13615 ;; 13616 esac 13617 ;; 13618 linux*) 13619 case $cc_basename in 13620 KCC) 13621 # KAI C++ Compiler 13622 lt_prog_compiler_wl_CXX='--backend -Wl,' 13623 lt_prog_compiler_pic_CXX='-fPIC' 13624 ;; 13625 icpc) 13626 # Intel C++ 13627 lt_prog_compiler_wl_CXX='-Wl,' 13628 lt_prog_compiler_pic_CXX='-KPIC' 13629 lt_prog_compiler_static_CXX='-static' 13630 ;; 13631 cxx) 13632 # Compaq C++ 13633 # Make sure the PIC flag is empty. It appears that all Alpha 13634 # Linux and Compaq Tru64 Unix objects are PIC. 13635 lt_prog_compiler_pic_CXX= 13636 lt_prog_compiler_static_CXX='-non_shared' 13637 ;; 13638 *) 13639 ;; 13640 esac 13641 ;; 13642 lynxos*) 13643 ;; 13644 m88k*) 13645 ;; 13646 mvs*) 13647 case $cc_basename in 13648 cxx) 13649 lt_prog_compiler_pic_CXX='-W c,exportall' 13650 ;; 13651 *) 13652 ;; 13653 esac 13654 ;; 13655 netbsd*) 13656 ;; 13657 osf3* | osf4* | osf5*) 13658 case $cc_basename in 13659 KCC) 13660 lt_prog_compiler_wl_CXX='--backend -Wl,' 13661 ;; 13662 RCC) 13663 # Rational C++ 2.4.1 13664 lt_prog_compiler_pic_CXX='-pic' 13665 ;; 13666 cxx) 13667 # Digital/Compaq C++ 13668 lt_prog_compiler_wl_CXX='-Wl,' 13669 # Make sure the PIC flag is empty. It appears that all Alpha 13670 # Linux and Compaq Tru64 Unix objects are PIC. 13671 lt_prog_compiler_pic_CXX= 13672 lt_prog_compiler_static_CXX='-non_shared' 13673 ;; 13674 *) 13675 ;; 13676 esac 13677 ;; 13678 psos*) 13679 ;; 13680 sco*) 13681 case $cc_basename in 13682 CC) 13683 lt_prog_compiler_pic_CXX='-fPIC' 13684 ;; 13685 *) 13686 ;; 13687 esac 13688 ;; 13689 solaris*) 13690 case $cc_basename in 13691 CC) 13692 # Sun C++ 4.2, 5.x and Centerline C++ 13693 lt_prog_compiler_pic_CXX='-KPIC' 13694 lt_prog_compiler_static_CXX='-Bstatic' 13695 lt_prog_compiler_wl_CXX='-Qoption ld ' 13696 ;; 13697 gcx) 13698 # Green Hills C++ Compiler 13699 lt_prog_compiler_pic_CXX='-PIC' 13700 ;; 13701 *) 13702 ;; 13703 esac 13704 ;; 13705 sunos4*) 13706 case $cc_basename in 13707 CC) 13708 # Sun C++ 4.x 13709 lt_prog_compiler_pic_CXX='-pic' 13710 lt_prog_compiler_static_CXX='-Bstatic' 13711 ;; 13712 lcc) 13713 # Lucid 13714 lt_prog_compiler_pic_CXX='-pic' 13715 ;; 13716 *) 13717 ;; 13718 esac 13719 ;; 13720 tandem*) 13721 case $cc_basename in 13722 NCC) 13723 # NonStop-UX NCC 3.20 13724 lt_prog_compiler_pic_CXX='-KPIC' 13725 ;; 13726 *) 13727 ;; 13728 esac 13729 ;; 13730 unixware*) 13731 ;; 13732 vxworks*) 13733 ;; 13734 *) 13735 lt_prog_compiler_can_build_shared_CXX=no 13736 ;; 13737 esac 13738 fi 13739 13740echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13741echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 13742 13743# 13744# Check to make sure the PIC flag actually works. 13745# 13746if test -n "$lt_prog_compiler_pic_CXX"; then 13747 13748echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13749echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 13750if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 13751 echo $ECHO_N "(cached) $ECHO_C" >&6 13752else 13753 lt_prog_compiler_pic_works_CXX=no 13754 ac_outfile=conftest.$ac_objext 13755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13756 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13757 # Insert the option either (1) after the last *FLAGS variable, or 13758 # (2) before a word containing "conftest.", or (3) at the end. 13759 # Note that $ac_compile itself does not contain backslashes and begins 13760 # with a dollar sign (not a hyphen), so the echo should work correctly. 13761 # The option is referenced via a variable to avoid confusing sed. 13762 lt_compile=`echo "$ac_compile" | $SED \ 13763 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13765 -e 's:$: $lt_compiler_flag:'` 13766 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13767 (eval "$lt_compile" 2>conftest.err) 13768 ac_status=$? 13769 cat conftest.err >&5 13770 echo "$as_me:__oline__: \$? = $ac_status" >&5 13771 if (exit $ac_status) && test -s "$ac_outfile"; then 13772 # The compiler can only warn and ignore the option if not recognized 13773 # So say no if there are warnings 13774 if test ! -s conftest.err; then 13775 lt_prog_compiler_pic_works_CXX=yes 13776 fi 13777 fi 13778 $rm conftest* 13779 13780fi 13781echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 13782echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 13783 13784if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 13785 case $lt_prog_compiler_pic_CXX in 13786 "" | " "*) ;; 13787 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13788 esac 13789else 13790 lt_prog_compiler_pic_CXX= 13791 lt_prog_compiler_can_build_shared_CXX=no 13792fi 13793 13794fi 13795case "$host_os" in 13796 # For platforms which do not support PIC, -DPIC is meaningless: 13797 *djgpp*) 13798 lt_prog_compiler_pic_CXX= 13799 ;; 13800 *) 13801 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13802 ;; 13803esac 13804 13805echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13806echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13807if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13808 echo $ECHO_N "(cached) $ECHO_C" >&6 13809else 13810 lt_cv_prog_compiler_c_o_CXX=no 13811 $rm -r conftest 2>/dev/null 13812 mkdir conftest 13813 cd conftest 13814 mkdir out 13815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13816 13817 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 13818 # that will create temporary files in the current directory regardless of 13819 # the output directory. Thus, making CWD read-only will cause this test 13820 # to fail, enabling locking or at least warning the user not to do parallel 13821 # builds. 13822 chmod -w . 13823 13824 lt_compiler_flag="-o out/conftest2.$ac_objext" 13825 # Insert the option either (1) after the last *FLAGS variable, or 13826 # (2) before a word containing "conftest.", or (3) at the end. 13827 # Note that $ac_compile itself does not contain backslashes and begins 13828 # with a dollar sign (not a hyphen), so the echo should work correctly. 13829 lt_compile=`echo "$ac_compile" | $SED \ 13830 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 13831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13832 -e 's:$: $lt_compiler_flag:'` 13833 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 13834 (eval "$lt_compile" 2>out/conftest.err) 13835 ac_status=$? 13836 cat out/conftest.err >&5 13837 echo "$as_me:__oline__: \$? = $ac_status" >&5 13838 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13839 then 13840 # The compiler can only warn and ignore the option if not recognized 13841 # So say no if there are warnings 13842 if test ! -s out/conftest.err; then 13843 lt_cv_prog_compiler_c_o_CXX=yes 13844 fi 13845 fi 13846 chmod u+w . 13847 $rm conftest* out/* 13848 rmdir out 13849 cd .. 13850 rmdir conftest 13851 $rm conftest* 13852 13853fi 13854echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13855echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 13856 13857 13858hard_links="nottested" 13859if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13860 # do not overwrite the value of need_locks provided by the user 13861 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13862echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13863 hard_links=yes 13864 $rm conftest* 13865 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13866 touch conftest.a 13867 ln conftest.a conftest.b 2>&5 || hard_links=no 13868 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13869 echo "$as_me:$LINENO: result: $hard_links" >&5 13870echo "${ECHO_T}$hard_links" >&6 13871 if test "$hard_links" = no; then 13872 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13873echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13874 need_locks=warn 13875 fi 13876else 13877 need_locks=no 13878fi 13879 13880echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13881echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 13882 13883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13884 case $host_os in 13885 aix4* | aix5*) 13886 # If we're using GNU nm, then we don't want the "-C" option. 13887 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13888 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13889 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' 13890 else 13891 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' 13892 fi 13893 ;; 13894 pw32*) 13895 export_symbols_cmds_CXX="$ltdll_cmds" 13896 ;; 13897 cygwin* | mingw*) 13898 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13899 ;; 13900 *) 13901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13902 ;; 13903 esac 13904 13905echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13906echo "${ECHO_T}$ld_shlibs_CXX" >&6 13907test "$ld_shlibs_CXX" = no && can_build_shared=no 13908 13909variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13910if test "$GCC" = yes; then 13911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13912fi 13913 13914# 13915# Do we need to explicitly link libc? 13916# 13917case "x$archive_cmds_need_lc_CXX" in 13918x|xyes) 13919 # Assume -lc should be added 13920 archive_cmds_need_lc_CXX=yes 13921 13922 if test "$enable_shared" = yes && test "$GCC" = yes; then 13923 case $archive_cmds_CXX in 13924 *'~'*) 13925 # FIXME: we may have to deal with multi-command sequences. 13926 ;; 13927 '$CC '*) 13928 # Test whether the compiler implicitly links with -lc since on some 13929 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13930 # to ld, don't add -lc before -lgcc. 13931 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13932echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13933 $rm conftest* 13934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13935 13936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13937 (eval $ac_compile) 2>&5 13938 ac_status=$? 13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13940 (exit $ac_status); } 2>conftest.err; then 13941 soname=conftest 13942 lib=conftest 13943 libobjs=conftest.$ac_objext 13944 deplibs= 13945 wl=$lt_prog_compiler_wl_CXX 13946 compiler_flags=-v 13947 linker_flags=-v 13948 verstring= 13949 output_objdir=. 13950 libname=conftest 13951 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13952 allow_undefined_flag_CXX= 13953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13954 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13955 ac_status=$? 13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13957 (exit $ac_status); } 13958 then 13959 archive_cmds_need_lc_CXX=no 13960 else 13961 archive_cmds_need_lc_CXX=yes 13962 fi 13963 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13964 else 13965 cat conftest.err 1>&5 13966 fi 13967 $rm conftest* 13968 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13969echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 13970 ;; 13971 esac 13972 fi 13973 ;; 13974esac 13975 13976echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13977echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13978library_names_spec= 13979libname_spec='lib$name' 13980soname_spec= 13981shrext=".so" 13982postinstall_cmds= 13983postuninstall_cmds= 13984finish_cmds= 13985finish_eval= 13986shlibpath_var= 13987shlibpath_overrides_runpath=unknown 13988version_type=none 13989dynamic_linker="$host_os ld.so" 13990sys_lib_dlsearch_path_spec="/lib /usr/lib" 13991sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13992need_lib_prefix=unknown 13993hardcode_into_libs=no 13994 13995# when you set need_version to no, make sure it does not cause -set_version 13996# flags to be left without arguments 13997need_version=unknown 13998 13999case $host_os in 14000aix3*) 14001 version_type=linux 14002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14003 shlibpath_var=LIBPATH 14004 14005 # AIX 3 has no versioning support, so we append a major version to the name. 14006 soname_spec='${libname}${release}${shared_ext}$major' 14007 ;; 14008 14009aix4* | aix5*) 14010 version_type=linux 14011 need_lib_prefix=no 14012 need_version=no 14013 hardcode_into_libs=yes 14014 if test "$host_cpu" = ia64; then 14015 # AIX 5 supports IA64 14016 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14017 shlibpath_var=LD_LIBRARY_PATH 14018 else 14019 # With GCC up to 2.95.x, collect2 would create an import file 14020 # for dependence libraries. The import file would start with 14021 # the line `#! .'. This would cause the generated library to 14022 # depend on `.', always an invalid library. This was fixed in 14023 # development snapshots of GCC prior to 3.0. 14024 case $host_os in 14025 aix4 | aix4.[01] | aix4.[01].*) 14026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14027 echo ' yes ' 14028 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14029 : 14030 else 14031 can_build_shared=no 14032 fi 14033 ;; 14034 esac 14035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14036 # soname into executable. Probably we can add versioning support to 14037 # collect2, so additional links can be useful in future. 14038 if test "$aix_use_runtimelinking" = yes; then 14039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14040 # instead of lib<name>.a to let people know that these are not 14041 # typical AIX shared libraries. 14042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14043 else 14044 # We preserve .a as extension for shared libraries through AIX4.2 14045 # and later when we are not doing run time linking. 14046 library_names_spec='${libname}${release}.a $libname.a' 14047 soname_spec='${libname}${release}${shared_ext}$major' 14048 fi 14049 shlibpath_var=LIBPATH 14050 fi 14051 ;; 14052 14053amigaos*) 14054 library_names_spec='$libname.ixlibrary $libname.a' 14055 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14056 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' 14057 ;; 14058 14059beos*) 14060 library_names_spec='${libname}${shared_ext}' 14061 dynamic_linker="$host_os ld.so" 14062 shlibpath_var=LIBRARY_PATH 14063 ;; 14064 14065bsdi4*) 14066 version_type=linux 14067 need_version=no 14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14069 soname_spec='${libname}${release}${shared_ext}$major' 14070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14071 shlibpath_var=LD_LIBRARY_PATH 14072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14074 # the default ld.so.conf also contains /usr/contrib/lib and 14075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14076 # libtool to hard-code these into programs 14077 ;; 14078 14079cygwin* | mingw* | pw32*) 14080 version_type=windows 14081 shrext=".dll" 14082 need_version=no 14083 need_lib_prefix=no 14084 14085 case $GCC,$host_os in 14086 yes,cygwin* | yes,mingw* | yes,pw32*) 14087 library_names_spec='$libname.dll.a' 14088 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14089 postinstall_cmds='base_file=`basename \${file}`~ 14090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14091 dldir=$destdir/`dirname \$dlpath`~ 14092 test -d \$dldir || mkdir -p \$dldir~ 14093 $install_prog $dir/$dlname \$dldir/$dlname' 14094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14095 dlpath=$dir/\$dldll~ 14096 $rm \$dlpath' 14097 shlibpath_overrides_runpath=yes 14098 14099 case $host_os in 14100 cygwin*) 14101 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14103 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14104 ;; 14105 mingw*) 14106 # MinGW DLLs use traditional 'lib' prefix 14107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14109 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14110 # It is most probably a Windows format PATH printed by 14111 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14112 # path with ; separators, and with drive letters. We can handle the 14113 # drive letters (cygwin fileutils understands them), so leave them, 14114 # especially as we might pass files found there to a mingw objdump, 14115 # which wouldn't understand a cygwinified path. Ahh. 14116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14117 else 14118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14119 fi 14120 ;; 14121 pw32*) 14122 # pw32 DLLs use 'pw' prefix rather than 'lib' 14123 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14124 ;; 14125 esac 14126 ;; 14127 14128 *) 14129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14130 ;; 14131 esac 14132 dynamic_linker='Win32 ld.exe' 14133 # FIXME: first we should search . and the directory the executable is in 14134 shlibpath_var=PATH 14135 ;; 14136 14137darwin* | rhapsody*) 14138 dynamic_linker="$host_os dyld" 14139 version_type=darwin 14140 need_lib_prefix=no 14141 need_version=no 14142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14143 soname_spec='${libname}${release}${major}$shared_ext' 14144 shlibpath_overrides_runpath=yes 14145 shlibpath_var=DYLD_LIBRARY_PATH 14146 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 14147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14148 if test "$GCC" = yes; then 14149 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"` 14150 else 14151 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14152 fi 14153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14154 ;; 14155 14156dgux*) 14157 version_type=linux 14158 need_lib_prefix=no 14159 need_version=no 14160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14161 soname_spec='${libname}${release}${shared_ext}$major' 14162 shlibpath_var=LD_LIBRARY_PATH 14163 ;; 14164 14165freebsd1*) 14166 dynamic_linker=no 14167 ;; 14168 14169kfreebsd*-gnu*) 14170 version_type=linux 14171 need_lib_prefix=no 14172 need_version=no 14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14174 soname_spec='${libname}${release}${shared_ext}$major' 14175 shlibpath_var=LD_LIBRARY_PATH 14176 shlibpath_overrides_runpath=no 14177 hardcode_into_libs=yes 14178 dynamic_linker='GNU ld.so' 14179 ;; 14180 14181freebsd*) 14182 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14183 version_type=freebsd-$objformat 14184 case $version_type in 14185 freebsd-elf*) 14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14187 need_version=no 14188 need_lib_prefix=no 14189 ;; 14190 freebsd-*) 14191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14192 need_version=yes 14193 ;; 14194 esac 14195 shlibpath_var=LD_LIBRARY_PATH 14196 case $host_os in 14197 freebsd2*) 14198 shlibpath_overrides_runpath=yes 14199 ;; 14200 freebsd3.01* | freebsdelf3.01*) 14201 shlibpath_overrides_runpath=yes 14202 hardcode_into_libs=yes 14203 ;; 14204 *) # from 3.2 on 14205 shlibpath_overrides_runpath=no 14206 hardcode_into_libs=yes 14207 ;; 14208 esac 14209 ;; 14210 14211gnu*) 14212 version_type=linux 14213 need_lib_prefix=no 14214 need_version=no 14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14216 soname_spec='${libname}${release}${shared_ext}$major' 14217 shlibpath_var=LD_LIBRARY_PATH 14218 hardcode_into_libs=yes 14219 ;; 14220 14221hpux9* | hpux10* | hpux11*) 14222 # Give a soname corresponding to the major version so that dld.sl refuses to 14223 # link against other versions. 14224 version_type=sunos 14225 need_lib_prefix=no 14226 need_version=no 14227 case "$host_cpu" in 14228 ia64*) 14229 shrext='.so' 14230 hardcode_into_libs=yes 14231 dynamic_linker="$host_os dld.so" 14232 shlibpath_var=LD_LIBRARY_PATH 14233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14235 soname_spec='${libname}${release}${shared_ext}$major' 14236 if test "X$HPUX_IA64_MODE" = X32; then 14237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14238 else 14239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14240 fi 14241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14242 ;; 14243 hppa*64*) 14244 shrext='.sl' 14245 hardcode_into_libs=yes 14246 dynamic_linker="$host_os dld.sl" 14247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14250 soname_spec='${libname}${release}${shared_ext}$major' 14251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14253 ;; 14254 *) 14255 shrext='.sl' 14256 dynamic_linker="$host_os dld.sl" 14257 shlibpath_var=SHLIB_PATH 14258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14260 soname_spec='${libname}${release}${shared_ext}$major' 14261 ;; 14262 esac 14263 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14264 postinstall_cmds='chmod 555 $lib' 14265 ;; 14266 14267irix5* | irix6* | nonstopux*) 14268 case $host_os in 14269 nonstopux*) version_type=nonstopux ;; 14270 *) 14271 if test "$lt_cv_prog_gnu_ld" = yes; then 14272 version_type=linux 14273 else 14274 version_type=irix 14275 fi ;; 14276 esac 14277 need_lib_prefix=no 14278 need_version=no 14279 soname_spec='${libname}${release}${shared_ext}$major' 14280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14281 case $host_os in 14282 irix5* | nonstopux*) 14283 libsuff= shlibsuff= 14284 ;; 14285 *) 14286 case $LD in # libtool.m4 will add one of these switches to LD 14287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14288 libsuff= shlibsuff= libmagic=32-bit;; 14289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14290 libsuff=32 shlibsuff=N32 libmagic=N32;; 14291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14292 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14293 *) libsuff= shlibsuff= libmagic=never-match;; 14294 esac 14295 ;; 14296 esac 14297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14298 shlibpath_overrides_runpath=no 14299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14301 hardcode_into_libs=yes 14302 ;; 14303 14304# No shared lib support for Linux oldld, aout, or coff. 14305linux*oldld* | linux*aout* | linux*coff*) 14306 dynamic_linker=no 14307 ;; 14308 14309# This must be Linux ELF. 14310linux*) 14311 version_type=linux 14312 need_lib_prefix=no 14313 need_version=no 14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14315 soname_spec='${libname}${release}${shared_ext}$major' 14316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14317 libsuff= 14318 if test "x$LINUX_64_MODE" = x64; then 14319 # Some platforms are per default 64-bit, so there's no /lib64 14320 if test -d /lib64; then 14321 libsuff=64 14322 fi 14323 fi 14324 shlibpath_var=LD_LIBRARY_PATH 14325 shlibpath_overrides_runpath=no 14326 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 14327 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 14328 # This implies no fast_install, which is unacceptable. 14329 # Some rework will be needed to allow for fast_install 14330 # before this can be enabled. 14331 hardcode_into_libs=yes 14332 14333 # We used to test for /lib/ld.so.1 and disable shared libraries on 14334 # powerpc, because MkLinux only supported shared libraries with the 14335 # GNU dynamic linker. Since this was broken with cross compilers, 14336 # most powerpc-linux boxes support dynamic linking these days and 14337 # people can always --disable-shared, the test was removed, and we 14338 # assume the GNU/Linux dynamic linker is in use. 14339 dynamic_linker='GNU/Linux ld.so' 14340 ;; 14341 14342netbsd*) 14343 version_type=sunos 14344 need_lib_prefix=no 14345 need_version=no 14346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14349 dynamic_linker='NetBSD (a.out) ld.so' 14350 else 14351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 14352 soname_spec='${libname}${release}${shared_ext}$major' 14353 dynamic_linker='NetBSD ld.elf_so' 14354 fi 14355 shlibpath_var=LD_LIBRARY_PATH 14356 shlibpath_overrides_runpath=yes 14357 hardcode_into_libs=yes 14358 ;; 14359 14360newsos6) 14361 version_type=linux 14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14363 shlibpath_var=LD_LIBRARY_PATH 14364 shlibpath_overrides_runpath=yes 14365 ;; 14366 14367nto-qnx*) 14368 version_type=linux 14369 need_lib_prefix=no 14370 need_version=no 14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14372 soname_spec='${libname}${release}${shared_ext}$major' 14373 shlibpath_var=LD_LIBRARY_PATH 14374 shlibpath_overrides_runpath=yes 14375 ;; 14376 14377openbsd*) 14378 version_type=sunos 14379 need_lib_prefix=no 14380 need_version=no 14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14383 shlibpath_var=LD_LIBRARY_PATH 14384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14385 case $host_os in 14386 openbsd2.[89] | openbsd2.[89].*) 14387 shlibpath_overrides_runpath=no 14388 ;; 14389 *) 14390 shlibpath_overrides_runpath=yes 14391 ;; 14392 esac 14393 else 14394 shlibpath_overrides_runpath=yes 14395 fi 14396 ;; 14397 14398os2*) 14399 libname_spec='$name' 14400 shrext=".dll" 14401 need_lib_prefix=no 14402 library_names_spec='$libname${shared_ext} $libname.a' 14403 dynamic_linker='OS/2 ld.exe' 14404 shlibpath_var=LIBPATH 14405 ;; 14406 14407osf3* | osf4* | osf5*) 14408 version_type=osf 14409 need_lib_prefix=no 14410 need_version=no 14411 soname_spec='${libname}${release}${shared_ext}$major' 14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14413 shlibpath_var=LD_LIBRARY_PATH 14414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14416 ;; 14417 14418sco3.2v5*) 14419 version_type=osf 14420 soname_spec='${libname}${release}${shared_ext}$major' 14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14422 shlibpath_var=LD_LIBRARY_PATH 14423 ;; 14424 14425solaris*) 14426 version_type=linux 14427 need_lib_prefix=no 14428 need_version=no 14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14430 soname_spec='${libname}${release}${shared_ext}$major' 14431 shlibpath_var=LD_LIBRARY_PATH 14432 shlibpath_overrides_runpath=yes 14433 hardcode_into_libs=yes 14434 # ldd complains unless libraries are executable 14435 postinstall_cmds='chmod +x $lib' 14436 ;; 14437 14438sunos4*) 14439 version_type=sunos 14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14442 shlibpath_var=LD_LIBRARY_PATH 14443 shlibpath_overrides_runpath=yes 14444 if test "$with_gnu_ld" = yes; then 14445 need_lib_prefix=no 14446 fi 14447 need_version=yes 14448 ;; 14449 14450sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14451 version_type=linux 14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14453 soname_spec='${libname}${release}${shared_ext}$major' 14454 shlibpath_var=LD_LIBRARY_PATH 14455 case $host_vendor in 14456 sni) 14457 shlibpath_overrides_runpath=no 14458 need_lib_prefix=no 14459 export_dynamic_flag_spec='${wl}-Blargedynsym' 14460 runpath_var=LD_RUN_PATH 14461 ;; 14462 siemens) 14463 need_lib_prefix=no 14464 ;; 14465 motorola) 14466 need_lib_prefix=no 14467 need_version=no 14468 shlibpath_overrides_runpath=no 14469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14470 ;; 14471 esac 14472 ;; 14473 14474sysv4*MP*) 14475 if test -d /usr/nec ;then 14476 version_type=linux 14477 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14478 soname_spec='$libname${shared_ext}.$major' 14479 shlibpath_var=LD_LIBRARY_PATH 14480 fi 14481 ;; 14482 14483uts4*) 14484 version_type=linux 14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14486 soname_spec='${libname}${release}${shared_ext}$major' 14487 shlibpath_var=LD_LIBRARY_PATH 14488 ;; 14489 14490*) 14491 dynamic_linker=no 14492 ;; 14493esac 14494echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14495echo "${ECHO_T}$dynamic_linker" >&6 14496test "$dynamic_linker" = no && can_build_shared=no 14497 14498echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14499echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14500hardcode_action_CXX= 14501if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14502 test -n "$runpath_var CXX" || \ 14503 test "X$hardcode_automatic_CXX"="Xyes" ; then 14504 14505 # We can hardcode non-existant directories. 14506 if test "$hardcode_direct_CXX" != no && 14507 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14508 # have to relink, otherwise we might link with an installed library 14509 # when we should be linking with a yet-to-be-installed one 14510 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14511 test "$hardcode_minus_L_CXX" != no; then 14512 # Linking always hardcodes the temporary library directory. 14513 hardcode_action_CXX=relink 14514 else 14515 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14516 hardcode_action_CXX=immediate 14517 fi 14518else 14519 # We cannot hardcode anything, or else we can only hardcode existing 14520 # directories. 14521 hardcode_action_CXX=unsupported 14522fi 14523echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14524echo "${ECHO_T}$hardcode_action_CXX" >&6 14525 14526if test "$hardcode_action_CXX" = relink; then 14527 # Fast installation is not supported 14528 enable_fast_install=no 14529elif test "$shlibpath_overrides_runpath" = yes || 14530 test "$enable_shared" = no; then 14531 # Fast installation is not necessary 14532 enable_fast_install=needless 14533fi 14534 14535striplib= 14536old_striplib= 14537echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 14538echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 14539if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 14540 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14541 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14542 echo "$as_me:$LINENO: result: yes" >&5 14543echo "${ECHO_T}yes" >&6 14544else 14545# FIXME - insert some real tests, host_os isn't really good enough 14546 case $host_os in 14547 darwin*) 14548 if test -n "$STRIP" ; then 14549 striplib="$STRIP -x" 14550 echo "$as_me:$LINENO: result: yes" >&5 14551echo "${ECHO_T}yes" >&6 14552 else 14553 echo "$as_me:$LINENO: result: no" >&5 14554echo "${ECHO_T}no" >&6 14555fi 14556 ;; 14557 *) 14558 echo "$as_me:$LINENO: result: no" >&5 14559echo "${ECHO_T}no" >&6 14560 ;; 14561 esac 14562fi 14563 14564if test "x$enable_dlopen" != xyes; then 14565 enable_dlopen=unknown 14566 enable_dlopen_self=unknown 14567 enable_dlopen_self_static=unknown 14568else 14569 lt_cv_dlopen=no 14570 lt_cv_dlopen_libs= 14571 14572 case $host_os in 14573 beos*) 14574 lt_cv_dlopen="load_add_on" 14575 lt_cv_dlopen_libs= 14576 lt_cv_dlopen_self=yes 14577 ;; 14578 14579 mingw* | pw32*) 14580 lt_cv_dlopen="LoadLibrary" 14581 lt_cv_dlopen_libs= 14582 ;; 14583 14584 cygwin*) 14585 lt_cv_dlopen="dlopen" 14586 lt_cv_dlopen_libs= 14587 ;; 14588 14589 darwin*) 14590 # if libdl is installed we need to link against it 14591 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14592echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14593if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14594 echo $ECHO_N "(cached) $ECHO_C" >&6 14595else 14596 ac_check_lib_save_LIBS=$LIBS 14597LIBS="-ldl $LIBS" 14598cat >conftest.$ac_ext <<_ACEOF 14599/* confdefs.h. */ 14600_ACEOF 14601cat confdefs.h >>conftest.$ac_ext 14602cat >>conftest.$ac_ext <<_ACEOF 14603/* end confdefs.h. */ 14604 14605/* Override any gcc2 internal prototype to avoid an error. */ 14606#ifdef __cplusplus 14607extern "C" 14608#endif 14609/* We use char because int might match the return type of a gcc2 14610 builtin and then its argument prototype would still apply. */ 14611char dlopen (); 14612int 14613main () 14614{ 14615dlopen (); 14616 ; 14617 return 0; 14618} 14619_ACEOF 14620rm -f conftest.$ac_objext conftest$ac_exeext 14621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14622 (eval $ac_link) 2>conftest.er1 14623 ac_status=$? 14624 grep -v '^ *+' conftest.er1 >conftest.err 14625 rm -f conftest.er1 14626 cat conftest.err >&5 14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14628 (exit $ac_status); } && 14629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14631 (eval $ac_try) 2>&5 14632 ac_status=$? 14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14634 (exit $ac_status); }; } && 14635 { ac_try='test -s conftest$ac_exeext' 14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14637 (eval $ac_try) 2>&5 14638 ac_status=$? 14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14640 (exit $ac_status); }; }; then 14641 ac_cv_lib_dl_dlopen=yes 14642else 14643 echo "$as_me: failed program was:" >&5 14644sed 's/^/| /' conftest.$ac_ext >&5 14645 14646ac_cv_lib_dl_dlopen=no 14647fi 14648rm -f conftest.err conftest.$ac_objext \ 14649 conftest$ac_exeext conftest.$ac_ext 14650LIBS=$ac_check_lib_save_LIBS 14651fi 14652echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14653echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14654if test $ac_cv_lib_dl_dlopen = yes; then 14655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14656else 14657 14658 lt_cv_dlopen="dyld" 14659 lt_cv_dlopen_libs= 14660 lt_cv_dlopen_self=yes 14661 14662fi 14663 14664 ;; 14665 14666 *) 14667 echo "$as_me:$LINENO: checking for shl_load" >&5 14668echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 14669if test "${ac_cv_func_shl_load+set}" = set; then 14670 echo $ECHO_N "(cached) $ECHO_C" >&6 14671else 14672 cat >conftest.$ac_ext <<_ACEOF 14673/* confdefs.h. */ 14674_ACEOF 14675cat confdefs.h >>conftest.$ac_ext 14676cat >>conftest.$ac_ext <<_ACEOF 14677/* end confdefs.h. */ 14678/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 14679 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14680#define shl_load innocuous_shl_load 14681 14682/* System header to define __stub macros and hopefully few prototypes, 14683 which can conflict with char shl_load (); below. 14684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14685 <limits.h> exists even on freestanding compilers. */ 14686 14687#ifdef __STDC__ 14688# include <limits.h> 14689#else 14690# include <assert.h> 14691#endif 14692 14693#undef shl_load 14694 14695/* Override any gcc2 internal prototype to avoid an error. */ 14696#ifdef __cplusplus 14697extern "C" 14698{ 14699#endif 14700/* We use char because int might match the return type of a gcc2 14701 builtin and then its argument prototype would still apply. */ 14702char shl_load (); 14703/* The GNU C library defines this for functions which it implements 14704 to always fail with ENOSYS. Some functions are actually named 14705 something starting with __ and the normal name is an alias. */ 14706#if defined (__stub_shl_load) || defined (__stub___shl_load) 14707choke me 14708#else 14709char (*f) () = shl_load; 14710#endif 14711#ifdef __cplusplus 14712} 14713#endif 14714 14715int 14716main () 14717{ 14718return f != shl_load; 14719 ; 14720 return 0; 14721} 14722_ACEOF 14723rm -f conftest.$ac_objext conftest$ac_exeext 14724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14725 (eval $ac_link) 2>conftest.er1 14726 ac_status=$? 14727 grep -v '^ *+' conftest.er1 >conftest.err 14728 rm -f conftest.er1 14729 cat conftest.err >&5 14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14731 (exit $ac_status); } && 14732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14734 (eval $ac_try) 2>&5 14735 ac_status=$? 14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14737 (exit $ac_status); }; } && 14738 { ac_try='test -s conftest$ac_exeext' 14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14740 (eval $ac_try) 2>&5 14741 ac_status=$? 14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14743 (exit $ac_status); }; }; then 14744 ac_cv_func_shl_load=yes 14745else 14746 echo "$as_me: failed program was:" >&5 14747sed 's/^/| /' conftest.$ac_ext >&5 14748 14749ac_cv_func_shl_load=no 14750fi 14751rm -f conftest.err conftest.$ac_objext \ 14752 conftest$ac_exeext conftest.$ac_ext 14753fi 14754echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 14755echo "${ECHO_T}$ac_cv_func_shl_load" >&6 14756if test $ac_cv_func_shl_load = yes; then 14757 lt_cv_dlopen="shl_load" 14758else 14759 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 14760echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 14761if test "${ac_cv_lib_dld_shl_load+set}" = set; then 14762 echo $ECHO_N "(cached) $ECHO_C" >&6 14763else 14764 ac_check_lib_save_LIBS=$LIBS 14765LIBS="-ldld $LIBS" 14766cat >conftest.$ac_ext <<_ACEOF 14767/* confdefs.h. */ 14768_ACEOF 14769cat confdefs.h >>conftest.$ac_ext 14770cat >>conftest.$ac_ext <<_ACEOF 14771/* end confdefs.h. */ 14772 14773/* Override any gcc2 internal prototype to avoid an error. */ 14774#ifdef __cplusplus 14775extern "C" 14776#endif 14777/* We use char because int might match the return type of a gcc2 14778 builtin and then its argument prototype would still apply. */ 14779char shl_load (); 14780int 14781main () 14782{ 14783shl_load (); 14784 ; 14785 return 0; 14786} 14787_ACEOF 14788rm -f conftest.$ac_objext conftest$ac_exeext 14789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14790 (eval $ac_link) 2>conftest.er1 14791 ac_status=$? 14792 grep -v '^ *+' conftest.er1 >conftest.err 14793 rm -f conftest.er1 14794 cat conftest.err >&5 14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14796 (exit $ac_status); } && 14797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14799 (eval $ac_try) 2>&5 14800 ac_status=$? 14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14802 (exit $ac_status); }; } && 14803 { ac_try='test -s conftest$ac_exeext' 14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14805 (eval $ac_try) 2>&5 14806 ac_status=$? 14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14808 (exit $ac_status); }; }; then 14809 ac_cv_lib_dld_shl_load=yes 14810else 14811 echo "$as_me: failed program was:" >&5 14812sed 's/^/| /' conftest.$ac_ext >&5 14813 14814ac_cv_lib_dld_shl_load=no 14815fi 14816rm -f conftest.err conftest.$ac_objext \ 14817 conftest$ac_exeext conftest.$ac_ext 14818LIBS=$ac_check_lib_save_LIBS 14819fi 14820echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 14821echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 14822if test $ac_cv_lib_dld_shl_load = yes; then 14823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 14824else 14825 echo "$as_me:$LINENO: checking for dlopen" >&5 14826echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 14827if test "${ac_cv_func_dlopen+set}" = set; then 14828 echo $ECHO_N "(cached) $ECHO_C" >&6 14829else 14830 cat >conftest.$ac_ext <<_ACEOF 14831/* confdefs.h. */ 14832_ACEOF 14833cat confdefs.h >>conftest.$ac_ext 14834cat >>conftest.$ac_ext <<_ACEOF 14835/* end confdefs.h. */ 14836/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 14837 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14838#define dlopen innocuous_dlopen 14839 14840/* System header to define __stub macros and hopefully few prototypes, 14841 which can conflict with char dlopen (); below. 14842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14843 <limits.h> exists even on freestanding compilers. */ 14844 14845#ifdef __STDC__ 14846# include <limits.h> 14847#else 14848# include <assert.h> 14849#endif 14850 14851#undef dlopen 14852 14853/* Override any gcc2 internal prototype to avoid an error. */ 14854#ifdef __cplusplus 14855extern "C" 14856{ 14857#endif 14858/* We use char because int might match the return type of a gcc2 14859 builtin and then its argument prototype would still apply. */ 14860char dlopen (); 14861/* The GNU C library defines this for functions which it implements 14862 to always fail with ENOSYS. Some functions are actually named 14863 something starting with __ and the normal name is an alias. */ 14864#if defined (__stub_dlopen) || defined (__stub___dlopen) 14865choke me 14866#else 14867char (*f) () = dlopen; 14868#endif 14869#ifdef __cplusplus 14870} 14871#endif 14872 14873int 14874main () 14875{ 14876return f != dlopen; 14877 ; 14878 return 0; 14879} 14880_ACEOF 14881rm -f conftest.$ac_objext conftest$ac_exeext 14882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14883 (eval $ac_link) 2>conftest.er1 14884 ac_status=$? 14885 grep -v '^ *+' conftest.er1 >conftest.err 14886 rm -f conftest.er1 14887 cat conftest.err >&5 14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14889 (exit $ac_status); } && 14890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14892 (eval $ac_try) 2>&5 14893 ac_status=$? 14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14895 (exit $ac_status); }; } && 14896 { ac_try='test -s conftest$ac_exeext' 14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14898 (eval $ac_try) 2>&5 14899 ac_status=$? 14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14901 (exit $ac_status); }; }; then 14902 ac_cv_func_dlopen=yes 14903else 14904 echo "$as_me: failed program was:" >&5 14905sed 's/^/| /' conftest.$ac_ext >&5 14906 14907ac_cv_func_dlopen=no 14908fi 14909rm -f conftest.err conftest.$ac_objext \ 14910 conftest$ac_exeext conftest.$ac_ext 14911fi 14912echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 14913echo "${ECHO_T}$ac_cv_func_dlopen" >&6 14914if test $ac_cv_func_dlopen = yes; then 14915 lt_cv_dlopen="dlopen" 14916else 14917 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14918echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14919if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14920 echo $ECHO_N "(cached) $ECHO_C" >&6 14921else 14922 ac_check_lib_save_LIBS=$LIBS 14923LIBS="-ldl $LIBS" 14924cat >conftest.$ac_ext <<_ACEOF 14925/* confdefs.h. */ 14926_ACEOF 14927cat confdefs.h >>conftest.$ac_ext 14928cat >>conftest.$ac_ext <<_ACEOF 14929/* end confdefs.h. */ 14930 14931/* Override any gcc2 internal prototype to avoid an error. */ 14932#ifdef __cplusplus 14933extern "C" 14934#endif 14935/* We use char because int might match the return type of a gcc2 14936 builtin and then its argument prototype would still apply. */ 14937char dlopen (); 14938int 14939main () 14940{ 14941dlopen (); 14942 ; 14943 return 0; 14944} 14945_ACEOF 14946rm -f conftest.$ac_objext conftest$ac_exeext 14947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14948 (eval $ac_link) 2>conftest.er1 14949 ac_status=$? 14950 grep -v '^ *+' conftest.er1 >conftest.err 14951 rm -f conftest.er1 14952 cat conftest.err >&5 14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14954 (exit $ac_status); } && 14955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14957 (eval $ac_try) 2>&5 14958 ac_status=$? 14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14960 (exit $ac_status); }; } && 14961 { ac_try='test -s conftest$ac_exeext' 14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14963 (eval $ac_try) 2>&5 14964 ac_status=$? 14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14966 (exit $ac_status); }; }; then 14967 ac_cv_lib_dl_dlopen=yes 14968else 14969 echo "$as_me: failed program was:" >&5 14970sed 's/^/| /' conftest.$ac_ext >&5 14971 14972ac_cv_lib_dl_dlopen=no 14973fi 14974rm -f conftest.err conftest.$ac_objext \ 14975 conftest$ac_exeext conftest.$ac_ext 14976LIBS=$ac_check_lib_save_LIBS 14977fi 14978echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14979echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14980if test $ac_cv_lib_dl_dlopen = yes; then 14981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14982else 14983 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 14984echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 14985if test "${ac_cv_lib_svld_dlopen+set}" = set; then 14986 echo $ECHO_N "(cached) $ECHO_C" >&6 14987else 14988 ac_check_lib_save_LIBS=$LIBS 14989LIBS="-lsvld $LIBS" 14990cat >conftest.$ac_ext <<_ACEOF 14991/* confdefs.h. */ 14992_ACEOF 14993cat confdefs.h >>conftest.$ac_ext 14994cat >>conftest.$ac_ext <<_ACEOF 14995/* end confdefs.h. */ 14996 14997/* Override any gcc2 internal prototype to avoid an error. */ 14998#ifdef __cplusplus 14999extern "C" 15000#endif 15001/* We use char because int might match the return type of a gcc2 15002 builtin and then its argument prototype would still apply. */ 15003char dlopen (); 15004int 15005main () 15006{ 15007dlopen (); 15008 ; 15009 return 0; 15010} 15011_ACEOF 15012rm -f conftest.$ac_objext conftest$ac_exeext 15013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15014 (eval $ac_link) 2>conftest.er1 15015 ac_status=$? 15016 grep -v '^ *+' conftest.er1 >conftest.err 15017 rm -f conftest.er1 15018 cat conftest.err >&5 15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15020 (exit $ac_status); } && 15021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15023 (eval $ac_try) 2>&5 15024 ac_status=$? 15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15026 (exit $ac_status); }; } && 15027 { ac_try='test -s conftest$ac_exeext' 15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15029 (eval $ac_try) 2>&5 15030 ac_status=$? 15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15032 (exit $ac_status); }; }; then 15033 ac_cv_lib_svld_dlopen=yes 15034else 15035 echo "$as_me: failed program was:" >&5 15036sed 's/^/| /' conftest.$ac_ext >&5 15037 15038ac_cv_lib_svld_dlopen=no 15039fi 15040rm -f conftest.err conftest.$ac_objext \ 15041 conftest$ac_exeext conftest.$ac_ext 15042LIBS=$ac_check_lib_save_LIBS 15043fi 15044echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 15045echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 15046if test $ac_cv_lib_svld_dlopen = yes; then 15047 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 15048else 15049 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 15050echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 15051if test "${ac_cv_lib_dld_dld_link+set}" = set; then 15052 echo $ECHO_N "(cached) $ECHO_C" >&6 15053else 15054 ac_check_lib_save_LIBS=$LIBS 15055LIBS="-ldld $LIBS" 15056cat >conftest.$ac_ext <<_ACEOF 15057/* confdefs.h. */ 15058_ACEOF 15059cat confdefs.h >>conftest.$ac_ext 15060cat >>conftest.$ac_ext <<_ACEOF 15061/* end confdefs.h. */ 15062 15063/* Override any gcc2 internal prototype to avoid an error. */ 15064#ifdef __cplusplus 15065extern "C" 15066#endif 15067/* We use char because int might match the return type of a gcc2 15068 builtin and then its argument prototype would still apply. */ 15069char dld_link (); 15070int 15071main () 15072{ 15073dld_link (); 15074 ; 15075 return 0; 15076} 15077_ACEOF 15078rm -f conftest.$ac_objext conftest$ac_exeext 15079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15080 (eval $ac_link) 2>conftest.er1 15081 ac_status=$? 15082 grep -v '^ *+' conftest.er1 >conftest.err 15083 rm -f conftest.er1 15084 cat conftest.err >&5 15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15086 (exit $ac_status); } && 15087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15089 (eval $ac_try) 2>&5 15090 ac_status=$? 15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15092 (exit $ac_status); }; } && 15093 { ac_try='test -s conftest$ac_exeext' 15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15095 (eval $ac_try) 2>&5 15096 ac_status=$? 15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15098 (exit $ac_status); }; }; then 15099 ac_cv_lib_dld_dld_link=yes 15100else 15101 echo "$as_me: failed program was:" >&5 15102sed 's/^/| /' conftest.$ac_ext >&5 15103 15104ac_cv_lib_dld_dld_link=no 15105fi 15106rm -f conftest.err conftest.$ac_objext \ 15107 conftest$ac_exeext conftest.$ac_ext 15108LIBS=$ac_check_lib_save_LIBS 15109fi 15110echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 15111echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 15112if test $ac_cv_lib_dld_dld_link = yes; then 15113 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 15114fi 15115 15116 15117fi 15118 15119 15120fi 15121 15122 15123fi 15124 15125 15126fi 15127 15128 15129fi 15130 15131 ;; 15132 esac 15133 15134 if test "x$lt_cv_dlopen" != xno; then 15135 enable_dlopen=yes 15136 else 15137 enable_dlopen=no 15138 fi 15139 15140 case $lt_cv_dlopen in 15141 dlopen) 15142 save_CPPFLAGS="$CPPFLAGS" 15143 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15144 15145 save_LDFLAGS="$LDFLAGS" 15146 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15147 15148 save_LIBS="$LIBS" 15149 LIBS="$lt_cv_dlopen_libs $LIBS" 15150 15151 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 15152echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 15153if test "${lt_cv_dlopen_self+set}" = set; then 15154 echo $ECHO_N "(cached) $ECHO_C" >&6 15155else 15156 if test "$cross_compiling" = yes; then : 15157 lt_cv_dlopen_self=cross 15158else 15159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15160 lt_status=$lt_dlunknown 15161 cat > conftest.$ac_ext <<EOF 15162#line __oline__ "configure" 15163#include "confdefs.h" 15164 15165#if HAVE_DLFCN_H 15166#include <dlfcn.h> 15167#endif 15168 15169#include <stdio.h> 15170 15171#ifdef RTLD_GLOBAL 15172# define LT_DLGLOBAL RTLD_GLOBAL 15173#else 15174# ifdef DL_GLOBAL 15175# define LT_DLGLOBAL DL_GLOBAL 15176# else 15177# define LT_DLGLOBAL 0 15178# endif 15179#endif 15180 15181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15182 find out it does not work in some platform. */ 15183#ifndef LT_DLLAZY_OR_NOW 15184# ifdef RTLD_LAZY 15185# define LT_DLLAZY_OR_NOW RTLD_LAZY 15186# else 15187# ifdef DL_LAZY 15188# define LT_DLLAZY_OR_NOW DL_LAZY 15189# else 15190# ifdef RTLD_NOW 15191# define LT_DLLAZY_OR_NOW RTLD_NOW 15192# else 15193# ifdef DL_NOW 15194# define LT_DLLAZY_OR_NOW DL_NOW 15195# else 15196# define LT_DLLAZY_OR_NOW 0 15197# endif 15198# endif 15199# endif 15200# endif 15201#endif 15202 15203#ifdef __cplusplus 15204extern "C" void exit (int); 15205#endif 15206 15207void fnord() { int i=42;} 15208int main () 15209{ 15210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15211 int status = $lt_dlunknown; 15212 15213 if (self) 15214 { 15215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15216 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15217 /* dlclose (self); */ 15218 } 15219 15220 exit (status); 15221} 15222EOF 15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15224 (eval $ac_link) 2>&5 15225 ac_status=$? 15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15227 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 15228 (./conftest; exit; ) 2>/dev/null 15229 lt_status=$? 15230 case x$lt_status in 15231 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15232 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15233 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 15234 esac 15235 else : 15236 # compilation failed 15237 lt_cv_dlopen_self=no 15238 fi 15239fi 15240rm -fr conftest* 15241 15242 15243fi 15244echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 15245echo "${ECHO_T}$lt_cv_dlopen_self" >&6 15246 15247 if test "x$lt_cv_dlopen_self" = xyes; then 15248 LDFLAGS="$LDFLAGS $link_static_flag" 15249 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 15250echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 15251if test "${lt_cv_dlopen_self_static+set}" = set; then 15252 echo $ECHO_N "(cached) $ECHO_C" >&6 15253else 15254 if test "$cross_compiling" = yes; then : 15255 lt_cv_dlopen_self_static=cross 15256else 15257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15258 lt_status=$lt_dlunknown 15259 cat > conftest.$ac_ext <<EOF 15260#line __oline__ "configure" 15261#include "confdefs.h" 15262 15263#if HAVE_DLFCN_H 15264#include <dlfcn.h> 15265#endif 15266 15267#include <stdio.h> 15268 15269#ifdef RTLD_GLOBAL 15270# define LT_DLGLOBAL RTLD_GLOBAL 15271#else 15272# ifdef DL_GLOBAL 15273# define LT_DLGLOBAL DL_GLOBAL 15274# else 15275# define LT_DLGLOBAL 0 15276# endif 15277#endif 15278 15279/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15280 find out it does not work in some platform. */ 15281#ifndef LT_DLLAZY_OR_NOW 15282# ifdef RTLD_LAZY 15283# define LT_DLLAZY_OR_NOW RTLD_LAZY 15284# else 15285# ifdef DL_LAZY 15286# define LT_DLLAZY_OR_NOW DL_LAZY 15287# else 15288# ifdef RTLD_NOW 15289# define LT_DLLAZY_OR_NOW RTLD_NOW 15290# else 15291# ifdef DL_NOW 15292# define LT_DLLAZY_OR_NOW DL_NOW 15293# else 15294# define LT_DLLAZY_OR_NOW 0 15295# endif 15296# endif 15297# endif 15298# endif 15299#endif 15300 15301#ifdef __cplusplus 15302extern "C" void exit (int); 15303#endif 15304 15305void fnord() { int i=42;} 15306int main () 15307{ 15308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15309 int status = $lt_dlunknown; 15310 15311 if (self) 15312 { 15313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15314 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15315 /* dlclose (self); */ 15316 } 15317 15318 exit (status); 15319} 15320EOF 15321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15322 (eval $ac_link) 2>&5 15323 ac_status=$? 15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15325 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 15326 (./conftest; exit; ) 2>/dev/null 15327 lt_status=$? 15328 case x$lt_status in 15329 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15330 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15331 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 15332 esac 15333 else : 15334 # compilation failed 15335 lt_cv_dlopen_self_static=no 15336 fi 15337fi 15338rm -fr conftest* 15339 15340 15341fi 15342echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 15343echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 15344 fi 15345 15346 CPPFLAGS="$save_CPPFLAGS" 15347 LDFLAGS="$save_LDFLAGS" 15348 LIBS="$save_LIBS" 15349 ;; 15350 esac 15351 15352 case $lt_cv_dlopen_self in 15353 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15354 *) enable_dlopen_self=unknown ;; 15355 esac 15356 15357 case $lt_cv_dlopen_self_static in 15358 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15359 *) enable_dlopen_self_static=unknown ;; 15360 esac 15361fi 15362 15363 15364# The else clause should only fire when bootstrapping the 15365# libtool distribution, otherwise you forgot to ship ltmain.sh 15366# with your package, and you will get complaints that there are 15367# no rules to generate ltmain.sh. 15368if test -f "$ltmain"; then 15369 # See if we are running on zsh, and set the options which allow our commands through 15370 # without removal of \ escapes. 15371 if test -n "${ZSH_VERSION+set}" ; then 15372 setopt NO_GLOB_SUBST 15373 fi 15374 # Now quote all the things that may contain metacharacters while being 15375 # careful not to overquote the AC_SUBSTed values. We take copies of the 15376 # variables and quote the copies for generation of the libtool script. 15377 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 15378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15380 deplibs_check_method reload_flag reload_cmds need_locks \ 15381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15382 lt_cv_sys_global_symbol_to_c_name_address \ 15383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15384 old_postinstall_cmds old_postuninstall_cmds \ 15385 compiler_CXX \ 15386 CC_CXX \ 15387 LD_CXX \ 15388 lt_prog_compiler_wl_CXX \ 15389 lt_prog_compiler_pic_CXX \ 15390 lt_prog_compiler_static_CXX \ 15391 lt_prog_compiler_no_builtin_flag_CXX \ 15392 export_dynamic_flag_spec_CXX \ 15393 thread_safe_flag_spec_CXX \ 15394 whole_archive_flag_spec_CXX \ 15395 enable_shared_with_static_runtimes_CXX \ 15396 old_archive_cmds_CXX \ 15397 old_archive_from_new_cmds_CXX \ 15398 predep_objects_CXX \ 15399 postdep_objects_CXX \ 15400 predeps_CXX \ 15401 postdeps_CXX \ 15402 compiler_lib_search_path_CXX \ 15403 archive_cmds_CXX \ 15404 archive_expsym_cmds_CXX \ 15405 postinstall_cmds_CXX \ 15406 postuninstall_cmds_CXX \ 15407 old_archive_from_expsyms_cmds_CXX \ 15408 allow_undefined_flag_CXX \ 15409 no_undefined_flag_CXX \ 15410 export_symbols_cmds_CXX \ 15411 hardcode_libdir_flag_spec_CXX \ 15412 hardcode_libdir_flag_spec_ld_CXX \ 15413 hardcode_libdir_separator_CXX \ 15414 hardcode_automatic_CXX \ 15415 module_cmds_CXX \ 15416 module_expsym_cmds_CXX \ 15417 lt_cv_prog_compiler_c_o_CXX \ 15418 exclude_expsyms_CXX \ 15419 include_expsyms_CXX; do 15420 15421 case $var in 15422 old_archive_cmds_CXX | \ 15423 old_archive_from_new_cmds_CXX | \ 15424 archive_cmds_CXX | \ 15425 archive_expsym_cmds_CXX | \ 15426 module_cmds_CXX | \ 15427 module_expsym_cmds_CXX | \ 15428 old_archive_from_expsyms_cmds_CXX | \ 15429 export_symbols_cmds_CXX | \ 15430 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15431 postinstall_cmds | postuninstall_cmds | \ 15432 old_postinstall_cmds | old_postuninstall_cmds | \ 15433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15434 # Double-quote double-evaled strings. 15435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15436 ;; 15437 *) 15438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15439 ;; 15440 esac 15441 done 15442 15443 case $lt_echo in 15444 *'\$0 --fallback-echo"') 15445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15446 ;; 15447 esac 15448 15449cfgfile="$ofile" 15450 15451 cat <<__EOF__ >> "$cfgfile" 15452# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15453 15454# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15455 15456# Shell to use when invoking shell scripts. 15457SHELL=$lt_SHELL 15458 15459# Whether or not to build shared libraries. 15460build_libtool_libs=$enable_shared 15461 15462# Whether or not to build static libraries. 15463build_old_libs=$enable_static 15464 15465# Whether or not to add -lc for building shared libraries. 15466build_libtool_need_lc=$archive_cmds_need_lc_CXX 15467 15468# Whether or not to disallow shared libs when runtime libs are static 15469allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 15470 15471# Whether or not to optimize for fast installation. 15472fast_install=$enable_fast_install 15473 15474# The host system. 15475host_alias=$host_alias 15476host=$host 15477 15478# An echo program that does not interpret backslashes. 15479echo=$lt_echo 15480 15481# The archiver. 15482AR=$lt_AR 15483AR_FLAGS=$lt_AR_FLAGS 15484 15485# A C compiler. 15486LTCC=$lt_LTCC 15487 15488# A language-specific compiler. 15489CC=$lt_compiler_CXX 15490 15491# Is the compiler the GNU C compiler? 15492with_gcc=$GCC_CXX 15493 15494# An ERE matcher. 15495EGREP=$lt_EGREP 15496 15497# The linker used to build libraries. 15498LD=$lt_LD_CXX 15499 15500# Whether we need hard or soft links. 15501LN_S=$lt_LN_S 15502 15503# A BSD-compatible nm program. 15504NM=$lt_NM 15505 15506# A symbol stripping program 15507STRIP=$STRIP 15508 15509# Used to examine libraries when file_magic_cmd begins "file" 15510MAGIC_CMD=$MAGIC_CMD 15511 15512# Used on cygwin: DLL creation program. 15513DLLTOOL="$DLLTOOL" 15514 15515# Used on cygwin: object dumper. 15516OBJDUMP="$OBJDUMP" 15517 15518# Used on cygwin: assembler. 15519AS="$AS" 15520 15521# The name of the directory that contains temporary libtool files. 15522objdir=$objdir 15523 15524# How to create reloadable object files. 15525reload_flag=$lt_reload_flag 15526reload_cmds=$lt_reload_cmds 15527 15528# How to pass a linker flag through the compiler. 15529wl=$lt_lt_prog_compiler_wl_CXX 15530 15531# Object file suffix (normally "o"). 15532objext="$ac_objext" 15533 15534# Old archive suffix (normally "a"). 15535libext="$libext" 15536 15537# Shared library suffix (normally ".so"). 15538shrext='$shrext' 15539 15540# Executable file suffix (normally ""). 15541exeext="$exeext" 15542 15543# Additional compiler flags for building library objects. 15544pic_flag=$lt_lt_prog_compiler_pic_CXX 15545pic_mode=$pic_mode 15546 15547# What is the maximum length of a command? 15548max_cmd_len=$lt_cv_sys_max_cmd_len 15549 15550# Does compiler simultaneously support -c and -o options? 15551compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 15552 15553# Must we lock files when doing compilation ? 15554need_locks=$lt_need_locks 15555 15556# Do we need the lib prefix for modules? 15557need_lib_prefix=$need_lib_prefix 15558 15559# Do we need a version for libraries? 15560need_version=$need_version 15561 15562# Whether dlopen is supported. 15563dlopen_support=$enable_dlopen 15564 15565# Whether dlopen of programs is supported. 15566dlopen_self=$enable_dlopen_self 15567 15568# Whether dlopen of statically linked programs is supported. 15569dlopen_self_static=$enable_dlopen_self_static 15570 15571# Compiler flag to prevent dynamic linking. 15572link_static_flag=$lt_lt_prog_compiler_static_CXX 15573 15574# Compiler flag to turn off builtin functions. 15575no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15576 15577# Compiler flag to allow reflexive dlopens. 15578export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15579 15580# Compiler flag to generate shared objects directly from archives. 15581whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15582 15583# Compiler flag to generate thread-safe objects. 15584thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15585 15586# Library versioning type. 15587version_type=$version_type 15588 15589# Format of library name prefix. 15590libname_spec=$lt_libname_spec 15591 15592# List of archive names. First name is the real one, the rest are links. 15593# The last name is the one that the linker finds with -lNAME. 15594library_names_spec=$lt_library_names_spec 15595 15596# The coded name of the library, if different from the real name. 15597soname_spec=$lt_soname_spec 15598 15599# Commands used to build and install an old-style archive. 15600RANLIB=$lt_RANLIB 15601old_archive_cmds=$lt_old_archive_cmds_CXX 15602old_postinstall_cmds=$lt_old_postinstall_cmds 15603old_postuninstall_cmds=$lt_old_postuninstall_cmds 15604 15605# Create an old-style archive from a shared archive. 15606old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15607 15608# Create a temporary old-style archive to link instead of a shared archive. 15609old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15610 15611# Commands used to build and install a shared archive. 15612archive_cmds=$lt_archive_cmds_CXX 15613archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15614postinstall_cmds=$lt_postinstall_cmds 15615postuninstall_cmds=$lt_postuninstall_cmds 15616 15617# Commands used to build a loadable module (assumed same as above if empty) 15618module_cmds=$lt_module_cmds_CXX 15619module_expsym_cmds=$lt_module_expsym_cmds_CXX 15620 15621# Commands to strip libraries. 15622old_striplib=$lt_old_striplib 15623striplib=$lt_striplib 15624 15625# Dependencies to place before the objects being linked to create a 15626# shared library. 15627predep_objects=$lt_predep_objects_CXX 15628 15629# Dependencies to place after the objects being linked to create a 15630# shared library. 15631postdep_objects=$lt_postdep_objects_CXX 15632 15633# Dependencies to place before the objects being linked to create a 15634# shared library. 15635predeps=$lt_predeps_CXX 15636 15637# Dependencies to place after the objects being linked to create a 15638# shared library. 15639postdeps=$lt_postdeps_CXX 15640 15641# The library search path used internally by the compiler when linking 15642# a shared library. 15643compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15644 15645# Method to check whether dependent libraries are shared objects. 15646deplibs_check_method=$lt_deplibs_check_method 15647 15648# Command to use when deplibs_check_method == file_magic. 15649file_magic_cmd=$lt_file_magic_cmd 15650 15651# Flag that allows shared libraries with undefined symbols to be built. 15652allow_undefined_flag=$lt_allow_undefined_flag_CXX 15653 15654# Flag that forces no undefined symbols. 15655no_undefined_flag=$lt_no_undefined_flag_CXX 15656 15657# Commands used to finish a libtool library installation in a directory. 15658finish_cmds=$lt_finish_cmds 15659 15660# Same as above, but a single script fragment to be evaled but not shown. 15661finish_eval=$lt_finish_eval 15662 15663# Take the output of nm and produce a listing of raw symbols and C names. 15664global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15665 15666# Transform the output of nm in a proper C declaration 15667global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15668 15669# Transform the output of nm in a C name address pair 15670global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15671 15672# This is the shared library runtime path variable. 15673runpath_var=$runpath_var 15674 15675# This is the shared library path variable. 15676shlibpath_var=$shlibpath_var 15677 15678# Is shlibpath searched before the hard-coded library search path? 15679shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15680 15681# How to hardcode a shared library path into an executable. 15682hardcode_action=$hardcode_action_CXX 15683 15684# Whether we should hardcode library paths into libraries. 15685hardcode_into_libs=$hardcode_into_libs 15686 15687# Flag to hardcode \$libdir into a binary during linking. 15688# This must work even if \$libdir does not exist. 15689hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15690 15691# If ld is used when linking, flag to hardcode \$libdir into 15692# a binary during linking. This must work even if \$libdir does 15693# not exist. 15694hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15695 15696# Whether we need a single -rpath flag with a separated argument. 15697hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15698 15699# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15700# resulting binary. 15701hardcode_direct=$hardcode_direct_CXX 15702 15703# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15704# resulting binary. 15705hardcode_minus_L=$hardcode_minus_L_CXX 15706 15707# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15708# the resulting binary. 15709hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15710 15711# Set to yes if building a shared library automatically hardcodes DIR into the library 15712# and all subsequent libraries and executables linked against it. 15713hardcode_automatic=$hardcode_automatic_CXX 15714 15715# Variables whose values should be saved in libtool wrapper scripts and 15716# restored at relink time. 15717variables_saved_for_relink="$variables_saved_for_relink" 15718 15719# Whether libtool must link a program against all its dependency libraries. 15720link_all_deplibs=$link_all_deplibs_CXX 15721 15722# Compile-time system search path for libraries 15723sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15724 15725# Run-time system search path for libraries 15726sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15727 15728# Fix the shell variable \$srcfile for the compiler. 15729fix_srcfile_path="$fix_srcfile_path_CXX" 15730 15731# Set to yes if exported symbols are required. 15732always_export_symbols=$always_export_symbols_CXX 15733 15734# The commands to list exported symbols. 15735export_symbols_cmds=$lt_export_symbols_cmds_CXX 15736 15737# The commands to extract the exported symbol list from a shared archive. 15738extract_expsyms_cmds=$lt_extract_expsyms_cmds 15739 15740# Symbols that should not be listed in the preloaded symbols. 15741exclude_expsyms=$lt_exclude_expsyms_CXX 15742 15743# Symbols that must always be exported. 15744include_expsyms=$lt_include_expsyms_CXX 15745 15746# ### END LIBTOOL TAG CONFIG: $tagname 15747 15748__EOF__ 15749 15750 15751else 15752 # If there is no Makefile yet, we rely on a make rule to execute 15753 # `config.status --recheck' to rerun these tests and create the 15754 # libtool script then. 15755 test -f Makefile && make "$ltmain" 15756fi 15757 15758 15759ac_ext=c 15760ac_cpp='$CPP $CPPFLAGS' 15761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15763ac_compiler_gnu=$ac_cv_c_compiler_gnu 15764 15765CC=$lt_save_CC 15766LDCXX=$LD 15767LD=$lt_save_LD 15768GCC=$lt_save_GCC 15769with_gnu_ldcxx=$with_gnu_ld 15770with_gnu_ld=$lt_save_with_gnu_ld 15771lt_cv_path_LDCXX=$lt_cv_path_LD 15772lt_cv_path_LD=$lt_save_path_LD 15773lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15774lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15775 15776 else 15777 tagname="" 15778 fi 15779 ;; 15780 15781 F77) 15782 if test -n "$F77" && test "X$F77" != "Xno"; then 15783 15784ac_ext=f 15785ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15786ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15787ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15788 15789 15790archive_cmds_need_lc_F77=no 15791allow_undefined_flag_F77= 15792always_export_symbols_F77=no 15793archive_expsym_cmds_F77= 15794export_dynamic_flag_spec_F77= 15795hardcode_direct_F77=no 15796hardcode_libdir_flag_spec_F77= 15797hardcode_libdir_flag_spec_ld_F77= 15798hardcode_libdir_separator_F77= 15799hardcode_minus_L_F77=no 15800hardcode_automatic_F77=no 15801module_cmds_F77= 15802module_expsym_cmds_F77= 15803link_all_deplibs_F77=unknown 15804old_archive_cmds_F77=$old_archive_cmds 15805no_undefined_flag_F77= 15806whole_archive_flag_spec_F77= 15807enable_shared_with_static_runtimes_F77=no 15808 15809# Source file extension for f77 test sources. 15810ac_ext=f 15811 15812# Object file extension for compiled f77 test sources. 15813objext=o 15814objext_F77=$objext 15815 15816# Code to be used in simple compile tests 15817lt_simple_compile_test_code=" subroutine t\n return\n end\n" 15818 15819# Code to be used in simple link tests 15820lt_simple_link_test_code=" program t\n end\n" 15821 15822# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15823 15824# If no C compiler was specified, use CC. 15825LTCC=${LTCC-"$CC"} 15826 15827# Allow CC to be a program name with arguments. 15828compiler=$CC 15829 15830 15831# Allow CC to be a program name with arguments. 15832lt_save_CC="$CC" 15833CC=${F77-"f77"} 15834compiler=$CC 15835compiler_F77=$CC 15836cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 15837 15838echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15839echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 15840echo "$as_me:$LINENO: result: $can_build_shared" >&5 15841echo "${ECHO_T}$can_build_shared" >&6 15842 15843echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15844echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 15845test "$can_build_shared" = "no" && enable_shared=no 15846 15847# On AIX, shared libraries and static libraries use the same namespace, and 15848# are all built from PIC. 15849case "$host_os" in 15850aix3*) 15851 test "$enable_shared" = yes && enable_static=no 15852 if test -n "$RANLIB"; then 15853 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15854 postinstall_cmds='$RANLIB $lib' 15855 fi 15856 ;; 15857aix4*) 15858 test "$enable_shared" = yes && enable_static=no 15859 ;; 15860esac 15861echo "$as_me:$LINENO: result: $enable_shared" >&5 15862echo "${ECHO_T}$enable_shared" >&6 15863 15864echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15865echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 15866# Make sure either enable_shared or enable_static is yes. 15867test "$enable_shared" = yes || enable_static=yes 15868echo "$as_me:$LINENO: result: $enable_static" >&5 15869echo "${ECHO_T}$enable_static" >&6 15870 15871test "$ld_shlibs_F77" = no && can_build_shared=no 15872 15873GCC_F77="$G77" 15874LD_F77="$LD" 15875 15876lt_prog_compiler_wl_F77= 15877lt_prog_compiler_pic_F77= 15878lt_prog_compiler_static_F77= 15879 15880echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15881echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15882 15883 if test "$GCC" = yes; then 15884 lt_prog_compiler_wl_F77='-Wl,' 15885 lt_prog_compiler_static_F77='-static' 15886 15887 case $host_os in 15888 aix*) 15889 # All AIX code is PIC. 15890 if test "$host_cpu" = ia64; then 15891 # AIX 5 now supports IA64 processor 15892 lt_prog_compiler_static_F77='-Bstatic' 15893 fi 15894 ;; 15895 15896 amigaos*) 15897 # FIXME: we need at least 68020 code to build shared libraries, but 15898 # adding the `-m68020' flag to GCC prevents building anything better, 15899 # like `-m68040'. 15900 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15901 ;; 15902 15903 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15904 # PIC is the default for these OSes. 15905 ;; 15906 15907 mingw* | pw32* | os2*) 15908 # This hack is so that the source file can tell whether it is being 15909 # built for inclusion in a dll (and should export symbols for example). 15910 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15911 ;; 15912 15913 darwin* | rhapsody*) 15914 # PIC is the default on this platform 15915 # Common symbols not allowed in MH_DYLIB files 15916 lt_prog_compiler_pic_F77='-fno-common' 15917 ;; 15918 15919 msdosdjgpp*) 15920 # Just because we use GCC doesn't mean we suddenly get shared libraries 15921 # on systems that don't support them. 15922 lt_prog_compiler_can_build_shared_F77=no 15923 enable_shared=no 15924 ;; 15925 15926 sysv4*MP*) 15927 if test -d /usr/nec; then 15928 lt_prog_compiler_pic_F77=-Kconform_pic 15929 fi 15930 ;; 15931 15932 hpux*) 15933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15934 # not for PA HP-UX. 15935 case "$host_cpu" in 15936 hppa*64*|ia64*) 15937 # +Z the default 15938 ;; 15939 *) 15940 lt_prog_compiler_pic_F77='-fPIC' 15941 ;; 15942 esac 15943 ;; 15944 15945 *) 15946 lt_prog_compiler_pic_F77='-fPIC' 15947 ;; 15948 esac 15949 else 15950 # PORTME Check for flag to pass linker flags through the system compiler. 15951 case $host_os in 15952 aix*) 15953 lt_prog_compiler_wl_F77='-Wl,' 15954 if test "$host_cpu" = ia64; then 15955 # AIX 5 now supports IA64 processor 15956 lt_prog_compiler_static_F77='-Bstatic' 15957 else 15958 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15959 fi 15960 ;; 15961 15962 mingw* | pw32* | os2*) 15963 # This hack is so that the source file can tell whether it is being 15964 # built for inclusion in a dll (and should export symbols for example). 15965 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15966 ;; 15967 15968 hpux9* | hpux10* | hpux11*) 15969 lt_prog_compiler_wl_F77='-Wl,' 15970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15971 # not for PA HP-UX. 15972 case "$host_cpu" in 15973 hppa*64*|ia64*) 15974 # +Z the default 15975 ;; 15976 *) 15977 lt_prog_compiler_pic_F77='+Z' 15978 ;; 15979 esac 15980 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15981 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15982 ;; 15983 15984 irix5* | irix6* | nonstopux*) 15985 lt_prog_compiler_wl_F77='-Wl,' 15986 # PIC (with -KPIC) is the default. 15987 lt_prog_compiler_static_F77='-non_shared' 15988 ;; 15989 15990 newsos6) 15991 lt_prog_compiler_pic_F77='-KPIC' 15992 lt_prog_compiler_static_F77='-Bstatic' 15993 ;; 15994 15995 linux*) 15996 case $CC in 15997 icc* | ecc*) 15998 lt_prog_compiler_wl_F77='-Wl,' 15999 lt_prog_compiler_pic_F77='-KPIC' 16000 lt_prog_compiler_static_F77='-static' 16001 ;; 16002 ccc*) 16003 lt_prog_compiler_wl_F77='-Wl,' 16004 # All Alpha code is PIC. 16005 lt_prog_compiler_static_F77='-non_shared' 16006 ;; 16007 esac 16008 ;; 16009 16010 osf3* | osf4* | osf5*) 16011 lt_prog_compiler_wl_F77='-Wl,' 16012 # All OSF/1 code is PIC. 16013 lt_prog_compiler_static_F77='-non_shared' 16014 ;; 16015 16016 sco3.2v5*) 16017 lt_prog_compiler_pic_F77='-Kpic' 16018 lt_prog_compiler_static_F77='-dn' 16019 ;; 16020 16021 solaris*) 16022 lt_prog_compiler_wl_F77='-Wl,' 16023 lt_prog_compiler_pic_F77='-KPIC' 16024 lt_prog_compiler_static_F77='-Bstatic' 16025 ;; 16026 16027 sunos4*) 16028 lt_prog_compiler_wl_F77='-Qoption ld ' 16029 lt_prog_compiler_pic_F77='-PIC' 16030 lt_prog_compiler_static_F77='-Bstatic' 16031 ;; 16032 16033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16034 lt_prog_compiler_wl_F77='-Wl,' 16035 lt_prog_compiler_pic_F77='-KPIC' 16036 lt_prog_compiler_static_F77='-Bstatic' 16037 ;; 16038 16039 sysv4*MP*) 16040 if test -d /usr/nec ;then 16041 lt_prog_compiler_pic_F77='-Kconform_pic' 16042 lt_prog_compiler_static_F77='-Bstatic' 16043 fi 16044 ;; 16045 16046 uts4*) 16047 lt_prog_compiler_pic_F77='-pic' 16048 lt_prog_compiler_static_F77='-Bstatic' 16049 ;; 16050 16051 *) 16052 lt_prog_compiler_can_build_shared_F77=no 16053 ;; 16054 esac 16055 fi 16056 16057echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 16058echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 16059 16060# 16061# Check to make sure the PIC flag actually works. 16062# 16063if test -n "$lt_prog_compiler_pic_F77"; then 16064 16065echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 16066echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 16067if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 16068 echo $ECHO_N "(cached) $ECHO_C" >&6 16069else 16070 lt_prog_compiler_pic_works_F77=no 16071 ac_outfile=conftest.$ac_objext 16072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16073 lt_compiler_flag="$lt_prog_compiler_pic_F77" 16074 # Insert the option either (1) after the last *FLAGS variable, or 16075 # (2) before a word containing "conftest.", or (3) at the end. 16076 # Note that $ac_compile itself does not contain backslashes and begins 16077 # with a dollar sign (not a hyphen), so the echo should work correctly. 16078 # The option is referenced via a variable to avoid confusing sed. 16079 lt_compile=`echo "$ac_compile" | $SED \ 16080 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16082 -e 's:$: $lt_compiler_flag:'` 16083 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16084 (eval "$lt_compile" 2>conftest.err) 16085 ac_status=$? 16086 cat conftest.err >&5 16087 echo "$as_me:__oline__: \$? = $ac_status" >&5 16088 if (exit $ac_status) && test -s "$ac_outfile"; then 16089 # The compiler can only warn and ignore the option if not recognized 16090 # So say no if there are warnings 16091 if test ! -s conftest.err; then 16092 lt_prog_compiler_pic_works_F77=yes 16093 fi 16094 fi 16095 $rm conftest* 16096 16097fi 16098echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 16099echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 16100 16101if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 16102 case $lt_prog_compiler_pic_F77 in 16103 "" | " "*) ;; 16104 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 16105 esac 16106else 16107 lt_prog_compiler_pic_F77= 16108 lt_prog_compiler_can_build_shared_F77=no 16109fi 16110 16111fi 16112case "$host_os" in 16113 # For platforms which do not support PIC, -DPIC is meaningless: 16114 *djgpp*) 16115 lt_prog_compiler_pic_F77= 16116 ;; 16117 *) 16118 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 16119 ;; 16120esac 16121 16122echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16123echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16124if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 16125 echo $ECHO_N "(cached) $ECHO_C" >&6 16126else 16127 lt_cv_prog_compiler_c_o_F77=no 16128 $rm -r conftest 2>/dev/null 16129 mkdir conftest 16130 cd conftest 16131 mkdir out 16132 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16133 16134 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 16135 # that will create temporary files in the current directory regardless of 16136 # the output directory. Thus, making CWD read-only will cause this test 16137 # to fail, enabling locking or at least warning the user not to do parallel 16138 # builds. 16139 chmod -w . 16140 16141 lt_compiler_flag="-o out/conftest2.$ac_objext" 16142 # Insert the option either (1) after the last *FLAGS variable, or 16143 # (2) before a word containing "conftest.", or (3) at the end. 16144 # Note that $ac_compile itself does not contain backslashes and begins 16145 # with a dollar sign (not a hyphen), so the echo should work correctly. 16146 lt_compile=`echo "$ac_compile" | $SED \ 16147 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16149 -e 's:$: $lt_compiler_flag:'` 16150 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 16151 (eval "$lt_compile" 2>out/conftest.err) 16152 ac_status=$? 16153 cat out/conftest.err >&5 16154 echo "$as_me:__oline__: \$? = $ac_status" >&5 16155 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16156 then 16157 # The compiler can only warn and ignore the option if not recognized 16158 # So say no if there are warnings 16159 if test ! -s out/conftest.err; then 16160 lt_cv_prog_compiler_c_o_F77=yes 16161 fi 16162 fi 16163 chmod u+w . 16164 $rm conftest* out/* 16165 rmdir out 16166 cd .. 16167 rmdir conftest 16168 $rm conftest* 16169 16170fi 16171echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 16172echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 16173 16174 16175hard_links="nottested" 16176if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 16177 # do not overwrite the value of need_locks provided by the user 16178 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16179echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16180 hard_links=yes 16181 $rm conftest* 16182 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16183 touch conftest.a 16184 ln conftest.a conftest.b 2>&5 || hard_links=no 16185 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16186 echo "$as_me:$LINENO: result: $hard_links" >&5 16187echo "${ECHO_T}$hard_links" >&6 16188 if test "$hard_links" = no; then 16189 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16190echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16191 need_locks=warn 16192 fi 16193else 16194 need_locks=no 16195fi 16196 16197echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16198echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16199 16200 runpath_var= 16201 allow_undefined_flag_F77= 16202 enable_shared_with_static_runtimes_F77=no 16203 archive_cmds_F77= 16204 archive_expsym_cmds_F77= 16205 old_archive_From_new_cmds_F77= 16206 old_archive_from_expsyms_cmds_F77= 16207 export_dynamic_flag_spec_F77= 16208 whole_archive_flag_spec_F77= 16209 thread_safe_flag_spec_F77= 16210 hardcode_libdir_flag_spec_F77= 16211 hardcode_libdir_flag_spec_ld_F77= 16212 hardcode_libdir_separator_F77= 16213 hardcode_direct_F77=no 16214 hardcode_minus_L_F77=no 16215 hardcode_shlibpath_var_F77=unsupported 16216 link_all_deplibs_F77=unknown 16217 hardcode_automatic_F77=no 16218 module_cmds_F77= 16219 module_expsym_cmds_F77= 16220 always_export_symbols_F77=no 16221 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16222 # include_expsyms should be a list of space-separated symbols to be *always* 16223 # included in the symbol list 16224 include_expsyms_F77= 16225 # exclude_expsyms can be an extended regexp of symbols to exclude 16226 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16228 # as well as any symbol that contains `d'. 16229 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 16230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16231 # platforms (ab)use it in PIC code, but their linkers get confused if 16232 # the symbol is explicitly referenced. Since portable code cannot 16233 # rely on this symbol name, it's probably fine to never include it in 16234 # preloaded symbol tables. 16235 extract_expsyms_cmds= 16236 16237 case $host_os in 16238 cygwin* | mingw* | pw32*) 16239 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16240 # When not using gcc, we currently assume that we are using 16241 # Microsoft Visual C++. 16242 if test "$GCC" != yes; then 16243 with_gnu_ld=no 16244 fi 16245 ;; 16246 openbsd*) 16247 with_gnu_ld=no 16248 ;; 16249 esac 16250 16251 ld_shlibs_F77=yes 16252 if test "$with_gnu_ld" = yes; then 16253 # If archive_cmds runs LD, not CC, wlarc should be empty 16254 wlarc='${wl}' 16255 16256 # See if GNU ld supports shared libraries. 16257 case $host_os in 16258 aix3* | aix4* | aix5*) 16259 # On AIX/PPC, the GNU linker is very broken 16260 if test "$host_cpu" != ia64; then 16261 ld_shlibs_F77=no 16262 cat <<EOF 1>&2 16263 16264*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16265*** to be unable to reliably create shared libraries on AIX. 16266*** Therefore, libtool is disabling shared libraries support. If you 16267*** really care for shared libraries, you may want to modify your PATH 16268*** so that a non-GNU linker is found, and then restart. 16269 16270EOF 16271 fi 16272 ;; 16273 16274 amigaos*) 16275 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)' 16276 hardcode_libdir_flag_spec_F77='-L$libdir' 16277 hardcode_minus_L_F77=yes 16278 16279 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16280 # that the semantics of dynamic libraries on AmigaOS, at least up 16281 # to version 4, is to share data among multiple programs linked 16282 # with the same dynamic library. Since this doesn't match the 16283 # behavior of shared libraries on other platforms, we can't use 16284 # them. 16285 ld_shlibs_F77=no 16286 ;; 16287 16288 beos*) 16289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16290 allow_undefined_flag_F77=unsupported 16291 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16292 # support --undefined. This deserves some investigation. FIXME 16293 archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 16294 else 16295 ld_shlibs_F77=no 16296 fi 16297 ;; 16298 16299 cygwin* | mingw* | pw32*) 16300 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 16301 # as there is no search path for DLLs. 16302 hardcode_libdir_flag_spec_F77='-L$libdir' 16303 allow_undefined_flag_F77=no 16304 always_export_symbols_F77=no 16305 enable_shared_with_static_runtimes_F77=yes 16306 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16307 16308 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16309 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16310 # If the export-symbols file already is a .def file (1st line 16311 # is EXPORTS), use it as is; otherwise, prepend... 16312 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16313 cp $export_symbols $output_objdir/$soname.def; 16314 else 16315 echo EXPORTS > $output_objdir/$soname.def; 16316 cat $export_symbols >> $output_objdir/$soname.def; 16317 fi~ 16318 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16319 else 16320 ld_shlibs=no 16321 fi 16322 ;; 16323 16324 netbsd*) 16325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16326 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16327 wlarc= 16328 else 16329 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 16330 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16331 fi 16332 ;; 16333 16334 solaris* | sysv5*) 16335 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16336 ld_shlibs_F77=no 16337 cat <<EOF 1>&2 16338 16339*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16340*** create shared libraries on Solaris systems. Therefore, libtool 16341*** is disabling shared libraries support. We urge you to upgrade GNU 16342*** binutils to release 2.9.1 or newer. Another option is to modify 16343*** your PATH or compiler configuration so that the native linker is 16344*** used, and then restart. 16345 16346EOF 16347 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16348 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 16349 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16350 else 16351 ld_shlibs_F77=no 16352 fi 16353 ;; 16354 16355 sunos4*) 16356 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16357 wlarc= 16358 hardcode_direct_F77=yes 16359 hardcode_shlibpath_var_F77=no 16360 ;; 16361 16362 *) 16363 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16364 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 16365 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16366 else 16367 ld_shlibs_F77=no 16368 fi 16369 ;; 16370 esac 16371 16372 if test "$ld_shlibs_F77" = yes; then 16373 runpath_var=LD_RUN_PATH 16374 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 16375 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 16376 # ancient GNU ld didn't support --whole-archive et. al. 16377 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16378 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16379 else 16380 whole_archive_flag_spec_F77= 16381 fi 16382 fi 16383 else 16384 # PORTME fill in a description of your system's linker (not GNU ld) 16385 case $host_os in 16386 aix3*) 16387 allow_undefined_flag_F77=unsupported 16388 always_export_symbols_F77=yes 16389 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' 16390 # Note: this linker hardcodes the directories in LIBPATH if there 16391 # are no directories specified by -L. 16392 hardcode_minus_L_F77=yes 16393 if test "$GCC" = yes && test -z "$link_static_flag"; then 16394 # Neither direct hardcoding nor static linking is supported with a 16395 # broken collect2. 16396 hardcode_direct_F77=unsupported 16397 fi 16398 ;; 16399 16400 aix4* | aix5*) 16401 if test "$host_cpu" = ia64; then 16402 # On IA64, the linker does run time linking by default, so we don't 16403 # have to do anything special. 16404 aix_use_runtimelinking=no 16405 exp_sym_flag='-Bexport' 16406 no_entry_flag="" 16407 else 16408 # If we're using GNU nm, then we don't want the "-C" option. 16409 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16411 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' 16412 else 16413 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' 16414 fi 16415 16416 # KDE requires run time linking. Make it the default. 16417 aix_use_runtimelinking=yes 16418 exp_sym_flag='-bexport' 16419 no_entry_flag='-bnoentry' 16420 fi 16421 16422 # When large executables or shared objects are built, AIX ld can 16423 # have problems creating the table of contents. If linking a library 16424 # or program results in "error TOC overflow" add -mminimal-toc to 16425 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16426 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16427 16428 archive_cmds_F77='' 16429 hardcode_direct_F77=yes 16430 hardcode_libdir_separator_F77=':' 16431 link_all_deplibs_F77=yes 16432 16433 if test "$GCC" = yes; then 16434 case $host_os in aix4.012|aix4.012.*) 16435 # We only want to do this on AIX 4.2 and lower, the check 16436 # below for broken collect2 doesn't work under 4.3+ 16437 collect2name=`${CC} -print-prog-name=collect2` 16438 if test -f "$collect2name" && \ 16439 strings "$collect2name" | grep resolve_lib_name >/dev/null 16440 then 16441 # We have reworked collect2 16442 hardcode_direct_F77=yes 16443 else 16444 # We have old collect2 16445 hardcode_direct_F77=unsupported 16446 # It fails to find uninstalled libraries when the uninstalled 16447 # path is not listed in the libpath. Setting hardcode_minus_L 16448 # to unsupported forces relinking 16449 hardcode_minus_L_F77=yes 16450 hardcode_libdir_flag_spec_F77='-L$libdir' 16451 hardcode_libdir_separator_F77= 16452 fi 16453 esac 16454 shared_flag='-shared' 16455 else 16456 # not using gcc 16457 if test "$host_cpu" = ia64; then 16458 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16459 # chokes on -Wl,-G. The following line is correct: 16460 shared_flag='-G' 16461 else 16462 if test "$aix_use_runtimelinking" = yes; then 16463 shared_flag='-qmkshrobj ${wl}-G' 16464 else 16465 shared_flag='-qmkshrobj' 16466 fi 16467 fi 16468 fi 16469 16470 # Let the compiler handle the export list. 16471 always_export_symbols_F77=no 16472 if test "$aix_use_runtimelinking" = yes; then 16473 # Warning - without using the other runtime loading flags (-brtl), 16474 # -berok will link without error, but may produce a broken library. 16475 allow_undefined_flag_F77='-berok' 16476 # Determine the default libpath from the value encoded in an empty executable. 16477 cat >conftest.$ac_ext <<_ACEOF 16478 program main 16479 16480 end 16481_ACEOF 16482rm -f conftest.$ac_objext conftest$ac_exeext 16483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16484 (eval $ac_link) 2>conftest.er1 16485 ac_status=$? 16486 grep -v '^ *+' conftest.er1 >conftest.err 16487 rm -f conftest.er1 16488 cat conftest.err >&5 16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16490 (exit $ac_status); } && 16491 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16493 (eval $ac_try) 2>&5 16494 ac_status=$? 16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16496 (exit $ac_status); }; } && 16497 { ac_try='test -s conftest$ac_exeext' 16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16499 (eval $ac_try) 2>&5 16500 ac_status=$? 16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16502 (exit $ac_status); }; }; then 16503 16504aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16505}'` 16506# Check for a 64-bit object if we didn't find anything. 16507if 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; } 16508}'`; fi 16509else 16510 echo "$as_me: failed program was:" >&5 16511sed 's/^/| /' conftest.$ac_ext >&5 16512 16513fi 16514rm -f conftest.err conftest.$ac_objext \ 16515 conftest$ac_exeext conftest.$ac_ext 16516if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16517 16518 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16519 archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" 16520 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16521 else 16522 if test "$host_cpu" = ia64; then 16523 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16524 allow_undefined_flag_F77="-z nodefs" 16525 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16526 else 16527 # Determine the default libpath from the value encoded in an empty executable. 16528 cat >conftest.$ac_ext <<_ACEOF 16529 program main 16530 16531 end 16532_ACEOF 16533rm -f conftest.$ac_objext conftest$ac_exeext 16534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16535 (eval $ac_link) 2>conftest.er1 16536 ac_status=$? 16537 grep -v '^ *+' conftest.er1 >conftest.err 16538 rm -f conftest.er1 16539 cat conftest.err >&5 16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16541 (exit $ac_status); } && 16542 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16544 (eval $ac_try) 2>&5 16545 ac_status=$? 16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16547 (exit $ac_status); }; } && 16548 { ac_try='test -s conftest$ac_exeext' 16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16550 (eval $ac_try) 2>&5 16551 ac_status=$? 16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16553 (exit $ac_status); }; }; then 16554 16555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16556}'` 16557# Check for a 64-bit object if we didn't find anything. 16558if 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; } 16559}'`; fi 16560else 16561 echo "$as_me: failed program was:" >&5 16562sed 's/^/| /' conftest.$ac_ext >&5 16563 16564fi 16565rm -f conftest.err conftest.$ac_objext \ 16566 conftest$ac_exeext conftest.$ac_ext 16567if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16568 16569 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16570 # Warning - without using the other run time loading flags, 16571 # -berok will link without error, but may produce a broken library. 16572 no_undefined_flag_F77=' ${wl}-bernotok' 16573 allow_undefined_flag_F77=' ${wl}-berok' 16574 # -bexpall does not export symbols beginning with underscore (_) 16575 always_export_symbols_F77=yes 16576 # Exported symbols can be pulled into shared objects from archives 16577 whole_archive_flag_spec_F77=' ' 16578 archive_cmds_need_lc_F77=yes 16579 # This is similar to how AIX traditionally builds it's shared libraries. 16580 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16581 fi 16582 fi 16583 ;; 16584 16585 amigaos*) 16586 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)' 16587 hardcode_libdir_flag_spec_F77='-L$libdir' 16588 hardcode_minus_L_F77=yes 16589 # see comment about different semantics on the GNU ld section 16590 ld_shlibs_F77=no 16591 ;; 16592 16593 bsdi4*) 16594 export_dynamic_flag_spec_F77=-rdynamic 16595 ;; 16596 16597 cygwin* | mingw* | pw32*) 16598 # When not using gcc, we currently assume that we are using 16599 # Microsoft Visual C++. 16600 # hardcode_libdir_flag_spec is actually meaningless, as there is 16601 # no search path for DLLs. 16602 hardcode_libdir_flag_spec_F77=' ' 16603 allow_undefined_flag_F77=no 16604 # Tell ltmain to make .lib files, not .a files. 16605 libext=lib 16606 # Tell ltmain to make .dll files, not .so files. 16607 shrext=".dll" 16608 # FIXME: Setting linknames here is a bad hack. 16609 archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16610 # The linker will automatically build a .lib file if we build a DLL. 16611 old_archive_From_new_cmds_F77='true' 16612 # FIXME: Should let the user specify the lib program. 16613 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 16614 fix_srcfile_path='`cygpath -w "$srcfile"`' 16615 enable_shared_with_static_runtimes_F77=yes 16616 ;; 16617 16618 darwin* | rhapsody*) 16619 if test "$GXX" = yes ; then 16620 archive_cmds_need_lc_F77=no 16621 case "$host_os" in 16622 rhapsody* | darwin1.[012]) 16623 allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress' 16624 ;; 16625 *) # Darwin 1.3 on 16626 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16627 allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 16628 else 16629 case ${MACOSX_DEPLOYMENT_TARGET} in 16630 10.012) 16631 allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 16632 ;; 16633 10.*) 16634 allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup' 16635 ;; 16636 esac 16637 fi 16638 ;; 16639 esac 16640 lt_int_apple_cc_single_mod=no 16641 output_verbose_link_cmd='echo' 16642 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 16643 lt_int_apple_cc_single_mod=yes 16644 fi 16645 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16646 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' 16647 else 16648 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 $compiler_flags $deplibs -install_name $rpath/$soname $verstring' 16649 fi 16650 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' 16651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 16652 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 16653 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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16654 else 16655 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 $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16656 fi 16657 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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16658 hardcode_direct_F77=no 16659 hardcode_automatic_F77=yes 16660 hardcode_shlibpath_var_F77=unsupported 16661 whole_archive_flag_spec_F77='-all_load $convenience' 16662 link_all_deplibs_F77=yes 16663 else 16664 ld_shlibs_F77=no 16665 fi 16666 ;; 16667 16668 dgux*) 16669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16670 hardcode_libdir_flag_spec_F77='-L$libdir' 16671 hardcode_shlibpath_var_F77=no 16672 ;; 16673 16674 freebsd1*) 16675 ld_shlibs_F77=no 16676 ;; 16677 16678 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16679 # support. Future versions do this automatically, but an explicit c++rt0.o 16680 # does not break anything, and helps significantly (at the cost of a little 16681 # extra space). 16682 freebsd2.2*) 16683 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16684 hardcode_libdir_flag_spec_F77='-R$libdir' 16685 hardcode_direct_F77=yes 16686 hardcode_shlibpath_var_F77=no 16687 ;; 16688 16689 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16690 freebsd2*) 16691 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16692 hardcode_direct_F77=yes 16693 hardcode_minus_L_F77=yes 16694 hardcode_shlibpath_var_F77=no 16695 ;; 16696 16697 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16698 freebsd* | kfreebsd*-gnu) 16699 archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' 16700 hardcode_libdir_flag_spec_F77='-R$libdir' 16701 hardcode_direct_F77=yes 16702 hardcode_shlibpath_var_F77=no 16703 ;; 16704 16705 hpux9*) 16706 if test "$GCC" = yes; then 16707 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16708 else 16709 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' 16710 fi 16711 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16712 hardcode_libdir_separator_F77=: 16713 hardcode_direct_F77=yes 16714 16715 # hardcode_minus_L: Not really in the search PATH, 16716 # but as the default location of the library. 16717 hardcode_minus_L_F77=yes 16718 export_dynamic_flag_spec_F77='${wl}-E' 16719 ;; 16720 16721 hpux10* | hpux11*) 16722 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16723 case "$host_cpu" in 16724 hppa*64*|ia64*) 16725 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 16726 ;; 16727 *) 16728 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' 16729 ;; 16730 esac 16731 else 16732 case "$host_cpu" in 16733 hppa*64*|ia64*) 16734 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 16735 ;; 16736 *) 16737 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16738 ;; 16739 esac 16740 fi 16741 if test "$with_gnu_ld" = no; then 16742 case "$host_cpu" in 16743 hppa*64*) 16744 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16745 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16746 hardcode_libdir_separator_F77=: 16747 hardcode_direct_F77=no 16748 hardcode_shlibpath_var_F77=no 16749 ;; 16750 ia64*) 16751 hardcode_libdir_flag_spec_F77='-L$libdir' 16752 hardcode_direct_F77=no 16753 hardcode_shlibpath_var_F77=no 16754 16755 # hardcode_minus_L: Not really in the search PATH, 16756 # but as the default location of the library. 16757 hardcode_minus_L_F77=yes 16758 ;; 16759 *) 16760 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16761 hardcode_libdir_separator_F77=: 16762 hardcode_direct_F77=yes 16763 export_dynamic_flag_spec_F77='${wl}-E' 16764 16765 # hardcode_minus_L: Not really in the search PATH, 16766 # but as the default location of the library. 16767 hardcode_minus_L_F77=yes 16768 ;; 16769 esac 16770 fi 16771 ;; 16772 16773 irix5* | irix6* | nonstopux*) 16774 if test "$GCC" = yes; then 16775 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16776 else 16777 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' 16778 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16779 fi 16780 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16781 hardcode_libdir_separator_F77=: 16782 link_all_deplibs_F77=yes 16783 ;; 16784 16785 netbsd*) 16786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16787 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16788 else 16789 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16790 fi 16791 hardcode_libdir_flag_spec_F77='-R$libdir' 16792 hardcode_direct_F77=yes 16793 hardcode_shlibpath_var_F77=no 16794 ;; 16795 16796 newsos6) 16797 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16798 hardcode_direct_F77=yes 16799 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16800 hardcode_libdir_separator_F77=: 16801 hardcode_shlibpath_var_F77=no 16802 ;; 16803 16804 openbsd*) 16805 hardcode_direct_F77=yes 16806 hardcode_shlibpath_var_F77=no 16807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16808 archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' 16809 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16810 export_dynamic_flag_spec_F77='${wl}-E' 16811 else 16812 case $host_os in 16813 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16814 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16815 hardcode_libdir_flag_spec_F77='-R$libdir' 16816 ;; 16817 *) 16818 archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' 16819 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16820 ;; 16821 esac 16822 fi 16823 ;; 16824 16825 os2*) 16826 hardcode_libdir_flag_spec_F77='-L$libdir' 16827 hardcode_minus_L_F77=yes 16828 allow_undefined_flag_F77=unsupported 16829 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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' 16830 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16831 ;; 16832 16833 osf3*) 16834 if test "$GCC" = yes; then 16835 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16836 archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16837 else 16838 allow_undefined_flag_F77=' -expect_unresolved \*' 16839 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' 16840 fi 16841 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16842 hardcode_libdir_separator_F77=: 16843 ;; 16844 16845 osf4* | osf5*) # as osf3* with the addition of -msym flag 16846 if test "$GCC" = yes; then 16847 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16848 archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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' 16849 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16850 else 16851 allow_undefined_flag_F77=' -expect_unresolved \*' 16852 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' 16853 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~ 16854 $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' 16855 16856 # Both c and cxx compiler support -rpath directly 16857 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16858 fi 16859 hardcode_libdir_separator_F77=: 16860 ;; 16861 16862 sco3.2v5*) 16863 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16864 hardcode_shlibpath_var_F77=no 16865 export_dynamic_flag_spec_F77='${wl}-Bexport' 16866 runpath_var=LD_RUN_PATH 16867 hardcode_runpath_var=yes 16868 ;; 16869 16870 solaris*) 16871 no_undefined_flag_F77=' -z text' 16872 if test "$GCC" = yes; then 16873 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 16874 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16875 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' 16876 else 16877 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16878 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16880 fi 16881 hardcode_libdir_flag_spec_F77='-R$libdir' 16882 hardcode_shlibpath_var_F77=no 16883 case $host_os in 16884 solaris2.[0-5] | solaris2.[0-5].*) ;; 16885 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16886 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 16887 esac 16888 link_all_deplibs_F77=yes 16889 ;; 16890 16891 sunos4*) 16892 if test "x$host_vendor" = xsequent; then 16893 # Use $CC to link under sequent, because it throws in some extra .o 16894 # files that make .init and .fini sections work. 16895 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' 16896 else 16897 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16898 fi 16899 hardcode_libdir_flag_spec_F77='-L$libdir' 16900 hardcode_direct_F77=yes 16901 hardcode_minus_L_F77=yes 16902 hardcode_shlibpath_var_F77=no 16903 ;; 16904 16905 sysv4) 16906 case $host_vendor in 16907 sni) 16908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16909 hardcode_direct_F77=yes # is this really true??? 16910 ;; 16911 siemens) 16912 ## LD is ld it makes a PLAMLIB 16913 ## CC just makes a GrossModule. 16914 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16915 reload_cmds_F77='$CC -r -o $output$reload_objs' 16916 hardcode_direct_F77=no 16917 ;; 16918 motorola) 16919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16920 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16921 ;; 16922 esac 16923 runpath_var='LD_RUN_PATH' 16924 hardcode_shlibpath_var_F77=no 16925 ;; 16926 16927 sysv4.3*) 16928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16929 hardcode_shlibpath_var_F77=no 16930 export_dynamic_flag_spec_F77='-Bexport' 16931 ;; 16932 16933 sysv4*MP*) 16934 if test -d /usr/nec; then 16935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16936 hardcode_shlibpath_var_F77=no 16937 runpath_var=LD_RUN_PATH 16938 hardcode_runpath_var=yes 16939 ld_shlibs_F77=yes 16940 fi 16941 ;; 16942 16943 sysv4.2uw2*) 16944 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16945 hardcode_direct_F77=yes 16946 hardcode_minus_L_F77=no 16947 hardcode_shlibpath_var_F77=no 16948 hardcode_runpath_var=yes 16949 runpath_var=LD_RUN_PATH 16950 ;; 16951 16952 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16953 no_undefined_flag_F77='${wl}-z ${wl}text' 16954 if test "$GCC" = yes; then 16955 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 16956 else 16957 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 16958 fi 16959 runpath_var='LD_RUN_PATH' 16960 hardcode_shlibpath_var_F77=no 16961 ;; 16962 16963 sysv5*) 16964 no_undefined_flag_F77=' -z text' 16965 # $CC -shared without GNU ld will not create a library from C++ 16966 # object files and a static libstdc++, better avoid it by now 16967 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16968 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16970 hardcode_libdir_flag_spec_F77= 16971 hardcode_shlibpath_var_F77=no 16972 runpath_var='LD_RUN_PATH' 16973 ;; 16974 16975 uts4*) 16976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16977 hardcode_libdir_flag_spec_F77='-L$libdir' 16978 hardcode_shlibpath_var_F77=no 16979 ;; 16980 16981 *) 16982 ld_shlibs_F77=no 16983 ;; 16984 esac 16985 fi 16986 16987echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16988echo "${ECHO_T}$ld_shlibs_F77" >&6 16989test "$ld_shlibs_F77" = no && can_build_shared=no 16990 16991variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16992if test "$GCC" = yes; then 16993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16994fi 16995 16996# 16997# Do we need to explicitly link libc? 16998# 16999case "x$archive_cmds_need_lc_F77" in 17000x|xyes) 17001 # Assume -lc should be added 17002 archive_cmds_need_lc_F77=yes 17003 17004 if test "$enable_shared" = yes && test "$GCC" = yes; then 17005 case $archive_cmds_F77 in 17006 *'~'*) 17007 # FIXME: we may have to deal with multi-command sequences. 17008 ;; 17009 '$CC '*) 17010 # Test whether the compiler implicitly links with -lc since on some 17011 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17012 # to ld, don't add -lc before -lgcc. 17013 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17014echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17015 $rm conftest* 17016 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17017 17018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17019 (eval $ac_compile) 2>&5 17020 ac_status=$? 17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17022 (exit $ac_status); } 2>conftest.err; then 17023 soname=conftest 17024 lib=conftest 17025 libobjs=conftest.$ac_objext 17026 deplibs= 17027 wl=$lt_prog_compiler_wl_F77 17028 compiler_flags=-v 17029 linker_flags=-v 17030 verstring= 17031 output_objdir=. 17032 libname=conftest 17033 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 17034 allow_undefined_flag_F77= 17035 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17036 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17037 ac_status=$? 17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17039 (exit $ac_status); } 17040 then 17041 archive_cmds_need_lc_F77=no 17042 else 17043 archive_cmds_need_lc_F77=yes 17044 fi 17045 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 17046 else 17047 cat conftest.err 1>&5 17048 fi 17049 $rm conftest* 17050 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 17051echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 17052 ;; 17053 esac 17054 fi 17055 ;; 17056esac 17057 17058echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17059echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17060library_names_spec= 17061libname_spec='lib$name' 17062soname_spec= 17063shrext=".so" 17064postinstall_cmds= 17065postuninstall_cmds= 17066finish_cmds= 17067finish_eval= 17068shlibpath_var= 17069shlibpath_overrides_runpath=unknown 17070version_type=none 17071dynamic_linker="$host_os ld.so" 17072sys_lib_dlsearch_path_spec="/lib /usr/lib" 17073sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17074need_lib_prefix=unknown 17075hardcode_into_libs=no 17076 17077# when you set need_version to no, make sure it does not cause -set_version 17078# flags to be left without arguments 17079need_version=unknown 17080 17081case $host_os in 17082aix3*) 17083 version_type=linux 17084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17085 shlibpath_var=LIBPATH 17086 17087 # AIX 3 has no versioning support, so we append a major version to the name. 17088 soname_spec='${libname}${release}${shared_ext}$major' 17089 ;; 17090 17091aix4* | aix5*) 17092 version_type=linux 17093 need_lib_prefix=no 17094 need_version=no 17095 hardcode_into_libs=yes 17096 if test "$host_cpu" = ia64; then 17097 # AIX 5 supports IA64 17098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17099 shlibpath_var=LD_LIBRARY_PATH 17100 else 17101 # With GCC up to 2.95.x, collect2 would create an import file 17102 # for dependence libraries. The import file would start with 17103 # the line `#! .'. This would cause the generated library to 17104 # depend on `.', always an invalid library. This was fixed in 17105 # development snapshots of GCC prior to 3.0. 17106 case $host_os in 17107 aix4 | aix4.[01] | aix4.[01].*) 17108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17109 echo ' yes ' 17110 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17111 : 17112 else 17113 can_build_shared=no 17114 fi 17115 ;; 17116 esac 17117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17118 # soname into executable. Probably we can add versioning support to 17119 # collect2, so additional links can be useful in future. 17120 if test "$aix_use_runtimelinking" = yes; then 17121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17122 # instead of lib<name>.a to let people know that these are not 17123 # typical AIX shared libraries. 17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17125 else 17126 # We preserve .a as extension for shared libraries through AIX4.2 17127 # and later when we are not doing run time linking. 17128 library_names_spec='${libname}${release}.a $libname.a' 17129 soname_spec='${libname}${release}${shared_ext}$major' 17130 fi 17131 shlibpath_var=LIBPATH 17132 fi 17133 ;; 17134 17135amigaos*) 17136 library_names_spec='$libname.ixlibrary $libname.a' 17137 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17138 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' 17139 ;; 17140 17141beos*) 17142 library_names_spec='${libname}${shared_ext}' 17143 dynamic_linker="$host_os ld.so" 17144 shlibpath_var=LIBRARY_PATH 17145 ;; 17146 17147bsdi4*) 17148 version_type=linux 17149 need_version=no 17150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17151 soname_spec='${libname}${release}${shared_ext}$major' 17152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17153 shlibpath_var=LD_LIBRARY_PATH 17154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17156 # the default ld.so.conf also contains /usr/contrib/lib and 17157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17158 # libtool to hard-code these into programs 17159 ;; 17160 17161cygwin* | mingw* | pw32*) 17162 version_type=windows 17163 shrext=".dll" 17164 need_version=no 17165 need_lib_prefix=no 17166 17167 case $GCC,$host_os in 17168 yes,cygwin* | yes,mingw* | yes,pw32*) 17169 library_names_spec='$libname.dll.a' 17170 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17171 postinstall_cmds='base_file=`basename \${file}`~ 17172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17173 dldir=$destdir/`dirname \$dlpath`~ 17174 test -d \$dldir || mkdir -p \$dldir~ 17175 $install_prog $dir/$dlname \$dldir/$dlname' 17176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17177 dlpath=$dir/\$dldll~ 17178 $rm \$dlpath' 17179 shlibpath_overrides_runpath=yes 17180 17181 case $host_os in 17182 cygwin*) 17183 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17185 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17186 ;; 17187 mingw*) 17188 # MinGW DLLs use traditional 'lib' prefix 17189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17191 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17192 # It is most probably a Windows format PATH printed by 17193 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17194 # path with ; separators, and with drive letters. We can handle the 17195 # drive letters (cygwin fileutils understands them), so leave them, 17196 # especially as we might pass files found there to a mingw objdump, 17197 # which wouldn't understand a cygwinified path. Ahh. 17198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17199 else 17200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17201 fi 17202 ;; 17203 pw32*) 17204 # pw32 DLLs use 'pw' prefix rather than 'lib' 17205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 17206 ;; 17207 esac 17208 ;; 17209 17210 *) 17211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17212 ;; 17213 esac 17214 dynamic_linker='Win32 ld.exe' 17215 # FIXME: first we should search . and the directory the executable is in 17216 shlibpath_var=PATH 17217 ;; 17218 17219darwin* | rhapsody*) 17220 dynamic_linker="$host_os dyld" 17221 version_type=darwin 17222 need_lib_prefix=no 17223 need_version=no 17224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17225 soname_spec='${libname}${release}${major}$shared_ext' 17226 shlibpath_overrides_runpath=yes 17227 shlibpath_var=DYLD_LIBRARY_PATH 17228 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 17229 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17230 if test "$GCC" = yes; then 17231 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"` 17232 else 17233 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17234 fi 17235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17236 ;; 17237 17238dgux*) 17239 version_type=linux 17240 need_lib_prefix=no 17241 need_version=no 17242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17243 soname_spec='${libname}${release}${shared_ext}$major' 17244 shlibpath_var=LD_LIBRARY_PATH 17245 ;; 17246 17247freebsd1*) 17248 dynamic_linker=no 17249 ;; 17250 17251kfreebsd*-gnu*) 17252 version_type=linux 17253 need_lib_prefix=no 17254 need_version=no 17255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17256 soname_spec='${libname}${release}${shared_ext}$major' 17257 shlibpath_var=LD_LIBRARY_PATH 17258 shlibpath_overrides_runpath=no 17259 hardcode_into_libs=yes 17260 dynamic_linker='GNU ld.so' 17261 ;; 17262 17263freebsd*) 17264 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 17265 version_type=freebsd-$objformat 17266 case $version_type in 17267 freebsd-elf*) 17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17269 need_version=no 17270 need_lib_prefix=no 17271 ;; 17272 freebsd-*) 17273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17274 need_version=yes 17275 ;; 17276 esac 17277 shlibpath_var=LD_LIBRARY_PATH 17278 case $host_os in 17279 freebsd2*) 17280 shlibpath_overrides_runpath=yes 17281 ;; 17282 freebsd3.01* | freebsdelf3.01*) 17283 shlibpath_overrides_runpath=yes 17284 hardcode_into_libs=yes 17285 ;; 17286 *) # from 3.2 on 17287 shlibpath_overrides_runpath=no 17288 hardcode_into_libs=yes 17289 ;; 17290 esac 17291 ;; 17292 17293gnu*) 17294 version_type=linux 17295 need_lib_prefix=no 17296 need_version=no 17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17298 soname_spec='${libname}${release}${shared_ext}$major' 17299 shlibpath_var=LD_LIBRARY_PATH 17300 hardcode_into_libs=yes 17301 ;; 17302 17303hpux9* | hpux10* | hpux11*) 17304 # Give a soname corresponding to the major version so that dld.sl refuses to 17305 # link against other versions. 17306 version_type=sunos 17307 need_lib_prefix=no 17308 need_version=no 17309 case "$host_cpu" in 17310 ia64*) 17311 shrext='.so' 17312 hardcode_into_libs=yes 17313 dynamic_linker="$host_os dld.so" 17314 shlibpath_var=LD_LIBRARY_PATH 17315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17317 soname_spec='${libname}${release}${shared_ext}$major' 17318 if test "X$HPUX_IA64_MODE" = X32; then 17319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17320 else 17321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17322 fi 17323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17324 ;; 17325 hppa*64*) 17326 shrext='.sl' 17327 hardcode_into_libs=yes 17328 dynamic_linker="$host_os dld.sl" 17329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17332 soname_spec='${libname}${release}${shared_ext}$major' 17333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17335 ;; 17336 *) 17337 shrext='.sl' 17338 dynamic_linker="$host_os dld.sl" 17339 shlibpath_var=SHLIB_PATH 17340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17342 soname_spec='${libname}${release}${shared_ext}$major' 17343 ;; 17344 esac 17345 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17346 postinstall_cmds='chmod 555 $lib' 17347 ;; 17348 17349irix5* | irix6* | nonstopux*) 17350 case $host_os in 17351 nonstopux*) version_type=nonstopux ;; 17352 *) 17353 if test "$lt_cv_prog_gnu_ld" = yes; then 17354 version_type=linux 17355 else 17356 version_type=irix 17357 fi ;; 17358 esac 17359 need_lib_prefix=no 17360 need_version=no 17361 soname_spec='${libname}${release}${shared_ext}$major' 17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17363 case $host_os in 17364 irix5* | nonstopux*) 17365 libsuff= shlibsuff= 17366 ;; 17367 *) 17368 case $LD in # libtool.m4 will add one of these switches to LD 17369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17370 libsuff= shlibsuff= libmagic=32-bit;; 17371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17372 libsuff=32 shlibsuff=N32 libmagic=N32;; 17373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17374 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17375 *) libsuff= shlibsuff= libmagic=never-match;; 17376 esac 17377 ;; 17378 esac 17379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17380 shlibpath_overrides_runpath=no 17381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17383 hardcode_into_libs=yes 17384 ;; 17385 17386# No shared lib support for Linux oldld, aout, or coff. 17387linux*oldld* | linux*aout* | linux*coff*) 17388 dynamic_linker=no 17389 ;; 17390 17391# This must be Linux ELF. 17392linux*) 17393 version_type=linux 17394 need_lib_prefix=no 17395 need_version=no 17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17397 soname_spec='${libname}${release}${shared_ext}$major' 17398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17399 libsuff= 17400 if test "x$LINUX_64_MODE" = x64; then 17401 # Some platforms are per default 64-bit, so there's no /lib64 17402 if test -d /lib64; then 17403 libsuff=64 17404 fi 17405 fi 17406 shlibpath_var=LD_LIBRARY_PATH 17407 shlibpath_overrides_runpath=no 17408 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 17409 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17410 # This implies no fast_install, which is unacceptable. 17411 # Some rework will be needed to allow for fast_install 17412 # before this can be enabled. 17413 hardcode_into_libs=yes 17414 17415 # We used to test for /lib/ld.so.1 and disable shared libraries on 17416 # powerpc, because MkLinux only supported shared libraries with the 17417 # GNU dynamic linker. Since this was broken with cross compilers, 17418 # most powerpc-linux boxes support dynamic linking these days and 17419 # people can always --disable-shared, the test was removed, and we 17420 # assume the GNU/Linux dynamic linker is in use. 17421 dynamic_linker='GNU/Linux ld.so' 17422 ;; 17423 17424netbsd*) 17425 version_type=sunos 17426 need_lib_prefix=no 17427 need_version=no 17428 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17431 dynamic_linker='NetBSD (a.out) ld.so' 17432 else 17433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 17434 soname_spec='${libname}${release}${shared_ext}$major' 17435 dynamic_linker='NetBSD ld.elf_so' 17436 fi 17437 shlibpath_var=LD_LIBRARY_PATH 17438 shlibpath_overrides_runpath=yes 17439 hardcode_into_libs=yes 17440 ;; 17441 17442newsos6) 17443 version_type=linux 17444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17445 shlibpath_var=LD_LIBRARY_PATH 17446 shlibpath_overrides_runpath=yes 17447 ;; 17448 17449nto-qnx*) 17450 version_type=linux 17451 need_lib_prefix=no 17452 need_version=no 17453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17454 soname_spec='${libname}${release}${shared_ext}$major' 17455 shlibpath_var=LD_LIBRARY_PATH 17456 shlibpath_overrides_runpath=yes 17457 ;; 17458 17459openbsd*) 17460 version_type=sunos 17461 need_lib_prefix=no 17462 need_version=no 17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17465 shlibpath_var=LD_LIBRARY_PATH 17466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17467 case $host_os in 17468 openbsd2.[89] | openbsd2.[89].*) 17469 shlibpath_overrides_runpath=no 17470 ;; 17471 *) 17472 shlibpath_overrides_runpath=yes 17473 ;; 17474 esac 17475 else 17476 shlibpath_overrides_runpath=yes 17477 fi 17478 ;; 17479 17480os2*) 17481 libname_spec='$name' 17482 shrext=".dll" 17483 need_lib_prefix=no 17484 library_names_spec='$libname${shared_ext} $libname.a' 17485 dynamic_linker='OS/2 ld.exe' 17486 shlibpath_var=LIBPATH 17487 ;; 17488 17489osf3* | osf4* | osf5*) 17490 version_type=osf 17491 need_lib_prefix=no 17492 need_version=no 17493 soname_spec='${libname}${release}${shared_ext}$major' 17494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17495 shlibpath_var=LD_LIBRARY_PATH 17496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17498 ;; 17499 17500sco3.2v5*) 17501 version_type=osf 17502 soname_spec='${libname}${release}${shared_ext}$major' 17503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17504 shlibpath_var=LD_LIBRARY_PATH 17505 ;; 17506 17507solaris*) 17508 version_type=linux 17509 need_lib_prefix=no 17510 need_version=no 17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17512 soname_spec='${libname}${release}${shared_ext}$major' 17513 shlibpath_var=LD_LIBRARY_PATH 17514 shlibpath_overrides_runpath=yes 17515 hardcode_into_libs=yes 17516 # ldd complains unless libraries are executable 17517 postinstall_cmds='chmod +x $lib' 17518 ;; 17519 17520sunos4*) 17521 version_type=sunos 17522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17524 shlibpath_var=LD_LIBRARY_PATH 17525 shlibpath_overrides_runpath=yes 17526 if test "$with_gnu_ld" = yes; then 17527 need_lib_prefix=no 17528 fi 17529 need_version=yes 17530 ;; 17531 17532sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17533 version_type=linux 17534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17535 soname_spec='${libname}${release}${shared_ext}$major' 17536 shlibpath_var=LD_LIBRARY_PATH 17537 case $host_vendor in 17538 sni) 17539 shlibpath_overrides_runpath=no 17540 need_lib_prefix=no 17541 export_dynamic_flag_spec='${wl}-Blargedynsym' 17542 runpath_var=LD_RUN_PATH 17543 ;; 17544 siemens) 17545 need_lib_prefix=no 17546 ;; 17547 motorola) 17548 need_lib_prefix=no 17549 need_version=no 17550 shlibpath_overrides_runpath=no 17551 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17552 ;; 17553 esac 17554 ;; 17555 17556sysv4*MP*) 17557 if test -d /usr/nec ;then 17558 version_type=linux 17559 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17560 soname_spec='$libname${shared_ext}.$major' 17561 shlibpath_var=LD_LIBRARY_PATH 17562 fi 17563 ;; 17564 17565uts4*) 17566 version_type=linux 17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17568 soname_spec='${libname}${release}${shared_ext}$major' 17569 shlibpath_var=LD_LIBRARY_PATH 17570 ;; 17571 17572*) 17573 dynamic_linker=no 17574 ;; 17575esac 17576echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17577echo "${ECHO_T}$dynamic_linker" >&6 17578test "$dynamic_linker" = no && can_build_shared=no 17579 17580echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17581echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 17582hardcode_action_F77= 17583if test -n "$hardcode_libdir_flag_spec_F77" || \ 17584 test -n "$runpath_var F77" || \ 17585 test "X$hardcode_automatic_F77"="Xyes" ; then 17586 17587 # We can hardcode non-existant directories. 17588 if test "$hardcode_direct_F77" != no && 17589 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17590 # have to relink, otherwise we might link with an installed library 17591 # when we should be linking with a yet-to-be-installed one 17592 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17593 test "$hardcode_minus_L_F77" != no; then 17594 # Linking always hardcodes the temporary library directory. 17595 hardcode_action_F77=relink 17596 else 17597 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17598 hardcode_action_F77=immediate 17599 fi 17600else 17601 # We cannot hardcode anything, or else we can only hardcode existing 17602 # directories. 17603 hardcode_action_F77=unsupported 17604fi 17605echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17606echo "${ECHO_T}$hardcode_action_F77" >&6 17607 17608if test "$hardcode_action_F77" = relink; then 17609 # Fast installation is not supported 17610 enable_fast_install=no 17611elif test "$shlibpath_overrides_runpath" = yes || 17612 test "$enable_shared" = no; then 17613 # Fast installation is not necessary 17614 enable_fast_install=needless 17615fi 17616 17617striplib= 17618old_striplib= 17619echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 17620echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 17621if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 17622 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17623 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17624 echo "$as_me:$LINENO: result: yes" >&5 17625echo "${ECHO_T}yes" >&6 17626else 17627# FIXME - insert some real tests, host_os isn't really good enough 17628 case $host_os in 17629 darwin*) 17630 if test -n "$STRIP" ; then 17631 striplib="$STRIP -x" 17632 echo "$as_me:$LINENO: result: yes" >&5 17633echo "${ECHO_T}yes" >&6 17634 else 17635 echo "$as_me:$LINENO: result: no" >&5 17636echo "${ECHO_T}no" >&6 17637fi 17638 ;; 17639 *) 17640 echo "$as_me:$LINENO: result: no" >&5 17641echo "${ECHO_T}no" >&6 17642 ;; 17643 esac 17644fi 17645 17646 17647 17648# The else clause should only fire when bootstrapping the 17649# libtool distribution, otherwise you forgot to ship ltmain.sh 17650# with your package, and you will get complaints that there are 17651# no rules to generate ltmain.sh. 17652if test -f "$ltmain"; then 17653 # See if we are running on zsh, and set the options which allow our commands through 17654 # without removal of \ escapes. 17655 if test -n "${ZSH_VERSION+set}" ; then 17656 setopt NO_GLOB_SUBST 17657 fi 17658 # Now quote all the things that may contain metacharacters while being 17659 # careful not to overquote the AC_SUBSTed values. We take copies of the 17660 # variables and quote the copies for generation of the libtool script. 17661 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17662 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17663 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17664 deplibs_check_method reload_flag reload_cmds need_locks \ 17665 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17666 lt_cv_sys_global_symbol_to_c_name_address \ 17667 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17668 old_postinstall_cmds old_postuninstall_cmds \ 17669 compiler_F77 \ 17670 CC_F77 \ 17671 LD_F77 \ 17672 lt_prog_compiler_wl_F77 \ 17673 lt_prog_compiler_pic_F77 \ 17674 lt_prog_compiler_static_F77 \ 17675 lt_prog_compiler_no_builtin_flag_F77 \ 17676 export_dynamic_flag_spec_F77 \ 17677 thread_safe_flag_spec_F77 \ 17678 whole_archive_flag_spec_F77 \ 17679 enable_shared_with_static_runtimes_F77 \ 17680 old_archive_cmds_F77 \ 17681 old_archive_from_new_cmds_F77 \ 17682 predep_objects_F77 \ 17683 postdep_objects_F77 \ 17684 predeps_F77 \ 17685 postdeps_F77 \ 17686 compiler_lib_search_path_F77 \ 17687 archive_cmds_F77 \ 17688 archive_expsym_cmds_F77 \ 17689 postinstall_cmds_F77 \ 17690 postuninstall_cmds_F77 \ 17691 old_archive_from_expsyms_cmds_F77 \ 17692 allow_undefined_flag_F77 \ 17693 no_undefined_flag_F77 \ 17694 export_symbols_cmds_F77 \ 17695 hardcode_libdir_flag_spec_F77 \ 17696 hardcode_libdir_flag_spec_ld_F77 \ 17697 hardcode_libdir_separator_F77 \ 17698 hardcode_automatic_F77 \ 17699 module_cmds_F77 \ 17700 module_expsym_cmds_F77 \ 17701 lt_cv_prog_compiler_c_o_F77 \ 17702 exclude_expsyms_F77 \ 17703 include_expsyms_F77; do 17704 17705 case $var in 17706 old_archive_cmds_F77 | \ 17707 old_archive_from_new_cmds_F77 | \ 17708 archive_cmds_F77 | \ 17709 archive_expsym_cmds_F77 | \ 17710 module_cmds_F77 | \ 17711 module_expsym_cmds_F77 | \ 17712 old_archive_from_expsyms_cmds_F77 | \ 17713 export_symbols_cmds_F77 | \ 17714 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17715 postinstall_cmds | postuninstall_cmds | \ 17716 old_postinstall_cmds | old_postuninstall_cmds | \ 17717 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17718 # Double-quote double-evaled strings. 17719 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17720 ;; 17721 *) 17722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17723 ;; 17724 esac 17725 done 17726 17727 case $lt_echo in 17728 *'\$0 --fallback-echo"') 17729 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17730 ;; 17731 esac 17732 17733cfgfile="$ofile" 17734 17735 cat <<__EOF__ >> "$cfgfile" 17736# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17737 17738# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17739 17740# Shell to use when invoking shell scripts. 17741SHELL=$lt_SHELL 17742 17743# Whether or not to build shared libraries. 17744build_libtool_libs=$enable_shared 17745 17746# Whether or not to build static libraries. 17747build_old_libs=$enable_static 17748 17749# Whether or not to add -lc for building shared libraries. 17750build_libtool_need_lc=$archive_cmds_need_lc_F77 17751 17752# Whether or not to disallow shared libs when runtime libs are static 17753allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17754 17755# Whether or not to optimize for fast installation. 17756fast_install=$enable_fast_install 17757 17758# The host system. 17759host_alias=$host_alias 17760host=$host 17761 17762# An echo program that does not interpret backslashes. 17763echo=$lt_echo 17764 17765# The archiver. 17766AR=$lt_AR 17767AR_FLAGS=$lt_AR_FLAGS 17768 17769# A C compiler. 17770LTCC=$lt_LTCC 17771 17772# A language-specific compiler. 17773CC=$lt_compiler_F77 17774 17775# Is the compiler the GNU C compiler? 17776with_gcc=$GCC_F77 17777 17778# An ERE matcher. 17779EGREP=$lt_EGREP 17780 17781# The linker used to build libraries. 17782LD=$lt_LD_F77 17783 17784# Whether we need hard or soft links. 17785LN_S=$lt_LN_S 17786 17787# A BSD-compatible nm program. 17788NM=$lt_NM 17789 17790# A symbol stripping program 17791STRIP=$STRIP 17792 17793# Used to examine libraries when file_magic_cmd begins "file" 17794MAGIC_CMD=$MAGIC_CMD 17795 17796# Used on cygwin: DLL creation program. 17797DLLTOOL="$DLLTOOL" 17798 17799# Used on cygwin: object dumper. 17800OBJDUMP="$OBJDUMP" 17801 17802# Used on cygwin: assembler. 17803AS="$AS" 17804 17805# The name of the directory that contains temporary libtool files. 17806objdir=$objdir 17807 17808# How to create reloadable object files. 17809reload_flag=$lt_reload_flag 17810reload_cmds=$lt_reload_cmds 17811 17812# How to pass a linker flag through the compiler. 17813wl=$lt_lt_prog_compiler_wl_F77 17814 17815# Object file suffix (normally "o"). 17816objext="$ac_objext" 17817 17818# Old archive suffix (normally "a"). 17819libext="$libext" 17820 17821# Shared library suffix (normally ".so"). 17822shrext='$shrext' 17823 17824# Executable file suffix (normally ""). 17825exeext="$exeext" 17826 17827# Additional compiler flags for building library objects. 17828pic_flag=$lt_lt_prog_compiler_pic_F77 17829pic_mode=$pic_mode 17830 17831# What is the maximum length of a command? 17832max_cmd_len=$lt_cv_sys_max_cmd_len 17833 17834# Does compiler simultaneously support -c and -o options? 17835compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17836 17837# Must we lock files when doing compilation ? 17838need_locks=$lt_need_locks 17839 17840# Do we need the lib prefix for modules? 17841need_lib_prefix=$need_lib_prefix 17842 17843# Do we need a version for libraries? 17844need_version=$need_version 17845 17846# Whether dlopen is supported. 17847dlopen_support=$enable_dlopen 17848 17849# Whether dlopen of programs is supported. 17850dlopen_self=$enable_dlopen_self 17851 17852# Whether dlopen of statically linked programs is supported. 17853dlopen_self_static=$enable_dlopen_self_static 17854 17855# Compiler flag to prevent dynamic linking. 17856link_static_flag=$lt_lt_prog_compiler_static_F77 17857 17858# Compiler flag to turn off builtin functions. 17859no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17860 17861# Compiler flag to allow reflexive dlopens. 17862export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17863 17864# Compiler flag to generate shared objects directly from archives. 17865whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17866 17867# Compiler flag to generate thread-safe objects. 17868thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17869 17870# Library versioning type. 17871version_type=$version_type 17872 17873# Format of library name prefix. 17874libname_spec=$lt_libname_spec 17875 17876# List of archive names. First name is the real one, the rest are links. 17877# The last name is the one that the linker finds with -lNAME. 17878library_names_spec=$lt_library_names_spec 17879 17880# The coded name of the library, if different from the real name. 17881soname_spec=$lt_soname_spec 17882 17883# Commands used to build and install an old-style archive. 17884RANLIB=$lt_RANLIB 17885old_archive_cmds=$lt_old_archive_cmds_F77 17886old_postinstall_cmds=$lt_old_postinstall_cmds 17887old_postuninstall_cmds=$lt_old_postuninstall_cmds 17888 17889# Create an old-style archive from a shared archive. 17890old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17891 17892# Create a temporary old-style archive to link instead of a shared archive. 17893old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17894 17895# Commands used to build and install a shared archive. 17896archive_cmds=$lt_archive_cmds_F77 17897archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17898postinstall_cmds=$lt_postinstall_cmds 17899postuninstall_cmds=$lt_postuninstall_cmds 17900 17901# Commands used to build a loadable module (assumed same as above if empty) 17902module_cmds=$lt_module_cmds_F77 17903module_expsym_cmds=$lt_module_expsym_cmds_F77 17904 17905# Commands to strip libraries. 17906old_striplib=$lt_old_striplib 17907striplib=$lt_striplib 17908 17909# Dependencies to place before the objects being linked to create a 17910# shared library. 17911predep_objects=$lt_predep_objects_F77 17912 17913# Dependencies to place after the objects being linked to create a 17914# shared library. 17915postdep_objects=$lt_postdep_objects_F77 17916 17917# Dependencies to place before the objects being linked to create a 17918# shared library. 17919predeps=$lt_predeps_F77 17920 17921# Dependencies to place after the objects being linked to create a 17922# shared library. 17923postdeps=$lt_postdeps_F77 17924 17925# The library search path used internally by the compiler when linking 17926# a shared library. 17927compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17928 17929# Method to check whether dependent libraries are shared objects. 17930deplibs_check_method=$lt_deplibs_check_method 17931 17932# Command to use when deplibs_check_method == file_magic. 17933file_magic_cmd=$lt_file_magic_cmd 17934 17935# Flag that allows shared libraries with undefined symbols to be built. 17936allow_undefined_flag=$lt_allow_undefined_flag_F77 17937 17938# Flag that forces no undefined symbols. 17939no_undefined_flag=$lt_no_undefined_flag_F77 17940 17941# Commands used to finish a libtool library installation in a directory. 17942finish_cmds=$lt_finish_cmds 17943 17944# Same as above, but a single script fragment to be evaled but not shown. 17945finish_eval=$lt_finish_eval 17946 17947# Take the output of nm and produce a listing of raw symbols and C names. 17948global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17949 17950# Transform the output of nm in a proper C declaration 17951global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17952 17953# Transform the output of nm in a C name address pair 17954global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17955 17956# This is the shared library runtime path variable. 17957runpath_var=$runpath_var 17958 17959# This is the shared library path variable. 17960shlibpath_var=$shlibpath_var 17961 17962# Is shlibpath searched before the hard-coded library search path? 17963shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17964 17965# How to hardcode a shared library path into an executable. 17966hardcode_action=$hardcode_action_F77 17967 17968# Whether we should hardcode library paths into libraries. 17969hardcode_into_libs=$hardcode_into_libs 17970 17971# Flag to hardcode \$libdir into a binary during linking. 17972# This must work even if \$libdir does not exist. 17973hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17974 17975# If ld is used when linking, flag to hardcode \$libdir into 17976# a binary during linking. This must work even if \$libdir does 17977# not exist. 17978hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17979 17980# Whether we need a single -rpath flag with a separated argument. 17981hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17982 17983# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17984# resulting binary. 17985hardcode_direct=$hardcode_direct_F77 17986 17987# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17988# resulting binary. 17989hardcode_minus_L=$hardcode_minus_L_F77 17990 17991# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17992# the resulting binary. 17993hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17994 17995# Set to yes if building a shared library automatically hardcodes DIR into the library 17996# and all subsequent libraries and executables linked against it. 17997hardcode_automatic=$hardcode_automatic_F77 17998 17999# Variables whose values should be saved in libtool wrapper scripts and 18000# restored at relink time. 18001variables_saved_for_relink="$variables_saved_for_relink" 18002 18003# Whether libtool must link a program against all its dependency libraries. 18004link_all_deplibs=$link_all_deplibs_F77 18005 18006# Compile-time system search path for libraries 18007sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18008 18009# Run-time system search path for libraries 18010sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18011 18012# Fix the shell variable \$srcfile for the compiler. 18013fix_srcfile_path="$fix_srcfile_path_F77" 18014 18015# Set to yes if exported symbols are required. 18016always_export_symbols=$always_export_symbols_F77 18017 18018# The commands to list exported symbols. 18019export_symbols_cmds=$lt_export_symbols_cmds_F77 18020 18021# The commands to extract the exported symbol list from a shared archive. 18022extract_expsyms_cmds=$lt_extract_expsyms_cmds 18023 18024# Symbols that should not be listed in the preloaded symbols. 18025exclude_expsyms=$lt_exclude_expsyms_F77 18026 18027# Symbols that must always be exported. 18028include_expsyms=$lt_include_expsyms_F77 18029 18030# ### END LIBTOOL TAG CONFIG: $tagname 18031 18032__EOF__ 18033 18034 18035else 18036 # If there is no Makefile yet, we rely on a make rule to execute 18037 # `config.status --recheck' to rerun these tests and create the 18038 # libtool script then. 18039 test -f Makefile && make "$ltmain" 18040fi 18041 18042 18043ac_ext=c 18044ac_cpp='$CPP $CPPFLAGS' 18045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18047ac_compiler_gnu=$ac_cv_c_compiler_gnu 18048 18049CC="$lt_save_CC" 18050 18051 else 18052 tagname="" 18053 fi 18054 ;; 18055 18056 GCJ) 18057 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 18058 18059 18060 18061# Source file extension for Java test sources. 18062ac_ext=java 18063 18064# Object file extension for compiled Java test sources. 18065objext=o 18066objext_GCJ=$objext 18067 18068# Code to be used in simple compile tests 18069lt_simple_compile_test_code="class foo {}\n" 18070 18071# Code to be used in simple link tests 18072lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 18073 18074# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18075 18076# If no C compiler was specified, use CC. 18077LTCC=${LTCC-"$CC"} 18078 18079# Allow CC to be a program name with arguments. 18080compiler=$CC 18081 18082 18083# Allow CC to be a program name with arguments. 18084lt_save_CC="$CC" 18085CC=${GCJ-"gcj"} 18086compiler=$CC 18087compiler_GCJ=$CC 18088 18089# GCJ did not exist at the time GCC didn't implicitly link libc in. 18090archive_cmds_need_lc_GCJ=no 18091 18092## CAVEAT EMPTOR: 18093## There is no encapsulation within the following macros, do not change 18094## the running order or otherwise move them around unless you know exactly 18095## what you are doing... 18096 18097lt_prog_compiler_no_builtin_flag_GCJ= 18098 18099if test "$GCC" = yes; then 18100 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 18101 18102 18103echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 18104echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 18105if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 18106 echo $ECHO_N "(cached) $ECHO_C" >&6 18107else 18108 lt_cv_prog_compiler_rtti_exceptions=no 18109 ac_outfile=conftest.$ac_objext 18110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18111 lt_compiler_flag="-fno-rtti -fno-exceptions" 18112 # Insert the option either (1) after the last *FLAGS variable, or 18113 # (2) before a word containing "conftest.", or (3) at the end. 18114 # Note that $ac_compile itself does not contain backslashes and begins 18115 # with a dollar sign (not a hyphen), so the echo should work correctly. 18116 # The option is referenced via a variable to avoid confusing sed. 18117 lt_compile=`echo "$ac_compile" | $SED \ 18118 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 18119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18120 -e 's:$: $lt_compiler_flag:'` 18121 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 18122 (eval "$lt_compile" 2>conftest.err) 18123 ac_status=$? 18124 cat conftest.err >&5 18125 echo "$as_me:__oline__: \$? = $ac_status" >&5 18126 if (exit $ac_status) && test -s "$ac_outfile"; then 18127 # The compiler can only warn and ignore the option if not recognized 18128 # So say no if there are warnings 18129 if test ! -s conftest.err; then 18130 lt_cv_prog_compiler_rtti_exceptions=yes 18131 fi 18132 fi 18133 $rm conftest* 18134 18135fi 18136echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 18137echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 18138 18139if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 18140 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 18141else 18142 : 18143fi 18144 18145fi 18146 18147lt_prog_compiler_wl_GCJ= 18148lt_prog_compiler_pic_GCJ= 18149lt_prog_compiler_static_GCJ= 18150 18151echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 18152echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 18153 18154 if test "$GCC" = yes; then 18155 lt_prog_compiler_wl_GCJ='-Wl,' 18156 lt_prog_compiler_static_GCJ='-static' 18157 18158 case $host_os in 18159 aix*) 18160 # All AIX code is PIC. 18161 if test "$host_cpu" = ia64; then 18162 # AIX 5 now supports IA64 processor 18163 lt_prog_compiler_static_GCJ='-Bstatic' 18164 fi 18165 ;; 18166 18167 amigaos*) 18168 # FIXME: we need at least 68020 code to build shared libraries, but 18169 # adding the `-m68020' flag to GCC prevents building anything better, 18170 # like `-m68040'. 18171 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 18172 ;; 18173 18174 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18175 # PIC is the default for these OSes. 18176 ;; 18177 18178 mingw* | pw32* | os2*) 18179 # This hack is so that the source file can tell whether it is being 18180 # built for inclusion in a dll (and should export symbols for example). 18181 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18182 ;; 18183 18184 darwin* | rhapsody*) 18185 # PIC is the default on this platform 18186 # Common symbols not allowed in MH_DYLIB files 18187 lt_prog_compiler_pic_GCJ='-fno-common' 18188 ;; 18189 18190 msdosdjgpp*) 18191 # Just because we use GCC doesn't mean we suddenly get shared libraries 18192 # on systems that don't support them. 18193 lt_prog_compiler_can_build_shared_GCJ=no 18194 enable_shared=no 18195 ;; 18196 18197 sysv4*MP*) 18198 if test -d /usr/nec; then 18199 lt_prog_compiler_pic_GCJ=-Kconform_pic 18200 fi 18201 ;; 18202 18203 hpux*) 18204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18205 # not for PA HP-UX. 18206 case "$host_cpu" in 18207 hppa*64*|ia64*) 18208 # +Z the default 18209 ;; 18210 *) 18211 lt_prog_compiler_pic_GCJ='-fPIC' 18212 ;; 18213 esac 18214 ;; 18215 18216 *) 18217 lt_prog_compiler_pic_GCJ='-fPIC' 18218 ;; 18219 esac 18220 else 18221 # PORTME Check for flag to pass linker flags through the system compiler. 18222 case $host_os in 18223 aix*) 18224 lt_prog_compiler_wl_GCJ='-Wl,' 18225 if test "$host_cpu" = ia64; then 18226 # AIX 5 now supports IA64 processor 18227 lt_prog_compiler_static_GCJ='-Bstatic' 18228 else 18229 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18230 fi 18231 ;; 18232 18233 mingw* | pw32* | os2*) 18234 # This hack is so that the source file can tell whether it is being 18235 # built for inclusion in a dll (and should export symbols for example). 18236 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 18237 ;; 18238 18239 hpux9* | hpux10* | hpux11*) 18240 lt_prog_compiler_wl_GCJ='-Wl,' 18241 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18242 # not for PA HP-UX. 18243 case "$host_cpu" in 18244 hppa*64*|ia64*) 18245 # +Z the default 18246 ;; 18247 *) 18248 lt_prog_compiler_pic_GCJ='+Z' 18249 ;; 18250 esac 18251 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18252 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18253 ;; 18254 18255 irix5* | irix6* | nonstopux*) 18256 lt_prog_compiler_wl_GCJ='-Wl,' 18257 # PIC (with -KPIC) is the default. 18258 lt_prog_compiler_static_GCJ='-non_shared' 18259 ;; 18260 18261 newsos6) 18262 lt_prog_compiler_pic_GCJ='-KPIC' 18263 lt_prog_compiler_static_GCJ='-Bstatic' 18264 ;; 18265 18266 linux*) 18267 case $CC in 18268 icc* | ecc*) 18269 lt_prog_compiler_wl_GCJ='-Wl,' 18270 lt_prog_compiler_pic_GCJ='-KPIC' 18271 lt_prog_compiler_static_GCJ='-static' 18272 ;; 18273 ccc*) 18274 lt_prog_compiler_wl_GCJ='-Wl,' 18275 # All Alpha code is PIC. 18276 lt_prog_compiler_static_GCJ='-non_shared' 18277 ;; 18278 esac 18279 ;; 18280 18281 osf3* | osf4* | osf5*) 18282 lt_prog_compiler_wl_GCJ='-Wl,' 18283 # All OSF/1 code is PIC. 18284 lt_prog_compiler_static_GCJ='-non_shared' 18285 ;; 18286 18287 sco3.2v5*) 18288 lt_prog_compiler_pic_GCJ='-Kpic' 18289 lt_prog_compiler_static_GCJ='-dn' 18290 ;; 18291 18292 solaris*) 18293 lt_prog_compiler_wl_GCJ='-Wl,' 18294 lt_prog_compiler_pic_GCJ='-KPIC' 18295 lt_prog_compiler_static_GCJ='-Bstatic' 18296 ;; 18297 18298 sunos4*) 18299 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18300 lt_prog_compiler_pic_GCJ='-PIC' 18301 lt_prog_compiler_static_GCJ='-Bstatic' 18302 ;; 18303 18304 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18305 lt_prog_compiler_wl_GCJ='-Wl,' 18306 lt_prog_compiler_pic_GCJ='-KPIC' 18307 lt_prog_compiler_static_GCJ='-Bstatic' 18308 ;; 18309 18310 sysv4*MP*) 18311 if test -d /usr/nec ;then 18312 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18313 lt_prog_compiler_static_GCJ='-Bstatic' 18314 fi 18315 ;; 18316 18317 uts4*) 18318 lt_prog_compiler_pic_GCJ='-pic' 18319 lt_prog_compiler_static_GCJ='-Bstatic' 18320 ;; 18321 18322 *) 18323 lt_prog_compiler_can_build_shared_GCJ=no 18324 ;; 18325 esac 18326 fi 18327 18328echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18329echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 18330 18331# 18332# Check to make sure the PIC flag actually works. 18333# 18334if test -n "$lt_prog_compiler_pic_GCJ"; then 18335 18336echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18337echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 18338if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 18339 echo $ECHO_N "(cached) $ECHO_C" >&6 18340else 18341 lt_prog_compiler_pic_works_GCJ=no 18342 ac_outfile=conftest.$ac_objext 18343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18344 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18345 # Insert the option either (1) after the last *FLAGS variable, or 18346 # (2) before a word containing "conftest.", or (3) at the end. 18347 # Note that $ac_compile itself does not contain backslashes and begins 18348 # with a dollar sign (not a hyphen), so the echo should work correctly. 18349 # The option is referenced via a variable to avoid confusing sed. 18350 lt_compile=`echo "$ac_compile" | $SED \ 18351 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 18352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18353 -e 's:$: $lt_compiler_flag:'` 18354 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 18355 (eval "$lt_compile" 2>conftest.err) 18356 ac_status=$? 18357 cat conftest.err >&5 18358 echo "$as_me:__oline__: \$? = $ac_status" >&5 18359 if (exit $ac_status) && test -s "$ac_outfile"; then 18360 # The compiler can only warn and ignore the option if not recognized 18361 # So say no if there are warnings 18362 if test ! -s conftest.err; then 18363 lt_prog_compiler_pic_works_GCJ=yes 18364 fi 18365 fi 18366 $rm conftest* 18367 18368fi 18369echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 18370echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 18371 18372if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 18373 case $lt_prog_compiler_pic_GCJ in 18374 "" | " "*) ;; 18375 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18376 esac 18377else 18378 lt_prog_compiler_pic_GCJ= 18379 lt_prog_compiler_can_build_shared_GCJ=no 18380fi 18381 18382fi 18383case "$host_os" in 18384 # For platforms which do not support PIC, -DPIC is meaningless: 18385 *djgpp*) 18386 lt_prog_compiler_pic_GCJ= 18387 ;; 18388 *) 18389 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18390 ;; 18391esac 18392 18393echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18394echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 18395if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18396 echo $ECHO_N "(cached) $ECHO_C" >&6 18397else 18398 lt_cv_prog_compiler_c_o_GCJ=no 18399 $rm -r conftest 2>/dev/null 18400 mkdir conftest 18401 cd conftest 18402 mkdir out 18403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18404 18405 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 18406 # that will create temporary files in the current directory regardless of 18407 # the output directory. Thus, making CWD read-only will cause this test 18408 # to fail, enabling locking or at least warning the user not to do parallel 18409 # builds. 18410 chmod -w . 18411 18412 lt_compiler_flag="-o out/conftest2.$ac_objext" 18413 # Insert the option either (1) after the last *FLAGS variable, or 18414 # (2) before a word containing "conftest.", or (3) at the end. 18415 # Note that $ac_compile itself does not contain backslashes and begins 18416 # with a dollar sign (not a hyphen), so the echo should work correctly. 18417 lt_compile=`echo "$ac_compile" | $SED \ 18418 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 18419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18420 -e 's:$: $lt_compiler_flag:'` 18421 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 18422 (eval "$lt_compile" 2>out/conftest.err) 18423 ac_status=$? 18424 cat out/conftest.err >&5 18425 echo "$as_me:__oline__: \$? = $ac_status" >&5 18426 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18427 then 18428 # The compiler can only warn and ignore the option if not recognized 18429 # So say no if there are warnings 18430 if test ! -s out/conftest.err; then 18431 lt_cv_prog_compiler_c_o_GCJ=yes 18432 fi 18433 fi 18434 chmod u+w . 18435 $rm conftest* out/* 18436 rmdir out 18437 cd .. 18438 rmdir conftest 18439 $rm conftest* 18440 18441fi 18442echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18443echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 18444 18445 18446hard_links="nottested" 18447if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18448 # do not overwrite the value of need_locks provided by the user 18449 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18450echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 18451 hard_links=yes 18452 $rm conftest* 18453 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18454 touch conftest.a 18455 ln conftest.a conftest.b 2>&5 || hard_links=no 18456 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18457 echo "$as_me:$LINENO: result: $hard_links" >&5 18458echo "${ECHO_T}$hard_links" >&6 18459 if test "$hard_links" = no; then 18460 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18461echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18462 need_locks=warn 18463 fi 18464else 18465 need_locks=no 18466fi 18467 18468echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18469echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 18470 18471 runpath_var= 18472 allow_undefined_flag_GCJ= 18473 enable_shared_with_static_runtimes_GCJ=no 18474 archive_cmds_GCJ= 18475 archive_expsym_cmds_GCJ= 18476 old_archive_From_new_cmds_GCJ= 18477 old_archive_from_expsyms_cmds_GCJ= 18478 export_dynamic_flag_spec_GCJ= 18479 whole_archive_flag_spec_GCJ= 18480 thread_safe_flag_spec_GCJ= 18481 hardcode_libdir_flag_spec_GCJ= 18482 hardcode_libdir_flag_spec_ld_GCJ= 18483 hardcode_libdir_separator_GCJ= 18484 hardcode_direct_GCJ=no 18485 hardcode_minus_L_GCJ=no 18486 hardcode_shlibpath_var_GCJ=unsupported 18487 link_all_deplibs_GCJ=unknown 18488 hardcode_automatic_GCJ=no 18489 module_cmds_GCJ= 18490 module_expsym_cmds_GCJ= 18491 always_export_symbols_GCJ=no 18492 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18493 # include_expsyms should be a list of space-separated symbols to be *always* 18494 # included in the symbol list 18495 include_expsyms_GCJ= 18496 # exclude_expsyms can be an extended regexp of symbols to exclude 18497 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18498 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18499 # as well as any symbol that contains `d'. 18500 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 18501 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18502 # platforms (ab)use it in PIC code, but their linkers get confused if 18503 # the symbol is explicitly referenced. Since portable code cannot 18504 # rely on this symbol name, it's probably fine to never include it in 18505 # preloaded symbol tables. 18506 extract_expsyms_cmds= 18507 18508 case $host_os in 18509 cygwin* | mingw* | pw32*) 18510 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18511 # When not using gcc, we currently assume that we are using 18512 # Microsoft Visual C++. 18513 if test "$GCC" != yes; then 18514 with_gnu_ld=no 18515 fi 18516 ;; 18517 openbsd*) 18518 with_gnu_ld=no 18519 ;; 18520 esac 18521 18522 ld_shlibs_GCJ=yes 18523 if test "$with_gnu_ld" = yes; then 18524 # If archive_cmds runs LD, not CC, wlarc should be empty 18525 wlarc='${wl}' 18526 18527 # See if GNU ld supports shared libraries. 18528 case $host_os in 18529 aix3* | aix4* | aix5*) 18530 # On AIX/PPC, the GNU linker is very broken 18531 if test "$host_cpu" != ia64; then 18532 ld_shlibs_GCJ=no 18533 cat <<EOF 1>&2 18534 18535*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18536*** to be unable to reliably create shared libraries on AIX. 18537*** Therefore, libtool is disabling shared libraries support. If you 18538*** really care for shared libraries, you may want to modify your PATH 18539*** so that a non-GNU linker is found, and then restart. 18540 18541EOF 18542 fi 18543 ;; 18544 18545 amigaos*) 18546 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)' 18547 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18548 hardcode_minus_L_GCJ=yes 18549 18550 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18551 # that the semantics of dynamic libraries on AmigaOS, at least up 18552 # to version 4, is to share data among multiple programs linked 18553 # with the same dynamic library. Since this doesn't match the 18554 # behavior of shared libraries on other platforms, we can't use 18555 # them. 18556 ld_shlibs_GCJ=no 18557 ;; 18558 18559 beos*) 18560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18561 allow_undefined_flag_GCJ=unsupported 18562 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18563 # support --undefined. This deserves some investigation. FIXME 18564 archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 18565 else 18566 ld_shlibs_GCJ=no 18567 fi 18568 ;; 18569 18570 cygwin* | mingw* | pw32*) 18571 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18572 # as there is no search path for DLLs. 18573 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18574 allow_undefined_flag_GCJ=no 18575 always_export_symbols_GCJ=no 18576 enable_shared_with_static_runtimes_GCJ=yes 18577 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18578 18579 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18580 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 18581 # If the export-symbols file already is a .def file (1st line 18582 # is EXPORTS), use it as is; otherwise, prepend... 18583 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18584 cp $export_symbols $output_objdir/$soname.def; 18585 else 18586 echo EXPORTS > $output_objdir/$soname.def; 18587 cat $export_symbols >> $output_objdir/$soname.def; 18588 fi~ 18589 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 18590 else 18591 ld_shlibs=no 18592 fi 18593 ;; 18594 18595 netbsd*) 18596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18597 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18598 wlarc= 18599 else 18600 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 18601 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18602 fi 18603 ;; 18604 18605 solaris* | sysv5*) 18606 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18607 ld_shlibs_GCJ=no 18608 cat <<EOF 1>&2 18609 18610*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18611*** create shared libraries on Solaris systems. Therefore, libtool 18612*** is disabling shared libraries support. We urge you to upgrade GNU 18613*** binutils to release 2.9.1 or newer. Another option is to modify 18614*** your PATH or compiler configuration so that the native linker is 18615*** used, and then restart. 18616 18617EOF 18618 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18619 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 18620 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18621 else 18622 ld_shlibs_GCJ=no 18623 fi 18624 ;; 18625 18626 sunos4*) 18627 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18628 wlarc= 18629 hardcode_direct_GCJ=yes 18630 hardcode_shlibpath_var_GCJ=no 18631 ;; 18632 18633 *) 18634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18635 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib' 18636 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18637 else 18638 ld_shlibs_GCJ=no 18639 fi 18640 ;; 18641 esac 18642 18643 if test "$ld_shlibs_GCJ" = yes; then 18644 runpath_var=LD_RUN_PATH 18645 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18646 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18647 # ancient GNU ld didn't support --whole-archive et. al. 18648 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18649 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18650 else 18651 whole_archive_flag_spec_GCJ= 18652 fi 18653 fi 18654 else 18655 # PORTME fill in a description of your system's linker (not GNU ld) 18656 case $host_os in 18657 aix3*) 18658 allow_undefined_flag_GCJ=unsupported 18659 always_export_symbols_GCJ=yes 18660 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' 18661 # Note: this linker hardcodes the directories in LIBPATH if there 18662 # are no directories specified by -L. 18663 hardcode_minus_L_GCJ=yes 18664 if test "$GCC" = yes && test -z "$link_static_flag"; then 18665 # Neither direct hardcoding nor static linking is supported with a 18666 # broken collect2. 18667 hardcode_direct_GCJ=unsupported 18668 fi 18669 ;; 18670 18671 aix4* | aix5*) 18672 if test "$host_cpu" = ia64; then 18673 # On IA64, the linker does run time linking by default, so we don't 18674 # have to do anything special. 18675 aix_use_runtimelinking=no 18676 exp_sym_flag='-Bexport' 18677 no_entry_flag="" 18678 else 18679 # If we're using GNU nm, then we don't want the "-C" option. 18680 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18681 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18682 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' 18683 else 18684 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' 18685 fi 18686 18687 # KDE requires run time linking. Make it the default. 18688 aix_use_runtimelinking=yes 18689 exp_sym_flag='-bexport' 18690 no_entry_flag='-bnoentry' 18691 fi 18692 18693 # When large executables or shared objects are built, AIX ld can 18694 # have problems creating the table of contents. If linking a library 18695 # or program results in "error TOC overflow" add -mminimal-toc to 18696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18698 18699 archive_cmds_GCJ='' 18700 hardcode_direct_GCJ=yes 18701 hardcode_libdir_separator_GCJ=':' 18702 link_all_deplibs_GCJ=yes 18703 18704 if test "$GCC" = yes; then 18705 case $host_os in aix4.012|aix4.012.*) 18706 # We only want to do this on AIX 4.2 and lower, the check 18707 # below for broken collect2 doesn't work under 4.3+ 18708 collect2name=`${CC} -print-prog-name=collect2` 18709 if test -f "$collect2name" && \ 18710 strings "$collect2name" | grep resolve_lib_name >/dev/null 18711 then 18712 # We have reworked collect2 18713 hardcode_direct_GCJ=yes 18714 else 18715 # We have old collect2 18716 hardcode_direct_GCJ=unsupported 18717 # It fails to find uninstalled libraries when the uninstalled 18718 # path is not listed in the libpath. Setting hardcode_minus_L 18719 # to unsupported forces relinking 18720 hardcode_minus_L_GCJ=yes 18721 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18722 hardcode_libdir_separator_GCJ= 18723 fi 18724 esac 18725 shared_flag='-shared' 18726 else 18727 # not using gcc 18728 if test "$host_cpu" = ia64; then 18729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18730 # chokes on -Wl,-G. The following line is correct: 18731 shared_flag='-G' 18732 else 18733 if test "$aix_use_runtimelinking" = yes; then 18734 shared_flag='-qmkshrobj ${wl}-G' 18735 else 18736 shared_flag='-qmkshrobj' 18737 fi 18738 fi 18739 fi 18740 18741 # Let the compiler handle the export list. 18742 always_export_symbols_GCJ=no 18743 if test "$aix_use_runtimelinking" = yes; then 18744 # Warning - without using the other runtime loading flags (-brtl), 18745 # -berok will link without error, but may produce a broken library. 18746 allow_undefined_flag_GCJ='-berok' 18747 # Determine the default libpath from the value encoded in an empty executable. 18748 cat >conftest.$ac_ext <<_ACEOF 18749/* confdefs.h. */ 18750_ACEOF 18751cat confdefs.h >>conftest.$ac_ext 18752cat >>conftest.$ac_ext <<_ACEOF 18753/* end confdefs.h. */ 18754 18755int 18756main () 18757{ 18758 18759 ; 18760 return 0; 18761} 18762_ACEOF 18763rm -f conftest.$ac_objext conftest$ac_exeext 18764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18765 (eval $ac_link) 2>conftest.er1 18766 ac_status=$? 18767 grep -v '^ *+' conftest.er1 >conftest.err 18768 rm -f conftest.er1 18769 cat conftest.err >&5 18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18771 (exit $ac_status); } && 18772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18774 (eval $ac_try) 2>&5 18775 ac_status=$? 18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18777 (exit $ac_status); }; } && 18778 { ac_try='test -s conftest$ac_exeext' 18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18780 (eval $ac_try) 2>&5 18781 ac_status=$? 18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18783 (exit $ac_status); }; }; then 18784 18785aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18786}'` 18787# Check for a 64-bit object if we didn't find anything. 18788if 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; } 18789}'`; fi 18790else 18791 echo "$as_me: failed program was:" >&5 18792sed 's/^/| /' conftest.$ac_ext >&5 18793 18794fi 18795rm -f conftest.err conftest.$ac_objext \ 18796 conftest$ac_exeext conftest.$ac_ext 18797if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18798 18799 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18800 archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" 18801 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18802 else 18803 if test "$host_cpu" = ia64; then 18804 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18805 allow_undefined_flag_GCJ="-z nodefs" 18806 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 18807 else 18808 # Determine the default libpath from the value encoded in an empty executable. 18809 cat >conftest.$ac_ext <<_ACEOF 18810/* confdefs.h. */ 18811_ACEOF 18812cat confdefs.h >>conftest.$ac_ext 18813cat >>conftest.$ac_ext <<_ACEOF 18814/* end confdefs.h. */ 18815 18816int 18817main () 18818{ 18819 18820 ; 18821 return 0; 18822} 18823_ACEOF 18824rm -f conftest.$ac_objext conftest$ac_exeext 18825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18826 (eval $ac_link) 2>conftest.er1 18827 ac_status=$? 18828 grep -v '^ *+' conftest.er1 >conftest.err 18829 rm -f conftest.er1 18830 cat conftest.err >&5 18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18832 (exit $ac_status); } && 18833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18835 (eval $ac_try) 2>&5 18836 ac_status=$? 18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18838 (exit $ac_status); }; } && 18839 { ac_try='test -s conftest$ac_exeext' 18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18841 (eval $ac_try) 2>&5 18842 ac_status=$? 18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18844 (exit $ac_status); }; }; then 18845 18846aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18847}'` 18848# Check for a 64-bit object if we didn't find anything. 18849if 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; } 18850}'`; fi 18851else 18852 echo "$as_me: failed program was:" >&5 18853sed 's/^/| /' conftest.$ac_ext >&5 18854 18855fi 18856rm -f conftest.err conftest.$ac_objext \ 18857 conftest$ac_exeext conftest.$ac_ext 18858if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18859 18860 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18861 # Warning - without using the other run time loading flags, 18862 # -berok will link without error, but may produce a broken library. 18863 no_undefined_flag_GCJ=' ${wl}-bernotok' 18864 allow_undefined_flag_GCJ=' ${wl}-berok' 18865 # -bexpall does not export symbols beginning with underscore (_) 18866 always_export_symbols_GCJ=yes 18867 # Exported symbols can be pulled into shared objects from archives 18868 whole_archive_flag_spec_GCJ=' ' 18869 archive_cmds_need_lc_GCJ=yes 18870 # This is similar to how AIX traditionally builds it's shared libraries. 18871 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18872 fi 18873 fi 18874 ;; 18875 18876 amigaos*) 18877 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)' 18878 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18879 hardcode_minus_L_GCJ=yes 18880 # see comment about different semantics on the GNU ld section 18881 ld_shlibs_GCJ=no 18882 ;; 18883 18884 bsdi4*) 18885 export_dynamic_flag_spec_GCJ=-rdynamic 18886 ;; 18887 18888 cygwin* | mingw* | pw32*) 18889 # When not using gcc, we currently assume that we are using 18890 # Microsoft Visual C++. 18891 # hardcode_libdir_flag_spec is actually meaningless, as there is 18892 # no search path for DLLs. 18893 hardcode_libdir_flag_spec_GCJ=' ' 18894 allow_undefined_flag_GCJ=no 18895 # Tell ltmain to make .lib files, not .a files. 18896 libext=lib 18897 # Tell ltmain to make .dll files, not .so files. 18898 shrext=".dll" 18899 # FIXME: Setting linknames here is a bad hack. 18900 archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18901 # The linker will automatically build a .lib file if we build a DLL. 18902 old_archive_From_new_cmds_GCJ='true' 18903 # FIXME: Should let the user specify the lib program. 18904 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 18905 fix_srcfile_path='`cygpath -w "$srcfile"`' 18906 enable_shared_with_static_runtimes_GCJ=yes 18907 ;; 18908 18909 darwin* | rhapsody*) 18910 if test "$GXX" = yes ; then 18911 archive_cmds_need_lc_GCJ=no 18912 case "$host_os" in 18913 rhapsody* | darwin1.[012]) 18914 allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress' 18915 ;; 18916 *) # Darwin 1.3 on 18917 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18918 allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 18919 else 18920 case ${MACOSX_DEPLOYMENT_TARGET} in 18921 10.012) 18922 allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress' 18923 ;; 18924 10.*) 18925 allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup' 18926 ;; 18927 esac 18928 fi 18929 ;; 18930 esac 18931 lt_int_apple_cc_single_mod=no 18932 output_verbose_link_cmd='echo' 18933 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 18934 lt_int_apple_cc_single_mod=yes 18935 fi 18936 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 18937 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring' 18938 else 18939 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 $compiler_flags $deplibs -install_name $rpath/$soname $verstring' 18940 fi 18941 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs' 18942 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 18943 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 18944 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 $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18945 else 18946 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 $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18947 fi 18948 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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18949 hardcode_direct_GCJ=no 18950 hardcode_automatic_GCJ=yes 18951 hardcode_shlibpath_var_GCJ=unsupported 18952 whole_archive_flag_spec_GCJ='-all_load $convenience' 18953 link_all_deplibs_GCJ=yes 18954 else 18955 ld_shlibs_GCJ=no 18956 fi 18957 ;; 18958 18959 dgux*) 18960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18961 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18962 hardcode_shlibpath_var_GCJ=no 18963 ;; 18964 18965 freebsd1*) 18966 ld_shlibs_GCJ=no 18967 ;; 18968 18969 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18970 # support. Future versions do this automatically, but an explicit c++rt0.o 18971 # does not break anything, and helps significantly (at the cost of a little 18972 # extra space). 18973 freebsd2.2*) 18974 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18975 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18976 hardcode_direct_GCJ=yes 18977 hardcode_shlibpath_var_GCJ=no 18978 ;; 18979 18980 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18981 freebsd2*) 18982 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18983 hardcode_direct_GCJ=yes 18984 hardcode_minus_L_GCJ=yes 18985 hardcode_shlibpath_var_GCJ=no 18986 ;; 18987 18988 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18989 freebsd* | kfreebsd*-gnu) 18990 archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs' 18991 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18992 hardcode_direct_GCJ=yes 18993 hardcode_shlibpath_var_GCJ=no 18994 ;; 18995 18996 hpux9*) 18997 if test "$GCC" = yes; then 18998 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18999 else 19000 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' 19001 fi 19002 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19003 hardcode_libdir_separator_GCJ=: 19004 hardcode_direct_GCJ=yes 19005 19006 # hardcode_minus_L: Not really in the search PATH, 19007 # but as the default location of the library. 19008 hardcode_minus_L_GCJ=yes 19009 export_dynamic_flag_spec_GCJ='${wl}-E' 19010 ;; 19011 19012 hpux10* | hpux11*) 19013 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19014 case "$host_cpu" in 19015 hppa*64*|ia64*) 19016 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 19017 ;; 19018 *) 19019 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs' 19020 ;; 19021 esac 19022 else 19023 case "$host_cpu" in 19024 hppa*64*|ia64*) 19025 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 19026 ;; 19027 *) 19028 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19029 ;; 19030 esac 19031 fi 19032 if test "$with_gnu_ld" = no; then 19033 case "$host_cpu" in 19034 hppa*64*) 19035 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19036 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 19037 hardcode_libdir_separator_GCJ=: 19038 hardcode_direct_GCJ=no 19039 hardcode_shlibpath_var_GCJ=no 19040 ;; 19041 ia64*) 19042 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19043 hardcode_direct_GCJ=no 19044 hardcode_shlibpath_var_GCJ=no 19045 19046 # hardcode_minus_L: Not really in the search PATH, 19047 # but as the default location of the library. 19048 hardcode_minus_L_GCJ=yes 19049 ;; 19050 *) 19051 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19052 hardcode_libdir_separator_GCJ=: 19053 hardcode_direct_GCJ=yes 19054 export_dynamic_flag_spec_GCJ='${wl}-E' 19055 19056 # hardcode_minus_L: Not really in the search PATH, 19057 # but as the default location of the library. 19058 hardcode_minus_L_GCJ=yes 19059 ;; 19060 esac 19061 fi 19062 ;; 19063 19064 irix5* | irix6* | nonstopux*) 19065 if test "$GCC" = yes; then 19066 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19067 else 19068 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' 19069 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 19070 fi 19071 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19072 hardcode_libdir_separator_GCJ=: 19073 link_all_deplibs_GCJ=yes 19074 ;; 19075 19076 netbsd*) 19077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19078 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19079 else 19080 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19081 fi 19082 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19083 hardcode_direct_GCJ=yes 19084 hardcode_shlibpath_var_GCJ=no 19085 ;; 19086 19087 newsos6) 19088 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19089 hardcode_direct_GCJ=yes 19090 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19091 hardcode_libdir_separator_GCJ=: 19092 hardcode_shlibpath_var_GCJ=no 19093 ;; 19094 19095 openbsd*) 19096 hardcode_direct_GCJ=yes 19097 hardcode_shlibpath_var_GCJ=no 19098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19099 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' 19100 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19101 export_dynamic_flag_spec_GCJ='${wl}-E' 19102 else 19103 case $host_os in 19104 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19105 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19106 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19107 ;; 19108 *) 19109 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs' 19110 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19111 ;; 19112 esac 19113 fi 19114 ;; 19115 19116 os2*) 19117 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19118 hardcode_minus_L_GCJ=yes 19119 allow_undefined_flag_GCJ=unsupported 19120 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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def' 19121 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19122 ;; 19123 19124 osf3*) 19125 if test "$GCC" = yes; then 19126 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19127 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19128 else 19129 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19130 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' 19131 fi 19132 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19133 hardcode_libdir_separator_GCJ=: 19134 ;; 19135 19136 osf4* | osf5*) # as osf3* with the addition of -msym flag 19137 if test "$GCC" = yes; then 19138 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19139 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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' 19140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19141 else 19142 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19143 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' 19144 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~ 19145 $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' 19146 19147 # Both c and cxx compiler support -rpath directly 19148 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19149 fi 19150 hardcode_libdir_separator_GCJ=: 19151 ;; 19152 19153 sco3.2v5*) 19154 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19155 hardcode_shlibpath_var_GCJ=no 19156 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19157 runpath_var=LD_RUN_PATH 19158 hardcode_runpath_var=yes 19159 ;; 19160 19161 solaris*) 19162 no_undefined_flag_GCJ=' -z text' 19163 if test "$GCC" = yes; then 19164 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 19165 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19166 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp' 19167 else 19168 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19169 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19170 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19171 fi 19172 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19173 hardcode_shlibpath_var_GCJ=no 19174 case $host_os in 19175 solaris2.[0-5] | solaris2.[0-5].*) ;; 19176 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 19177 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 19178 esac 19179 link_all_deplibs_GCJ=yes 19180 ;; 19181 19182 sunos4*) 19183 if test "x$host_vendor" = xsequent; then 19184 # Use $CC to link under sequent, because it throws in some extra .o 19185 # files that make .init and .fini sections work. 19186 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs' 19187 else 19188 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19189 fi 19190 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19191 hardcode_direct_GCJ=yes 19192 hardcode_minus_L_GCJ=yes 19193 hardcode_shlibpath_var_GCJ=no 19194 ;; 19195 19196 sysv4) 19197 case $host_vendor in 19198 sni) 19199 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19200 hardcode_direct_GCJ=yes # is this really true??? 19201 ;; 19202 siemens) 19203 ## LD is ld it makes a PLAMLIB 19204 ## CC just makes a GrossModule. 19205 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19206 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19207 hardcode_direct_GCJ=no 19208 ;; 19209 motorola) 19210 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19211 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19212 ;; 19213 esac 19214 runpath_var='LD_RUN_PATH' 19215 hardcode_shlibpath_var_GCJ=no 19216 ;; 19217 19218 sysv4.3*) 19219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19220 hardcode_shlibpath_var_GCJ=no 19221 export_dynamic_flag_spec_GCJ='-Bexport' 19222 ;; 19223 19224 sysv4*MP*) 19225 if test -d /usr/nec; then 19226 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19227 hardcode_shlibpath_var_GCJ=no 19228 runpath_var=LD_RUN_PATH 19229 hardcode_runpath_var=yes 19230 ld_shlibs_GCJ=yes 19231 fi 19232 ;; 19233 19234 sysv4.2uw2*) 19235 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19236 hardcode_direct_GCJ=yes 19237 hardcode_minus_L_GCJ=no 19238 hardcode_shlibpath_var_GCJ=no 19239 hardcode_runpath_var=yes 19240 runpath_var=LD_RUN_PATH 19241 ;; 19242 19243 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 19244 no_undefined_flag_GCJ='${wl}-z ${wl}text' 19245 if test "$GCC" = yes; then 19246 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 19247 else 19248 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs' 19249 fi 19250 runpath_var='LD_RUN_PATH' 19251 hardcode_shlibpath_var_GCJ=no 19252 ;; 19253 19254 sysv5*) 19255 no_undefined_flag_GCJ=' -z text' 19256 # $CC -shared without GNU ld will not create a library from C++ 19257 # object files and a static libstdc++, better avoid it by now 19258 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19259 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19260 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19261 hardcode_libdir_flag_spec_GCJ= 19262 hardcode_shlibpath_var_GCJ=no 19263 runpath_var='LD_RUN_PATH' 19264 ;; 19265 19266 uts4*) 19267 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19268 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19269 hardcode_shlibpath_var_GCJ=no 19270 ;; 19271 19272 *) 19273 ld_shlibs_GCJ=no 19274 ;; 19275 esac 19276 fi 19277 19278echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19279echo "${ECHO_T}$ld_shlibs_GCJ" >&6 19280test "$ld_shlibs_GCJ" = no && can_build_shared=no 19281 19282variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19283if test "$GCC" = yes; then 19284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19285fi 19286 19287# 19288# Do we need to explicitly link libc? 19289# 19290case "x$archive_cmds_need_lc_GCJ" in 19291x|xyes) 19292 # Assume -lc should be added 19293 archive_cmds_need_lc_GCJ=yes 19294 19295 if test "$enable_shared" = yes && test "$GCC" = yes; then 19296 case $archive_cmds_GCJ in 19297 *'~'*) 19298 # FIXME: we may have to deal with multi-command sequences. 19299 ;; 19300 '$CC '*) 19301 # Test whether the compiler implicitly links with -lc since on some 19302 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19303 # to ld, don't add -lc before -lgcc. 19304 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19305echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 19306 $rm conftest* 19307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19308 19309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19310 (eval $ac_compile) 2>&5 19311 ac_status=$? 19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19313 (exit $ac_status); } 2>conftest.err; then 19314 soname=conftest 19315 lib=conftest 19316 libobjs=conftest.$ac_objext 19317 deplibs= 19318 wl=$lt_prog_compiler_wl_GCJ 19319 compiler_flags=-v 19320 linker_flags=-v 19321 verstring= 19322 output_objdir=. 19323 libname=conftest 19324 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19325 allow_undefined_flag_GCJ= 19326 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19327 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19328 ac_status=$? 19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19330 (exit $ac_status); } 19331 then 19332 archive_cmds_need_lc_GCJ=no 19333 else 19334 archive_cmds_need_lc_GCJ=yes 19335 fi 19336 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19337 else 19338 cat conftest.err 1>&5 19339 fi 19340 $rm conftest* 19341 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19342echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 19343 ;; 19344 esac 19345 fi 19346 ;; 19347esac 19348 19349echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19350echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 19351library_names_spec= 19352libname_spec='lib$name' 19353soname_spec= 19354shrext=".so" 19355postinstall_cmds= 19356postuninstall_cmds= 19357finish_cmds= 19358finish_eval= 19359shlibpath_var= 19360shlibpath_overrides_runpath=unknown 19361version_type=none 19362dynamic_linker="$host_os ld.so" 19363sys_lib_dlsearch_path_spec="/lib /usr/lib" 19364sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19365need_lib_prefix=unknown 19366hardcode_into_libs=no 19367 19368# when you set need_version to no, make sure it does not cause -set_version 19369# flags to be left without arguments 19370need_version=unknown 19371 19372case $host_os in 19373aix3*) 19374 version_type=linux 19375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19376 shlibpath_var=LIBPATH 19377 19378 # AIX 3 has no versioning support, so we append a major version to the name. 19379 soname_spec='${libname}${release}${shared_ext}$major' 19380 ;; 19381 19382aix4* | aix5*) 19383 version_type=linux 19384 need_lib_prefix=no 19385 need_version=no 19386 hardcode_into_libs=yes 19387 if test "$host_cpu" = ia64; then 19388 # AIX 5 supports IA64 19389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19390 shlibpath_var=LD_LIBRARY_PATH 19391 else 19392 # With GCC up to 2.95.x, collect2 would create an import file 19393 # for dependence libraries. The import file would start with 19394 # the line `#! .'. This would cause the generated library to 19395 # depend on `.', always an invalid library. This was fixed in 19396 # development snapshots of GCC prior to 3.0. 19397 case $host_os in 19398 aix4 | aix4.[01] | aix4.[01].*) 19399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19400 echo ' yes ' 19401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19402 : 19403 else 19404 can_build_shared=no 19405 fi 19406 ;; 19407 esac 19408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19409 # soname into executable. Probably we can add versioning support to 19410 # collect2, so additional links can be useful in future. 19411 if test "$aix_use_runtimelinking" = yes; then 19412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19413 # instead of lib<name>.a to let people know that these are not 19414 # typical AIX shared libraries. 19415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19416 else 19417 # We preserve .a as extension for shared libraries through AIX4.2 19418 # and later when we are not doing run time linking. 19419 library_names_spec='${libname}${release}.a $libname.a' 19420 soname_spec='${libname}${release}${shared_ext}$major' 19421 fi 19422 shlibpath_var=LIBPATH 19423 fi 19424 ;; 19425 19426amigaos*) 19427 library_names_spec='$libname.ixlibrary $libname.a' 19428 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19429 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' 19430 ;; 19431 19432beos*) 19433 library_names_spec='${libname}${shared_ext}' 19434 dynamic_linker="$host_os ld.so" 19435 shlibpath_var=LIBRARY_PATH 19436 ;; 19437 19438bsdi4*) 19439 version_type=linux 19440 need_version=no 19441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19442 soname_spec='${libname}${release}${shared_ext}$major' 19443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19444 shlibpath_var=LD_LIBRARY_PATH 19445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19447 # the default ld.so.conf also contains /usr/contrib/lib and 19448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19449 # libtool to hard-code these into programs 19450 ;; 19451 19452cygwin* | mingw* | pw32*) 19453 version_type=windows 19454 shrext=".dll" 19455 need_version=no 19456 need_lib_prefix=no 19457 19458 case $GCC,$host_os in 19459 yes,cygwin* | yes,mingw* | yes,pw32*) 19460 library_names_spec='$libname.dll.a' 19461 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19462 postinstall_cmds='base_file=`basename \${file}`~ 19463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19464 dldir=$destdir/`dirname \$dlpath`~ 19465 test -d \$dldir || mkdir -p \$dldir~ 19466 $install_prog $dir/$dlname \$dldir/$dlname' 19467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19468 dlpath=$dir/\$dldll~ 19469 $rm \$dlpath' 19470 shlibpath_overrides_runpath=yes 19471 19472 case $host_os in 19473 cygwin*) 19474 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19476 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19477 ;; 19478 mingw*) 19479 # MinGW DLLs use traditional 'lib' prefix 19480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19483 # It is most probably a Windows format PATH printed by 19484 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19485 # path with ; separators, and with drive letters. We can handle the 19486 # drive letters (cygwin fileutils understands them), so leave them, 19487 # especially as we might pass files found there to a mingw objdump, 19488 # which wouldn't understand a cygwinified path. Ahh. 19489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19490 else 19491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19492 fi 19493 ;; 19494 pw32*) 19495 # pw32 DLLs use 'pw' prefix rather than 'lib' 19496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 19497 ;; 19498 esac 19499 ;; 19500 19501 *) 19502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19503 ;; 19504 esac 19505 dynamic_linker='Win32 ld.exe' 19506 # FIXME: first we should search . and the directory the executable is in 19507 shlibpath_var=PATH 19508 ;; 19509 19510darwin* | rhapsody*) 19511 dynamic_linker="$host_os dyld" 19512 version_type=darwin 19513 need_lib_prefix=no 19514 need_version=no 19515 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19516 soname_spec='${libname}${release}${major}$shared_ext' 19517 shlibpath_overrides_runpath=yes 19518 shlibpath_var=DYLD_LIBRARY_PATH 19519 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 19520 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19521 if test "$GCC" = yes; then 19522 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"` 19523 else 19524 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19525 fi 19526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19527 ;; 19528 19529dgux*) 19530 version_type=linux 19531 need_lib_prefix=no 19532 need_version=no 19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19534 soname_spec='${libname}${release}${shared_ext}$major' 19535 shlibpath_var=LD_LIBRARY_PATH 19536 ;; 19537 19538freebsd1*) 19539 dynamic_linker=no 19540 ;; 19541 19542kfreebsd*-gnu*) 19543 version_type=linux 19544 need_lib_prefix=no 19545 need_version=no 19546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19547 soname_spec='${libname}${release}${shared_ext}$major' 19548 shlibpath_var=LD_LIBRARY_PATH 19549 shlibpath_overrides_runpath=no 19550 hardcode_into_libs=yes 19551 dynamic_linker='GNU ld.so' 19552 ;; 19553 19554freebsd*) 19555 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 19556 version_type=freebsd-$objformat 19557 case $version_type in 19558 freebsd-elf*) 19559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19560 need_version=no 19561 need_lib_prefix=no 19562 ;; 19563 freebsd-*) 19564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19565 need_version=yes 19566 ;; 19567 esac 19568 shlibpath_var=LD_LIBRARY_PATH 19569 case $host_os in 19570 freebsd2*) 19571 shlibpath_overrides_runpath=yes 19572 ;; 19573 freebsd3.01* | freebsdelf3.01*) 19574 shlibpath_overrides_runpath=yes 19575 hardcode_into_libs=yes 19576 ;; 19577 *) # from 3.2 on 19578 shlibpath_overrides_runpath=no 19579 hardcode_into_libs=yes 19580 ;; 19581 esac 19582 ;; 19583 19584gnu*) 19585 version_type=linux 19586 need_lib_prefix=no 19587 need_version=no 19588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19589 soname_spec='${libname}${release}${shared_ext}$major' 19590 shlibpath_var=LD_LIBRARY_PATH 19591 hardcode_into_libs=yes 19592 ;; 19593 19594hpux9* | hpux10* | hpux11*) 19595 # Give a soname corresponding to the major version so that dld.sl refuses to 19596 # link against other versions. 19597 version_type=sunos 19598 need_lib_prefix=no 19599 need_version=no 19600 case "$host_cpu" in 19601 ia64*) 19602 shrext='.so' 19603 hardcode_into_libs=yes 19604 dynamic_linker="$host_os dld.so" 19605 shlibpath_var=LD_LIBRARY_PATH 19606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19608 soname_spec='${libname}${release}${shared_ext}$major' 19609 if test "X$HPUX_IA64_MODE" = X32; then 19610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19611 else 19612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19613 fi 19614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19615 ;; 19616 hppa*64*) 19617 shrext='.sl' 19618 hardcode_into_libs=yes 19619 dynamic_linker="$host_os dld.sl" 19620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19623 soname_spec='${libname}${release}${shared_ext}$major' 19624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19626 ;; 19627 *) 19628 shrext='.sl' 19629 dynamic_linker="$host_os dld.sl" 19630 shlibpath_var=SHLIB_PATH 19631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19633 soname_spec='${libname}${release}${shared_ext}$major' 19634 ;; 19635 esac 19636 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19637 postinstall_cmds='chmod 555 $lib' 19638 ;; 19639 19640irix5* | irix6* | nonstopux*) 19641 case $host_os in 19642 nonstopux*) version_type=nonstopux ;; 19643 *) 19644 if test "$lt_cv_prog_gnu_ld" = yes; then 19645 version_type=linux 19646 else 19647 version_type=irix 19648 fi ;; 19649 esac 19650 need_lib_prefix=no 19651 need_version=no 19652 soname_spec='${libname}${release}${shared_ext}$major' 19653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19654 case $host_os in 19655 irix5* | nonstopux*) 19656 libsuff= shlibsuff= 19657 ;; 19658 *) 19659 case $LD in # libtool.m4 will add one of these switches to LD 19660 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19661 libsuff= shlibsuff= libmagic=32-bit;; 19662 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19663 libsuff=32 shlibsuff=N32 libmagic=N32;; 19664 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19665 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19666 *) libsuff= shlibsuff= libmagic=never-match;; 19667 esac 19668 ;; 19669 esac 19670 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19671 shlibpath_overrides_runpath=no 19672 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19673 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19674 hardcode_into_libs=yes 19675 ;; 19676 19677# No shared lib support for Linux oldld, aout, or coff. 19678linux*oldld* | linux*aout* | linux*coff*) 19679 dynamic_linker=no 19680 ;; 19681 19682# This must be Linux ELF. 19683linux*) 19684 version_type=linux 19685 need_lib_prefix=no 19686 need_version=no 19687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19688 soname_spec='${libname}${release}${shared_ext}$major' 19689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19690 libsuff= 19691 if test "x$LINUX_64_MODE" = x64; then 19692 # Some platforms are per default 64-bit, so there's no /lib64 19693 if test -d /lib64; then 19694 libsuff=64 19695 fi 19696 fi 19697 shlibpath_var=LD_LIBRARY_PATH 19698 shlibpath_overrides_runpath=no 19699 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 19700 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 19701 # This implies no fast_install, which is unacceptable. 19702 # Some rework will be needed to allow for fast_install 19703 # before this can be enabled. 19704 hardcode_into_libs=yes 19705 19706 # We used to test for /lib/ld.so.1 and disable shared libraries on 19707 # powerpc, because MkLinux only supported shared libraries with the 19708 # GNU dynamic linker. Since this was broken with cross compilers, 19709 # most powerpc-linux boxes support dynamic linking these days and 19710 # people can always --disable-shared, the test was removed, and we 19711 # assume the GNU/Linux dynamic linker is in use. 19712 dynamic_linker='GNU/Linux ld.so' 19713 ;; 19714 19715netbsd*) 19716 version_type=sunos 19717 need_lib_prefix=no 19718 need_version=no 19719 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19722 dynamic_linker='NetBSD (a.out) ld.so' 19723 else 19724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 19725 soname_spec='${libname}${release}${shared_ext}$major' 19726 dynamic_linker='NetBSD ld.elf_so' 19727 fi 19728 shlibpath_var=LD_LIBRARY_PATH 19729 shlibpath_overrides_runpath=yes 19730 hardcode_into_libs=yes 19731 ;; 19732 19733newsos6) 19734 version_type=linux 19735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19736 shlibpath_var=LD_LIBRARY_PATH 19737 shlibpath_overrides_runpath=yes 19738 ;; 19739 19740nto-qnx*) 19741 version_type=linux 19742 need_lib_prefix=no 19743 need_version=no 19744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19745 soname_spec='${libname}${release}${shared_ext}$major' 19746 shlibpath_var=LD_LIBRARY_PATH 19747 shlibpath_overrides_runpath=yes 19748 ;; 19749 19750openbsd*) 19751 version_type=sunos 19752 need_lib_prefix=no 19753 need_version=no 19754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19756 shlibpath_var=LD_LIBRARY_PATH 19757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19758 case $host_os in 19759 openbsd2.[89] | openbsd2.[89].*) 19760 shlibpath_overrides_runpath=no 19761 ;; 19762 *) 19763 shlibpath_overrides_runpath=yes 19764 ;; 19765 esac 19766 else 19767 shlibpath_overrides_runpath=yes 19768 fi 19769 ;; 19770 19771os2*) 19772 libname_spec='$name' 19773 shrext=".dll" 19774 need_lib_prefix=no 19775 library_names_spec='$libname${shared_ext} $libname.a' 19776 dynamic_linker='OS/2 ld.exe' 19777 shlibpath_var=LIBPATH 19778 ;; 19779 19780osf3* | osf4* | osf5*) 19781 version_type=osf 19782 need_lib_prefix=no 19783 need_version=no 19784 soname_spec='${libname}${release}${shared_ext}$major' 19785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19786 shlibpath_var=LD_LIBRARY_PATH 19787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19788 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19789 ;; 19790 19791sco3.2v5*) 19792 version_type=osf 19793 soname_spec='${libname}${release}${shared_ext}$major' 19794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19795 shlibpath_var=LD_LIBRARY_PATH 19796 ;; 19797 19798solaris*) 19799 version_type=linux 19800 need_lib_prefix=no 19801 need_version=no 19802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19803 soname_spec='${libname}${release}${shared_ext}$major' 19804 shlibpath_var=LD_LIBRARY_PATH 19805 shlibpath_overrides_runpath=yes 19806 hardcode_into_libs=yes 19807 # ldd complains unless libraries are executable 19808 postinstall_cmds='chmod +x $lib' 19809 ;; 19810 19811sunos4*) 19812 version_type=sunos 19813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19814 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19815 shlibpath_var=LD_LIBRARY_PATH 19816 shlibpath_overrides_runpath=yes 19817 if test "$with_gnu_ld" = yes; then 19818 need_lib_prefix=no 19819 fi 19820 need_version=yes 19821 ;; 19822 19823sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19824 version_type=linux 19825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19826 soname_spec='${libname}${release}${shared_ext}$major' 19827 shlibpath_var=LD_LIBRARY_PATH 19828 case $host_vendor in 19829 sni) 19830 shlibpath_overrides_runpath=no 19831 need_lib_prefix=no 19832 export_dynamic_flag_spec='${wl}-Blargedynsym' 19833 runpath_var=LD_RUN_PATH 19834 ;; 19835 siemens) 19836 need_lib_prefix=no 19837 ;; 19838 motorola) 19839 need_lib_prefix=no 19840 need_version=no 19841 shlibpath_overrides_runpath=no 19842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19843 ;; 19844 esac 19845 ;; 19846 19847sysv4*MP*) 19848 if test -d /usr/nec ;then 19849 version_type=linux 19850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19851 soname_spec='$libname${shared_ext}.$major' 19852 shlibpath_var=LD_LIBRARY_PATH 19853 fi 19854 ;; 19855 19856uts4*) 19857 version_type=linux 19858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19859 soname_spec='${libname}${release}${shared_ext}$major' 19860 shlibpath_var=LD_LIBRARY_PATH 19861 ;; 19862 19863*) 19864 dynamic_linker=no 19865 ;; 19866esac 19867echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19868echo "${ECHO_T}$dynamic_linker" >&6 19869test "$dynamic_linker" = no && can_build_shared=no 19870 19871echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19872echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 19873hardcode_action_GCJ= 19874if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19875 test -n "$runpath_var GCJ" || \ 19876 test "X$hardcode_automatic_GCJ"="Xyes" ; then 19877 19878 # We can hardcode non-existant directories. 19879 if test "$hardcode_direct_GCJ" != no && 19880 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19881 # have to relink, otherwise we might link with an installed library 19882 # when we should be linking with a yet-to-be-installed one 19883 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19884 test "$hardcode_minus_L_GCJ" != no; then 19885 # Linking always hardcodes the temporary library directory. 19886 hardcode_action_GCJ=relink 19887 else 19888 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19889 hardcode_action_GCJ=immediate 19890 fi 19891else 19892 # We cannot hardcode anything, or else we can only hardcode existing 19893 # directories. 19894 hardcode_action_GCJ=unsupported 19895fi 19896echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19897echo "${ECHO_T}$hardcode_action_GCJ" >&6 19898 19899if test "$hardcode_action_GCJ" = relink; then 19900 # Fast installation is not supported 19901 enable_fast_install=no 19902elif test "$shlibpath_overrides_runpath" = yes || 19903 test "$enable_shared" = no; then 19904 # Fast installation is not necessary 19905 enable_fast_install=needless 19906fi 19907 19908striplib= 19909old_striplib= 19910echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 19911echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 19912if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 19913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19914 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19915 echo "$as_me:$LINENO: result: yes" >&5 19916echo "${ECHO_T}yes" >&6 19917else 19918# FIXME - insert some real tests, host_os isn't really good enough 19919 case $host_os in 19920 darwin*) 19921 if test -n "$STRIP" ; then 19922 striplib="$STRIP -x" 19923 echo "$as_me:$LINENO: result: yes" >&5 19924echo "${ECHO_T}yes" >&6 19925 else 19926 echo "$as_me:$LINENO: result: no" >&5 19927echo "${ECHO_T}no" >&6 19928fi 19929 ;; 19930 *) 19931 echo "$as_me:$LINENO: result: no" >&5 19932echo "${ECHO_T}no" >&6 19933 ;; 19934 esac 19935fi 19936 19937if test "x$enable_dlopen" != xyes; then 19938 enable_dlopen=unknown 19939 enable_dlopen_self=unknown 19940 enable_dlopen_self_static=unknown 19941else 19942 lt_cv_dlopen=no 19943 lt_cv_dlopen_libs= 19944 19945 case $host_os in 19946 beos*) 19947 lt_cv_dlopen="load_add_on" 19948 lt_cv_dlopen_libs= 19949 lt_cv_dlopen_self=yes 19950 ;; 19951 19952 mingw* | pw32*) 19953 lt_cv_dlopen="LoadLibrary" 19954 lt_cv_dlopen_libs= 19955 ;; 19956 19957 cygwin*) 19958 lt_cv_dlopen="dlopen" 19959 lt_cv_dlopen_libs= 19960 ;; 19961 19962 darwin*) 19963 # if libdl is installed we need to link against it 19964 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 19965echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 19966if test "${ac_cv_lib_dl_dlopen+set}" = set; then 19967 echo $ECHO_N "(cached) $ECHO_C" >&6 19968else 19969 ac_check_lib_save_LIBS=$LIBS 19970LIBS="-ldl $LIBS" 19971cat >conftest.$ac_ext <<_ACEOF 19972/* confdefs.h. */ 19973_ACEOF 19974cat confdefs.h >>conftest.$ac_ext 19975cat >>conftest.$ac_ext <<_ACEOF 19976/* end confdefs.h. */ 19977 19978/* Override any gcc2 internal prototype to avoid an error. */ 19979#ifdef __cplusplus 19980extern "C" 19981#endif 19982/* We use char because int might match the return type of a gcc2 19983 builtin and then its argument prototype would still apply. */ 19984char dlopen (); 19985int 19986main () 19987{ 19988dlopen (); 19989 ; 19990 return 0; 19991} 19992_ACEOF 19993rm -f conftest.$ac_objext conftest$ac_exeext 19994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19995 (eval $ac_link) 2>conftest.er1 19996 ac_status=$? 19997 grep -v '^ *+' conftest.er1 >conftest.err 19998 rm -f conftest.er1 19999 cat conftest.err >&5 20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20001 (exit $ac_status); } && 20002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20004 (eval $ac_try) 2>&5 20005 ac_status=$? 20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20007 (exit $ac_status); }; } && 20008 { ac_try='test -s conftest$ac_exeext' 20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20010 (eval $ac_try) 2>&5 20011 ac_status=$? 20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20013 (exit $ac_status); }; }; then 20014 ac_cv_lib_dl_dlopen=yes 20015else 20016 echo "$as_me: failed program was:" >&5 20017sed 's/^/| /' conftest.$ac_ext >&5 20018 20019ac_cv_lib_dl_dlopen=no 20020fi 20021rm -f conftest.err conftest.$ac_objext \ 20022 conftest$ac_exeext conftest.$ac_ext 20023LIBS=$ac_check_lib_save_LIBS 20024fi 20025echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20026echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20027if test $ac_cv_lib_dl_dlopen = yes; then 20028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 20029else 20030 20031 lt_cv_dlopen="dyld" 20032 lt_cv_dlopen_libs= 20033 lt_cv_dlopen_self=yes 20034 20035fi 20036 20037 ;; 20038 20039 *) 20040 echo "$as_me:$LINENO: checking for shl_load" >&5 20041echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 20042if test "${ac_cv_func_shl_load+set}" = set; then 20043 echo $ECHO_N "(cached) $ECHO_C" >&6 20044else 20045 cat >conftest.$ac_ext <<_ACEOF 20046/* confdefs.h. */ 20047_ACEOF 20048cat confdefs.h >>conftest.$ac_ext 20049cat >>conftest.$ac_ext <<_ACEOF 20050/* end confdefs.h. */ 20051/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 20052 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20053#define shl_load innocuous_shl_load 20054 20055/* System header to define __stub macros and hopefully few prototypes, 20056 which can conflict with char shl_load (); below. 20057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20058 <limits.h> exists even on freestanding compilers. */ 20059 20060#ifdef __STDC__ 20061# include <limits.h> 20062#else 20063# include <assert.h> 20064#endif 20065 20066#undef shl_load 20067 20068/* Override any gcc2 internal prototype to avoid an error. */ 20069#ifdef __cplusplus 20070extern "C" 20071{ 20072#endif 20073/* We use char because int might match the return type of a gcc2 20074 builtin and then its argument prototype would still apply. */ 20075char shl_load (); 20076/* The GNU C library defines this for functions which it implements 20077 to always fail with ENOSYS. Some functions are actually named 20078 something starting with __ and the normal name is an alias. */ 20079#if defined (__stub_shl_load) || defined (__stub___shl_load) 20080choke me 20081#else 20082char (*f) () = shl_load; 20083#endif 20084#ifdef __cplusplus 20085} 20086#endif 20087 20088int 20089main () 20090{ 20091return f != shl_load; 20092 ; 20093 return 0; 20094} 20095_ACEOF 20096rm -f conftest.$ac_objext conftest$ac_exeext 20097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20098 (eval $ac_link) 2>conftest.er1 20099 ac_status=$? 20100 grep -v '^ *+' conftest.er1 >conftest.err 20101 rm -f conftest.er1 20102 cat conftest.err >&5 20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20104 (exit $ac_status); } && 20105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20107 (eval $ac_try) 2>&5 20108 ac_status=$? 20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20110 (exit $ac_status); }; } && 20111 { ac_try='test -s conftest$ac_exeext' 20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20113 (eval $ac_try) 2>&5 20114 ac_status=$? 20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20116 (exit $ac_status); }; }; then 20117 ac_cv_func_shl_load=yes 20118else 20119 echo "$as_me: failed program was:" >&5 20120sed 's/^/| /' conftest.$ac_ext >&5 20121 20122ac_cv_func_shl_load=no 20123fi 20124rm -f conftest.err conftest.$ac_objext \ 20125 conftest$ac_exeext conftest.$ac_ext 20126fi 20127echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 20128echo "${ECHO_T}$ac_cv_func_shl_load" >&6 20129if test $ac_cv_func_shl_load = yes; then 20130 lt_cv_dlopen="shl_load" 20131else 20132 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 20133echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 20134if test "${ac_cv_lib_dld_shl_load+set}" = set; then 20135 echo $ECHO_N "(cached) $ECHO_C" >&6 20136else 20137 ac_check_lib_save_LIBS=$LIBS 20138LIBS="-ldld $LIBS" 20139cat >conftest.$ac_ext <<_ACEOF 20140/* confdefs.h. */ 20141_ACEOF 20142cat confdefs.h >>conftest.$ac_ext 20143cat >>conftest.$ac_ext <<_ACEOF 20144/* end confdefs.h. */ 20145 20146/* Override any gcc2 internal prototype to avoid an error. */ 20147#ifdef __cplusplus 20148extern "C" 20149#endif 20150/* We use char because int might match the return type of a gcc2 20151 builtin and then its argument prototype would still apply. */ 20152char shl_load (); 20153int 20154main () 20155{ 20156shl_load (); 20157 ; 20158 return 0; 20159} 20160_ACEOF 20161rm -f conftest.$ac_objext conftest$ac_exeext 20162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20163 (eval $ac_link) 2>conftest.er1 20164 ac_status=$? 20165 grep -v '^ *+' conftest.er1 >conftest.err 20166 rm -f conftest.er1 20167 cat conftest.err >&5 20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20169 (exit $ac_status); } && 20170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20172 (eval $ac_try) 2>&5 20173 ac_status=$? 20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20175 (exit $ac_status); }; } && 20176 { ac_try='test -s conftest$ac_exeext' 20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20178 (eval $ac_try) 2>&5 20179 ac_status=$? 20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20181 (exit $ac_status); }; }; then 20182 ac_cv_lib_dld_shl_load=yes 20183else 20184 echo "$as_me: failed program was:" >&5 20185sed 's/^/| /' conftest.$ac_ext >&5 20186 20187ac_cv_lib_dld_shl_load=no 20188fi 20189rm -f conftest.err conftest.$ac_objext \ 20190 conftest$ac_exeext conftest.$ac_ext 20191LIBS=$ac_check_lib_save_LIBS 20192fi 20193echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 20194echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 20195if test $ac_cv_lib_dld_shl_load = yes; then 20196 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 20197else 20198 echo "$as_me:$LINENO: checking for dlopen" >&5 20199echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 20200if test "${ac_cv_func_dlopen+set}" = set; then 20201 echo $ECHO_N "(cached) $ECHO_C" >&6 20202else 20203 cat >conftest.$ac_ext <<_ACEOF 20204/* confdefs.h. */ 20205_ACEOF 20206cat confdefs.h >>conftest.$ac_ext 20207cat >>conftest.$ac_ext <<_ACEOF 20208/* end confdefs.h. */ 20209/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 20210 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20211#define dlopen innocuous_dlopen 20212 20213/* System header to define __stub macros and hopefully few prototypes, 20214 which can conflict with char dlopen (); below. 20215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20216 <limits.h> exists even on freestanding compilers. */ 20217 20218#ifdef __STDC__ 20219# include <limits.h> 20220#else 20221# include <assert.h> 20222#endif 20223 20224#undef dlopen 20225 20226/* Override any gcc2 internal prototype to avoid an error. */ 20227#ifdef __cplusplus 20228extern "C" 20229{ 20230#endif 20231/* We use char because int might match the return type of a gcc2 20232 builtin and then its argument prototype would still apply. */ 20233char dlopen (); 20234/* The GNU C library defines this for functions which it implements 20235 to always fail with ENOSYS. Some functions are actually named 20236 something starting with __ and the normal name is an alias. */ 20237#if defined (__stub_dlopen) || defined (__stub___dlopen) 20238choke me 20239#else 20240char (*f) () = dlopen; 20241#endif 20242#ifdef __cplusplus 20243} 20244#endif 20245 20246int 20247main () 20248{ 20249return f != dlopen; 20250 ; 20251 return 0; 20252} 20253_ACEOF 20254rm -f conftest.$ac_objext conftest$ac_exeext 20255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20256 (eval $ac_link) 2>conftest.er1 20257 ac_status=$? 20258 grep -v '^ *+' conftest.er1 >conftest.err 20259 rm -f conftest.er1 20260 cat conftest.err >&5 20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20262 (exit $ac_status); } && 20263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20265 (eval $ac_try) 2>&5 20266 ac_status=$? 20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20268 (exit $ac_status); }; } && 20269 { ac_try='test -s conftest$ac_exeext' 20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20271 (eval $ac_try) 2>&5 20272 ac_status=$? 20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20274 (exit $ac_status); }; }; then 20275 ac_cv_func_dlopen=yes 20276else 20277 echo "$as_me: failed program was:" >&5 20278sed 's/^/| /' conftest.$ac_ext >&5 20279 20280ac_cv_func_dlopen=no 20281fi 20282rm -f conftest.err conftest.$ac_objext \ 20283 conftest$ac_exeext conftest.$ac_ext 20284fi 20285echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 20286echo "${ECHO_T}$ac_cv_func_dlopen" >&6 20287if test $ac_cv_func_dlopen = yes; then 20288 lt_cv_dlopen="dlopen" 20289else 20290 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 20291echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 20292if test "${ac_cv_lib_dl_dlopen+set}" = set; then 20293 echo $ECHO_N "(cached) $ECHO_C" >&6 20294else 20295 ac_check_lib_save_LIBS=$LIBS 20296LIBS="-ldl $LIBS" 20297cat >conftest.$ac_ext <<_ACEOF 20298/* confdefs.h. */ 20299_ACEOF 20300cat confdefs.h >>conftest.$ac_ext 20301cat >>conftest.$ac_ext <<_ACEOF 20302/* end confdefs.h. */ 20303 20304/* Override any gcc2 internal prototype to avoid an error. */ 20305#ifdef __cplusplus 20306extern "C" 20307#endif 20308/* We use char because int might match the return type of a gcc2 20309 builtin and then its argument prototype would still apply. */ 20310char dlopen (); 20311int 20312main () 20313{ 20314dlopen (); 20315 ; 20316 return 0; 20317} 20318_ACEOF 20319rm -f conftest.$ac_objext conftest$ac_exeext 20320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20321 (eval $ac_link) 2>conftest.er1 20322 ac_status=$? 20323 grep -v '^ *+' conftest.er1 >conftest.err 20324 rm -f conftest.er1 20325 cat conftest.err >&5 20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20327 (exit $ac_status); } && 20328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20330 (eval $ac_try) 2>&5 20331 ac_status=$? 20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20333 (exit $ac_status); }; } && 20334 { ac_try='test -s conftest$ac_exeext' 20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20336 (eval $ac_try) 2>&5 20337 ac_status=$? 20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20339 (exit $ac_status); }; }; then 20340 ac_cv_lib_dl_dlopen=yes 20341else 20342 echo "$as_me: failed program was:" >&5 20343sed 's/^/| /' conftest.$ac_ext >&5 20344 20345ac_cv_lib_dl_dlopen=no 20346fi 20347rm -f conftest.err conftest.$ac_objext \ 20348 conftest$ac_exeext conftest.$ac_ext 20349LIBS=$ac_check_lib_save_LIBS 20350fi 20351echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 20352echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 20353if test $ac_cv_lib_dl_dlopen = yes; then 20354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 20355else 20356 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 20357echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 20358if test "${ac_cv_lib_svld_dlopen+set}" = set; then 20359 echo $ECHO_N "(cached) $ECHO_C" >&6 20360else 20361 ac_check_lib_save_LIBS=$LIBS 20362LIBS="-lsvld $LIBS" 20363cat >conftest.$ac_ext <<_ACEOF 20364/* confdefs.h. */ 20365_ACEOF 20366cat confdefs.h >>conftest.$ac_ext 20367cat >>conftest.$ac_ext <<_ACEOF 20368/* end confdefs.h. */ 20369 20370/* Override any gcc2 internal prototype to avoid an error. */ 20371#ifdef __cplusplus 20372extern "C" 20373#endif 20374/* We use char because int might match the return type of a gcc2 20375 builtin and then its argument prototype would still apply. */ 20376char dlopen (); 20377int 20378main () 20379{ 20380dlopen (); 20381 ; 20382 return 0; 20383} 20384_ACEOF 20385rm -f conftest.$ac_objext conftest$ac_exeext 20386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20387 (eval $ac_link) 2>conftest.er1 20388 ac_status=$? 20389 grep -v '^ *+' conftest.er1 >conftest.err 20390 rm -f conftest.er1 20391 cat conftest.err >&5 20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20393 (exit $ac_status); } && 20394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20396 (eval $ac_try) 2>&5 20397 ac_status=$? 20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20399 (exit $ac_status); }; } && 20400 { ac_try='test -s conftest$ac_exeext' 20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20402 (eval $ac_try) 2>&5 20403 ac_status=$? 20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20405 (exit $ac_status); }; }; then 20406 ac_cv_lib_svld_dlopen=yes 20407else 20408 echo "$as_me: failed program was:" >&5 20409sed 's/^/| /' conftest.$ac_ext >&5 20410 20411ac_cv_lib_svld_dlopen=no 20412fi 20413rm -f conftest.err conftest.$ac_objext \ 20414 conftest$ac_exeext conftest.$ac_ext 20415LIBS=$ac_check_lib_save_LIBS 20416fi 20417echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 20418echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 20419if test $ac_cv_lib_svld_dlopen = yes; then 20420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 20421else 20422 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 20423echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 20424if test "${ac_cv_lib_dld_dld_link+set}" = set; then 20425 echo $ECHO_N "(cached) $ECHO_C" >&6 20426else 20427 ac_check_lib_save_LIBS=$LIBS 20428LIBS="-ldld $LIBS" 20429cat >conftest.$ac_ext <<_ACEOF 20430/* confdefs.h. */ 20431_ACEOF 20432cat confdefs.h >>conftest.$ac_ext 20433cat >>conftest.$ac_ext <<_ACEOF 20434/* end confdefs.h. */ 20435 20436/* Override any gcc2 internal prototype to avoid an error. */ 20437#ifdef __cplusplus 20438extern "C" 20439#endif 20440/* We use char because int might match the return type of a gcc2 20441 builtin and then its argument prototype would still apply. */ 20442char dld_link (); 20443int 20444main () 20445{ 20446dld_link (); 20447 ; 20448 return 0; 20449} 20450_ACEOF 20451rm -f conftest.$ac_objext conftest$ac_exeext 20452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20453 (eval $ac_link) 2>conftest.er1 20454 ac_status=$? 20455 grep -v '^ *+' conftest.er1 >conftest.err 20456 rm -f conftest.er1 20457 cat conftest.err >&5 20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20459 (exit $ac_status); } && 20460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20462 (eval $ac_try) 2>&5 20463 ac_status=$? 20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20465 (exit $ac_status); }; } && 20466 { ac_try='test -s conftest$ac_exeext' 20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20468 (eval $ac_try) 2>&5 20469 ac_status=$? 20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20471 (exit $ac_status); }; }; then 20472 ac_cv_lib_dld_dld_link=yes 20473else 20474 echo "$as_me: failed program was:" >&5 20475sed 's/^/| /' conftest.$ac_ext >&5 20476 20477ac_cv_lib_dld_dld_link=no 20478fi 20479rm -f conftest.err conftest.$ac_objext \ 20480 conftest$ac_exeext conftest.$ac_ext 20481LIBS=$ac_check_lib_save_LIBS 20482fi 20483echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 20484echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 20485if test $ac_cv_lib_dld_dld_link = yes; then 20486 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 20487fi 20488 20489 20490fi 20491 20492 20493fi 20494 20495 20496fi 20497 20498 20499fi 20500 20501 20502fi 20503 20504 ;; 20505 esac 20506 20507 if test "x$lt_cv_dlopen" != xno; then 20508 enable_dlopen=yes 20509 else 20510 enable_dlopen=no 20511 fi 20512 20513 case $lt_cv_dlopen in 20514 dlopen) 20515 save_CPPFLAGS="$CPPFLAGS" 20516 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20517 20518 save_LDFLAGS="$LDFLAGS" 20519 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20520 20521 save_LIBS="$LIBS" 20522 LIBS="$lt_cv_dlopen_libs $LIBS" 20523 20524 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 20525echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 20526if test "${lt_cv_dlopen_self+set}" = set; then 20527 echo $ECHO_N "(cached) $ECHO_C" >&6 20528else 20529 if test "$cross_compiling" = yes; then : 20530 lt_cv_dlopen_self=cross 20531else 20532 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20533 lt_status=$lt_dlunknown 20534 cat > conftest.$ac_ext <<EOF 20535#line __oline__ "configure" 20536#include "confdefs.h" 20537 20538#if HAVE_DLFCN_H 20539#include <dlfcn.h> 20540#endif 20541 20542#include <stdio.h> 20543 20544#ifdef RTLD_GLOBAL 20545# define LT_DLGLOBAL RTLD_GLOBAL 20546#else 20547# ifdef DL_GLOBAL 20548# define LT_DLGLOBAL DL_GLOBAL 20549# else 20550# define LT_DLGLOBAL 0 20551# endif 20552#endif 20553 20554/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20555 find out it does not work in some platform. */ 20556#ifndef LT_DLLAZY_OR_NOW 20557# ifdef RTLD_LAZY 20558# define LT_DLLAZY_OR_NOW RTLD_LAZY 20559# else 20560# ifdef DL_LAZY 20561# define LT_DLLAZY_OR_NOW DL_LAZY 20562# else 20563# ifdef RTLD_NOW 20564# define LT_DLLAZY_OR_NOW RTLD_NOW 20565# else 20566# ifdef DL_NOW 20567# define LT_DLLAZY_OR_NOW DL_NOW 20568# else 20569# define LT_DLLAZY_OR_NOW 0 20570# endif 20571# endif 20572# endif 20573# endif 20574#endif 20575 20576#ifdef __cplusplus 20577extern "C" void exit (int); 20578#endif 20579 20580void fnord() { int i=42;} 20581int main () 20582{ 20583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20584 int status = $lt_dlunknown; 20585 20586 if (self) 20587 { 20588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20590 /* dlclose (self); */ 20591 } 20592 20593 exit (status); 20594} 20595EOF 20596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20597 (eval $ac_link) 2>&5 20598 ac_status=$? 20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20600 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20601 (./conftest; exit; ) 2>/dev/null 20602 lt_status=$? 20603 case x$lt_status in 20604 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20605 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20606 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 20607 esac 20608 else : 20609 # compilation failed 20610 lt_cv_dlopen_self=no 20611 fi 20612fi 20613rm -fr conftest* 20614 20615 20616fi 20617echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 20618echo "${ECHO_T}$lt_cv_dlopen_self" >&6 20619 20620 if test "x$lt_cv_dlopen_self" = xyes; then 20621 LDFLAGS="$LDFLAGS $link_static_flag" 20622 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 20623echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 20624if test "${lt_cv_dlopen_self_static+set}" = set; then 20625 echo $ECHO_N "(cached) $ECHO_C" >&6 20626else 20627 if test "$cross_compiling" = yes; then : 20628 lt_cv_dlopen_self_static=cross 20629else 20630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20631 lt_status=$lt_dlunknown 20632 cat > conftest.$ac_ext <<EOF 20633#line __oline__ "configure" 20634#include "confdefs.h" 20635 20636#if HAVE_DLFCN_H 20637#include <dlfcn.h> 20638#endif 20639 20640#include <stdio.h> 20641 20642#ifdef RTLD_GLOBAL 20643# define LT_DLGLOBAL RTLD_GLOBAL 20644#else 20645# ifdef DL_GLOBAL 20646# define LT_DLGLOBAL DL_GLOBAL 20647# else 20648# define LT_DLGLOBAL 0 20649# endif 20650#endif 20651 20652/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20653 find out it does not work in some platform. */ 20654#ifndef LT_DLLAZY_OR_NOW 20655# ifdef RTLD_LAZY 20656# define LT_DLLAZY_OR_NOW RTLD_LAZY 20657# else 20658# ifdef DL_LAZY 20659# define LT_DLLAZY_OR_NOW DL_LAZY 20660# else 20661# ifdef RTLD_NOW 20662# define LT_DLLAZY_OR_NOW RTLD_NOW 20663# else 20664# ifdef DL_NOW 20665# define LT_DLLAZY_OR_NOW DL_NOW 20666# else 20667# define LT_DLLAZY_OR_NOW 0 20668# endif 20669# endif 20670# endif 20671# endif 20672#endif 20673 20674#ifdef __cplusplus 20675extern "C" void exit (int); 20676#endif 20677 20678void fnord() { int i=42;} 20679int main () 20680{ 20681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20682 int status = $lt_dlunknown; 20683 20684 if (self) 20685 { 20686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20688 /* dlclose (self); */ 20689 } 20690 20691 exit (status); 20692} 20693EOF 20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20695 (eval $ac_link) 2>&5 20696 ac_status=$? 20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20698 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 20699 (./conftest; exit; ) 2>/dev/null 20700 lt_status=$? 20701 case x$lt_status in 20702 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20703 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20704 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 20705 esac 20706 else : 20707 # compilation failed 20708 lt_cv_dlopen_self_static=no 20709 fi 20710fi 20711rm -fr conftest* 20712 20713 20714fi 20715echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 20716echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 20717 fi 20718 20719 CPPFLAGS="$save_CPPFLAGS" 20720 LDFLAGS="$save_LDFLAGS" 20721 LIBS="$save_LIBS" 20722 ;; 20723 esac 20724 20725 case $lt_cv_dlopen_self in 20726 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20727 *) enable_dlopen_self=unknown ;; 20728 esac 20729 20730 case $lt_cv_dlopen_self_static in 20731 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20732 *) enable_dlopen_self_static=unknown ;; 20733 esac 20734fi 20735 20736 20737# The else clause should only fire when bootstrapping the 20738# libtool distribution, otherwise you forgot to ship ltmain.sh 20739# with your package, and you will get complaints that there are 20740# no rules to generate ltmain.sh. 20741if test -f "$ltmain"; then 20742 # See if we are running on zsh, and set the options which allow our commands through 20743 # without removal of \ escapes. 20744 if test -n "${ZSH_VERSION+set}" ; then 20745 setopt NO_GLOB_SUBST 20746 fi 20747 # Now quote all the things that may contain metacharacters while being 20748 # careful not to overquote the AC_SUBSTed values. We take copies of the 20749 # variables and quote the copies for generation of the libtool script. 20750 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 20751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20753 deplibs_check_method reload_flag reload_cmds need_locks \ 20754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20755 lt_cv_sys_global_symbol_to_c_name_address \ 20756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20757 old_postinstall_cmds old_postuninstall_cmds \ 20758 compiler_GCJ \ 20759 CC_GCJ \ 20760 LD_GCJ \ 20761 lt_prog_compiler_wl_GCJ \ 20762 lt_prog_compiler_pic_GCJ \ 20763 lt_prog_compiler_static_GCJ \ 20764 lt_prog_compiler_no_builtin_flag_GCJ \ 20765 export_dynamic_flag_spec_GCJ \ 20766 thread_safe_flag_spec_GCJ \ 20767 whole_archive_flag_spec_GCJ \ 20768 enable_shared_with_static_runtimes_GCJ \ 20769 old_archive_cmds_GCJ \ 20770 old_archive_from_new_cmds_GCJ \ 20771 predep_objects_GCJ \ 20772 postdep_objects_GCJ \ 20773 predeps_GCJ \ 20774 postdeps_GCJ \ 20775 compiler_lib_search_path_GCJ \ 20776 archive_cmds_GCJ \ 20777 archive_expsym_cmds_GCJ \ 20778 postinstall_cmds_GCJ \ 20779 postuninstall_cmds_GCJ \ 20780 old_archive_from_expsyms_cmds_GCJ \ 20781 allow_undefined_flag_GCJ \ 20782 no_undefined_flag_GCJ \ 20783 export_symbols_cmds_GCJ \ 20784 hardcode_libdir_flag_spec_GCJ \ 20785 hardcode_libdir_flag_spec_ld_GCJ \ 20786 hardcode_libdir_separator_GCJ \ 20787 hardcode_automatic_GCJ \ 20788 module_cmds_GCJ \ 20789 module_expsym_cmds_GCJ \ 20790 lt_cv_prog_compiler_c_o_GCJ \ 20791 exclude_expsyms_GCJ \ 20792 include_expsyms_GCJ; do 20793 20794 case $var in 20795 old_archive_cmds_GCJ | \ 20796 old_archive_from_new_cmds_GCJ | \ 20797 archive_cmds_GCJ | \ 20798 archive_expsym_cmds_GCJ | \ 20799 module_cmds_GCJ | \ 20800 module_expsym_cmds_GCJ | \ 20801 old_archive_from_expsyms_cmds_GCJ | \ 20802 export_symbols_cmds_GCJ | \ 20803 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20804 postinstall_cmds | postuninstall_cmds | \ 20805 old_postinstall_cmds | old_postuninstall_cmds | \ 20806 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20807 # Double-quote double-evaled strings. 20808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20809 ;; 20810 *) 20811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20812 ;; 20813 esac 20814 done 20815 20816 case $lt_echo in 20817 *'\$0 --fallback-echo"') 20818 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20819 ;; 20820 esac 20821 20822cfgfile="$ofile" 20823 20824 cat <<__EOF__ >> "$cfgfile" 20825# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20826 20827# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20828 20829# Shell to use when invoking shell scripts. 20830SHELL=$lt_SHELL 20831 20832# Whether or not to build shared libraries. 20833build_libtool_libs=$enable_shared 20834 20835# Whether or not to build static libraries. 20836build_old_libs=$enable_static 20837 20838# Whether or not to add -lc for building shared libraries. 20839build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20840 20841# Whether or not to disallow shared libs when runtime libs are static 20842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20843 20844# Whether or not to optimize for fast installation. 20845fast_install=$enable_fast_install 20846 20847# The host system. 20848host_alias=$host_alias 20849host=$host 20850 20851# An echo program that does not interpret backslashes. 20852echo=$lt_echo 20853 20854# The archiver. 20855AR=$lt_AR 20856AR_FLAGS=$lt_AR_FLAGS 20857 20858# A C compiler. 20859LTCC=$lt_LTCC 20860 20861# A language-specific compiler. 20862CC=$lt_compiler_GCJ 20863 20864# Is the compiler the GNU C compiler? 20865with_gcc=$GCC_GCJ 20866 20867# An ERE matcher. 20868EGREP=$lt_EGREP 20869 20870# The linker used to build libraries. 20871LD=$lt_LD_GCJ 20872 20873# Whether we need hard or soft links. 20874LN_S=$lt_LN_S 20875 20876# A BSD-compatible nm program. 20877NM=$lt_NM 20878 20879# A symbol stripping program 20880STRIP=$STRIP 20881 20882# Used to examine libraries when file_magic_cmd begins "file" 20883MAGIC_CMD=$MAGIC_CMD 20884 20885# Used on cygwin: DLL creation program. 20886DLLTOOL="$DLLTOOL" 20887 20888# Used on cygwin: object dumper. 20889OBJDUMP="$OBJDUMP" 20890 20891# Used on cygwin: assembler. 20892AS="$AS" 20893 20894# The name of the directory that contains temporary libtool files. 20895objdir=$objdir 20896 20897# How to create reloadable object files. 20898reload_flag=$lt_reload_flag 20899reload_cmds=$lt_reload_cmds 20900 20901# How to pass a linker flag through the compiler. 20902wl=$lt_lt_prog_compiler_wl_GCJ 20903 20904# Object file suffix (normally "o"). 20905objext="$ac_objext" 20906 20907# Old archive suffix (normally "a"). 20908libext="$libext" 20909 20910# Shared library suffix (normally ".so"). 20911shrext='$shrext' 20912 20913# Executable file suffix (normally ""). 20914exeext="$exeext" 20915 20916# Additional compiler flags for building library objects. 20917pic_flag=$lt_lt_prog_compiler_pic_GCJ 20918pic_mode=$pic_mode 20919 20920# What is the maximum length of a command? 20921max_cmd_len=$lt_cv_sys_max_cmd_len 20922 20923# Does compiler simultaneously support -c and -o options? 20924compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20925 20926# Must we lock files when doing compilation ? 20927need_locks=$lt_need_locks 20928 20929# Do we need the lib prefix for modules? 20930need_lib_prefix=$need_lib_prefix 20931 20932# Do we need a version for libraries? 20933need_version=$need_version 20934 20935# Whether dlopen is supported. 20936dlopen_support=$enable_dlopen 20937 20938# Whether dlopen of programs is supported. 20939dlopen_self=$enable_dlopen_self 20940 20941# Whether dlopen of statically linked programs is supported. 20942dlopen_self_static=$enable_dlopen_self_static 20943 20944# Compiler flag to prevent dynamic linking. 20945link_static_flag=$lt_lt_prog_compiler_static_GCJ 20946 20947# Compiler flag to turn off builtin functions. 20948no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20949 20950# Compiler flag to allow reflexive dlopens. 20951export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20952 20953# Compiler flag to generate shared objects directly from archives. 20954whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20955 20956# Compiler flag to generate thread-safe objects. 20957thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20958 20959# Library versioning type. 20960version_type=$version_type 20961 20962# Format of library name prefix. 20963libname_spec=$lt_libname_spec 20964 20965# List of archive names. First name is the real one, the rest are links. 20966# The last name is the one that the linker finds with -lNAME. 20967library_names_spec=$lt_library_names_spec 20968 20969# The coded name of the library, if different from the real name. 20970soname_spec=$lt_soname_spec 20971 20972# Commands used to build and install an old-style archive. 20973RANLIB=$lt_RANLIB 20974old_archive_cmds=$lt_old_archive_cmds_GCJ 20975old_postinstall_cmds=$lt_old_postinstall_cmds 20976old_postuninstall_cmds=$lt_old_postuninstall_cmds 20977 20978# Create an old-style archive from a shared archive. 20979old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20980 20981# Create a temporary old-style archive to link instead of a shared archive. 20982old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20983 20984# Commands used to build and install a shared archive. 20985archive_cmds=$lt_archive_cmds_GCJ 20986archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20987postinstall_cmds=$lt_postinstall_cmds 20988postuninstall_cmds=$lt_postuninstall_cmds 20989 20990# Commands used to build a loadable module (assumed same as above if empty) 20991module_cmds=$lt_module_cmds_GCJ 20992module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20993 20994# Commands to strip libraries. 20995old_striplib=$lt_old_striplib 20996striplib=$lt_striplib 20997 20998# Dependencies to place before the objects being linked to create a 20999# shared library. 21000predep_objects=$lt_predep_objects_GCJ 21001 21002# Dependencies to place after the objects being linked to create a 21003# shared library. 21004postdep_objects=$lt_postdep_objects_GCJ 21005 21006# Dependencies to place before the objects being linked to create a 21007# shared library. 21008predeps=$lt_predeps_GCJ 21009 21010# Dependencies to place after the objects being linked to create a 21011# shared library. 21012postdeps=$lt_postdeps_GCJ 21013 21014# The library search path used internally by the compiler when linking 21015# a shared library. 21016compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 21017 21018# Method to check whether dependent libraries are shared objects. 21019deplibs_check_method=$lt_deplibs_check_method 21020 21021# Command to use when deplibs_check_method == file_magic. 21022file_magic_cmd=$lt_file_magic_cmd 21023 21024# Flag that allows shared libraries with undefined symbols to be built. 21025allow_undefined_flag=$lt_allow_undefined_flag_GCJ 21026 21027# Flag that forces no undefined symbols. 21028no_undefined_flag=$lt_no_undefined_flag_GCJ 21029 21030# Commands used to finish a libtool library installation in a directory. 21031finish_cmds=$lt_finish_cmds 21032 21033# Same as above, but a single script fragment to be evaled but not shown. 21034finish_eval=$lt_finish_eval 21035 21036# Take the output of nm and produce a listing of raw symbols and C names. 21037global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21038 21039# Transform the output of nm in a proper C declaration 21040global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21041 21042# Transform the output of nm in a C name address pair 21043global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21044 21045# This is the shared library runtime path variable. 21046runpath_var=$runpath_var 21047 21048# This is the shared library path variable. 21049shlibpath_var=$shlibpath_var 21050 21051# Is shlibpath searched before the hard-coded library search path? 21052shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21053 21054# How to hardcode a shared library path into an executable. 21055hardcode_action=$hardcode_action_GCJ 21056 21057# Whether we should hardcode library paths into libraries. 21058hardcode_into_libs=$hardcode_into_libs 21059 21060# Flag to hardcode \$libdir into a binary during linking. 21061# This must work even if \$libdir does not exist. 21062hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 21063 21064# If ld is used when linking, flag to hardcode \$libdir into 21065# a binary during linking. This must work even if \$libdir does 21066# not exist. 21067hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 21068 21069# Whether we need a single -rpath flag with a separated argument. 21070hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 21071 21072# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21073# resulting binary. 21074hardcode_direct=$hardcode_direct_GCJ 21075 21076# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21077# resulting binary. 21078hardcode_minus_L=$hardcode_minus_L_GCJ 21079 21080# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21081# the resulting binary. 21082hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 21083 21084# Set to yes if building a shared library automatically hardcodes DIR into the library 21085# and all subsequent libraries and executables linked against it. 21086hardcode_automatic=$hardcode_automatic_GCJ 21087 21088# Variables whose values should be saved in libtool wrapper scripts and 21089# restored at relink time. 21090variables_saved_for_relink="$variables_saved_for_relink" 21091 21092# Whether libtool must link a program against all its dependency libraries. 21093link_all_deplibs=$link_all_deplibs_GCJ 21094 21095# Compile-time system search path for libraries 21096sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21097 21098# Run-time system search path for libraries 21099sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21100 21101# Fix the shell variable \$srcfile for the compiler. 21102fix_srcfile_path="$fix_srcfile_path_GCJ" 21103 21104# Set to yes if exported symbols are required. 21105always_export_symbols=$always_export_symbols_GCJ 21106 21107# The commands to list exported symbols. 21108export_symbols_cmds=$lt_export_symbols_cmds_GCJ 21109 21110# The commands to extract the exported symbol list from a shared archive. 21111extract_expsyms_cmds=$lt_extract_expsyms_cmds 21112 21113# Symbols that should not be listed in the preloaded symbols. 21114exclude_expsyms=$lt_exclude_expsyms_GCJ 21115 21116# Symbols that must always be exported. 21117include_expsyms=$lt_include_expsyms_GCJ 21118 21119# ### END LIBTOOL TAG CONFIG: $tagname 21120 21121__EOF__ 21122 21123 21124else 21125 # If there is no Makefile yet, we rely on a make rule to execute 21126 # `config.status --recheck' to rerun these tests and create the 21127 # libtool script then. 21128 test -f Makefile && make "$ltmain" 21129fi 21130 21131 21132ac_ext=c 21133ac_cpp='$CPP $CPPFLAGS' 21134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21136ac_compiler_gnu=$ac_cv_c_compiler_gnu 21137 21138CC="$lt_save_CC" 21139 21140 else 21141 tagname="" 21142 fi 21143 ;; 21144 21145 RC) 21146 21147 21148 21149# Source file extension for RC test sources. 21150ac_ext=rc 21151 21152# Object file extension for compiled RC test sources. 21153objext=o 21154objext_RC=$objext 21155 21156# Code to be used in simple compile tests 21157lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 21158 21159# Code to be used in simple link tests 21160lt_simple_link_test_code="$lt_simple_compile_test_code" 21161 21162# ltmain only uses $CC for tagged configurations so make sure $CC is set. 21163 21164# If no C compiler was specified, use CC. 21165LTCC=${LTCC-"$CC"} 21166 21167# Allow CC to be a program name with arguments. 21168compiler=$CC 21169 21170 21171# Allow CC to be a program name with arguments. 21172lt_save_CC="$CC" 21173CC=${RC-"windres"} 21174compiler=$CC 21175compiler_RC=$CC 21176lt_cv_prog_compiler_c_o_RC=yes 21177 21178# The else clause should only fire when bootstrapping the 21179# libtool distribution, otherwise you forgot to ship ltmain.sh 21180# with your package, and you will get complaints that there are 21181# no rules to generate ltmain.sh. 21182if test -f "$ltmain"; then 21183 # See if we are running on zsh, and set the options which allow our commands through 21184 # without removal of \ escapes. 21185 if test -n "${ZSH_VERSION+set}" ; then 21186 setopt NO_GLOB_SUBST 21187 fi 21188 # Now quote all the things that may contain metacharacters while being 21189 # careful not to overquote the AC_SUBSTed values. We take copies of the 21190 # variables and quote the copies for generation of the libtool script. 21191 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 21192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 21193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 21194 deplibs_check_method reload_flag reload_cmds need_locks \ 21195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 21196 lt_cv_sys_global_symbol_to_c_name_address \ 21197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 21198 old_postinstall_cmds old_postuninstall_cmds \ 21199 compiler_RC \ 21200 CC_RC \ 21201 LD_RC \ 21202 lt_prog_compiler_wl_RC \ 21203 lt_prog_compiler_pic_RC \ 21204 lt_prog_compiler_static_RC \ 21205 lt_prog_compiler_no_builtin_flag_RC \ 21206 export_dynamic_flag_spec_RC \ 21207 thread_safe_flag_spec_RC \ 21208 whole_archive_flag_spec_RC \ 21209 enable_shared_with_static_runtimes_RC \ 21210 old_archive_cmds_RC \ 21211 old_archive_from_new_cmds_RC \ 21212 predep_objects_RC \ 21213 postdep_objects_RC \ 21214 predeps_RC \ 21215 postdeps_RC \ 21216 compiler_lib_search_path_RC \ 21217 archive_cmds_RC \ 21218 archive_expsym_cmds_RC \ 21219 postinstall_cmds_RC \ 21220 postuninstall_cmds_RC \ 21221 old_archive_from_expsyms_cmds_RC \ 21222 allow_undefined_flag_RC \ 21223 no_undefined_flag_RC \ 21224 export_symbols_cmds_RC \ 21225 hardcode_libdir_flag_spec_RC \ 21226 hardcode_libdir_flag_spec_ld_RC \ 21227 hardcode_libdir_separator_RC \ 21228 hardcode_automatic_RC \ 21229 module_cmds_RC \ 21230 module_expsym_cmds_RC \ 21231 lt_cv_prog_compiler_c_o_RC \ 21232 exclude_expsyms_RC \ 21233 include_expsyms_RC; do 21234 21235 case $var in 21236 old_archive_cmds_RC | \ 21237 old_archive_from_new_cmds_RC | \ 21238 archive_cmds_RC | \ 21239 archive_expsym_cmds_RC | \ 21240 module_cmds_RC | \ 21241 module_expsym_cmds_RC | \ 21242 old_archive_from_expsyms_cmds_RC | \ 21243 export_symbols_cmds_RC | \ 21244 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 21245 postinstall_cmds | postuninstall_cmds | \ 21246 old_postinstall_cmds | old_postuninstall_cmds | \ 21247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 21248 # Double-quote double-evaled strings. 21249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 21250 ;; 21251 *) 21252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 21253 ;; 21254 esac 21255 done 21256 21257 case $lt_echo in 21258 *'\$0 --fallback-echo"') 21259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 21260 ;; 21261 esac 21262 21263cfgfile="$ofile" 21264 21265 cat <<__EOF__ >> "$cfgfile" 21266# ### BEGIN LIBTOOL TAG CONFIG: $tagname 21267 21268# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21269 21270# Shell to use when invoking shell scripts. 21271SHELL=$lt_SHELL 21272 21273# Whether or not to build shared libraries. 21274build_libtool_libs=$enable_shared 21275 21276# Whether or not to build static libraries. 21277build_old_libs=$enable_static 21278 21279# Whether or not to add -lc for building shared libraries. 21280build_libtool_need_lc=$archive_cmds_need_lc_RC 21281 21282# Whether or not to disallow shared libs when runtime libs are static 21283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 21284 21285# Whether or not to optimize for fast installation. 21286fast_install=$enable_fast_install 21287 21288# The host system. 21289host_alias=$host_alias 21290host=$host 21291 21292# An echo program that does not interpret backslashes. 21293echo=$lt_echo 21294 21295# The archiver. 21296AR=$lt_AR 21297AR_FLAGS=$lt_AR_FLAGS 21298 21299# A C compiler. 21300LTCC=$lt_LTCC 21301 21302# A language-specific compiler. 21303CC=$lt_compiler_RC 21304 21305# Is the compiler the GNU C compiler? 21306with_gcc=$GCC_RC 21307 21308# An ERE matcher. 21309EGREP=$lt_EGREP 21310 21311# The linker used to build libraries. 21312LD=$lt_LD_RC 21313 21314# Whether we need hard or soft links. 21315LN_S=$lt_LN_S 21316 21317# A BSD-compatible nm program. 21318NM=$lt_NM 21319 21320# A symbol stripping program 21321STRIP=$STRIP 21322 21323# Used to examine libraries when file_magic_cmd begins "file" 21324MAGIC_CMD=$MAGIC_CMD 21325 21326# Used on cygwin: DLL creation program. 21327DLLTOOL="$DLLTOOL" 21328 21329# Used on cygwin: object dumper. 21330OBJDUMP="$OBJDUMP" 21331 21332# Used on cygwin: assembler. 21333AS="$AS" 21334 21335# The name of the directory that contains temporary libtool files. 21336objdir=$objdir 21337 21338# How to create reloadable object files. 21339reload_flag=$lt_reload_flag 21340reload_cmds=$lt_reload_cmds 21341 21342# How to pass a linker flag through the compiler. 21343wl=$lt_lt_prog_compiler_wl_RC 21344 21345# Object file suffix (normally "o"). 21346objext="$ac_objext" 21347 21348# Old archive suffix (normally "a"). 21349libext="$libext" 21350 21351# Shared library suffix (normally ".so"). 21352shrext='$shrext' 21353 21354# Executable file suffix (normally ""). 21355exeext="$exeext" 21356 21357# Additional compiler flags for building library objects. 21358pic_flag=$lt_lt_prog_compiler_pic_RC 21359pic_mode=$pic_mode 21360 21361# What is the maximum length of a command? 21362max_cmd_len=$lt_cv_sys_max_cmd_len 21363 21364# Does compiler simultaneously support -c and -o options? 21365compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 21366 21367# Must we lock files when doing compilation ? 21368need_locks=$lt_need_locks 21369 21370# Do we need the lib prefix for modules? 21371need_lib_prefix=$need_lib_prefix 21372 21373# Do we need a version for libraries? 21374need_version=$need_version 21375 21376# Whether dlopen is supported. 21377dlopen_support=$enable_dlopen 21378 21379# Whether dlopen of programs is supported. 21380dlopen_self=$enable_dlopen_self 21381 21382# Whether dlopen of statically linked programs is supported. 21383dlopen_self_static=$enable_dlopen_self_static 21384 21385# Compiler flag to prevent dynamic linking. 21386link_static_flag=$lt_lt_prog_compiler_static_RC 21387 21388# Compiler flag to turn off builtin functions. 21389no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 21390 21391# Compiler flag to allow reflexive dlopens. 21392export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 21393 21394# Compiler flag to generate shared objects directly from archives. 21395whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 21396 21397# Compiler flag to generate thread-safe objects. 21398thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 21399 21400# Library versioning type. 21401version_type=$version_type 21402 21403# Format of library name prefix. 21404libname_spec=$lt_libname_spec 21405 21406# List of archive names. First name is the real one, the rest are links. 21407# The last name is the one that the linker finds with -lNAME. 21408library_names_spec=$lt_library_names_spec 21409 21410# The coded name of the library, if different from the real name. 21411soname_spec=$lt_soname_spec 21412 21413# Commands used to build and install an old-style archive. 21414RANLIB=$lt_RANLIB 21415old_archive_cmds=$lt_old_archive_cmds_RC 21416old_postinstall_cmds=$lt_old_postinstall_cmds 21417old_postuninstall_cmds=$lt_old_postuninstall_cmds 21418 21419# Create an old-style archive from a shared archive. 21420old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 21421 21422# Create a temporary old-style archive to link instead of a shared archive. 21423old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 21424 21425# Commands used to build and install a shared archive. 21426archive_cmds=$lt_archive_cmds_RC 21427archive_expsym_cmds=$lt_archive_expsym_cmds_RC 21428postinstall_cmds=$lt_postinstall_cmds 21429postuninstall_cmds=$lt_postuninstall_cmds 21430 21431# Commands used to build a loadable module (assumed same as above if empty) 21432module_cmds=$lt_module_cmds_RC 21433module_expsym_cmds=$lt_module_expsym_cmds_RC 21434 21435# Commands to strip libraries. 21436old_striplib=$lt_old_striplib 21437striplib=$lt_striplib 21438 21439# Dependencies to place before the objects being linked to create a 21440# shared library. 21441predep_objects=$lt_predep_objects_RC 21442 21443# Dependencies to place after the objects being linked to create a 21444# shared library. 21445postdep_objects=$lt_postdep_objects_RC 21446 21447# Dependencies to place before the objects being linked to create a 21448# shared library. 21449predeps=$lt_predeps_RC 21450 21451# Dependencies to place after the objects being linked to create a 21452# shared library. 21453postdeps=$lt_postdeps_RC 21454 21455# The library search path used internally by the compiler when linking 21456# a shared library. 21457compiler_lib_search_path=$lt_compiler_lib_search_path_RC 21458 21459# Method to check whether dependent libraries are shared objects. 21460deplibs_check_method=$lt_deplibs_check_method 21461 21462# Command to use when deplibs_check_method == file_magic. 21463file_magic_cmd=$lt_file_magic_cmd 21464 21465# Flag that allows shared libraries with undefined symbols to be built. 21466allow_undefined_flag=$lt_allow_undefined_flag_RC 21467 21468# Flag that forces no undefined symbols. 21469no_undefined_flag=$lt_no_undefined_flag_RC 21470 21471# Commands used to finish a libtool library installation in a directory. 21472finish_cmds=$lt_finish_cmds 21473 21474# Same as above, but a single script fragment to be evaled but not shown. 21475finish_eval=$lt_finish_eval 21476 21477# Take the output of nm and produce a listing of raw symbols and C names. 21478global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21479 21480# Transform the output of nm in a proper C declaration 21481global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21482 21483# Transform the output of nm in a C name address pair 21484global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21485 21486# This is the shared library runtime path variable. 21487runpath_var=$runpath_var 21488 21489# This is the shared library path variable. 21490shlibpath_var=$shlibpath_var 21491 21492# Is shlibpath searched before the hard-coded library search path? 21493shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21494 21495# How to hardcode a shared library path into an executable. 21496hardcode_action=$hardcode_action_RC 21497 21498# Whether we should hardcode library paths into libraries. 21499hardcode_into_libs=$hardcode_into_libs 21500 21501# Flag to hardcode \$libdir into a binary during linking. 21502# This must work even if \$libdir does not exist. 21503hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 21504 21505# If ld is used when linking, flag to hardcode \$libdir into 21506# a binary during linking. This must work even if \$libdir does 21507# not exist. 21508hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 21509 21510# Whether we need a single -rpath flag with a separated argument. 21511hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 21512 21513# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21514# resulting binary. 21515hardcode_direct=$hardcode_direct_RC 21516 21517# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21518# resulting binary. 21519hardcode_minus_L=$hardcode_minus_L_RC 21520 21521# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21522# the resulting binary. 21523hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 21524 21525# Set to yes if building a shared library automatically hardcodes DIR into the library 21526# and all subsequent libraries and executables linked against it. 21527hardcode_automatic=$hardcode_automatic_RC 21528 21529# Variables whose values should be saved in libtool wrapper scripts and 21530# restored at relink time. 21531variables_saved_for_relink="$variables_saved_for_relink" 21532 21533# Whether libtool must link a program against all its dependency libraries. 21534link_all_deplibs=$link_all_deplibs_RC 21535 21536# Compile-time system search path for libraries 21537sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21538 21539# Run-time system search path for libraries 21540sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21541 21542# Fix the shell variable \$srcfile for the compiler. 21543fix_srcfile_path="$fix_srcfile_path_RC" 21544 21545# Set to yes if exported symbols are required. 21546always_export_symbols=$always_export_symbols_RC 21547 21548# The commands to list exported symbols. 21549export_symbols_cmds=$lt_export_symbols_cmds_RC 21550 21551# The commands to extract the exported symbol list from a shared archive. 21552extract_expsyms_cmds=$lt_extract_expsyms_cmds 21553 21554# Symbols that should not be listed in the preloaded symbols. 21555exclude_expsyms=$lt_exclude_expsyms_RC 21556 21557# Symbols that must always be exported. 21558include_expsyms=$lt_include_expsyms_RC 21559 21560# ### END LIBTOOL TAG CONFIG: $tagname 21561 21562__EOF__ 21563 21564 21565else 21566 # If there is no Makefile yet, we rely on a make rule to execute 21567 # `config.status --recheck' to rerun these tests and create the 21568 # libtool script then. 21569 test -f Makefile && make "$ltmain" 21570fi 21571 21572 21573ac_ext=c 21574ac_cpp='$CPP $CPPFLAGS' 21575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21577ac_compiler_gnu=$ac_cv_c_compiler_gnu 21578 21579CC="$lt_save_CC" 21580 21581 ;; 21582 21583 *) 21584 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 21585echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 21586 { (exit 1); exit 1; }; } 21587 ;; 21588 esac 21589 21590 # Append the new tag name to the list of available tags. 21591 if test -n "$tagname" ; then 21592 available_tags="$available_tags $tagname" 21593 fi 21594 fi 21595 done 21596 IFS="$lt_save_ifs" 21597 21598 # Now substitute the updated list of available tags. 21599 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 21600 mv "${ofile}T" "$ofile" 21601 chmod +x "$ofile" 21602 else 21603 rm -f "${ofile}T" 21604 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 21605echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 21606 { (exit 1); exit 1; }; } 21607 fi 21608fi 21609 21610 21611 21612# This can be used to rebuild libtool when needed 21613LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 21614 21615# Always use our own libtool. 21616LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' 21617 21618# Prevent multiple expansion 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653LIBTOOL_SHELL="/bin/sh ./libtool" 21654# LIBTOOL="$LIBTOOL --silent" 21655KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)" 21656 21657 21658# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs. 21659KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)" 21660 21661 21662# we patch configure quite some so we better keep that consistent for incremental runs 21663AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure' 21664 21665 21666 21667 21668 21669all_libraries="$all_libraries $USER_LDFLAGS" 21670all_includes="$all_includes $USER_INCLUDES" 21671 21672 21673 21674 21675 21676 21677for ac_header in getopt.h 21678do 21679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21680if eval "test \"\${$as_ac_Header+set}\" = set"; then 21681 echo "$as_me:$LINENO: checking for $ac_header" >&5 21682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21683if eval "test \"\${$as_ac_Header+set}\" = set"; then 21684 echo $ECHO_N "(cached) $ECHO_C" >&6 21685fi 21686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21688else 21689 # Is the header compilable? 21690echo "$as_me:$LINENO: checking $ac_header usability" >&5 21691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 21692cat >conftest.$ac_ext <<_ACEOF 21693/* confdefs.h. */ 21694_ACEOF 21695cat confdefs.h >>conftest.$ac_ext 21696cat >>conftest.$ac_ext <<_ACEOF 21697/* end confdefs.h. */ 21698$ac_includes_default 21699@%:@include <$ac_header> 21700_ACEOF 21701rm -f conftest.$ac_objext 21702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21703 (eval $ac_compile) 2>conftest.er1 21704 ac_status=$? 21705 grep -v '^ *+' conftest.er1 >conftest.err 21706 rm -f conftest.er1 21707 cat conftest.err >&5 21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21709 (exit $ac_status); } && 21710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21712 (eval $ac_try) 2>&5 21713 ac_status=$? 21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21715 (exit $ac_status); }; } && 21716 { ac_try='test -s conftest.$ac_objext' 21717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21718 (eval $ac_try) 2>&5 21719 ac_status=$? 21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21721 (exit $ac_status); }; }; then 21722 ac_header_compiler=yes 21723else 21724 echo "$as_me: failed program was:" >&5 21725sed 's/^/| /' conftest.$ac_ext >&5 21726 21727ac_header_compiler=no 21728fi 21729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21731echo "${ECHO_T}$ac_header_compiler" >&6 21732 21733# Is the header present? 21734echo "$as_me:$LINENO: checking $ac_header presence" >&5 21735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 21736cat >conftest.$ac_ext <<_ACEOF 21737/* confdefs.h. */ 21738_ACEOF 21739cat confdefs.h >>conftest.$ac_ext 21740cat >>conftest.$ac_ext <<_ACEOF 21741/* end confdefs.h. */ 21742@%:@include <$ac_header> 21743_ACEOF 21744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21746 ac_status=$? 21747 grep -v '^ *+' conftest.er1 >conftest.err 21748 rm -f conftest.er1 21749 cat conftest.err >&5 21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21751 (exit $ac_status); } >/dev/null; then 21752 if test -s conftest.err; then 21753 ac_cpp_err=$ac_c_preproc_warn_flag 21754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21755 else 21756 ac_cpp_err= 21757 fi 21758else 21759 ac_cpp_err=yes 21760fi 21761if test -z "$ac_cpp_err"; then 21762 ac_header_preproc=yes 21763else 21764 echo "$as_me: failed program was:" >&5 21765sed 's/^/| /' conftest.$ac_ext >&5 21766 21767 ac_header_preproc=no 21768fi 21769rm -f conftest.err conftest.$ac_ext 21770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21771echo "${ECHO_T}$ac_header_preproc" >&6 21772 21773# So? What about this header? 21774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21775 yes:no: ) 21776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21780 ac_header_preproc=yes 21781 ;; 21782 no:yes:* ) 21783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21790echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21795 ( 21796 cat <<\_ASBOX 21797@%:@@%:@ ------------------------------------------ @%:@@%:@ 21798@%:@@%:@ Report this to the AC_PACKAGE_NAME lists. @%:@@%:@ 21799@%:@@%:@ ------------------------------------------ @%:@@%:@ 21800_ASBOX 21801 ) | 21802 sed "s/^/$as_me: WARNING: /" >&2 21803 ;; 21804esac 21805echo "$as_me:$LINENO: checking for $ac_header" >&5 21806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 21807if eval "test \"\${$as_ac_Header+set}\" = set"; then 21808 echo $ECHO_N "(cached) $ECHO_C" >&6 21809else 21810 eval "$as_ac_Header=\$ac_header_preproc" 21811fi 21812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 21813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 21814 21815fi 21816if test `eval echo '${'$as_ac_Header'}'` = yes; then 21817 cat >>confdefs.h <<_ACEOF 21818@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21819_ACEOF 21820 21821fi 21822 21823done 21824 21825 21826case $host in 21827 i*86* | x86_64* | arm* | alpha* ) 21828 send_to_keyboard=true ;; 21829 hppa* | ia64* | m68* | mips* | ppc* | s390* | sparc* ) 21830 send_to_keyboard=false ;; 21831 * ) 21832 send_to_keyboard=false ;; 21833esac 21834 21835 21836if test x$send_to_keyboard = xtrue; then 21837 SEND_TO_KEYBOARD_TRUE= 21838 SEND_TO_KEYBOARD_FALSE='#' 21839else 21840 SEND_TO_KEYBOARD_TRUE='#' 21841 SEND_TO_KEYBOARD_FALSE= 21842fi 21843 21844 21845 21846if test "x$ac_path_x_has_been_run" != xyes; then 21847 echo "$as_me:$LINENO: checking for X" >&5 21848echo $ECHO_N "checking for X... $ECHO_C" >&6 21849 21850ac_path_x_has_been_run=yes 21851 21852# Check whether --with-x or --without-x was given. 21853if test "${with_x+set}" = set; then 21854 withval="$with_x" 21855 21856fi; 21857# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 21858if test "x$with_x" = xno; then 21859 # The user explicitly disabled X. 21860 have_x=disabled 21861else 21862 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 21863 # Both variables are already set. 21864 have_x=yes 21865 else 21866 if test "${ac_cv_have_x+set}" = set; then 21867 echo $ECHO_N "(cached) $ECHO_C" >&6 21868else 21869 # One or both of the vars are not set, and there is no cached value. 21870ac_x_includes=no ac_x_libraries=no 21871rm -fr conftest.dir 21872if mkdir conftest.dir; then 21873 cd conftest.dir 21874 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 21875 cat >Imakefile <<'_ACEOF' 21876acfindx: 21877 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 21878_ACEOF 21879 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 21880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 21881 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 21882 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 21883 for ac_extension in a so sl; do 21884 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 21885 test -f $ac_im_libdir/libX11.$ac_extension; then 21886 ac_im_usrlibdir=$ac_im_libdir; break 21887 fi 21888 done 21889 # Screen out bogus values from the imake configuration. They are 21890 # bogus both because they are the default anyway, and because 21891 # using them would break gcc on systems where it needs fixed includes. 21892 case $ac_im_incroot in 21893 /usr/include) ;; 21894 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 21895 esac 21896 case $ac_im_usrlibdir in 21897 /usr/lib | /lib) ;; 21898 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 21899 esac 21900 fi 21901 cd .. 21902 rm -fr conftest.dir 21903fi 21904 21905# Standard set of common directories for X headers. 21906# Check X11 before X11Rn because it is often a symlink to the current release. 21907ac_x_header_dirs=' 21908/usr/X11/include 21909/usr/X11R6/include 21910/usr/X11R5/include 21911/usr/X11R4/include 21912 21913/usr/include/X11 21914/usr/include/X11R6 21915/usr/include/X11R5 21916/usr/include/X11R4 21917 21918/usr/local/X11/include 21919/usr/local/X11R6/include 21920/usr/local/X11R5/include 21921/usr/local/X11R4/include 21922 21923/usr/local/include/X11 21924/usr/local/include/X11R6 21925/usr/local/include/X11R5 21926/usr/local/include/X11R4 21927 21928/usr/X386/include 21929/usr/x386/include 21930/usr/XFree86/include/X11 21931 21932/usr/include 21933/usr/local/include 21934/usr/unsupported/include 21935/usr/athena/include 21936/usr/local/x11r5/include 21937/usr/lpp/Xamples/include 21938 21939/usr/openwin/include 21940/usr/openwin/share/include' 21941 21942if test "$ac_x_includes" = no; then 21943 # Guess where to find include files, by looking for a specified header file. 21944 # First, try using that file with no special directory specified. 21945 cat >conftest.$ac_ext <<_ACEOF 21946/* confdefs.h. */ 21947_ACEOF 21948cat confdefs.h >>conftest.$ac_ext 21949cat >>conftest.$ac_ext <<_ACEOF 21950/* end confdefs.h. */ 21951@%:@include <X11/Xlib.h> 21952_ACEOF 21953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 21954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 21955 ac_status=$? 21956 grep -v '^ *+' conftest.er1 >conftest.err 21957 rm -f conftest.er1 21958 cat conftest.err >&5 21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21960 (exit $ac_status); } >/dev/null; then 21961 if test -s conftest.err; then 21962 ac_cpp_err=$ac_c_preproc_warn_flag 21963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21964 else 21965 ac_cpp_err= 21966 fi 21967else 21968 ac_cpp_err=yes 21969fi 21970if test -z "$ac_cpp_err"; then 21971 # We can compile using X headers with no special include directory. 21972ac_x_includes= 21973else 21974 echo "$as_me: failed program was:" >&5 21975sed 's/^/| /' conftest.$ac_ext >&5 21976 21977 for ac_dir in $ac_x_header_dirs; do 21978 if test -r "$ac_dir/X11/Xlib.h"; then 21979 ac_x_includes=$ac_dir 21980 break 21981 fi 21982done 21983fi 21984rm -f conftest.err conftest.$ac_ext 21985fi # $ac_x_includes = no 21986 21987if test "$ac_x_libraries" = no; then 21988 # Check for the libraries. 21989 # See if we find them without any special options. 21990 # Don't add to $LIBS permanently. 21991 ac_save_LIBS=$LIBS 21992 LIBS="-lX11 $LIBS" 21993 cat >conftest.$ac_ext <<_ACEOF 21994/* confdefs.h. */ 21995_ACEOF 21996cat confdefs.h >>conftest.$ac_ext 21997cat >>conftest.$ac_ext <<_ACEOF 21998/* end confdefs.h. */ 21999@%:@include <X11/Xlib.h> 22000int 22001main () 22002{ 22003XrmInitialize () 22004 ; 22005 return 0; 22006} 22007_ACEOF 22008rm -f conftest.$ac_objext conftest$ac_exeext 22009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22010 (eval $ac_link) 2>conftest.er1 22011 ac_status=$? 22012 grep -v '^ *+' conftest.er1 >conftest.err 22013 rm -f conftest.er1 22014 cat conftest.err >&5 22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22016 (exit $ac_status); } && 22017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22019 (eval $ac_try) 2>&5 22020 ac_status=$? 22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22022 (exit $ac_status); }; } && 22023 { ac_try='test -s conftest$ac_exeext' 22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22025 (eval $ac_try) 2>&5 22026 ac_status=$? 22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22028 (exit $ac_status); }; }; then 22029 LIBS=$ac_save_LIBS 22030# We can link X programs with no special library path. 22031ac_x_libraries= 22032else 22033 echo "$as_me: failed program was:" >&5 22034sed 's/^/| /' conftest.$ac_ext >&5 22035 22036LIBS=$ac_save_LIBS 22037for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 22038do 22039 # Don't even attempt the hair of trying to link an X program! 22040 for ac_extension in a so sl; do 22041 if test -r $ac_dir/libX11.$ac_extension; then 22042 ac_x_libraries=$ac_dir 22043 break 2 22044 fi 22045 done 22046done 22047fi 22048rm -f conftest.err conftest.$ac_objext \ 22049 conftest$ac_exeext conftest.$ac_ext 22050fi # $ac_x_libraries = no 22051 22052if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 22053 # Didn't find X anywhere. Cache the known absence of X. 22054 ac_cv_have_x="have_x=no" 22055else 22056 # Record where we found X for the cache. 22057 ac_cv_have_x="have_x=yes \ 22058 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 22059fi 22060fi 22061 22062 fi 22063 eval "$ac_cv_have_x" 22064fi # $with_x != no 22065 22066if test "$have_x" != yes; then 22067 echo "$as_me:$LINENO: result: $have_x" >&5 22068echo "${ECHO_T}$have_x" >&6 22069 no_x=yes 22070else 22071 # If each of the values was on the command line, it overrides each guess. 22072 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 22073 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 22074 # Update the cache value to reflect the command line values. 22075 ac_cv_have_x="have_x=yes \ 22076 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 22077 # It might be that x_includes is empty (headers are found in the 22078 # standard search path. Then output the corresponding message 22079 ac_out_x_includes=$x_includes 22080 test "x$x_includes" = x && ac_out_x_includes="in standard search path" 22081 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 22082echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 22083fi 22084 22085fi 22086if test "$no_x" = yes; then 22087 # Not all programs may use this symbol, but it does not hurt to define it. 22088 22089cat >>confdefs.h <<\_ACEOF 22090@%:@define X_DISPLAY_MISSING 1 22091_ACEOF 22092 22093 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 22094else 22095 if test -n "$x_includes"; then 22096 X_CFLAGS="$X_CFLAGS -I$x_includes" 22097 fi 22098 22099 # It would also be nice to do this for all -L options, not just this one. 22100 if test -n "$x_libraries"; then 22101 X_LIBS="$X_LIBS -L$x_libraries" 22102 # For Solaris; some versions of Sun CC require a space after -R and 22103 # others require no space. Words are not sufficient . . . . 22104 case `(uname -sr) 2>/dev/null` in 22105 "SunOS 5"*) 22106 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 22107echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 22108 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 22109 cat >conftest.$ac_ext <<_ACEOF 22110/* confdefs.h. */ 22111_ACEOF 22112cat confdefs.h >>conftest.$ac_ext 22113cat >>conftest.$ac_ext <<_ACEOF 22114/* end confdefs.h. */ 22115 22116int 22117main () 22118{ 22119 22120 ; 22121 return 0; 22122} 22123_ACEOF 22124rm -f conftest.$ac_objext conftest$ac_exeext 22125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22126 (eval $ac_link) 2>conftest.er1 22127 ac_status=$? 22128 grep -v '^ *+' conftest.er1 >conftest.err 22129 rm -f conftest.er1 22130 cat conftest.err >&5 22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22132 (exit $ac_status); } && 22133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22135 (eval $ac_try) 2>&5 22136 ac_status=$? 22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22138 (exit $ac_status); }; } && 22139 { ac_try='test -s conftest$ac_exeext' 22140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22141 (eval $ac_try) 2>&5 22142 ac_status=$? 22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22144 (exit $ac_status); }; }; then 22145 ac_R_nospace=yes 22146else 22147 echo "$as_me: failed program was:" >&5 22148sed 's/^/| /' conftest.$ac_ext >&5 22149 22150ac_R_nospace=no 22151fi 22152rm -f conftest.err conftest.$ac_objext \ 22153 conftest$ac_exeext conftest.$ac_ext 22154 if test $ac_R_nospace = yes; then 22155 echo "$as_me:$LINENO: result: no" >&5 22156echo "${ECHO_T}no" >&6 22157 X_LIBS="$X_LIBS -R$x_libraries" 22158 else 22159 LIBS="$ac_xsave_LIBS -R $x_libraries" 22160 cat >conftest.$ac_ext <<_ACEOF 22161/* confdefs.h. */ 22162_ACEOF 22163cat confdefs.h >>conftest.$ac_ext 22164cat >>conftest.$ac_ext <<_ACEOF 22165/* end confdefs.h. */ 22166 22167int 22168main () 22169{ 22170 22171 ; 22172 return 0; 22173} 22174_ACEOF 22175rm -f conftest.$ac_objext conftest$ac_exeext 22176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22177 (eval $ac_link) 2>conftest.er1 22178 ac_status=$? 22179 grep -v '^ *+' conftest.er1 >conftest.err 22180 rm -f conftest.er1 22181 cat conftest.err >&5 22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22183 (exit $ac_status); } && 22184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22186 (eval $ac_try) 2>&5 22187 ac_status=$? 22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22189 (exit $ac_status); }; } && 22190 { ac_try='test -s conftest$ac_exeext' 22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22192 (eval $ac_try) 2>&5 22193 ac_status=$? 22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22195 (exit $ac_status); }; }; then 22196 ac_R_space=yes 22197else 22198 echo "$as_me: failed program was:" >&5 22199sed 's/^/| /' conftest.$ac_ext >&5 22200 22201ac_R_space=no 22202fi 22203rm -f conftest.err conftest.$ac_objext \ 22204 conftest$ac_exeext conftest.$ac_ext 22205 if test $ac_R_space = yes; then 22206 echo "$as_me:$LINENO: result: yes" >&5 22207echo "${ECHO_T}yes" >&6 22208 X_LIBS="$X_LIBS -R $x_libraries" 22209 else 22210 echo "$as_me:$LINENO: result: neither works" >&5 22211echo "${ECHO_T}neither works" >&6 22212 fi 22213 fi 22214 LIBS=$ac_xsave_LIBS 22215 esac 22216 fi 22217 22218 # Check for system-dependent libraries X programs must link with. 22219 # Do this before checking for the system-independent R6 libraries 22220 # (-lICE), since we may need -lsocket or whatever for X linking. 22221 22222 if test "$ISC" = yes; then 22223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 22224 else 22225 # Martyn Johnson says this is needed for Ultrix, if the X 22226 # libraries were built with DECnet support. And Karl Berry says 22227 # the Alpha needs dnet_stub (dnet does not exist). 22228 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 22229 cat >conftest.$ac_ext <<_ACEOF 22230/* confdefs.h. */ 22231_ACEOF 22232cat confdefs.h >>conftest.$ac_ext 22233cat >>conftest.$ac_ext <<_ACEOF 22234/* end confdefs.h. */ 22235 22236/* Override any gcc2 internal prototype to avoid an error. */ 22237#ifdef __cplusplus 22238extern "C" 22239#endif 22240/* We use char because int might match the return type of a gcc2 22241 builtin and then its argument prototype would still apply. */ 22242char XOpenDisplay (); 22243int 22244main () 22245{ 22246XOpenDisplay (); 22247 ; 22248 return 0; 22249} 22250_ACEOF 22251rm -f conftest.$ac_objext conftest$ac_exeext 22252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22253 (eval $ac_link) 2>conftest.er1 22254 ac_status=$? 22255 grep -v '^ *+' conftest.er1 >conftest.err 22256 rm -f conftest.er1 22257 cat conftest.err >&5 22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22259 (exit $ac_status); } && 22260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22262 (eval $ac_try) 2>&5 22263 ac_status=$? 22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22265 (exit $ac_status); }; } && 22266 { ac_try='test -s conftest$ac_exeext' 22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22268 (eval $ac_try) 2>&5 22269 ac_status=$? 22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22271 (exit $ac_status); }; }; then 22272 : 22273else 22274 echo "$as_me: failed program was:" >&5 22275sed 's/^/| /' conftest.$ac_ext >&5 22276 22277echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 22278echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 22279if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 22280 echo $ECHO_N "(cached) $ECHO_C" >&6 22281else 22282 ac_check_lib_save_LIBS=$LIBS 22283LIBS="-ldnet $LIBS" 22284cat >conftest.$ac_ext <<_ACEOF 22285/* confdefs.h. */ 22286_ACEOF 22287cat confdefs.h >>conftest.$ac_ext 22288cat >>conftest.$ac_ext <<_ACEOF 22289/* end confdefs.h. */ 22290 22291/* Override any gcc2 internal prototype to avoid an error. */ 22292#ifdef __cplusplus 22293extern "C" 22294#endif 22295/* We use char because int might match the return type of a gcc2 22296 builtin and then its argument prototype would still apply. */ 22297char dnet_ntoa (); 22298int 22299main () 22300{ 22301dnet_ntoa (); 22302 ; 22303 return 0; 22304} 22305_ACEOF 22306rm -f conftest.$ac_objext conftest$ac_exeext 22307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22308 (eval $ac_link) 2>conftest.er1 22309 ac_status=$? 22310 grep -v '^ *+' conftest.er1 >conftest.err 22311 rm -f conftest.er1 22312 cat conftest.err >&5 22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22314 (exit $ac_status); } && 22315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22317 (eval $ac_try) 2>&5 22318 ac_status=$? 22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22320 (exit $ac_status); }; } && 22321 { ac_try='test -s conftest$ac_exeext' 22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22323 (eval $ac_try) 2>&5 22324 ac_status=$? 22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22326 (exit $ac_status); }; }; then 22327 ac_cv_lib_dnet_dnet_ntoa=yes 22328else 22329 echo "$as_me: failed program was:" >&5 22330sed 's/^/| /' conftest.$ac_ext >&5 22331 22332ac_cv_lib_dnet_dnet_ntoa=no 22333fi 22334rm -f conftest.err conftest.$ac_objext \ 22335 conftest$ac_exeext conftest.$ac_ext 22336LIBS=$ac_check_lib_save_LIBS 22337fi 22338echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 22339echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 22340if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 22341 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 22342fi 22343 22344 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 22345 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 22346echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 22347if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 22348 echo $ECHO_N "(cached) $ECHO_C" >&6 22349else 22350 ac_check_lib_save_LIBS=$LIBS 22351LIBS="-ldnet_stub $LIBS" 22352cat >conftest.$ac_ext <<_ACEOF 22353/* confdefs.h. */ 22354_ACEOF 22355cat confdefs.h >>conftest.$ac_ext 22356cat >>conftest.$ac_ext <<_ACEOF 22357/* end confdefs.h. */ 22358 22359/* Override any gcc2 internal prototype to avoid an error. */ 22360#ifdef __cplusplus 22361extern "C" 22362#endif 22363/* We use char because int might match the return type of a gcc2 22364 builtin and then its argument prototype would still apply. */ 22365char dnet_ntoa (); 22366int 22367main () 22368{ 22369dnet_ntoa (); 22370 ; 22371 return 0; 22372} 22373_ACEOF 22374rm -f conftest.$ac_objext conftest$ac_exeext 22375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22376 (eval $ac_link) 2>conftest.er1 22377 ac_status=$? 22378 grep -v '^ *+' conftest.er1 >conftest.err 22379 rm -f conftest.er1 22380 cat conftest.err >&5 22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22382 (exit $ac_status); } && 22383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22385 (eval $ac_try) 2>&5 22386 ac_status=$? 22387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22388 (exit $ac_status); }; } && 22389 { ac_try='test -s conftest$ac_exeext' 22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22391 (eval $ac_try) 2>&5 22392 ac_status=$? 22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22394 (exit $ac_status); }; }; then 22395 ac_cv_lib_dnet_stub_dnet_ntoa=yes 22396else 22397 echo "$as_me: failed program was:" >&5 22398sed 's/^/| /' conftest.$ac_ext >&5 22399 22400ac_cv_lib_dnet_stub_dnet_ntoa=no 22401fi 22402rm -f conftest.err conftest.$ac_objext \ 22403 conftest$ac_exeext conftest.$ac_ext 22404LIBS=$ac_check_lib_save_LIBS 22405fi 22406echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 22407echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 22408if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 22409 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 22410fi 22411 22412 fi 22413fi 22414rm -f conftest.err conftest.$ac_objext \ 22415 conftest$ac_exeext conftest.$ac_ext 22416 LIBS="$ac_xsave_LIBS" 22417 22418 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 22419 # to get the SysV transport functions. 22420 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 22421 # needs -lnsl. 22422 # The nsl library prevents programs from opening the X display 22423 # on Irix 5.2, according to T.E. Dickey. 22424 # The functions gethostbyname, getservbyname, and inet_addr are 22425 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 22426 echo "$as_me:$LINENO: checking for gethostbyname" >&5 22427echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 22428if test "${ac_cv_func_gethostbyname+set}" = set; then 22429 echo $ECHO_N "(cached) $ECHO_C" >&6 22430else 22431 cat >conftest.$ac_ext <<_ACEOF 22432/* confdefs.h. */ 22433_ACEOF 22434cat confdefs.h >>conftest.$ac_ext 22435cat >>conftest.$ac_ext <<_ACEOF 22436/* end confdefs.h. */ 22437/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 22438 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22439#define gethostbyname innocuous_gethostbyname 22440 22441/* System header to define __stub macros and hopefully few prototypes, 22442 which can conflict with char gethostbyname (); below. 22443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22444 <limits.h> exists even on freestanding compilers. */ 22445 22446#ifdef __STDC__ 22447# include <limits.h> 22448#else 22449# include <assert.h> 22450#endif 22451 22452#undef gethostbyname 22453 22454/* Override any gcc2 internal prototype to avoid an error. */ 22455#ifdef __cplusplus 22456extern "C" 22457{ 22458#endif 22459/* We use char because int might match the return type of a gcc2 22460 builtin and then its argument prototype would still apply. */ 22461char gethostbyname (); 22462/* The GNU C library defines this for functions which it implements 22463 to always fail with ENOSYS. Some functions are actually named 22464 something starting with __ and the normal name is an alias. */ 22465#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 22466choke me 22467#else 22468char (*f) () = gethostbyname; 22469#endif 22470#ifdef __cplusplus 22471} 22472#endif 22473 22474int 22475main () 22476{ 22477return f != gethostbyname; 22478 ; 22479 return 0; 22480} 22481_ACEOF 22482rm -f conftest.$ac_objext conftest$ac_exeext 22483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22484 (eval $ac_link) 2>conftest.er1 22485 ac_status=$? 22486 grep -v '^ *+' conftest.er1 >conftest.err 22487 rm -f conftest.er1 22488 cat conftest.err >&5 22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22490 (exit $ac_status); } && 22491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22493 (eval $ac_try) 2>&5 22494 ac_status=$? 22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22496 (exit $ac_status); }; } && 22497 { ac_try='test -s conftest$ac_exeext' 22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22499 (eval $ac_try) 2>&5 22500 ac_status=$? 22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22502 (exit $ac_status); }; }; then 22503 ac_cv_func_gethostbyname=yes 22504else 22505 echo "$as_me: failed program was:" >&5 22506sed 's/^/| /' conftest.$ac_ext >&5 22507 22508ac_cv_func_gethostbyname=no 22509fi 22510rm -f conftest.err conftest.$ac_objext \ 22511 conftest$ac_exeext conftest.$ac_ext 22512fi 22513echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 22514echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 22515 22516 if test $ac_cv_func_gethostbyname = no; then 22517 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 22518echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 22519if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 22520 echo $ECHO_N "(cached) $ECHO_C" >&6 22521else 22522 ac_check_lib_save_LIBS=$LIBS 22523LIBS="-lnsl $LIBS" 22524cat >conftest.$ac_ext <<_ACEOF 22525/* confdefs.h. */ 22526_ACEOF 22527cat confdefs.h >>conftest.$ac_ext 22528cat >>conftest.$ac_ext <<_ACEOF 22529/* end confdefs.h. */ 22530 22531/* Override any gcc2 internal prototype to avoid an error. */ 22532#ifdef __cplusplus 22533extern "C" 22534#endif 22535/* We use char because int might match the return type of a gcc2 22536 builtin and then its argument prototype would still apply. */ 22537char gethostbyname (); 22538int 22539main () 22540{ 22541gethostbyname (); 22542 ; 22543 return 0; 22544} 22545_ACEOF 22546rm -f conftest.$ac_objext conftest$ac_exeext 22547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22548 (eval $ac_link) 2>conftest.er1 22549 ac_status=$? 22550 grep -v '^ *+' conftest.er1 >conftest.err 22551 rm -f conftest.er1 22552 cat conftest.err >&5 22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22554 (exit $ac_status); } && 22555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22557 (eval $ac_try) 2>&5 22558 ac_status=$? 22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22560 (exit $ac_status); }; } && 22561 { ac_try='test -s conftest$ac_exeext' 22562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22563 (eval $ac_try) 2>&5 22564 ac_status=$? 22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22566 (exit $ac_status); }; }; then 22567 ac_cv_lib_nsl_gethostbyname=yes 22568else 22569 echo "$as_me: failed program was:" >&5 22570sed 's/^/| /' conftest.$ac_ext >&5 22571 22572ac_cv_lib_nsl_gethostbyname=no 22573fi 22574rm -f conftest.err conftest.$ac_objext \ 22575 conftest$ac_exeext conftest.$ac_ext 22576LIBS=$ac_check_lib_save_LIBS 22577fi 22578echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 22579echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 22580if test $ac_cv_lib_nsl_gethostbyname = yes; then 22581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 22582fi 22583 22584 if test $ac_cv_lib_nsl_gethostbyname = no; then 22585 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 22586echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 22587if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 22588 echo $ECHO_N "(cached) $ECHO_C" >&6 22589else 22590 ac_check_lib_save_LIBS=$LIBS 22591LIBS="-lbsd $LIBS" 22592cat >conftest.$ac_ext <<_ACEOF 22593/* confdefs.h. */ 22594_ACEOF 22595cat confdefs.h >>conftest.$ac_ext 22596cat >>conftest.$ac_ext <<_ACEOF 22597/* end confdefs.h. */ 22598 22599/* Override any gcc2 internal prototype to avoid an error. */ 22600#ifdef __cplusplus 22601extern "C" 22602#endif 22603/* We use char because int might match the return type of a gcc2 22604 builtin and then its argument prototype would still apply. */ 22605char gethostbyname (); 22606int 22607main () 22608{ 22609gethostbyname (); 22610 ; 22611 return 0; 22612} 22613_ACEOF 22614rm -f conftest.$ac_objext conftest$ac_exeext 22615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22616 (eval $ac_link) 2>conftest.er1 22617 ac_status=$? 22618 grep -v '^ *+' conftest.er1 >conftest.err 22619 rm -f conftest.er1 22620 cat conftest.err >&5 22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22622 (exit $ac_status); } && 22623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22625 (eval $ac_try) 2>&5 22626 ac_status=$? 22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22628 (exit $ac_status); }; } && 22629 { ac_try='test -s conftest$ac_exeext' 22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22631 (eval $ac_try) 2>&5 22632 ac_status=$? 22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22634 (exit $ac_status); }; }; then 22635 ac_cv_lib_bsd_gethostbyname=yes 22636else 22637 echo "$as_me: failed program was:" >&5 22638sed 's/^/| /' conftest.$ac_ext >&5 22639 22640ac_cv_lib_bsd_gethostbyname=no 22641fi 22642rm -f conftest.err conftest.$ac_objext \ 22643 conftest$ac_exeext conftest.$ac_ext 22644LIBS=$ac_check_lib_save_LIBS 22645fi 22646echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 22647echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 22648if test $ac_cv_lib_bsd_gethostbyname = yes; then 22649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 22650fi 22651 22652 fi 22653 fi 22654 22655 # lieder@skyler.mavd.honeywell.com says without -lsocket, 22656 # socket/setsockopt and other routines are undefined under SCO ODT 22657 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 22658 # on later versions), says Simon Leinen: it contains gethostby* 22659 # variants that don't use the name server (or something). -lsocket 22660 # must be given before -lnsl if both are needed. We assume that 22661 # if connect needs -lnsl, so does gethostbyname. 22662 echo "$as_me:$LINENO: checking for connect" >&5 22663echo $ECHO_N "checking for connect... $ECHO_C" >&6 22664if test "${ac_cv_func_connect+set}" = set; then 22665 echo $ECHO_N "(cached) $ECHO_C" >&6 22666else 22667 cat >conftest.$ac_ext <<_ACEOF 22668/* confdefs.h. */ 22669_ACEOF 22670cat confdefs.h >>conftest.$ac_ext 22671cat >>conftest.$ac_ext <<_ACEOF 22672/* end confdefs.h. */ 22673/* Define connect to an innocuous variant, in case <limits.h> declares connect. 22674 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22675#define connect innocuous_connect 22676 22677/* System header to define __stub macros and hopefully few prototypes, 22678 which can conflict with char connect (); below. 22679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22680 <limits.h> exists even on freestanding compilers. */ 22681 22682#ifdef __STDC__ 22683# include <limits.h> 22684#else 22685# include <assert.h> 22686#endif 22687 22688#undef connect 22689 22690/* Override any gcc2 internal prototype to avoid an error. */ 22691#ifdef __cplusplus 22692extern "C" 22693{ 22694#endif 22695/* We use char because int might match the return type of a gcc2 22696 builtin and then its argument prototype would still apply. */ 22697char connect (); 22698/* The GNU C library defines this for functions which it implements 22699 to always fail with ENOSYS. Some functions are actually named 22700 something starting with __ and the normal name is an alias. */ 22701#if defined (__stub_connect) || defined (__stub___connect) 22702choke me 22703#else 22704char (*f) () = connect; 22705#endif 22706#ifdef __cplusplus 22707} 22708#endif 22709 22710int 22711main () 22712{ 22713return f != connect; 22714 ; 22715 return 0; 22716} 22717_ACEOF 22718rm -f conftest.$ac_objext conftest$ac_exeext 22719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22720 (eval $ac_link) 2>conftest.er1 22721 ac_status=$? 22722 grep -v '^ *+' conftest.er1 >conftest.err 22723 rm -f conftest.er1 22724 cat conftest.err >&5 22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22726 (exit $ac_status); } && 22727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22729 (eval $ac_try) 2>&5 22730 ac_status=$? 22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22732 (exit $ac_status); }; } && 22733 { ac_try='test -s conftest$ac_exeext' 22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22735 (eval $ac_try) 2>&5 22736 ac_status=$? 22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22738 (exit $ac_status); }; }; then 22739 ac_cv_func_connect=yes 22740else 22741 echo "$as_me: failed program was:" >&5 22742sed 's/^/| /' conftest.$ac_ext >&5 22743 22744ac_cv_func_connect=no 22745fi 22746rm -f conftest.err conftest.$ac_objext \ 22747 conftest$ac_exeext conftest.$ac_ext 22748fi 22749echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 22750echo "${ECHO_T}$ac_cv_func_connect" >&6 22751 22752 if test $ac_cv_func_connect = no; then 22753 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 22754echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 22755if test "${ac_cv_lib_socket_connect+set}" = set; then 22756 echo $ECHO_N "(cached) $ECHO_C" >&6 22757else 22758 ac_check_lib_save_LIBS=$LIBS 22759LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 22760cat >conftest.$ac_ext <<_ACEOF 22761/* confdefs.h. */ 22762_ACEOF 22763cat confdefs.h >>conftest.$ac_ext 22764cat >>conftest.$ac_ext <<_ACEOF 22765/* end confdefs.h. */ 22766 22767/* Override any gcc2 internal prototype to avoid an error. */ 22768#ifdef __cplusplus 22769extern "C" 22770#endif 22771/* We use char because int might match the return type of a gcc2 22772 builtin and then its argument prototype would still apply. */ 22773char connect (); 22774int 22775main () 22776{ 22777connect (); 22778 ; 22779 return 0; 22780} 22781_ACEOF 22782rm -f conftest.$ac_objext conftest$ac_exeext 22783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22784 (eval $ac_link) 2>conftest.er1 22785 ac_status=$? 22786 grep -v '^ *+' conftest.er1 >conftest.err 22787 rm -f conftest.er1 22788 cat conftest.err >&5 22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22790 (exit $ac_status); } && 22791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22793 (eval $ac_try) 2>&5 22794 ac_status=$? 22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22796 (exit $ac_status); }; } && 22797 { ac_try='test -s conftest$ac_exeext' 22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22799 (eval $ac_try) 2>&5 22800 ac_status=$? 22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22802 (exit $ac_status); }; }; then 22803 ac_cv_lib_socket_connect=yes 22804else 22805 echo "$as_me: failed program was:" >&5 22806sed 's/^/| /' conftest.$ac_ext >&5 22807 22808ac_cv_lib_socket_connect=no 22809fi 22810rm -f conftest.err conftest.$ac_objext \ 22811 conftest$ac_exeext conftest.$ac_ext 22812LIBS=$ac_check_lib_save_LIBS 22813fi 22814echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 22815echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 22816if test $ac_cv_lib_socket_connect = yes; then 22817 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 22818fi 22819 22820 fi 22821 22822 # Guillermo Gomez says -lposix is necessary on A/UX. 22823 echo "$as_me:$LINENO: checking for remove" >&5 22824echo $ECHO_N "checking for remove... $ECHO_C" >&6 22825if test "${ac_cv_func_remove+set}" = set; then 22826 echo $ECHO_N "(cached) $ECHO_C" >&6 22827else 22828 cat >conftest.$ac_ext <<_ACEOF 22829/* confdefs.h. */ 22830_ACEOF 22831cat confdefs.h >>conftest.$ac_ext 22832cat >>conftest.$ac_ext <<_ACEOF 22833/* end confdefs.h. */ 22834/* Define remove to an innocuous variant, in case <limits.h> declares remove. 22835 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22836#define remove innocuous_remove 22837 22838/* System header to define __stub macros and hopefully few prototypes, 22839 which can conflict with char remove (); below. 22840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22841 <limits.h> exists even on freestanding compilers. */ 22842 22843#ifdef __STDC__ 22844# include <limits.h> 22845#else 22846# include <assert.h> 22847#endif 22848 22849#undef remove 22850 22851/* Override any gcc2 internal prototype to avoid an error. */ 22852#ifdef __cplusplus 22853extern "C" 22854{ 22855#endif 22856/* We use char because int might match the return type of a gcc2 22857 builtin and then its argument prototype would still apply. */ 22858char remove (); 22859/* The GNU C library defines this for functions which it implements 22860 to always fail with ENOSYS. Some functions are actually named 22861 something starting with __ and the normal name is an alias. */ 22862#if defined (__stub_remove) || defined (__stub___remove) 22863choke me 22864#else 22865char (*f) () = remove; 22866#endif 22867#ifdef __cplusplus 22868} 22869#endif 22870 22871int 22872main () 22873{ 22874return f != remove; 22875 ; 22876 return 0; 22877} 22878_ACEOF 22879rm -f conftest.$ac_objext conftest$ac_exeext 22880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22881 (eval $ac_link) 2>conftest.er1 22882 ac_status=$? 22883 grep -v '^ *+' conftest.er1 >conftest.err 22884 rm -f conftest.er1 22885 cat conftest.err >&5 22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22887 (exit $ac_status); } && 22888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22890 (eval $ac_try) 2>&5 22891 ac_status=$? 22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22893 (exit $ac_status); }; } && 22894 { ac_try='test -s conftest$ac_exeext' 22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22896 (eval $ac_try) 2>&5 22897 ac_status=$? 22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22899 (exit $ac_status); }; }; then 22900 ac_cv_func_remove=yes 22901else 22902 echo "$as_me: failed program was:" >&5 22903sed 's/^/| /' conftest.$ac_ext >&5 22904 22905ac_cv_func_remove=no 22906fi 22907rm -f conftest.err conftest.$ac_objext \ 22908 conftest$ac_exeext conftest.$ac_ext 22909fi 22910echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 22911echo "${ECHO_T}$ac_cv_func_remove" >&6 22912 22913 if test $ac_cv_func_remove = no; then 22914 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 22915echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 22916if test "${ac_cv_lib_posix_remove+set}" = set; then 22917 echo $ECHO_N "(cached) $ECHO_C" >&6 22918else 22919 ac_check_lib_save_LIBS=$LIBS 22920LIBS="-lposix $LIBS" 22921cat >conftest.$ac_ext <<_ACEOF 22922/* confdefs.h. */ 22923_ACEOF 22924cat confdefs.h >>conftest.$ac_ext 22925cat >>conftest.$ac_ext <<_ACEOF 22926/* end confdefs.h. */ 22927 22928/* Override any gcc2 internal prototype to avoid an error. */ 22929#ifdef __cplusplus 22930extern "C" 22931#endif 22932/* We use char because int might match the return type of a gcc2 22933 builtin and then its argument prototype would still apply. */ 22934char remove (); 22935int 22936main () 22937{ 22938remove (); 22939 ; 22940 return 0; 22941} 22942_ACEOF 22943rm -f conftest.$ac_objext conftest$ac_exeext 22944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22945 (eval $ac_link) 2>conftest.er1 22946 ac_status=$? 22947 grep -v '^ *+' conftest.er1 >conftest.err 22948 rm -f conftest.er1 22949 cat conftest.err >&5 22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22951 (exit $ac_status); } && 22952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22954 (eval $ac_try) 2>&5 22955 ac_status=$? 22956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22957 (exit $ac_status); }; } && 22958 { ac_try='test -s conftest$ac_exeext' 22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22960 (eval $ac_try) 2>&5 22961 ac_status=$? 22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22963 (exit $ac_status); }; }; then 22964 ac_cv_lib_posix_remove=yes 22965else 22966 echo "$as_me: failed program was:" >&5 22967sed 's/^/| /' conftest.$ac_ext >&5 22968 22969ac_cv_lib_posix_remove=no 22970fi 22971rm -f conftest.err conftest.$ac_objext \ 22972 conftest$ac_exeext conftest.$ac_ext 22973LIBS=$ac_check_lib_save_LIBS 22974fi 22975echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 22976echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 22977if test $ac_cv_lib_posix_remove = yes; then 22978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 22979fi 22980 22981 fi 22982 22983 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 22984 echo "$as_me:$LINENO: checking for shmat" >&5 22985echo $ECHO_N "checking for shmat... $ECHO_C" >&6 22986if test "${ac_cv_func_shmat+set}" = set; then 22987 echo $ECHO_N "(cached) $ECHO_C" >&6 22988else 22989 cat >conftest.$ac_ext <<_ACEOF 22990/* confdefs.h. */ 22991_ACEOF 22992cat confdefs.h >>conftest.$ac_ext 22993cat >>conftest.$ac_ext <<_ACEOF 22994/* end confdefs.h. */ 22995/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 22996 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22997#define shmat innocuous_shmat 22998 22999/* System header to define __stub macros and hopefully few prototypes, 23000 which can conflict with char shmat (); below. 23001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23002 <limits.h> exists even on freestanding compilers. */ 23003 23004#ifdef __STDC__ 23005# include <limits.h> 23006#else 23007# include <assert.h> 23008#endif 23009 23010#undef shmat 23011 23012/* Override any gcc2 internal prototype to avoid an error. */ 23013#ifdef __cplusplus 23014extern "C" 23015{ 23016#endif 23017/* We use char because int might match the return type of a gcc2 23018 builtin and then its argument prototype would still apply. */ 23019char shmat (); 23020/* The GNU C library defines this for functions which it implements 23021 to always fail with ENOSYS. Some functions are actually named 23022 something starting with __ and the normal name is an alias. */ 23023#if defined (__stub_shmat) || defined (__stub___shmat) 23024choke me 23025#else 23026char (*f) () = shmat; 23027#endif 23028#ifdef __cplusplus 23029} 23030#endif 23031 23032int 23033main () 23034{ 23035return f != shmat; 23036 ; 23037 return 0; 23038} 23039_ACEOF 23040rm -f conftest.$ac_objext conftest$ac_exeext 23041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23042 (eval $ac_link) 2>conftest.er1 23043 ac_status=$? 23044 grep -v '^ *+' conftest.er1 >conftest.err 23045 rm -f conftest.er1 23046 cat conftest.err >&5 23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23048 (exit $ac_status); } && 23049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23051 (eval $ac_try) 2>&5 23052 ac_status=$? 23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23054 (exit $ac_status); }; } && 23055 { ac_try='test -s conftest$ac_exeext' 23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23057 (eval $ac_try) 2>&5 23058 ac_status=$? 23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23060 (exit $ac_status); }; }; then 23061 ac_cv_func_shmat=yes 23062else 23063 echo "$as_me: failed program was:" >&5 23064sed 's/^/| /' conftest.$ac_ext >&5 23065 23066ac_cv_func_shmat=no 23067fi 23068rm -f conftest.err conftest.$ac_objext \ 23069 conftest$ac_exeext conftest.$ac_ext 23070fi 23071echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 23072echo "${ECHO_T}$ac_cv_func_shmat" >&6 23073 23074 if test $ac_cv_func_shmat = no; then 23075 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 23076echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 23077if test "${ac_cv_lib_ipc_shmat+set}" = set; then 23078 echo $ECHO_N "(cached) $ECHO_C" >&6 23079else 23080 ac_check_lib_save_LIBS=$LIBS 23081LIBS="-lipc $LIBS" 23082cat >conftest.$ac_ext <<_ACEOF 23083/* confdefs.h. */ 23084_ACEOF 23085cat confdefs.h >>conftest.$ac_ext 23086cat >>conftest.$ac_ext <<_ACEOF 23087/* end confdefs.h. */ 23088 23089/* Override any gcc2 internal prototype to avoid an error. */ 23090#ifdef __cplusplus 23091extern "C" 23092#endif 23093/* We use char because int might match the return type of a gcc2 23094 builtin and then its argument prototype would still apply. */ 23095char shmat (); 23096int 23097main () 23098{ 23099shmat (); 23100 ; 23101 return 0; 23102} 23103_ACEOF 23104rm -f conftest.$ac_objext conftest$ac_exeext 23105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23106 (eval $ac_link) 2>conftest.er1 23107 ac_status=$? 23108 grep -v '^ *+' conftest.er1 >conftest.err 23109 rm -f conftest.er1 23110 cat conftest.err >&5 23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23112 (exit $ac_status); } && 23113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23115 (eval $ac_try) 2>&5 23116 ac_status=$? 23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23118 (exit $ac_status); }; } && 23119 { ac_try='test -s conftest$ac_exeext' 23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23121 (eval $ac_try) 2>&5 23122 ac_status=$? 23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23124 (exit $ac_status); }; }; then 23125 ac_cv_lib_ipc_shmat=yes 23126else 23127 echo "$as_me: failed program was:" >&5 23128sed 's/^/| /' conftest.$ac_ext >&5 23129 23130ac_cv_lib_ipc_shmat=no 23131fi 23132rm -f conftest.err conftest.$ac_objext \ 23133 conftest$ac_exeext conftest.$ac_ext 23134LIBS=$ac_check_lib_save_LIBS 23135fi 23136echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 23137echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 23138if test $ac_cv_lib_ipc_shmat = yes; then 23139 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 23140fi 23141 23142 fi 23143 fi 23144 23145 # Check for libraries that X11R6 Xt/Xaw programs need. 23146 ac_save_LDFLAGS=$LDFLAGS 23147 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 23148 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 23149 # check for ICE first), but we must link in the order -lSM -lICE or 23150 # we get undefined symbols. So assume we have SM if we have ICE. 23151 # These have to be linked with before -lX11, unlike the other 23152 # libraries we check for below, so use a different variable. 23153 # John Interrante, Karl Berry 23154 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 23155echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 23156if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 23157 echo $ECHO_N "(cached) $ECHO_C" >&6 23158else 23159 ac_check_lib_save_LIBS=$LIBS 23160LIBS="-lICE $X_EXTRA_LIBS $LIBS" 23161cat >conftest.$ac_ext <<_ACEOF 23162/* confdefs.h. */ 23163_ACEOF 23164cat confdefs.h >>conftest.$ac_ext 23165cat >>conftest.$ac_ext <<_ACEOF 23166/* end confdefs.h. */ 23167 23168/* Override any gcc2 internal prototype to avoid an error. */ 23169#ifdef __cplusplus 23170extern "C" 23171#endif 23172/* We use char because int might match the return type of a gcc2 23173 builtin and then its argument prototype would still apply. */ 23174char IceConnectionNumber (); 23175int 23176main () 23177{ 23178IceConnectionNumber (); 23179 ; 23180 return 0; 23181} 23182_ACEOF 23183rm -f conftest.$ac_objext conftest$ac_exeext 23184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23185 (eval $ac_link) 2>conftest.er1 23186 ac_status=$? 23187 grep -v '^ *+' conftest.er1 >conftest.err 23188 rm -f conftest.er1 23189 cat conftest.err >&5 23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23191 (exit $ac_status); } && 23192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23194 (eval $ac_try) 2>&5 23195 ac_status=$? 23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23197 (exit $ac_status); }; } && 23198 { ac_try='test -s conftest$ac_exeext' 23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23200 (eval $ac_try) 2>&5 23201 ac_status=$? 23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23203 (exit $ac_status); }; }; then 23204 ac_cv_lib_ICE_IceConnectionNumber=yes 23205else 23206 echo "$as_me: failed program was:" >&5 23207sed 's/^/| /' conftest.$ac_ext >&5 23208 23209ac_cv_lib_ICE_IceConnectionNumber=no 23210fi 23211rm -f conftest.err conftest.$ac_objext \ 23212 conftest$ac_exeext conftest.$ac_ext 23213LIBS=$ac_check_lib_save_LIBS 23214fi 23215echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 23216echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 23217if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 23218 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 23219fi 23220 23221 LDFLAGS=$ac_save_LDFLAGS 23222 23223fi 23224 23225if test "x$no_x" = "xyes" 23226then 23227 { { echo "$as_me:$LINENO: error: \"You must have X installed\"" >&5 23228echo "$as_me: error: \"You must have X installed\"" >&2;} 23229 { (exit 1); exit 1; }; } 23230else 23231 LIB_X11="$LIB_X11 -lX11 -lXmu -lXext -lm -lXss" 23232fi 23233 23234 23235 # Check whether --enable-suid-helpers or --disable-suid-helpers was given. 23236if test "${enable_suid_helpers+set}" = set; then 23237 enableval="$enable_suid_helpers" 23238 lineak_suid_helpers=yes 23239else 23240 lineak_suid_helpers=no 23241fi; 23242 echo "$as_me:$LINENO: checking whether we install the helper applications suid root" >&5 23243echo $ECHO_N "checking whether we install the helper applications suid root... $ECHO_C" >&6 23244 23245cat >>confdefs.h <<_ACEOF 23246@%:@define HELPER_SUID "${lineak_suid_helpers}" 23247_ACEOF 23248 23249 HELPER_SUID="${lineak_suid_helpers}" 23250 23251 echo "$as_me:$LINENO: result: ${lineak_suid_helpers}" >&5 23252echo "${ECHO_T}${lineak_suid_helpers}" >&6 23253 23254 23255 # Check whether --enable-setkeycodes-suid or --disable-setkeycodes-suid was given. 23256if test "${enable_setkeycodes_suid+set}" = set; then 23257 enableval="$enable_setkeycodes_suid" 23258 setkeycodes_suid=yes 23259else 23260 setkeycodes_suid=no 23261fi; 23262 echo "$as_me:$LINENO: checking whether we will make setkeycodes suid root" >&5 23263echo $ECHO_N "checking whether we will make setkeycodes suid root... $ECHO_C" >&6 23264 23265cat >>confdefs.h <<_ACEOF 23266@%:@define SETKEYCODES_SUID "${setkeycodes_suid}" 23267_ACEOF 23268 23269 SETKEYCODES_SUID="${setkeycodes_suid}" 23270 23271 echo "$as_me:$LINENO: result: ${setkeycodes_suid}" >&5 23272echo "${ECHO_T}${setkeycodes_suid}" >&6 23273 23274 23275 23276 echo "$as_me:$LINENO: checking whether we enable compilation of the evtest utility" >&5 23277echo $ECHO_N "checking whether we enable compilation of the evtest utility... $ECHO_C" >&6 23278 # Check whether --enable-evtest or --disable-evtest was given. 23279if test "${enable_evtest+set}" = set; then 23280 enableval="$enable_evtest" 23281 if test "x$enableval" = "xyes"; then 23282 lineak_enable_evtest=true 23283 else 23284 lineak_enable_evtest=false 23285 fi 23286else 23287 lineak_enable_evtest=false 23288fi; 23289 23290 if test "x$lineak_enable_evtest" == "xtrue" ; then 23291 case $host in 23292 *-linux* ) 23293 lineak_enable_evtest=true ;; 23294 *) 23295 lineak_enable_evtest=false ;; 23296 esac 23297 fi 23298 23299 if test x$lineak_enable_evtest = xtrue; then 23300 EVTEST="true" 23301 else 23302 EVTEST="false" 23303 fi 23304 23305 23306cat >>confdefs.h <<_ACEOF 23307@%:@define EVTEST "${EVTEST}" 23308_ACEOF 23309 23310 23311 23312if test "x$lineak_enable_evtest" = "xtrue" ; then 23313 EVTEST_TRUE= 23314 EVTEST_FALSE='#' 23315else 23316 EVTEST_TRUE='#' 23317 EVTEST_FALSE= 23318fi 23319 23320 23321 echo "$as_me:$LINENO: result: $lineak_enable_evtest" >&5 23322echo "${ECHO_T}$lineak_enable_evtest" >&6 23323 23324 23325 if test "$target_os" == "cygwin"; then 23326 cygwin_os=true 23327 else 23328 cygwin_os=false 23329 fi 23330 23331 echo "$as_me:$LINENO: checking Are we compiling on Cygwin?" >&5 23332echo $ECHO_N "checking Are we compiling on Cygwin?... $ECHO_C" >&6 23333 23334cat >>confdefs.h <<_ACEOF 23335@%:@define CYGWIN "${cygwin_os}" 23336_ACEOF 23337 23338 23339 23340if test "x$cygwin_os" = "xtrue" ; then 23341 CYGWIN_TRUE= 23342 CYGWIN_FALSE='#' 23343else 23344 CYGWIN_TRUE='#' 23345 CYGWIN_FALSE= 23346fi 23347 23348 CYGWIN="${cygwin_os}" 23349 23350 echo "$as_me:$LINENO: result: ${cygwin_os}" >&5 23351echo "${ECHO_T}${cygwin_os}" >&6 23352 23353 23354 23355DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin" 23356TOPSUBDIRS="" 23357 23358if test ! -s $srcdir/subdirs; then 23359 files=`cd $srcdir && ls -1` 23360 dirs=`for i in $files; do if test -d $i; then echo $i; fi; done` 23361 for i in $dirs; do 23362 echo $i >> $srcdir/subdirs 23363 done 23364fi 23365 23366ac_topsubdirs= 23367if test -s $srcdir/inst-apps; then 23368 ac_topsubdirs="`cat $srcdir/inst-apps`" 23369elif test -s $srcdir/subdirs; then 23370 ac_topsubdirs="`cat $srcdir/subdirs`" 23371fi 23372 23373for i in $ac_topsubdirs; do 23374 echo "$as_me:$LINENO: checking if $i should be compiled" >&5 23375echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6 23376 if test -d $srcdir/$i; then 23377 install_it="yes" 23378 for j in $DO_NOT_COMPILE; do 23379 if test $i = $j; then 23380 install_it="no" 23381 fi 23382 done 23383 else 23384 install_it="no" 23385 fi 23386 echo "$as_me:$LINENO: result: $install_it" >&5 23387echo "${ECHO_T}$install_it" >&6 23388 vari=`echo $i | sed -e 's,[-+.@],_,g'` 23389 if test $install_it = "yes"; then 23390 TOPSUBDIRS="$TOPSUBDIRS $i" 23391 eval "$vari""_SUBDIR_included=yes" 23392 else 23393 eval "$vari""_SUBDIR_included=no" 23394 fi 23395done 23396 23397 23398 23399 ac_config_files="$ac_config_files Makefile" 23400 23401 ac_config_files="$ac_config_files lineak/Makefile" 23402 23403 ac_config_files="$ac_config_files lineakd/Makefile" 23404 23405 ac_config_files="$ac_config_files lineakd/docs/Makefile" 23406 23407 ac_config_files="$ac_config_files lineakd/docs/en/Makefile" 23408 23409 ac_config_files="$ac_config_files utils/Makefile" 23410 23411cat >confcache <<\_ACEOF 23412# This file is a shell script that caches the results of configure 23413# tests run on this system so they can be shared between configure 23414# scripts and configure runs, see configure's option --config-cache. 23415# It is not useful on other systems. If it contains results you don't 23416# want to keep, you may remove or edit it. 23417# 23418# config.status only pays attention to the cache file if you give it 23419# the --recheck option to rerun configure. 23420# 23421# `ac_cv_env_foo' variables (set or unset) will be overridden when 23422# loading this file, other *unset* `ac_cv_foo' will be assigned the 23423# following values. 23424 23425_ACEOF 23426 23427# The following way of writing the cache mishandles newlines in values, 23428# but we know of no workaround that is simple, portable, and efficient. 23429# So, don't put newlines in cache variables' values. 23430# Ultrix sh set writes to stderr and can't be redirected directly, 23431# and sets the high bit in the cache file unless we assign to the vars. 23432{ 23433 (set) 2>&1 | 23434 case `(ac_space=' '; set | grep ac_space) 2>&1` in 23435 *ac_space=\ *) 23436 # `set' does not quote correctly, so add quotes (double-quote 23437 # substitution turns \\\\ into \\, and sed turns \\ into \). 23438 sed -n \ 23439 "s/'/'\\\\''/g; 23440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23441 ;; 23442 *) 23443 # `set' quotes correctly as required by POSIX, so do not add quotes. 23444 sed -n \ 23445 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 23446 ;; 23447 esac; 23448} | 23449 sed ' 23450 t clear 23451 : clear 23452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23453 t end 23454 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23455 : end' >>confcache 23456if diff $cache_file confcache >/dev/null 2>&1; then :; else 23457 if test -w $cache_file; then 23458 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 23459 cat confcache >$cache_file 23460 else 23461 echo "not updating unwritable cache $cache_file" 23462 fi 23463fi 23464rm -f confcache 23465 23466test "x$prefix" = xNONE && prefix=$ac_default_prefix 23467# Let make expand exec_prefix. 23468test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23469 23470# VPATH may cause trouble with some makes, so we remove $(srcdir), 23471# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23472# trailing colons and then remove the whole line if VPATH becomes empty 23473# (actually we leave an empty line to preserve line numbers). 23474if test "x$srcdir" = x.; then 23475 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23476s/:*\$(srcdir):*/:/; 23477s/:*\${srcdir}:*/:/; 23478s/:*@srcdir@:*/:/; 23479s/^\([^=]*=[ ]*\):*/\1/; 23480s/:*$//; 23481s/^[^=]*=[ ]*$//; 23482}' 23483fi 23484 23485DEFS=-DHAVE_CONFIG_H 23486 23487ac_libobjs= 23488ac_ltlibobjs= 23489for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 23490 # 1. Remove the extension, and $U if already installed. 23491 ac_i=`echo "$ac_i" | 23492 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 23493 # 2. Add them. 23494 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 23495 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 23496done 23497LIB@&t@OBJS=$ac_libobjs 23498 23499LTLIBOBJS=$ac_ltlibobjs 23500 23501 23502if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23503 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23504Usually this means the macro was only invoked conditionally." >&5 23505echo "$as_me: error: conditional \"AMDEP\" was never defined. 23506Usually this means the macro was only invoked conditionally." >&2;} 23507 { (exit 1); exit 1; }; } 23508fi 23509if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23510 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23511Usually this means the macro was only invoked conditionally." >&5 23512echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23513Usually this means the macro was only invoked conditionally." >&2;} 23514 { (exit 1); exit 1; }; } 23515fi 23516if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23517 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23518Usually this means the macro was only invoked conditionally." >&5 23519echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23520Usually this means the macro was only invoked conditionally." >&2;} 23521 { (exit 1); exit 1; }; } 23522fi 23523if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then 23524 { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined. 23525Usually this means the macro was only invoked conditionally." >&5 23526echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined. 23527Usually this means the macro was only invoked conditionally." >&2;} 23528 { (exit 1); exit 1; }; } 23529fi 23530if test -z "${SEND_TO_KEYBOARD_TRUE}" && test -z "${SEND_TO_KEYBOARD_FALSE}"; then 23531 { { echo "$as_me:$LINENO: error: conditional \"SEND_TO_KEYBOARD\" was never defined. 23532Usually this means the macro was only invoked conditionally." >&5 23533echo "$as_me: error: conditional \"SEND_TO_KEYBOARD\" was never defined. 23534Usually this means the macro was only invoked conditionally." >&2;} 23535 { (exit 1); exit 1; }; } 23536fi 23537if test -z "${EVTEST_TRUE}" && test -z "${EVTEST_FALSE}"; then 23538 { { echo "$as_me:$LINENO: error: conditional \"EVTEST\" was never defined. 23539Usually this means the macro was only invoked conditionally." >&5 23540echo "$as_me: error: conditional \"EVTEST\" was never defined. 23541Usually this means the macro was only invoked conditionally." >&2;} 23542 { (exit 1); exit 1; }; } 23543fi 23544if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 23545 { { echo "$as_me:$LINENO: error: conditional \"CYGWIN\" was never defined. 23546Usually this means the macro was only invoked conditionally." >&5 23547echo "$as_me: error: conditional \"CYGWIN\" was never defined. 23548Usually this means the macro was only invoked conditionally." >&2;} 23549 { (exit 1); exit 1; }; } 23550fi 23551 23552: ${CONFIG_STATUS=./config.status} 23553ac_clean_files_save=$ac_clean_files 23554ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23555{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23556echo "$as_me: creating $CONFIG_STATUS" >&6;} 23557cat >$CONFIG_STATUS <<_ACEOF 23558#! $SHELL 23559# Generated by $as_me. 23560# Run this file to recreate the current configuration. 23561# Compiler output produced by configure, useful for debugging 23562# configure, is in config.log if it exists. 23563 23564debug=false 23565ac_cs_recheck=false 23566ac_cs_silent=false 23567SHELL=\${CONFIG_SHELL-$SHELL} 23568_ACEOF 23569 23570cat >>$CONFIG_STATUS <<\_ACEOF 23571## --------------------- ## 23572## M4sh Initialization. ## 23573## --------------------- ## 23574 23575# Be Bourne compatible 23576if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23577 emulate sh 23578 NULLCMD=: 23579 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23580 # is contrary to our usage. Disable this feature. 23581 alias -g '${1+"$@"}'='"$@"' 23582elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23583 set -o posix 23584fi 23585DUALCASE=1; export DUALCASE # for MKS sh 23586 23587# Support unset when possible. 23588if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23589 as_unset=unset 23590else 23591 as_unset=false 23592fi 23593 23594 23595# Work around bugs in pre-3.0 UWIN ksh. 23596$as_unset ENV MAIL MAILPATH 23597PS1='$ ' 23598PS2='> ' 23599PS4='+ ' 23600 23601# NLS nuisances. 23602for as_var in \ 23603 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23604 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23605 LC_TELEPHONE LC_TIME 23606do 23607 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23608 eval $as_var=C; export $as_var 23609 else 23610 $as_unset $as_var 23611 fi 23612done 23613 23614# Required to use basename. 23615if expr a : '\(a\)' >/dev/null 2>&1; then 23616 as_expr=expr 23617else 23618 as_expr=false 23619fi 23620 23621if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 23622 as_basename=basename 23623else 23624 as_basename=false 23625fi 23626 23627 23628# Name of the executable. 23629as_me=`$as_basename "$0" || 23630$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23631 X"$0" : 'X\(//\)$' \| \ 23632 X"$0" : 'X\(/\)$' \| \ 23633 . : '\(.\)' 2>/dev/null || 23634echo X/"$0" | 23635 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 23636 /^X\/\(\/\/\)$/{ s//\1/; q; } 23637 /^X\/\(\/\).*/{ s//\1/; q; } 23638 s/.*/./; q'` 23639 23640 23641# PATH needs CR, and LINENO needs CR and PATH. 23642# Avoid depending upon Character Ranges. 23643as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23644as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23645as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23646as_cr_digits='0123456789' 23647as_cr_alnum=$as_cr_Letters$as_cr_digits 23648 23649# The user is always right. 23650if test "${PATH_SEPARATOR+set}" != set; then 23651 echo "#! /bin/sh" >conf$$.sh 23652 echo "exit 0" >>conf$$.sh 23653 chmod +x conf$$.sh 23654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23655 PATH_SEPARATOR=';' 23656 else 23657 PATH_SEPARATOR=: 23658 fi 23659 rm -f conf$$.sh 23660fi 23661 23662 23663 as_lineno_1=$LINENO 23664 as_lineno_2=$LINENO 23665 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23666 test "x$as_lineno_1" != "x$as_lineno_2" && 23667 test "x$as_lineno_3" = "x$as_lineno_2" || { 23668 # Find who we are. Look in the path if we contain no path at all 23669 # relative or not. 23670 case $0 in 23671 *[\\/]* ) as_myself=$0 ;; 23672 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23673for as_dir in $PATH 23674do 23675 IFS=$as_save_IFS 23676 test -z "$as_dir" && as_dir=. 23677 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23678done 23679 23680 ;; 23681 esac 23682 # We did not find ourselves, most probably we were run as `sh COMMAND' 23683 # in which case we are not to be found in the path. 23684 if test "x$as_myself" = x; then 23685 as_myself=$0 23686 fi 23687 if test ! -f "$as_myself"; then 23688 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 23689echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 23690 { (exit 1); exit 1; }; } 23691 fi 23692 case $CONFIG_SHELL in 23693 '') 23694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23695for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 23696do 23697 IFS=$as_save_IFS 23698 test -z "$as_dir" && as_dir=. 23699 for as_base in sh bash ksh sh5; do 23700 case $as_dir in 23701 /*) 23702 if ("$as_dir/$as_base" -c ' 23703 as_lineno_1=$LINENO 23704 as_lineno_2=$LINENO 23705 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 23706 test "x$as_lineno_1" != "x$as_lineno_2" && 23707 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 23708 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 23709 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 23710 CONFIG_SHELL=$as_dir/$as_base 23711 export CONFIG_SHELL 23712 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 23713 fi;; 23714 esac 23715 done 23716done 23717;; 23718 esac 23719 23720 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23721 # uniformly replaced by the line number. The first 'sed' inserts a 23722 # line-number line before each line; the second 'sed' does the real 23723 # work. The second script uses 'N' to pair each line-number line 23724 # with the numbered line, and appends trailing '-' during 23725 # substitution so that $LINENO is not a special case at line end. 23726 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23727 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 23728 sed '=' <$as_myself | 23729 sed ' 23730 N 23731 s,$,-, 23732 : loop 23733 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 23734 t loop 23735 s,-$,, 23736 s,^['$as_cr_digits']*\n,, 23737 ' >$as_me.lineno && 23738 chmod +x $as_me.lineno || 23739 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 23740echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 23741 { (exit 1); exit 1; }; } 23742 23743 # Don't try to exec as it changes $[0], causing all sort of problems 23744 # (the dirname of $[0] is not the place where we might find the 23745 # original and so on. Autoconf is especially sensible to this). 23746 . ./$as_me.lineno 23747 # Exit status is that of the last command. 23748 exit 23749} 23750 23751 23752case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 23753 *c*,-n*) ECHO_N= ECHO_C=' 23754' ECHO_T=' ' ;; 23755 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 23756 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 23757esac 23758 23759if expr a : '\(a\)' >/dev/null 2>&1; then 23760 as_expr=expr 23761else 23762 as_expr=false 23763fi 23764 23765rm -f conf$$ conf$$.exe conf$$.file 23766echo >conf$$.file 23767if ln -s conf$$.file conf$$ 2>/dev/null; then 23768 # We could just check for DJGPP; but this test a) works b) is more generic 23769 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 23770 if test -f conf$$.exe; then 23771 # Don't use ln at all; we don't have any links 23772 as_ln_s='cp -p' 23773 else 23774 as_ln_s='ln -s' 23775 fi 23776elif ln conf$$.file conf$$ 2>/dev/null; then 23777 as_ln_s=ln 23778else 23779 as_ln_s='cp -p' 23780fi 23781rm -f conf$$ conf$$.exe conf$$.file 23782 23783if mkdir -p . 2>/dev/null; then 23784 as_mkdir_p=: 23785else 23786 test -d ./-p && rmdir ./-p 23787 as_mkdir_p=false 23788fi 23789 23790as_executable_p="test -f" 23791 23792# Sed expression to map a string onto a valid CPP name. 23793as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23794 23795# Sed expression to map a string onto a valid variable name. 23796as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23797 23798 23799# IFS 23800# We need space, tab and new line, in precisely that order. 23801as_nl=' 23802' 23803IFS=" $as_nl" 23804 23805# CDPATH. 23806$as_unset CDPATH 23807 23808exec 6>&1 23809 23810# Open the log real soon, to keep \$[0] and so on meaningful, and to 23811# report actual input values of CONFIG_FILES etc. instead of their 23812# values after options handling. Logging --version etc. is OK. 23813exec 5>>config.log 23814{ 23815 echo 23816 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 23817@%:@@%:@ Running $as_me. @%:@@%:@ 23818_ASBOX 23819} >&5 23820cat >&5 <<_CSEOF 23821 23822This file was extended by $as_me, which was 23823generated by GNU Autoconf 2.59. Invocation command line was 23824 23825 CONFIG_FILES = $CONFIG_FILES 23826 CONFIG_HEADERS = $CONFIG_HEADERS 23827 CONFIG_LINKS = $CONFIG_LINKS 23828 CONFIG_COMMANDS = $CONFIG_COMMANDS 23829 $ $0 $@ 23830 23831_CSEOF 23832echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 23833echo >&5 23834_ACEOF 23835 23836# Files that config.status was made for. 23837if test -n "$ac_config_files"; then 23838 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 23839fi 23840 23841if test -n "$ac_config_headers"; then 23842 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 23843fi 23844 23845if test -n "$ac_config_links"; then 23846 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 23847fi 23848 23849if test -n "$ac_config_commands"; then 23850 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 23851fi 23852 23853cat >>$CONFIG_STATUS <<\_ACEOF 23854 23855ac_cs_usage="\ 23856\`$as_me' instantiates files from templates according to the 23857current configuration. 23858 23859Usage: $0 [OPTIONS] [FILE]... 23860 23861 -h, --help print this help, then exit 23862 -V, --version print version number, then exit 23863 -q, --quiet do not print progress messages 23864 -d, --debug don't remove temporary files 23865 --recheck update $as_me by reconfiguring in the same conditions 23866 --file=FILE[:TEMPLATE] 23867 instantiate the configuration file FILE 23868 --header=FILE[:TEMPLATE] 23869 instantiate the configuration header FILE 23870 23871Configuration files: 23872$config_files 23873 23874Configuration headers: 23875$config_headers 23876 23877Configuration commands: 23878$config_commands 23879 23880Report bugs to <bug-autoconf@gnu.org>." 23881_ACEOF 23882 23883cat >>$CONFIG_STATUS <<_ACEOF 23884ac_cs_version="\\ 23885config.status 23886configured by $0, generated by GNU Autoconf 2.59, 23887 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 23888 23889Copyright (C) 2003 Free Software Foundation, Inc. 23890This config.status script is free software; the Free Software Foundation 23891gives unlimited permission to copy, distribute and modify it." 23892srcdir=$srcdir 23893INSTALL="$INSTALL" 23894_ACEOF 23895 23896cat >>$CONFIG_STATUS <<\_ACEOF 23897# If no file are specified by the user, then we need to provide default 23898# value. By we need to know if files were specified by the user. 23899ac_need_defaults=: 23900while test $# != 0 23901do 23902 case $1 in 23903 --*=*) 23904 ac_option=`expr "x$1" : 'x\([^=]*\)='` 23905 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 23906 ac_shift=: 23907 ;; 23908 -*) 23909 ac_option=$1 23910 ac_optarg=$2 23911 ac_shift=shift 23912 ;; 23913 *) # This is not an option, so the user has probably given explicit 23914 # arguments. 23915 ac_option=$1 23916 ac_need_defaults=false;; 23917 esac 23918 23919 case $ac_option in 23920 # Handling of the options. 23921_ACEOF 23922cat >>$CONFIG_STATUS <<\_ACEOF 23923 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23924 ac_cs_recheck=: ;; 23925 --version | --vers* | -V ) 23926 echo "$ac_cs_version"; exit 0 ;; 23927 --he | --h) 23928 # Conflict between --help and --header 23929 { { echo "$as_me:$LINENO: error: ambiguous option: $1 23930Try \`$0 --help' for more information." >&5 23931echo "$as_me: error: ambiguous option: $1 23932Try \`$0 --help' for more information." >&2;} 23933 { (exit 1); exit 1; }; };; 23934 --help | --hel | -h ) 23935 echo "$ac_cs_usage"; exit 0 ;; 23936 --debug | --d* | -d ) 23937 debug=: ;; 23938 --file | --fil | --fi | --f ) 23939 $ac_shift 23940 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23941 ac_need_defaults=false;; 23942 --header | --heade | --head | --hea ) 23943 $ac_shift 23944 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23945 ac_need_defaults=false;; 23946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23947 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23948 ac_cs_silent=: ;; 23949 23950 # This is an error. 23951 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 23952Try \`$0 --help' for more information." >&5 23953echo "$as_me: error: unrecognized option: $1 23954Try \`$0 --help' for more information." >&2;} 23955 { (exit 1); exit 1; }; } ;; 23956 23957 *) ac_config_targets="$ac_config_targets $1" ;; 23958 23959 esac 23960 shift 23961done 23962 23963ac_configure_extra_args= 23964 23965if $ac_cs_silent; then 23966 exec 6>/dev/null 23967 ac_configure_extra_args="$ac_configure_extra_args --silent" 23968fi 23969 23970_ACEOF 23971cat >>$CONFIG_STATUS <<_ACEOF 23972if \$ac_cs_recheck; then 23973 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23974 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23975fi 23976 23977_ACEOF 23978 23979cat >>$CONFIG_STATUS <<_ACEOF 23980# 23981# INIT-COMMANDS section. 23982# 23983 23984AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23985 23986_ACEOF 23987 23988 23989 23990cat >>$CONFIG_STATUS <<\_ACEOF 23991for ac_config_target in $ac_config_targets 23992do 23993 case "$ac_config_target" in 23994 # Handling of arguments. 23995 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23996 "lineak/Makefile" ) CONFIG_FILES="$CONFIG_FILES lineak/Makefile" ;; 23997 "lineakd/Makefile" ) CONFIG_FILES="$CONFIG_FILES lineakd/Makefile" ;; 23998 "lineakd/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lineakd/docs/Makefile" ;; 23999 "lineakd/docs/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES lineakd/docs/en/Makefile" ;; 24000 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 24001 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24002 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24003 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24004echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24005 { (exit 1); exit 1; }; };; 24006 esac 24007done 24008 24009# If the user did not use the arguments to specify the items to instantiate, 24010# then the envvar interface is used. Set only those that are not. 24011# We use the long form for the default assignment because of an extremely 24012# bizarre bug on SunOS 4.1.3. 24013if $ac_need_defaults; then 24014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24017fi 24018 24019# Have a temporary directory for convenience. Make it in the build tree 24020# simply because there is no reason to put it here, and in addition, 24021# creating and moving files from /tmp can sometimes cause problems. 24022# Create a temporary directory, and hook for its removal unless debugging. 24023$debug || 24024{ 24025 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 24026 trap '{ (exit 1); exit 1; }' 1 2 13 15 24027} 24028 24029# Create a (secure) tmp directory for tmp files. 24030 24031{ 24032 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 24033 test -n "$tmp" && test -d "$tmp" 24034} || 24035{ 24036 tmp=./confstat$$-$RANDOM 24037 (umask 077 && mkdir $tmp) 24038} || 24039{ 24040 echo "$me: cannot create a temporary directory in ." >&2 24041 { (exit 1); exit 1; } 24042} 24043 24044_ACEOF 24045 24046cat >>$CONFIG_STATUS <<_ACEOF 24047 24048# 24049# CONFIG_FILES section. 24050# 24051 24052# No need to generate the scripts if there are no CONFIG_FILES. 24053# This happens for instance when ./config.status config.h 24054if test -n "\$CONFIG_FILES"; then 24055 # Protect against being on the right side of a sed subst in config.status. 24056 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 24057 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 24058s,@SHELL@,$SHELL,;t t 24059s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 24060s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 24061s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 24062s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 24063s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 24064s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 24065s,@exec_prefix@,$exec_prefix,;t t 24066s,@prefix@,$prefix,;t t 24067s,@program_transform_name@,$program_transform_name,;t t 24068s,@bindir@,$bindir,;t t 24069s,@sbindir@,$sbindir,;t t 24070s,@libexecdir@,$libexecdir,;t t 24071s,@datadir@,$datadir,;t t 24072s,@sysconfdir@,$sysconfdir,;t t 24073s,@sharedstatedir@,$sharedstatedir,;t t 24074s,@localstatedir@,$localstatedir,;t t 24075s,@libdir@,$libdir,;t t 24076s,@includedir@,$includedir,;t t 24077s,@oldincludedir@,$oldincludedir,;t t 24078s,@infodir@,$infodir,;t t 24079s,@mandir@,$mandir,;t t 24080s,@build_alias@,$build_alias,;t t 24081s,@host_alias@,$host_alias,;t t 24082s,@target_alias@,$target_alias,;t t 24083s,@DEFS@,$DEFS,;t t 24084s,@ECHO_C@,$ECHO_C,;t t 24085s,@ECHO_N@,$ECHO_N,;t t 24086s,@ECHO_T@,$ECHO_T,;t t 24087s,@LIBS@,$LIBS,;t t 24088s,@build@,$build,;t t 24089s,@build_cpu@,$build_cpu,;t t 24090s,@build_vendor@,$build_vendor,;t t 24091s,@build_os@,$build_os,;t t 24092s,@host@,$host,;t t 24093s,@host_cpu@,$host_cpu,;t t 24094s,@host_vendor@,$host_vendor,;t t 24095s,@host_os@,$host_os,;t t 24096s,@target@,$target,;t t 24097s,@target_cpu@,$target_cpu,;t t 24098s,@target_vendor@,$target_vendor,;t t 24099s,@target_os@,$target_os,;t t 24100s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 24101s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 24102s,@INSTALL_DATA@,$INSTALL_DATA,;t t 24103s,@CYGPATH_W@,$CYGPATH_W,;t t 24104s,@PACKAGE@,$PACKAGE,;t t 24105s,@VERSION@,$VERSION,;t t 24106s,@ACLOCAL@,$ACLOCAL,;t t 24107s,@AUTOCONF@,$AUTOCONF,;t t 24108s,@AUTOMAKE@,$AUTOMAKE,;t t 24109s,@AUTOHEADER@,$AUTOHEADER,;t t 24110s,@MAKEINFO@,$MAKEINFO,;t t 24111s,@AMTAR@,$AMTAR,;t t 24112s,@install_sh@,$install_sh,;t t 24113s,@STRIP@,$STRIP,;t t 24114s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 24115s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 24116s,@mkdir_p@,$mkdir_p,;t t 24117s,@AWK@,$AWK,;t t 24118s,@SET_MAKE@,$SET_MAKE,;t t 24119s,@am__leading_dot@,$am__leading_dot,;t t 24120s,@CC@,$CC,;t t 24121s,@CFLAGS@,$CFLAGS,;t t 24122s,@LDFLAGS@,$LDFLAGS,;t t 24123s,@CPPFLAGS@,$CPPFLAGS,;t t 24124s,@ac_ct_CC@,$ac_ct_CC,;t t 24125s,@EXEEXT@,$EXEEXT,;t t 24126s,@OBJEXT@,$OBJEXT,;t t 24127s,@DEPDIR@,$DEPDIR,;t t 24128s,@am__include@,$am__include,;t t 24129s,@am__quote@,$am__quote,;t t 24130s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 24131s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 24132s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 24133s,@CCDEPMODE@,$CCDEPMODE,;t t 24134s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 24135s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 24136s,@CPP@,$CPP,;t t 24137s,@CXX@,$CXX,;t t 24138s,@CXXFLAGS@,$CXXFLAGS,;t t 24139s,@ac_ct_CXX@,$ac_ct_CXX,;t t 24140s,@CXXDEPMODE@,$CXXDEPMODE,;t t 24141s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 24142s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 24143s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t 24144s,@HAVE_GCC_VISIBILITY@,$HAVE_GCC_VISIBILITY,;t t 24145s,@unsermake_enable_pch_TRUE@,$unsermake_enable_pch_TRUE,;t t 24146s,@unsermake_enable_pch_FALSE@,$unsermake_enable_pch_FALSE,;t t 24147s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t 24148s,@USE_RTTI@,$USE_RTTI,;t t 24149s,@CXXCPP@,$CXXCPP,;t t 24150s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t 24151s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t 24152s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t 24153s,@LDFLAGS_AS_NEEDED@,$LDFLAGS_AS_NEEDED,;t t 24154s,@LDFLAGS_NEW_DTAGS@,$LDFLAGS_NEW_DTAGS,;t t 24155s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t 24156s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t 24157s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t 24158s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t 24159s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t 24160s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t 24161s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t 24162s,@EGREP@,$EGREP,;t t 24163s,@LN_S@,$LN_S,;t t 24164s,@ECHO@,$ECHO,;t t 24165s,@AR@,$AR,;t t 24166s,@ac_ct_AR@,$ac_ct_AR,;t t 24167s,@RANLIB@,$RANLIB,;t t 24168s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 24169s,@F77@,$F77,;t t 24170s,@FFLAGS@,$FFLAGS,;t t 24171s,@ac_ct_F77@,$ac_ct_F77,;t t 24172s,@LIBTOOL@,$LIBTOOL,;t t 24173s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t 24174s,@KDE_CHECK_PLUGIN@,$KDE_CHECK_PLUGIN,;t t 24175s,@all_includes@,$all_includes,;t t 24176s,@all_libraries@,$all_libraries,;t t 24177s,@AUTODIRS@,$AUTODIRS,;t t 24178s,@SEND_TO_KEYBOARD_TRUE@,$SEND_TO_KEYBOARD_TRUE,;t t 24179s,@SEND_TO_KEYBOARD_FALSE@,$SEND_TO_KEYBOARD_FALSE,;t t 24180s,@X_CFLAGS@,$X_CFLAGS,;t t 24181s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 24182s,@X_LIBS@,$X_LIBS,;t t 24183s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 24184s,@HELPER_SUID@,$HELPER_SUID,;t t 24185s,@SETKEYCODES_SUID@,$SETKEYCODES_SUID,;t t 24186s,@EVTEST_TRUE@,$EVTEST_TRUE,;t t 24187s,@EVTEST_FALSE@,$EVTEST_FALSE,;t t 24188s,@EVTEST@,$EVTEST,;t t 24189s,@CYGWIN_TRUE@,$CYGWIN_TRUE,;t t 24190s,@CYGWIN_FALSE@,$CYGWIN_FALSE,;t t 24191s,@CYGWIN@,$CYGWIN,;t t 24192s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t 24193s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t 24194s,@LTLIBOBJS@,$LTLIBOBJS,;t t 24195CEOF 24196 24197_ACEOF 24198 24199 cat >>$CONFIG_STATUS <<\_ACEOF 24200 # Split the substitutions into bite-sized pieces for seds with 24201 # small command number limits, like on Digital OSF/1 and HP-UX. 24202 ac_max_sed_lines=48 24203 ac_sed_frag=1 # Number of current file. 24204 ac_beg=1 # First line for current file. 24205 ac_end=$ac_max_sed_lines # Line after last line for current file. 24206 ac_more_lines=: 24207 ac_sed_cmds= 24208 while $ac_more_lines; do 24209 if test $ac_beg -gt 1; then 24210 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24211 else 24212 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24213 fi 24214 if test ! -s $tmp/subs.frag; then 24215 ac_more_lines=false 24216 else 24217 # The purpose of the label and of the branching condition is to 24218 # speed up the sed processing (if there are no `@' at all, there 24219 # is no need to browse any of the substitutions). 24220 # These are the two extra sed commands mentioned above. 24221 (echo ':t 24222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 24223 if test -z "$ac_sed_cmds"; then 24224 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 24225 else 24226 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 24227 fi 24228 ac_sed_frag=`expr $ac_sed_frag + 1` 24229 ac_beg=$ac_end 24230 ac_end=`expr $ac_end + $ac_max_sed_lines` 24231 fi 24232 done 24233 if test -z "$ac_sed_cmds"; then 24234 ac_sed_cmds=cat 24235 fi 24236fi # test -n "$CONFIG_FILES" 24237 24238_ACEOF 24239cat >>$CONFIG_STATUS <<\_ACEOF 24240for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 24241 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24242 case $ac_file in 24243 - | *:- | *:-:* ) # input from stdin 24244 cat >$tmp/stdin 24245 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24246 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24247 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24248 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24249 * ) ac_file_in=$ac_file.in ;; 24250 esac 24251 24252 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 24253 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24254$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24255 X"$ac_file" : 'X\(//\)[^/]' \| \ 24256 X"$ac_file" : 'X\(//\)$' \| \ 24257 X"$ac_file" : 'X\(/\)' \| \ 24258 . : '\(.\)' 2>/dev/null || 24259echo X"$ac_file" | 24260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24261 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24262 /^X\(\/\/\)$/{ s//\1/; q; } 24263 /^X\(\/\).*/{ s//\1/; q; } 24264 s/.*/./; q'` 24265 { if $as_mkdir_p; then 24266 mkdir -p "$ac_dir" 24267 else 24268 as_dir="$ac_dir" 24269 as_dirs= 24270 while test ! -d "$as_dir"; do 24271 as_dirs="$as_dir $as_dirs" 24272 as_dir=`(dirname "$as_dir") 2>/dev/null || 24273$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24274 X"$as_dir" : 'X\(//\)[^/]' \| \ 24275 X"$as_dir" : 'X\(//\)$' \| \ 24276 X"$as_dir" : 'X\(/\)' \| \ 24277 . : '\(.\)' 2>/dev/null || 24278echo X"$as_dir" | 24279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24280 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24281 /^X\(\/\/\)$/{ s//\1/; q; } 24282 /^X\(\/\).*/{ s//\1/; q; } 24283 s/.*/./; q'` 24284 done 24285 test ! -n "$as_dirs" || mkdir $as_dirs 24286 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24287echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24288 { (exit 1); exit 1; }; }; } 24289 24290 ac_builddir=. 24291 24292if test "$ac_dir" != .; then 24293 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24294 # A "../" for each directory in $ac_dir_suffix. 24295 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24296else 24297 ac_dir_suffix= ac_top_builddir= 24298fi 24299 24300case $srcdir in 24301 .) # No --srcdir option. We are building in place. 24302 ac_srcdir=. 24303 if test -z "$ac_top_builddir"; then 24304 ac_top_srcdir=. 24305 else 24306 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24307 fi ;; 24308 [\\/]* | ?:[\\/]* ) # Absolute path. 24309 ac_srcdir=$srcdir$ac_dir_suffix; 24310 ac_top_srcdir=$srcdir ;; 24311 *) # Relative path. 24312 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24313 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24314esac 24315 24316# Do not use `cd foo && pwd` to compute absolute paths, because 24317# the directories may not exist. 24318case `pwd` in 24319.) ac_abs_builddir="$ac_dir";; 24320*) 24321 case "$ac_dir" in 24322 .) ac_abs_builddir=`pwd`;; 24323 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24324 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24325 esac;; 24326esac 24327case $ac_abs_builddir in 24328.) ac_abs_top_builddir=${ac_top_builddir}.;; 24329*) 24330 case ${ac_top_builddir}. in 24331 .) ac_abs_top_builddir=$ac_abs_builddir;; 24332 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24333 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24334 esac;; 24335esac 24336case $ac_abs_builddir in 24337.) ac_abs_srcdir=$ac_srcdir;; 24338*) 24339 case $ac_srcdir in 24340 .) ac_abs_srcdir=$ac_abs_builddir;; 24341 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24342 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24343 esac;; 24344esac 24345case $ac_abs_builddir in 24346.) ac_abs_top_srcdir=$ac_top_srcdir;; 24347*) 24348 case $ac_top_srcdir in 24349 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24350 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24351 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24352 esac;; 24353esac 24354 24355 24356 case $INSTALL in 24357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24358 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 24359 esac 24360 24361 # Let's still pretend it is `configure' which instantiates (i.e., don't 24362 # use $as_me), people would be surprised to read: 24363 # /* config.h. Generated by config.status. */ 24364 if test x"$ac_file" = x-; then 24365 configure_input= 24366 else 24367 configure_input="$ac_file. " 24368 fi 24369 configure_input=$configure_input"Generated from `echo $ac_file_in | 24370 sed 's,.*/,,'` by configure." 24371 24372 # First look for the input files in the build tree, otherwise in the 24373 # src tree. 24374 ac_file_inputs=`IFS=: 24375 for f in $ac_file_in; do 24376 case $f in 24377 -) echo $tmp/stdin ;; 24378 [\\/$]*) 24379 # Absolute (can't be DOS-style, as IFS=:) 24380 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24381echo "$as_me: error: cannot find input file: $f" >&2;} 24382 { (exit 1); exit 1; }; } 24383 echo "$f";; 24384 *) # Relative 24385 if test -f "$f"; then 24386 # Build tree 24387 echo "$f" 24388 elif test -f "$srcdir/$f"; then 24389 # Source tree 24390 echo "$srcdir/$f" 24391 else 24392 # /dev/null tree 24393 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24394echo "$as_me: error: cannot find input file: $f" >&2;} 24395 { (exit 1); exit 1; }; } 24396 fi;; 24397 esac 24398 done` || { (exit 1); exit 1; } 24399 24400 if test x"$ac_file" != x-; then 24401 { echo "$as_me:$LINENO: creating $ac_file" >&5 24402echo "$as_me: creating $ac_file" >&6;} 24403 rm -f "$ac_file" 24404 fi 24405_ACEOF 24406cat >>$CONFIG_STATUS <<_ACEOF 24407 sed "$ac_vpsub 24408$extrasub 24409_ACEOF 24410cat >>$CONFIG_STATUS <<\_ACEOF 24411:t 24412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24413s,@configure_input@,$configure_input,;t t 24414s,@srcdir@,$ac_srcdir,;t t 24415s,@abs_srcdir@,$ac_abs_srcdir,;t t 24416s,@top_srcdir@,$ac_top_srcdir,;t t 24417s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 24418s,@builddir@,$ac_builddir,;t t 24419s,@abs_builddir@,$ac_abs_builddir,;t t 24420s,@top_builddir@,$ac_top_builddir,;t t 24421s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 24422s,@INSTALL@,$ac_INSTALL,;t t 24423" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 24424 rm -f $tmp/stdin 24425 if test x"$ac_file" != x-; then 24426 mv $tmp/out $ac_file 24427 else 24428 cat $tmp/out 24429 rm -f $tmp/out 24430 fi 24431 24432done 24433_ACEOF 24434cat >>$CONFIG_STATUS <<\_ACEOF 24435 24436# 24437# CONFIG_HEADER section. 24438# 24439 24440# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 24441# NAME is the cpp macro being defined and VALUE is the value it is being given. 24442# 24443# ac_d sets the value in "#define NAME VALUE" lines. 24444ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 24445ac_dB='[ ].*$,\1#\2' 24446ac_dC=' ' 24447ac_dD=',;t' 24448# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 24449ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 24450ac_uB='$,\1#\2define\3' 24451ac_uC=' ' 24452ac_uD=',;t' 24453 24454for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 24455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24456 case $ac_file in 24457 - | *:- | *:-:* ) # input from stdin 24458 cat >$tmp/stdin 24459 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24461 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24462 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24463 * ) ac_file_in=$ac_file.in ;; 24464 esac 24465 24466 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 24467echo "$as_me: creating $ac_file" >&6;} 24468 24469 # First look for the input files in the build tree, otherwise in the 24470 # src tree. 24471 ac_file_inputs=`IFS=: 24472 for f in $ac_file_in; do 24473 case $f in 24474 -) echo $tmp/stdin ;; 24475 [\\/$]*) 24476 # Absolute (can't be DOS-style, as IFS=:) 24477 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24478echo "$as_me: error: cannot find input file: $f" >&2;} 24479 { (exit 1); exit 1; }; } 24480 # Do quote $f, to prevent DOS paths from being IFS'd. 24481 echo "$f";; 24482 *) # Relative 24483 if test -f "$f"; then 24484 # Build tree 24485 echo "$f" 24486 elif test -f "$srcdir/$f"; then 24487 # Source tree 24488 echo "$srcdir/$f" 24489 else 24490 # /dev/null tree 24491 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 24492echo "$as_me: error: cannot find input file: $f" >&2;} 24493 { (exit 1); exit 1; }; } 24494 fi;; 24495 esac 24496 done` || { (exit 1); exit 1; } 24497 # Remove the trailing spaces. 24498 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 24499 24500_ACEOF 24501 24502# Transform confdefs.h into two sed scripts, `conftest.defines' and 24503# `conftest.undefs', that substitutes the proper values into 24504# config.h.in to produce config.h. The first handles `#define' 24505# templates, and the second `#undef' templates. 24506# And first: Protect against being on the right side of a sed subst in 24507# config.status. Protect against being in an unquoted here document 24508# in config.status. 24509rm -f conftest.defines conftest.undefs 24510# Using a here document instead of a string reduces the quoting nightmare. 24511# Putting comments in sed scripts is not portable. 24512# 24513# `end' is used to avoid that the second main sed command (meant for 24514# 0-ary CPP macros) applies to n-ary macro definitions. 24515# See the Autoconf documentation for `clear'. 24516cat >confdef2sed.sed <<\_ACEOF 24517s/[\\&,]/\\&/g 24518s,[\\$`],\\&,g 24519t clear 24520: clear 24521s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 24522t end 24523s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 24524: end 24525_ACEOF 24526# If some macros were called several times there might be several times 24527# the same #defines, which is useless. Nevertheless, we may not want to 24528# sort them, since we want the *last* AC-DEFINE to be honored. 24529uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 24530sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 24531rm -f confdef2sed.sed 24532 24533# This sed command replaces #undef with comments. This is necessary, for 24534# example, in the case of _POSIX_SOURCE, which is predefined and required 24535# on some systems where configure will not decide to define it. 24536cat >>conftest.undefs <<\_ACEOF 24537s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 24538_ACEOF 24539 24540# Break up conftest.defines because some shells have a limit on the size 24541# of here documents, and old seds have small limits too (100 cmds). 24542echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 24543echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 24544echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 24545echo ' :' >>$CONFIG_STATUS 24546rm -f conftest.tail 24547while grep . conftest.defines >/dev/null 24548do 24549 # Write a limited-size here document to $tmp/defines.sed. 24550 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 24551 # Speed up: don't consider the non `#define' lines. 24552 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 24553 # Work around the forget-to-reset-the-flag bug. 24554 echo 't clr' >>$CONFIG_STATUS 24555 echo ': clr' >>$CONFIG_STATUS 24556 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 24557 echo 'CEOF 24558 sed -f $tmp/defines.sed $tmp/in >$tmp/out 24559 rm -f $tmp/in 24560 mv $tmp/out $tmp/in 24561' >>$CONFIG_STATUS 24562 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 24563 rm -f conftest.defines 24564 mv conftest.tail conftest.defines 24565done 24566rm -f conftest.defines 24567echo ' fi # grep' >>$CONFIG_STATUS 24568echo >>$CONFIG_STATUS 24569 24570# Break up conftest.undefs because some shells have a limit on the size 24571# of here documents, and old seds have small limits too (100 cmds). 24572echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 24573rm -f conftest.tail 24574while grep . conftest.undefs >/dev/null 24575do 24576 # Write a limited-size here document to $tmp/undefs.sed. 24577 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 24578 # Speed up: don't consider the non `#undef' 24579 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 24580 # Work around the forget-to-reset-the-flag bug. 24581 echo 't clr' >>$CONFIG_STATUS 24582 echo ': clr' >>$CONFIG_STATUS 24583 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 24584 echo 'CEOF 24585 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 24586 rm -f $tmp/in 24587 mv $tmp/out $tmp/in 24588' >>$CONFIG_STATUS 24589 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 24590 rm -f conftest.undefs 24591 mv conftest.tail conftest.undefs 24592done 24593rm -f conftest.undefs 24594 24595cat >>$CONFIG_STATUS <<\_ACEOF 24596 # Let's still pretend it is `configure' which instantiates (i.e., don't 24597 # use $as_me), people would be surprised to read: 24598 # /* config.h. Generated by config.status. */ 24599 if test x"$ac_file" = x-; then 24600 echo "/* Generated by configure. */" >$tmp/config.h 24601 else 24602 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 24603 fi 24604 cat $tmp/in >>$tmp/config.h 24605 rm -f $tmp/in 24606 if test x"$ac_file" != x-; then 24607 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 24608 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24609echo "$as_me: $ac_file is unchanged" >&6;} 24610 else 24611 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24612$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24613 X"$ac_file" : 'X\(//\)[^/]' \| \ 24614 X"$ac_file" : 'X\(//\)$' \| \ 24615 X"$ac_file" : 'X\(/\)' \| \ 24616 . : '\(.\)' 2>/dev/null || 24617echo X"$ac_file" | 24618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24619 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24620 /^X\(\/\/\)$/{ s//\1/; q; } 24621 /^X\(\/\).*/{ s//\1/; q; } 24622 s/.*/./; q'` 24623 { if $as_mkdir_p; then 24624 mkdir -p "$ac_dir" 24625 else 24626 as_dir="$ac_dir" 24627 as_dirs= 24628 while test ! -d "$as_dir"; do 24629 as_dirs="$as_dir $as_dirs" 24630 as_dir=`(dirname "$as_dir") 2>/dev/null || 24631$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24632 X"$as_dir" : 'X\(//\)[^/]' \| \ 24633 X"$as_dir" : 'X\(//\)$' \| \ 24634 X"$as_dir" : 'X\(/\)' \| \ 24635 . : '\(.\)' 2>/dev/null || 24636echo X"$as_dir" | 24637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24638 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24639 /^X\(\/\/\)$/{ s//\1/; q; } 24640 /^X\(\/\).*/{ s//\1/; q; } 24641 s/.*/./; q'` 24642 done 24643 test ! -n "$as_dirs" || mkdir $as_dirs 24644 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24645echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24646 { (exit 1); exit 1; }; }; } 24647 24648 rm -f $ac_file 24649 mv $tmp/config.h $ac_file 24650 fi 24651 else 24652 cat $tmp/config.h 24653 rm -f $tmp/config.h 24654 fi 24655# Compute $ac_file's index in $config_headers. 24656_am_stamp_count=1 24657for _am_header in $config_headers :; do 24658 case $_am_header in 24659 $ac_file | $ac_file:* ) 24660 break ;; 24661 * ) 24662 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24663 esac 24664done 24665echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 24666$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24667 X$ac_file : 'X\(//\)[^/]' \| \ 24668 X$ac_file : 'X\(//\)$' \| \ 24669 X$ac_file : 'X\(/\)' \| \ 24670 . : '\(.\)' 2>/dev/null || 24671echo X$ac_file | 24672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24673 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24674 /^X\(\/\/\)$/{ s//\1/; q; } 24675 /^X\(\/\).*/{ s//\1/; q; } 24676 s/.*/./; q'`/stamp-h$_am_stamp_count 24677done 24678_ACEOF 24679cat >>$CONFIG_STATUS <<\_ACEOF 24680 24681# 24682# CONFIG_COMMANDS section. 24683# 24684for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 24685 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 24686 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 24687 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 24688$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24689 X"$ac_dest" : 'X\(//\)[^/]' \| \ 24690 X"$ac_dest" : 'X\(//\)$' \| \ 24691 X"$ac_dest" : 'X\(/\)' \| \ 24692 . : '\(.\)' 2>/dev/null || 24693echo X"$ac_dest" | 24694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24695 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24696 /^X\(\/\/\)$/{ s//\1/; q; } 24697 /^X\(\/\).*/{ s//\1/; q; } 24698 s/.*/./; q'` 24699 { if $as_mkdir_p; then 24700 mkdir -p "$ac_dir" 24701 else 24702 as_dir="$ac_dir" 24703 as_dirs= 24704 while test ! -d "$as_dir"; do 24705 as_dirs="$as_dir $as_dirs" 24706 as_dir=`(dirname "$as_dir") 2>/dev/null || 24707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24708 X"$as_dir" : 'X\(//\)[^/]' \| \ 24709 X"$as_dir" : 'X\(//\)$' \| \ 24710 X"$as_dir" : 'X\(/\)' \| \ 24711 . : '\(.\)' 2>/dev/null || 24712echo X"$as_dir" | 24713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24714 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24715 /^X\(\/\/\)$/{ s//\1/; q; } 24716 /^X\(\/\).*/{ s//\1/; q; } 24717 s/.*/./; q'` 24718 done 24719 test ! -n "$as_dirs" || mkdir $as_dirs 24720 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 24721echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 24722 { (exit 1); exit 1; }; }; } 24723 24724 ac_builddir=. 24725 24726if test "$ac_dir" != .; then 24727 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24728 # A "../" for each directory in $ac_dir_suffix. 24729 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 24730else 24731 ac_dir_suffix= ac_top_builddir= 24732fi 24733 24734case $srcdir in 24735 .) # No --srcdir option. We are building in place. 24736 ac_srcdir=. 24737 if test -z "$ac_top_builddir"; then 24738 ac_top_srcdir=. 24739 else 24740 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 24741 fi ;; 24742 [\\/]* | ?:[\\/]* ) # Absolute path. 24743 ac_srcdir=$srcdir$ac_dir_suffix; 24744 ac_top_srcdir=$srcdir ;; 24745 *) # Relative path. 24746 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 24747 ac_top_srcdir=$ac_top_builddir$srcdir ;; 24748esac 24749 24750# Do not use `cd foo && pwd` to compute absolute paths, because 24751# the directories may not exist. 24752case `pwd` in 24753.) ac_abs_builddir="$ac_dir";; 24754*) 24755 case "$ac_dir" in 24756 .) ac_abs_builddir=`pwd`;; 24757 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 24758 *) ac_abs_builddir=`pwd`/"$ac_dir";; 24759 esac;; 24760esac 24761case $ac_abs_builddir in 24762.) ac_abs_top_builddir=${ac_top_builddir}.;; 24763*) 24764 case ${ac_top_builddir}. in 24765 .) ac_abs_top_builddir=$ac_abs_builddir;; 24766 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 24767 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 24768 esac;; 24769esac 24770case $ac_abs_builddir in 24771.) ac_abs_srcdir=$ac_srcdir;; 24772*) 24773 case $ac_srcdir in 24774 .) ac_abs_srcdir=$ac_abs_builddir;; 24775 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 24776 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 24777 esac;; 24778esac 24779case $ac_abs_builddir in 24780.) ac_abs_top_srcdir=$ac_top_srcdir;; 24781*) 24782 case $ac_top_srcdir in 24783 .) ac_abs_top_srcdir=$ac_abs_builddir;; 24784 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 24785 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 24786 esac;; 24787esac 24788 24789 24790 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 24791echo "$as_me: executing $ac_dest commands" >&6;} 24792 case $ac_dest in 24793 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24794 # Strip MF so we end up with the name of the file. 24795 mf=`echo "$mf" | sed -e 's/:.*$//'` 24796 # Check whether this is an Automake generated Makefile or not. 24797 # We used to match only the files named `Makefile.in', but 24798 # some people rename them; so instead we look at the file content. 24799 # Grep'ing the first line is not enough: some people post-process 24800 # each Makefile.in and add a new line on top of each file to say so. 24801 # So let's grep whole file. 24802 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24803 dirpart=`(dirname "$mf") 2>/dev/null || 24804$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24805 X"$mf" : 'X\(//\)[^/]' \| \ 24806 X"$mf" : 'X\(//\)$' \| \ 24807 X"$mf" : 'X\(/\)' \| \ 24808 . : '\(.\)' 2>/dev/null || 24809echo X"$mf" | 24810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24811 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24812 /^X\(\/\/\)$/{ s//\1/; q; } 24813 /^X\(\/\).*/{ s//\1/; q; } 24814 s/.*/./; q'` 24815 else 24816 continue 24817 fi 24818 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue 24819 # Extract the definition of DEP_FILES from the Makefile without 24820 # running `make'. 24821 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24822 test -z "$DEPDIR" && continue 24823 # When using ansi2knr, U may be empty or an underscore; expand it 24824 U=`sed -n 's/^U = //p' < "$mf"` 24825 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 24826 # We invoke sed twice because it is the simplest approach to 24827 # changing $(DEPDIR) to its actual value in the expansion. 24828 for file in `sed -n ' 24829 /^DEP_FILES = .*\\\\$/ { 24830 s/^DEP_FILES = // 24831 :loop 24832 s/\\\\$// 24833 p 24834 n 24835 /\\\\$/ b loop 24836 p 24837 } 24838 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 24839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24840 # Make sure the directory exists. 24841 test -f "$dirpart/$file" && continue 24842 fdir=`(dirname "$file") 2>/dev/null || 24843$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24844 X"$file" : 'X\(//\)[^/]' \| \ 24845 X"$file" : 'X\(//\)$' \| \ 24846 X"$file" : 'X\(/\)' \| \ 24847 . : '\(.\)' 2>/dev/null || 24848echo X"$file" | 24849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24850 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24851 /^X\(\/\/\)$/{ s//\1/; q; } 24852 /^X\(\/\).*/{ s//\1/; q; } 24853 s/.*/./; q'` 24854 { if $as_mkdir_p; then 24855 mkdir -p $dirpart/$fdir 24856 else 24857 as_dir=$dirpart/$fdir 24858 as_dirs= 24859 while test ! -d "$as_dir"; do 24860 as_dirs="$as_dir $as_dirs" 24861 as_dir=`(dirname "$as_dir") 2>/dev/null || 24862$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24863 X"$as_dir" : 'X\(//\)[^/]' \| \ 24864 X"$as_dir" : 'X\(//\)$' \| \ 24865 X"$as_dir" : 'X\(/\)' \| \ 24866 . : '\(.\)' 2>/dev/null || 24867echo X"$as_dir" | 24868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24869 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24870 /^X\(\/\/\)$/{ s//\1/; q; } 24871 /^X\(\/\).*/{ s//\1/; q; } 24872 s/.*/./; q'` 24873 done 24874 test ! -n "$as_dirs" || mkdir $as_dirs 24875 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 24876echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 24877 { (exit 1); exit 1; }; }; } 24878 24879 # echo "creating $dirpart/$file" 24880 echo '# dummy' > "$dirpart/$file" 24881 done 24882done 24883 ;; 24884 esac 24885done 24886_ACEOF 24887 24888cat >>$CONFIG_STATUS <<\_ACEOF 24889 24890{ (exit 0); exit 0; } 24891_ACEOF 24892chmod +x $CONFIG_STATUS 24893ac_clean_files=$ac_clean_files_save 24894 24895 24896# configure is writing to config.log, and then calls config.status. 24897# config.status does its own redirection, appending to config.log. 24898# Unfortunately, on DOS this fails, as config.log is still kept open 24899# by configure, so config.status won't be able to write to it; its 24900# output is simply discarded. So we exec the FD to /dev/null, 24901# effectively closing config.log, so it can be properly (re)opened and 24902# appended to by config.status. When coming back to configure, we 24903# need to make the FD available again. 24904if test "$no_create" != yes; then 24905 ac_cs_success=: 24906 ac_config_status_args= 24907 test "$silent" = yes && 24908 ac_config_status_args="$ac_config_status_args --quiet" 24909 exec 5>/dev/null 24910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24911 exec 5>>config.log 24912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24913 # would make configure fail if this is the last instruction. 24914 $ac_cs_success || { (exit 1); exit 1; } 24915fi 24916 24917# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure 24918if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then 24919 # And if so, warn when they don't match 24920 if test "$kde_libs_prefix" != "$given_prefix"; then 24921 # And if kde doesn't know about the prefix yet 24922 echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null 24923 if test $? -ne 0; then 24924 echo "" 24925 echo "Warning: you chose to install this package in $given_prefix," 24926 echo "but KDE was found in $kde_libs_prefix." 24927 echo "For this to work, you will need to tell KDE about the new prefix, by ensuring" 24928 echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix" 24929 echo "Then restart KDE." 24930 echo "" 24931 fi 24932 fi 24933fi 24934 24935if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then 24936 echo "" 24937 echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility" 24938 echo "was not included. Therefore, GCC symbol visibility support remains disabled." 24939 echo "" 24940 echo "For better performance, consider including the Qt visibility supporting patch" 24941 echo "located at:" 24942 echo "" 24943 echo "http://bugs.kde.org/show_bug.cgi?id=109386" 24944 echo "" 24945 echo "and recompile all of Qt and KDE. Note, this is entirely optional and" 24946 echo "everything will continue to work just fine without it." 24947 echo "" 24948fi 24949 24950if test "$all_tests" = "bad"; then 24951 if test ! "$cache_file" = "/dev/null"; then 24952 echo "" 24953 echo "Please remove the file $cache_file after changing your setup" 24954 echo "so that configure will find the changes next time." 24955 echo "" 24956 fi 24957else 24958 echo "" 24959 echo "Good - your configure finished. Start make now" 24960 echo "" 24961fi 24962