1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.53. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10 11# Check that we are running under the correct shell. 12SHELL=${CONFIG_SHELL-/bin/sh} 13 14case X$ECHO in 15X*--fallback-echo) 16 # Remove one level of quotation (which was required for Make). 17 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 18 ;; 19esac 20 21echo=${ECHO-echo} 22if test "X$1" = X--no-reexec; then 23 # Discard the --no-reexec flag, and continue. 24 shift 25elif test "X$1" = X--fallback-echo; then 26 # Avoid inline document here, it may be left over 27 : 28elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 29 # Yippee, $echo works! 30 : 31else 32 # Restart under the correct shell. 33 exec $SHELL "$0" --no-reexec ${1+"$@"} 34fi 35 36if test "X$1" = X--fallback-echo; then 37 # used as fallback echo 38 shift 39 cat <<EOF 40$* 41EOF 42 exit 0 43fi 44 45# The HP-UX ksh and POSIX shell print the target directory to stdout 46# if CDPATH is set. 47if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 48 49if test -z "$ECHO"; then 50if test "X${echo_test_string+set}" != Xset; then 51# find a string as large as possible, as long as the shell can cope with it 52 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 53 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 54 if (echo_test_string="`eval $cmd`") 2>/dev/null && 55 echo_test_string="`eval $cmd`" && 56 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 57 then 58 break 59 fi 60 done 61fi 62 63if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 64 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 65 test "X$echo_testing_string" = "X$echo_test_string"; then 66 : 67else 68 # The Solaris, AIX, and Digital Unix default echo programs unquote 69 # backslashes. This makes it impossible to quote backslashes using 70 # echo "$something" | sed 's/\\/\\\\/g' 71 # 72 # So, first we look for a working echo in the user's PATH. 73 74 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 75 for dir in $PATH /usr/ucb; do 76 IFS="$lt_save_ifs" 77 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 78 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 79 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 80 test "X$echo_testing_string" = "X$echo_test_string"; then 81 echo="$dir/echo" 82 break 83 fi 84 done 85 IFS="$lt_save_ifs" 86 87 if test "X$echo" = Xecho; then 88 # We didn't find a better echo, so look for alternatives. 89 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 90 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 91 test "X$echo_testing_string" = "X$echo_test_string"; then 92 # This shell has a builtin print -r that does the trick. 93 echo='print -r' 94 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 95 test "X$CONFIG_SHELL" != X/bin/ksh; then 96 # If we have ksh, try running configure again with it. 97 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 98 export ORIGINAL_CONFIG_SHELL 99 CONFIG_SHELL=/bin/ksh 100 export CONFIG_SHELL 101 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 102 else 103 # Try using printf. 104 echo='printf %s\n' 105 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 106 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 107 test "X$echo_testing_string" = "X$echo_test_string"; then 108 # Cool, printf works 109 : 110 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 111 test "X$echo_testing_string" = 'X\t' && 112 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 113 test "X$echo_testing_string" = "X$echo_test_string"; then 114 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 115 export CONFIG_SHELL 116 SHELL="$CONFIG_SHELL" 117 export SHELL 118 echo="$CONFIG_SHELL $0 --fallback-echo" 119 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 120 test "X$echo_testing_string" = 'X\t' && 121 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 122 test "X$echo_testing_string" = "X$echo_test_string"; then 123 echo="$CONFIG_SHELL $0 --fallback-echo" 124 else 125 # maybe with a smaller string... 126 prev=: 127 128 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 129 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 130 then 131 break 132 fi 133 prev="$cmd" 134 done 135 136 if test "$prev" != 'sed 50q "$0"'; then 137 echo_test_string=`eval $prev` 138 export echo_test_string 139 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 140 else 141 # Oops. We lost completely, so just stick with echo. 142 echo=echo 143 fi 144 fi 145 fi 146 fi 147fi 148fi 149 150# Copy echo and quote the copy suitably for passing to libtool from 151# the Makefile, instead of quoting the original, which is used later. 152ECHO=$echo 153if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 154 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 155fi 156 157 158 159 160tagnames=`echo "$tagnames,CXX" | sed 's/^,//'` 161 162tagnames=`echo "$tagnames,F77" | sed 's/^,//'` 163 164if expr a : '\(a\)' >/dev/null 2>&1; then 165 as_expr=expr 166else 167 as_expr=false 168fi 169 170 171## --------------------- ## 172## M4sh Initialization. ## 173## --------------------- ## 174 175# Be Bourne compatible 176if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 177 emulate sh 178 NULLCMD=: 179elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 180 set -o posix 181fi 182 183# NLS nuisances. 184# Support unset when possible. 185if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 186 as_unset=unset 187else 188 as_unset=false 189fi 190 191(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 192 { $as_unset LANG || test "${LANG+set}" != set; } || 193 { LANG=C; export LANG; } 194(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 195 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 196 { LC_ALL=C; export LC_ALL; } 197(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 198 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 199 { LC_TIME=C; export LC_TIME; } 200(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 201 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 202 { LC_CTYPE=C; export LC_CTYPE; } 203(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 204 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 205 { LANGUAGE=C; export LANGUAGE; } 206(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 207 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 208 { LC_COLLATE=C; export LC_COLLATE; } 209(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 210 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 211 { LC_NUMERIC=C; export LC_NUMERIC; } 212(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 213 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 214 { LC_MESSAGES=C; export LC_MESSAGES; } 215 216 217# Name of the executable. 218as_me=`(basename "$0") 2>/dev/null || 219$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 220 X"$0" : 'X\(//\)$' \| \ 221 X"$0" : 'X\(/\)$' \| \ 222 . : '\(.\)' 2>/dev/null || 223echo X/"$0" | 224 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 225 /^X\/\(\/\/\)$/{ s//\1/; q; } 226 /^X\/\(\/\).*/{ s//\1/; q; } 227 s/.*/./; q'` 228 229# PATH needs CR, and LINENO needs CR and PATH. 230# Avoid depending upon Character Ranges. 231as_cr_letters='abcdefghijklmnopqrstuvwxyz' 232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 233as_cr_Letters=$as_cr_letters$as_cr_LETTERS 234as_cr_digits='0123456789' 235as_cr_alnum=$as_cr_Letters$as_cr_digits 236 237# The user is always right. 238if test "${PATH_SEPARATOR+set}" != set; then 239 echo "#! /bin/sh" >conftest.sh 240 echo "exit 0" >>conftest.sh 241 chmod +x conftest.sh 242 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 243 PATH_SEPARATOR=';' 244 else 245 PATH_SEPARATOR=: 246 fi 247 rm -f conftest.sh 248fi 249 250 251 as_lineno_1=$LINENO 252 as_lineno_2=$LINENO 253 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 254 test "x$as_lineno_1" != "x$as_lineno_2" && 255 test "x$as_lineno_3" = "x$as_lineno_2" || { 256 # Find who we are. Look in the path if we contain no path at all 257 # relative or not. 258 case $0 in 259 *[\\/]* ) as_myself=$0 ;; 260 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 261for as_dir in $PATH 262do 263 IFS=$as_save_IFS 264 test -z "$as_dir" && as_dir=. 265 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 266done 267 268 ;; 269 esac 270 # We did not find ourselves, most probably we were run as `sh COMMAND' 271 # in which case we are not to be found in the path. 272 if test "x$as_myself" = x; then 273 as_myself=$0 274 fi 275 if test ! -f "$as_myself"; then 276 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 277 { (exit 1); exit 1; }; } 278 fi 279 case $CONFIG_SHELL in 280 '') 281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 282for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 283do 284 IFS=$as_save_IFS 285 test -z "$as_dir" && as_dir=. 286 for as_base in sh bash ksh sh5; do 287 case $as_dir in 288 /*) 289 if ("$as_dir/$as_base" -c ' 290 as_lineno_1=$LINENO 291 as_lineno_2=$LINENO 292 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 293 test "x$as_lineno_1" != "x$as_lineno_2" && 294 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 295 CONFIG_SHELL=$as_dir/$as_base 296 export CONFIG_SHELL 297 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 298 fi;; 299 esac 300 done 301done 302;; 303 esac 304 305 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 306 # uniformly replaced by the line number. The first 'sed' inserts a 307 # line-number line before each line; the second 'sed' does the real 308 # work. The second script uses 'N' to pair each line-number line 309 # with the numbered line, and appends trailing '-' during 310 # substitution so that $LINENO is not a special case at line end. 311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 312 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 313 sed '=' <$as_myself | 314 sed ' 315 N 316 s,$,-, 317 : loop 318 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 319 t loop 320 s,-$,, 321 s,^['$as_cr_digits']*\n,, 322 ' >$as_me.lineno && 323 chmod +x $as_me.lineno || 324 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 325 { (exit 1); exit 1; }; } 326 327 # Don't try to exec as it changes $[0], causing all sort of problems 328 # (the dirname of $[0] is not the place where we might find the 329 # original and so on. Autoconf is especially sensible to this). 330 . ./$as_me.lineno 331 # Exit status is that of the last command. 332 exit 333} 334 335 336case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 337 *c*,-n*) ECHO_N= ECHO_C=' 338' ECHO_T=' ' ;; 339 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 340 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 341esac 342 343if expr a : '\(a\)' >/dev/null 2>&1; then 344 as_expr=expr 345else 346 as_expr=false 347fi 348 349rm -f conf$$ conf$$.exe conf$$.file 350echo >conf$$.file 351if ln -s conf$$.file conf$$ 2>/dev/null; then 352 # We could just check for DJGPP; but this test a) works b) is more generic 353 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 354 if test -f conf$$.exe; then 355 # Don't use ln at all; we don't have any links 356 as_ln_s='cp -p' 357 else 358 as_ln_s='ln -s' 359 fi 360elif ln conf$$.file conf$$ 2>/dev/null; then 361 as_ln_s=ln 362else 363 as_ln_s='cp -p' 364fi 365rm -f conf$$ conf$$.exe conf$$.file 366 367as_executable_p="test -f" 368 369# Sed expression to map a string onto a valid CPP name. 370as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 371 372# Sed expression to map a string onto a valid variable name. 373as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 374 375 376# IFS 377# We need space, tab and new line, in precisely that order. 378as_nl=' 379' 380IFS=" $as_nl" 381 382# CDPATH. 383$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 384 385 386# Name of the host. 387# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 388# so uname gets run too. 389ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 390 391exec 6>&1 392 393# 394# Initializations. 395# 396ac_default_prefix=/usr/local 397cross_compiling=no 398subdirs= 399MFLAGS= 400MAKEFLAGS= 401SHELL=${CONFIG_SHELL-/bin/sh} 402 403# Maximum number of lines to put in a shell here document. 404# This variable seems obsolete. It should probably be removed, and 405# only ac_max_sed_lines should be used. 406: ${ac_max_here_lines=38} 407 408# Identity of this package. 409PACKAGE_NAME= 410PACKAGE_TARNAME= 411PACKAGE_VERSION= 412PACKAGE_STRING= 413PACKAGE_BUGREPORT= 414 415ac_unique_file="Wnn/conv/cvt_head.h" 416# Factoring default headers for most tests. 417ac_includes_default="\ 418#include <stdio.h> 419#if HAVE_SYS_TYPES_H 420# include <sys/types.h> 421#endif 422#if HAVE_SYS_STAT_H 423# include <sys/stat.h> 424#endif 425#if STDC_HEADERS 426# include <stdlib.h> 427# include <stddef.h> 428#else 429# if HAVE_STDLIB_H 430# include <stdlib.h> 431# endif 432#endif 433#if HAVE_STRING_H 434# if !STDC_HEADERS && HAVE_MEMORY_H 435# include <memory.h> 436# endif 437# include <string.h> 438#endif 439#if HAVE_STRINGS_H 440# include <strings.h> 441#endif 442#if HAVE_INTTYPES_H 443# include <inttypes.h> 444#else 445# if HAVE_STDINT_H 446# include <stdint.h> 447# endif 448#endif 449#if HAVE_UNISTD_H 450# include <unistd.h> 451#endif" 452 453 454# Initialize some variables set by options. 455ac_init_help= 456ac_init_version=false 457# The variables have the same names as the options, with 458# dashes changed to underlines. 459cache_file=/dev/null 460exec_prefix=NONE 461no_create= 462no_recursion= 463prefix=NONE 464program_prefix=NONE 465program_suffix=NONE 466program_transform_name=s,x,x, 467silent= 468site= 469srcdir= 470verbose= 471x_includes=NONE 472x_libraries=NONE 473 474# Installation directory options. 475# These are left unexpanded so users can "make install exec_prefix=/foo" 476# and all the variables that are supposed to be based on exec_prefix 477# by default will actually change. 478# Use braces instead of parens because sh, perl, etc. also accept them. 479bindir='${exec_prefix}/bin' 480sbindir='${exec_prefix}/sbin' 481libexecdir='${exec_prefix}/libexec' 482datadir='${prefix}/share' 483sysconfdir='${prefix}/etc' 484sharedstatedir='${prefix}/com' 485localstatedir='${prefix}/var' 486libdir='${exec_prefix}/lib' 487includedir='${prefix}/include' 488oldincludedir='/usr/include' 489infodir='${prefix}/info' 490mandir='${prefix}/man' 491 492ac_prev= 493for ac_option 494do 495 # If the previous option needs an argument, assign it. 496 if test -n "$ac_prev"; then 497 eval "$ac_prev=\$ac_option" 498 ac_prev= 499 continue 500 fi 501 502 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 503 504 # Accept the important Cygnus configure options, so we can diagnose typos. 505 506 case $ac_option in 507 508 -bindir | --bindir | --bindi | --bind | --bin | --bi) 509 ac_prev=bindir ;; 510 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 511 bindir=$ac_optarg ;; 512 513 -build | --build | --buil | --bui | --bu) 514 ac_prev=build_alias ;; 515 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 516 build_alias=$ac_optarg ;; 517 518 -cache-file | --cache-file | --cache-fil | --cache-fi \ 519 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 520 ac_prev=cache_file ;; 521 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 522 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 523 cache_file=$ac_optarg ;; 524 525 --config-cache | -C) 526 cache_file=config.cache ;; 527 528 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 529 ac_prev=datadir ;; 530 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 531 | --da=*) 532 datadir=$ac_optarg ;; 533 534 -disable-* | --disable-*) 535 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 536 # Reject names that are not valid shell variable names. 537 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 538 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 539 { (exit 1); exit 1; }; } 540 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 541 eval "enable_$ac_feature=no" ;; 542 543 -enable-* | --enable-*) 544 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 545 # Reject names that are not valid shell variable names. 546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 548 { (exit 1); exit 1; }; } 549 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 550 case $ac_option in 551 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 552 *) ac_optarg=yes ;; 553 esac 554 eval "enable_$ac_feature='$ac_optarg'" ;; 555 556 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 557 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 558 | --exec | --exe | --ex) 559 ac_prev=exec_prefix ;; 560 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 561 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 562 | --exec=* | --exe=* | --ex=*) 563 exec_prefix=$ac_optarg ;; 564 565 -gas | --gas | --ga | --g) 566 # Obsolete; use --with-gas. 567 with_gas=yes ;; 568 569 -help | --help | --hel | --he | -h) 570 ac_init_help=long ;; 571 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 572 ac_init_help=recursive ;; 573 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 574 ac_init_help=short ;; 575 576 -host | --host | --hos | --ho) 577 ac_prev=host_alias ;; 578 -host=* | --host=* | --hos=* | --ho=*) 579 host_alias=$ac_optarg ;; 580 581 -includedir | --includedir | --includedi | --included | --include \ 582 | --includ | --inclu | --incl | --inc) 583 ac_prev=includedir ;; 584 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 585 | --includ=* | --inclu=* | --incl=* | --inc=*) 586 includedir=$ac_optarg ;; 587 588 -infodir | --infodir | --infodi | --infod | --info | --inf) 589 ac_prev=infodir ;; 590 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 591 infodir=$ac_optarg ;; 592 593 -libdir | --libdir | --libdi | --libd) 594 ac_prev=libdir ;; 595 -libdir=* | --libdir=* | --libdi=* | --libd=*) 596 libdir=$ac_optarg ;; 597 598 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 599 | --libexe | --libex | --libe) 600 ac_prev=libexecdir ;; 601 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 602 | --libexe=* | --libex=* | --libe=*) 603 libexecdir=$ac_optarg ;; 604 605 -localstatedir | --localstatedir | --localstatedi | --localstated \ 606 | --localstate | --localstat | --localsta | --localst \ 607 | --locals | --local | --loca | --loc | --lo) 608 ac_prev=localstatedir ;; 609 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 610 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 611 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 612 localstatedir=$ac_optarg ;; 613 614 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 615 ac_prev=mandir ;; 616 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 617 mandir=$ac_optarg ;; 618 619 -nfp | --nfp | --nf) 620 # Obsolete; use --without-fp. 621 with_fp=no ;; 622 623 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 624 | --no-cr | --no-c | -n) 625 no_create=yes ;; 626 627 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 628 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 629 no_recursion=yes ;; 630 631 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 632 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 633 | --oldin | --oldi | --old | --ol | --o) 634 ac_prev=oldincludedir ;; 635 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 636 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 637 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 638 oldincludedir=$ac_optarg ;; 639 640 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 641 ac_prev=prefix ;; 642 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 643 prefix=$ac_optarg ;; 644 645 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 646 | --program-pre | --program-pr | --program-p) 647 ac_prev=program_prefix ;; 648 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 649 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 650 program_prefix=$ac_optarg ;; 651 652 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 653 | --program-suf | --program-su | --program-s) 654 ac_prev=program_suffix ;; 655 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 656 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 657 program_suffix=$ac_optarg ;; 658 659 -program-transform-name | --program-transform-name \ 660 | --program-transform-nam | --program-transform-na \ 661 | --program-transform-n | --program-transform- \ 662 | --program-transform | --program-transfor \ 663 | --program-transfo | --program-transf \ 664 | --program-trans | --program-tran \ 665 | --progr-tra | --program-tr | --program-t) 666 ac_prev=program_transform_name ;; 667 -program-transform-name=* | --program-transform-name=* \ 668 | --program-transform-nam=* | --program-transform-na=* \ 669 | --program-transform-n=* | --program-transform-=* \ 670 | --program-transform=* | --program-transfor=* \ 671 | --program-transfo=* | --program-transf=* \ 672 | --program-trans=* | --program-tran=* \ 673 | --progr-tra=* | --program-tr=* | --program-t=*) 674 program_transform_name=$ac_optarg ;; 675 676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 677 | -silent | --silent | --silen | --sile | --sil) 678 silent=yes ;; 679 680 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 681 ac_prev=sbindir ;; 682 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 683 | --sbi=* | --sb=*) 684 sbindir=$ac_optarg ;; 685 686 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 687 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 688 | --sharedst | --shareds | --shared | --share | --shar \ 689 | --sha | --sh) 690 ac_prev=sharedstatedir ;; 691 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 692 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 693 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 694 | --sha=* | --sh=*) 695 sharedstatedir=$ac_optarg ;; 696 697 -site | --site | --sit) 698 ac_prev=site ;; 699 -site=* | --site=* | --sit=*) 700 site=$ac_optarg ;; 701 702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 703 ac_prev=srcdir ;; 704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 705 srcdir=$ac_optarg ;; 706 707 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 708 | --syscon | --sysco | --sysc | --sys | --sy) 709 ac_prev=sysconfdir ;; 710 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 711 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 712 sysconfdir=$ac_optarg ;; 713 714 -target | --target | --targe | --targ | --tar | --ta | --t) 715 ac_prev=target_alias ;; 716 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 717 target_alias=$ac_optarg ;; 718 719 -v | -verbose | --verbose | --verbos | --verbo | --verb) 720 verbose=yes ;; 721 722 -version | --version | --versio | --versi | --vers | -V) 723 ac_init_version=: ;; 724 725 -with-* | --with-*) 726 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 727 # Reject names that are not valid shell variable names. 728 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 729 { echo "$as_me: error: invalid package name: $ac_package" >&2 730 { (exit 1); exit 1; }; } 731 ac_package=`echo $ac_package| sed 's/-/_/g'` 732 case $ac_option in 733 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 734 *) ac_optarg=yes ;; 735 esac 736 eval "with_$ac_package='$ac_optarg'" ;; 737 738 -without-* | --without-*) 739 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 740 # Reject names that are not valid shell variable names. 741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 742 { echo "$as_me: error: invalid package name: $ac_package" >&2 743 { (exit 1); exit 1; }; } 744 ac_package=`echo $ac_package | sed 's/-/_/g'` 745 eval "with_$ac_package=no" ;; 746 747 --x) 748 # Obsolete; use --with-x. 749 with_x=yes ;; 750 751 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 752 | --x-incl | --x-inc | --x-in | --x-i) 753 ac_prev=x_includes ;; 754 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 755 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 756 x_includes=$ac_optarg ;; 757 758 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 759 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 760 ac_prev=x_libraries ;; 761 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 762 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 763 x_libraries=$ac_optarg ;; 764 765 -*) { echo "$as_me: error: unrecognized option: $ac_option 766Try \`$0 --help' for more information." >&2 767 { (exit 1); exit 1; }; } 768 ;; 769 770 *=*) 771 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 772 # Reject names that are not valid shell variable names. 773 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 774 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 775 { (exit 1); exit 1; }; } 776 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 777 eval "$ac_envvar='$ac_optarg'" 778 export $ac_envvar ;; 779 780 *) 781 # FIXME: should be removed in autoconf 3.0. 782 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 783 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 784 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 785 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 786 ;; 787 788 esac 789done 790 791if test -n "$ac_prev"; then 792 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 793 { echo "$as_me: error: missing argument to $ac_option" >&2 794 { (exit 1); exit 1; }; } 795fi 796 797# Be sure to have absolute paths. 798for ac_var in exec_prefix prefix 799do 800 eval ac_val=$`echo $ac_var` 801 case $ac_val in 802 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 803 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 804 { (exit 1); exit 1; }; };; 805 esac 806done 807 808# Be sure to have absolute paths. 809for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 810 localstatedir libdir includedir oldincludedir infodir mandir 811do 812 eval ac_val=$`echo $ac_var` 813 case $ac_val in 814 [\\/$]* | ?:[\\/]* ) ;; 815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 816 { (exit 1); exit 1; }; };; 817 esac 818done 819 820# There might be people who depend on the old broken behavior: `$host' 821# used to hold the argument of --host etc. 822# FIXME: To remove some day. 823build=$build_alias 824host=$host_alias 825target=$target_alias 826 827# FIXME: To remove some day. 828if test "x$host_alias" != x; then 829 if test "x$build_alias" = x; then 830 cross_compiling=maybe 831 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 832 If a cross compiler is detected then cross compile mode will be used." >&2 833 elif test "x$build_alias" != "x$host_alias"; then 834 cross_compiling=yes 835 fi 836fi 837 838ac_tool_prefix= 839test -n "$host_alias" && ac_tool_prefix=$host_alias- 840 841test "$silent" = yes && exec 6>/dev/null 842 843 844# Find the source files, if location was not specified. 845if test -z "$srcdir"; then 846 ac_srcdir_defaulted=yes 847 # Try the directory containing this script, then its parent. 848 ac_confdir=`(dirname "$0") 2>/dev/null || 849$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 850 X"$0" : 'X\(//\)[^/]' \| \ 851 X"$0" : 'X\(//\)$' \| \ 852 X"$0" : 'X\(/\)' \| \ 853 . : '\(.\)' 2>/dev/null || 854echo X"$0" | 855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 856 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 857 /^X\(\/\/\)$/{ s//\1/; q; } 858 /^X\(\/\).*/{ s//\1/; q; } 859 s/.*/./; q'` 860 srcdir=$ac_confdir 861 if test ! -r $srcdir/$ac_unique_file; then 862 srcdir=.. 863 fi 864else 865 ac_srcdir_defaulted=no 866fi 867if test ! -r $srcdir/$ac_unique_file; then 868 if test "$ac_srcdir_defaulted" = yes; then 869 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 870 { (exit 1); exit 1; }; } 871 else 872 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 873 { (exit 1); exit 1; }; } 874 fi 875fi 876srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 877ac_env_build_alias_set=${build_alias+set} 878ac_env_build_alias_value=$build_alias 879ac_cv_env_build_alias_set=${build_alias+set} 880ac_cv_env_build_alias_value=$build_alias 881ac_env_host_alias_set=${host_alias+set} 882ac_env_host_alias_value=$host_alias 883ac_cv_env_host_alias_set=${host_alias+set} 884ac_cv_env_host_alias_value=$host_alias 885ac_env_target_alias_set=${target_alias+set} 886ac_env_target_alias_value=$target_alias 887ac_cv_env_target_alias_set=${target_alias+set} 888ac_cv_env_target_alias_value=$target_alias 889ac_env_CC_set=${CC+set} 890ac_env_CC_value=$CC 891ac_cv_env_CC_set=${CC+set} 892ac_cv_env_CC_value=$CC 893ac_env_CFLAGS_set=${CFLAGS+set} 894ac_env_CFLAGS_value=$CFLAGS 895ac_cv_env_CFLAGS_set=${CFLAGS+set} 896ac_cv_env_CFLAGS_value=$CFLAGS 897ac_env_LDFLAGS_set=${LDFLAGS+set} 898ac_env_LDFLAGS_value=$LDFLAGS 899ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 900ac_cv_env_LDFLAGS_value=$LDFLAGS 901ac_env_CPPFLAGS_set=${CPPFLAGS+set} 902ac_env_CPPFLAGS_value=$CPPFLAGS 903ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 904ac_cv_env_CPPFLAGS_value=$CPPFLAGS 905ac_env_CPP_set=${CPP+set} 906ac_env_CPP_value=$CPP 907ac_cv_env_CPP_set=${CPP+set} 908ac_cv_env_CPP_value=$CPP 909ac_env_CXX_set=${CXX+set} 910ac_env_CXX_value=$CXX 911ac_cv_env_CXX_set=${CXX+set} 912ac_cv_env_CXX_value=$CXX 913ac_env_CXXFLAGS_set=${CXXFLAGS+set} 914ac_env_CXXFLAGS_value=$CXXFLAGS 915ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 916ac_cv_env_CXXFLAGS_value=$CXXFLAGS 917ac_env_CXXCPP_set=${CXXCPP+set} 918ac_env_CXXCPP_value=$CXXCPP 919ac_cv_env_CXXCPP_set=${CXXCPP+set} 920ac_cv_env_CXXCPP_value=$CXXCPP 921ac_env_F77_set=${F77+set} 922ac_env_F77_value=$F77 923ac_cv_env_F77_set=${F77+set} 924ac_cv_env_F77_value=$F77 925ac_env_FFLAGS_set=${FFLAGS+set} 926ac_env_FFLAGS_value=$FFLAGS 927ac_cv_env_FFLAGS_set=${FFLAGS+set} 928ac_cv_env_FFLAGS_value=$FFLAGS 929 930# 931# Report the --help message. 932# 933if test "$ac_init_help" = "long"; then 934 # Omit some internal or obsolete options to make the list less imposing. 935 # This message is too long to be a string in the A/UX 3.1 sh. 936 cat <<_ACEOF 937\`configure' configures this package to adapt to many kinds of systems. 938 939Usage: $0 [OPTION]... [VAR=VALUE]... 940 941To assign environment variables (e.g., CC, CFLAGS...), specify them as 942VAR=VALUE. See below for descriptions of some of the useful variables. 943 944Defaults for the options are specified in brackets. 945 946Configuration: 947 -h, --help display this help and exit 948 --help=short display options specific to this package 949 --help=recursive display the short help of all the included packages 950 -V, --version display version information and exit 951 -q, --quiet, --silent do not print \`checking...' messages 952 --cache-file=FILE cache test results in FILE [disabled] 953 -C, --config-cache alias for \`--cache-file=config.cache' 954 -n, --no-create do not create output files 955 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 956 957_ACEOF 958 959 cat <<_ACEOF 960Installation directories: 961 --prefix=PREFIX install architecture-independent files in PREFIX 962 [$ac_default_prefix] 963 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 964 [PREFIX] 965 966By default, \`make install' will install all the files in 967\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 968an installation prefix other than \`$ac_default_prefix' using \`--prefix', 969for instance \`--prefix=\$HOME'. 970 971For better control, use the options below. 972 973Fine tuning of the installation directories: 974 --bindir=DIR user executables [EPREFIX/bin] 975 --sbindir=DIR system admin executables [EPREFIX/sbin] 976 --libexecdir=DIR program executables [EPREFIX/libexec] 977 --datadir=DIR read-only architecture-independent data [PREFIX/share] 978 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 979 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 980 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 981 --libdir=DIR object code libraries [EPREFIX/lib] 982 --includedir=DIR C header files [PREFIX/include] 983 --oldincludedir=DIR C header files for non-gcc [/usr/include] 984 --infodir=DIR info documentation [PREFIX/info] 985 --mandir=DIR man documentation [PREFIX/man] 986_ACEOF 987 988 cat <<\_ACEOF 989 990X features: 991 --x-includes=DIR X include files are in DIR 992 --x-libraries=DIR X library files are in DIR 993 994System types: 995 --build=BUILD configure for building on BUILD [guessed] 996 --host=HOST cross-compile to build programs to run on HOST [BUILD] 997_ACEOF 998fi 999 1000if test -n "$ac_init_help"; then 1001 1002 cat <<\_ACEOF 1003 1004Optional Features: 1005 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1006 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1007 --enable-debug enable debug options [default=no] 1008 --enable-libraries build and install libraries [default=yes] 1009 --enable-server build and install server [default=yes] 1010 --enable-client build and install clients [default=no] 1011 --enable-Wnn build and install Wnn [default=yes] 1012 --enable-cWnn build and install cWnn [default=yes] 1013 --enable-kWnn build and install kWnn [default=yes] 1014 --enable-ipv6 build and install IPv6 [default=no] 1015 --enable-unsafe-path allow creating files in an arbitrary path [default=no] 1016 --enable-shared[=PKGS] 1017 build shared libraries [default=yes] 1018 --enable-static[=PKGS] 1019 build static libraries [default=yes] 1020 --enable-fast-install[=PKGS] 1021 optimize for fast installation [default=yes] 1022 --disable-libtool-lock avoid locking (might break parallel builds) 1023 1024Optional Packages: 1025 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1026 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1027 --with-libwnn use installed Wnn library [default=no] 1028 --with-wnn-includes=DIR WNN include files are in DIR 1029 --with-wnn-libraries=DIR Search for WNN libraries in DIR [default=/usr/local/lib] 1030 --with-libcwnn use installed cWnn library [default=no] 1031 --with-cwnn-includes=DIR CWNN include files are in DIR 1032 --with-cwnn-libraries=DIR Search for CWNN libraries in DIR [default=/usr/local/lib] 1033 --with-libkwnn use installed kWnn library [default=no] 1034 --with-kwnn-includes=DIR KWNN include files are in DIR 1035 --with-kwnn-libraries=DIR Search for KWNN libraries in DIR [default=/usr/local/lib] 1036 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1037 --with-pic try to use only PIC/non-PIC objects [default=use 1038 both] 1039 --with-tags[=TAGS] 1040 include additional configurations [automatic] 1041 --with-x use the X Window System 1042 --with-libwrap[=DIR] Compile in libwrap (tcp_wrappers) support [default=try to find libwrap] 1043 1044Some influential environment variables: 1045 CC C compiler command 1046 CFLAGS C compiler flags 1047 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1048 nonstandard directory <lib dir> 1049 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1050 headers in a nonstandard directory <include dir> 1051 CPP C preprocessor 1052 CXX C++ compiler command 1053 CXXFLAGS C++ compiler flags 1054 CXXCPP C++ preprocessor 1055 F77 Fortran 77 compiler command 1056 FFLAGS Fortran 77 compiler flags 1057 1058Use these variables to override the choices made by `configure' or to help 1059it to find libraries and programs with nonstandard names/locations. 1060 1061_ACEOF 1062fi 1063 1064if test "$ac_init_help" = "recursive"; then 1065 # If there are subdirs, report their specific --help. 1066 ac_popdir=`pwd` 1067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1068 test -d $ac_dir || continue 1069 ac_builddir=. 1070 1071if test "$ac_dir" != .; then 1072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1073 # A "../" for each directory in $ac_dir_suffix. 1074 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1075else 1076 ac_dir_suffix= ac_top_builddir= 1077fi 1078 1079case $srcdir in 1080 .) # No --srcdir option. We are building in place. 1081 ac_srcdir=. 1082 if test -z "$ac_top_builddir"; then 1083 ac_top_srcdir=. 1084 else 1085 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1086 fi ;; 1087 [\\/]* | ?:[\\/]* ) # Absolute path. 1088 ac_srcdir=$srcdir$ac_dir_suffix; 1089 ac_top_srcdir=$srcdir ;; 1090 *) # Relative path. 1091 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1092 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1093esac 1094# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1095# absolute. 1096ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1097ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 1098ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1099ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1100 1101 cd $ac_dir 1102 # Check for guested configure; otherwise get Cygnus style configure. 1103 if test -f $ac_srcdir/configure.gnu; then 1104 echo 1105 $SHELL $ac_srcdir/configure.gnu --help=recursive 1106 elif test -f $ac_srcdir/configure; then 1107 echo 1108 $SHELL $ac_srcdir/configure --help=recursive 1109 elif test -f $ac_srcdir/configure.ac || 1110 test -f $ac_srcdir/configure.in; then 1111 echo 1112 $ac_configure --help 1113 else 1114 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1115 fi 1116 cd $ac_popdir 1117 done 1118fi 1119 1120test -n "$ac_init_help" && exit 0 1121if $ac_init_version; then 1122 cat <<\_ACEOF 1123 1124Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1125Free Software Foundation, Inc. 1126This configure script is free software; the Free Software Foundation 1127gives unlimited permission to copy, distribute and modify it. 1128_ACEOF 1129 exit 0 1130fi 1131exec 5>config.log 1132cat >&5 <<_ACEOF 1133This file contains any messages produced by compilers while 1134running configure, to aid debugging if configure makes a mistake. 1135 1136It was created by $as_me, which was 1137generated by GNU Autoconf 2.53. Invocation command line was 1138 1139 $ $0 $@ 1140 1141_ACEOF 1142{ 1143cat <<_ASUNAME 1144## --------- ## 1145## Platform. ## 1146## --------- ## 1147 1148hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1149uname -m = `(uname -m) 2>/dev/null || echo unknown` 1150uname -r = `(uname -r) 2>/dev/null || echo unknown` 1151uname -s = `(uname -s) 2>/dev/null || echo unknown` 1152uname -v = `(uname -v) 2>/dev/null || echo unknown` 1153 1154/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1155/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1156 1157/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1158/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1159/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1160hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1161/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1162/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1163/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1164 1165_ASUNAME 1166 1167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1168for as_dir in $PATH 1169do 1170 IFS=$as_save_IFS 1171 test -z "$as_dir" && as_dir=. 1172 echo "PATH: $as_dir" 1173done 1174 1175} >&5 1176 1177cat >&5 <<_ACEOF 1178 1179 1180## ----------- ## 1181## Core tests. ## 1182## ----------- ## 1183 1184_ACEOF 1185 1186 1187# Keep a trace of the command line. 1188# Strip out --no-create and --no-recursion so they do not pile up. 1189# Also quote any args containing shell meta-characters. 1190ac_configure_args= 1191ac_sep= 1192for ac_arg 1193do 1194 case $ac_arg in 1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1196 | --no-cr | --no-c | -n ) continue ;; 1197 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1198 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1199 continue ;; 1200 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1201 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1202 esac 1203 case " $ac_configure_args " in 1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1205 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1206 ac_sep=" " ;; 1207 esac 1208 # Get rid of the leading space. 1209done 1210 1211# When interrupted or exit'd, cleanup temporary files, and complete 1212# config.log. We remove comments because anyway the quotes in there 1213# would cause problems or look ugly. 1214# WARNING: Be sure not to use single quotes in there, as some shells, 1215# such as our DU 5.0 friend, will then `close' the trap. 1216trap 'exit_status=$? 1217 # Save into config.log some information that might help in debugging. 1218 { 1219 echo 1220 cat <<\_ASBOX 1221## ---------------- ## 1222## Cache variables. ## 1223## ---------------- ## 1224_ASBOX 1225 echo 1226 # The following way of writing the cache mishandles newlines in values, 1227{ 1228 (set) 2>&1 | 1229 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1230 *ac_space=\ *) 1231 sed -n \ 1232 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1234 ;; 1235 *) 1236 sed -n \ 1237 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1238 ;; 1239 esac; 1240} 1241 echo 1242 if test -s confdefs.h; then 1243 cat <<\_ASBOX 1244## ----------- ## 1245## confdefs.h. ## 1246## ----------- ## 1247_ASBOX 1248 echo 1249 sed "/^$/d" confdefs.h 1250 echo 1251 fi 1252 test "$ac_signal" != 0 && 1253 echo "$as_me: caught signal $ac_signal" 1254 echo "$as_me: exit $exit_status" 1255 } >&5 1256 rm -f core core.* *.core && 1257 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1258 exit $exit_status 1259 ' 0 1260for ac_signal in 1 2 13 15; do 1261 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1262done 1263ac_signal=0 1264 1265# confdefs.h avoids OS command line length limits that DEFS can exceed. 1266rm -rf conftest* confdefs.h 1267# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1268echo >confdefs.h 1269 1270# Predefined preprocessor variables. 1271 1272cat >>confdefs.h <<_ACEOF 1273#define PACKAGE_NAME "$PACKAGE_NAME" 1274_ACEOF 1275 1276 1277cat >>confdefs.h <<_ACEOF 1278#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1279_ACEOF 1280 1281 1282cat >>confdefs.h <<_ACEOF 1283#define PACKAGE_VERSION "$PACKAGE_VERSION" 1284_ACEOF 1285 1286 1287cat >>confdefs.h <<_ACEOF 1288#define PACKAGE_STRING "$PACKAGE_STRING" 1289_ACEOF 1290 1291 1292cat >>confdefs.h <<_ACEOF 1293#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1294_ACEOF 1295 1296 1297# Let the site file select an alternate cache file if it wants to. 1298# Prefer explicitly selected file to automatically selected ones. 1299if test -z "$CONFIG_SITE"; then 1300 if test "x$prefix" != xNONE; then 1301 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1302 else 1303 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1304 fi 1305fi 1306for ac_site_file in $CONFIG_SITE; do 1307 if test -r "$ac_site_file"; then 1308 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1309echo "$as_me: loading site script $ac_site_file" >&6;} 1310 sed 's/^/| /' "$ac_site_file" >&5 1311 . "$ac_site_file" 1312 fi 1313done 1314 1315if test -r "$cache_file"; then 1316 # Some versions of bash will fail to source /dev/null (special 1317 # files actually), so we avoid doing that. 1318 if test -f "$cache_file"; then 1319 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1320echo "$as_me: loading cache $cache_file" >&6;} 1321 case $cache_file in 1322 [\\/]* | ?:[\\/]* ) . $cache_file;; 1323 *) . ./$cache_file;; 1324 esac 1325 fi 1326else 1327 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1328echo "$as_me: creating cache $cache_file" >&6;} 1329 >$cache_file 1330fi 1331 1332# Check that the precious variables saved in the cache have kept the same 1333# value. 1334ac_cache_corrupted=false 1335for ac_var in `(set) 2>&1 | 1336 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1337 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1338 eval ac_new_set=\$ac_env_${ac_var}_set 1339 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1340 eval ac_new_val="\$ac_env_${ac_var}_value" 1341 case $ac_old_set,$ac_new_set in 1342 set,) 1343 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1344echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1345 ac_cache_corrupted=: ;; 1346 ,set) 1347 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1348echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1349 ac_cache_corrupted=: ;; 1350 ,);; 1351 *) 1352 if test "x$ac_old_val" != "x$ac_new_val"; then 1353 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1354echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1355 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1356echo "$as_me: former value: $ac_old_val" >&2;} 1357 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1358echo "$as_me: current value: $ac_new_val" >&2;} 1359 ac_cache_corrupted=: 1360 fi;; 1361 esac 1362 # Pass precious variables to config.status. 1363 if test "$ac_new_set" = set; then 1364 case $ac_new_val in 1365 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1366 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1367 *) ac_arg=$ac_var=$ac_new_val ;; 1368 esac 1369 case " $ac_configure_args " in 1370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1371 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1372 esac 1373 fi 1374done 1375if $ac_cache_corrupted; then 1376 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1377echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1378 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1379echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1380 { (exit 1); exit 1; }; } 1381fi 1382 1383ac_ext=c 1384ac_cpp='$CPP $CPPFLAGS' 1385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1387ac_compiler_gnu=$ac_cv_c_compiler_gnu 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406ac_config_headers="$ac_config_headers config.h" 1407 1408 1409 1410# Quick and Dirty workaround for Autoconf-2.53 and Libtools-1.5 pair ... 1411# not to use additional tagged configuration. (default: CXX F77) 1412# NOTICE: Please remove next line if situation changes. (aono) 1413tagnames= 1414 1415ac_aux_dir= 1416for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1417 if test -f $ac_dir/install-sh; then 1418 ac_aux_dir=$ac_dir 1419 ac_install_sh="$ac_aux_dir/install-sh -c" 1420 break 1421 elif test -f $ac_dir/install.sh; then 1422 ac_aux_dir=$ac_dir 1423 ac_install_sh="$ac_aux_dir/install.sh -c" 1424 break 1425 elif test -f $ac_dir/shtool; then 1426 ac_aux_dir=$ac_dir 1427 ac_install_sh="$ac_aux_dir/shtool install -c" 1428 break 1429 fi 1430done 1431if test -z "$ac_aux_dir"; then 1432 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1433echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1434 { (exit 1); exit 1; }; } 1435fi 1436ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1437ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1438ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1439 1440# Make sure we can run config.sub. 1441$ac_config_sub sun4 >/dev/null 2>&1 || 1442 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1443echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1444 { (exit 1); exit 1; }; } 1445 1446echo "$as_me:$LINENO: checking build system type" >&5 1447echo $ECHO_N "checking build system type... $ECHO_C" >&6 1448if test "${ac_cv_build+set}" = set; then 1449 echo $ECHO_N "(cached) $ECHO_C" >&6 1450else 1451 ac_cv_build_alias=$build_alias 1452test -z "$ac_cv_build_alias" && 1453 ac_cv_build_alias=`$ac_config_guess` 1454test -z "$ac_cv_build_alias" && 1455 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1456echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1457 { (exit 1); exit 1; }; } 1458ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1460echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1461 { (exit 1); exit 1; }; } 1462 1463fi 1464echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1465echo "${ECHO_T}$ac_cv_build" >&6 1466build=$ac_cv_build 1467build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1468build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1469build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1470 1471 1472echo "$as_me:$LINENO: checking host system type" >&5 1473echo $ECHO_N "checking host system type... $ECHO_C" >&6 1474if test "${ac_cv_host+set}" = set; then 1475 echo $ECHO_N "(cached) $ECHO_C" >&6 1476else 1477 ac_cv_host_alias=$host_alias 1478test -z "$ac_cv_host_alias" && 1479 ac_cv_host_alias=$ac_cv_build_alias 1480ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1481 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1482echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1483 { (exit 1); exit 1; }; } 1484 1485fi 1486echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1487echo "${ECHO_T}$ac_cv_host" >&6 1488host=$ac_cv_host 1489host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1490host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1491host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1492 1493 1494 1495 1496# Check whether --enable-debug or --disable-debug was given. 1497if test "${enable_debug+set}" = set; then 1498 enableval="$enable_debug" 1499 case "${enableval}" in 1500 yes) debug=true ;; 1501 no) debug=false ;; 1502 *) { { echo "$as_me:$LINENO: error: bad value for --enable-debug" >&5 1503echo "$as_me: error: bad value for --enable-debug" >&2;} 1504 { (exit 1); exit 1; }; } 1505esac 1506else 1507 debug=false 1508fi; 1509 1510# Check whether --enable-libraries or --disable-libraries was given. 1511if test "${enable_libraries+set}" = set; then 1512 enableval="$enable_libraries" 1513 case "${enableval}" in 1514 yes) libraries=true ;; 1515 no) libraries=false ;; 1516 *) { { echo "$as_me:$LINENO: error: bad value for --enable-libraries" >&5 1517echo "$as_me: error: bad value for --enable-libraries" >&2;} 1518 { (exit 1); exit 1; }; } ;; 1519esac 1520else 1521 libraries=true 1522fi; 1523 1524# Check whether --enable-server or --disable-server was given. 1525if test "${enable_server+set}" = set; then 1526 enableval="$enable_server" 1527 case "${enableval}" in 1528 yes) server=true ;; 1529 no) server=false ;; 1530 *) { { echo "$as_me:$LINENO: error: bad value for --enable-server" >&5 1531echo "$as_me: error: bad value for --enable-server" >&2;} 1532 { (exit 1); exit 1; }; } ;; 1533esac 1534else 1535 server=true 1536fi; 1537 1538# Check whether --enable-client or --disable-client was given. 1539if test "${enable_client+set}" = set; then 1540 enableval="$enable_client" 1541 case "${enableval}" in 1542 yes) client=true ;; 1543 no) client=false ;; 1544 *) { { echo "$as_me:$LINENO: error: bad value for --enable-client" >&5 1545echo "$as_me: error: bad value for --enable-client" >&2;} 1546 { (exit 1); exit 1; }; } ;; 1547esac 1548else 1549 client=false 1550fi; 1551 1552if test $libraries = true; then 1553 SUBDIRS="\$(LIB_SUBDIRS)" 1554 WNNMANDIR="\$(LIB_WNNMANDIR)" 1555fi 1556if test $server = true; then 1557 SUBDIRS="$SUBDIRS \$(SERVER_SUBDIRS)" 1558 WNNMANDIR="$WNNMANDIR \$(SERVER_WNNMANDIR)" 1559fi 1560if test $client = true; then 1561 SUBDIRS="$SUBDIRS \$(CLIENT_SUBDIRS)" 1562fi 1563 1564 1565 1566 1567 1568# Check whether --enable-Wnn or --disable-Wnn was given. 1569if test "${enable_Wnn+set}" = set; then 1570 enableval="$enable_Wnn" 1571 case "${enableval}" in 1572 yes) Wnn="Wnn";; 1573 no) Wnn="" ;; 1574 *) { { echo "$as_me:$LINENO: error: bad value for --enable-Wnn" >&5 1575echo "$as_me: error: bad value for --enable-Wnn" >&2;} 1576 { (exit 1); exit 1; }; } ;; 1577esac 1578else 1579 Wnn="Wnn" 1580fi; 1581 1582 1583if test "$server" = true -a "$Wnn" = Wnn; then 1584# JSERVER_SUBDIRS1="\$(JSERVER_SUBDIRS1)" 1585 JSERVER_SUBDIRS2="\$(JSERVER_SUBDIRS2)" 1586else 1587# JSERVER_SUBDIRS1="" 1588 JSERVER_SUBDIRS2="" 1589fi 1590 1591 1592# Check whether --enable-cWnn or --disable-cWnn was given. 1593if test "${enable_cWnn+set}" = set; then 1594 enableval="$enable_cWnn" 1595 case "${enableval}" in 1596 yes) cWnn="cWnn" ;; 1597 no) cWnn="" ;; 1598 *) { { echo "$as_me:$LINENO: error: bad value for --enable-cWnn" >&5 1599echo "$as_me: error: bad value for --enable-cWnn" >&2;} 1600 { (exit 1); exit 1; }; } ;; 1601esac 1602else 1603 cWnn="cWnn" 1604fi; 1605 1606 1607# Check whether --enable-kWnn or --disable-kWnn was given. 1608if test "${enable_kWnn+set}" = set; then 1609 enableval="$enable_kWnn" 1610 case "${enableval}" in 1611 yes) kWnn="kWnn" ;; 1612 no) kWnn="" ;; 1613 *) { { echo "$as_me:$LINENO: error: bad value for --enable-kWnn" >&5 1614echo "$as_me: error: bad value for --enable-kWnn" >&2;} 1615 { (exit 1); exit 1; }; } ;; 1616esac 1617else 1618 kWnn="kWnn" 1619fi; 1620 1621 1622 1623 1624 1625# Check whether --with-libwnn or --without-libwnn was given. 1626if test "${with_libwnn+set}" = set; then 1627 withval="$with_libwnn" 1628 with_libwnn="${withval}" 1629 1630# Check whether --with-wnn-includes or --without-wnn-includes was given. 1631if test "${with_wnn_includes+set}" = set; then 1632 withval="$with_wnn_includes" 1633 wnnincludedir="-I${withval}" 1634else 1635 wnnincludedir='' 1636fi; 1637 1638# Check whether --with-wnn-libraries or --without-wnn-libraries was given. 1639if test "${with_wnn_libraries+set}" = set; then 1640 withval="$with_wnn_libraries" 1641 wnnlibdir="${withval}" 1642else 1643 wnnlibdir='/usr/local/lib' 1644fi; 1645 if test "X${with_libwnn}" = X-lwnn; then 1646 WNNJLIB="-L${wnnlibdir} -lwnn" 1647 elif test X"`echo ${with_libwnn} | grep '^/.*'`" != X ; then 1648 WNNJLIB="${with_libwnn}" 1649 else 1650 WNNJLIB="${wnnlibdir}/libwnn.a" 1651 fi 1652 DEPWNNJLIB="" 1653 HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data" 1654 1655else 1656 WNNJLIB="\$(top_builddir)/Wnn/jlib/libwnn.la" 1657 DEPWNNJLIB="\$(WNNJLIB)" 1658 HINSI_DATA="\$(top_builddir)/Wnn/jd/hinsi.data" 1659 1660fi; 1661 1662 1663 1664 1665 1666# Check whether --with-libcwnn or --without-libcwnn was given. 1667if test "${with_libcwnn+set}" = set; then 1668 withval="$with_libcwnn" 1669 1670 1671# Check whether --with-cwnn-includes or --without-cwnn-includes was given. 1672if test "${with_cwnn_includes+set}" = set; then 1673 withval="$with_cwnn_includes" 1674 cwnnincludedir="-I${withval}" 1675else 1676 cwnnincludedir='' 1677fi; 1678 1679# Check whether --with-cwnn-libraries or --without-cwnn-libraries was given. 1680if test "${with_cwnn_libraries+set}" = set; then 1681 withval="$with_cwnn_libraries" 1682 cwnnlibdir="${withval}" 1683else 1684 cwnnlibdir='/usr/local/lib' 1685fi; 1686 if test "X${with_libcwnn}" = X-lcwnn; then 1687 CWNNJLIB="-L${cwnnlibdir} -lcwnn" 1688 elif test X"`echo ${with_libcwnn} | grep '^/.*'`" != X ; then 1689 CWNNJLIB="${with_libcwnn}" 1690 else 1691 CWNNJLIB="${cwnnlibdir}/libcwnn.a" 1692 fi 1693 DEPCWNNJLIB="" 1694 CHINSI_DATA="\$(CWNNWNNDIR)/cixing.data" 1695 THINSI_DATA="\$(TWNNTDSRC)/cixing.data" 1696 1697else 1698 CWNNJLIB="\$(top_builddir)/cWnn/jlib/libcwnn.la" 1699 DEPCWNNJLIB="\$(CWNNJLIB)" 1700 CHINSI_DATA="\$(CWNNCDSRC)/cixing.data" 1701 THINSI_DATA="\$(TWNNTDSRC)/cixing.data" 1702 1703fi; 1704 1705 1706 1707 1708 1709 1710# Check whether --with-libkwnn or --without-libkwnn was given. 1711if test "${with_libkwnn+set}" = set; then 1712 withval="$with_libkwnn" 1713 1714 1715# Check whether --with-kwnn-includes or --without-kwnn-includes was given. 1716if test "${with_kwnn_includes+set}" = set; then 1717 withval="$with_kwnn_includes" 1718 kwnnincludedir="-I${withval}" 1719else 1720 kwnnincludedir='' 1721fi; 1722 1723# Check whether --with-kwnn-libraries or --without-kwnn-libraries was given. 1724if test "${with_kwnn_libraries+set}" = set; then 1725 withval="$with_kwnn_libraries" 1726 kwnnlibdir="${withval}" 1727else 1728 kwnnlibdir='/usr/local/lib' 1729fi; 1730 if test "X${with_libkwnn}" = X-lkwnn; then 1731 KWNNJLIB="-L${kwnnlibdir} -lkwnn" 1732 elif test X"`echo ${with_libkwnn} | grep '^/.*'`" != X ; then 1733 KWNNJLIB="${with_libkwnn}" 1734 else 1735 KWNNJLIB="${kwnnlibdir}/libkwnn.a" 1736 fi 1737 DEPKWNNJLIB="" 1738 KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data" 1739 1740else 1741 KWNNJLIB="\$(top_builddir)/kWnn/jlib/libkwnn.la" 1742 DEPKWNNJLIB="\$(KWNNJLIB)" 1743 KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data" 1744 1745fi; 1746 1747 1748 1749 1750 1751# Check whether --enable-ipv6 or --disable-ipv6 was given. 1752if test "${enable_ipv6+set}" = set; then 1753 enableval="$enable_ipv6" 1754 case "${enableval}" in 1755 yes) ipv6="-DINET6";; 1756 no) ipv6="" ;; 1757 *) { { echo "$as_me:$LINENO: error: bad value for --enable-ipv6" >&5 1758echo "$as_me: error: bad value for --enable-ipv6" >&2;} 1759 { (exit 1); exit 1; }; } ;; 1760esac 1761else 1762 ipv6="" 1763fi; 1764 1765 1766# Check whether --enable-unsafe-path or --disable-unsafe-path was given. 1767if test "${enable_unsafe_path+set}" = set; then 1768 enableval="$enable_unsafe_path" 1769 case "${enableval}" in 1770 yes) unsafe_path=true;; 1771 no) unsafe_path=false;; 1772 *) { { echo "$as_me:$LINENO: error: bad value for --enable-unsafe-path" >&5 1773echo "$as_me: error: bad value for --enable-unsafe-path" >&2;} 1774 { (exit 1); exit 1; }; } ;; 1775esac 1776else 1777 unsafe_path=false 1778fi; 1779 1780 1781if test ${unsafe_path} = true; then 1782 1783cat >>confdefs.h <<\_ACEOF 1784#define WNN_ALLOW_UNSAFE_PATH 1 1785_ACEOF 1786 1787fi 1788 1789ac_ext=c 1790ac_cpp='$CPP $CPPFLAGS' 1791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1793ac_compiler_gnu=$ac_cv_c_compiler_gnu 1794if test -n "$ac_tool_prefix"; then 1795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1796set dummy ${ac_tool_prefix}gcc; ac_word=$2 1797echo "$as_me:$LINENO: checking for $ac_word" >&5 1798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1799if test "${ac_cv_prog_CC+set}" = set; then 1800 echo $ECHO_N "(cached) $ECHO_C" >&6 1801else 1802 if test -n "$CC"; then 1803 ac_cv_prog_CC="$CC" # Let the user override the test. 1804else 1805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1806for as_dir in $PATH 1807do 1808 IFS=$as_save_IFS 1809 test -z "$as_dir" && as_dir=. 1810 for ac_exec_ext in '' $ac_executable_extensions; do 1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1812 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1814 break 2 1815 fi 1816done 1817done 1818 1819fi 1820fi 1821CC=$ac_cv_prog_CC 1822if test -n "$CC"; then 1823 echo "$as_me:$LINENO: result: $CC" >&5 1824echo "${ECHO_T}$CC" >&6 1825else 1826 echo "$as_me:$LINENO: result: no" >&5 1827echo "${ECHO_T}no" >&6 1828fi 1829 1830fi 1831if test -z "$ac_cv_prog_CC"; then 1832 ac_ct_CC=$CC 1833 # Extract the first word of "gcc", so it can be a program name with args. 1834set dummy gcc; ac_word=$2 1835echo "$as_me:$LINENO: checking for $ac_word" >&5 1836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1838 echo $ECHO_N "(cached) $ECHO_C" >&6 1839else 1840 if test -n "$ac_ct_CC"; then 1841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1842else 1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1844for as_dir in $PATH 1845do 1846 IFS=$as_save_IFS 1847 test -z "$as_dir" && as_dir=. 1848 for ac_exec_ext in '' $ac_executable_extensions; do 1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1850 ac_cv_prog_ac_ct_CC="gcc" 1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1852 break 2 1853 fi 1854done 1855done 1856 1857fi 1858fi 1859ac_ct_CC=$ac_cv_prog_ac_ct_CC 1860if test -n "$ac_ct_CC"; then 1861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1862echo "${ECHO_T}$ac_ct_CC" >&6 1863else 1864 echo "$as_me:$LINENO: result: no" >&5 1865echo "${ECHO_T}no" >&6 1866fi 1867 1868 CC=$ac_ct_CC 1869else 1870 CC="$ac_cv_prog_CC" 1871fi 1872 1873if test -z "$CC"; then 1874 if test -n "$ac_tool_prefix"; then 1875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1876set dummy ${ac_tool_prefix}cc; ac_word=$2 1877echo "$as_me:$LINENO: checking for $ac_word" >&5 1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1879if test "${ac_cv_prog_CC+set}" = set; then 1880 echo $ECHO_N "(cached) $ECHO_C" >&6 1881else 1882 if test -n "$CC"; then 1883 ac_cv_prog_CC="$CC" # Let the user override the test. 1884else 1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1886for as_dir in $PATH 1887do 1888 IFS=$as_save_IFS 1889 test -z "$as_dir" && as_dir=. 1890 for ac_exec_ext in '' $ac_executable_extensions; do 1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1892 ac_cv_prog_CC="${ac_tool_prefix}cc" 1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1894 break 2 1895 fi 1896done 1897done 1898 1899fi 1900fi 1901CC=$ac_cv_prog_CC 1902if test -n "$CC"; then 1903 echo "$as_me:$LINENO: result: $CC" >&5 1904echo "${ECHO_T}$CC" >&6 1905else 1906 echo "$as_me:$LINENO: result: no" >&5 1907echo "${ECHO_T}no" >&6 1908fi 1909 1910fi 1911if test -z "$ac_cv_prog_CC"; then 1912 ac_ct_CC=$CC 1913 # Extract the first word of "cc", so it can be a program name with args. 1914set dummy cc; ac_word=$2 1915echo "$as_me:$LINENO: checking for $ac_word" >&5 1916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1917if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1918 echo $ECHO_N "(cached) $ECHO_C" >&6 1919else 1920 if test -n "$ac_ct_CC"; then 1921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1922else 1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1924for as_dir in $PATH 1925do 1926 IFS=$as_save_IFS 1927 test -z "$as_dir" && as_dir=. 1928 for ac_exec_ext in '' $ac_executable_extensions; do 1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1930 ac_cv_prog_ac_ct_CC="cc" 1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1932 break 2 1933 fi 1934done 1935done 1936 1937fi 1938fi 1939ac_ct_CC=$ac_cv_prog_ac_ct_CC 1940if test -n "$ac_ct_CC"; then 1941 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1942echo "${ECHO_T}$ac_ct_CC" >&6 1943else 1944 echo "$as_me:$LINENO: result: no" >&5 1945echo "${ECHO_T}no" >&6 1946fi 1947 1948 CC=$ac_ct_CC 1949else 1950 CC="$ac_cv_prog_CC" 1951fi 1952 1953fi 1954if test -z "$CC"; then 1955 # Extract the first word of "cc", so it can be a program name with args. 1956set dummy cc; ac_word=$2 1957echo "$as_me:$LINENO: checking for $ac_word" >&5 1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1959if test "${ac_cv_prog_CC+set}" = set; then 1960 echo $ECHO_N "(cached) $ECHO_C" >&6 1961else 1962 if test -n "$CC"; then 1963 ac_cv_prog_CC="$CC" # Let the user override the test. 1964else 1965 ac_prog_rejected=no 1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1967for as_dir in $PATH 1968do 1969 IFS=$as_save_IFS 1970 test -z "$as_dir" && as_dir=. 1971 for ac_exec_ext in '' $ac_executable_extensions; do 1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1974 ac_prog_rejected=yes 1975 continue 1976 fi 1977 ac_cv_prog_CC="cc" 1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1979 break 2 1980 fi 1981done 1982done 1983 1984if test $ac_prog_rejected = yes; then 1985 # We found a bogon in the path, so make sure we never use it. 1986 set dummy $ac_cv_prog_CC 1987 shift 1988 if test $# != 0; then 1989 # We chose a different compiler from the bogus one. 1990 # However, it has the same basename, so the bogon will be chosen 1991 # first if we set CC to just the basename; use the full file name. 1992 shift 1993 set dummy "$as_dir/$ac_word" ${1+"$@"} 1994 shift 1995 ac_cv_prog_CC="$@" 1996 fi 1997fi 1998fi 1999fi 2000CC=$ac_cv_prog_CC 2001if test -n "$CC"; then 2002 echo "$as_me:$LINENO: result: $CC" >&5 2003echo "${ECHO_T}$CC" >&6 2004else 2005 echo "$as_me:$LINENO: result: no" >&5 2006echo "${ECHO_T}no" >&6 2007fi 2008 2009fi 2010if test -z "$CC"; then 2011 if test -n "$ac_tool_prefix"; then 2012 for ac_prog in cl 2013 do 2014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2015set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2016echo "$as_me:$LINENO: checking for $ac_word" >&5 2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2018if test "${ac_cv_prog_CC+set}" = set; then 2019 echo $ECHO_N "(cached) $ECHO_C" >&6 2020else 2021 if test -n "$CC"; then 2022 ac_cv_prog_CC="$CC" # Let the user override the test. 2023else 2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2025for as_dir in $PATH 2026do 2027 IFS=$as_save_IFS 2028 test -z "$as_dir" && as_dir=. 2029 for ac_exec_ext in '' $ac_executable_extensions; do 2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2033 break 2 2034 fi 2035done 2036done 2037 2038fi 2039fi 2040CC=$ac_cv_prog_CC 2041if test -n "$CC"; then 2042 echo "$as_me:$LINENO: result: $CC" >&5 2043echo "${ECHO_T}$CC" >&6 2044else 2045 echo "$as_me:$LINENO: result: no" >&5 2046echo "${ECHO_T}no" >&6 2047fi 2048 2049 test -n "$CC" && break 2050 done 2051fi 2052if test -z "$CC"; then 2053 ac_ct_CC=$CC 2054 for ac_prog in cl 2055do 2056 # Extract the first word of "$ac_prog", so it can be a program name with args. 2057set dummy $ac_prog; ac_word=$2 2058echo "$as_me:$LINENO: checking for $ac_word" >&5 2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2060if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2061 echo $ECHO_N "(cached) $ECHO_C" >&6 2062else 2063 if test -n "$ac_ct_CC"; then 2064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2065else 2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2067for as_dir in $PATH 2068do 2069 IFS=$as_save_IFS 2070 test -z "$as_dir" && as_dir=. 2071 for ac_exec_ext in '' $ac_executable_extensions; do 2072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2073 ac_cv_prog_ac_ct_CC="$ac_prog" 2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2075 break 2 2076 fi 2077done 2078done 2079 2080fi 2081fi 2082ac_ct_CC=$ac_cv_prog_ac_ct_CC 2083if test -n "$ac_ct_CC"; then 2084 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2085echo "${ECHO_T}$ac_ct_CC" >&6 2086else 2087 echo "$as_me:$LINENO: result: no" >&5 2088echo "${ECHO_T}no" >&6 2089fi 2090 2091 test -n "$ac_ct_CC" && break 2092done 2093 2094 CC=$ac_ct_CC 2095fi 2096 2097fi 2098 2099 2100test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 2101echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 2102 { (exit 1); exit 1; }; } 2103 2104# Provide some information about the compiler. 2105echo "$as_me:$LINENO:" \ 2106 "checking for C compiler version" >&5 2107ac_compiler=`set X $ac_compile; echo $2` 2108{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2109 (eval $ac_compiler --version </dev/null >&5) 2>&5 2110 ac_status=$? 2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2112 (exit $ac_status); } 2113{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2114 (eval $ac_compiler -v </dev/null >&5) 2>&5 2115 ac_status=$? 2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2117 (exit $ac_status); } 2118{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2119 (eval $ac_compiler -V </dev/null >&5) 2>&5 2120 ac_status=$? 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); } 2123 2124cat >conftest.$ac_ext <<_ACEOF 2125#line $LINENO "configure" 2126#include "confdefs.h" 2127 2128#ifdef F77_DUMMY_MAIN 2129# ifdef __cplusplus 2130 extern "C" 2131# endif 2132 int F77_DUMMY_MAIN() { return 1; } 2133#endif 2134int 2135main () 2136{ 2137 2138 ; 2139 return 0; 2140} 2141_ACEOF 2142ac_clean_files_save=$ac_clean_files 2143ac_clean_files="$ac_clean_files a.out a.exe" 2144# Try to create an executable without -o first, disregard a.out. 2145# It will help us diagnose broken compilers, and finding out an intuition 2146# of exeext. 2147echo "$as_me:$LINENO: checking for C compiler default output" >&5 2148echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2149ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2150if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2151 (eval $ac_link_default) 2>&5 2152 ac_status=$? 2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2154 (exit $ac_status); }; then 2155 # Find the output, starting from the most likely. This scheme is 2156# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2157# resort. 2158 2159# Be careful to initialize this variable, since it used to be cached. 2160# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2161ac_cv_exeext= 2162for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; 2163 ls a.out conftest 2>/dev/null; 2164 ls a.* conftest.* 2>/dev/null`; do 2165 case $ac_file in 2166 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; 2167 a.out ) # We found the default executable, but exeext='' is most 2168 # certainly right. 2169 break;; 2170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2171 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 2172 export ac_cv_exeext 2173 break;; 2174 * ) break;; 2175 esac 2176done 2177else 2178 echo "$as_me: failed program was:" >&5 2179cat conftest.$ac_ext >&5 2180{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 2181echo "$as_me: error: C compiler cannot create executables" >&2;} 2182 { (exit 77); exit 77; }; } 2183fi 2184 2185ac_exeext=$ac_cv_exeext 2186echo "$as_me:$LINENO: result: $ac_file" >&5 2187echo "${ECHO_T}$ac_file" >&6 2188 2189# Check the compiler produces executables we can run. If not, either 2190# the compiler is broken, or we cross compile. 2191echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2192echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2193# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2194# If not cross compiling, check that we can run a simple program. 2195if test "$cross_compiling" != yes; then 2196 if { ac_try='./$ac_file' 2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2198 (eval $ac_try) 2>&5 2199 ac_status=$? 2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2201 (exit $ac_status); }; }; then 2202 cross_compiling=no 2203 else 2204 if test "$cross_compiling" = maybe; then 2205 cross_compiling=yes 2206 else 2207 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2208If you meant to cross compile, use \`--host'." >&5 2209echo "$as_me: error: cannot run C compiled programs. 2210If you meant to cross compile, use \`--host'." >&2;} 2211 { (exit 1); exit 1; }; } 2212 fi 2213 fi 2214fi 2215echo "$as_me:$LINENO: result: yes" >&5 2216echo "${ECHO_T}yes" >&6 2217 2218rm -f a.out a.exe conftest$ac_cv_exeext 2219ac_clean_files=$ac_clean_files_save 2220# Check the compiler produces executables we can run. If not, either 2221# the compiler is broken, or we cross compile. 2222echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2223echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2224echo "$as_me:$LINENO: result: $cross_compiling" >&5 2225echo "${ECHO_T}$cross_compiling" >&6 2226 2227echo "$as_me:$LINENO: checking for suffix of executables" >&5 2228echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2230 (eval $ac_link) 2>&5 2231 ac_status=$? 2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2233 (exit $ac_status); }; then 2234 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2235# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2236# work properly (i.e., refer to `conftest.exe'), while it won't with 2237# `rm'. 2238for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 2239 case $ac_file in 2240 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 2241 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2242 export ac_cv_exeext 2243 break;; 2244 * ) break;; 2245 esac 2246done 2247else 2248 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 2249echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 2250 { (exit 1); exit 1; }; } 2251fi 2252 2253rm -f conftest$ac_cv_exeext 2254echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2255echo "${ECHO_T}$ac_cv_exeext" >&6 2256 2257rm -f conftest.$ac_ext 2258EXEEXT=$ac_cv_exeext 2259ac_exeext=$EXEEXT 2260echo "$as_me:$LINENO: checking for suffix of object files" >&5 2261echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2262if test "${ac_cv_objext+set}" = set; then 2263 echo $ECHO_N "(cached) $ECHO_C" >&6 2264else 2265 cat >conftest.$ac_ext <<_ACEOF 2266#line $LINENO "configure" 2267#include "confdefs.h" 2268 2269#ifdef F77_DUMMY_MAIN 2270# ifdef __cplusplus 2271 extern "C" 2272# endif 2273 int F77_DUMMY_MAIN() { return 1; } 2274#endif 2275int 2276main () 2277{ 2278 2279 ; 2280 return 0; 2281} 2282_ACEOF 2283rm -f conftest.o conftest.obj 2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2285 (eval $ac_compile) 2>&5 2286 ac_status=$? 2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2288 (exit $ac_status); }; then 2289 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2290 case $ac_file in 2291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 2292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2293 break;; 2294 esac 2295done 2296else 2297 echo "$as_me: failed program was:" >&5 2298cat conftest.$ac_ext >&5 2299{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 2300echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 2301 { (exit 1); exit 1; }; } 2302fi 2303 2304rm -f conftest.$ac_cv_objext conftest.$ac_ext 2305fi 2306echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2307echo "${ECHO_T}$ac_cv_objext" >&6 2308OBJEXT=$ac_cv_objext 2309ac_objext=$OBJEXT 2310echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2311echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2312if test "${ac_cv_c_compiler_gnu+set}" = set; then 2313 echo $ECHO_N "(cached) $ECHO_C" >&6 2314else 2315 cat >conftest.$ac_ext <<_ACEOF 2316#line $LINENO "configure" 2317#include "confdefs.h" 2318 2319#ifdef F77_DUMMY_MAIN 2320# ifdef __cplusplus 2321 extern "C" 2322# endif 2323 int F77_DUMMY_MAIN() { return 1; } 2324#endif 2325int 2326main () 2327{ 2328#ifndef __GNUC__ 2329 choke me 2330#endif 2331 2332 ; 2333 return 0; 2334} 2335_ACEOF 2336rm -f conftest.$ac_objext 2337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2338 (eval $ac_compile) 2>&5 2339 ac_status=$? 2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2341 (exit $ac_status); } && 2342 { ac_try='test -s conftest.$ac_objext' 2343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2344 (eval $ac_try) 2>&5 2345 ac_status=$? 2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2347 (exit $ac_status); }; }; then 2348 ac_compiler_gnu=yes 2349else 2350 echo "$as_me: failed program was:" >&5 2351cat conftest.$ac_ext >&5 2352ac_compiler_gnu=no 2353fi 2354rm -f conftest.$ac_objext conftest.$ac_ext 2355ac_cv_c_compiler_gnu=$ac_compiler_gnu 2356 2357fi 2358echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2359echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2360GCC=`test $ac_compiler_gnu = yes && echo yes` 2361ac_test_CFLAGS=${CFLAGS+set} 2362ac_save_CFLAGS=$CFLAGS 2363CFLAGS="-g" 2364echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2365echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2366if test "${ac_cv_prog_cc_g+set}" = set; then 2367 echo $ECHO_N "(cached) $ECHO_C" >&6 2368else 2369 cat >conftest.$ac_ext <<_ACEOF 2370#line $LINENO "configure" 2371#include "confdefs.h" 2372 2373#ifdef F77_DUMMY_MAIN 2374# ifdef __cplusplus 2375 extern "C" 2376# endif 2377 int F77_DUMMY_MAIN() { return 1; } 2378#endif 2379int 2380main () 2381{ 2382 2383 ; 2384 return 0; 2385} 2386_ACEOF 2387rm -f conftest.$ac_objext 2388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2389 (eval $ac_compile) 2>&5 2390 ac_status=$? 2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2392 (exit $ac_status); } && 2393 { ac_try='test -s conftest.$ac_objext' 2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2395 (eval $ac_try) 2>&5 2396 ac_status=$? 2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2398 (exit $ac_status); }; }; then 2399 ac_cv_prog_cc_g=yes 2400else 2401 echo "$as_me: failed program was:" >&5 2402cat conftest.$ac_ext >&5 2403ac_cv_prog_cc_g=no 2404fi 2405rm -f conftest.$ac_objext conftest.$ac_ext 2406fi 2407echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2408echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2409if test "$ac_test_CFLAGS" = set; then 2410 CFLAGS=$ac_save_CFLAGS 2411elif test $ac_cv_prog_cc_g = yes; then 2412 if test "$GCC" = yes; then 2413 CFLAGS="-g -O2" 2414 else 2415 CFLAGS="-g" 2416 fi 2417else 2418 if test "$GCC" = yes; then 2419 CFLAGS="-O2" 2420 else 2421 CFLAGS= 2422 fi 2423fi 2424# Some people use a C++ compiler to compile C. Since we use `exit', 2425# in C++ we need to declare it. In case someone uses the same compiler 2426# for both compiling C and C++ we need to have the C++ compiler decide 2427# the declaration of exit, since it's the most demanding environment. 2428cat >conftest.$ac_ext <<_ACEOF 2429#ifndef __cplusplus 2430 choke me 2431#endif 2432_ACEOF 2433rm -f conftest.$ac_objext 2434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2435 (eval $ac_compile) 2>&5 2436 ac_status=$? 2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2438 (exit $ac_status); } && 2439 { ac_try='test -s conftest.$ac_objext' 2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2441 (eval $ac_try) 2>&5 2442 ac_status=$? 2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2444 (exit $ac_status); }; }; then 2445 for ac_declaration in \ 2446 ''\ 2447 '#include <stdlib.h>' \ 2448 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2449 'extern "C" void std::exit (int); using std::exit;' \ 2450 'extern "C" void exit (int) throw ();' \ 2451 'extern "C" void exit (int);' \ 2452 'void exit (int);' 2453do 2454 cat >conftest.$ac_ext <<_ACEOF 2455#line $LINENO "configure" 2456#include "confdefs.h" 2457#include <stdlib.h> 2458$ac_declaration 2459#ifdef F77_DUMMY_MAIN 2460# ifdef __cplusplus 2461 extern "C" 2462# endif 2463 int F77_DUMMY_MAIN() { return 1; } 2464#endif 2465int 2466main () 2467{ 2468exit (42); 2469 ; 2470 return 0; 2471} 2472_ACEOF 2473rm -f conftest.$ac_objext 2474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2475 (eval $ac_compile) 2>&5 2476 ac_status=$? 2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2478 (exit $ac_status); } && 2479 { ac_try='test -s conftest.$ac_objext' 2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2481 (eval $ac_try) 2>&5 2482 ac_status=$? 2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2484 (exit $ac_status); }; }; then 2485 : 2486else 2487 echo "$as_me: failed program was:" >&5 2488cat conftest.$ac_ext >&5 2489continue 2490fi 2491rm -f conftest.$ac_objext conftest.$ac_ext 2492 cat >conftest.$ac_ext <<_ACEOF 2493#line $LINENO "configure" 2494#include "confdefs.h" 2495$ac_declaration 2496#ifdef F77_DUMMY_MAIN 2497# ifdef __cplusplus 2498 extern "C" 2499# endif 2500 int F77_DUMMY_MAIN() { return 1; } 2501#endif 2502int 2503main () 2504{ 2505exit (42); 2506 ; 2507 return 0; 2508} 2509_ACEOF 2510rm -f conftest.$ac_objext 2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2512 (eval $ac_compile) 2>&5 2513 ac_status=$? 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); } && 2516 { ac_try='test -s conftest.$ac_objext' 2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2518 (eval $ac_try) 2>&5 2519 ac_status=$? 2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2521 (exit $ac_status); }; }; then 2522 break 2523else 2524 echo "$as_me: failed program was:" >&5 2525cat conftest.$ac_ext >&5 2526fi 2527rm -f conftest.$ac_objext conftest.$ac_ext 2528done 2529rm -f conftest* 2530if test -n "$ac_declaration"; then 2531 echo '#ifdef __cplusplus' >>confdefs.h 2532 echo $ac_declaration >>confdefs.h 2533 echo '#endif' >>confdefs.h 2534fi 2535 2536else 2537 echo "$as_me: failed program was:" >&5 2538cat conftest.$ac_ext >&5 2539fi 2540rm -f conftest.$ac_objext conftest.$ac_ext 2541ac_ext=c 2542ac_cpp='$CPP $CPPFLAGS' 2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2545ac_compiler_gnu=$ac_cv_c_compiler_gnu 2546 2547 2548case $host in 2549*-*-linux*) 2550 CCOPTIONS="-Dlinux -D_GNU_SOURCE -D_POSIX_SOURCE -D_BSD_SOURCE" 2551 ;; 2552*-*-darwin*) 2553 if test $GCC = yes; then 2554 # Unfortunately, autoconf (at least 2.57) does not recognize 2555 # proper CPP. (Normal cpp-precomp nor auto-retrying in basic mode does 2556 # not work with pubdic+ processing.) So define here .... 2557 # Note: It seems gcc-3.3 (or (probably) later) does not need this. 2558 CPP=${CPP:-"$CC -E -no-cpp-precomp"} 2559 fi 2560 # Don't care other CC-s. 2561 ;; 2562*-*-sunos*) 2563 if test $GCC = yes; then 2564 CCOPTIONS="-Dsun -Dsparc" 2565 else 2566 CCOPTIONS="" 2567 fi 2568 ;; 2569*-*-solaris2.*) 2570 # Will 'solaris*' be OK? 2571 if test $GCC = yes; then 2572 CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV" 2573 else 2574 CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV" 2575 fi 2576 ;; 2577*-*-hpux*) 2578 if test $GCC = yes; then 2579 CCOPTIONS="-Dhpux -DSYSV" 2580 else 2581 CCOPTIONS="-Ae -Dhpux -DSYSV" 2582 fi 2583 ;; 2584i[34567]86-pc-beos*) 2585 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE" 2586 ;; 2587powerpc-*-beos*) 2588 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE" 2589 ;; 2590*-*-aix*) 2591 CCOPTIONS="-DSYSV" 2592 ;; 2593*) 2594 ;; 2595esac 2596 2597if test $debug = true; then 2598 if test $GCC = yes; then 2599 CDEBUGFLAGS=${CDEBUGFLAGS:-"-g2 -O2 -Wall -fstack-check"} 2600 else 2601 CDEBUGFLAGS=${CDEBUGFLAGS:-""} 2602 fi 2603 INSTPGMFLAGS= 2604else 2605 CDEBUGFLAGS=${CDEBUGFLAGS:-""} 2606 INSTPGMFLAGS="-s" 2607fi 2608 2609 2610 2611 2612echo "Set CDEBUGFLAGS and CCOPTIONS to following:" 2613echo ' CDEBUGFLAGS="'"$CDEBUGFLAGS"'"' 2614echo ' CCOPTIONS="'"$CCOPTIONS"'"' 2615 2616ac_ext=c 2617ac_cpp='$CPP $CPPFLAGS' 2618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2620ac_compiler_gnu=$ac_cv_c_compiler_gnu 2621echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2622echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2623# On Suns, sometimes $CPP names a directory. 2624if test -n "$CPP" && test -d "$CPP"; then 2625 CPP= 2626fi 2627if test -z "$CPP"; then 2628 if test "${ac_cv_prog_CPP+set}" = set; then 2629 echo $ECHO_N "(cached) $ECHO_C" >&6 2630else 2631 # Double quotes because CPP needs to be expanded 2632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2633 do 2634 ac_preproc_ok=false 2635for ac_c_preproc_warn_flag in '' yes 2636do 2637 # Use a header file that comes with gcc, so configuring glibc 2638 # with a fresh cross-compiler works. 2639 # On the NeXT, cc -E runs the code through the compiler's parser, 2640 # not just through cpp. "Syntax error" is here to catch this case. 2641 cat >conftest.$ac_ext <<_ACEOF 2642#line $LINENO "configure" 2643#include "confdefs.h" 2644#include <assert.h> 2645 Syntax error 2646_ACEOF 2647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2649 ac_status=$? 2650 egrep -v '^ *\+' conftest.er1 >conftest.err 2651 rm -f conftest.er1 2652 cat conftest.err >&5 2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2654 (exit $ac_status); } >/dev/null; then 2655 if test -s conftest.err; then 2656 ac_cpp_err=$ac_c_preproc_warn_flag 2657 else 2658 ac_cpp_err= 2659 fi 2660else 2661 ac_cpp_err=yes 2662fi 2663if test -z "$ac_cpp_err"; then 2664 : 2665else 2666 echo "$as_me: failed program was:" >&5 2667 cat conftest.$ac_ext >&5 2668 # Broken: fails on valid input. 2669continue 2670fi 2671rm -f conftest.err conftest.$ac_ext 2672 2673 # OK, works on sane cases. Now check whether non-existent headers 2674 # can be detected and how. 2675 cat >conftest.$ac_ext <<_ACEOF 2676#line $LINENO "configure" 2677#include "confdefs.h" 2678#include <ac_nonexistent.h> 2679_ACEOF 2680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2682 ac_status=$? 2683 egrep -v '^ *\+' conftest.er1 >conftest.err 2684 rm -f conftest.er1 2685 cat conftest.err >&5 2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2687 (exit $ac_status); } >/dev/null; then 2688 if test -s conftest.err; then 2689 ac_cpp_err=$ac_c_preproc_warn_flag 2690 else 2691 ac_cpp_err= 2692 fi 2693else 2694 ac_cpp_err=yes 2695fi 2696if test -z "$ac_cpp_err"; then 2697 # Broken: success on invalid input. 2698continue 2699else 2700 echo "$as_me: failed program was:" >&5 2701 cat conftest.$ac_ext >&5 2702 # Passes both tests. 2703ac_preproc_ok=: 2704break 2705fi 2706rm -f conftest.err conftest.$ac_ext 2707 2708done 2709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2710rm -f conftest.err conftest.$ac_ext 2711if $ac_preproc_ok; then 2712 break 2713fi 2714 2715 done 2716 ac_cv_prog_CPP=$CPP 2717 2718fi 2719 CPP=$ac_cv_prog_CPP 2720else 2721 ac_cv_prog_CPP=$CPP 2722fi 2723echo "$as_me:$LINENO: result: $CPP" >&5 2724echo "${ECHO_T}$CPP" >&6 2725ac_preproc_ok=false 2726for ac_c_preproc_warn_flag in '' yes 2727do 2728 # Use a header file that comes with gcc, so configuring glibc 2729 # with a fresh cross-compiler works. 2730 # On the NeXT, cc -E runs the code through the compiler's parser, 2731 # not just through cpp. "Syntax error" is here to catch this case. 2732 cat >conftest.$ac_ext <<_ACEOF 2733#line $LINENO "configure" 2734#include "confdefs.h" 2735#include <assert.h> 2736 Syntax error 2737_ACEOF 2738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2740 ac_status=$? 2741 egrep -v '^ *\+' conftest.er1 >conftest.err 2742 rm -f conftest.er1 2743 cat conftest.err >&5 2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2745 (exit $ac_status); } >/dev/null; then 2746 if test -s conftest.err; then 2747 ac_cpp_err=$ac_c_preproc_warn_flag 2748 else 2749 ac_cpp_err= 2750 fi 2751else 2752 ac_cpp_err=yes 2753fi 2754if test -z "$ac_cpp_err"; then 2755 : 2756else 2757 echo "$as_me: failed program was:" >&5 2758 cat conftest.$ac_ext >&5 2759 # Broken: fails on valid input. 2760continue 2761fi 2762rm -f conftest.err conftest.$ac_ext 2763 2764 # OK, works on sane cases. Now check whether non-existent headers 2765 # can be detected and how. 2766 cat >conftest.$ac_ext <<_ACEOF 2767#line $LINENO "configure" 2768#include "confdefs.h" 2769#include <ac_nonexistent.h> 2770_ACEOF 2771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2773 ac_status=$? 2774 egrep -v '^ *\+' conftest.er1 >conftest.err 2775 rm -f conftest.er1 2776 cat conftest.err >&5 2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2778 (exit $ac_status); } >/dev/null; then 2779 if test -s conftest.err; then 2780 ac_cpp_err=$ac_c_preproc_warn_flag 2781 else 2782 ac_cpp_err= 2783 fi 2784else 2785 ac_cpp_err=yes 2786fi 2787if test -z "$ac_cpp_err"; then 2788 # Broken: success on invalid input. 2789continue 2790else 2791 echo "$as_me: failed program was:" >&5 2792 cat conftest.$ac_ext >&5 2793 # Passes both tests. 2794ac_preproc_ok=: 2795break 2796fi 2797rm -f conftest.err conftest.$ac_ext 2798 2799done 2800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2801rm -f conftest.err conftest.$ac_ext 2802if $ac_preproc_ok; then 2803 : 2804else 2805 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 2806echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2807 { (exit 1); exit 1; }; } 2808fi 2809 2810ac_ext=c 2811ac_cpp='$CPP $CPPFLAGS' 2812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2814ac_compiler_gnu=$ac_cv_c_compiler_gnu 2815 2816 2817# Find a good install program. We prefer a C program (faster), 2818# so one script is as good as another. But avoid the broken or 2819# incompatible versions: 2820# SysV /etc/install, /usr/sbin/install 2821# SunOS /usr/etc/install 2822# IRIX /sbin/install 2823# AIX /bin/install 2824# AmigaOS /C/install, which installs bootblocks on floppy discs 2825# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2826# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2827# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2828# ./install, which can be erroneously created by make from ./install.sh. 2829echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2830echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2831if test -z "$INSTALL"; then 2832if test "${ac_cv_path_install+set}" = set; then 2833 echo $ECHO_N "(cached) $ECHO_C" >&6 2834else 2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2836for as_dir in $PATH 2837do 2838 IFS=$as_save_IFS 2839 test -z "$as_dir" && as_dir=. 2840 # Account for people who put trailing slashes in PATH elements. 2841case $as_dir/ in 2842 ./ | .// | /cC/* | \ 2843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2844 /usr/ucb/* ) ;; 2845 *) 2846 # OSF1 and SCO ODT 3.0 have their own names for install. 2847 # Don't use installbsd from OSF since it installs stuff as root 2848 # by default. 2849 for ac_prog in ginstall scoinst install; do 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2852 if test $ac_prog = install && 2853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2854 # AIX install. It has an incompatible calling convention. 2855 : 2856 elif test $ac_prog = install && 2857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2858 # program-specific install script used by HP pwplus--don't use. 2859 : 2860 else 2861 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2862 break 3 2863 fi 2864 fi 2865 done 2866 done 2867 ;; 2868esac 2869done 2870 2871 2872fi 2873 if test "${ac_cv_path_install+set}" = set; then 2874 INSTALL=$ac_cv_path_install 2875 else 2876 # As a last resort, use the slow shell script. We don't cache a 2877 # path for INSTALL within a source directory, because that will 2878 # break other packages using the cache if that directory is 2879 # removed, or if the path is relative. 2880 INSTALL=$ac_install_sh 2881 fi 2882fi 2883echo "$as_me:$LINENO: result: $INSTALL" >&5 2884echo "${ECHO_T}$INSTALL" >&6 2885 2886# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2887# It thinks the first close brace ends the variable substitution. 2888test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2889 2890test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2891 2892test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2893 2894echo "$as_me:$LINENO: checking whether ln -s works" >&5 2895echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2896LN_S=$as_ln_s 2897if test "$LN_S" = "ln -s"; then 2898 echo "$as_me:$LINENO: result: yes" >&5 2899echo "${ECHO_T}yes" >&6 2900else 2901 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2902echo "${ECHO_T}no, using $LN_S" >&6 2903fi 2904 2905echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 2906echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2907set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2908if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2909 echo $ECHO_N "(cached) $ECHO_C" >&6 2910else 2911 cat >conftest.make <<\_ACEOF 2912all: 2913 @echo 'ac_maketemp="${MAKE}"' 2914_ACEOF 2915# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2916eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2917if test -n "$ac_maketemp"; then 2918 eval ac_cv_prog_make_${ac_make}_set=yes 2919else 2920 eval ac_cv_prog_make_${ac_make}_set=no 2921fi 2922rm -f conftest.make 2923fi 2924if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2925 echo "$as_me:$LINENO: result: yes" >&5 2926echo "${ECHO_T}yes" >&6 2927 SET_MAKE= 2928else 2929 echo "$as_me:$LINENO: result: no" >&5 2930echo "${ECHO_T}no" >&6 2931 SET_MAKE="MAKE=${MAKE-make}" 2932fi 2933 2934# Check whether --enable-shared or --disable-shared was given. 2935if test "${enable_shared+set}" = set; then 2936 enableval="$enable_shared" 2937 p=${PACKAGE-default} 2938 case $enableval in 2939 yes) enable_shared=yes ;; 2940 no) enable_shared=no ;; 2941 *) 2942 enable_shared=no 2943 # Look at the argument we got. We use all the common list separators. 2944 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2945 for pkg in $enableval; do 2946 IFS="$lt_save_ifs" 2947 if test "X$pkg" = "X$p"; then 2948 enable_shared=yes 2949 fi 2950 done 2951 IFS="$lt_save_ifs" 2952 ;; 2953 esac 2954else 2955 enable_shared=yes 2956fi; 2957 2958# Check whether --enable-static or --disable-static was given. 2959if test "${enable_static+set}" = set; then 2960 enableval="$enable_static" 2961 p=${PACKAGE-default} 2962 case $enableval in 2963 yes) enable_static=yes ;; 2964 no) enable_static=no ;; 2965 *) 2966 enable_static=no 2967 # Look at the argument we got. We use all the common list separators. 2968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2969 for pkg in $enableval; do 2970 IFS="$lt_save_ifs" 2971 if test "X$pkg" = "X$p"; then 2972 enable_static=yes 2973 fi 2974 done 2975 IFS="$lt_save_ifs" 2976 ;; 2977 esac 2978else 2979 enable_static=yes 2980fi; 2981 2982# Check whether --enable-fast-install or --disable-fast-install was given. 2983if test "${enable_fast_install+set}" = set; then 2984 enableval="$enable_fast_install" 2985 p=${PACKAGE-default} 2986 case $enableval in 2987 yes) enable_fast_install=yes ;; 2988 no) enable_fast_install=no ;; 2989 *) 2990 enable_fast_install=no 2991 # Look at the argument we got. We use all the common list separators. 2992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2993 for pkg in $enableval; do 2994 IFS="$lt_save_ifs" 2995 if test "X$pkg" = "X$p"; then 2996 enable_fast_install=yes 2997 fi 2998 done 2999 IFS="$lt_save_ifs" 3000 ;; 3001 esac 3002else 3003 enable_fast_install=yes 3004fi; 3005 3006echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3007echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3008if test "${lt_cv_path_SED+set}" = set; then 3009 echo $ECHO_N "(cached) $ECHO_C" >&6 3010else 3011 # Loop through the user's path and test for sed and gsed. 3012# Then use that list of sed's as ones to test for truncation. 3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3014for as_dir in $PATH 3015do 3016 IFS=$as_save_IFS 3017 test -z "$as_dir" && as_dir=. 3018 for lt_ac_prog in sed gsed; do 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3020 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3021 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3022 fi 3023 done 3024 done 3025done 3026lt_ac_max=0 3027lt_ac_count=0 3028# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3029# along with /bin/sed that truncates output. 3030for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3031 test ! -f $lt_ac_sed && break 3032 cat /dev/null > conftest.in 3033 lt_ac_count=0 3034 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3035 # Check for GNU sed and select it if it is found. 3036 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3037 lt_cv_path_SED=$lt_ac_sed 3038 break 3039 fi 3040 while true; do 3041 cat conftest.in conftest.in >conftest.tmp 3042 mv conftest.tmp conftest.in 3043 cp conftest.in conftest.nl 3044 echo >>conftest.nl 3045 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3046 cmp -s conftest.out conftest.nl || break 3047 # 10000 chars as input seems more than enough 3048 test $lt_ac_count -gt 10 && break 3049 lt_ac_count=`expr $lt_ac_count + 1` 3050 if test $lt_ac_count -gt $lt_ac_max; then 3051 lt_ac_max=$lt_ac_count 3052 lt_cv_path_SED=$lt_ac_sed 3053 fi 3054 done 3055done 3056SED=$lt_cv_path_SED 3057 3058fi 3059 3060echo "$as_me:$LINENO: result: $SED" >&5 3061echo "${ECHO_T}$SED" >&6 3062 3063echo "$as_me:$LINENO: checking for egrep" >&5 3064echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3065if test "${ac_cv_prog_egrep+set}" = set; then 3066 echo $ECHO_N "(cached) $ECHO_C" >&6 3067else 3068 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3069 then ac_cv_prog_egrep='grep -E' 3070 else ac_cv_prog_egrep='egrep' 3071 fi 3072fi 3073echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3074echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3075 EGREP=$ac_cv_prog_egrep 3076 3077 3078 3079# Check whether --with-gnu-ld or --without-gnu-ld was given. 3080if test "${with_gnu_ld+set}" = set; then 3081 withval="$with_gnu_ld" 3082 test "$withval" = no || with_gnu_ld=yes 3083else 3084 with_gnu_ld=no 3085fi; 3086ac_prog=ld 3087if test "$GCC" = yes; then 3088 # Check if gcc -print-prog-name=ld gives a path. 3089 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3090echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3091 case $host in 3092 *-*-mingw*) 3093 # gcc leaves a trailing carriage return which upsets mingw 3094 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3095 *) 3096 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3097 esac 3098 case $ac_prog in 3099 # Accept absolute paths. 3100 [\\/]* | ?:[\\/]*) 3101 re_direlt='/[^/][^/]*/\.\./' 3102 # Canonicalize the path of ld 3103 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3104 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3105 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3106 done 3107 test -z "$LD" && LD="$ac_prog" 3108 ;; 3109 "") 3110 # If it fails, then pretend we aren't using GCC. 3111 ac_prog=ld 3112 ;; 3113 *) 3114 # If it is relative, then search for the first ld in PATH. 3115 with_gnu_ld=unknown 3116 ;; 3117 esac 3118elif test "$with_gnu_ld" = yes; then 3119 echo "$as_me:$LINENO: checking for GNU ld" >&5 3120echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3121else 3122 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3123echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3124fi 3125if test "${lt_cv_path_LD+set}" = set; then 3126 echo $ECHO_N "(cached) $ECHO_C" >&6 3127else 3128 if test -z "$LD"; then 3129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3130 for ac_dir in $PATH; do 3131 IFS="$lt_save_ifs" 3132 test -z "$ac_dir" && ac_dir=. 3133 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3134 lt_cv_path_LD="$ac_dir/$ac_prog" 3135 # Check to see if the program is GNU ld. I'd rather use --version, 3136 # but apparently some GNU ld's only accept -v. 3137 # Break only if it was the GNU/non-GNU ld that we prefer. 3138 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3139 *GNU* | *'with BFD'*) 3140 test "$with_gnu_ld" != no && break 3141 ;; 3142 *) 3143 test "$with_gnu_ld" != yes && break 3144 ;; 3145 esac 3146 fi 3147 done 3148 IFS="$lt_save_ifs" 3149else 3150 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3151fi 3152fi 3153 3154LD="$lt_cv_path_LD" 3155if test -n "$LD"; then 3156 echo "$as_me:$LINENO: result: $LD" >&5 3157echo "${ECHO_T}$LD" >&6 3158else 3159 echo "$as_me:$LINENO: result: no" >&5 3160echo "${ECHO_T}no" >&6 3161fi 3162test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3163echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3164 { (exit 1); exit 1; }; } 3165echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3166echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3167if test "${lt_cv_prog_gnu_ld+set}" = set; then 3168 echo $ECHO_N "(cached) $ECHO_C" >&6 3169else 3170 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3171case `"$LD" -v 2>&1 </dev/null` in 3172*GNU* | *'with BFD'*) 3173 lt_cv_prog_gnu_ld=yes 3174 ;; 3175*) 3176 lt_cv_prog_gnu_ld=no 3177 ;; 3178esac 3179fi 3180echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3181echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3182with_gnu_ld=$lt_cv_prog_gnu_ld 3183 3184 3185echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3186echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3187if test "${lt_cv_ld_reload_flag+set}" = set; then 3188 echo $ECHO_N "(cached) $ECHO_C" >&6 3189else 3190 lt_cv_ld_reload_flag='-r' 3191fi 3192echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3193echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3194reload_flag=$lt_cv_ld_reload_flag 3195case $reload_flag in 3196"" | " "*) ;; 3197*) reload_flag=" $reload_flag" ;; 3198esac 3199reload_cmds='$LD$reload_flag -o $output$reload_objs' 3200 3201echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3202echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3203if test "${lt_cv_path_NM+set}" = set; then 3204 echo $ECHO_N "(cached) $ECHO_C" >&6 3205else 3206 if test -n "$NM"; then 3207 # Let the user override the test. 3208 lt_cv_path_NM="$NM" 3209else 3210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3211 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3212 IFS="$lt_save_ifs" 3213 test -z "$ac_dir" && ac_dir=. 3214 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3215 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3216 # Check to see if the nm accepts a BSD-compat flag. 3217 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3218 # nm: unknown option "B" ignored 3219 # Tru64's nm complains that /dev/null is an invalid object file 3220 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3221 */dev/null* | *'Invalid file or object type'*) 3222 lt_cv_path_NM="$tmp_nm -B" 3223 break 3224 ;; 3225 *) 3226 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3227 */dev/null*) 3228 lt_cv_path_NM="$tmp_nm -p" 3229 break 3230 ;; 3231 *) 3232 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3233 continue # so that we can try to find one that supports BSD flags 3234 ;; 3235 esac 3236 esac 3237 fi 3238 done 3239 IFS="$lt_save_ifs" 3240 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3241fi 3242fi 3243echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3244echo "${ECHO_T}$lt_cv_path_NM" >&6 3245NM="$lt_cv_path_NM" 3246 3247echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3248echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3249if test "${lt_cv_deplibs_check_method+set}" = set; then 3250 echo $ECHO_N "(cached) $ECHO_C" >&6 3251else 3252 lt_cv_file_magic_cmd='$MAGIC_CMD' 3253lt_cv_file_magic_test_file= 3254lt_cv_deplibs_check_method='unknown' 3255# Need to set the preceding variable on all platforms that support 3256# interlibrary dependencies. 3257# 'none' -- dependencies not supported. 3258# `unknown' -- same as none, but documents that we really don't know. 3259# 'pass_all' -- all dependencies passed with no checks. 3260# 'test_compile' -- check by making test program. 3261# 'file_magic [[regex]]' -- check by looking for files in library path 3262# which responds to the $file_magic_cmd with a given extended regex. 3263# If you have `file' or equivalent on your system and you're not sure 3264# whether `pass_all' will *always* work, you probably want this one. 3265 3266case $host_os in 3267aix4* | aix5*) 3268 lt_cv_deplibs_check_method=pass_all 3269 ;; 3270 3271beos*) 3272 lt_cv_deplibs_check_method=pass_all 3273 ;; 3274 3275bsdi4*) 3276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3277 lt_cv_file_magic_cmd='/usr/bin/file -L' 3278 lt_cv_file_magic_test_file=/shlib/libc.so 3279 ;; 3280 3281cygwin* | mingw* | pw32*) 3282 # win32_libid is a shell function defined in ltmain.sh 3283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3284 lt_cv_file_magic_cmd='win32_libid' 3285 ;; 3286 3287darwin* | rhapsody*) 3288 # this will be overwritten by pass_all, but leave it in just in case 3289 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3290 lt_cv_file_magic_cmd='/usr/bin/file -L' 3291 case "$host_os" in 3292 rhapsody* | darwin1.[012]) 3293 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 3294 ;; 3295 *) # Darwin 1.3 on 3296 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3297 ;; 3298 esac 3299 lt_cv_deplibs_check_method=pass_all 3300 ;; 3301 3302freebsd*) 3303 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3304 case $host_cpu in 3305 i*86 ) 3306 # Not sure whether the presence of OpenBSD here was a mistake. 3307 # Let's accept both of them until this is cleared up. 3308 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3309 lt_cv_file_magic_cmd=/usr/bin/file 3310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3311 ;; 3312 esac 3313 else 3314 lt_cv_deplibs_check_method=pass_all 3315 fi 3316 ;; 3317 3318gnu*) 3319 lt_cv_deplibs_check_method=pass_all 3320 ;; 3321 3322hpux10.20* | hpux11*) 3323 lt_cv_file_magic_cmd=/usr/bin/file 3324 case "$host_cpu" in 3325 ia64*) 3326 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3327 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3328 ;; 3329 hppa*64*) 3330 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]' 3331 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3332 ;; 3333 *) 3334 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3335 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3336 ;; 3337 esac 3338 ;; 3339 3340irix5* | irix6* | nonstopux*) 3341 case $host_os in 3342 irix5* | nonstopux*) 3343 # this will be overridden with pass_all, but let us keep it just in case 3344 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3345 ;; 3346 *) 3347 case $LD in 3348 *-32|*"-32 ") libmagic=32-bit;; 3349 *-n32|*"-n32 ") libmagic=N32;; 3350 *-64|*"-64 ") libmagic=64-bit;; 3351 *) libmagic=never-match;; 3352 esac 3353 # this will be overridden with pass_all, but let us keep it just in case 3354 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3355 ;; 3356 esac 3357 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3358 lt_cv_deplibs_check_method=pass_all 3359 ;; 3360 3361# This must be Linux ELF. 3362linux*) 3363 case $host_cpu in 3364 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) 3365 lt_cv_deplibs_check_method=pass_all ;; 3366 *) 3367 # glibc up to 2.1.1 does not perform some relocations on ARM 3368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3369 esac 3370 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3371 ;; 3372 3373netbsd*) 3374 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3376 else 3377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3378 fi 3379 ;; 3380 3381newos6*) 3382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3383 lt_cv_file_magic_cmd=/usr/bin/file 3384 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3385 ;; 3386 3387nto-qnx) 3388 lt_cv_deplibs_check_method=unknown 3389 ;; 3390 3391openbsd*) 3392 lt_cv_file_magic_cmd=/usr/bin/file 3393 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3396 else 3397 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3398 fi 3399 ;; 3400 3401osf3* | osf4* | osf5*) 3402 # this will be overridden with pass_all, but let us keep it just in case 3403 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3404 lt_cv_file_magic_test_file=/shlib/libc.so 3405 lt_cv_deplibs_check_method=pass_all 3406 ;; 3407 3408sco3.2v5*) 3409 lt_cv_deplibs_check_method=pass_all 3410 ;; 3411 3412solaris*) 3413 lt_cv_deplibs_check_method=pass_all 3414 lt_cv_file_magic_test_file=/lib/libc.so 3415 ;; 3416 3417sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3418 case $host_vendor in 3419 motorola) 3420 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]' 3421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3422 ;; 3423 ncr) 3424 lt_cv_deplibs_check_method=pass_all 3425 ;; 3426 sequent) 3427 lt_cv_file_magic_cmd='/bin/file' 3428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3429 ;; 3430 sni) 3431 lt_cv_file_magic_cmd='/bin/file' 3432 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3433 lt_cv_file_magic_test_file=/lib/libc.so 3434 ;; 3435 siemens) 3436 lt_cv_deplibs_check_method=pass_all 3437 ;; 3438 esac 3439 ;; 3440 3441sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3442 lt_cv_deplibs_check_method=pass_all 3443 ;; 3444esac 3445 3446fi 3447echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3448echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3449file_magic_cmd=$lt_cv_file_magic_cmd 3450deplibs_check_method=$lt_cv_deplibs_check_method 3451test -z "$deplibs_check_method" && deplibs_check_method=unknown 3452 3453 3454 3455 3456# If no C compiler was specified, use CC. 3457LTCC=${LTCC-"$CC"} 3458 3459# Allow CC to be a program name with arguments. 3460compiler=$CC 3461 3462 3463# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3464if test "${enable_libtool_lock+set}" = set; then 3465 enableval="$enable_libtool_lock" 3466 3467fi; 3468test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3469 3470# Some flags need to be propagated to the compiler or linker for good 3471# libtool support. 3472case $host in 3473ia64-*-hpux*) 3474 # Find out which ABI we are using. 3475 echo 'int i;' > conftest.$ac_ext 3476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3477 (eval $ac_compile) 2>&5 3478 ac_status=$? 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); }; then 3481 case `/usr/bin/file conftest.$ac_objext` in 3482 *ELF-32*) 3483 HPUX_IA64_MODE="32" 3484 ;; 3485 *ELF-64*) 3486 HPUX_IA64_MODE="64" 3487 ;; 3488 esac 3489 fi 3490 rm -rf conftest* 3491 ;; 3492*-*-irix6*) 3493 # Find out which ABI we are using. 3494 echo '#line 3494 "configure"' > conftest.$ac_ext 3495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3496 (eval $ac_compile) 2>&5 3497 ac_status=$? 3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3499 (exit $ac_status); }; then 3500 if test "$lt_cv_prog_gnu_ld" = yes; then 3501 case `/usr/bin/file conftest.$ac_objext` in 3502 *32-bit*) 3503 LD="${LD-ld} -melf32bsmip" 3504 ;; 3505 *N32*) 3506 LD="${LD-ld} -melf32bmipn32" 3507 ;; 3508 *64-bit*) 3509 LD="${LD-ld} -melf64bmip" 3510 ;; 3511 esac 3512 else 3513 case `/usr/bin/file conftest.$ac_objext` in 3514 *32-bit*) 3515 LD="${LD-ld} -32" 3516 ;; 3517 *N32*) 3518 LD="${LD-ld} -n32" 3519 ;; 3520 *64-bit*) 3521 LD="${LD-ld} -64" 3522 ;; 3523 esac 3524 fi 3525 fi 3526 rm -rf conftest* 3527 ;; 3528 3529x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3530 # Find out which ABI we are using. 3531 echo 'int i;' > conftest.$ac_ext 3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3533 (eval $ac_compile) 2>&5 3534 ac_status=$? 3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3536 (exit $ac_status); }; then 3537 case "`/usr/bin/file conftest.o`" in 3538 *32-bit*) 3539 case $host in 3540 x86_64-*linux*) 3541 LD="${LD-ld} -m elf_i386" 3542 ;; 3543 ppc64-*linux*) 3544 LD="${LD-ld} -m elf32ppclinux" 3545 ;; 3546 s390x-*linux*) 3547 LD="${LD-ld} -m elf_s390" 3548 ;; 3549 sparc64-*linux*) 3550 LD="${LD-ld} -m elf32_sparc" 3551 ;; 3552 esac 3553 ;; 3554 *64-bit*) 3555 case $host in 3556 x86_64-*linux*) 3557 LD="${LD-ld} -m elf_x86_64" 3558 ;; 3559 ppc*-*linux*|powerpc*-*linux*) 3560 LD="${LD-ld} -m elf64ppc" 3561 ;; 3562 s390*-*linux*) 3563 LD="${LD-ld} -m elf64_s390" 3564 ;; 3565 sparc*-*linux*) 3566 LD="${LD-ld} -m elf64_sparc" 3567 ;; 3568 esac 3569 ;; 3570 esac 3571 fi 3572 rm -rf conftest* 3573 ;; 3574 3575*-*-sco3.2v5*) 3576 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3577 SAVE_CFLAGS="$CFLAGS" 3578 CFLAGS="$CFLAGS -belf" 3579 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3580echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3581if test "${lt_cv_cc_needs_belf+set}" = set; then 3582 echo $ECHO_N "(cached) $ECHO_C" >&6 3583else 3584 ac_ext=c 3585ac_cpp='$CPP $CPPFLAGS' 3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3588ac_compiler_gnu=$ac_cv_c_compiler_gnu 3589 3590 cat >conftest.$ac_ext <<_ACEOF 3591#line $LINENO "configure" 3592#include "confdefs.h" 3593 3594#ifdef F77_DUMMY_MAIN 3595# ifdef __cplusplus 3596 extern "C" 3597# endif 3598 int F77_DUMMY_MAIN() { return 1; } 3599#endif 3600int 3601main () 3602{ 3603 3604 ; 3605 return 0; 3606} 3607_ACEOF 3608rm -f conftest.$ac_objext conftest$ac_exeext 3609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3610 (eval $ac_link) 2>&5 3611 ac_status=$? 3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3613 (exit $ac_status); } && 3614 { ac_try='test -s conftest$ac_exeext' 3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3616 (eval $ac_try) 2>&5 3617 ac_status=$? 3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3619 (exit $ac_status); }; }; then 3620 lt_cv_cc_needs_belf=yes 3621else 3622 echo "$as_me: failed program was:" >&5 3623cat conftest.$ac_ext >&5 3624lt_cv_cc_needs_belf=no 3625fi 3626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3627 ac_ext=c 3628ac_cpp='$CPP $CPPFLAGS' 3629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3631ac_compiler_gnu=$ac_cv_c_compiler_gnu 3632 3633fi 3634echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3635echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3636 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3637 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3638 CFLAGS="$SAVE_CFLAGS" 3639 fi 3640 ;; 3641 3642esac 3643 3644need_locks="$enable_libtool_lock" 3645 3646 3647 3648echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3649echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3650if test "${ac_cv_header_stdc+set}" = set; then 3651 echo $ECHO_N "(cached) $ECHO_C" >&6 3652else 3653 cat >conftest.$ac_ext <<_ACEOF 3654#line $LINENO "configure" 3655#include "confdefs.h" 3656#include <stdlib.h> 3657#include <stdarg.h> 3658#include <string.h> 3659#include <float.h> 3660 3661_ACEOF 3662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3664 ac_status=$? 3665 egrep -v '^ *\+' conftest.er1 >conftest.err 3666 rm -f conftest.er1 3667 cat conftest.err >&5 3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 (exit $ac_status); } >/dev/null; then 3670 if test -s conftest.err; then 3671 ac_cpp_err=$ac_c_preproc_warn_flag 3672 else 3673 ac_cpp_err= 3674 fi 3675else 3676 ac_cpp_err=yes 3677fi 3678if test -z "$ac_cpp_err"; then 3679 ac_cv_header_stdc=yes 3680else 3681 echo "$as_me: failed program was:" >&5 3682 cat conftest.$ac_ext >&5 3683 ac_cv_header_stdc=no 3684fi 3685rm -f conftest.err conftest.$ac_ext 3686 3687if test $ac_cv_header_stdc = yes; then 3688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3689 cat >conftest.$ac_ext <<_ACEOF 3690#line $LINENO "configure" 3691#include "confdefs.h" 3692#include <string.h> 3693 3694_ACEOF 3695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3696 egrep "memchr" >/dev/null 2>&1; then 3697 : 3698else 3699 ac_cv_header_stdc=no 3700fi 3701rm -f conftest* 3702 3703fi 3704 3705if test $ac_cv_header_stdc = yes; then 3706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3707 cat >conftest.$ac_ext <<_ACEOF 3708#line $LINENO "configure" 3709#include "confdefs.h" 3710#include <stdlib.h> 3711 3712_ACEOF 3713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3714 egrep "free" >/dev/null 2>&1; then 3715 : 3716else 3717 ac_cv_header_stdc=no 3718fi 3719rm -f conftest* 3720 3721fi 3722 3723if test $ac_cv_header_stdc = yes; then 3724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3725 if test "$cross_compiling" = yes; then 3726 : 3727else 3728 cat >conftest.$ac_ext <<_ACEOF 3729#line $LINENO "configure" 3730#include "confdefs.h" 3731#include <ctype.h> 3732#if ((' ' & 0x0FF) == 0x020) 3733# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3734# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3735#else 3736# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3737 || ('j' <= (c) && (c) <= 'r') \ 3738 || ('s' <= (c) && (c) <= 'z')) 3739# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3740#endif 3741 3742#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3743int 3744main () 3745{ 3746 int i; 3747 for (i = 0; i < 256; i++) 3748 if (XOR (islower (i), ISLOWER (i)) 3749 || toupper (i) != TOUPPER (i)) 3750 exit(2); 3751 exit (0); 3752} 3753_ACEOF 3754rm -f conftest$ac_exeext 3755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3756 (eval $ac_link) 2>&5 3757 ac_status=$? 3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3761 (eval $ac_try) 2>&5 3762 ac_status=$? 3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3764 (exit $ac_status); }; }; then 3765 : 3766else 3767 echo "$as_me: program exited with status $ac_status" >&5 3768echo "$as_me: failed program was:" >&5 3769cat conftest.$ac_ext >&5 3770( exit $ac_status ) 3771ac_cv_header_stdc=no 3772fi 3773rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3774fi 3775fi 3776fi 3777echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3778echo "${ECHO_T}$ac_cv_header_stdc" >&6 3779if test $ac_cv_header_stdc = yes; then 3780 3781cat >>confdefs.h <<\_ACEOF 3782#define STDC_HEADERS 1 3783_ACEOF 3784 3785fi 3786 3787# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3798 inttypes.h stdint.h unistd.h 3799do 3800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3801echo "$as_me:$LINENO: checking for $ac_header" >&5 3802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3803if eval "test \"\${$as_ac_Header+set}\" = set"; then 3804 echo $ECHO_N "(cached) $ECHO_C" >&6 3805else 3806 cat >conftest.$ac_ext <<_ACEOF 3807#line $LINENO "configure" 3808#include "confdefs.h" 3809$ac_includes_default 3810 3811#include <$ac_header> 3812_ACEOF 3813rm -f conftest.$ac_objext 3814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3815 (eval $ac_compile) 2>&5 3816 ac_status=$? 3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3818 (exit $ac_status); } && 3819 { ac_try='test -s conftest.$ac_objext' 3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3821 (eval $ac_try) 2>&5 3822 ac_status=$? 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3824 (exit $ac_status); }; }; then 3825 eval "$as_ac_Header=yes" 3826else 3827 echo "$as_me: failed program was:" >&5 3828cat conftest.$ac_ext >&5 3829eval "$as_ac_Header=no" 3830fi 3831rm -f conftest.$ac_objext conftest.$ac_ext 3832fi 3833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3835if test `eval echo '${'$as_ac_Header'}'` = yes; then 3836 cat >>confdefs.h <<_ACEOF 3837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3838_ACEOF 3839 3840fi 3841 3842done 3843 3844 3845 3846for ac_header in dlfcn.h 3847do 3848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3849if eval "test \"\${$as_ac_Header+set}\" = set"; then 3850 echo "$as_me:$LINENO: checking for $ac_header" >&5 3851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3852if eval "test \"\${$as_ac_Header+set}\" = set"; then 3853 echo $ECHO_N "(cached) $ECHO_C" >&6 3854fi 3855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3857else 3858 # Is the header compilable? 3859echo "$as_me:$LINENO: checking $ac_header usability" >&5 3860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3861cat >conftest.$ac_ext <<_ACEOF 3862#line $LINENO "configure" 3863#include "confdefs.h" 3864$ac_includes_default 3865#include <$ac_header> 3866_ACEOF 3867rm -f conftest.$ac_objext 3868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3869 (eval $ac_compile) 2>&5 3870 ac_status=$? 3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3872 (exit $ac_status); } && 3873 { ac_try='test -s conftest.$ac_objext' 3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3875 (eval $ac_try) 2>&5 3876 ac_status=$? 3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3878 (exit $ac_status); }; }; then 3879 ac_header_compiler=yes 3880else 3881 echo "$as_me: failed program was:" >&5 3882cat conftest.$ac_ext >&5 3883ac_header_compiler=no 3884fi 3885rm -f conftest.$ac_objext conftest.$ac_ext 3886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3887echo "${ECHO_T}$ac_header_compiler" >&6 3888 3889# Is the header present? 3890echo "$as_me:$LINENO: checking $ac_header presence" >&5 3891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3892cat >conftest.$ac_ext <<_ACEOF 3893#line $LINENO "configure" 3894#include "confdefs.h" 3895#include <$ac_header> 3896_ACEOF 3897if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3899 ac_status=$? 3900 egrep -v '^ *\+' conftest.er1 >conftest.err 3901 rm -f conftest.er1 3902 cat conftest.err >&5 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); } >/dev/null; then 3905 if test -s conftest.err; then 3906 ac_cpp_err=$ac_c_preproc_warn_flag 3907 else 3908 ac_cpp_err= 3909 fi 3910else 3911 ac_cpp_err=yes 3912fi 3913if test -z "$ac_cpp_err"; then 3914 ac_header_preproc=yes 3915else 3916 echo "$as_me: failed program was:" >&5 3917 cat conftest.$ac_ext >&5 3918 ac_header_preproc=no 3919fi 3920rm -f conftest.err conftest.$ac_ext 3921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3922echo "${ECHO_T}$ac_header_preproc" >&6 3923 3924# So? What about this header? 3925case $ac_header_compiler:$ac_header_preproc in 3926 yes:no ) 3927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3931 no:yes ) 3932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3938esac 3939echo "$as_me:$LINENO: checking for $ac_header" >&5 3940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3941if eval "test \"\${$as_ac_Header+set}\" = set"; then 3942 echo $ECHO_N "(cached) $ECHO_C" >&6 3943else 3944 eval "$as_ac_Header=$ac_header_preproc" 3945fi 3946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3948 3949fi 3950if test `eval echo '${'$as_ac_Header'}'` = yes; then 3951 cat >>confdefs.h <<_ACEOF 3952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3953_ACEOF 3954 3955fi 3956 3957done 3958 3959ac_ext=cc 3960ac_cpp='$CXXCPP $CPPFLAGS' 3961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3964if test -n "$ac_tool_prefix"; then 3965 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3966 do 3967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3968set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3969echo "$as_me:$LINENO: checking for $ac_word" >&5 3970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3971if test "${ac_cv_prog_CXX+set}" = set; then 3972 echo $ECHO_N "(cached) $ECHO_C" >&6 3973else 3974 if test -n "$CXX"; then 3975 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3976else 3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3978for as_dir in $PATH 3979do 3980 IFS=$as_save_IFS 3981 test -z "$as_dir" && as_dir=. 3982 for ac_exec_ext in '' $ac_executable_extensions; do 3983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3984 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3986 break 2 3987 fi 3988done 3989done 3990 3991fi 3992fi 3993CXX=$ac_cv_prog_CXX 3994if test -n "$CXX"; then 3995 echo "$as_me:$LINENO: result: $CXX" >&5 3996echo "${ECHO_T}$CXX" >&6 3997else 3998 echo "$as_me:$LINENO: result: no" >&5 3999echo "${ECHO_T}no" >&6 4000fi 4001 4002 test -n "$CXX" && break 4003 done 4004fi 4005if test -z "$CXX"; then 4006 ac_ct_CXX=$CXX 4007 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 4008do 4009 # Extract the first word of "$ac_prog", so it can be a program name with args. 4010set dummy $ac_prog; ac_word=$2 4011echo "$as_me:$LINENO: checking for $ac_word" >&5 4012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4013if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 4014 echo $ECHO_N "(cached) $ECHO_C" >&6 4015else 4016 if test -n "$ac_ct_CXX"; then 4017 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4018else 4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4020for as_dir in $PATH 4021do 4022 IFS=$as_save_IFS 4023 test -z "$as_dir" && as_dir=. 4024 for ac_exec_ext in '' $ac_executable_extensions; do 4025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4026 ac_cv_prog_ac_ct_CXX="$ac_prog" 4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4028 break 2 4029 fi 4030done 4031done 4032 4033fi 4034fi 4035ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4036if test -n "$ac_ct_CXX"; then 4037 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 4038echo "${ECHO_T}$ac_ct_CXX" >&6 4039else 4040 echo "$as_me:$LINENO: result: no" >&5 4041echo "${ECHO_T}no" >&6 4042fi 4043 4044 test -n "$ac_ct_CXX" && break 4045done 4046test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 4047 4048 CXX=$ac_ct_CXX 4049fi 4050 4051 4052# Provide some information about the compiler. 4053echo "$as_me:$LINENO:" \ 4054 "checking for C++ compiler version" >&5 4055ac_compiler=`set X $ac_compile; echo $2` 4056{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4057 (eval $ac_compiler --version </dev/null >&5) 2>&5 4058 ac_status=$? 4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4060 (exit $ac_status); } 4061{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4062 (eval $ac_compiler -v </dev/null >&5) 2>&5 4063 ac_status=$? 4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4065 (exit $ac_status); } 4066{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4067 (eval $ac_compiler -V </dev/null >&5) 2>&5 4068 ac_status=$? 4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4070 (exit $ac_status); } 4071 4072echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 4073echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 4074if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 4075 echo $ECHO_N "(cached) $ECHO_C" >&6 4076else 4077 cat >conftest.$ac_ext <<_ACEOF 4078#line $LINENO "configure" 4079#include "confdefs.h" 4080 4081#ifdef F77_DUMMY_MAIN 4082# ifdef __cplusplus 4083 extern "C" 4084# endif 4085 int F77_DUMMY_MAIN() { return 1; } 4086#endif 4087int 4088main () 4089{ 4090#ifndef __GNUC__ 4091 choke me 4092#endif 4093 4094 ; 4095 return 0; 4096} 4097_ACEOF 4098rm -f conftest.$ac_objext 4099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4100 (eval $ac_compile) 2>&5 4101 ac_status=$? 4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4103 (exit $ac_status); } && 4104 { ac_try='test -s conftest.$ac_objext' 4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4106 (eval $ac_try) 2>&5 4107 ac_status=$? 4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4109 (exit $ac_status); }; }; then 4110 ac_compiler_gnu=yes 4111else 4112 echo "$as_me: failed program was:" >&5 4113cat conftest.$ac_ext >&5 4114ac_compiler_gnu=no 4115fi 4116rm -f conftest.$ac_objext conftest.$ac_ext 4117ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4118 4119fi 4120echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 4121echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 4122GXX=`test $ac_compiler_gnu = yes && echo yes` 4123ac_test_CXXFLAGS=${CXXFLAGS+set} 4124ac_save_CXXFLAGS=$CXXFLAGS 4125CXXFLAGS="-g" 4126echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 4127echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 4128if test "${ac_cv_prog_cxx_g+set}" = set; then 4129 echo $ECHO_N "(cached) $ECHO_C" >&6 4130else 4131 cat >conftest.$ac_ext <<_ACEOF 4132#line $LINENO "configure" 4133#include "confdefs.h" 4134 4135#ifdef F77_DUMMY_MAIN 4136# ifdef __cplusplus 4137 extern "C" 4138# endif 4139 int F77_DUMMY_MAIN() { return 1; } 4140#endif 4141int 4142main () 4143{ 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149rm -f conftest.$ac_objext 4150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4151 (eval $ac_compile) 2>&5 4152 ac_status=$? 4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4154 (exit $ac_status); } && 4155 { ac_try='test -s conftest.$ac_objext' 4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4157 (eval $ac_try) 2>&5 4158 ac_status=$? 4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4160 (exit $ac_status); }; }; then 4161 ac_cv_prog_cxx_g=yes 4162else 4163 echo "$as_me: failed program was:" >&5 4164cat conftest.$ac_ext >&5 4165ac_cv_prog_cxx_g=no 4166fi 4167rm -f conftest.$ac_objext conftest.$ac_ext 4168fi 4169echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4170echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 4171if test "$ac_test_CXXFLAGS" = set; then 4172 CXXFLAGS=$ac_save_CXXFLAGS 4173elif test $ac_cv_prog_cxx_g = yes; then 4174 if test "$GXX" = yes; then 4175 CXXFLAGS="-g -O2" 4176 else 4177 CXXFLAGS="-g" 4178 fi 4179else 4180 if test "$GXX" = yes; then 4181 CXXFLAGS="-O2" 4182 else 4183 CXXFLAGS= 4184 fi 4185fi 4186for ac_declaration in \ 4187 ''\ 4188 '#include <stdlib.h>' \ 4189 'extern "C" void std::exit (int) throw (); using std::exit;' \ 4190 'extern "C" void std::exit (int); using std::exit;' \ 4191 'extern "C" void exit (int) throw ();' \ 4192 'extern "C" void exit (int);' \ 4193 'void exit (int);' 4194do 4195 cat >conftest.$ac_ext <<_ACEOF 4196#line $LINENO "configure" 4197#include "confdefs.h" 4198#include <stdlib.h> 4199$ac_declaration 4200#ifdef F77_DUMMY_MAIN 4201# ifdef __cplusplus 4202 extern "C" 4203# endif 4204 int F77_DUMMY_MAIN() { return 1; } 4205#endif 4206int 4207main () 4208{ 4209exit (42); 4210 ; 4211 return 0; 4212} 4213_ACEOF 4214rm -f conftest.$ac_objext 4215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4216 (eval $ac_compile) 2>&5 4217 ac_status=$? 4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4219 (exit $ac_status); } && 4220 { ac_try='test -s conftest.$ac_objext' 4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4222 (eval $ac_try) 2>&5 4223 ac_status=$? 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4225 (exit $ac_status); }; }; then 4226 : 4227else 4228 echo "$as_me: failed program was:" >&5 4229cat conftest.$ac_ext >&5 4230continue 4231fi 4232rm -f conftest.$ac_objext conftest.$ac_ext 4233 cat >conftest.$ac_ext <<_ACEOF 4234#line $LINENO "configure" 4235#include "confdefs.h" 4236$ac_declaration 4237#ifdef F77_DUMMY_MAIN 4238# ifdef __cplusplus 4239 extern "C" 4240# endif 4241 int F77_DUMMY_MAIN() { return 1; } 4242#endif 4243int 4244main () 4245{ 4246exit (42); 4247 ; 4248 return 0; 4249} 4250_ACEOF 4251rm -f conftest.$ac_objext 4252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4253 (eval $ac_compile) 2>&5 4254 ac_status=$? 4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4256 (exit $ac_status); } && 4257 { ac_try='test -s conftest.$ac_objext' 4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4259 (eval $ac_try) 2>&5 4260 ac_status=$? 4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4262 (exit $ac_status); }; }; then 4263 break 4264else 4265 echo "$as_me: failed program was:" >&5 4266cat conftest.$ac_ext >&5 4267fi 4268rm -f conftest.$ac_objext conftest.$ac_ext 4269done 4270rm -f conftest* 4271if test -n "$ac_declaration"; then 4272 echo '#ifdef __cplusplus' >>confdefs.h 4273 echo $ac_declaration >>confdefs.h 4274 echo '#endif' >>confdefs.h 4275fi 4276 4277ac_ext=cc 4278ac_cpp='$CXXCPP $CPPFLAGS' 4279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4282 4283ac_ext=cc 4284ac_cpp='$CXXCPP $CPPFLAGS' 4285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4288echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4289echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4290if test -z "$CXXCPP"; then 4291 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4292 echo $ECHO_N "(cached) $ECHO_C" >&6 4293else 4294 # Double quotes because CXXCPP needs to be expanded 4295 for CXXCPP in "$CXX -E" "/lib/cpp" 4296 do 4297 ac_preproc_ok=false 4298for ac_cxx_preproc_warn_flag in '' yes 4299do 4300 # Use a header file that comes with gcc, so configuring glibc 4301 # with a fresh cross-compiler works. 4302 # On the NeXT, cc -E runs the code through the compiler's parser, 4303 # not just through cpp. "Syntax error" is here to catch this case. 4304 cat >conftest.$ac_ext <<_ACEOF 4305#line $LINENO "configure" 4306#include "confdefs.h" 4307#include <assert.h> 4308 Syntax error 4309_ACEOF 4310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4312 ac_status=$? 4313 egrep -v '^ *\+' conftest.er1 >conftest.err 4314 rm -f conftest.er1 4315 cat conftest.err >&5 4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4317 (exit $ac_status); } >/dev/null; then 4318 if test -s conftest.err; then 4319 ac_cpp_err=$ac_cxx_preproc_warn_flag 4320 else 4321 ac_cpp_err= 4322 fi 4323else 4324 ac_cpp_err=yes 4325fi 4326if test -z "$ac_cpp_err"; then 4327 : 4328else 4329 echo "$as_me: failed program was:" >&5 4330 cat conftest.$ac_ext >&5 4331 # Broken: fails on valid input. 4332continue 4333fi 4334rm -f conftest.err conftest.$ac_ext 4335 4336 # OK, works on sane cases. Now check whether non-existent headers 4337 # can be detected and how. 4338 cat >conftest.$ac_ext <<_ACEOF 4339#line $LINENO "configure" 4340#include "confdefs.h" 4341#include <ac_nonexistent.h> 4342_ACEOF 4343if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4345 ac_status=$? 4346 egrep -v '^ *\+' conftest.er1 >conftest.err 4347 rm -f conftest.er1 4348 cat conftest.err >&5 4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4350 (exit $ac_status); } >/dev/null; then 4351 if test -s conftest.err; then 4352 ac_cpp_err=$ac_cxx_preproc_warn_flag 4353 else 4354 ac_cpp_err= 4355 fi 4356else 4357 ac_cpp_err=yes 4358fi 4359if test -z "$ac_cpp_err"; then 4360 # Broken: success on invalid input. 4361continue 4362else 4363 echo "$as_me: failed program was:" >&5 4364 cat conftest.$ac_ext >&5 4365 # Passes both tests. 4366ac_preproc_ok=: 4367break 4368fi 4369rm -f conftest.err conftest.$ac_ext 4370 4371done 4372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4373rm -f conftest.err conftest.$ac_ext 4374if $ac_preproc_ok; then 4375 break 4376fi 4377 4378 done 4379 ac_cv_prog_CXXCPP=$CXXCPP 4380 4381fi 4382 CXXCPP=$ac_cv_prog_CXXCPP 4383else 4384 ac_cv_prog_CXXCPP=$CXXCPP 4385fi 4386echo "$as_me:$LINENO: result: $CXXCPP" >&5 4387echo "${ECHO_T}$CXXCPP" >&6 4388ac_preproc_ok=false 4389for ac_cxx_preproc_warn_flag in '' yes 4390do 4391 # Use a header file that comes with gcc, so configuring glibc 4392 # with a fresh cross-compiler works. 4393 # On the NeXT, cc -E runs the code through the compiler's parser, 4394 # not just through cpp. "Syntax error" is here to catch this case. 4395 cat >conftest.$ac_ext <<_ACEOF 4396#line $LINENO "configure" 4397#include "confdefs.h" 4398#include <assert.h> 4399 Syntax error 4400_ACEOF 4401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4403 ac_status=$? 4404 egrep -v '^ *\+' conftest.er1 >conftest.err 4405 rm -f conftest.er1 4406 cat conftest.err >&5 4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4408 (exit $ac_status); } >/dev/null; then 4409 if test -s conftest.err; then 4410 ac_cpp_err=$ac_cxx_preproc_warn_flag 4411 else 4412 ac_cpp_err= 4413 fi 4414else 4415 ac_cpp_err=yes 4416fi 4417if test -z "$ac_cpp_err"; then 4418 : 4419else 4420 echo "$as_me: failed program was:" >&5 4421 cat conftest.$ac_ext >&5 4422 # Broken: fails on valid input. 4423continue 4424fi 4425rm -f conftest.err conftest.$ac_ext 4426 4427 # OK, works on sane cases. Now check whether non-existent headers 4428 # can be detected and how. 4429 cat >conftest.$ac_ext <<_ACEOF 4430#line $LINENO "configure" 4431#include "confdefs.h" 4432#include <ac_nonexistent.h> 4433_ACEOF 4434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4436 ac_status=$? 4437 egrep -v '^ *\+' conftest.er1 >conftest.err 4438 rm -f conftest.er1 4439 cat conftest.err >&5 4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4441 (exit $ac_status); } >/dev/null; then 4442 if test -s conftest.err; then 4443 ac_cpp_err=$ac_cxx_preproc_warn_flag 4444 else 4445 ac_cpp_err= 4446 fi 4447else 4448 ac_cpp_err=yes 4449fi 4450if test -z "$ac_cpp_err"; then 4451 # Broken: success on invalid input. 4452continue 4453else 4454 echo "$as_me: failed program was:" >&5 4455 cat conftest.$ac_ext >&5 4456 # Passes both tests. 4457ac_preproc_ok=: 4458break 4459fi 4460rm -f conftest.err conftest.$ac_ext 4461 4462done 4463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4464rm -f conftest.err conftest.$ac_ext 4465if $ac_preproc_ok; then 4466 : 4467else 4468 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 4469echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} 4470 { (exit 1); exit 1; }; } 4471fi 4472 4473ac_ext=cc 4474ac_cpp='$CXXCPP $CPPFLAGS' 4475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4478 4479 4480ac_ext=f 4481ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4482ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4483ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4484if test -n "$ac_tool_prefix"; then 4485 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc 4486 do 4487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4488set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4489echo "$as_me:$LINENO: checking for $ac_word" >&5 4490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4491if test "${ac_cv_prog_F77+set}" = set; then 4492 echo $ECHO_N "(cached) $ECHO_C" >&6 4493else 4494 if test -n "$F77"; then 4495 ac_cv_prog_F77="$F77" # Let the user override the test. 4496else 4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498for as_dir in $PATH 4499do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_exec_ext in '' $ac_executable_extensions; do 4503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4504 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4506 break 2 4507 fi 4508done 4509done 4510 4511fi 4512fi 4513F77=$ac_cv_prog_F77 4514if test -n "$F77"; then 4515 echo "$as_me:$LINENO: result: $F77" >&5 4516echo "${ECHO_T}$F77" >&6 4517else 4518 echo "$as_me:$LINENO: result: no" >&5 4519echo "${ECHO_T}no" >&6 4520fi 4521 4522 test -n "$F77" && break 4523 done 4524fi 4525if test -z "$F77"; then 4526 ac_ct_F77=$F77 4527 for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc 4528do 4529 # Extract the first word of "$ac_prog", so it can be a program name with args. 4530set dummy $ac_prog; ac_word=$2 4531echo "$as_me:$LINENO: checking for $ac_word" >&5 4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4533if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4534 echo $ECHO_N "(cached) $ECHO_C" >&6 4535else 4536 if test -n "$ac_ct_F77"; then 4537 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4538else 4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4540for as_dir in $PATH 4541do 4542 IFS=$as_save_IFS 4543 test -z "$as_dir" && as_dir=. 4544 for ac_exec_ext in '' $ac_executable_extensions; do 4545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4546 ac_cv_prog_ac_ct_F77="$ac_prog" 4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4548 break 2 4549 fi 4550done 4551done 4552 4553fi 4554fi 4555ac_ct_F77=$ac_cv_prog_ac_ct_F77 4556if test -n "$ac_ct_F77"; then 4557 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4558echo "${ECHO_T}$ac_ct_F77" >&6 4559else 4560 echo "$as_me:$LINENO: result: no" >&5 4561echo "${ECHO_T}no" >&6 4562fi 4563 4564 test -n "$ac_ct_F77" && break 4565done 4566 4567 F77=$ac_ct_F77 4568fi 4569 4570 4571# Provide some information about the compiler. 4572echo "$as_me:4572:" \ 4573 "checking for Fortran 77 compiler version" >&5 4574ac_compiler=`set X $ac_compile; echo $2` 4575{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4576 (eval $ac_compiler --version </dev/null >&5) 2>&5 4577 ac_status=$? 4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4579 (exit $ac_status); } 4580{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4581 (eval $ac_compiler -v </dev/null >&5) 2>&5 4582 ac_status=$? 4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4584 (exit $ac_status); } 4585{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4586 (eval $ac_compiler -V </dev/null >&5) 2>&5 4587 ac_status=$? 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4589 (exit $ac_status); } 4590 4591# If we don't use `.F' as extension, the preprocessor is not run on the 4592# input file. 4593ac_save_ext=$ac_ext 4594ac_ext=F 4595echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4596echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4597if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4598 echo $ECHO_N "(cached) $ECHO_C" >&6 4599else 4600 cat >conftest.$ac_ext <<_ACEOF 4601 program main 4602#ifndef __GNUC__ 4603 choke me 4604#endif 4605 4606 end 4607_ACEOF 4608rm -f conftest.$ac_objext 4609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4610 (eval $ac_compile) 2>&5 4611 ac_status=$? 4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4613 (exit $ac_status); } && 4614 { ac_try='test -s conftest.$ac_objext' 4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4616 (eval $ac_try) 2>&5 4617 ac_status=$? 4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4619 (exit $ac_status); }; }; then 4620 ac_compiler_gnu=yes 4621else 4622 echo "$as_me: failed program was:" >&5 4623cat conftest.$ac_ext >&5 4624ac_compiler_gnu=no 4625fi 4626rm -f conftest.$ac_objext conftest.$ac_ext 4627ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4628 4629fi 4630echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4631echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4632ac_ext=$ac_save_ext 4633G77=`test $ac_compiler_gnu = yes && echo yes` 4634ac_test_FFLAGS=${FFLAGS+set} 4635ac_save_FFLAGS=$FFLAGS 4636FFLAGS= 4637echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4638echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4639if test "${ac_cv_prog_f77_g+set}" = set; then 4640 echo $ECHO_N "(cached) $ECHO_C" >&6 4641else 4642 FFLAGS=-g 4643cat >conftest.$ac_ext <<_ACEOF 4644 program main 4645 4646 end 4647_ACEOF 4648rm -f conftest.$ac_objext 4649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4650 (eval $ac_compile) 2>&5 4651 ac_status=$? 4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4653 (exit $ac_status); } && 4654 { ac_try='test -s conftest.$ac_objext' 4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4656 (eval $ac_try) 2>&5 4657 ac_status=$? 4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4659 (exit $ac_status); }; }; then 4660 ac_cv_prog_f77_g=yes 4661else 4662 echo "$as_me: failed program was:" >&5 4663cat conftest.$ac_ext >&5 4664ac_cv_prog_f77_g=no 4665fi 4666rm -f conftest.$ac_objext conftest.$ac_ext 4667 4668fi 4669echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4670echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4671if test "$ac_test_FFLAGS" = set; then 4672 FFLAGS=$ac_save_FFLAGS 4673elif test $ac_cv_prog_f77_g = yes; then 4674 if test "$G77" = yes; then 4675 FFLAGS="-g -O2" 4676 else 4677 FFLAGS="-g" 4678 fi 4679else 4680 if test "$G77" = yes; then 4681 FFLAGS="-O2" 4682 else 4683 FFLAGS= 4684 fi 4685fi 4686ac_ext=c 4687ac_cpp='$CPP $CPPFLAGS' 4688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4690ac_compiler_gnu=$ac_cv_c_compiler_gnu 4691 4692 4693 4694# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 4695 4696# find the maximum length of command line arguments 4697echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4698echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 4699if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4700 echo $ECHO_N "(cached) $ECHO_C" >&6 4701else 4702 i=0 4703 testring="ABCD" 4704 4705 case $build_os in 4706 msdosdjgpp*) 4707 # On DJGPP, this test can blow up pretty badly due to problems in libc 4708 # (any single argument exceeding 2000 bytes causes a buffer overrun 4709 # during glob expansion). Even if it were fixed, the result of this 4710 # check would be larger than it should be. 4711 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4712 ;; 4713 4714 gnu*) 4715 # Under GNU Hurd, this test is not required because there is 4716 # no limit to the length of command line arguments. 4717 # Libtool will interpret -1 as no limit whatsoever 4718 lt_cv_sys_max_cmd_len=-1; 4719 ;; 4720 4721 cygwin* | mingw*) 4722 # On Win9x/ME, this test blows up -- it succeeds, but takes 4723 # about 5 minutes as the teststring grows exponentially. 4724 # Worse, since 9x/ME are not pre-emptively multitasking, 4725 # you end up with a "frozen" computer, even though with patience 4726 # the test eventually succeeds (with a max line length of 256k). 4727 # Instead, let's just punt: use the minimum linelength reported by 4728 # all of the supported platforms: 8192 (on NT/2K/XP). 4729 lt_cv_sys_max_cmd_len=8192; 4730 ;; 4731 4732 *) 4733 # If test is not a shell built-in, we'll probably end up computing a 4734 # maximum length that is only half of the actual maximum length, but 4735 # we can't tell. 4736 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 4737 = "XX$testring") >/dev/null 2>&1 && 4738 new_result=`expr "X$testring" : ".*" 2>&1` && 4739 lt_cv_sys_max_cmd_len=$new_result && 4740 test $i != 17 # 1/2 MB should be enough 4741 do 4742 i=`expr $i + 1` 4743 testring=$testring$testring 4744 done 4745 testring= 4746 # Add a significant safety factor because C++ compilers can tack on massive 4747 # amounts of additional arguments before passing them to the linker. 4748 # It appears as though 1/2 is a usable value. 4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4750 ;; 4751 esac 4752 4753fi 4754 4755if test -n $lt_cv_sys_max_cmd_len ; then 4756 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4757echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 4758else 4759 echo "$as_me:$LINENO: result: none" >&5 4760echo "${ECHO_T}none" >&6 4761fi 4762 4763 4764 4765 4766# Check for command to grab the raw symbol name followed by C symbol from nm. 4767echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4768echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 4769if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4770 echo $ECHO_N "(cached) $ECHO_C" >&6 4771else 4772 4773# These are sane defaults that work on at least a few old systems. 4774# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4775 4776# Character class describing NM global symbol codes. 4777symcode='[BCDEGRST]' 4778 4779# Regexp to match symbols that can be accessed directly from C. 4780sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4781 4782# Transform the above into a raw symbol and a C symbol. 4783symxfrm='\1 \2\3 \3' 4784 4785# Transform an extracted symbol line into a proper C declaration 4786lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4787 4788# Transform an extracted symbol line into symbol name and symbol address 4789lt_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'" 4790 4791# Define system-specific variables. 4792case $host_os in 4793aix*) 4794 symcode='[BCDT]' 4795 ;; 4796cygwin* | mingw* | pw32*) 4797 symcode='[ABCDGISTW]' 4798 ;; 4799hpux*) # Its linker distinguishes data from code symbols 4800 if test "$host_cpu" = ia64; then 4801 symcode='[ABCDEGRST]' 4802 fi 4803 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4804 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'" 4805 ;; 4806irix* | nonstopux*) 4807 symcode='[BCDEGRST]' 4808 ;; 4809osf*) 4810 symcode='[BCDEGQRST]' 4811 ;; 4812solaris* | sysv5*) 4813 symcode='[BDT]' 4814 ;; 4815sysv4) 4816 symcode='[DFNSTU]' 4817 ;; 4818esac 4819 4820# Handle CRLF in mingw tool chain 4821opt_cr= 4822case $build_os in 4823mingw*) 4824 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4825 ;; 4826esac 4827 4828# If we're using GNU nm, then use its standard symbol codes. 4829case `$NM -V 2>&1` in 4830*GNU* | *'with BFD'*) 4831 symcode='[ABCDGISTW]' ;; 4832esac 4833 4834# Try without a prefix undercore, then with it. 4835for ac_symprfx in "" "_"; do 4836 4837 # Write the raw and C identifiers. 4838 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 4839 4840 # Check to see that the pipe works correctly. 4841 pipe_works=no 4842 4843 rm -f conftest* 4844 cat > conftest.$ac_ext <<EOF 4845#ifdef __cplusplus 4846extern "C" { 4847#endif 4848char nm_test_var; 4849void nm_test_func(){} 4850#ifdef __cplusplus 4851} 4852#endif 4853int main(){nm_test_var='a';nm_test_func();return(0);} 4854EOF 4855 4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4857 (eval $ac_compile) 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); }; then 4861 # Now try to grab the symbols. 4862 nlist=conftest.nm 4863 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4864 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4865 ac_status=$? 4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4867 (exit $ac_status); } && test -s "$nlist"; then 4868 # Try sorting and uniquifying the output. 4869 if sort "$nlist" | uniq > "$nlist"T; then 4870 mv -f "$nlist"T "$nlist" 4871 else 4872 rm -f "$nlist"T 4873 fi 4874 4875 # Make sure that we snagged all the symbols we need. 4876 if grep ' nm_test_var$' "$nlist" >/dev/null; then 4877 if grep ' nm_test_func$' "$nlist" >/dev/null; then 4878 cat <<EOF > conftest.$ac_ext 4879#ifdef __cplusplus 4880extern "C" { 4881#endif 4882 4883EOF 4884 # Now generate the symbol file. 4885 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 4886 4887 cat <<EOF >> conftest.$ac_ext 4888#if defined (__STDC__) && __STDC__ 4889# define lt_ptr_t void * 4890#else 4891# define lt_ptr_t char * 4892# define const 4893#endif 4894 4895/* The mapping between symbol names and symbols. */ 4896const struct { 4897 const char *name; 4898 lt_ptr_t address; 4899} 4900lt_preloaded_symbols[] = 4901{ 4902EOF 4903 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 4904 cat <<\EOF >> conftest.$ac_ext 4905 {0, (lt_ptr_t) 0} 4906}; 4907 4908#ifdef __cplusplus 4909} 4910#endif 4911EOF 4912 # Now try linking the two files. 4913 mv conftest.$ac_objext conftstm.$ac_objext 4914 lt_save_LIBS="$LIBS" 4915 lt_save_CFLAGS="$CFLAGS" 4916 LIBS="conftstm.$ac_objext" 4917 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 4918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4919 (eval $ac_link) 2>&5 4920 ac_status=$? 4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4922 (exit $ac_status); } && test -s conftest${ac_exeext}; then 4923 pipe_works=yes 4924 fi 4925 LIBS="$lt_save_LIBS" 4926 CFLAGS="$lt_save_CFLAGS" 4927 else 4928 echo "cannot find nm_test_func in $nlist" >&5 4929 fi 4930 else 4931 echo "cannot find nm_test_var in $nlist" >&5 4932 fi 4933 else 4934 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4935 fi 4936 else 4937 echo "$progname: failed program was:" >&5 4938 cat conftest.$ac_ext >&5 4939 fi 4940 rm -f conftest* conftst* 4941 4942 # Do not use the global_symbol_pipe unless it works. 4943 if test "$pipe_works" = yes; then 4944 break 4945 else 4946 lt_cv_sys_global_symbol_pipe= 4947 fi 4948done 4949 4950fi 4951 4952if test -z "$lt_cv_sys_global_symbol_pipe"; then 4953 lt_cv_sys_global_symbol_to_cdecl= 4954fi 4955if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4956 echo "$as_me:$LINENO: result: failed" >&5 4957echo "${ECHO_T}failed" >&6 4958else 4959 echo "$as_me:$LINENO: result: ok" >&5 4960echo "${ECHO_T}ok" >&6 4961fi 4962 4963echo "$as_me:$LINENO: checking for objdir" >&5 4964echo $ECHO_N "checking for objdir... $ECHO_C" >&6 4965if test "${lt_cv_objdir+set}" = set; then 4966 echo $ECHO_N "(cached) $ECHO_C" >&6 4967else 4968 rm -f .libs 2>/dev/null 4969mkdir .libs 2>/dev/null 4970if test -d .libs; then 4971 lt_cv_objdir=.libs 4972else 4973 # MS-DOS does not allow filenames that begin with a dot. 4974 lt_cv_objdir=_libs 4975fi 4976rmdir .libs 2>/dev/null 4977fi 4978echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 4979echo "${ECHO_T}$lt_cv_objdir" >&6 4980objdir=$lt_cv_objdir 4981 4982 4983 4984 4985 4986case $host_os in 4987aix3*) 4988 # AIX sometimes has problems with the GCC collect2 program. For some 4989 # reason, if we set the COLLECT_NAMES environment variable, the problems 4990 # vanish in a puff of smoke. 4991 if test "X${COLLECT_NAMES+set}" != Xset; then 4992 COLLECT_NAMES= 4993 export COLLECT_NAMES 4994 fi 4995 ;; 4996esac 4997 4998# Sed substitution that helps us do robust quoting. It backslashifies 4999# metacharacters that are still active within double-quoted strings. 5000Xsed='sed -e s/^X//' 5001sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5002 5003# Same as above, but do not quote variable references. 5004double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5005 5006# Sed substitution to delay expansion of an escaped shell variable in a 5007# double_quote_subst'ed string. 5008delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5009 5010# Sed substitution to avoid accidental globbing in evaled expressions 5011no_glob_subst='s/\*/\\\*/g' 5012 5013# Constants: 5014rm="rm -f" 5015 5016# Global variables: 5017default_ofile=libtool 5018can_build_shared=yes 5019 5020# All known linkers require a `.a' archive for static linking (except M$VC, 5021# which needs '.lib'). 5022libext=a 5023ltmain="$ac_aux_dir/ltmain.sh" 5024ofile="$default_ofile" 5025with_gnu_ld="$lt_cv_prog_gnu_ld" 5026 5027if test -n "$ac_tool_prefix"; then 5028 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5029set dummy ${ac_tool_prefix}ar; ac_word=$2 5030echo "$as_me:$LINENO: checking for $ac_word" >&5 5031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5032if test "${ac_cv_prog_AR+set}" = set; then 5033 echo $ECHO_N "(cached) $ECHO_C" >&6 5034else 5035 if test -n "$AR"; then 5036 ac_cv_prog_AR="$AR" # Let the user override the test. 5037else 5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5039for as_dir in $PATH 5040do 5041 IFS=$as_save_IFS 5042 test -z "$as_dir" && as_dir=. 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5045 ac_cv_prog_AR="${ac_tool_prefix}ar" 5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5047 break 2 5048 fi 5049done 5050done 5051 5052fi 5053fi 5054AR=$ac_cv_prog_AR 5055if test -n "$AR"; then 5056 echo "$as_me:$LINENO: result: $AR" >&5 5057echo "${ECHO_T}$AR" >&6 5058else 5059 echo "$as_me:$LINENO: result: no" >&5 5060echo "${ECHO_T}no" >&6 5061fi 5062 5063fi 5064if test -z "$ac_cv_prog_AR"; then 5065 ac_ct_AR=$AR 5066 # Extract the first word of "ar", so it can be a program name with args. 5067set dummy ar; ac_word=$2 5068echo "$as_me:$LINENO: checking for $ac_word" >&5 5069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5070if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5071 echo $ECHO_N "(cached) $ECHO_C" >&6 5072else 5073 if test -n "$ac_ct_AR"; then 5074 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5075else 5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5077for as_dir in $PATH 5078do 5079 IFS=$as_save_IFS 5080 test -z "$as_dir" && as_dir=. 5081 for ac_exec_ext in '' $ac_executable_extensions; do 5082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5083 ac_cv_prog_ac_ct_AR="ar" 5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5085 break 2 5086 fi 5087done 5088done 5089 5090 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5091fi 5092fi 5093ac_ct_AR=$ac_cv_prog_ac_ct_AR 5094if test -n "$ac_ct_AR"; then 5095 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5096echo "${ECHO_T}$ac_ct_AR" >&6 5097else 5098 echo "$as_me:$LINENO: result: no" >&5 5099echo "${ECHO_T}no" >&6 5100fi 5101 5102 AR=$ac_ct_AR 5103else 5104 AR="$ac_cv_prog_AR" 5105fi 5106 5107if test -n "$ac_tool_prefix"; then 5108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5109set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5110echo "$as_me:$LINENO: checking for $ac_word" >&5 5111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5112if test "${ac_cv_prog_RANLIB+set}" = set; then 5113 echo $ECHO_N "(cached) $ECHO_C" >&6 5114else 5115 if test -n "$RANLIB"; then 5116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5117else 5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5119for as_dir in $PATH 5120do 5121 IFS=$as_save_IFS 5122 test -z "$as_dir" && as_dir=. 5123 for ac_exec_ext in '' $ac_executable_extensions; do 5124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5127 break 2 5128 fi 5129done 5130done 5131 5132fi 5133fi 5134RANLIB=$ac_cv_prog_RANLIB 5135if test -n "$RANLIB"; then 5136 echo "$as_me:$LINENO: result: $RANLIB" >&5 5137echo "${ECHO_T}$RANLIB" >&6 5138else 5139 echo "$as_me:$LINENO: result: no" >&5 5140echo "${ECHO_T}no" >&6 5141fi 5142 5143fi 5144if test -z "$ac_cv_prog_RANLIB"; then 5145 ac_ct_RANLIB=$RANLIB 5146 # Extract the first word of "ranlib", so it can be a program name with args. 5147set dummy ranlib; ac_word=$2 5148echo "$as_me:$LINENO: checking for $ac_word" >&5 5149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5150if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5151 echo $ECHO_N "(cached) $ECHO_C" >&6 5152else 5153 if test -n "$ac_ct_RANLIB"; then 5154 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5155else 5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5157for as_dir in $PATH 5158do 5159 IFS=$as_save_IFS 5160 test -z "$as_dir" && as_dir=. 5161 for ac_exec_ext in '' $ac_executable_extensions; do 5162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5163 ac_cv_prog_ac_ct_RANLIB="ranlib" 5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5165 break 2 5166 fi 5167done 5168done 5169 5170 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5171fi 5172fi 5173ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5174if test -n "$ac_ct_RANLIB"; then 5175 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5176echo "${ECHO_T}$ac_ct_RANLIB" >&6 5177else 5178 echo "$as_me:$LINENO: result: no" >&5 5179echo "${ECHO_T}no" >&6 5180fi 5181 5182 RANLIB=$ac_ct_RANLIB 5183else 5184 RANLIB="$ac_cv_prog_RANLIB" 5185fi 5186 5187if test -n "$ac_tool_prefix"; then 5188 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5189set dummy ${ac_tool_prefix}strip; ac_word=$2 5190echo "$as_me:$LINENO: checking for $ac_word" >&5 5191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5192if test "${ac_cv_prog_STRIP+set}" = set; then 5193 echo $ECHO_N "(cached) $ECHO_C" >&6 5194else 5195 if test -n "$STRIP"; then 5196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5197else 5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5199for as_dir in $PATH 5200do 5201 IFS=$as_save_IFS 5202 test -z "$as_dir" && as_dir=. 5203 for ac_exec_ext in '' $ac_executable_extensions; do 5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5205 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5207 break 2 5208 fi 5209done 5210done 5211 5212fi 5213fi 5214STRIP=$ac_cv_prog_STRIP 5215if test -n "$STRIP"; then 5216 echo "$as_me:$LINENO: result: $STRIP" >&5 5217echo "${ECHO_T}$STRIP" >&6 5218else 5219 echo "$as_me:$LINENO: result: no" >&5 5220echo "${ECHO_T}no" >&6 5221fi 5222 5223fi 5224if test -z "$ac_cv_prog_STRIP"; then 5225 ac_ct_STRIP=$STRIP 5226 # Extract the first word of "strip", so it can be a program name with args. 5227set dummy strip; ac_word=$2 5228echo "$as_me:$LINENO: checking for $ac_word" >&5 5229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5230if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5231 echo $ECHO_N "(cached) $ECHO_C" >&6 5232else 5233 if test -n "$ac_ct_STRIP"; then 5234 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5235else 5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237for as_dir in $PATH 5238do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_prog_ac_ct_STRIP="strip" 5244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247done 5248done 5249 5250 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5251fi 5252fi 5253ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5254if test -n "$ac_ct_STRIP"; then 5255 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5256echo "${ECHO_T}$ac_ct_STRIP" >&6 5257else 5258 echo "$as_me:$LINENO: result: no" >&5 5259echo "${ECHO_T}no" >&6 5260fi 5261 5262 STRIP=$ac_ct_STRIP 5263else 5264 STRIP="$ac_cv_prog_STRIP" 5265fi 5266 5267 5268old_CC="$CC" 5269old_CFLAGS="$CFLAGS" 5270 5271# Set sane defaults for various variables 5272test -z "$AR" && AR=ar 5273test -z "$AR_FLAGS" && AR_FLAGS=cru 5274test -z "$AS" && AS=as 5275test -z "$CC" && CC=cc 5276test -z "$LTCC" && LTCC=$CC 5277test -z "$DLLTOOL" && DLLTOOL=dlltool 5278test -z "$LD" && LD=ld 5279test -z "$LN_S" && LN_S="ln -s" 5280test -z "$MAGIC_CMD" && MAGIC_CMD=file 5281test -z "$NM" && NM=nm 5282test -z "$SED" && SED=sed 5283test -z "$OBJDUMP" && OBJDUMP=objdump 5284test -z "$RANLIB" && RANLIB=: 5285test -z "$STRIP" && STRIP=: 5286test -z "$ac_objext" && ac_objext=o 5287 5288# Determine commands to create old-style static archives. 5289old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5290old_postinstall_cmds='chmod 644 $oldlib' 5291old_postuninstall_cmds= 5292 5293if test -n "$RANLIB"; then 5294 case $host_os in 5295 openbsd*) 5296 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5297 ;; 5298 *) 5299 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5300 ;; 5301 esac 5302 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5303fi 5304 5305# Only perform the check for file, if the check method requires it 5306case $deplibs_check_method in 5307file_magic*) 5308 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5309 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5310echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5311if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5312 echo $ECHO_N "(cached) $ECHO_C" >&6 5313else 5314 case $MAGIC_CMD in 5315[\\/*] | ?:[\\/]*) 5316 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5317 ;; 5318*) 5319 lt_save_MAGIC_CMD="$MAGIC_CMD" 5320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5321 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5322 for ac_dir in $ac_dummy; do 5323 IFS="$lt_save_ifs" 5324 test -z "$ac_dir" && ac_dir=. 5325 if test -f $ac_dir/${ac_tool_prefix}file; then 5326 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5327 if test -n "$file_magic_test_file"; then 5328 case $deplibs_check_method in 5329 "file_magic "*) 5330 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5332 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5333 $EGREP "$file_magic_regex" > /dev/null; then 5334 : 5335 else 5336 cat <<EOF 1>&2 5337 5338*** Warning: the command libtool uses to detect shared libraries, 5339*** $file_magic_cmd, produces output that libtool cannot recognize. 5340*** The result is that libtool may fail to recognize shared libraries 5341*** as such. This will affect the creation of libtool libraries that 5342*** depend on shared libraries, but programs linked with such libtool 5343*** libraries will work regardless of this problem. Nevertheless, you 5344*** may want to report the problem to your system manager and/or to 5345*** bug-libtool@gnu.org 5346 5347EOF 5348 fi ;; 5349 esac 5350 fi 5351 break 5352 fi 5353 done 5354 IFS="$lt_save_ifs" 5355 MAGIC_CMD="$lt_save_MAGIC_CMD" 5356 ;; 5357esac 5358fi 5359 5360MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5361if test -n "$MAGIC_CMD"; then 5362 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5363echo "${ECHO_T}$MAGIC_CMD" >&6 5364else 5365 echo "$as_me:$LINENO: result: no" >&5 5366echo "${ECHO_T}no" >&6 5367fi 5368 5369if test -z "$lt_cv_path_MAGIC_CMD"; then 5370 if test -n "$ac_tool_prefix"; then 5371 echo "$as_me:$LINENO: checking for file" >&5 5372echo $ECHO_N "checking for file... $ECHO_C" >&6 5373if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5374 echo $ECHO_N "(cached) $ECHO_C" >&6 5375else 5376 case $MAGIC_CMD in 5377[\\/*] | ?:[\\/]*) 5378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5379 ;; 5380*) 5381 lt_save_MAGIC_CMD="$MAGIC_CMD" 5382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5384 for ac_dir in $ac_dummy; do 5385 IFS="$lt_save_ifs" 5386 test -z "$ac_dir" && ac_dir=. 5387 if test -f $ac_dir/file; then 5388 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5389 if test -n "$file_magic_test_file"; then 5390 case $deplibs_check_method in 5391 "file_magic "*) 5392 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5395 $EGREP "$file_magic_regex" > /dev/null; then 5396 : 5397 else 5398 cat <<EOF 1>&2 5399 5400*** Warning: the command libtool uses to detect shared libraries, 5401*** $file_magic_cmd, produces output that libtool cannot recognize. 5402*** The result is that libtool may fail to recognize shared libraries 5403*** as such. This will affect the creation of libtool libraries that 5404*** depend on shared libraries, but programs linked with such libtool 5405*** libraries will work regardless of this problem. Nevertheless, you 5406*** may want to report the problem to your system manager and/or to 5407*** bug-libtool@gnu.org 5408 5409EOF 5410 fi ;; 5411 esac 5412 fi 5413 break 5414 fi 5415 done 5416 IFS="$lt_save_ifs" 5417 MAGIC_CMD="$lt_save_MAGIC_CMD" 5418 ;; 5419esac 5420fi 5421 5422MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5423if test -n "$MAGIC_CMD"; then 5424 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5425echo "${ECHO_T}$MAGIC_CMD" >&6 5426else 5427 echo "$as_me:$LINENO: result: no" >&5 5428echo "${ECHO_T}no" >&6 5429fi 5430 5431 else 5432 MAGIC_CMD=: 5433 fi 5434fi 5435 5436 fi 5437 ;; 5438esac 5439 5440enable_dlopen=no 5441enable_win32_dll=no 5442 5443# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5444if test "${enable_libtool_lock+set}" = set; then 5445 enableval="$enable_libtool_lock" 5446 5447fi; 5448test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5449 5450 5451# Check whether --with-pic or --without-pic was given. 5452if test "${with_pic+set}" = set; then 5453 withval="$with_pic" 5454 pic_mode="$withval" 5455else 5456 pic_mode=default 5457fi; 5458test -z "$pic_mode" && pic_mode=default 5459 5460# Use C for the default configuration in the libtool script 5461tagname= 5462lt_save_CC="$CC" 5463ac_ext=c 5464ac_cpp='$CPP $CPPFLAGS' 5465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5467ac_compiler_gnu=$ac_cv_c_compiler_gnu 5468 5469 5470# Source file extension for C test sources. 5471ac_ext=c 5472 5473# Object file extension for compiled C test sources. 5474objext=o 5475objext=$objext 5476 5477# Code to be used in simple compile tests 5478lt_simple_compile_test_code="int some_variable = 0;\n" 5479 5480# Code to be used in simple link tests 5481lt_simple_link_test_code='int main(){return(0);}\n' 5482 5483 5484# If no C compiler was specified, use CC. 5485LTCC=${LTCC-"$CC"} 5486 5487# Allow CC to be a program name with arguments. 5488compiler=$CC 5489 5490 5491# 5492# Check for any special shared library compilation flags. 5493# 5494lt_prog_cc_shlib= 5495if test "$GCC" = no; then 5496 case $host_os in 5497 sco3.2v5*) 5498 lt_prog_cc_shlib='-belf' 5499 ;; 5500 esac 5501fi 5502if test -n "$lt_prog_cc_shlib"; then 5503 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5504echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5505 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5506 else 5507 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5508echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5509 lt_cv_prog_cc_can_build_shared=no 5510 fi 5511fi 5512 5513 5514# 5515# Check to make sure the static flag actually works. 5516# 5517echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 5518echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 5519if test "${lt_prog_compiler_static_works+set}" = set; then 5520 echo $ECHO_N "(cached) $ECHO_C" >&6 5521else 5522 lt_prog_compiler_static_works=no 5523 save_LDFLAGS="$LDFLAGS" 5524 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 5525 printf "$lt_simple_link_test_code" > conftest.$ac_ext 5526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 5527 # The compiler can only warn and ignore the option if not recognized 5528 # So say no if there are warnings 5529 if test -s conftest.err; then 5530 # Append any errors to the config.log. 5531 cat conftest.err 1>&5 5532 else 5533 lt_prog_compiler_static_works=yes 5534 fi 5535 fi 5536 $rm conftest* 5537 LDFLAGS="$save_LDFLAGS" 5538 5539fi 5540echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 5541echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 5542 5543if test x"$lt_prog_compiler_static_works" = xyes; then 5544 : 5545else 5546 lt_prog_compiler_static= 5547fi 5548 5549 5550 5551 5552lt_prog_compiler_no_builtin_flag= 5553 5554if test "$GCC" = yes; then 5555 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5556 5557 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5558echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5559if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5560 echo $ECHO_N "(cached) $ECHO_C" >&6 5561else 5562 lt_cv_prog_compiler_rtti_exceptions=no 5563 ac_outfile=conftest.$ac_objext 5564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5565 lt_compiler_flag="-fno-rtti -fno-exceptions" 5566 # Insert the option either (1) after the last *FLAGS variable, or 5567 # (2) before a word containing "conftest.", or (3) at the end. 5568 # Note that $ac_compile itself does not contain backslashes and begins 5569 # with a dollar sign (not a hyphen), so the echo should work correctly. 5570 # The option is referenced via a variable to avoid confusing sed. 5571 lt_compile=`echo "$ac_compile" | $SED \ 5572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5574 -e 's:$: $lt_compiler_flag:'` 5575 (eval echo "\"\$as_me:5575: $lt_compile\"" >&5) 5576 (eval "$lt_compile" 2>conftest.err) 5577 ac_status=$? 5578 cat conftest.err >&5 5579 echo "$as_me:5579: \$? = $ac_status" >&5 5580 if (exit $ac_status) && test -s "$ac_outfile"; then 5581 # The compiler can only warn and ignore the option if not recognized 5582 # So say no if there are warnings 5583 if test ! -s conftest.err; then 5584 lt_cv_prog_compiler_rtti_exceptions=yes 5585 fi 5586 fi 5587 $rm conftest* 5588 5589fi 5590echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5591echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5592 5593if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5595else 5596 : 5597fi 5598 5599fi 5600 5601lt_prog_compiler_wl= 5602lt_prog_compiler_pic= 5603lt_prog_compiler_static= 5604 5605echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5606echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5607 5608 if test "$GCC" = yes; then 5609 lt_prog_compiler_wl='-Wl,' 5610 lt_prog_compiler_static='-static' 5611 5612 case $host_os in 5613 aix*) 5614 # All AIX code is PIC. 5615 if test "$host_cpu" = ia64; then 5616 # AIX 5 now supports IA64 processor 5617 lt_prog_compiler_static='-Bstatic' 5618 fi 5619 ;; 5620 5621 amigaos*) 5622 # FIXME: we need at least 68020 code to build shared libraries, but 5623 # adding the `-m68020' flag to GCC prevents building anything better, 5624 # like `-m68040'. 5625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5626 ;; 5627 5628 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5629 # PIC is the default for these OSes. 5630 ;; 5631 5632 mingw* | pw32* | os2*) 5633 # This hack is so that the source file can tell whether it is being 5634 # built for inclusion in a dll (and should export symbols for example). 5635 lt_prog_compiler_pic='-DDLL_EXPORT' 5636 ;; 5637 5638 darwin* | rhapsody*) 5639 # PIC is the default on this platform 5640 # Common symbols not allowed in MH_DYLIB files 5641 lt_prog_compiler_pic='-fno-common' 5642 ;; 5643 5644 msdosdjgpp*) 5645 # Just because we use GCC doesn't mean we suddenly get shared libraries 5646 # on systems that don't support them. 5647 lt_prog_compiler_can_build_shared=no 5648 enable_shared=no 5649 ;; 5650 5651 sysv4*MP*) 5652 if test -d /usr/nec; then 5653 lt_prog_compiler_pic=-Kconform_pic 5654 fi 5655 ;; 5656 5657 hpux*) 5658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5659 # not for PA HP-UX. 5660 case "$host_cpu" in 5661 hppa*64*|ia64*) 5662 # +Z the default 5663 ;; 5664 *) 5665 lt_prog_compiler_pic='-fPIC' 5666 ;; 5667 esac 5668 ;; 5669 5670 *) 5671 lt_prog_compiler_pic='-fPIC' 5672 ;; 5673 esac 5674 else 5675 # PORTME Check for flag to pass linker flags through the system compiler. 5676 case $host_os in 5677 aix*) 5678 lt_prog_compiler_wl='-Wl,' 5679 if test "$host_cpu" = ia64; then 5680 # AIX 5 now supports IA64 processor 5681 lt_prog_compiler_static='-Bstatic' 5682 else 5683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 5684 fi 5685 ;; 5686 5687 mingw* | pw32* | os2*) 5688 # This hack is so that the source file can tell whether it is being 5689 # built for inclusion in a dll (and should export symbols for example). 5690 lt_prog_compiler_pic='-DDLL_EXPORT' 5691 ;; 5692 5693 hpux9* | hpux10* | hpux11*) 5694 lt_prog_compiler_wl='-Wl,' 5695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5696 # not for PA HP-UX. 5697 case "$host_cpu" in 5698 hppa*64*|ia64*) 5699 # +Z the default 5700 ;; 5701 *) 5702 lt_prog_compiler_pic='+Z' 5703 ;; 5704 esac 5705 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5706 lt_prog_compiler_static='${wl}-a ${wl}archive' 5707 ;; 5708 5709 irix5* | irix6* | nonstopux*) 5710 lt_prog_compiler_wl='-Wl,' 5711 # PIC (with -KPIC) is the default. 5712 lt_prog_compiler_static='-non_shared' 5713 ;; 5714 5715 newsos6) 5716 lt_prog_compiler_pic='-KPIC' 5717 lt_prog_compiler_static='-Bstatic' 5718 ;; 5719 5720 linux*) 5721 case $CC in 5722 icc|ecc) 5723 lt_prog_compiler_wl='-Wl,' 5724 lt_prog_compiler_pic='-KPIC' 5725 lt_prog_compiler_static='-static' 5726 ;; 5727 ccc) 5728 lt_prog_compiler_wl='-Wl,' 5729 # All Alpha code is PIC. 5730 lt_prog_compiler_static='-non_shared' 5731 ;; 5732 esac 5733 ;; 5734 5735 osf3* | osf4* | osf5*) 5736 lt_prog_compiler_wl='-Wl,' 5737 # All OSF/1 code is PIC. 5738 lt_prog_compiler_static='-non_shared' 5739 ;; 5740 5741 sco3.2v5*) 5742 lt_prog_compiler_pic='-Kpic' 5743 lt_prog_compiler_static='-dn' 5744 ;; 5745 5746 solaris*) 5747 lt_prog_compiler_wl='-Wl,' 5748 lt_prog_compiler_pic='-KPIC' 5749 lt_prog_compiler_static='-Bstatic' 5750 ;; 5751 5752 sunos4*) 5753 lt_prog_compiler_wl='-Qoption ld ' 5754 lt_prog_compiler_pic='-PIC' 5755 lt_prog_compiler_static='-Bstatic' 5756 ;; 5757 5758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5759 lt_prog_compiler_wl='-Wl,' 5760 lt_prog_compiler_pic='-KPIC' 5761 lt_prog_compiler_static='-Bstatic' 5762 ;; 5763 5764 sysv4*MP*) 5765 if test -d /usr/nec ;then 5766 lt_prog_compiler_pic='-Kconform_pic' 5767 lt_prog_compiler_static='-Bstatic' 5768 fi 5769 ;; 5770 5771 uts4*) 5772 lt_prog_compiler_pic='-pic' 5773 lt_prog_compiler_static='-Bstatic' 5774 ;; 5775 5776 *) 5777 lt_prog_compiler_can_build_shared=no 5778 ;; 5779 esac 5780 fi 5781 5782echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 5783echo "${ECHO_T}$lt_prog_compiler_pic" >&6 5784 5785# 5786# Check to make sure the PIC flag actually works. 5787# 5788if test -n "$lt_prog_compiler_pic"; then 5789 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 5790echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 5791if test "${lt_prog_compiler_pic_works+set}" = set; then 5792 echo $ECHO_N "(cached) $ECHO_C" >&6 5793else 5794 lt_prog_compiler_pic_works=no 5795 ac_outfile=conftest.$ac_objext 5796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5797 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 5798 # Insert the option either (1) after the last *FLAGS variable, or 5799 # (2) before a word containing "conftest.", or (3) at the end. 5800 # Note that $ac_compile itself does not contain backslashes and begins 5801 # with a dollar sign (not a hyphen), so the echo should work correctly. 5802 # The option is referenced via a variable to avoid confusing sed. 5803 lt_compile=`echo "$ac_compile" | $SED \ 5804 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5806 -e 's:$: $lt_compiler_flag:'` 5807 (eval echo "\"\$as_me:5807: $lt_compile\"" >&5) 5808 (eval "$lt_compile" 2>conftest.err) 5809 ac_status=$? 5810 cat conftest.err >&5 5811 echo "$as_me:5811: \$? = $ac_status" >&5 5812 if (exit $ac_status) && test -s "$ac_outfile"; then 5813 # The compiler can only warn and ignore the option if not recognized 5814 # So say no if there are warnings 5815 if test ! -s conftest.err; then 5816 lt_prog_compiler_pic_works=yes 5817 fi 5818 fi 5819 $rm conftest* 5820 5821fi 5822echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 5823echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 5824 5825if test x"$lt_prog_compiler_pic_works" = xyes; then 5826 case $lt_prog_compiler_pic in 5827 "" | " "*) ;; 5828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 5829 esac 5830else 5831 lt_prog_compiler_pic= 5832 lt_prog_compiler_can_build_shared=no 5833fi 5834 5835fi 5836case "$host_os" in 5837 # For platforms which do not support PIC, -DPIC is meaningless: 5838 *djgpp*) 5839 lt_prog_compiler_pic= 5840 ;; 5841 *) 5842 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 5843 ;; 5844esac 5845 5846echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5847echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5848if test "${lt_cv_prog_compiler_c_o+set}" = set; then 5849 echo $ECHO_N "(cached) $ECHO_C" >&6 5850else 5851 lt_cv_prog_compiler_c_o=no 5852 $rm -r conftest 2>/dev/null 5853 mkdir conftest 5854 cd conftest 5855 mkdir out 5856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5857 5858 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 5859 # that will create temporary files in the current directory regardless of 5860 # the output directory. Thus, making CWD read-only will cause this test 5861 # to fail, enabling locking or at least warning the user not to do parallel 5862 # builds. 5863 chmod -w . 5864 5865 lt_compiler_flag="-o out/conftest2.$ac_objext" 5866 # Insert the option either (1) after the last *FLAGS variable, or 5867 # (2) before a word containing "conftest.", or (3) at the end. 5868 # Note that $ac_compile itself does not contain backslashes and begins 5869 # with a dollar sign (not a hyphen), so the echo should work correctly. 5870 lt_compile=`echo "$ac_compile" | $SED \ 5871 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5873 -e 's:$: $lt_compiler_flag:'` 5874 (eval echo "\"\$as_me:5874: $lt_compile\"" >&5) 5875 (eval "$lt_compile" 2>out/conftest.err) 5876 ac_status=$? 5877 cat out/conftest.err >&5 5878 echo "$as_me:5878: \$? = $ac_status" >&5 5879 if (exit $ac_status) && test -s out/conftest2.$ac_objext 5880 then 5881 # The compiler can only warn and ignore the option if not recognized 5882 # So say no if there are warnings 5883 if test ! -s out/conftest.err; then 5884 lt_cv_prog_compiler_c_o=yes 5885 fi 5886 fi 5887 chmod u+w . 5888 $rm conftest* out/* 5889 rmdir out 5890 cd .. 5891 rmdir conftest 5892 $rm conftest* 5893 5894fi 5895echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 5896echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 5897 5898 5899hard_links="nottested" 5900if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 5901 # do not overwrite the value of need_locks provided by the user 5902 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 5903echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 5904 hard_links=yes 5905 $rm conftest* 5906 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5907 touch conftest.a 5908 ln conftest.a conftest.b 2>&5 || hard_links=no 5909 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5910 echo "$as_me:$LINENO: result: $hard_links" >&5 5911echo "${ECHO_T}$hard_links" >&6 5912 if test "$hard_links" = no; then 5913 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 5914echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 5915 need_locks=warn 5916 fi 5917else 5918 need_locks=no 5919fi 5920 5921echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 5922echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 5923 5924 runpath_var= 5925 allow_undefined_flag= 5926 enable_shared_with_static_runtimes=no 5927 archive_cmds= 5928 archive_expsym_cmds= 5929 old_archive_From_new_cmds= 5930 old_archive_from_expsyms_cmds= 5931 export_dynamic_flag_spec= 5932 whole_archive_flag_spec= 5933 thread_safe_flag_spec= 5934 hardcode_libdir_flag_spec= 5935 hardcode_libdir_flag_spec_ld= 5936 hardcode_libdir_separator= 5937 hardcode_direct=no 5938 hardcode_minus_L=no 5939 hardcode_shlibpath_var=unsupported 5940 link_all_deplibs=unknown 5941 hardcode_automatic=no 5942 module_cmds= 5943 module_expsym_cmds= 5944 always_export_symbols=no 5945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5946 # include_expsyms should be a list of space-separated symbols to be *always* 5947 # included in the symbol list 5948 include_expsyms= 5949 # exclude_expsyms can be an extended regexp of symbols to exclude 5950 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5952 # as well as any symbol that contains `d'. 5953 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 5954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5955 # platforms (ab)use it in PIC code, but their linkers get confused if 5956 # the symbol is explicitly referenced. Since portable code cannot 5957 # rely on this symbol name, it's probably fine to never include it in 5958 # preloaded symbol tables. 5959 extract_expsyms_cmds= 5960 5961 case $host_os in 5962 cygwin* | mingw* | pw32*) 5963 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5964 # When not using gcc, we currently assume that we are using 5965 # Microsoft Visual C++. 5966 if test "$GCC" != yes; then 5967 with_gnu_ld=no 5968 fi 5969 ;; 5970 openbsd*) 5971 with_gnu_ld=no 5972 ;; 5973 esac 5974 5975 ld_shlibs=yes 5976 if test "$with_gnu_ld" = yes; then 5977 # If archive_cmds runs LD, not CC, wlarc should be empty 5978 wlarc='${wl}' 5979 5980 # See if GNU ld supports shared libraries. 5981 case $host_os in 5982 aix3* | aix4* | aix5*) 5983 # On AIX/PPC, the GNU linker is very broken 5984 if test "$host_cpu" != ia64; then 5985 ld_shlibs=no 5986 cat <<EOF 1>&2 5987 5988*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5989*** to be unable to reliably create shared libraries on AIX. 5990*** Therefore, libtool is disabling shared libraries support. If you 5991*** really care for shared libraries, you may want to modify your PATH 5992*** so that a non-GNU linker is found, and then restart. 5993 5994EOF 5995 fi 5996 ;; 5997 5998 amigaos*) 5999 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)' 6000 hardcode_libdir_flag_spec='-L$libdir' 6001 hardcode_minus_L=yes 6002 6003 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6004 # that the semantics of dynamic libraries on AmigaOS, at least up 6005 # to version 4, is to share data among multiple programs linked 6006 # with the same dynamic library. Since this doesn't match the 6007 # behavior of shared libraries on other platforms, we can't use 6008 # them. 6009 ld_shlibs=no 6010 ;; 6011 6012 beos*) 6013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6014 allow_undefined_flag=unsupported 6015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6016 # support --undefined. This deserves some investigation. FIXME 6017 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6018 else 6019 ld_shlibs=no 6020 fi 6021 ;; 6022 6023 cygwin* | mingw* | pw32*) 6024 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6025 # as there is no search path for DLLs. 6026 hardcode_libdir_flag_spec='-L$libdir' 6027 allow_undefined_flag=unsupported 6028 always_export_symbols=no 6029 enable_shared_with_static_runtimes=yes 6030 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6031 6032 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6034 # If the export-symbols file already is a .def file (1st line 6035 # is EXPORTS), use it as is; otherwise, prepend... 6036 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6037 cp $export_symbols $output_objdir/$soname.def; 6038 else 6039 echo EXPORTS > $output_objdir/$soname.def; 6040 cat $export_symbols >> $output_objdir/$soname.def; 6041 fi~ 6042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6043 else 6044 ld_shlibs=no 6045 fi 6046 ;; 6047 6048 netbsd*) 6049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6050 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6051 wlarc= 6052 else 6053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6055 fi 6056 ;; 6057 6058 solaris* | sysv5*) 6059 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6060 ld_shlibs=no 6061 cat <<EOF 1>&2 6062 6063*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6064*** create shared libraries on Solaris systems. Therefore, libtool 6065*** is disabling shared libraries support. We urge you to upgrade GNU 6066*** binutils to release 2.9.1 or newer. Another option is to modify 6067*** your PATH or compiler configuration so that the native linker is 6068*** used, and then restart. 6069 6070EOF 6071 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6074 else 6075 ld_shlibs=no 6076 fi 6077 ;; 6078 6079 sunos4*) 6080 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6081 wlarc= 6082 hardcode_direct=yes 6083 hardcode_shlibpath_var=no 6084 ;; 6085 6086 *) 6087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6090 else 6091 ld_shlibs=no 6092 fi 6093 ;; 6094 esac 6095 6096 if test "$ld_shlibs" = yes; then 6097 runpath_var=LD_RUN_PATH 6098 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6099 export_dynamic_flag_spec='${wl}--export-dynamic' 6100 # ancient GNU ld didn't support --whole-archive et. al. 6101 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6102 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6103 else 6104 whole_archive_flag_spec= 6105 fi 6106 fi 6107 else 6108 # PORTME fill in a description of your system's linker (not GNU ld) 6109 case $host_os in 6110 aix3*) 6111 allow_undefined_flag=unsupported 6112 always_export_symbols=yes 6113 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' 6114 # Note: this linker hardcodes the directories in LIBPATH if there 6115 # are no directories specified by -L. 6116 hardcode_minus_L=yes 6117 if test "$GCC" = yes && test -z "$link_static_flag"; then 6118 # Neither direct hardcoding nor static linking is supported with a 6119 # broken collect2. 6120 hardcode_direct=unsupported 6121 fi 6122 ;; 6123 6124 aix4* | aix5*) 6125 if test "$host_cpu" = ia64; then 6126 # On IA64, the linker does run time linking by default, so we don't 6127 # have to do anything special. 6128 aix_use_runtimelinking=no 6129 exp_sym_flag='-Bexport' 6130 no_entry_flag="" 6131 else 6132 # If we're using GNU nm, then we don't want the "-C" option. 6133 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6134 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6135 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' 6136 else 6137 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' 6138 fi 6139 aix_use_runtimelinking=no 6140 6141 # Test if we are trying to use run time linking or normal 6142 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6143 # need to do runtime linking. 6144 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6145 for ld_flag in $LDFLAGS; do 6146 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6147 aix_use_runtimelinking=yes 6148 break 6149 fi 6150 done 6151 esac 6152 6153 exp_sym_flag='-bexport' 6154 no_entry_flag='-bnoentry' 6155 fi 6156 6157 # When large executables or shared objects are built, AIX ld can 6158 # have problems creating the table of contents. If linking a library 6159 # or program results in "error TOC overflow" add -mminimal-toc to 6160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6162 6163 archive_cmds='' 6164 hardcode_direct=yes 6165 hardcode_libdir_separator=':' 6166 link_all_deplibs=yes 6167 6168 if test "$GCC" = yes; then 6169 case $host_os in aix4.012|aix4.012.*) 6170 # We only want to do this on AIX 4.2 and lower, the check 6171 # below for broken collect2 doesn't work under 4.3+ 6172 collect2name=`${CC} -print-prog-name=collect2` 6173 if test -f "$collect2name" && \ 6174 strings "$collect2name" | grep resolve_lib_name >/dev/null 6175 then 6176 # We have reworked collect2 6177 hardcode_direct=yes 6178 else 6179 # We have old collect2 6180 hardcode_direct=unsupported 6181 # It fails to find uninstalled libraries when the uninstalled 6182 # path is not listed in the libpath. Setting hardcode_minus_L 6183 # to unsupported forces relinking 6184 hardcode_minus_L=yes 6185 hardcode_libdir_flag_spec='-L$libdir' 6186 hardcode_libdir_separator= 6187 fi 6188 esac 6189 shared_flag='-shared' 6190 else 6191 # not using gcc 6192 if test "$host_cpu" = ia64; then 6193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6194 # chokes on -Wl,-G. The following line is correct: 6195 shared_flag='-G' 6196 else 6197 if test "$aix_use_runtimelinking" = yes; then 6198 shared_flag='${wl}-G' 6199 else 6200 shared_flag='${wl}-bM:SRE' 6201 fi 6202 fi 6203 fi 6204 6205 # It seems that -bexpall does not export symbols beginning with 6206 # underscore (_), so it is better to generate a list of symbols to export. 6207 always_export_symbols=yes 6208 if test "$aix_use_runtimelinking" = yes; then 6209 # Warning - without using the other runtime loading flags (-brtl), 6210 # -berok will link without error, but may produce a broken library. 6211 allow_undefined_flag='-berok' 6212 # Determine the default libpath from the value encoded in an empty executable. 6213 cat >conftest.$ac_ext <<_ACEOF 6214#line $LINENO "configure" 6215#include "confdefs.h" 6216 6217#ifdef F77_DUMMY_MAIN 6218# ifdef __cplusplus 6219 extern "C" 6220# endif 6221 int F77_DUMMY_MAIN() { return 1; } 6222#endif 6223int 6224main () 6225{ 6226 6227 ; 6228 return 0; 6229} 6230_ACEOF 6231rm -f conftest.$ac_objext conftest$ac_exeext 6232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6233 (eval $ac_link) 2>&5 6234 ac_status=$? 6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6236 (exit $ac_status); } && 6237 { ac_try='test -s conftest$ac_exeext' 6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6239 (eval $ac_try) 2>&5 6240 ac_status=$? 6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6242 (exit $ac_status); }; }; then 6243 6244aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6245}'` 6246# Check for a 64-bit object if we didn't find anything. 6247if 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; } 6248}'`; fi 6249else 6250 echo "$as_me: failed program was:" >&5 6251cat conftest.$ac_ext >&5 6252fi 6253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6255 6256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6257 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6258 else 6259 if test "$host_cpu" = ia64; then 6260 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6261 allow_undefined_flag="-z nodefs" 6262 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6263 else 6264 # Determine the default libpath from the value encoded in an empty executable. 6265 cat >conftest.$ac_ext <<_ACEOF 6266#line $LINENO "configure" 6267#include "confdefs.h" 6268 6269#ifdef F77_DUMMY_MAIN 6270# ifdef __cplusplus 6271 extern "C" 6272# endif 6273 int F77_DUMMY_MAIN() { return 1; } 6274#endif 6275int 6276main () 6277{ 6278 6279 ; 6280 return 0; 6281} 6282_ACEOF 6283rm -f conftest.$ac_objext conftest$ac_exeext 6284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6285 (eval $ac_link) 2>&5 6286 ac_status=$? 6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6288 (exit $ac_status); } && 6289 { ac_try='test -s conftest$ac_exeext' 6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6291 (eval $ac_try) 2>&5 6292 ac_status=$? 6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6294 (exit $ac_status); }; }; then 6295 6296aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6297}'` 6298# Check for a 64-bit object if we didn't find anything. 6299if 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; } 6300}'`; fi 6301else 6302 echo "$as_me: failed program was:" >&5 6303cat conftest.$ac_ext >&5 6304fi 6305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6306if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6307 6308 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6309 # Warning - without using the other run time loading flags, 6310 # -berok will link without error, but may produce a broken library. 6311 no_undefined_flag=' ${wl}-bernotok' 6312 allow_undefined_flag=' ${wl}-berok' 6313 # -bexpall does not export symbols beginning with underscore (_) 6314 always_export_symbols=yes 6315 # Exported symbols can be pulled into shared objects from archives 6316 whole_archive_flag_spec=' ' 6317 archive_cmds_need_lc=yes 6318 # This is similar to how AIX traditionally builds it's shared libraries. 6319 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6320 fi 6321 fi 6322 ;; 6323 6324 amigaos*) 6325 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)' 6326 hardcode_libdir_flag_spec='-L$libdir' 6327 hardcode_minus_L=yes 6328 # see comment about different semantics on the GNU ld section 6329 ld_shlibs=no 6330 ;; 6331 6332 bsdi4*) 6333 export_dynamic_flag_spec=-rdynamic 6334 ;; 6335 6336 cygwin* | mingw* | pw32*) 6337 # When not using gcc, we currently assume that we are using 6338 # Microsoft Visual C++. 6339 # hardcode_libdir_flag_spec is actually meaningless, as there is 6340 # no search path for DLLs. 6341 hardcode_libdir_flag_spec=' ' 6342 allow_undefined_flag=unsupported 6343 # Tell ltmain to make .lib files, not .a files. 6344 libext=lib 6345 # Tell ltmain to make .dll files, not .so files. 6346 shrext=".dll" 6347 # FIXME: Setting linknames here is a bad hack. 6348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6349 # The linker will automatically build a .lib file if we build a DLL. 6350 old_archive_From_new_cmds='true' 6351 # FIXME: Should let the user specify the lib program. 6352 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6353 fix_srcfile_path='`cygpath -w "$srcfile"`' 6354 enable_shared_with_static_runtimes=yes 6355 ;; 6356 6357 darwin* | rhapsody*) 6358 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 6359 archive_cmds_need_lc=no 6360 case "$host_os" in 6361 rhapsody* | darwin1.[012]) 6362 allow_undefined_flag='-undefined suppress' 6363 ;; 6364 *) # Darwin 1.3 on 6365 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 6366 ;; 6367 esac 6368 # FIXME: Relying on posixy $() will cause problems for 6369 # cross-compilation, but unfortunately the echo tests do not 6370 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 6371 # `"' quotes if we put them in here... so don't! 6372 lt_int_apple_cc_single_mod=no 6373 output_verbose_link_cmd='echo' 6374 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 6375 lt_int_apple_cc_single_mod=yes 6376 fi 6377 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6378 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6379 else 6380 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6381 fi 6382 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 6383 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6384 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6385 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6386 else 6387 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6388 fi 6389 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6390 hardcode_direct=no 6391 hardcode_automatic=yes 6392 hardcode_shlibpath_var=unsupported 6393 whole_archive_flag_spec='-all_load $convenience' 6394 link_all_deplibs=yes 6395 fi 6396 ;; 6397 6398 dgux*) 6399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6400 hardcode_libdir_flag_spec='-L$libdir' 6401 hardcode_shlibpath_var=no 6402 ;; 6403 6404 freebsd1*) 6405 ld_shlibs=no 6406 ;; 6407 6408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6409 # support. Future versions do this automatically, but an explicit c++rt0.o 6410 # does not break anything, and helps significantly (at the cost of a little 6411 # extra space). 6412 freebsd2.2*) 6413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6414 hardcode_libdir_flag_spec='-R$libdir' 6415 hardcode_direct=yes 6416 hardcode_shlibpath_var=no 6417 ;; 6418 6419 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6420 freebsd2*) 6421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6422 hardcode_direct=yes 6423 hardcode_minus_L=yes 6424 hardcode_shlibpath_var=no 6425 ;; 6426 6427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6428 freebsd*) 6429 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6430 hardcode_libdir_flag_spec='-R$libdir' 6431 hardcode_direct=yes 6432 hardcode_shlibpath_var=no 6433 ;; 6434 6435 hpux9*) 6436 if test "$GCC" = yes; then 6437 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6438 else 6439 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' 6440 fi 6441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6442 hardcode_libdir_separator=: 6443 hardcode_direct=yes 6444 6445 # hardcode_minus_L: Not really in the search PATH, 6446 # but as the default location of the library. 6447 hardcode_minus_L=yes 6448 export_dynamic_flag_spec='${wl}-E' 6449 ;; 6450 6451 hpux10* | hpux11*) 6452 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6453 case "$host_cpu" in 6454 hppa*64*|ia64*) 6455 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6456 ;; 6457 *) 6458 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6459 ;; 6460 esac 6461 else 6462 case "$host_cpu" in 6463 hppa*64*|ia64*) 6464 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6465 ;; 6466 *) 6467 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6468 ;; 6469 esac 6470 fi 6471 if test "$with_gnu_ld" = no; then 6472 case "$host_cpu" in 6473 hppa*64*) 6474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6475 hardcode_libdir_flag_spec_ld='+b $libdir' 6476 hardcode_libdir_separator=: 6477 hardcode_direct=no 6478 hardcode_shlibpath_var=no 6479 ;; 6480 ia64*) 6481 hardcode_libdir_flag_spec='-L$libdir' 6482 hardcode_direct=no 6483 hardcode_shlibpath_var=no 6484 6485 # hardcode_minus_L: Not really in the search PATH, 6486 # but as the default location of the library. 6487 hardcode_minus_L=yes 6488 ;; 6489 *) 6490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6491 hardcode_libdir_separator=: 6492 hardcode_direct=yes 6493 export_dynamic_flag_spec='${wl}-E' 6494 6495 # hardcode_minus_L: Not really in the search PATH, 6496 # but as the default location of the library. 6497 hardcode_minus_L=yes 6498 ;; 6499 esac 6500 fi 6501 ;; 6502 6503 irix5* | irix6* | nonstopux*) 6504 if test "$GCC" = yes; then 6505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6506 else 6507 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' 6508 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6509 fi 6510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6511 hardcode_libdir_separator=: 6512 link_all_deplibs=yes 6513 ;; 6514 6515 netbsd*) 6516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6518 else 6519 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6520 fi 6521 hardcode_libdir_flag_spec='-R$libdir' 6522 hardcode_direct=yes 6523 hardcode_shlibpath_var=no 6524 ;; 6525 6526 newsos6) 6527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6528 hardcode_direct=yes 6529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6530 hardcode_libdir_separator=: 6531 hardcode_shlibpath_var=no 6532 ;; 6533 6534 openbsd*) 6535 hardcode_direct=yes 6536 hardcode_shlibpath_var=no 6537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6540 export_dynamic_flag_spec='${wl}-E' 6541 else 6542 case $host_os in 6543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6545 hardcode_libdir_flag_spec='-R$libdir' 6546 ;; 6547 *) 6548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6550 ;; 6551 esac 6552 fi 6553 ;; 6554 6555 os2*) 6556 hardcode_libdir_flag_spec='-L$libdir' 6557 hardcode_minus_L=yes 6558 allow_undefined_flag=unsupported 6559 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 6560 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6561 ;; 6562 6563 osf3*) 6564 if test "$GCC" = yes; then 6565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6566 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6567 else 6568 allow_undefined_flag=' -expect_unresolved \*' 6569 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' 6570 fi 6571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6572 hardcode_libdir_separator=: 6573 ;; 6574 6575 osf4* | osf5*) # as osf3* with the addition of -msym flag 6576 if test "$GCC" = yes; then 6577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6578 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6580 else 6581 allow_undefined_flag=' -expect_unresolved \*' 6582 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' 6583 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6584 $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' 6585 6586 # Both c and cxx compiler support -rpath directly 6587 hardcode_libdir_flag_spec='-rpath $libdir' 6588 fi 6589 hardcode_libdir_separator=: 6590 ;; 6591 6592 sco3.2v5*) 6593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6594 hardcode_shlibpath_var=no 6595 export_dynamic_flag_spec='${wl}-Bexport' 6596 runpath_var=LD_RUN_PATH 6597 hardcode_runpath_var=yes 6598 ;; 6599 6600 solaris*) 6601 no_undefined_flag=' -z text' 6602 if test "$GCC" = yes; then 6603 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6604 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6605 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6606 else 6607 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6608 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6610 fi 6611 hardcode_libdir_flag_spec='-R$libdir' 6612 hardcode_shlibpath_var=no 6613 case $host_os in 6614 solaris2.[0-5] | solaris2.[0-5].*) ;; 6615 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6616 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6617 esac 6618 link_all_deplibs=yes 6619 ;; 6620 6621 sunos4*) 6622 if test "x$host_vendor" = xsequent; then 6623 # Use $CC to link under sequent, because it throws in some extra .o 6624 # files that make .init and .fini sections work. 6625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6626 else 6627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6628 fi 6629 hardcode_libdir_flag_spec='-L$libdir' 6630 hardcode_direct=yes 6631 hardcode_minus_L=yes 6632 hardcode_shlibpath_var=no 6633 ;; 6634 6635 sysv4) 6636 case $host_vendor in 6637 sni) 6638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6639 hardcode_direct=yes # is this really true??? 6640 ;; 6641 siemens) 6642 ## LD is ld it makes a PLAMLIB 6643 ## CC just makes a GrossModule. 6644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6645 reload_cmds='$CC -r -o $output$reload_objs' 6646 hardcode_direct=no 6647 ;; 6648 motorola) 6649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6651 ;; 6652 esac 6653 runpath_var='LD_RUN_PATH' 6654 hardcode_shlibpath_var=no 6655 ;; 6656 6657 sysv4.3*) 6658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6659 hardcode_shlibpath_var=no 6660 export_dynamic_flag_spec='-Bexport' 6661 ;; 6662 6663 sysv4*MP*) 6664 if test -d /usr/nec; then 6665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6666 hardcode_shlibpath_var=no 6667 runpath_var=LD_RUN_PATH 6668 hardcode_runpath_var=yes 6669 ld_shlibs=yes 6670 fi 6671 ;; 6672 6673 sysv4.2uw2*) 6674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6675 hardcode_direct=yes 6676 hardcode_minus_L=no 6677 hardcode_shlibpath_var=no 6678 hardcode_runpath_var=yes 6679 runpath_var=LD_RUN_PATH 6680 ;; 6681 6682 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 6683 no_undefined_flag='${wl}-z ${wl}text' 6684 if test "$GCC" = yes; then 6685 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6686 else 6687 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6688 fi 6689 runpath_var='LD_RUN_PATH' 6690 hardcode_shlibpath_var=no 6691 ;; 6692 6693 sysv5*) 6694 no_undefined_flag=' -z text' 6695 # $CC -shared without GNU ld will not create a library from C++ 6696 # object files and a static libstdc++, better avoid it by now 6697 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6698 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6700 hardcode_libdir_flag_spec= 6701 hardcode_shlibpath_var=no 6702 runpath_var='LD_RUN_PATH' 6703 ;; 6704 6705 uts4*) 6706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6707 hardcode_libdir_flag_spec='-L$libdir' 6708 hardcode_shlibpath_var=no 6709 ;; 6710 6711 *) 6712 ld_shlibs=no 6713 ;; 6714 esac 6715 fi 6716 6717echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6718echo "${ECHO_T}$ld_shlibs" >&6 6719test "$ld_shlibs" = no && can_build_shared=no 6720 6721variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6722if test "$GCC" = yes; then 6723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6724fi 6725 6726# 6727# Do we need to explicitly link libc? 6728# 6729case "x$archive_cmds_need_lc" in 6730x|xyes) 6731 # Assume -lc should be added 6732 archive_cmds_need_lc=yes 6733 6734 if test "$enable_shared" = yes && test "$GCC" = yes; then 6735 case $archive_cmds in 6736 *'~'*) 6737 # FIXME: we may have to deal with multi-command sequences. 6738 ;; 6739 '$CC '*) 6740 # Test whether the compiler implicitly links with -lc since on some 6741 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6742 # to ld, don't add -lc before -lgcc. 6743 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 6744echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 6745 $rm conftest* 6746 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6747 6748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6749 (eval $ac_compile) 2>&5 6750 ac_status=$? 6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6752 (exit $ac_status); } 2>conftest.err; then 6753 soname=conftest 6754 lib=conftest 6755 libobjs=conftest.$ac_objext 6756 deplibs= 6757 wl=$lt_prog_compiler_wl 6758 compiler_flags=-v 6759 linker_flags=-v 6760 verstring= 6761 output_objdir=. 6762 libname=conftest 6763 lt_save_allow_undefined_flag=$allow_undefined_flag 6764 allow_undefined_flag= 6765 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 6766 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 6767 ac_status=$? 6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6769 (exit $ac_status); } 6770 then 6771 archive_cmds_need_lc=no 6772 else 6773 archive_cmds_need_lc=yes 6774 fi 6775 allow_undefined_flag=$lt_save_allow_undefined_flag 6776 else 6777 cat conftest.err 1>&5 6778 fi 6779 $rm conftest* 6780 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 6781echo "${ECHO_T}$archive_cmds_need_lc" >&6 6782 ;; 6783 esac 6784 fi 6785 ;; 6786esac 6787 6788echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 6789echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 6790hardcode_action= 6791if test -n "$hardcode_libdir_flag_spec" || \ 6792 test -n "$runpath_var " || \ 6793 test "X$hardcode_automatic"="Xyes" ; then 6794 6795 # We can hardcode non-existant directories. 6796 if test "$hardcode_direct" != no && 6797 # If the only mechanism to avoid hardcoding is shlibpath_var, we 6798 # have to relink, otherwise we might link with an installed library 6799 # when we should be linking with a yet-to-be-installed one 6800 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 6801 test "$hardcode_minus_L" != no; then 6802 # Linking always hardcodes the temporary library directory. 6803 hardcode_action=relink 6804 else 6805 # We can link without hardcoding, and we can hardcode nonexisting dirs. 6806 hardcode_action=immediate 6807 fi 6808else 6809 # We cannot hardcode anything, or else we can only hardcode existing 6810 # directories. 6811 hardcode_action=unsupported 6812fi 6813echo "$as_me:$LINENO: result: $hardcode_action" >&5 6814echo "${ECHO_T}$hardcode_action" >&6 6815 6816if test "$hardcode_action" = relink; then 6817 # Fast installation is not supported 6818 enable_fast_install=no 6819elif test "$shlibpath_overrides_runpath" = yes || 6820 test "$enable_shared" = no; then 6821 # Fast installation is not necessary 6822 enable_fast_install=needless 6823fi 6824 6825striplib= 6826old_striplib= 6827echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 6828echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 6829if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 6830 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6831 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6832 echo "$as_me:$LINENO: result: yes" >&5 6833echo "${ECHO_T}yes" >&6 6834else 6835# FIXME - insert some real tests, host_os isn't really good enough 6836 case $host_os in 6837 darwin*) 6838 if test -n "$STRIP" ; then 6839 striplib="$STRIP -x" 6840 echo "$as_me:$LINENO: result: yes" >&5 6841echo "${ECHO_T}yes" >&6 6842 else 6843 echo "$as_me:$LINENO: result: no" >&5 6844echo "${ECHO_T}no" >&6 6845fi 6846 ;; 6847 *) 6848 echo "$as_me:$LINENO: result: no" >&5 6849echo "${ECHO_T}no" >&6 6850 ;; 6851 esac 6852fi 6853 6854echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6855echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6856library_names_spec= 6857libname_spec='lib$name' 6858soname_spec= 6859shrext=".so" 6860postinstall_cmds= 6861postuninstall_cmds= 6862finish_cmds= 6863finish_eval= 6864shlibpath_var= 6865shlibpath_overrides_runpath=unknown 6866version_type=none 6867dynamic_linker="$host_os ld.so" 6868sys_lib_dlsearch_path_spec="/lib /usr/lib" 6869if test "$GCC" = yes; then 6870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 6871 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 6872 # if the path contains ";" then we assume it to be the separator 6873 # otherwise default to the standard path separator (i.e. ":") - it is 6874 # assumed that no part of a normal pathname contains ";" but that should 6875 # okay in the real world where ";" in dirpaths is itself problematic. 6876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 6877 else 6878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 6879 fi 6880else 6881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 6882fi 6883need_lib_prefix=unknown 6884hardcode_into_libs=no 6885 6886# when you set need_version to no, make sure it does not cause -set_version 6887# flags to be left without arguments 6888need_version=unknown 6889 6890case $host_os in 6891aix3*) 6892 version_type=linux 6893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 6894 shlibpath_var=LIBPATH 6895 6896 # AIX 3 has no versioning support, so we append a major version to the name. 6897 soname_spec='${libname}${release}${shared_ext}$major' 6898 ;; 6899 6900aix4* | aix5*) 6901 version_type=linux 6902 need_lib_prefix=no 6903 need_version=no 6904 hardcode_into_libs=yes 6905 if test "$host_cpu" = ia64; then 6906 # AIX 5 supports IA64 6907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 6908 shlibpath_var=LD_LIBRARY_PATH 6909 else 6910 # With GCC up to 2.95.x, collect2 would create an import file 6911 # for dependence libraries. The import file would start with 6912 # the line `#! .'. This would cause the generated library to 6913 # depend on `.', always an invalid library. This was fixed in 6914 # development snapshots of GCC prior to 3.0. 6915 case $host_os in 6916 aix4 | aix4.[01] | aix4.[01].*) 6917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 6918 echo ' yes ' 6919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 6920 : 6921 else 6922 can_build_shared=no 6923 fi 6924 ;; 6925 esac 6926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 6927 # soname into executable. Probably we can add versioning support to 6928 # collect2, so additional links can be useful in future. 6929 if test "$aix_use_runtimelinking" = yes; then 6930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 6931 # instead of lib<name>.a to let people know that these are not 6932 # typical AIX shared libraries. 6933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 6934 else 6935 # We preserve .a as extension for shared libraries through AIX4.2 6936 # and later when we are not doing run time linking. 6937 library_names_spec='${libname}${release}.a $libname.a' 6938 soname_spec='${libname}${release}${shared_ext}$major' 6939 fi 6940 shlibpath_var=LIBPATH 6941 fi 6942 ;; 6943 6944amigaos*) 6945 library_names_spec='$libname.ixlibrary $libname.a' 6946 # Create ${libname}_ixlibrary.a entries in /sys/libs. 6947 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' 6948 ;; 6949 6950beos*) 6951 library_names_spec='${libname}${shared_ext}' 6952 dynamic_linker="$host_os ld.so" 6953 shlibpath_var=LIBRARY_PATH 6954 ;; 6955 6956bsdi4*) 6957 version_type=linux 6958 need_version=no 6959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 6960 soname_spec='${libname}${release}${shared_ext}$major' 6961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 6962 shlibpath_var=LD_LIBRARY_PATH 6963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 6964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 6965 # the default ld.so.conf also contains /usr/contrib/lib and 6966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 6967 # libtool to hard-code these into programs 6968 ;; 6969 6970cygwin* | mingw* | pw32*) 6971 version_type=windows 6972 shrext=".dll" 6973 need_version=no 6974 need_lib_prefix=no 6975 6976 case $GCC,$host_os in 6977 yes,cygwin* | yes,mingw* | yes,pw32*) 6978 library_names_spec='$libname.dll.a' 6979 # DLL is installed to $(libdir)/../bin by postinstall_cmds 6980 postinstall_cmds='base_file=`basename \${file}`~ 6981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 6982 dldir=$destdir/`dirname \$dlpath`~ 6983 test -d \$dldir || mkdir -p \$dldir~ 6984 $install_prog $dir/$dlname \$dldir/$dlname' 6985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 6986 dlpath=$dir/\$dldll~ 6987 $rm \$dlpath' 6988 shlibpath_overrides_runpath=yes 6989 6990 case $host_os in 6991 cygwin*) 6992 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 6993 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 6994 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 6995 ;; 6996 mingw*) 6997 # MinGW DLLs use traditional 'lib' prefix 6998 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 6999 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7000 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7001 # It is most probably a Windows format PATH printed by 7002 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7003 # path with ; separators, and with drive letters. We can handle the 7004 # drive letters (cygwin fileutils understands them), so leave them, 7005 # especially as we might pass files found there to a mingw objdump, 7006 # which wouldn't understand a cygwinified path. Ahh. 7007 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7008 else 7009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7010 fi 7011 ;; 7012 pw32*) 7013 # pw32 DLLs use 'pw' prefix rather than 'lib' 7014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7015 ;; 7016 esac 7017 ;; 7018 7019 *) 7020 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7021 ;; 7022 esac 7023 dynamic_linker='Win32 ld.exe' 7024 # FIXME: first we should search . and the directory the executable is in 7025 shlibpath_var=PATH 7026 ;; 7027 7028darwin* | rhapsody*) 7029 dynamic_linker="$host_os dyld" 7030 version_type=darwin 7031 need_lib_prefix=no 7032 need_version=no 7033 # FIXME: Relying on posixy $() will cause problems for 7034 # cross-compilation, but unfortunately the echo tests do not 7035 # yet detect zsh echo's removal of \ escapes. 7036 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7037 soname_spec='${libname}${release}${major}$shared_ext' 7038 shlibpath_overrides_runpath=yes 7039 shlibpath_var=DYLD_LIBRARY_PATH 7040 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 7041 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7042 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 7043 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"` 7044 fi 7045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7046 ;; 7047 7048dgux*) 7049 version_type=linux 7050 need_lib_prefix=no 7051 need_version=no 7052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7053 soname_spec='${libname}${release}${shared_ext}$major' 7054 shlibpath_var=LD_LIBRARY_PATH 7055 ;; 7056 7057freebsd1*) 7058 dynamic_linker=no 7059 ;; 7060 7061freebsd*) 7062 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7063 version_type=freebsd-$objformat 7064 case $version_type in 7065 freebsd-elf*) 7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7067 need_version=no 7068 need_lib_prefix=no 7069 ;; 7070 freebsd-*) 7071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7072 need_version=yes 7073 ;; 7074 esac 7075 shlibpath_var=LD_LIBRARY_PATH 7076 case $host_os in 7077 freebsd2*) 7078 shlibpath_overrides_runpath=yes 7079 ;; 7080 freebsd3.01* | freebsdelf3.01*) 7081 shlibpath_overrides_runpath=yes 7082 hardcode_into_libs=yes 7083 ;; 7084 *) # from 3.2 on 7085 shlibpath_overrides_runpath=no 7086 hardcode_into_libs=yes 7087 ;; 7088 esac 7089 ;; 7090 7091gnu*) 7092 version_type=linux 7093 need_lib_prefix=no 7094 need_version=no 7095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7096 soname_spec='${libname}${release}${shared_ext}$major' 7097 shlibpath_var=LD_LIBRARY_PATH 7098 hardcode_into_libs=yes 7099 ;; 7100 7101hpux9* | hpux10* | hpux11*) 7102 # Give a soname corresponding to the major version so that dld.sl refuses to 7103 # link against other versions. 7104 version_type=sunos 7105 need_lib_prefix=no 7106 need_version=no 7107 case "$host_cpu" in 7108 ia64*) 7109 shrext='.so' 7110 hardcode_into_libs=yes 7111 dynamic_linker="$host_os dld.so" 7112 shlibpath_var=LD_LIBRARY_PATH 7113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7115 soname_spec='${libname}${release}${shared_ext}$major' 7116 if test "X$HPUX_IA64_MODE" = X32; then 7117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7118 else 7119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7120 fi 7121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7122 ;; 7123 hppa*64*) 7124 shrext='.sl' 7125 hardcode_into_libs=yes 7126 dynamic_linker="$host_os dld.sl" 7127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7130 soname_spec='${libname}${release}${shared_ext}$major' 7131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7133 ;; 7134 *) 7135 shrext='.sl' 7136 dynamic_linker="$host_os dld.sl" 7137 shlibpath_var=SHLIB_PATH 7138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7140 soname_spec='${libname}${release}${shared_ext}$major' 7141 ;; 7142 esac 7143 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7144 postinstall_cmds='chmod 555 $lib' 7145 ;; 7146 7147irix5* | irix6* | nonstopux*) 7148 case $host_os in 7149 nonstopux*) version_type=nonstopux ;; 7150 *) 7151 if test "$lt_cv_prog_gnu_ld" = yes; then 7152 version_type=linux 7153 else 7154 version_type=irix 7155 fi ;; 7156 esac 7157 need_lib_prefix=no 7158 need_version=no 7159 soname_spec='${libname}${release}${shared_ext}$major' 7160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7161 case $host_os in 7162 irix5* | nonstopux*) 7163 libsuff= shlibsuff= 7164 ;; 7165 *) 7166 case $LD in # libtool.m4 will add one of these switches to LD 7167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7168 libsuff= shlibsuff= libmagic=32-bit;; 7169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7170 libsuff=32 shlibsuff=N32 libmagic=N32;; 7171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7172 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7173 *) libsuff= shlibsuff= libmagic=never-match;; 7174 esac 7175 ;; 7176 esac 7177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7178 shlibpath_overrides_runpath=no 7179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7181 hardcode_into_libs=yes 7182 ;; 7183 7184# No shared lib support for Linux oldld, aout, or coff. 7185linux*oldld* | linux*aout* | linux*coff*) 7186 dynamic_linker=no 7187 ;; 7188 7189# This must be Linux ELF. 7190linux*) 7191 version_type=linux 7192 need_lib_prefix=no 7193 need_version=no 7194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7195 soname_spec='${libname}${release}${shared_ext}$major' 7196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7197 shlibpath_var=LD_LIBRARY_PATH 7198 shlibpath_overrides_runpath=no 7199 # This implies no fast_install, which is unacceptable. 7200 # Some rework will be needed to allow for fast_install 7201 # before this can be enabled. 7202 hardcode_into_libs=yes 7203 7204 # We used to test for /lib/ld.so.1 and disable shared libraries on 7205 # powerpc, because MkLinux only supported shared libraries with the 7206 # GNU dynamic linker. Since this was broken with cross compilers, 7207 # most powerpc-linux boxes support dynamic linking these days and 7208 # people can always --disable-shared, the test was removed, and we 7209 # assume the GNU/Linux dynamic linker is in use. 7210 dynamic_linker='GNU/Linux ld.so' 7211 ;; 7212 7213netbsd*) 7214 version_type=sunos 7215 need_lib_prefix=no 7216 need_version=no 7217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7220 dynamic_linker='NetBSD (a.out) ld.so' 7221 else 7222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 7223 soname_spec='${libname}${release}${shared_ext}$major' 7224 dynamic_linker='NetBSD ld.elf_so' 7225 fi 7226 shlibpath_var=LD_LIBRARY_PATH 7227 shlibpath_overrides_runpath=yes 7228 hardcode_into_libs=yes 7229 ;; 7230 7231newsos6) 7232 version_type=linux 7233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7234 shlibpath_var=LD_LIBRARY_PATH 7235 shlibpath_overrides_runpath=yes 7236 ;; 7237 7238nto-qnx) 7239 version_type=linux 7240 need_lib_prefix=no 7241 need_version=no 7242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7243 soname_spec='${libname}${release}${shared_ext}$major' 7244 shlibpath_var=LD_LIBRARY_PATH 7245 shlibpath_overrides_runpath=yes 7246 ;; 7247 7248openbsd*) 7249 version_type=sunos 7250 need_lib_prefix=no 7251 need_version=no 7252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7254 shlibpath_var=LD_LIBRARY_PATH 7255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7256 case $host_os in 7257 openbsd2.[89] | openbsd2.[89].*) 7258 shlibpath_overrides_runpath=no 7259 ;; 7260 *) 7261 shlibpath_overrides_runpath=yes 7262 ;; 7263 esac 7264 else 7265 shlibpath_overrides_runpath=yes 7266 fi 7267 ;; 7268 7269os2*) 7270 libname_spec='$name' 7271 shrext=".dll" 7272 need_lib_prefix=no 7273 library_names_spec='$libname${shared_ext} $libname.a' 7274 dynamic_linker='OS/2 ld.exe' 7275 shlibpath_var=LIBPATH 7276 ;; 7277 7278osf3* | osf4* | osf5*) 7279 version_type=osf 7280 need_lib_prefix=no 7281 need_version=no 7282 soname_spec='${libname}${release}${shared_ext}$major' 7283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7284 shlibpath_var=LD_LIBRARY_PATH 7285 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7286 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7287 ;; 7288 7289sco3.2v5*) 7290 version_type=osf 7291 soname_spec='${libname}${release}${shared_ext}$major' 7292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7293 shlibpath_var=LD_LIBRARY_PATH 7294 ;; 7295 7296solaris*) 7297 version_type=linux 7298 need_lib_prefix=no 7299 need_version=no 7300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7301 soname_spec='${libname}${release}${shared_ext}$major' 7302 shlibpath_var=LD_LIBRARY_PATH 7303 shlibpath_overrides_runpath=yes 7304 hardcode_into_libs=yes 7305 # ldd complains unless libraries are executable 7306 postinstall_cmds='chmod +x $lib' 7307 ;; 7308 7309sunos4*) 7310 version_type=sunos 7311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7312 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7313 shlibpath_var=LD_LIBRARY_PATH 7314 shlibpath_overrides_runpath=yes 7315 if test "$with_gnu_ld" = yes; then 7316 need_lib_prefix=no 7317 fi 7318 need_version=yes 7319 ;; 7320 7321sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7322 version_type=linux 7323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7324 soname_spec='${libname}${release}${shared_ext}$major' 7325 shlibpath_var=LD_LIBRARY_PATH 7326 case $host_vendor in 7327 sni) 7328 shlibpath_overrides_runpath=no 7329 need_lib_prefix=no 7330 export_dynamic_flag_spec='${wl}-Blargedynsym' 7331 runpath_var=LD_RUN_PATH 7332 ;; 7333 siemens) 7334 need_lib_prefix=no 7335 ;; 7336 motorola) 7337 need_lib_prefix=no 7338 need_version=no 7339 shlibpath_overrides_runpath=no 7340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7341 ;; 7342 esac 7343 ;; 7344 7345sysv4*MP*) 7346 if test -d /usr/nec ;then 7347 version_type=linux 7348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7349 soname_spec='$libname${shared_ext}.$major' 7350 shlibpath_var=LD_LIBRARY_PATH 7351 fi 7352 ;; 7353 7354uts4*) 7355 version_type=linux 7356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7357 soname_spec='${libname}${release}${shared_ext}$major' 7358 shlibpath_var=LD_LIBRARY_PATH 7359 ;; 7360 7361*) 7362 dynamic_linker=no 7363 ;; 7364esac 7365echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7366echo "${ECHO_T}$dynamic_linker" >&6 7367test "$dynamic_linker" = no && can_build_shared=no 7368 7369if test "x$enable_dlopen" != xyes; then 7370 enable_dlopen=unknown 7371 enable_dlopen_self=unknown 7372 enable_dlopen_self_static=unknown 7373else 7374 lt_cv_dlopen=no 7375 lt_cv_dlopen_libs= 7376 7377 case $host_os in 7378 beos*) 7379 lt_cv_dlopen="load_add_on" 7380 lt_cv_dlopen_libs= 7381 lt_cv_dlopen_self=yes 7382 ;; 7383 7384 mingw* | pw32*) 7385 lt_cv_dlopen="LoadLibrary" 7386 lt_cv_dlopen_libs= 7387 ;; 7388 7389 cygwin*) 7390 lt_cv_dlopen="dlopen" 7391 lt_cv_dlopen_libs= 7392 ;; 7393 7394 darwin*) 7395 # if libdl is installed we need to link against it 7396 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7397echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7398if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7399 echo $ECHO_N "(cached) $ECHO_C" >&6 7400else 7401 ac_check_lib_save_LIBS=$LIBS 7402LIBS="-ldl $LIBS" 7403cat >conftest.$ac_ext <<_ACEOF 7404#line $LINENO "configure" 7405#include "confdefs.h" 7406 7407/* Override any gcc2 internal prototype to avoid an error. */ 7408#ifdef __cplusplus 7409extern "C" 7410#endif 7411/* We use char because int might match the return type of a gcc2 7412 builtin and then its argument prototype would still apply. */ 7413char dlopen (); 7414#ifdef F77_DUMMY_MAIN 7415# ifdef __cplusplus 7416 extern "C" 7417# endif 7418 int F77_DUMMY_MAIN() { return 1; } 7419#endif 7420int 7421main () 7422{ 7423dlopen (); 7424 ; 7425 return 0; 7426} 7427_ACEOF 7428rm -f conftest.$ac_objext conftest$ac_exeext 7429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7430 (eval $ac_link) 2>&5 7431 ac_status=$? 7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7433 (exit $ac_status); } && 7434 { ac_try='test -s conftest$ac_exeext' 7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7436 (eval $ac_try) 2>&5 7437 ac_status=$? 7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7439 (exit $ac_status); }; }; then 7440 ac_cv_lib_dl_dlopen=yes 7441else 7442 echo "$as_me: failed program was:" >&5 7443cat conftest.$ac_ext >&5 7444ac_cv_lib_dl_dlopen=no 7445fi 7446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7447LIBS=$ac_check_lib_save_LIBS 7448fi 7449echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7450echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7451if test $ac_cv_lib_dl_dlopen = yes; then 7452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7453else 7454 7455 lt_cv_dlopen="dyld" 7456 lt_cv_dlopen_libs= 7457 lt_cv_dlopen_self=yes 7458 7459fi 7460 7461 ;; 7462 7463 *) 7464 echo "$as_me:$LINENO: checking for shl_load" >&5 7465echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7466if test "${ac_cv_func_shl_load+set}" = set; then 7467 echo $ECHO_N "(cached) $ECHO_C" >&6 7468else 7469 cat >conftest.$ac_ext <<_ACEOF 7470#line $LINENO "configure" 7471#include "confdefs.h" 7472/* System header to define __stub macros and hopefully few prototypes, 7473 which can conflict with char shl_load (); below. */ 7474#include <assert.h> 7475/* Override any gcc2 internal prototype to avoid an error. */ 7476#ifdef __cplusplus 7477extern "C" 7478#endif 7479/* We use char because int might match the return type of a gcc2 7480 builtin and then its argument prototype would still apply. */ 7481char shl_load (); 7482char (*f) (); 7483 7484#ifdef F77_DUMMY_MAIN 7485# ifdef __cplusplus 7486 extern "C" 7487# endif 7488 int F77_DUMMY_MAIN() { return 1; } 7489#endif 7490int 7491main () 7492{ 7493/* The GNU C library defines this for functions which it implements 7494 to always fail with ENOSYS. Some functions are actually named 7495 something starting with __ and the normal name is an alias. */ 7496#if defined (__stub_shl_load) || defined (__stub___shl_load) 7497choke me 7498#else 7499f = shl_load; 7500#endif 7501 7502 ; 7503 return 0; 7504} 7505_ACEOF 7506rm -f conftest.$ac_objext conftest$ac_exeext 7507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7508 (eval $ac_link) 2>&5 7509 ac_status=$? 7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7511 (exit $ac_status); } && 7512 { ac_try='test -s conftest$ac_exeext' 7513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7514 (eval $ac_try) 2>&5 7515 ac_status=$? 7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7517 (exit $ac_status); }; }; then 7518 ac_cv_func_shl_load=yes 7519else 7520 echo "$as_me: failed program was:" >&5 7521cat conftest.$ac_ext >&5 7522ac_cv_func_shl_load=no 7523fi 7524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7525fi 7526echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7527echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7528if test $ac_cv_func_shl_load = yes; then 7529 lt_cv_dlopen="shl_load" 7530else 7531 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7532echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7533if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7534 echo $ECHO_N "(cached) $ECHO_C" >&6 7535else 7536 ac_check_lib_save_LIBS=$LIBS 7537LIBS="-ldld $LIBS" 7538cat >conftest.$ac_ext <<_ACEOF 7539#line $LINENO "configure" 7540#include "confdefs.h" 7541 7542/* Override any gcc2 internal prototype to avoid an error. */ 7543#ifdef __cplusplus 7544extern "C" 7545#endif 7546/* We use char because int might match the return type of a gcc2 7547 builtin and then its argument prototype would still apply. */ 7548char shl_load (); 7549#ifdef F77_DUMMY_MAIN 7550# ifdef __cplusplus 7551 extern "C" 7552# endif 7553 int F77_DUMMY_MAIN() { return 1; } 7554#endif 7555int 7556main () 7557{ 7558shl_load (); 7559 ; 7560 return 0; 7561} 7562_ACEOF 7563rm -f conftest.$ac_objext conftest$ac_exeext 7564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7565 (eval $ac_link) 2>&5 7566 ac_status=$? 7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7568 (exit $ac_status); } && 7569 { ac_try='test -s conftest$ac_exeext' 7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7571 (eval $ac_try) 2>&5 7572 ac_status=$? 7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7574 (exit $ac_status); }; }; then 7575 ac_cv_lib_dld_shl_load=yes 7576else 7577 echo "$as_me: failed program was:" >&5 7578cat conftest.$ac_ext >&5 7579ac_cv_lib_dld_shl_load=no 7580fi 7581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7582LIBS=$ac_check_lib_save_LIBS 7583fi 7584echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7585echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7586if test $ac_cv_lib_dld_shl_load = yes; then 7587 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7588else 7589 echo "$as_me:$LINENO: checking for dlopen" >&5 7590echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7591if test "${ac_cv_func_dlopen+set}" = set; then 7592 echo $ECHO_N "(cached) $ECHO_C" >&6 7593else 7594 cat >conftest.$ac_ext <<_ACEOF 7595#line $LINENO "configure" 7596#include "confdefs.h" 7597/* System header to define __stub macros and hopefully few prototypes, 7598 which can conflict with char dlopen (); below. */ 7599#include <assert.h> 7600/* Override any gcc2 internal prototype to avoid an error. */ 7601#ifdef __cplusplus 7602extern "C" 7603#endif 7604/* We use char because int might match the return type of a gcc2 7605 builtin and then its argument prototype would still apply. */ 7606char dlopen (); 7607char (*f) (); 7608 7609#ifdef F77_DUMMY_MAIN 7610# ifdef __cplusplus 7611 extern "C" 7612# endif 7613 int F77_DUMMY_MAIN() { return 1; } 7614#endif 7615int 7616main () 7617{ 7618/* The GNU C library defines this for functions which it implements 7619 to always fail with ENOSYS. Some functions are actually named 7620 something starting with __ and the normal name is an alias. */ 7621#if defined (__stub_dlopen) || defined (__stub___dlopen) 7622choke me 7623#else 7624f = dlopen; 7625#endif 7626 7627 ; 7628 return 0; 7629} 7630_ACEOF 7631rm -f conftest.$ac_objext conftest$ac_exeext 7632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7633 (eval $ac_link) 2>&5 7634 ac_status=$? 7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7636 (exit $ac_status); } && 7637 { ac_try='test -s conftest$ac_exeext' 7638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7639 (eval $ac_try) 2>&5 7640 ac_status=$? 7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7642 (exit $ac_status); }; }; then 7643 ac_cv_func_dlopen=yes 7644else 7645 echo "$as_me: failed program was:" >&5 7646cat conftest.$ac_ext >&5 7647ac_cv_func_dlopen=no 7648fi 7649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7650fi 7651echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 7652echo "${ECHO_T}$ac_cv_func_dlopen" >&6 7653if test $ac_cv_func_dlopen = yes; then 7654 lt_cv_dlopen="dlopen" 7655else 7656 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7657echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7658if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7659 echo $ECHO_N "(cached) $ECHO_C" >&6 7660else 7661 ac_check_lib_save_LIBS=$LIBS 7662LIBS="-ldl $LIBS" 7663cat >conftest.$ac_ext <<_ACEOF 7664#line $LINENO "configure" 7665#include "confdefs.h" 7666 7667/* Override any gcc2 internal prototype to avoid an error. */ 7668#ifdef __cplusplus 7669extern "C" 7670#endif 7671/* We use char because int might match the return type of a gcc2 7672 builtin and then its argument prototype would still apply. */ 7673char dlopen (); 7674#ifdef F77_DUMMY_MAIN 7675# ifdef __cplusplus 7676 extern "C" 7677# endif 7678 int F77_DUMMY_MAIN() { return 1; } 7679#endif 7680int 7681main () 7682{ 7683dlopen (); 7684 ; 7685 return 0; 7686} 7687_ACEOF 7688rm -f conftest.$ac_objext conftest$ac_exeext 7689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7690 (eval $ac_link) 2>&5 7691 ac_status=$? 7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7693 (exit $ac_status); } && 7694 { ac_try='test -s conftest$ac_exeext' 7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7696 (eval $ac_try) 2>&5 7697 ac_status=$? 7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7699 (exit $ac_status); }; }; then 7700 ac_cv_lib_dl_dlopen=yes 7701else 7702 echo "$as_me: failed program was:" >&5 7703cat conftest.$ac_ext >&5 7704ac_cv_lib_dl_dlopen=no 7705fi 7706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7707LIBS=$ac_check_lib_save_LIBS 7708fi 7709echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7710echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7711if test $ac_cv_lib_dl_dlopen = yes; then 7712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7713else 7714 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 7715echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 7716if test "${ac_cv_lib_svld_dlopen+set}" = set; then 7717 echo $ECHO_N "(cached) $ECHO_C" >&6 7718else 7719 ac_check_lib_save_LIBS=$LIBS 7720LIBS="-lsvld $LIBS" 7721cat >conftest.$ac_ext <<_ACEOF 7722#line $LINENO "configure" 7723#include "confdefs.h" 7724 7725/* Override any gcc2 internal prototype to avoid an error. */ 7726#ifdef __cplusplus 7727extern "C" 7728#endif 7729/* We use char because int might match the return type of a gcc2 7730 builtin and then its argument prototype would still apply. */ 7731char dlopen (); 7732#ifdef F77_DUMMY_MAIN 7733# ifdef __cplusplus 7734 extern "C" 7735# endif 7736 int F77_DUMMY_MAIN() { return 1; } 7737#endif 7738int 7739main () 7740{ 7741dlopen (); 7742 ; 7743 return 0; 7744} 7745_ACEOF 7746rm -f conftest.$ac_objext conftest$ac_exeext 7747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7748 (eval $ac_link) 2>&5 7749 ac_status=$? 7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7751 (exit $ac_status); } && 7752 { ac_try='test -s conftest$ac_exeext' 7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7754 (eval $ac_try) 2>&5 7755 ac_status=$? 7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7757 (exit $ac_status); }; }; then 7758 ac_cv_lib_svld_dlopen=yes 7759else 7760 echo "$as_me: failed program was:" >&5 7761cat conftest.$ac_ext >&5 7762ac_cv_lib_svld_dlopen=no 7763fi 7764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7765LIBS=$ac_check_lib_save_LIBS 7766fi 7767echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 7768echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 7769if test $ac_cv_lib_svld_dlopen = yes; then 7770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7771else 7772 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 7773echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 7774if test "${ac_cv_lib_dld_dld_link+set}" = set; then 7775 echo $ECHO_N "(cached) $ECHO_C" >&6 7776else 7777 ac_check_lib_save_LIBS=$LIBS 7778LIBS="-ldld $LIBS" 7779cat >conftest.$ac_ext <<_ACEOF 7780#line $LINENO "configure" 7781#include "confdefs.h" 7782 7783/* Override any gcc2 internal prototype to avoid an error. */ 7784#ifdef __cplusplus 7785extern "C" 7786#endif 7787/* We use char because int might match the return type of a gcc2 7788 builtin and then its argument prototype would still apply. */ 7789char dld_link (); 7790#ifdef F77_DUMMY_MAIN 7791# ifdef __cplusplus 7792 extern "C" 7793# endif 7794 int F77_DUMMY_MAIN() { return 1; } 7795#endif 7796int 7797main () 7798{ 7799dld_link (); 7800 ; 7801 return 0; 7802} 7803_ACEOF 7804rm -f conftest.$ac_objext conftest$ac_exeext 7805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7806 (eval $ac_link) 2>&5 7807 ac_status=$? 7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7809 (exit $ac_status); } && 7810 { ac_try='test -s conftest$ac_exeext' 7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7812 (eval $ac_try) 2>&5 7813 ac_status=$? 7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7815 (exit $ac_status); }; }; then 7816 ac_cv_lib_dld_dld_link=yes 7817else 7818 echo "$as_me: failed program was:" >&5 7819cat conftest.$ac_ext >&5 7820ac_cv_lib_dld_dld_link=no 7821fi 7822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7823LIBS=$ac_check_lib_save_LIBS 7824fi 7825echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 7826echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 7827if test $ac_cv_lib_dld_dld_link = yes; then 7828 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7829fi 7830 7831 7832fi 7833 7834 7835fi 7836 7837 7838fi 7839 7840 7841fi 7842 7843 7844fi 7845 7846 ;; 7847 esac 7848 7849 if test "x$lt_cv_dlopen" != xno; then 7850 enable_dlopen=yes 7851 else 7852 enable_dlopen=no 7853 fi 7854 7855 case $lt_cv_dlopen in 7856 dlopen) 7857 save_CPPFLAGS="$CPPFLAGS" 7858 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 7859 7860 save_LDFLAGS="$LDFLAGS" 7861 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7862 7863 save_LIBS="$LIBS" 7864 LIBS="$lt_cv_dlopen_libs $LIBS" 7865 7866 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 7867echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 7868if test "${lt_cv_dlopen_self+set}" = set; then 7869 echo $ECHO_N "(cached) $ECHO_C" >&6 7870else 7871 if test "$cross_compiling" = yes; then : 7872 lt_cv_dlopen_self=cross 7873else 7874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7875 lt_status=$lt_dlunknown 7876 cat > conftest.$ac_ext <<EOF 7877#line 7877 "configure" 7878#include "confdefs.h" 7879 7880#if HAVE_DLFCN_H 7881#include <dlfcn.h> 7882#endif 7883 7884#include <stdio.h> 7885 7886#ifdef RTLD_GLOBAL 7887# define LT_DLGLOBAL RTLD_GLOBAL 7888#else 7889# ifdef DL_GLOBAL 7890# define LT_DLGLOBAL DL_GLOBAL 7891# else 7892# define LT_DLGLOBAL 0 7893# endif 7894#endif 7895 7896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7897 find out it does not work in some platform. */ 7898#ifndef LT_DLLAZY_OR_NOW 7899# ifdef RTLD_LAZY 7900# define LT_DLLAZY_OR_NOW RTLD_LAZY 7901# else 7902# ifdef DL_LAZY 7903# define LT_DLLAZY_OR_NOW DL_LAZY 7904# else 7905# ifdef RTLD_NOW 7906# define LT_DLLAZY_OR_NOW RTLD_NOW 7907# else 7908# ifdef DL_NOW 7909# define LT_DLLAZY_OR_NOW DL_NOW 7910# else 7911# define LT_DLLAZY_OR_NOW 0 7912# endif 7913# endif 7914# endif 7915# endif 7916#endif 7917 7918#ifdef __cplusplus 7919extern "C" void exit (int); 7920#endif 7921 7922void fnord() { int i=42;} 7923int main () 7924{ 7925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7926 int status = $lt_dlunknown; 7927 7928 if (self) 7929 { 7930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7932 /* dlclose (self); */ 7933 } 7934 7935 exit (status); 7936} 7937EOF 7938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7939 (eval $ac_link) 2>&5 7940 ac_status=$? 7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 7943 (./conftest; exit; ) 2>/dev/null 7944 lt_status=$? 7945 case x$lt_status in 7946 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7947 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7948 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 7949 esac 7950 else : 7951 # compilation failed 7952 lt_cv_dlopen_self=no 7953 fi 7954fi 7955rm -fr conftest* 7956 7957 7958fi 7959echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 7960echo "${ECHO_T}$lt_cv_dlopen_self" >&6 7961 7962 if test "x$lt_cv_dlopen_self" = xyes; then 7963 LDFLAGS="$LDFLAGS $link_static_flag" 7964 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 7965echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 7966if test "${lt_cv_dlopen_self_static+set}" = set; then 7967 echo $ECHO_N "(cached) $ECHO_C" >&6 7968else 7969 if test "$cross_compiling" = yes; then : 7970 lt_cv_dlopen_self_static=cross 7971else 7972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7973 lt_status=$lt_dlunknown 7974 cat > conftest.$ac_ext <<EOF 7975#line 7975 "configure" 7976#include "confdefs.h" 7977 7978#if HAVE_DLFCN_H 7979#include <dlfcn.h> 7980#endif 7981 7982#include <stdio.h> 7983 7984#ifdef RTLD_GLOBAL 7985# define LT_DLGLOBAL RTLD_GLOBAL 7986#else 7987# ifdef DL_GLOBAL 7988# define LT_DLGLOBAL DL_GLOBAL 7989# else 7990# define LT_DLGLOBAL 0 7991# endif 7992#endif 7993 7994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7995 find out it does not work in some platform. */ 7996#ifndef LT_DLLAZY_OR_NOW 7997# ifdef RTLD_LAZY 7998# define LT_DLLAZY_OR_NOW RTLD_LAZY 7999# else 8000# ifdef DL_LAZY 8001# define LT_DLLAZY_OR_NOW DL_LAZY 8002# else 8003# ifdef RTLD_NOW 8004# define LT_DLLAZY_OR_NOW RTLD_NOW 8005# else 8006# ifdef DL_NOW 8007# define LT_DLLAZY_OR_NOW DL_NOW 8008# else 8009# define LT_DLLAZY_OR_NOW 0 8010# endif 8011# endif 8012# endif 8013# endif 8014#endif 8015 8016#ifdef __cplusplus 8017extern "C" void exit (int); 8018#endif 8019 8020void fnord() { int i=42;} 8021int main () 8022{ 8023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8024 int status = $lt_dlunknown; 8025 8026 if (self) 8027 { 8028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8029 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8030 /* dlclose (self); */ 8031 } 8032 8033 exit (status); 8034} 8035EOF 8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8037 (eval $ac_link) 2>&5 8038 ac_status=$? 8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8040 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8041 (./conftest; exit; ) 2>/dev/null 8042 lt_status=$? 8043 case x$lt_status in 8044 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8045 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8046 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8047 esac 8048 else : 8049 # compilation failed 8050 lt_cv_dlopen_self_static=no 8051 fi 8052fi 8053rm -fr conftest* 8054 8055 8056fi 8057echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8058echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8059 fi 8060 8061 CPPFLAGS="$save_CPPFLAGS" 8062 LDFLAGS="$save_LDFLAGS" 8063 LIBS="$save_LIBS" 8064 ;; 8065 esac 8066 8067 case $lt_cv_dlopen_self in 8068 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8069 *) enable_dlopen_self=unknown ;; 8070 esac 8071 8072 case $lt_cv_dlopen_self_static in 8073 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8074 *) enable_dlopen_self_static=unknown ;; 8075 esac 8076fi 8077 8078 8079# Report which librarie types wil actually be built 8080echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8081echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8082echo "$as_me:$LINENO: result: $can_build_shared" >&5 8083echo "${ECHO_T}$can_build_shared" >&6 8084 8085echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8086echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8087test "$can_build_shared" = "no" && enable_shared=no 8088 8089# On AIX, shared libraries and static libraries use the same namespace, and 8090# are all built from PIC. 8091case "$host_os" in 8092aix3*) 8093 test "$enable_shared" = yes && enable_static=no 8094 if test -n "$RANLIB"; then 8095 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8096 postinstall_cmds='$RANLIB $lib' 8097 fi 8098 ;; 8099 8100aix4*) 8101 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8102 test "$enable_shared" = yes && enable_static=no 8103 fi 8104 ;; 8105 darwin* | rhapsody*) 8106 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 8107 archive_cmds_need_lc=no 8108 case "$host_os" in 8109 rhapsody* | darwin1.[012]) 8110 allow_undefined_flag='-undefined suppress' 8111 ;; 8112 *) # Darwin 1.3 on 8113 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress' 8114 ;; 8115 esac 8116 # FIXME: Relying on posixy $() will cause problems for 8117 # cross-compilation, but unfortunately the echo tests do not 8118 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 8119 # `"' quotes if we put them in here... so don't! 8120 output_verbose_link_cmd='echo' 8121 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 8122 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 8123 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8124 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8125 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8126 hardcode_direct=no 8127 hardcode_automatic=yes 8128 hardcode_shlibpath_var=unsupported 8129 whole_archive_flag_spec='-all_load $convenience' 8130 link_all_deplibs=yes 8131 fi 8132 ;; 8133esac 8134echo "$as_me:$LINENO: result: $enable_shared" >&5 8135echo "${ECHO_T}$enable_shared" >&6 8136 8137echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8138echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8139# Make sure either enable_shared or enable_static is yes. 8140test "$enable_shared" = yes || enable_static=yes 8141echo "$as_me:$LINENO: result: $enable_static" >&5 8142echo "${ECHO_T}$enable_static" >&6 8143 8144# The else clause should only fire when bootstrapping the 8145# libtool distribution, otherwise you forgot to ship ltmain.sh 8146# with your package, and you will get complaints that there are 8147# no rules to generate ltmain.sh. 8148if test -f "$ltmain"; then 8149 # See if we are running on zsh, and set the options which allow our commands through 8150 # without removal of \ escapes. 8151 if test -n "${ZSH_VERSION+set}" ; then 8152 setopt NO_GLOB_SUBST 8153 fi 8154 # Now quote all the things that may contain metacharacters while being 8155 # careful not to overquote the AC_SUBSTed values. We take copies of the 8156 # variables and quote the copies for generation of the libtool script. 8157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 8158 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8159 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8160 deplibs_check_method reload_flag reload_cmds need_locks \ 8161 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8162 lt_cv_sys_global_symbol_to_c_name_address \ 8163 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8164 old_postinstall_cmds old_postuninstall_cmds \ 8165 compiler \ 8166 CC \ 8167 LD \ 8168 lt_prog_compiler_wl \ 8169 lt_prog_compiler_pic \ 8170 lt_prog_compiler_static \ 8171 lt_prog_compiler_no_builtin_flag \ 8172 export_dynamic_flag_spec \ 8173 thread_safe_flag_spec \ 8174 whole_archive_flag_spec \ 8175 enable_shared_with_static_runtimes \ 8176 old_archive_cmds \ 8177 old_archive_from_new_cmds \ 8178 predep_objects \ 8179 postdep_objects \ 8180 predeps \ 8181 postdeps \ 8182 compiler_lib_search_path \ 8183 archive_cmds \ 8184 archive_expsym_cmds \ 8185 postinstall_cmds \ 8186 postuninstall_cmds \ 8187 old_archive_from_expsyms_cmds \ 8188 allow_undefined_flag \ 8189 no_undefined_flag \ 8190 export_symbols_cmds \ 8191 hardcode_libdir_flag_spec \ 8192 hardcode_libdir_flag_spec_ld \ 8193 hardcode_libdir_separator \ 8194 hardcode_automatic \ 8195 module_cmds \ 8196 module_expsym_cmds \ 8197 lt_cv_prog_compiler_c_o \ 8198 exclude_expsyms \ 8199 include_expsyms; do 8200 8201 case $var in 8202 old_archive_cmds | \ 8203 old_archive_from_new_cmds | \ 8204 archive_cmds | \ 8205 archive_expsym_cmds | \ 8206 module_cmds | \ 8207 module_expsym_cmds | \ 8208 old_archive_from_expsyms_cmds | \ 8209 export_symbols_cmds | \ 8210 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8211 postinstall_cmds | postuninstall_cmds | \ 8212 old_postinstall_cmds | old_postuninstall_cmds | \ 8213 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8214 # Double-quote double-evaled strings. 8215 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8216 ;; 8217 *) 8218 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8219 ;; 8220 esac 8221 done 8222 8223 case $lt_echo in 8224 *'\$0 --fallback-echo"') 8225 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8226 ;; 8227 esac 8228 8229cfgfile="${ofile}T" 8230 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8231 $rm -f "$cfgfile" 8232 { echo "$as_me:$LINENO: creating $ofile" >&5 8233echo "$as_me: creating $ofile" >&6;} 8234 8235 cat <<__EOF__ >> "$cfgfile" 8236#! $SHELL 8237 8238# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8239# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8240# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8241# 8242# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8243# Free Software Foundation, Inc. 8244# 8245# This file is part of GNU Libtool: 8246# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8247# 8248# This program is free software; you can redistribute it and/or modify 8249# it under the terms of the GNU General Public License as published by 8250# the Free Software Foundation; either version 2 of the License, or 8251# (at your option) any later version. 8252# 8253# This program is distributed in the hope that it will be useful, but 8254# WITHOUT ANY WARRANTY; without even the implied warranty of 8255# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8256# General Public License for more details. 8257# 8258# You should have received a copy of the GNU General Public License 8259# along with this program; if not, write to the Free Software 8260# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8261# 8262# As a special exception to the GNU General Public License, if you 8263# distribute this file as part of a program that contains a 8264# configuration script generated by Autoconf, you may include it under 8265# the same distribution terms that you use for the rest of that program. 8266 8267# A sed program that does not truncate output. 8268SED=$lt_SED 8269 8270# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8271Xsed="$SED -e s/^X//" 8272 8273# The HP-UX ksh and POSIX shell print the target directory to stdout 8274# if CDPATH is set. 8275if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 8276 8277# The names of the tagged configurations supported by this script. 8278available_tags= 8279 8280# ### BEGIN LIBTOOL CONFIG 8281 8282# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8283 8284# Shell to use when invoking shell scripts. 8285SHELL=$lt_SHELL 8286 8287# Whether or not to build shared libraries. 8288build_libtool_libs=$enable_shared 8289 8290# Whether or not to build static libraries. 8291build_old_libs=$enable_static 8292 8293# Whether or not to add -lc for building shared libraries. 8294build_libtool_need_lc=$archive_cmds_need_lc 8295 8296# Whether or not to disallow shared libs when runtime libs are static 8297allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8298 8299# Whether or not to optimize for fast installation. 8300fast_install=$enable_fast_install 8301 8302# The host system. 8303host_alias=$host_alias 8304host=$host 8305 8306# An echo program that does not interpret backslashes. 8307echo=$lt_echo 8308 8309# The archiver. 8310AR=$lt_AR 8311AR_FLAGS=$lt_AR_FLAGS 8312 8313# A C compiler. 8314LTCC=$lt_LTCC 8315 8316# A language-specific compiler. 8317CC=$lt_compiler 8318 8319# Is the compiler the GNU C compiler? 8320with_gcc=$GCC 8321 8322# An ERE matcher. 8323EGREP=$lt_EGREP 8324 8325# The linker used to build libraries. 8326LD=$lt_LD 8327 8328# Whether we need hard or soft links. 8329LN_S=$lt_LN_S 8330 8331# A BSD-compatible nm program. 8332NM=$lt_NM 8333 8334# A symbol stripping program 8335STRIP=$STRIP 8336 8337# Used to examine libraries when file_magic_cmd begins "file" 8338MAGIC_CMD=$MAGIC_CMD 8339 8340# Used on cygwin: DLL creation program. 8341DLLTOOL="$DLLTOOL" 8342 8343# Used on cygwin: object dumper. 8344OBJDUMP="$OBJDUMP" 8345 8346# Used on cygwin: assembler. 8347AS="$AS" 8348 8349# The name of the directory that contains temporary libtool files. 8350objdir=$objdir 8351 8352# How to create reloadable object files. 8353reload_flag=$lt_reload_flag 8354reload_cmds=$lt_reload_cmds 8355 8356# How to pass a linker flag through the compiler. 8357wl=$lt_lt_prog_compiler_wl 8358 8359# Object file suffix (normally "o"). 8360objext="$ac_objext" 8361 8362# Old archive suffix (normally "a"). 8363libext="$libext" 8364 8365# Shared library suffix (normally ".so"). 8366shrext='$shrext' 8367 8368# Executable file suffix (normally ""). 8369exeext="$exeext" 8370 8371# Additional compiler flags for building library objects. 8372pic_flag=$lt_lt_prog_compiler_pic 8373pic_mode=$pic_mode 8374 8375# What is the maximum length of a command? 8376max_cmd_len=$lt_cv_sys_max_cmd_len 8377 8378# Does compiler simultaneously support -c and -o options? 8379compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8380 8381# Must we lock files when doing compilation ? 8382need_locks=$lt_need_locks 8383 8384# Do we need the lib prefix for modules? 8385need_lib_prefix=$need_lib_prefix 8386 8387# Do we need a version for libraries? 8388need_version=$need_version 8389 8390# Whether dlopen is supported. 8391dlopen_support=$enable_dlopen 8392 8393# Whether dlopen of programs is supported. 8394dlopen_self=$enable_dlopen_self 8395 8396# Whether dlopen of statically linked programs is supported. 8397dlopen_self_static=$enable_dlopen_self_static 8398 8399# Compiler flag to prevent dynamic linking. 8400link_static_flag=$lt_lt_prog_compiler_static 8401 8402# Compiler flag to turn off builtin functions. 8403no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8404 8405# Compiler flag to allow reflexive dlopens. 8406export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8407 8408# Compiler flag to generate shared objects directly from archives. 8409whole_archive_flag_spec=$lt_whole_archive_flag_spec 8410 8411# Compiler flag to generate thread-safe objects. 8412thread_safe_flag_spec=$lt_thread_safe_flag_spec 8413 8414# Library versioning type. 8415version_type=$version_type 8416 8417# Format of library name prefix. 8418libname_spec=$lt_libname_spec 8419 8420# List of archive names. First name is the real one, the rest are links. 8421# The last name is the one that the linker finds with -lNAME. 8422library_names_spec=$lt_library_names_spec 8423 8424# The coded name of the library, if different from the real name. 8425soname_spec=$lt_soname_spec 8426 8427# Commands used to build and install an old-style archive. 8428RANLIB=$lt_RANLIB 8429old_archive_cmds=$lt_old_archive_cmds 8430old_postinstall_cmds=$lt_old_postinstall_cmds 8431old_postuninstall_cmds=$lt_old_postuninstall_cmds 8432 8433# Create an old-style archive from a shared archive. 8434old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8435 8436# Create a temporary old-style archive to link instead of a shared archive. 8437old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8438 8439# Commands used to build and install a shared archive. 8440archive_cmds=$lt_archive_cmds 8441archive_expsym_cmds=$lt_archive_expsym_cmds 8442postinstall_cmds=$lt_postinstall_cmds 8443postuninstall_cmds=$lt_postuninstall_cmds 8444 8445# Commands used to build a loadable module (assumed same as above if empty) 8446module_cmds=$lt_module_cmds 8447module_expsym_cmds=$lt_module_expsym_cmds 8448 8449# Commands to strip libraries. 8450old_striplib=$lt_old_striplib 8451striplib=$lt_striplib 8452 8453# Dependencies to place before the objects being linked to create a 8454# shared library. 8455predep_objects=$lt_predep_objects 8456 8457# Dependencies to place after the objects being linked to create a 8458# shared library. 8459postdep_objects=$lt_postdep_objects 8460 8461# Dependencies to place before the objects being linked to create a 8462# shared library. 8463predeps=$lt_predeps 8464 8465# Dependencies to place after the objects being linked to create a 8466# shared library. 8467postdeps=$lt_postdeps 8468 8469# The library search path used internally by the compiler when linking 8470# a shared library. 8471compiler_lib_search_path=$lt_compiler_lib_search_path 8472 8473# Method to check whether dependent libraries are shared objects. 8474deplibs_check_method=$lt_deplibs_check_method 8475 8476# Command to use when deplibs_check_method == file_magic. 8477file_magic_cmd=$lt_file_magic_cmd 8478 8479# Flag that allows shared libraries with undefined symbols to be built. 8480allow_undefined_flag=$lt_allow_undefined_flag 8481 8482# Flag that forces no undefined symbols. 8483no_undefined_flag=$lt_no_undefined_flag 8484 8485# Commands used to finish a libtool library installation in a directory. 8486finish_cmds=$lt_finish_cmds 8487 8488# Same as above, but a single script fragment to be evaled but not shown. 8489finish_eval=$lt_finish_eval 8490 8491# Take the output of nm and produce a listing of raw symbols and C names. 8492global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 8493 8494# Transform the output of nm in a proper C declaration 8495global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 8496 8497# Transform the output of nm in a C name address pair 8498global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 8499 8500# This is the shared library runtime path variable. 8501runpath_var=$runpath_var 8502 8503# This is the shared library path variable. 8504shlibpath_var=$shlibpath_var 8505 8506# Is shlibpath searched before the hard-coded library search path? 8507shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8508 8509# How to hardcode a shared library path into an executable. 8510hardcode_action=$hardcode_action 8511 8512# Whether we should hardcode library paths into libraries. 8513hardcode_into_libs=$hardcode_into_libs 8514 8515# Flag to hardcode \$libdir into a binary during linking. 8516# This must work even if \$libdir does not exist. 8517hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8518 8519# If ld is used when linking, flag to hardcode \$libdir into 8520# a binary during linking. This must work even if \$libdir does 8521# not exist. 8522hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 8523 8524# Whether we need a single -rpath flag with a separated argument. 8525hardcode_libdir_separator=$lt_hardcode_libdir_separator 8526 8527# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 8528# resulting binary. 8529hardcode_direct=$hardcode_direct 8530 8531# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8532# resulting binary. 8533hardcode_minus_L=$hardcode_minus_L 8534 8535# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8536# the resulting binary. 8537hardcode_shlibpath_var=$hardcode_shlibpath_var 8538 8539# Set to yes if building a shared library automatically hardcodes DIR into the library 8540# and all subsequent libraries and executables linked against it. 8541hardcode_automatic=$hardcode_automatic 8542 8543# Variables whose values should be saved in libtool wrapper scripts and 8544# restored at relink time. 8545variables_saved_for_relink="$variables_saved_for_relink" 8546 8547# Whether libtool must link a program against all its dependency libraries. 8548link_all_deplibs=$link_all_deplibs 8549 8550# Compile-time system search path for libraries 8551sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8552 8553# Run-time system search path for libraries 8554sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8555 8556# Fix the shell variable \$srcfile for the compiler. 8557fix_srcfile_path="$fix_srcfile_path" 8558 8559# Set to yes if exported symbols are required. 8560always_export_symbols=$always_export_symbols 8561 8562# The commands to list exported symbols. 8563export_symbols_cmds=$lt_export_symbols_cmds 8564 8565# The commands to extract the exported symbol list from a shared archive. 8566extract_expsyms_cmds=$lt_extract_expsyms_cmds 8567 8568# Symbols that should not be listed in the preloaded symbols. 8569exclude_expsyms=$lt_exclude_expsyms 8570 8571# Symbols that must always be exported. 8572include_expsyms=$lt_include_expsyms 8573 8574# ### END LIBTOOL CONFIG 8575 8576__EOF__ 8577 8578 8579 case $host_os in 8580 aix3*) 8581 cat <<\EOF >> "$cfgfile" 8582 8583# AIX sometimes has problems with the GCC collect2 program. For some 8584# reason, if we set the COLLECT_NAMES environment variable, the problems 8585# vanish in a puff of smoke. 8586if test "X${COLLECT_NAMES+set}" != Xset; then 8587 COLLECT_NAMES= 8588 export COLLECT_NAMES 8589fi 8590EOF 8591 ;; 8592 esac 8593 8594 # We use sed instead of cat because bash on DJGPP gets confused if 8595 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8596 # text mode, it properly converts lines to CR/LF. This bash problem 8597 # is reportedly fixed, but why not run on old versions too? 8598 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 8599 8600 mv -f "$cfgfile" "$ofile" || \ 8601 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 8602 chmod +x "$ofile" 8603 8604else 8605 # If there is no Makefile yet, we rely on a make rule to execute 8606 # `config.status --recheck' to rerun these tests and create the 8607 # libtool script then. 8608 test -f Makefile && make "$ltmain" 8609fi 8610 8611 8612ac_ext=c 8613ac_cpp='$CPP $CPPFLAGS' 8614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8616ac_compiler_gnu=$ac_cv_c_compiler_gnu 8617 8618CC="$lt_save_CC" 8619 8620 8621# Check whether --with-tags or --without-tags was given. 8622if test "${with_tags+set}" = set; then 8623 withval="$with_tags" 8624 tagnames="$withval" 8625fi; 8626 8627if test -f "$ltmain" && test -n "$tagnames"; then 8628 if test ! -f "${ofile}"; then 8629 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 8630echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 8631 fi 8632 8633 if test -z "$LTCC"; then 8634 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 8635 if test -z "$LTCC"; then 8636 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 8637echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 8638 else 8639 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 8640echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 8641 fi 8642 fi 8643 8644 # Extract list of available tagged configurations in $ofile. 8645 # Note that this assumes the entire list is on one line. 8646 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 8647 8648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8649 for tagname in $tagnames; do 8650 IFS="$lt_save_ifs" 8651 # Check whether tagname contains only valid characters 8652 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 8653 "") ;; 8654 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 8655echo "$as_me: error: invalid tag name: $tagname" >&2;} 8656 { (exit 1); exit 1; }; } 8657 ;; 8658 esac 8659 8660 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 8661 then 8662 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 8663echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 8664 { (exit 1); exit 1; }; } 8665 fi 8666 8667 # Update the list of available tags. 8668 if test -n "$tagname"; then 8669 echo appending configuration tag \"$tagname\" to $ofile 8670 8671 case $tagname in 8672 CXX) 8673 if test -n "$CXX" && test "X$CXX" != "Xno"; then 8674 ac_ext=cc 8675ac_cpp='$CXXCPP $CPPFLAGS' 8676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8679 8680 8681 8682 8683archive_cmds_need_lc_CXX=no 8684allow_undefined_flag_CXX= 8685always_export_symbols_CXX=no 8686archive_expsym_cmds_CXX= 8687export_dynamic_flag_spec_CXX= 8688hardcode_direct_CXX=no 8689hardcode_libdir_flag_spec_CXX= 8690hardcode_libdir_flag_spec_ld_CXX= 8691hardcode_libdir_separator_CXX= 8692hardcode_minus_L_CXX=no 8693hardcode_automatic_CXX=no 8694module_cmds_CXX= 8695module_expsym_cmds_CXX= 8696link_all_deplibs_CXX=unknown 8697old_archive_cmds_CXX=$old_archive_cmds 8698no_undefined_flag_CXX= 8699whole_archive_flag_spec_CXX= 8700enable_shared_with_static_runtimes_CXX=no 8701 8702# Dependencies to place before and after the object being linked: 8703predep_objects_CXX= 8704postdep_objects_CXX= 8705predeps_CXX= 8706postdeps_CXX= 8707compiler_lib_search_path_CXX= 8708 8709# Source file extension for C++ test sources. 8710ac_ext=cc 8711 8712# Object file extension for compiled C++ test sources. 8713objext=o 8714objext_CXX=$objext 8715 8716# Code to be used in simple compile tests 8717lt_simple_compile_test_code="int some_variable = 0;\n" 8718 8719# Code to be used in simple link tests 8720lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 8721 8722# ltmain only uses $CC for tagged configurations so make sure $CC is set. 8723 8724# If no C compiler was specified, use CC. 8725LTCC=${LTCC-"$CC"} 8726 8727# Allow CC to be a program name with arguments. 8728compiler=$CC 8729 8730 8731# Allow CC to be a program name with arguments. 8732lt_save_CC=$CC 8733lt_save_LD=$LD 8734lt_save_GCC=$GCC 8735GCC=$GXX 8736lt_save_with_gnu_ld=$with_gnu_ld 8737lt_save_path_LD=$lt_cv_path_LD 8738if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 8739 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 8740else 8741 unset lt_cv_prog_gnu_ld 8742fi 8743if test -n "${lt_cv_path_LDCXX+set}"; then 8744 lt_cv_path_LD=$lt_cv_path_LDCXX 8745else 8746 unset lt_cv_path_LD 8747fi 8748test -z "${LDCXX+set}" || LD=$LDCXX 8749CC=${CXX-"c++"} 8750compiler=$CC 8751compiler_CXX=$CC 8752cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 8753 8754# We don't want -fno-exception wen compiling C++ code, so set the 8755# no_builtin_flag separately 8756if test "$GXX" = yes; then 8757 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 8758else 8759 lt_prog_compiler_no_builtin_flag_CXX= 8760fi 8761 8762if test "$GXX" = yes; then 8763 # Set up default GNU C++ configuration 8764 8765 8766# Check whether --with-gnu-ld or --without-gnu-ld was given. 8767if test "${with_gnu_ld+set}" = set; then 8768 withval="$with_gnu_ld" 8769 test "$withval" = no || with_gnu_ld=yes 8770else 8771 with_gnu_ld=no 8772fi; 8773ac_prog=ld 8774if test "$GCC" = yes; then 8775 # Check if gcc -print-prog-name=ld gives a path. 8776 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 8777echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 8778 case $host in 8779 *-*-mingw*) 8780 # gcc leaves a trailing carriage return which upsets mingw 8781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8782 *) 8783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8784 esac 8785 case $ac_prog in 8786 # Accept absolute paths. 8787 [\\/]* | ?:[\\/]*) 8788 re_direlt='/[^/][^/]*/\.\./' 8789 # Canonicalize the path of ld 8790 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 8791 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8792 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 8793 done 8794 test -z "$LD" && LD="$ac_prog" 8795 ;; 8796 "") 8797 # If it fails, then pretend we aren't using GCC. 8798 ac_prog=ld 8799 ;; 8800 *) 8801 # If it is relative, then search for the first ld in PATH. 8802 with_gnu_ld=unknown 8803 ;; 8804 esac 8805elif test "$with_gnu_ld" = yes; then 8806 echo "$as_me:$LINENO: checking for GNU ld" >&5 8807echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 8808else 8809 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 8810echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 8811fi 8812if test "${lt_cv_path_LD+set}" = set; then 8813 echo $ECHO_N "(cached) $ECHO_C" >&6 8814else 8815 if test -z "$LD"; then 8816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8817 for ac_dir in $PATH; do 8818 IFS="$lt_save_ifs" 8819 test -z "$ac_dir" && ac_dir=. 8820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8821 lt_cv_path_LD="$ac_dir/$ac_prog" 8822 # Check to see if the program is GNU ld. I'd rather use --version, 8823 # but apparently some GNU ld's only accept -v. 8824 # Break only if it was the GNU/non-GNU ld that we prefer. 8825 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8826 *GNU* | *'with BFD'*) 8827 test "$with_gnu_ld" != no && break 8828 ;; 8829 *) 8830 test "$with_gnu_ld" != yes && break 8831 ;; 8832 esac 8833 fi 8834 done 8835 IFS="$lt_save_ifs" 8836else 8837 lt_cv_path_LD="$LD" # Let the user override the test with a path. 8838fi 8839fi 8840 8841LD="$lt_cv_path_LD" 8842if test -n "$LD"; then 8843 echo "$as_me:$LINENO: result: $LD" >&5 8844echo "${ECHO_T}$LD" >&6 8845else 8846 echo "$as_me:$LINENO: result: no" >&5 8847echo "${ECHO_T}no" >&6 8848fi 8849test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 8850echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 8851 { (exit 1); exit 1; }; } 8852echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 8853echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 8854if test "${lt_cv_prog_gnu_ld+set}" = set; then 8855 echo $ECHO_N "(cached) $ECHO_C" >&6 8856else 8857 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8858case `"$LD" -v 2>&1 </dev/null` in 8859*GNU* | *'with BFD'*) 8860 lt_cv_prog_gnu_ld=yes 8861 ;; 8862*) 8863 lt_cv_prog_gnu_ld=no 8864 ;; 8865esac 8866fi 8867echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 8868echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 8869with_gnu_ld=$lt_cv_prog_gnu_ld 8870 8871 8872 8873 # Check if GNU C++ uses GNU ld as the underlying linker, since the 8874 # archiving commands below assume that GNU ld is being used. 8875 if test "$with_gnu_ld" = yes; then 8876 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 8877 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8878 8879 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 8880 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 8881 8882 # If archive_cmds runs LD, not CC, wlarc should be empty 8883 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 8884 # investigate it a little bit more. (MM) 8885 wlarc='${wl}' 8886 8887 # ancient GNU ld didn't support --whole-archive et. al. 8888 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 8889 grep 'no-whole-archive' > /dev/null; then 8890 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8891 else 8892 whole_archive_flag_spec_CXX= 8893 fi 8894 else 8895 with_gnu_ld=no 8896 wlarc= 8897 8898 # A generic and very simple default shared library creation 8899 # command for GNU C++ for the case where it uses the native 8900 # linker, instead of GNU ld. If possible, this setting should 8901 # overridden to take advantage of the native linker features on 8902 # the platform it is being used on. 8903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 8904 fi 8905 8906 # Commands to make compiler produce verbose output that lists 8907 # what "hidden" libraries, object files and flags are used when 8908 # linking a shared library. 8909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 8910 8911else 8912 GXX=no 8913 with_gnu_ld=no 8914 wlarc= 8915fi 8916 8917# PORTME: fill in a description of your system's C++ link characteristics 8918echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8919echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 8920ld_shlibs_CXX=yes 8921case $host_os in 8922 aix3*) 8923 # FIXME: insert proper C++ library support 8924 ld_shlibs_CXX=no 8925 ;; 8926 aix4* | aix5*) 8927 if test "$host_cpu" = ia64; then 8928 # On IA64, the linker does run time linking by default, so we don't 8929 # have to do anything special. 8930 aix_use_runtimelinking=no 8931 exp_sym_flag='-Bexport' 8932 no_entry_flag="" 8933 else 8934 aix_use_runtimelinking=no 8935 8936 # Test if we are trying to use run time linking or normal 8937 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8938 # need to do runtime linking. 8939 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8940 for ld_flag in $LDFLAGS; do 8941 case $ld_flag in 8942 *-brtl*) 8943 aix_use_runtimelinking=yes 8944 break 8945 ;; 8946 esac 8947 done 8948 esac 8949 8950 exp_sym_flag='-bexport' 8951 no_entry_flag='-bnoentry' 8952 fi 8953 8954 # When large executables or shared objects are built, AIX ld can 8955 # have problems creating the table of contents. If linking a library 8956 # or program results in "error TOC overflow" add -mminimal-toc to 8957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8959 8960 archive_cmds_CXX='' 8961 hardcode_direct_CXX=yes 8962 hardcode_libdir_separator_CXX=':' 8963 link_all_deplibs_CXX=yes 8964 8965 if test "$GXX" = yes; then 8966 case $host_os in aix4.012|aix4.012.*) 8967 # We only want to do this on AIX 4.2 and lower, the check 8968 # below for broken collect2 doesn't work under 4.3+ 8969 collect2name=`${CC} -print-prog-name=collect2` 8970 if test -f "$collect2name" && \ 8971 strings "$collect2name" | grep resolve_lib_name >/dev/null 8972 then 8973 # We have reworked collect2 8974 hardcode_direct_CXX=yes 8975 else 8976 # We have old collect2 8977 hardcode_direct_CXX=unsupported 8978 # It fails to find uninstalled libraries when the uninstalled 8979 # path is not listed in the libpath. Setting hardcode_minus_L 8980 # to unsupported forces relinking 8981 hardcode_minus_L_CXX=yes 8982 hardcode_libdir_flag_spec_CXX='-L$libdir' 8983 hardcode_libdir_separator_CXX= 8984 fi 8985 esac 8986 shared_flag='-shared' 8987 else 8988 # not using gcc 8989 if test "$host_cpu" = ia64; then 8990 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8991 # chokes on -Wl,-G. The following line is correct: 8992 shared_flag='-G' 8993 else 8994 if test "$aix_use_runtimelinking" = yes; then 8995 shared_flag='${wl}-G' 8996 else 8997 shared_flag='${wl}-bM:SRE' 8998 fi 8999 fi 9000 fi 9001 9002 # It seems that -bexpall does not export symbols beginning with 9003 # underscore (_), so it is better to generate a list of symbols to export. 9004 always_export_symbols_CXX=yes 9005 if test "$aix_use_runtimelinking" = yes; then 9006 # Warning - without using the other runtime loading flags (-brtl), 9007 # -berok will link without error, but may produce a broken library. 9008 allow_undefined_flag_CXX='-berok' 9009 # Determine the default libpath from the value encoded in an empty executable. 9010 cat >conftest.$ac_ext <<_ACEOF 9011#line $LINENO "configure" 9012#include "confdefs.h" 9013 9014#ifdef F77_DUMMY_MAIN 9015# ifdef __cplusplus 9016 extern "C" 9017# endif 9018 int F77_DUMMY_MAIN() { return 1; } 9019#endif 9020int 9021main () 9022{ 9023 9024 ; 9025 return 0; 9026} 9027_ACEOF 9028rm -f conftest.$ac_objext conftest$ac_exeext 9029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9030 (eval $ac_link) 2>&5 9031 ac_status=$? 9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9033 (exit $ac_status); } && 9034 { ac_try='test -s conftest$ac_exeext' 9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9036 (eval $ac_try) 2>&5 9037 ac_status=$? 9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9039 (exit $ac_status); }; }; then 9040 9041aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9042}'` 9043# Check for a 64-bit object if we didn't find anything. 9044if 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; } 9045}'`; fi 9046else 9047 echo "$as_me: failed program was:" >&5 9048cat conftest.$ac_ext >&5 9049fi 9050rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9052 9053 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9054 9055 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9056 else 9057 if test "$host_cpu" = ia64; then 9058 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9059 allow_undefined_flag_CXX="-z nodefs" 9060 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 9061 else 9062 # Determine the default libpath from the value encoded in an empty executable. 9063 cat >conftest.$ac_ext <<_ACEOF 9064#line $LINENO "configure" 9065#include "confdefs.h" 9066 9067#ifdef F77_DUMMY_MAIN 9068# ifdef __cplusplus 9069 extern "C" 9070# endif 9071 int F77_DUMMY_MAIN() { return 1; } 9072#endif 9073int 9074main () 9075{ 9076 9077 ; 9078 return 0; 9079} 9080_ACEOF 9081rm -f conftest.$ac_objext conftest$ac_exeext 9082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9083 (eval $ac_link) 2>&5 9084 ac_status=$? 9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9086 (exit $ac_status); } && 9087 { ac_try='test -s conftest$ac_exeext' 9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9089 (eval $ac_try) 2>&5 9090 ac_status=$? 9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9092 (exit $ac_status); }; }; then 9093 9094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9095}'` 9096# Check for a 64-bit object if we didn't find anything. 9097if 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; } 9098}'`; fi 9099else 9100 echo "$as_me: failed program was:" >&5 9101cat conftest.$ac_ext >&5 9102fi 9103rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9105 9106 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9107 # Warning - without using the other run time loading flags, 9108 # -berok will link without error, but may produce a broken library. 9109 no_undefined_flag_CXX=' ${wl}-bernotok' 9110 allow_undefined_flag_CXX=' ${wl}-berok' 9111 # -bexpall does not export symbols beginning with underscore (_) 9112 always_export_symbols_CXX=yes 9113 # Exported symbols can be pulled into shared objects from archives 9114 whole_archive_flag_spec_CXX=' ' 9115 archive_cmds_need_lc_CXX=yes 9116 # This is similar to how AIX traditionally builds it's shared libraries. 9117 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9118 fi 9119 fi 9120 ;; 9121 chorus*) 9122 case $cc_basename in 9123 *) 9124 # FIXME: insert proper C++ library support 9125 ld_shlibs_CXX=no 9126 ;; 9127 esac 9128 ;; 9129 9130 cygwin* | mingw* | pw32*) 9131 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9132 # as there is no search path for DLLs. 9133 hardcode_libdir_flag_spec_CXX='-L$libdir' 9134 allow_undefined_flag_CXX=unsupported 9135 always_export_symbols_CXX=no 9136 enable_shared_with_static_runtimes_CXX=yes 9137 9138 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9139 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 9140 # If the export-symbols file already is a .def file (1st line 9141 # is EXPORTS), use it as is; otherwise, prepend... 9142 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9143 cp $export_symbols $output_objdir/$soname.def; 9144 else 9145 echo EXPORTS > $output_objdir/$soname.def; 9146 cat $export_symbols >> $output_objdir/$soname.def; 9147 fi~ 9148 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 9149 else 9150 ld_shlibs_CXX=no 9151 fi 9152 ;; 9153 9154 darwin* | rhapsody*) 9155 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 9156 archive_cmds_need_lc_CXX=no 9157 case "$host_os" in 9158 rhapsody* | darwin1.[012]) 9159 allow_undefined_flag_CXX='-undefined suppress' 9160 ;; 9161 *) # Darwin 1.3 on 9162 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 9163 ;; 9164 esac 9165 lt_int_apple_cc_single_mod=no 9166 output_verbose_link_cmd='echo' 9167 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 9168 lt_int_apple_cc_single_mod=yes 9169 fi 9170 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9171 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9172 else 9173 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9174 fi 9175 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 9176 9177 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9178 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9179 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9180 else 9181 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9182 fi 9183 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9184 hardcode_direct_CXX=no 9185 hardcode_automatic_CXX=yes 9186 hardcode_shlibpath_var_CXX=unsupported 9187 whole_archive_flag_spec_CXX='-all_load $convenience' 9188 link_all_deplibs_CXX=yes 9189 fi 9190 ;; 9191 9192 dgux*) 9193 case $cc_basename in 9194 ec++) 9195 # FIXME: insert proper C++ library support 9196 ld_shlibs_CXX=no 9197 ;; 9198 ghcx) 9199 # Green Hills C++ Compiler 9200 # FIXME: insert proper C++ library support 9201 ld_shlibs_CXX=no 9202 ;; 9203 *) 9204 # FIXME: insert proper C++ library support 9205 ld_shlibs_CXX=no 9206 ;; 9207 esac 9208 ;; 9209 freebsd12*) 9210 # C++ shared libraries reported to be fairly broken before switch to ELF 9211 ld_shlibs_CXX=no 9212 ;; 9213 freebsd-elf*) 9214 archive_cmds_need_lc_CXX=no 9215 ;; 9216 freebsd*) 9217 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9218 # conventions 9219 ld_shlibs_CXX=yes 9220 ;; 9221 gnu*) 9222 ;; 9223 hpux9*) 9224 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9225 hardcode_libdir_separator_CXX=: 9226 export_dynamic_flag_spec_CXX='${wl}-E' 9227 hardcode_direct_CXX=yes 9228 hardcode_minus_L_CXX=yes # Not in the search PATH, 9229 # but as the default 9230 # location of the library. 9231 9232 case $cc_basename in 9233 CC) 9234 # FIXME: insert proper C++ library support 9235 ld_shlibs_CXX=no 9236 ;; 9237 aCC) 9238 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9239 # Commands to make compiler produce verbose output that lists 9240 # what "hidden" libraries, object files and flags are used when 9241 # linking a shared library. 9242 # 9243 # There doesn't appear to be a way to prevent this compiler from 9244 # explicitly linking system object files so we need to strip them 9245 # from the output so that they don't get included in the library 9246 # dependencies. 9247 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' 9248 ;; 9249 *) 9250 if test "$GXX" = yes; then 9251 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9252 else 9253 # FIXME: insert proper C++ library support 9254 ld_shlibs_CXX=no 9255 fi 9256 ;; 9257 esac 9258 ;; 9259 hpux10*|hpux11*) 9260 if test $with_gnu_ld = no; then 9261 case "$host_cpu" in 9262 hppa*64*) 9263 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9264 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 9265 hardcode_libdir_separator_CXX=: 9266 ;; 9267 ia64*) 9268 hardcode_libdir_flag_spec_CXX='-L$libdir' 9269 ;; 9270 *) 9271 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9272 hardcode_libdir_separator_CXX=: 9273 export_dynamic_flag_spec_CXX='${wl}-E' 9274 ;; 9275 esac 9276 fi 9277 case "$host_cpu" in 9278 hppa*64*) 9279 hardcode_direct_CXX=no 9280 hardcode_shlibpath_var_CXX=no 9281 ;; 9282 ia64*) 9283 hardcode_direct_CXX=no 9284 hardcode_shlibpath_var_CXX=no 9285 hardcode_minus_L_CXX=yes # Not in the search PATH, 9286 # but as the default 9287 # location of the library. 9288 ;; 9289 *) 9290 hardcode_direct_CXX=yes 9291 hardcode_minus_L_CXX=yes # Not in the search PATH, 9292 # but as the default 9293 # location of the library. 9294 ;; 9295 esac 9296 9297 case $cc_basename in 9298 CC) 9299 # FIXME: insert proper C++ library support 9300 ld_shlibs_CXX=no 9301 ;; 9302 aCC) 9303 case "$host_cpu" in 9304 hppa*64*|ia64*) 9305 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9306 ;; 9307 *) 9308 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9309 ;; 9310 esac 9311 # Commands to make compiler produce verbose output that lists 9312 # what "hidden" libraries, object files and flags are used when 9313 # linking a shared library. 9314 # 9315 # There doesn't appear to be a way to prevent this compiler from 9316 # explicitly linking system object files so we need to strip them 9317 # from the output so that they don't get included in the library 9318 # dependencies. 9319 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' 9320 ;; 9321 *) 9322 if test "$GXX" = yes; then 9323 if test $with_gnu_ld = no; then 9324 case "$host_cpu" in 9325 ia64*|hppa*64*) 9326 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9327 ;; 9328 *) 9329 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9330 ;; 9331 esac 9332 fi 9333 else 9334 # FIXME: insert proper C++ library support 9335 ld_shlibs_CXX=no 9336 fi 9337 ;; 9338 esac 9339 ;; 9340 irix5* | irix6*) 9341 case $cc_basename in 9342 CC) 9343 # SGI C++ 9344 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 9345 9346 # Archives containing C++ object files must be created using 9347 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 9348 # necessary to make sure instantiated templates are included 9349 # in the archive. 9350 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 9351 ;; 9352 *) 9353 if test "$GXX" = yes; then 9354 if test "$with_gnu_ld" = no; then 9355 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 9356 else 9357 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 9358 fi 9359 fi 9360 link_all_deplibs_CXX=yes 9361 ;; 9362 esac 9363 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9364 hardcode_libdir_separator_CXX=: 9365 ;; 9366 linux*) 9367 case $cc_basename in 9368 KCC) 9369 # Kuck and Associates, Inc. (KAI) C++ Compiler 9370 9371 # KCC will only create a shared library if the output file 9372 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9373 # to its proper name (with version) after linking. 9374 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 9375 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 9376 # Commands to make compiler produce verbose output that lists 9377 # what "hidden" libraries, object files and flags are used when 9378 # linking a shared library. 9379 # 9380 # There doesn't appear to be a way to prevent this compiler from 9381 # explicitly linking system object files so we need to strip them 9382 # from the output so that they don't get included in the library 9383 # dependencies. 9384 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' 9385 9386 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 9387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9388 9389 # Archives containing C++ object files must be created using 9390 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9391 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9392 ;; 9393 icpc) 9394 # Intel C++ 9395 with_gnu_ld=yes 9396 archive_cmds_need_lc_CXX=no 9397 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9398 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9401 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9402 ;; 9403 cxx) 9404 # Compaq C++ 9405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9406 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 9407 9408 runpath_var=LD_RUN_PATH 9409 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9410 hardcode_libdir_separator_CXX=: 9411 9412 # Commands to make compiler produce verbose output that lists 9413 # what "hidden" libraries, object files and flags are used when 9414 # linking a shared library. 9415 # 9416 # There doesn't appear to be a way to prevent this compiler from 9417 # explicitly linking system object files so we need to strip them 9418 # from the output so that they don't get included in the library 9419 # dependencies. 9420 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' 9421 ;; 9422 esac 9423 ;; 9424 lynxos*) 9425 # FIXME: insert proper C++ library support 9426 ld_shlibs_CXX=no 9427 ;; 9428 m88k*) 9429 # FIXME: insert proper C++ library support 9430 ld_shlibs_CXX=no 9431 ;; 9432 mvs*) 9433 case $cc_basename in 9434 cxx) 9435 # FIXME: insert proper C++ library support 9436 ld_shlibs_CXX=no 9437 ;; 9438 *) 9439 # FIXME: insert proper C++ library support 9440 ld_shlibs_CXX=no 9441 ;; 9442 esac 9443 ;; 9444 netbsd*) 9445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9446 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 9447 wlarc= 9448 hardcode_libdir_flag_spec_CXX='-R$libdir' 9449 hardcode_direct_CXX=yes 9450 hardcode_shlibpath_var_CXX=no 9451 fi 9452 # Workaround some broken pre-1.5 toolchains 9453 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 9454 ;; 9455 osf3*) 9456 case $cc_basename in 9457 KCC) 9458 # Kuck and Associates, Inc. (KAI) C++ Compiler 9459 9460 # KCC will only create a shared library if the output file 9461 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9462 # to its proper name (with version) after linking. 9463 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 9464 9465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9466 hardcode_libdir_separator_CXX=: 9467 9468 # Archives containing C++ object files must be created using 9469 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9470 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9471 9472 ;; 9473 RCC) 9474 # Rational C++ 2.4.1 9475 # FIXME: insert proper C++ library support 9476 ld_shlibs_CXX=no 9477 ;; 9478 cxx) 9479 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9480 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 9481 9482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9483 hardcode_libdir_separator_CXX=: 9484 9485 # Commands to make compiler produce verbose output that lists 9486 # what "hidden" libraries, object files and flags are used when 9487 # linking a shared library. 9488 # 9489 # There doesn't appear to be a way to prevent this compiler from 9490 # explicitly linking system object files so we need to strip them 9491 # from the output so that they don't get included in the library 9492 # dependencies. 9493 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' 9494 ;; 9495 *) 9496 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9497 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9498 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 9499 9500 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9501 hardcode_libdir_separator_CXX=: 9502 9503 # Commands to make compiler produce verbose output that lists 9504 # what "hidden" libraries, object files and flags are used when 9505 # linking a shared library. 9506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9507 9508 else 9509 # FIXME: insert proper C++ library support 9510 ld_shlibs_CXX=no 9511 fi 9512 ;; 9513 esac 9514 ;; 9515 osf4* | osf5*) 9516 case $cc_basename in 9517 KCC) 9518 # Kuck and Associates, Inc. (KAI) C++ Compiler 9519 9520 # KCC will only create a shared library if the output file 9521 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9522 # to its proper name (with version) after linking. 9523 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 9524 9525 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9526 hardcode_libdir_separator_CXX=: 9527 9528 # Archives containing C++ object files must be created using 9529 # the KAI C++ compiler. 9530 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 9531 ;; 9532 RCC) 9533 # Rational C++ 2.4.1 9534 # FIXME: insert proper C++ library support 9535 ld_shlibs_CXX=no 9536 ;; 9537 cxx) 9538 allow_undefined_flag_CXX=' -expect_unresolved \*' 9539 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 9540 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 9541 echo "-hidden">> $lib.exp~ 9542 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 9543 $rm $lib.exp' 9544 9545 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9546 hardcode_libdir_separator_CXX=: 9547 9548 # Commands to make compiler produce verbose output that lists 9549 # what "hidden" libraries, object files and flags are used when 9550 # linking a shared library. 9551 # 9552 # There doesn't appear to be a way to prevent this compiler from 9553 # explicitly linking system object files so we need to strip them 9554 # from the output so that they don't get included in the library 9555 # dependencies. 9556 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' 9557 ;; 9558 *) 9559 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9560 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9561 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 9562 9563 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9564 hardcode_libdir_separator_CXX=: 9565 9566 # Commands to make compiler produce verbose output that lists 9567 # what "hidden" libraries, object files and flags are used when 9568 # linking a shared library. 9569 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9570 9571 else 9572 # FIXME: insert proper C++ library support 9573 ld_shlibs_CXX=no 9574 fi 9575 ;; 9576 esac 9577 ;; 9578 psos*) 9579 # FIXME: insert proper C++ library support 9580 ld_shlibs_CXX=no 9581 ;; 9582 sco*) 9583 archive_cmds_need_lc_CXX=no 9584 case $cc_basename in 9585 CC) 9586 # FIXME: insert proper C++ library support 9587 ld_shlibs_CXX=no 9588 ;; 9589 *) 9590 # FIXME: insert proper C++ library support 9591 ld_shlibs_CXX=no 9592 ;; 9593 esac 9594 ;; 9595 sunos4*) 9596 case $cc_basename in 9597 CC) 9598 # Sun C++ 4.x 9599 # FIXME: insert proper C++ library support 9600 ld_shlibs_CXX=no 9601 ;; 9602 lcc) 9603 # Lucid 9604 # FIXME: insert proper C++ library support 9605 ld_shlibs_CXX=no 9606 ;; 9607 *) 9608 # FIXME: insert proper C++ library support 9609 ld_shlibs_CXX=no 9610 ;; 9611 esac 9612 ;; 9613 solaris*) 9614 case $cc_basename in 9615 CC) 9616 # Sun C++ 4.2, 5.x and Centerline C++ 9617 no_undefined_flag_CXX=' -zdefs' 9618 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9619 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9620 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 9621 9622 hardcode_libdir_flag_spec_CXX='-R$libdir' 9623 hardcode_shlibpath_var_CXX=no 9624 case $host_os in 9625 solaris2.0-5 | solaris2.0-5.*) ;; 9626 *) 9627 # The C++ compiler is used as linker so we must use $wl 9628 # flag to pass the commands to the underlying system 9629 # linker. 9630 # Supported since Solaris 2.6 (maybe 2.5.1?) 9631 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9632 ;; 9633 esac 9634 link_all_deplibs_CXX=yes 9635 9636 # Commands to make compiler produce verbose output that lists 9637 # what "hidden" libraries, object files and flags are used when 9638 # linking a shared library. 9639 # 9640 # There doesn't appear to be a way to prevent this compiler from 9641 # explicitly linking system object files so we need to strip them 9642 # from the output so that they don't get included in the library 9643 # dependencies. 9644 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' 9645 9646 # Archives containing C++ object files must be created using 9647 # "CC -xar", where "CC" is the Sun C++ compiler. This is 9648 # necessary to make sure instantiated templates are included 9649 # in the archive. 9650 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 9651 ;; 9652 gcx) 9653 # Green Hills C++ Compiler 9654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9655 9656 # The C++ compiler must be used to create the archive. 9657 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 9658 ;; 9659 *) 9660 # GNU C++ compiler with Solaris linker 9661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9662 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 9663 if $CC --version | grep -v '^2\.7' > /dev/null; then 9664 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9665 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9666 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 9667 9668 # Commands to make compiler produce verbose output that lists 9669 # what "hidden" libraries, object files and flags are used when 9670 # linking a shared library. 9671 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 9672 else 9673 # g++ 2.7 appears to require `-G' NOT `-shared' on this 9674 # platform. 9675 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 9676 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9677 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 9678 9679 # Commands to make compiler produce verbose output that lists 9680 # what "hidden" libraries, object files and flags are used when 9681 # linking a shared library. 9682 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 9683 fi 9684 9685 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 9686 fi 9687 ;; 9688 esac 9689 ;; 9690 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 9691 archive_cmds_need_lc_CXX=no 9692 ;; 9693 tandem*) 9694 case $cc_basename in 9695 NCC) 9696 # NonStop-UX NCC 3.20 9697 # FIXME: insert proper C++ library support 9698 ld_shlibs_CXX=no 9699 ;; 9700 *) 9701 # FIXME: insert proper C++ library support 9702 ld_shlibs_CXX=no 9703 ;; 9704 esac 9705 ;; 9706 vxworks*) 9707 # FIXME: insert proper C++ library support 9708 ld_shlibs_CXX=no 9709 ;; 9710 *) 9711 # FIXME: insert proper C++ library support 9712 ld_shlibs_CXX=no 9713 ;; 9714esac 9715echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 9716echo "${ECHO_T}$ld_shlibs_CXX" >&6 9717test "$ld_shlibs_CXX" = no && can_build_shared=no 9718 9719GCC_CXX="$GXX" 9720LD_CXX="$LD" 9721 9722 9723cat > conftest.$ac_ext <<EOF 9724class Foo 9725{ 9726public: 9727 Foo (void) { a = 0; } 9728private: 9729 int a; 9730}; 9731EOF 9732 9733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9734 (eval $ac_compile) 2>&5 9735 ac_status=$? 9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9737 (exit $ac_status); }; then 9738 # Parse the compiler output and extract the necessary 9739 # objects, libraries and library flags. 9740 9741 # Sentinel used to keep track of whether or not we are before 9742 # the conftest object file. 9743 pre_test_object_deps_done=no 9744 9745 # The `*' in the case matches for architectures that use `case' in 9746 # $output_verbose_cmd can trigger glob expansion during the loop 9747 # eval without this substitution. 9748 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 9749 9750 for p in `eval $output_verbose_link_cmd`; do 9751 case $p in 9752 9753 -L* | -R* | -l*) 9754 # Some compilers place space between "-{L,R}" and the path. 9755 # Remove the space. 9756 if test $p = "-L" \ 9757 || test $p = "-R"; then 9758 prev=$p 9759 continue 9760 else 9761 prev= 9762 fi 9763 9764 if test "$pre_test_object_deps_done" = no; then 9765 case $p in 9766 -L* | -R*) 9767 # Internal compiler library paths should come after those 9768 # provided the user. The postdeps already come after the 9769 # user supplied libs so there is no need to process them. 9770 if test -z "$compiler_lib_search_path_CXX"; then 9771 compiler_lib_search_path_CXX="${prev}${p}" 9772 else 9773 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 9774 fi 9775 ;; 9776 # The "-l" case would never come before the object being 9777 # linked, so don't bother handling this case. 9778 esac 9779 else 9780 if test -z "$postdeps_CXX"; then 9781 postdeps_CXX="${prev}${p}" 9782 else 9783 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 9784 fi 9785 fi 9786 ;; 9787 9788 *.$objext) 9789 # This assumes that the test object file only shows up 9790 # once in the compiler output. 9791 if test "$p" = "conftest.$objext"; then 9792 pre_test_object_deps_done=yes 9793 continue 9794 fi 9795 9796 if test "$pre_test_object_deps_done" = no; then 9797 if test -z "$predep_objects_CXX"; then 9798 predep_objects_CXX="$p" 9799 else 9800 predep_objects_CXX="$predep_objects_CXX $p" 9801 fi 9802 else 9803 if test -z "$postdep_objects_CXX"; then 9804 postdep_objects_CXX="$p" 9805 else 9806 postdep_objects_CXX="$postdep_objects_CXX $p" 9807 fi 9808 fi 9809 ;; 9810 9811 *) ;; # Ignore the rest. 9812 9813 esac 9814 done 9815 9816 # Clean up. 9817 rm -f a.out a.exe 9818else 9819 echo "libtool.m4: error: problem compiling CXX test program" 9820fi 9821 9822$rm -f confest.$objext 9823 9824case " $postdeps_CXX " in 9825*" -lc "*) archive_cmds_need_lc_CXX=no ;; 9826esac 9827 9828lt_prog_compiler_wl_CXX= 9829lt_prog_compiler_pic_CXX= 9830lt_prog_compiler_static_CXX= 9831 9832echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 9833echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 9834 9835 # C++ specific cases for pic, static, wl, etc. 9836 if test "$GXX" = yes; then 9837 lt_prog_compiler_wl_CXX='-Wl,' 9838 lt_prog_compiler_static_CXX='-static' 9839 9840 case $host_os in 9841 aix*) 9842 # All AIX code is PIC. 9843 if test "$host_cpu" = ia64; then 9844 # AIX 5 now supports IA64 processor 9845 lt_prog_compiler_static_CXX='-Bstatic' 9846 fi 9847 ;; 9848 amigaos*) 9849 # FIXME: we need at least 68020 code to build shared libraries, but 9850 # adding the `-m68020' flag to GCC prevents building anything better, 9851 # like `-m68040'. 9852 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 9853 ;; 9854 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9855 # PIC is the default for these OSes. 9856 ;; 9857 mingw* | os2* | pw32*) 9858 # This hack is so that the source file can tell whether it is being 9859 # built for inclusion in a dll (and should export symbols for example). 9860 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 9861 ;; 9862 darwin* | rhapsody*) 9863 # PIC is the default on this platform 9864 # Common symbols not allowed in MH_DYLIB files 9865 lt_prog_compiler_pic_CXX='-fno-common' 9866 ;; 9867 *djgpp*) 9868 # DJGPP does not support shared libraries at all 9869 lt_prog_compiler_pic_CXX= 9870 ;; 9871 sysv4*MP*) 9872 if test -d /usr/nec; then 9873 lt_prog_compiler_pic_CXX=-Kconform_pic 9874 fi 9875 ;; 9876 hpux*) 9877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9878 # not for PA HP-UX. 9879 case "$host_cpu" in 9880 hppa*64*|ia64*) 9881 ;; 9882 *) 9883 lt_prog_compiler_pic_CXX='-fPIC' 9884 ;; 9885 esac 9886 ;; 9887 *) 9888 lt_prog_compiler_pic_CXX='-fPIC' 9889 ;; 9890 esac 9891 else 9892 case $host_os in 9893 aix4* | aix5*) 9894 # All AIX code is PIC. 9895 if test "$host_cpu" = ia64; then 9896 # AIX 5 now supports IA64 processor 9897 lt_prog_compiler_static_CXX='-Bstatic' 9898 else 9899 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 9900 fi 9901 ;; 9902 chorus*) 9903 case $cc_basename in 9904 cxch68) 9905 # Green Hills C++ Compiler 9906 # _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" 9907 ;; 9908 esac 9909 ;; 9910 dgux*) 9911 case $cc_basename in 9912 ec++) 9913 lt_prog_compiler_pic_CXX='-KPIC' 9914 ;; 9915 ghcx) 9916 # Green Hills C++ Compiler 9917 lt_prog_compiler_pic_CXX='-pic' 9918 ;; 9919 *) 9920 ;; 9921 esac 9922 ;; 9923 freebsd*) 9924 # FreeBSD uses GNU C++ 9925 ;; 9926 hpux9* | hpux10* | hpux11*) 9927 case $cc_basename in 9928 CC) 9929 lt_prog_compiler_wl_CXX='-Wl,' 9930 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 9931 if test "$host_cpu" != ia64; then 9932 lt_prog_compiler_pic_CXX='+Z' 9933 fi 9934 ;; 9935 aCC) 9936 lt_prog_compiler_wl_CXX='-Wl,' 9937 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 9938 case "$host_cpu" in 9939 hppa*64*|ia64*) 9940 # +Z the default 9941 ;; 9942 *) 9943 lt_prog_compiler_pic_CXX='+Z' 9944 ;; 9945 esac 9946 ;; 9947 *) 9948 ;; 9949 esac 9950 ;; 9951 irix5* | irix6* | nonstopux*) 9952 case $cc_basename in 9953 CC) 9954 lt_prog_compiler_wl_CXX='-Wl,' 9955 lt_prog_compiler_static_CXX='-non_shared' 9956 # CC pic flag -KPIC is the default. 9957 ;; 9958 *) 9959 ;; 9960 esac 9961 ;; 9962 linux*) 9963 case $cc_basename in 9964 KCC) 9965 # KAI C++ Compiler 9966 lt_prog_compiler_wl_CXX='--backend -Wl,' 9967 lt_prog_compiler_pic_CXX='-fPIC' 9968 ;; 9969 icpc) 9970 # Intel C++ 9971 lt_prog_compiler_wl_CXX='-Wl,' 9972 lt_prog_compiler_pic_CXX='-KPIC' 9973 lt_prog_compiler_static_CXX='-static' 9974 ;; 9975 cxx) 9976 # Compaq C++ 9977 # Make sure the PIC flag is empty. It appears that all Alpha 9978 # Linux and Compaq Tru64 Unix objects are PIC. 9979 lt_prog_compiler_pic_CXX= 9980 lt_prog_compiler_static_CXX='-non_shared' 9981 ;; 9982 *) 9983 ;; 9984 esac 9985 ;; 9986 lynxos*) 9987 ;; 9988 m88k*) 9989 ;; 9990 mvs*) 9991 case $cc_basename in 9992 cxx) 9993 lt_prog_compiler_pic_CXX='-W c,exportall' 9994 ;; 9995 *) 9996 ;; 9997 esac 9998 ;; 9999 netbsd*) 10000 ;; 10001 osf3* | osf4* | osf5*) 10002 case $cc_basename in 10003 KCC) 10004 lt_prog_compiler_wl_CXX='--backend -Wl,' 10005 ;; 10006 RCC) 10007 # Rational C++ 2.4.1 10008 lt_prog_compiler_pic_CXX='-pic' 10009 ;; 10010 cxx) 10011 # Digital/Compaq C++ 10012 lt_prog_compiler_wl_CXX='-Wl,' 10013 # Make sure the PIC flag is empty. It appears that all Alpha 10014 # Linux and Compaq Tru64 Unix objects are PIC. 10015 lt_prog_compiler_pic_CXX= 10016 lt_prog_compiler_static_CXX='-non_shared' 10017 ;; 10018 *) 10019 ;; 10020 esac 10021 ;; 10022 psos*) 10023 ;; 10024 sco*) 10025 case $cc_basename in 10026 CC) 10027 lt_prog_compiler_pic_CXX='-fPIC' 10028 ;; 10029 *) 10030 ;; 10031 esac 10032 ;; 10033 solaris*) 10034 case $cc_basename in 10035 CC) 10036 # Sun C++ 4.2, 5.x and Centerline C++ 10037 lt_prog_compiler_pic_CXX='-KPIC' 10038 lt_prog_compiler_static_CXX='-Bstatic' 10039 lt_prog_compiler_wl_CXX='-Qoption ld ' 10040 ;; 10041 gcx) 10042 # Green Hills C++ Compiler 10043 lt_prog_compiler_pic_CXX='-PIC' 10044 ;; 10045 *) 10046 ;; 10047 esac 10048 ;; 10049 sunos4*) 10050 case $cc_basename in 10051 CC) 10052 # Sun C++ 4.x 10053 lt_prog_compiler_pic_CXX='-pic' 10054 lt_prog_compiler_static_CXX='-Bstatic' 10055 ;; 10056 lcc) 10057 # Lucid 10058 lt_prog_compiler_pic_CXX='-pic' 10059 ;; 10060 *) 10061 ;; 10062 esac 10063 ;; 10064 tandem*) 10065 case $cc_basename in 10066 NCC) 10067 # NonStop-UX NCC 3.20 10068 lt_prog_compiler_pic_CXX='-KPIC' 10069 ;; 10070 *) 10071 ;; 10072 esac 10073 ;; 10074 unixware*) 10075 ;; 10076 vxworks*) 10077 ;; 10078 *) 10079 lt_prog_compiler_can_build_shared_CXX=no 10080 ;; 10081 esac 10082 fi 10083 10084echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10085echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10086 10087# 10088# Check to make sure the PIC flag actually works. 10089# 10090if test -n "$lt_prog_compiler_pic_CXX"; then 10091 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10092echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10093if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10094 echo $ECHO_N "(cached) $ECHO_C" >&6 10095else 10096 lt_prog_compiler_pic_works_CXX=no 10097 ac_outfile=conftest.$ac_objext 10098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10099 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10100 # Insert the option either (1) after the last *FLAGS variable, or 10101 # (2) before a word containing "conftest.", or (3) at the end. 10102 # Note that $ac_compile itself does not contain backslashes and begins 10103 # with a dollar sign (not a hyphen), so the echo should work correctly. 10104 # The option is referenced via a variable to avoid confusing sed. 10105 lt_compile=`echo "$ac_compile" | $SED \ 10106 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10108 -e 's:$: $lt_compiler_flag:'` 10109 (eval echo "\"\$as_me:10109: $lt_compile\"" >&5) 10110 (eval "$lt_compile" 2>conftest.err) 10111 ac_status=$? 10112 cat conftest.err >&5 10113 echo "$as_me:10113: \$? = $ac_status" >&5 10114 if (exit $ac_status) && test -s "$ac_outfile"; then 10115 # The compiler can only warn and ignore the option if not recognized 10116 # So say no if there are warnings 10117 if test ! -s conftest.err; then 10118 lt_prog_compiler_pic_works_CXX=yes 10119 fi 10120 fi 10121 $rm conftest* 10122 10123fi 10124echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10125echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10126 10127if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10128 case $lt_prog_compiler_pic_CXX in 10129 "" | " "*) ;; 10130 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10131 esac 10132else 10133 lt_prog_compiler_pic_CXX= 10134 lt_prog_compiler_can_build_shared_CXX=no 10135fi 10136 10137fi 10138case "$host_os" in 10139 # For platforms which do not support PIC, -DPIC is meaningless: 10140 *djgpp*) 10141 lt_prog_compiler_pic_CXX= 10142 ;; 10143 *) 10144 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10145 ;; 10146esac 10147 10148echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10149echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10150if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10151 echo $ECHO_N "(cached) $ECHO_C" >&6 10152else 10153 lt_cv_prog_compiler_c_o_CXX=no 10154 $rm -r conftest 2>/dev/null 10155 mkdir conftest 10156 cd conftest 10157 mkdir out 10158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10159 10160 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 10161 # that will create temporary files in the current directory regardless of 10162 # the output directory. Thus, making CWD read-only will cause this test 10163 # to fail, enabling locking or at least warning the user not to do parallel 10164 # builds. 10165 chmod -w . 10166 10167 lt_compiler_flag="-o out/conftest2.$ac_objext" 10168 # Insert the option either (1) after the last *FLAGS variable, or 10169 # (2) before a word containing "conftest.", or (3) at the end. 10170 # Note that $ac_compile itself does not contain backslashes and begins 10171 # with a dollar sign (not a hyphen), so the echo should work correctly. 10172 lt_compile=`echo "$ac_compile" | $SED \ 10173 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10175 -e 's:$: $lt_compiler_flag:'` 10176 (eval echo "\"\$as_me:10176: $lt_compile\"" >&5) 10177 (eval "$lt_compile" 2>out/conftest.err) 10178 ac_status=$? 10179 cat out/conftest.err >&5 10180 echo "$as_me:10180: \$? = $ac_status" >&5 10181 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10182 then 10183 # The compiler can only warn and ignore the option if not recognized 10184 # So say no if there are warnings 10185 if test ! -s out/conftest.err; then 10186 lt_cv_prog_compiler_c_o_CXX=yes 10187 fi 10188 fi 10189 chmod u+w . 10190 $rm conftest* out/* 10191 rmdir out 10192 cd .. 10193 rmdir conftest 10194 $rm conftest* 10195 10196fi 10197echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 10198echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 10199 10200 10201hard_links="nottested" 10202if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 10203 # do not overwrite the value of need_locks provided by the user 10204 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10205echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10206 hard_links=yes 10207 $rm conftest* 10208 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10209 touch conftest.a 10210 ln conftest.a conftest.b 2>&5 || hard_links=no 10211 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10212 echo "$as_me:$LINENO: result: $hard_links" >&5 10213echo "${ECHO_T}$hard_links" >&6 10214 if test "$hard_links" = no; then 10215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10216echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10217 need_locks=warn 10218 fi 10219else 10220 need_locks=no 10221fi 10222 10223echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10224echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10225 10226 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10227 case $host_os in 10228 aix4* | aix5*) 10229 # If we're using GNU nm, then we don't want the "-C" option. 10230 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10231 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10232 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' 10233 else 10234 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' 10235 fi 10236 ;; 10237 pw32*) 10238 export_symbols_cmds_CXX="$ltdll_cmds" 10239 ;; 10240 cygwin* | mingw*) 10241 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10242 ;; 10243 *) 10244 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10245 ;; 10246 esac 10247 10248echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10249echo "${ECHO_T}$ld_shlibs_CXX" >&6 10250test "$ld_shlibs_CXX" = 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_CXX" in 10261x|xyes) 10262 # Assume -lc should be added 10263 archive_cmds_need_lc_CXX=yes 10264 10265 if test "$enable_shared" = yes && test "$GCC" = yes; then 10266 case $archive_cmds_CXX 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_CXX 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_CXX 10295 allow_undefined_flag_CXX= 10296 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10297 (eval $archive_cmds_CXX 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_CXX=no 10303 else 10304 archive_cmds_need_lc_CXX=yes 10305 fi 10306 allow_undefined_flag_CXX=$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_CXX" >&5 10312echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 10313 ;; 10314 esac 10315 fi 10316 ;; 10317esac 10318 10319echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10320echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 10321hardcode_action_CXX= 10322if test -n "$hardcode_libdir_flag_spec_CXX" || \ 10323 test -n "$runpath_var CXX" || \ 10324 test "X$hardcode_automatic_CXX"="Xyes" ; then 10325 10326 # We can hardcode non-existant directories. 10327 if test "$hardcode_direct_CXX" != no && 10328 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10329 # have to relink, otherwise we might link with an installed library 10330 # when we should be linking with a yet-to-be-installed one 10331 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 10332 test "$hardcode_minus_L_CXX" != no; then 10333 # Linking always hardcodes the temporary library directory. 10334 hardcode_action_CXX=relink 10335 else 10336 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10337 hardcode_action_CXX=immediate 10338 fi 10339else 10340 # We cannot hardcode anything, or else we can only hardcode existing 10341 # directories. 10342 hardcode_action_CXX=unsupported 10343fi 10344echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 10345echo "${ECHO_T}$hardcode_action_CXX" >&6 10346 10347if test "$hardcode_action_CXX" = relink; then 10348 # Fast installation is not supported 10349 enable_fast_install=no 10350elif test "$shlibpath_overrides_runpath" = yes || 10351 test "$enable_shared" = no; then 10352 # Fast installation is not necessary 10353 enable_fast_install=needless 10354fi 10355 10356striplib= 10357old_striplib= 10358echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10359echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 10360if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10361 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10362 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10363 echo "$as_me:$LINENO: result: yes" >&5 10364echo "${ECHO_T}yes" >&6 10365else 10366# FIXME - insert some real tests, host_os isn't really good enough 10367 case $host_os in 10368 darwin*) 10369 if test -n "$STRIP" ; then 10370 striplib="$STRIP -x" 10371 echo "$as_me:$LINENO: result: yes" >&5 10372echo "${ECHO_T}yes" >&6 10373 else 10374 echo "$as_me:$LINENO: result: no" >&5 10375echo "${ECHO_T}no" >&6 10376fi 10377 ;; 10378 *) 10379 echo "$as_me:$LINENO: result: no" >&5 10380echo "${ECHO_T}no" >&6 10381 ;; 10382 esac 10383fi 10384 10385echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10386echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 10387library_names_spec= 10388libname_spec='lib$name' 10389soname_spec= 10390shrext=".so" 10391postinstall_cmds= 10392postuninstall_cmds= 10393finish_cmds= 10394finish_eval= 10395shlibpath_var= 10396shlibpath_overrides_runpath=unknown 10397version_type=none 10398dynamic_linker="$host_os ld.so" 10399sys_lib_dlsearch_path_spec="/lib /usr/lib" 10400if test "$GCC" = yes; then 10401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10402 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10403 # if the path contains ";" then we assume it to be the separator 10404 # otherwise default to the standard path separator (i.e. ":") - it is 10405 # assumed that no part of a normal pathname contains ";" but that should 10406 # okay in the real world where ";" in dirpaths is itself problematic. 10407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10408 else 10409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10410 fi 10411else 10412 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10413fi 10414need_lib_prefix=unknown 10415hardcode_into_libs=no 10416 10417# when you set need_version to no, make sure it does not cause -set_version 10418# flags to be left without arguments 10419need_version=unknown 10420 10421case $host_os in 10422aix3*) 10423 version_type=linux 10424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10425 shlibpath_var=LIBPATH 10426 10427 # AIX 3 has no versioning support, so we append a major version to the name. 10428 soname_spec='${libname}${release}${shared_ext}$major' 10429 ;; 10430 10431aix4* | aix5*) 10432 version_type=linux 10433 need_lib_prefix=no 10434 need_version=no 10435 hardcode_into_libs=yes 10436 if test "$host_cpu" = ia64; then 10437 # AIX 5 supports IA64 10438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10439 shlibpath_var=LD_LIBRARY_PATH 10440 else 10441 # With GCC up to 2.95.x, collect2 would create an import file 10442 # for dependence libraries. The import file would start with 10443 # the line `#! .'. This would cause the generated library to 10444 # depend on `.', always an invalid library. This was fixed in 10445 # development snapshots of GCC prior to 3.0. 10446 case $host_os in 10447 aix4 | aix4.[01] | aix4.[01].*) 10448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10449 echo ' yes ' 10450 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10451 : 10452 else 10453 can_build_shared=no 10454 fi 10455 ;; 10456 esac 10457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10458 # soname into executable. Probably we can add versioning support to 10459 # collect2, so additional links can be useful in future. 10460 if test "$aix_use_runtimelinking" = yes; then 10461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10462 # instead of lib<name>.a to let people know that these are not 10463 # typical AIX shared libraries. 10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10465 else 10466 # We preserve .a as extension for shared libraries through AIX4.2 10467 # and later when we are not doing run time linking. 10468 library_names_spec='${libname}${release}.a $libname.a' 10469 soname_spec='${libname}${release}${shared_ext}$major' 10470 fi 10471 shlibpath_var=LIBPATH 10472 fi 10473 ;; 10474 10475amigaos*) 10476 library_names_spec='$libname.ixlibrary $libname.a' 10477 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10478 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' 10479 ;; 10480 10481beos*) 10482 library_names_spec='${libname}${shared_ext}' 10483 dynamic_linker="$host_os ld.so" 10484 shlibpath_var=LIBRARY_PATH 10485 ;; 10486 10487bsdi4*) 10488 version_type=linux 10489 need_version=no 10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10491 soname_spec='${libname}${release}${shared_ext}$major' 10492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10493 shlibpath_var=LD_LIBRARY_PATH 10494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10496 # the default ld.so.conf also contains /usr/contrib/lib and 10497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10498 # libtool to hard-code these into programs 10499 ;; 10500 10501cygwin* | mingw* | pw32*) 10502 version_type=windows 10503 shrext=".dll" 10504 need_version=no 10505 need_lib_prefix=no 10506 10507 case $GCC,$host_os in 10508 yes,cygwin* | yes,mingw* | yes,pw32*) 10509 library_names_spec='$libname.dll.a' 10510 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10511 postinstall_cmds='base_file=`basename \${file}`~ 10512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10513 dldir=$destdir/`dirname \$dlpath`~ 10514 test -d \$dldir || mkdir -p \$dldir~ 10515 $install_prog $dir/$dlname \$dldir/$dlname' 10516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10517 dlpath=$dir/\$dldll~ 10518 $rm \$dlpath' 10519 shlibpath_overrides_runpath=yes 10520 10521 case $host_os in 10522 cygwin*) 10523 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10525 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 10526 ;; 10527 mingw*) 10528 # MinGW DLLs use traditional 'lib' prefix 10529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10531 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10532 # It is most probably a Windows format PATH printed by 10533 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10534 # path with ; separators, and with drive letters. We can handle the 10535 # drive letters (cygwin fileutils understands them), so leave them, 10536 # especially as we might pass files found there to a mingw objdump, 10537 # which wouldn't understand a cygwinified path. Ahh. 10538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10539 else 10540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10541 fi 10542 ;; 10543 pw32*) 10544 # pw32 DLLs use 'pw' prefix rather than 'lib' 10545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 10546 ;; 10547 esac 10548 ;; 10549 10550 *) 10551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10552 ;; 10553 esac 10554 dynamic_linker='Win32 ld.exe' 10555 # FIXME: first we should search . and the directory the executable is in 10556 shlibpath_var=PATH 10557 ;; 10558 10559darwin* | rhapsody*) 10560 dynamic_linker="$host_os dyld" 10561 version_type=darwin 10562 need_lib_prefix=no 10563 need_version=no 10564 # FIXME: Relying on posixy $() will cause problems for 10565 # cross-compilation, but unfortunately the echo tests do not 10566 # yet detect zsh echo's removal of \ escapes. 10567 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10568 soname_spec='${libname}${release}${major}$shared_ext' 10569 shlibpath_overrides_runpath=yes 10570 shlibpath_var=DYLD_LIBRARY_PATH 10571 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 10572 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10573 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 10574 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"` 10575 fi 10576 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10577 ;; 10578 10579dgux*) 10580 version_type=linux 10581 need_lib_prefix=no 10582 need_version=no 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10584 soname_spec='${libname}${release}${shared_ext}$major' 10585 shlibpath_var=LD_LIBRARY_PATH 10586 ;; 10587 10588freebsd1*) 10589 dynamic_linker=no 10590 ;; 10591 10592freebsd*) 10593 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 10594 version_type=freebsd-$objformat 10595 case $version_type in 10596 freebsd-elf*) 10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10598 need_version=no 10599 need_lib_prefix=no 10600 ;; 10601 freebsd-*) 10602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10603 need_version=yes 10604 ;; 10605 esac 10606 shlibpath_var=LD_LIBRARY_PATH 10607 case $host_os in 10608 freebsd2*) 10609 shlibpath_overrides_runpath=yes 10610 ;; 10611 freebsd3.01* | freebsdelf3.01*) 10612 shlibpath_overrides_runpath=yes 10613 hardcode_into_libs=yes 10614 ;; 10615 *) # from 3.2 on 10616 shlibpath_overrides_runpath=no 10617 hardcode_into_libs=yes 10618 ;; 10619 esac 10620 ;; 10621 10622gnu*) 10623 version_type=linux 10624 need_lib_prefix=no 10625 need_version=no 10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10627 soname_spec='${libname}${release}${shared_ext}$major' 10628 shlibpath_var=LD_LIBRARY_PATH 10629 hardcode_into_libs=yes 10630 ;; 10631 10632hpux9* | hpux10* | hpux11*) 10633 # Give a soname corresponding to the major version so that dld.sl refuses to 10634 # link against other versions. 10635 version_type=sunos 10636 need_lib_prefix=no 10637 need_version=no 10638 case "$host_cpu" in 10639 ia64*) 10640 shrext='.so' 10641 hardcode_into_libs=yes 10642 dynamic_linker="$host_os dld.so" 10643 shlibpath_var=LD_LIBRARY_PATH 10644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10646 soname_spec='${libname}${release}${shared_ext}$major' 10647 if test "X$HPUX_IA64_MODE" = X32; then 10648 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10649 else 10650 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10651 fi 10652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10653 ;; 10654 hppa*64*) 10655 shrext='.sl' 10656 hardcode_into_libs=yes 10657 dynamic_linker="$host_os dld.sl" 10658 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10661 soname_spec='${libname}${release}${shared_ext}$major' 10662 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10664 ;; 10665 *) 10666 shrext='.sl' 10667 dynamic_linker="$host_os dld.sl" 10668 shlibpath_var=SHLIB_PATH 10669 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10671 soname_spec='${libname}${release}${shared_ext}$major' 10672 ;; 10673 esac 10674 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10675 postinstall_cmds='chmod 555 $lib' 10676 ;; 10677 10678irix5* | irix6* | nonstopux*) 10679 case $host_os in 10680 nonstopux*) version_type=nonstopux ;; 10681 *) 10682 if test "$lt_cv_prog_gnu_ld" = yes; then 10683 version_type=linux 10684 else 10685 version_type=irix 10686 fi ;; 10687 esac 10688 need_lib_prefix=no 10689 need_version=no 10690 soname_spec='${libname}${release}${shared_ext}$major' 10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10692 case $host_os in 10693 irix5* | nonstopux*) 10694 libsuff= shlibsuff= 10695 ;; 10696 *) 10697 case $LD in # libtool.m4 will add one of these switches to LD 10698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10699 libsuff= shlibsuff= libmagic=32-bit;; 10700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10701 libsuff=32 shlibsuff=N32 libmagic=N32;; 10702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10703 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10704 *) libsuff= shlibsuff= libmagic=never-match;; 10705 esac 10706 ;; 10707 esac 10708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10709 shlibpath_overrides_runpath=no 10710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10712 hardcode_into_libs=yes 10713 ;; 10714 10715# No shared lib support for Linux oldld, aout, or coff. 10716linux*oldld* | linux*aout* | linux*coff*) 10717 dynamic_linker=no 10718 ;; 10719 10720# This must be Linux ELF. 10721linux*) 10722 version_type=linux 10723 need_lib_prefix=no 10724 need_version=no 10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10726 soname_spec='${libname}${release}${shared_ext}$major' 10727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10728 shlibpath_var=LD_LIBRARY_PATH 10729 shlibpath_overrides_runpath=no 10730 # This implies no fast_install, which is unacceptable. 10731 # Some rework will be needed to allow for fast_install 10732 # before this can be enabled. 10733 hardcode_into_libs=yes 10734 10735 # We used to test for /lib/ld.so.1 and disable shared libraries on 10736 # powerpc, because MkLinux only supported shared libraries with the 10737 # GNU dynamic linker. Since this was broken with cross compilers, 10738 # most powerpc-linux boxes support dynamic linking these days and 10739 # people can always --disable-shared, the test was removed, and we 10740 # assume the GNU/Linux dynamic linker is in use. 10741 dynamic_linker='GNU/Linux ld.so' 10742 ;; 10743 10744netbsd*) 10745 version_type=sunos 10746 need_lib_prefix=no 10747 need_version=no 10748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10751 dynamic_linker='NetBSD (a.out) ld.so' 10752 else 10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 10754 soname_spec='${libname}${release}${shared_ext}$major' 10755 dynamic_linker='NetBSD ld.elf_so' 10756 fi 10757 shlibpath_var=LD_LIBRARY_PATH 10758 shlibpath_overrides_runpath=yes 10759 hardcode_into_libs=yes 10760 ;; 10761 10762newsos6) 10763 version_type=linux 10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10765 shlibpath_var=LD_LIBRARY_PATH 10766 shlibpath_overrides_runpath=yes 10767 ;; 10768 10769nto-qnx) 10770 version_type=linux 10771 need_lib_prefix=no 10772 need_version=no 10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10774 soname_spec='${libname}${release}${shared_ext}$major' 10775 shlibpath_var=LD_LIBRARY_PATH 10776 shlibpath_overrides_runpath=yes 10777 ;; 10778 10779openbsd*) 10780 version_type=sunos 10781 need_lib_prefix=no 10782 need_version=no 10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10785 shlibpath_var=LD_LIBRARY_PATH 10786 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10787 case $host_os in 10788 openbsd2.[89] | openbsd2.[89].*) 10789 shlibpath_overrides_runpath=no 10790 ;; 10791 *) 10792 shlibpath_overrides_runpath=yes 10793 ;; 10794 esac 10795 else 10796 shlibpath_overrides_runpath=yes 10797 fi 10798 ;; 10799 10800os2*) 10801 libname_spec='$name' 10802 shrext=".dll" 10803 need_lib_prefix=no 10804 library_names_spec='$libname${shared_ext} $libname.a' 10805 dynamic_linker='OS/2 ld.exe' 10806 shlibpath_var=LIBPATH 10807 ;; 10808 10809osf3* | osf4* | osf5*) 10810 version_type=osf 10811 need_lib_prefix=no 10812 need_version=no 10813 soname_spec='${libname}${release}${shared_ext}$major' 10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10815 shlibpath_var=LD_LIBRARY_PATH 10816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10818 ;; 10819 10820sco3.2v5*) 10821 version_type=osf 10822 soname_spec='${libname}${release}${shared_ext}$major' 10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10824 shlibpath_var=LD_LIBRARY_PATH 10825 ;; 10826 10827solaris*) 10828 version_type=linux 10829 need_lib_prefix=no 10830 need_version=no 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 shlibpath_var=LD_LIBRARY_PATH 10834 shlibpath_overrides_runpath=yes 10835 hardcode_into_libs=yes 10836 # ldd complains unless libraries are executable 10837 postinstall_cmds='chmod +x $lib' 10838 ;; 10839 10840sunos4*) 10841 version_type=sunos 10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10843 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10844 shlibpath_var=LD_LIBRARY_PATH 10845 shlibpath_overrides_runpath=yes 10846 if test "$with_gnu_ld" = yes; then 10847 need_lib_prefix=no 10848 fi 10849 need_version=yes 10850 ;; 10851 10852sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10853 version_type=linux 10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10855 soname_spec='${libname}${release}${shared_ext}$major' 10856 shlibpath_var=LD_LIBRARY_PATH 10857 case $host_vendor in 10858 sni) 10859 shlibpath_overrides_runpath=no 10860 need_lib_prefix=no 10861 export_dynamic_flag_spec='${wl}-Blargedynsym' 10862 runpath_var=LD_RUN_PATH 10863 ;; 10864 siemens) 10865 need_lib_prefix=no 10866 ;; 10867 motorola) 10868 need_lib_prefix=no 10869 need_version=no 10870 shlibpath_overrides_runpath=no 10871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10872 ;; 10873 esac 10874 ;; 10875 10876sysv4*MP*) 10877 if test -d /usr/nec ;then 10878 version_type=linux 10879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10880 soname_spec='$libname${shared_ext}.$major' 10881 shlibpath_var=LD_LIBRARY_PATH 10882 fi 10883 ;; 10884 10885uts4*) 10886 version_type=linux 10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10888 soname_spec='${libname}${release}${shared_ext}$major' 10889 shlibpath_var=LD_LIBRARY_PATH 10890 ;; 10891 10892*) 10893 dynamic_linker=no 10894 ;; 10895esac 10896echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10897echo "${ECHO_T}$dynamic_linker" >&6 10898test "$dynamic_linker" = no && can_build_shared=no 10899 10900if test "x$enable_dlopen" != xyes; then 10901 enable_dlopen=unknown 10902 enable_dlopen_self=unknown 10903 enable_dlopen_self_static=unknown 10904else 10905 lt_cv_dlopen=no 10906 lt_cv_dlopen_libs= 10907 10908 case $host_os in 10909 beos*) 10910 lt_cv_dlopen="load_add_on" 10911 lt_cv_dlopen_libs= 10912 lt_cv_dlopen_self=yes 10913 ;; 10914 10915 mingw* | pw32*) 10916 lt_cv_dlopen="LoadLibrary" 10917 lt_cv_dlopen_libs= 10918 ;; 10919 10920 cygwin*) 10921 lt_cv_dlopen="dlopen" 10922 lt_cv_dlopen_libs= 10923 ;; 10924 10925 darwin*) 10926 # if libdl is installed we need to link against it 10927 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10928echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10929if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10930 echo $ECHO_N "(cached) $ECHO_C" >&6 10931else 10932 ac_check_lib_save_LIBS=$LIBS 10933LIBS="-ldl $LIBS" 10934cat >conftest.$ac_ext <<_ACEOF 10935#line $LINENO "configure" 10936#include "confdefs.h" 10937 10938/* Override any gcc2 internal prototype to avoid an error. */ 10939#ifdef __cplusplus 10940extern "C" 10941#endif 10942/* We use char because int might match the return type of a gcc2 10943 builtin and then its argument prototype would still apply. */ 10944char dlopen (); 10945#ifdef F77_DUMMY_MAIN 10946# ifdef __cplusplus 10947 extern "C" 10948# endif 10949 int F77_DUMMY_MAIN() { return 1; } 10950#endif 10951int 10952main () 10953{ 10954dlopen (); 10955 ; 10956 return 0; 10957} 10958_ACEOF 10959rm -f conftest.$ac_objext conftest$ac_exeext 10960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10961 (eval $ac_link) 2>&5 10962 ac_status=$? 10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10964 (exit $ac_status); } && 10965 { ac_try='test -s conftest$ac_exeext' 10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10967 (eval $ac_try) 2>&5 10968 ac_status=$? 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10970 (exit $ac_status); }; }; then 10971 ac_cv_lib_dl_dlopen=yes 10972else 10973 echo "$as_me: failed program was:" >&5 10974cat conftest.$ac_ext >&5 10975ac_cv_lib_dl_dlopen=no 10976fi 10977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10978LIBS=$ac_check_lib_save_LIBS 10979fi 10980echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10981echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10982if test $ac_cv_lib_dl_dlopen = yes; then 10983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10984else 10985 10986 lt_cv_dlopen="dyld" 10987 lt_cv_dlopen_libs= 10988 lt_cv_dlopen_self=yes 10989 10990fi 10991 10992 ;; 10993 10994 *) 10995 echo "$as_me:$LINENO: checking for shl_load" >&5 10996echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 10997if test "${ac_cv_func_shl_load+set}" = set; then 10998 echo $ECHO_N "(cached) $ECHO_C" >&6 10999else 11000 cat >conftest.$ac_ext <<_ACEOF 11001#line $LINENO "configure" 11002#include "confdefs.h" 11003/* System header to define __stub macros and hopefully few prototypes, 11004 which can conflict with char shl_load (); below. */ 11005#include <assert.h> 11006/* Override any gcc2 internal prototype to avoid an error. */ 11007#ifdef __cplusplus 11008extern "C" 11009#endif 11010/* We use char because int might match the return type of a gcc2 11011 builtin and then its argument prototype would still apply. */ 11012char shl_load (); 11013char (*f) (); 11014 11015#ifdef F77_DUMMY_MAIN 11016# ifdef __cplusplus 11017 extern "C" 11018# endif 11019 int F77_DUMMY_MAIN() { return 1; } 11020#endif 11021int 11022main () 11023{ 11024/* The GNU C library defines this for functions which it implements 11025 to always fail with ENOSYS. Some functions are actually named 11026 something starting with __ and the normal name is an alias. */ 11027#if defined (__stub_shl_load) || defined (__stub___shl_load) 11028choke me 11029#else 11030f = shl_load; 11031#endif 11032 11033 ; 11034 return 0; 11035} 11036_ACEOF 11037rm -f conftest.$ac_objext conftest$ac_exeext 11038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11039 (eval $ac_link) 2>&5 11040 ac_status=$? 11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11042 (exit $ac_status); } && 11043 { ac_try='test -s conftest$ac_exeext' 11044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11045 (eval $ac_try) 2>&5 11046 ac_status=$? 11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11048 (exit $ac_status); }; }; then 11049 ac_cv_func_shl_load=yes 11050else 11051 echo "$as_me: failed program was:" >&5 11052cat conftest.$ac_ext >&5 11053ac_cv_func_shl_load=no 11054fi 11055rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11056fi 11057echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11058echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11059if test $ac_cv_func_shl_load = yes; then 11060 lt_cv_dlopen="shl_load" 11061else 11062 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11063echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11064if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11065 echo $ECHO_N "(cached) $ECHO_C" >&6 11066else 11067 ac_check_lib_save_LIBS=$LIBS 11068LIBS="-ldld $LIBS" 11069cat >conftest.$ac_ext <<_ACEOF 11070#line $LINENO "configure" 11071#include "confdefs.h" 11072 11073/* Override any gcc2 internal prototype to avoid an error. */ 11074#ifdef __cplusplus 11075extern "C" 11076#endif 11077/* We use char because int might match the return type of a gcc2 11078 builtin and then its argument prototype would still apply. */ 11079char shl_load (); 11080#ifdef F77_DUMMY_MAIN 11081# ifdef __cplusplus 11082 extern "C" 11083# endif 11084 int F77_DUMMY_MAIN() { return 1; } 11085#endif 11086int 11087main () 11088{ 11089shl_load (); 11090 ; 11091 return 0; 11092} 11093_ACEOF 11094rm -f conftest.$ac_objext conftest$ac_exeext 11095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11096 (eval $ac_link) 2>&5 11097 ac_status=$? 11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11099 (exit $ac_status); } && 11100 { ac_try='test -s conftest$ac_exeext' 11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11102 (eval $ac_try) 2>&5 11103 ac_status=$? 11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11105 (exit $ac_status); }; }; then 11106 ac_cv_lib_dld_shl_load=yes 11107else 11108 echo "$as_me: failed program was:" >&5 11109cat conftest.$ac_ext >&5 11110ac_cv_lib_dld_shl_load=no 11111fi 11112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11113LIBS=$ac_check_lib_save_LIBS 11114fi 11115echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11116echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11117if test $ac_cv_lib_dld_shl_load = yes; then 11118 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11119else 11120 echo "$as_me:$LINENO: checking for dlopen" >&5 11121echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11122if test "${ac_cv_func_dlopen+set}" = set; then 11123 echo $ECHO_N "(cached) $ECHO_C" >&6 11124else 11125 cat >conftest.$ac_ext <<_ACEOF 11126#line $LINENO "configure" 11127#include "confdefs.h" 11128/* System header to define __stub macros and hopefully few prototypes, 11129 which can conflict with char dlopen (); below. */ 11130#include <assert.h> 11131/* Override any gcc2 internal prototype to avoid an error. */ 11132#ifdef __cplusplus 11133extern "C" 11134#endif 11135/* We use char because int might match the return type of a gcc2 11136 builtin and then its argument prototype would still apply. */ 11137char dlopen (); 11138char (*f) (); 11139 11140#ifdef F77_DUMMY_MAIN 11141# ifdef __cplusplus 11142 extern "C" 11143# endif 11144 int F77_DUMMY_MAIN() { return 1; } 11145#endif 11146int 11147main () 11148{ 11149/* The GNU C library defines this for functions which it implements 11150 to always fail with ENOSYS. Some functions are actually named 11151 something starting with __ and the normal name is an alias. */ 11152#if defined (__stub_dlopen) || defined (__stub___dlopen) 11153choke me 11154#else 11155f = dlopen; 11156#endif 11157 11158 ; 11159 return 0; 11160} 11161_ACEOF 11162rm -f conftest.$ac_objext conftest$ac_exeext 11163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11164 (eval $ac_link) 2>&5 11165 ac_status=$? 11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11167 (exit $ac_status); } && 11168 { ac_try='test -s conftest$ac_exeext' 11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11170 (eval $ac_try) 2>&5 11171 ac_status=$? 11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11173 (exit $ac_status); }; }; then 11174 ac_cv_func_dlopen=yes 11175else 11176 echo "$as_me: failed program was:" >&5 11177cat conftest.$ac_ext >&5 11178ac_cv_func_dlopen=no 11179fi 11180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11181fi 11182echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11183echo "${ECHO_T}$ac_cv_func_dlopen" >&6 11184if test $ac_cv_func_dlopen = yes; then 11185 lt_cv_dlopen="dlopen" 11186else 11187 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11188echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11189if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11190 echo $ECHO_N "(cached) $ECHO_C" >&6 11191else 11192 ac_check_lib_save_LIBS=$LIBS 11193LIBS="-ldl $LIBS" 11194cat >conftest.$ac_ext <<_ACEOF 11195#line $LINENO "configure" 11196#include "confdefs.h" 11197 11198/* Override any gcc2 internal prototype to avoid an error. */ 11199#ifdef __cplusplus 11200extern "C" 11201#endif 11202/* We use char because int might match the return type of a gcc2 11203 builtin and then its argument prototype would still apply. */ 11204char dlopen (); 11205#ifdef F77_DUMMY_MAIN 11206# ifdef __cplusplus 11207 extern "C" 11208# endif 11209 int F77_DUMMY_MAIN() { return 1; } 11210#endif 11211int 11212main () 11213{ 11214dlopen (); 11215 ; 11216 return 0; 11217} 11218_ACEOF 11219rm -f conftest.$ac_objext conftest$ac_exeext 11220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11221 (eval $ac_link) 2>&5 11222 ac_status=$? 11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11224 (exit $ac_status); } && 11225 { ac_try='test -s conftest$ac_exeext' 11226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11227 (eval $ac_try) 2>&5 11228 ac_status=$? 11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11230 (exit $ac_status); }; }; then 11231 ac_cv_lib_dl_dlopen=yes 11232else 11233 echo "$as_me: failed program was:" >&5 11234cat conftest.$ac_ext >&5 11235ac_cv_lib_dl_dlopen=no 11236fi 11237rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11238LIBS=$ac_check_lib_save_LIBS 11239fi 11240echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11241echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11242if test $ac_cv_lib_dl_dlopen = yes; then 11243 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11244else 11245 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11246echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 11247if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11248 echo $ECHO_N "(cached) $ECHO_C" >&6 11249else 11250 ac_check_lib_save_LIBS=$LIBS 11251LIBS="-lsvld $LIBS" 11252cat >conftest.$ac_ext <<_ACEOF 11253#line $LINENO "configure" 11254#include "confdefs.h" 11255 11256/* Override any gcc2 internal prototype to avoid an error. */ 11257#ifdef __cplusplus 11258extern "C" 11259#endif 11260/* We use char because int might match the return type of a gcc2 11261 builtin and then its argument prototype would still apply. */ 11262char dlopen (); 11263#ifdef F77_DUMMY_MAIN 11264# ifdef __cplusplus 11265 extern "C" 11266# endif 11267 int F77_DUMMY_MAIN() { return 1; } 11268#endif 11269int 11270main () 11271{ 11272dlopen (); 11273 ; 11274 return 0; 11275} 11276_ACEOF 11277rm -f conftest.$ac_objext conftest$ac_exeext 11278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11279 (eval $ac_link) 2>&5 11280 ac_status=$? 11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11282 (exit $ac_status); } && 11283 { ac_try='test -s conftest$ac_exeext' 11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11285 (eval $ac_try) 2>&5 11286 ac_status=$? 11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11288 (exit $ac_status); }; }; then 11289 ac_cv_lib_svld_dlopen=yes 11290else 11291 echo "$as_me: failed program was:" >&5 11292cat conftest.$ac_ext >&5 11293ac_cv_lib_svld_dlopen=no 11294fi 11295rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11296LIBS=$ac_check_lib_save_LIBS 11297fi 11298echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11299echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 11300if test $ac_cv_lib_svld_dlopen = yes; then 11301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11302else 11303 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11304echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 11305if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11306 echo $ECHO_N "(cached) $ECHO_C" >&6 11307else 11308 ac_check_lib_save_LIBS=$LIBS 11309LIBS="-ldld $LIBS" 11310cat >conftest.$ac_ext <<_ACEOF 11311#line $LINENO "configure" 11312#include "confdefs.h" 11313 11314/* Override any gcc2 internal prototype to avoid an error. */ 11315#ifdef __cplusplus 11316extern "C" 11317#endif 11318/* We use char because int might match the return type of a gcc2 11319 builtin and then its argument prototype would still apply. */ 11320char dld_link (); 11321#ifdef F77_DUMMY_MAIN 11322# ifdef __cplusplus 11323 extern "C" 11324# endif 11325 int F77_DUMMY_MAIN() { return 1; } 11326#endif 11327int 11328main () 11329{ 11330dld_link (); 11331 ; 11332 return 0; 11333} 11334_ACEOF 11335rm -f conftest.$ac_objext conftest$ac_exeext 11336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11337 (eval $ac_link) 2>&5 11338 ac_status=$? 11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11340 (exit $ac_status); } && 11341 { ac_try='test -s conftest$ac_exeext' 11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11343 (eval $ac_try) 2>&5 11344 ac_status=$? 11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11346 (exit $ac_status); }; }; then 11347 ac_cv_lib_dld_dld_link=yes 11348else 11349 echo "$as_me: failed program was:" >&5 11350cat conftest.$ac_ext >&5 11351ac_cv_lib_dld_dld_link=no 11352fi 11353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11354LIBS=$ac_check_lib_save_LIBS 11355fi 11356echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11357echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11358if test $ac_cv_lib_dld_dld_link = yes; then 11359 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11360fi 11361 11362 11363fi 11364 11365 11366fi 11367 11368 11369fi 11370 11371 11372fi 11373 11374 11375fi 11376 11377 ;; 11378 esac 11379 11380 if test "x$lt_cv_dlopen" != xno; then 11381 enable_dlopen=yes 11382 else 11383 enable_dlopen=no 11384 fi 11385 11386 case $lt_cv_dlopen in 11387 dlopen) 11388 save_CPPFLAGS="$CPPFLAGS" 11389 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11390 11391 save_LDFLAGS="$LDFLAGS" 11392 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11393 11394 save_LIBS="$LIBS" 11395 LIBS="$lt_cv_dlopen_libs $LIBS" 11396 11397 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11398echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11399if test "${lt_cv_dlopen_self+set}" = set; then 11400 echo $ECHO_N "(cached) $ECHO_C" >&6 11401else 11402 if test "$cross_compiling" = yes; then : 11403 lt_cv_dlopen_self=cross 11404else 11405 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11406 lt_status=$lt_dlunknown 11407 cat > conftest.$ac_ext <<EOF 11408#line 11408 "configure" 11409#include "confdefs.h" 11410 11411#if HAVE_DLFCN_H 11412#include <dlfcn.h> 11413#endif 11414 11415#include <stdio.h> 11416 11417#ifdef RTLD_GLOBAL 11418# define LT_DLGLOBAL RTLD_GLOBAL 11419#else 11420# ifdef DL_GLOBAL 11421# define LT_DLGLOBAL DL_GLOBAL 11422# else 11423# define LT_DLGLOBAL 0 11424# endif 11425#endif 11426 11427/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11428 find out it does not work in some platform. */ 11429#ifndef LT_DLLAZY_OR_NOW 11430# ifdef RTLD_LAZY 11431# define LT_DLLAZY_OR_NOW RTLD_LAZY 11432# else 11433# ifdef DL_LAZY 11434# define LT_DLLAZY_OR_NOW DL_LAZY 11435# else 11436# ifdef RTLD_NOW 11437# define LT_DLLAZY_OR_NOW RTLD_NOW 11438# else 11439# ifdef DL_NOW 11440# define LT_DLLAZY_OR_NOW DL_NOW 11441# else 11442# define LT_DLLAZY_OR_NOW 0 11443# endif 11444# endif 11445# endif 11446# endif 11447#endif 11448 11449#ifdef __cplusplus 11450extern "C" void exit (int); 11451#endif 11452 11453void fnord() { int i=42;} 11454int main () 11455{ 11456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11457 int status = $lt_dlunknown; 11458 11459 if (self) 11460 { 11461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11462 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11463 /* dlclose (self); */ 11464 } 11465 11466 exit (status); 11467} 11468EOF 11469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11470 (eval $ac_link) 2>&5 11471 ac_status=$? 11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11473 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11474 (./conftest; exit; ) 2>/dev/null 11475 lt_status=$? 11476 case x$lt_status in 11477 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11478 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11479 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 11480 esac 11481 else : 11482 # compilation failed 11483 lt_cv_dlopen_self=no 11484 fi 11485fi 11486rm -fr conftest* 11487 11488 11489fi 11490echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11491echo "${ECHO_T}$lt_cv_dlopen_self" >&6 11492 11493 if test "x$lt_cv_dlopen_self" = xyes; then 11494 LDFLAGS="$LDFLAGS $link_static_flag" 11495 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11496echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 11497if test "${lt_cv_dlopen_self_static+set}" = set; then 11498 echo $ECHO_N "(cached) $ECHO_C" >&6 11499else 11500 if test "$cross_compiling" = yes; then : 11501 lt_cv_dlopen_self_static=cross 11502else 11503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11504 lt_status=$lt_dlunknown 11505 cat > conftest.$ac_ext <<EOF 11506#line 11506 "configure" 11507#include "confdefs.h" 11508 11509#if HAVE_DLFCN_H 11510#include <dlfcn.h> 11511#endif 11512 11513#include <stdio.h> 11514 11515#ifdef RTLD_GLOBAL 11516# define LT_DLGLOBAL RTLD_GLOBAL 11517#else 11518# ifdef DL_GLOBAL 11519# define LT_DLGLOBAL DL_GLOBAL 11520# else 11521# define LT_DLGLOBAL 0 11522# endif 11523#endif 11524 11525/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11526 find out it does not work in some platform. */ 11527#ifndef LT_DLLAZY_OR_NOW 11528# ifdef RTLD_LAZY 11529# define LT_DLLAZY_OR_NOW RTLD_LAZY 11530# else 11531# ifdef DL_LAZY 11532# define LT_DLLAZY_OR_NOW DL_LAZY 11533# else 11534# ifdef RTLD_NOW 11535# define LT_DLLAZY_OR_NOW RTLD_NOW 11536# else 11537# ifdef DL_NOW 11538# define LT_DLLAZY_OR_NOW DL_NOW 11539# else 11540# define LT_DLLAZY_OR_NOW 0 11541# endif 11542# endif 11543# endif 11544# endif 11545#endif 11546 11547#ifdef __cplusplus 11548extern "C" void exit (int); 11549#endif 11550 11551void fnord() { int i=42;} 11552int main () 11553{ 11554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11555 int status = $lt_dlunknown; 11556 11557 if (self) 11558 { 11559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11561 /* dlclose (self); */ 11562 } 11563 11564 exit (status); 11565} 11566EOF 11567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11568 (eval $ac_link) 2>&5 11569 ac_status=$? 11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11571 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11572 (./conftest; exit; ) 2>/dev/null 11573 lt_status=$? 11574 case x$lt_status in 11575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11577 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 11578 esac 11579 else : 11580 # compilation failed 11581 lt_cv_dlopen_self_static=no 11582 fi 11583fi 11584rm -fr conftest* 11585 11586 11587fi 11588echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11589echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 11590 fi 11591 11592 CPPFLAGS="$save_CPPFLAGS" 11593 LDFLAGS="$save_LDFLAGS" 11594 LIBS="$save_LIBS" 11595 ;; 11596 esac 11597 11598 case $lt_cv_dlopen_self in 11599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11600 *) enable_dlopen_self=unknown ;; 11601 esac 11602 11603 case $lt_cv_dlopen_self_static in 11604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11605 *) enable_dlopen_self_static=unknown ;; 11606 esac 11607fi 11608 11609 11610# The else clause should only fire when bootstrapping the 11611# libtool distribution, otherwise you forgot to ship ltmain.sh 11612# with your package, and you will get complaints that there are 11613# no rules to generate ltmain.sh. 11614if test -f "$ltmain"; then 11615 # See if we are running on zsh, and set the options which allow our commands through 11616 # without removal of \ escapes. 11617 if test -n "${ZSH_VERSION+set}" ; then 11618 setopt NO_GLOB_SUBST 11619 fi 11620 # Now quote all the things that may contain metacharacters while being 11621 # careful not to overquote the AC_SUBSTed values. We take copies of the 11622 # variables and quote the copies for generation of the libtool script. 11623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 11624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11626 deplibs_check_method reload_flag reload_cmds need_locks \ 11627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11628 lt_cv_sys_global_symbol_to_c_name_address \ 11629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11630 old_postinstall_cmds old_postuninstall_cmds \ 11631 compiler_CXX \ 11632 CC_CXX \ 11633 LD_CXX \ 11634 lt_prog_compiler_wl_CXX \ 11635 lt_prog_compiler_pic_CXX \ 11636 lt_prog_compiler_static_CXX \ 11637 lt_prog_compiler_no_builtin_flag_CXX \ 11638 export_dynamic_flag_spec_CXX \ 11639 thread_safe_flag_spec_CXX \ 11640 whole_archive_flag_spec_CXX \ 11641 enable_shared_with_static_runtimes_CXX \ 11642 old_archive_cmds_CXX \ 11643 old_archive_from_new_cmds_CXX \ 11644 predep_objects_CXX \ 11645 postdep_objects_CXX \ 11646 predeps_CXX \ 11647 postdeps_CXX \ 11648 compiler_lib_search_path_CXX \ 11649 archive_cmds_CXX \ 11650 archive_expsym_cmds_CXX \ 11651 postinstall_cmds_CXX \ 11652 postuninstall_cmds_CXX \ 11653 old_archive_from_expsyms_cmds_CXX \ 11654 allow_undefined_flag_CXX \ 11655 no_undefined_flag_CXX \ 11656 export_symbols_cmds_CXX \ 11657 hardcode_libdir_flag_spec_CXX \ 11658 hardcode_libdir_flag_spec_ld_CXX \ 11659 hardcode_libdir_separator_CXX \ 11660 hardcode_automatic_CXX \ 11661 module_cmds_CXX \ 11662 module_expsym_cmds_CXX \ 11663 lt_cv_prog_compiler_c_o_CXX \ 11664 exclude_expsyms_CXX \ 11665 include_expsyms_CXX; do 11666 11667 case $var in 11668 old_archive_cmds_CXX | \ 11669 old_archive_from_new_cmds_CXX | \ 11670 archive_cmds_CXX | \ 11671 archive_expsym_cmds_CXX | \ 11672 module_cmds_CXX | \ 11673 module_expsym_cmds_CXX | \ 11674 old_archive_from_expsyms_cmds_CXX | \ 11675 export_symbols_cmds_CXX | \ 11676 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11677 postinstall_cmds | postuninstall_cmds | \ 11678 old_postinstall_cmds | old_postuninstall_cmds | \ 11679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11680 # Double-quote double-evaled strings. 11681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11682 ;; 11683 *) 11684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11685 ;; 11686 esac 11687 done 11688 11689 case $lt_echo in 11690 *'\$0 --fallback-echo"') 11691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11692 ;; 11693 esac 11694 11695cfgfile="$ofile" 11696 11697 cat <<__EOF__ >> "$cfgfile" 11698# ### BEGIN LIBTOOL TAG CONFIG: $tagname 11699 11700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11701 11702# Shell to use when invoking shell scripts. 11703SHELL=$lt_SHELL 11704 11705# Whether or not to build shared libraries. 11706build_libtool_libs=$enable_shared 11707 11708# Whether or not to build static libraries. 11709build_old_libs=$enable_static 11710 11711# Whether or not to add -lc for building shared libraries. 11712build_libtool_need_lc=$archive_cmds_need_lc_CXX 11713 11714# Whether or not to disallow shared libs when runtime libs are static 11715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 11716 11717# Whether or not to optimize for fast installation. 11718fast_install=$enable_fast_install 11719 11720# The host system. 11721host_alias=$host_alias 11722host=$host 11723 11724# An echo program that does not interpret backslashes. 11725echo=$lt_echo 11726 11727# The archiver. 11728AR=$lt_AR 11729AR_FLAGS=$lt_AR_FLAGS 11730 11731# A C compiler. 11732LTCC=$lt_LTCC 11733 11734# A language-specific compiler. 11735CC=$lt_compiler_CXX 11736 11737# Is the compiler the GNU C compiler? 11738with_gcc=$GCC_CXX 11739 11740# An ERE matcher. 11741EGREP=$lt_EGREP 11742 11743# The linker used to build libraries. 11744LD=$lt_LD_CXX 11745 11746# Whether we need hard or soft links. 11747LN_S=$lt_LN_S 11748 11749# A BSD-compatible nm program. 11750NM=$lt_NM 11751 11752# A symbol stripping program 11753STRIP=$STRIP 11754 11755# Used to examine libraries when file_magic_cmd begins "file" 11756MAGIC_CMD=$MAGIC_CMD 11757 11758# Used on cygwin: DLL creation program. 11759DLLTOOL="$DLLTOOL" 11760 11761# Used on cygwin: object dumper. 11762OBJDUMP="$OBJDUMP" 11763 11764# Used on cygwin: assembler. 11765AS="$AS" 11766 11767# The name of the directory that contains temporary libtool files. 11768objdir=$objdir 11769 11770# How to create reloadable object files. 11771reload_flag=$lt_reload_flag 11772reload_cmds=$lt_reload_cmds 11773 11774# How to pass a linker flag through the compiler. 11775wl=$lt_lt_prog_compiler_wl_CXX 11776 11777# Object file suffix (normally "o"). 11778objext="$ac_objext" 11779 11780# Old archive suffix (normally "a"). 11781libext="$libext" 11782 11783# Shared library suffix (normally ".so"). 11784shrext='$shrext' 11785 11786# Executable file suffix (normally ""). 11787exeext="$exeext" 11788 11789# Additional compiler flags for building library objects. 11790pic_flag=$lt_lt_prog_compiler_pic_CXX 11791pic_mode=$pic_mode 11792 11793# What is the maximum length of a command? 11794max_cmd_len=$lt_cv_sys_max_cmd_len 11795 11796# Does compiler simultaneously support -c and -o options? 11797compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 11798 11799# Must we lock files when doing compilation ? 11800need_locks=$lt_need_locks 11801 11802# Do we need the lib prefix for modules? 11803need_lib_prefix=$need_lib_prefix 11804 11805# Do we need a version for libraries? 11806need_version=$need_version 11807 11808# Whether dlopen is supported. 11809dlopen_support=$enable_dlopen 11810 11811# Whether dlopen of programs is supported. 11812dlopen_self=$enable_dlopen_self 11813 11814# Whether dlopen of statically linked programs is supported. 11815dlopen_self_static=$enable_dlopen_self_static 11816 11817# Compiler flag to prevent dynamic linking. 11818link_static_flag=$lt_lt_prog_compiler_static_CXX 11819 11820# Compiler flag to turn off builtin functions. 11821no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 11822 11823# Compiler flag to allow reflexive dlopens. 11824export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 11825 11826# Compiler flag to generate shared objects directly from archives. 11827whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 11828 11829# Compiler flag to generate thread-safe objects. 11830thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 11831 11832# Library versioning type. 11833version_type=$version_type 11834 11835# Format of library name prefix. 11836libname_spec=$lt_libname_spec 11837 11838# List of archive names. First name is the real one, the rest are links. 11839# The last name is the one that the linker finds with -lNAME. 11840library_names_spec=$lt_library_names_spec 11841 11842# The coded name of the library, if different from the real name. 11843soname_spec=$lt_soname_spec 11844 11845# Commands used to build and install an old-style archive. 11846RANLIB=$lt_RANLIB 11847old_archive_cmds=$lt_old_archive_cmds_CXX 11848old_postinstall_cmds=$lt_old_postinstall_cmds 11849old_postuninstall_cmds=$lt_old_postuninstall_cmds 11850 11851# Create an old-style archive from a shared archive. 11852old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 11853 11854# Create a temporary old-style archive to link instead of a shared archive. 11855old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 11856 11857# Commands used to build and install a shared archive. 11858archive_cmds=$lt_archive_cmds_CXX 11859archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 11860postinstall_cmds=$lt_postinstall_cmds 11861postuninstall_cmds=$lt_postuninstall_cmds 11862 11863# Commands used to build a loadable module (assumed same as above if empty) 11864module_cmds=$lt_module_cmds_CXX 11865module_expsym_cmds=$lt_module_expsym_cmds_CXX 11866 11867# Commands to strip libraries. 11868old_striplib=$lt_old_striplib 11869striplib=$lt_striplib 11870 11871# Dependencies to place before the objects being linked to create a 11872# shared library. 11873predep_objects=$lt_predep_objects_CXX 11874 11875# Dependencies to place after the objects being linked to create a 11876# shared library. 11877postdep_objects=$lt_postdep_objects_CXX 11878 11879# Dependencies to place before the objects being linked to create a 11880# shared library. 11881predeps=$lt_predeps_CXX 11882 11883# Dependencies to place after the objects being linked to create a 11884# shared library. 11885postdeps=$lt_postdeps_CXX 11886 11887# The library search path used internally by the compiler when linking 11888# a shared library. 11889compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 11890 11891# Method to check whether dependent libraries are shared objects. 11892deplibs_check_method=$lt_deplibs_check_method 11893 11894# Command to use when deplibs_check_method == file_magic. 11895file_magic_cmd=$lt_file_magic_cmd 11896 11897# Flag that allows shared libraries with undefined symbols to be built. 11898allow_undefined_flag=$lt_allow_undefined_flag_CXX 11899 11900# Flag that forces no undefined symbols. 11901no_undefined_flag=$lt_no_undefined_flag_CXX 11902 11903# Commands used to finish a libtool library installation in a directory. 11904finish_cmds=$lt_finish_cmds 11905 11906# Same as above, but a single script fragment to be evaled but not shown. 11907finish_eval=$lt_finish_eval 11908 11909# Take the output of nm and produce a listing of raw symbols and C names. 11910global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11911 11912# Transform the output of nm in a proper C declaration 11913global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11914 11915# Transform the output of nm in a C name address pair 11916global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11917 11918# This is the shared library runtime path variable. 11919runpath_var=$runpath_var 11920 11921# This is the shared library path variable. 11922shlibpath_var=$shlibpath_var 11923 11924# Is shlibpath searched before the hard-coded library search path? 11925shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11926 11927# How to hardcode a shared library path into an executable. 11928hardcode_action=$hardcode_action_CXX 11929 11930# Whether we should hardcode library paths into libraries. 11931hardcode_into_libs=$hardcode_into_libs 11932 11933# Flag to hardcode \$libdir into a binary during linking. 11934# This must work even if \$libdir does not exist. 11935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 11936 11937# If ld is used when linking, flag to hardcode \$libdir into 11938# a binary during linking. This must work even if \$libdir does 11939# not exist. 11940hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 11941 11942# Whether we need a single -rpath flag with a separated argument. 11943hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 11944 11945# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11946# resulting binary. 11947hardcode_direct=$hardcode_direct_CXX 11948 11949# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11950# resulting binary. 11951hardcode_minus_L=$hardcode_minus_L_CXX 11952 11953# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11954# the resulting binary. 11955hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 11956 11957# Set to yes if building a shared library automatically hardcodes DIR into the library 11958# and all subsequent libraries and executables linked against it. 11959hardcode_automatic=$hardcode_automatic_CXX 11960 11961# Variables whose values should be saved in libtool wrapper scripts and 11962# restored at relink time. 11963variables_saved_for_relink="$variables_saved_for_relink" 11964 11965# Whether libtool must link a program against all its dependency libraries. 11966link_all_deplibs=$link_all_deplibs_CXX 11967 11968# Compile-time system search path for libraries 11969sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11970 11971# Run-time system search path for libraries 11972sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11973 11974# Fix the shell variable \$srcfile for the compiler. 11975fix_srcfile_path="$fix_srcfile_path_CXX" 11976 11977# Set to yes if exported symbols are required. 11978always_export_symbols=$always_export_symbols_CXX 11979 11980# The commands to list exported symbols. 11981export_symbols_cmds=$lt_export_symbols_cmds_CXX 11982 11983# The commands to extract the exported symbol list from a shared archive. 11984extract_expsyms_cmds=$lt_extract_expsyms_cmds 11985 11986# Symbols that should not be listed in the preloaded symbols. 11987exclude_expsyms=$lt_exclude_expsyms_CXX 11988 11989# Symbols that must always be exported. 11990include_expsyms=$lt_include_expsyms_CXX 11991 11992# ### END LIBTOOL TAG CONFIG: $tagname 11993 11994__EOF__ 11995 11996 11997else 11998 # If there is no Makefile yet, we rely on a make rule to execute 11999 # `config.status --recheck' to rerun these tests and create the 12000 # libtool script then. 12001 test -f Makefile && make "$ltmain" 12002fi 12003 12004 12005ac_ext=c 12006ac_cpp='$CPP $CPPFLAGS' 12007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12009ac_compiler_gnu=$ac_cv_c_compiler_gnu 12010 12011CC=$lt_save_CC 12012LDCXX=$LD 12013LD=$lt_save_LD 12014GCC=$lt_save_GCC 12015with_gnu_ldcxx=$with_gnu_ld 12016with_gnu_ld=$lt_save_with_gnu_ld 12017lt_cv_path_LDCXX=$lt_cv_path_LD 12018lt_cv_path_LD=$lt_save_path_LD 12019lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12020lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12021 12022 else 12023 tagname="" 12024 fi 12025 ;; 12026 12027 F77) 12028 if test -n "$F77" && test "X$F77" != "Xno"; then 12029 12030ac_ext=f 12031ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12032ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12033ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12034 12035 12036archive_cmds_need_lc_F77=no 12037allow_undefined_flag_F77= 12038always_export_symbols_F77=no 12039archive_expsym_cmds_F77= 12040export_dynamic_flag_spec_F77= 12041hardcode_direct_F77=no 12042hardcode_libdir_flag_spec_F77= 12043hardcode_libdir_flag_spec_ld_F77= 12044hardcode_libdir_separator_F77= 12045hardcode_minus_L_F77=no 12046hardcode_automatic_F77=no 12047module_cmds_F77= 12048module_expsym_cmds_F77= 12049link_all_deplibs_F77=unknown 12050old_archive_cmds_F77=$old_archive_cmds 12051no_undefined_flag_F77= 12052whole_archive_flag_spec_F77= 12053enable_shared_with_static_runtimes_F77=no 12054 12055# Source file extension for f77 test sources. 12056ac_ext=f 12057 12058# Object file extension for compiled f77 test sources. 12059objext=o 12060objext_F77=$objext 12061 12062# Code to be used in simple compile tests 12063lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12064 12065# Code to be used in simple link tests 12066lt_simple_link_test_code=" program t\n end\n" 12067 12068# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12069 12070# If no C compiler was specified, use CC. 12071LTCC=${LTCC-"$CC"} 12072 12073# Allow CC to be a program name with arguments. 12074compiler=$CC 12075 12076 12077# Allow CC to be a program name with arguments. 12078lt_save_CC="$CC" 12079CC=${F77-"f77"} 12080compiler=$CC 12081compiler_F77=$CC 12082cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 12083 12084echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12085echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12086echo "$as_me:$LINENO: result: $can_build_shared" >&5 12087echo "${ECHO_T}$can_build_shared" >&6 12088 12089echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12090echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12091test "$can_build_shared" = "no" && enable_shared=no 12092 12093# On AIX, shared libraries and static libraries use the same namespace, and 12094# are all built from PIC. 12095case "$host_os" in 12096aix3*) 12097 test "$enable_shared" = yes && enable_static=no 12098 if test -n "$RANLIB"; then 12099 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12100 postinstall_cmds='$RANLIB $lib' 12101 fi 12102 ;; 12103aix4*) 12104 test "$enable_shared" = yes && enable_static=no 12105 ;; 12106esac 12107echo "$as_me:$LINENO: result: $enable_shared" >&5 12108echo "${ECHO_T}$enable_shared" >&6 12109 12110echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12111echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12112# Make sure either enable_shared or enable_static is yes. 12113test "$enable_shared" = yes || enable_static=yes 12114echo "$as_me:$LINENO: result: $enable_static" >&5 12115echo "${ECHO_T}$enable_static" >&6 12116 12117test "$ld_shlibs_F77" = no && can_build_shared=no 12118 12119GCC_F77="$G77" 12120LD_F77="$LD" 12121 12122lt_prog_compiler_wl_F77= 12123lt_prog_compiler_pic_F77= 12124lt_prog_compiler_static_F77= 12125 12126echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12127echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12128 12129 if test "$GCC" = yes; then 12130 lt_prog_compiler_wl_F77='-Wl,' 12131 lt_prog_compiler_static_F77='-static' 12132 12133 case $host_os in 12134 aix*) 12135 # All AIX code is PIC. 12136 if test "$host_cpu" = ia64; then 12137 # AIX 5 now supports IA64 processor 12138 lt_prog_compiler_static_F77='-Bstatic' 12139 fi 12140 ;; 12141 12142 amigaos*) 12143 # FIXME: we need at least 68020 code to build shared libraries, but 12144 # adding the `-m68020' flag to GCC prevents building anything better, 12145 # like `-m68040'. 12146 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12147 ;; 12148 12149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12150 # PIC is the default for these OSes. 12151 ;; 12152 12153 mingw* | pw32* | os2*) 12154 # This hack is so that the source file can tell whether it is being 12155 # built for inclusion in a dll (and should export symbols for example). 12156 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12157 ;; 12158 12159 darwin* | rhapsody*) 12160 # PIC is the default on this platform 12161 # Common symbols not allowed in MH_DYLIB files 12162 lt_prog_compiler_pic_F77='-fno-common' 12163 ;; 12164 12165 msdosdjgpp*) 12166 # Just because we use GCC doesn't mean we suddenly get shared libraries 12167 # on systems that don't support them. 12168 lt_prog_compiler_can_build_shared_F77=no 12169 enable_shared=no 12170 ;; 12171 12172 sysv4*MP*) 12173 if test -d /usr/nec; then 12174 lt_prog_compiler_pic_F77=-Kconform_pic 12175 fi 12176 ;; 12177 12178 hpux*) 12179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12180 # not for PA HP-UX. 12181 case "$host_cpu" in 12182 hppa*64*|ia64*) 12183 # +Z the default 12184 ;; 12185 *) 12186 lt_prog_compiler_pic_F77='-fPIC' 12187 ;; 12188 esac 12189 ;; 12190 12191 *) 12192 lt_prog_compiler_pic_F77='-fPIC' 12193 ;; 12194 esac 12195 else 12196 # PORTME Check for flag to pass linker flags through the system compiler. 12197 case $host_os in 12198 aix*) 12199 lt_prog_compiler_wl_F77='-Wl,' 12200 if test "$host_cpu" = ia64; then 12201 # AIX 5 now supports IA64 processor 12202 lt_prog_compiler_static_F77='-Bstatic' 12203 else 12204 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12205 fi 12206 ;; 12207 12208 mingw* | pw32* | os2*) 12209 # This hack is so that the source file can tell whether it is being 12210 # built for inclusion in a dll (and should export symbols for example). 12211 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12212 ;; 12213 12214 hpux9* | hpux10* | hpux11*) 12215 lt_prog_compiler_wl_F77='-Wl,' 12216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12217 # not for PA HP-UX. 12218 case "$host_cpu" in 12219 hppa*64*|ia64*) 12220 # +Z the default 12221 ;; 12222 *) 12223 lt_prog_compiler_pic_F77='+Z' 12224 ;; 12225 esac 12226 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12227 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12228 ;; 12229 12230 irix5* | irix6* | nonstopux*) 12231 lt_prog_compiler_wl_F77='-Wl,' 12232 # PIC (with -KPIC) is the default. 12233 lt_prog_compiler_static_F77='-non_shared' 12234 ;; 12235 12236 newsos6) 12237 lt_prog_compiler_pic_F77='-KPIC' 12238 lt_prog_compiler_static_F77='-Bstatic' 12239 ;; 12240 12241 linux*) 12242 case $CC in 12243 icc|ecc) 12244 lt_prog_compiler_wl_F77='-Wl,' 12245 lt_prog_compiler_pic_F77='-KPIC' 12246 lt_prog_compiler_static_F77='-static' 12247 ;; 12248 ccc) 12249 lt_prog_compiler_wl_F77='-Wl,' 12250 # All Alpha code is PIC. 12251 lt_prog_compiler_static_F77='-non_shared' 12252 ;; 12253 esac 12254 ;; 12255 12256 osf3* | osf4* | osf5*) 12257 lt_prog_compiler_wl_F77='-Wl,' 12258 # All OSF/1 code is PIC. 12259 lt_prog_compiler_static_F77='-non_shared' 12260 ;; 12261 12262 sco3.2v5*) 12263 lt_prog_compiler_pic_F77='-Kpic' 12264 lt_prog_compiler_static_F77='-dn' 12265 ;; 12266 12267 solaris*) 12268 lt_prog_compiler_wl_F77='-Wl,' 12269 lt_prog_compiler_pic_F77='-KPIC' 12270 lt_prog_compiler_static_F77='-Bstatic' 12271 ;; 12272 12273 sunos4*) 12274 lt_prog_compiler_wl_F77='-Qoption ld ' 12275 lt_prog_compiler_pic_F77='-PIC' 12276 lt_prog_compiler_static_F77='-Bstatic' 12277 ;; 12278 12279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12280 lt_prog_compiler_wl_F77='-Wl,' 12281 lt_prog_compiler_pic_F77='-KPIC' 12282 lt_prog_compiler_static_F77='-Bstatic' 12283 ;; 12284 12285 sysv4*MP*) 12286 if test -d /usr/nec ;then 12287 lt_prog_compiler_pic_F77='-Kconform_pic' 12288 lt_prog_compiler_static_F77='-Bstatic' 12289 fi 12290 ;; 12291 12292 uts4*) 12293 lt_prog_compiler_pic_F77='-pic' 12294 lt_prog_compiler_static_F77='-Bstatic' 12295 ;; 12296 12297 *) 12298 lt_prog_compiler_can_build_shared_F77=no 12299 ;; 12300 esac 12301 fi 12302 12303echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12304echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12305 12306# 12307# Check to make sure the PIC flag actually works. 12308# 12309if test -n "$lt_prog_compiler_pic_F77"; then 12310 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12311echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12312if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12313 echo $ECHO_N "(cached) $ECHO_C" >&6 12314else 12315 lt_prog_compiler_pic_works_F77=no 12316 ac_outfile=conftest.$ac_objext 12317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12318 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12319 # Insert the option either (1) after the last *FLAGS variable, or 12320 # (2) before a word containing "conftest.", or (3) at the end. 12321 # Note that $ac_compile itself does not contain backslashes and begins 12322 # with a dollar sign (not a hyphen), so the echo should work correctly. 12323 # The option is referenced via a variable to avoid confusing sed. 12324 lt_compile=`echo "$ac_compile" | $SED \ 12325 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12327 -e 's:$: $lt_compiler_flag:'` 12328 (eval echo "\"\$as_me:12328: $lt_compile\"" >&5) 12329 (eval "$lt_compile" 2>conftest.err) 12330 ac_status=$? 12331 cat conftest.err >&5 12332 echo "$as_me:12332: \$? = $ac_status" >&5 12333 if (exit $ac_status) && test -s "$ac_outfile"; then 12334 # The compiler can only warn and ignore the option if not recognized 12335 # So say no if there are warnings 12336 if test ! -s conftest.err; then 12337 lt_prog_compiler_pic_works_F77=yes 12338 fi 12339 fi 12340 $rm conftest* 12341 12342fi 12343echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12344echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12345 12346if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12347 case $lt_prog_compiler_pic_F77 in 12348 "" | " "*) ;; 12349 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12350 esac 12351else 12352 lt_prog_compiler_pic_F77= 12353 lt_prog_compiler_can_build_shared_F77=no 12354fi 12355 12356fi 12357case "$host_os" in 12358 # For platforms which do not support PIC, -DPIC is meaningless: 12359 *djgpp*) 12360 lt_prog_compiler_pic_F77= 12361 ;; 12362 *) 12363 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12364 ;; 12365esac 12366 12367echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12368echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12369if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 12370 echo $ECHO_N "(cached) $ECHO_C" >&6 12371else 12372 lt_cv_prog_compiler_c_o_F77=no 12373 $rm -r conftest 2>/dev/null 12374 mkdir conftest 12375 cd conftest 12376 mkdir out 12377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12378 12379 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 12380 # that will create temporary files in the current directory regardless of 12381 # the output directory. Thus, making CWD read-only will cause this test 12382 # to fail, enabling locking or at least warning the user not to do parallel 12383 # builds. 12384 chmod -w . 12385 12386 lt_compiler_flag="-o out/conftest2.$ac_objext" 12387 # Insert the option either (1) after the last *FLAGS variable, or 12388 # (2) before a word containing "conftest.", or (3) at the end. 12389 # Note that $ac_compile itself does not contain backslashes and begins 12390 # with a dollar sign (not a hyphen), so the echo should work correctly. 12391 lt_compile=`echo "$ac_compile" | $SED \ 12392 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12394 -e 's:$: $lt_compiler_flag:'` 12395 (eval echo "\"\$as_me:12395: $lt_compile\"" >&5) 12396 (eval "$lt_compile" 2>out/conftest.err) 12397 ac_status=$? 12398 cat out/conftest.err >&5 12399 echo "$as_me:12399: \$? = $ac_status" >&5 12400 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12401 then 12402 # The compiler can only warn and ignore the option if not recognized 12403 # So say no if there are warnings 12404 if test ! -s out/conftest.err; then 12405 lt_cv_prog_compiler_c_o_F77=yes 12406 fi 12407 fi 12408 chmod u+w . 12409 $rm conftest* out/* 12410 rmdir out 12411 cd .. 12412 rmdir conftest 12413 $rm conftest* 12414 12415fi 12416echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 12417echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 12418 12419 12420hard_links="nottested" 12421if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 12422 # do not overwrite the value of need_locks provided by the user 12423 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12424echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12425 hard_links=yes 12426 $rm conftest* 12427 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12428 touch conftest.a 12429 ln conftest.a conftest.b 2>&5 || hard_links=no 12430 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12431 echo "$as_me:$LINENO: result: $hard_links" >&5 12432echo "${ECHO_T}$hard_links" >&6 12433 if test "$hard_links" = no; then 12434 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12435echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12436 need_locks=warn 12437 fi 12438else 12439 need_locks=no 12440fi 12441 12442echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12443echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12444 12445 runpath_var= 12446 allow_undefined_flag_F77= 12447 enable_shared_with_static_runtimes_F77=no 12448 archive_cmds_F77= 12449 archive_expsym_cmds_F77= 12450 old_archive_From_new_cmds_F77= 12451 old_archive_from_expsyms_cmds_F77= 12452 export_dynamic_flag_spec_F77= 12453 whole_archive_flag_spec_F77= 12454 thread_safe_flag_spec_F77= 12455 hardcode_libdir_flag_spec_F77= 12456 hardcode_libdir_flag_spec_ld_F77= 12457 hardcode_libdir_separator_F77= 12458 hardcode_direct_F77=no 12459 hardcode_minus_L_F77=no 12460 hardcode_shlibpath_var_F77=unsupported 12461 link_all_deplibs_F77=unknown 12462 hardcode_automatic_F77=no 12463 module_cmds_F77= 12464 module_expsym_cmds_F77= 12465 always_export_symbols_F77=no 12466 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12467 # include_expsyms should be a list of space-separated symbols to be *always* 12468 # included in the symbol list 12469 include_expsyms_F77= 12470 # exclude_expsyms can be an extended regexp of symbols to exclude 12471 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12472 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12473 # as well as any symbol that contains `d'. 12474 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 12475 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12476 # platforms (ab)use it in PIC code, but their linkers get confused if 12477 # the symbol is explicitly referenced. Since portable code cannot 12478 # rely on this symbol name, it's probably fine to never include it in 12479 # preloaded symbol tables. 12480 extract_expsyms_cmds= 12481 12482 case $host_os in 12483 cygwin* | mingw* | pw32*) 12484 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12485 # When not using gcc, we currently assume that we are using 12486 # Microsoft Visual C++. 12487 if test "$GCC" != yes; then 12488 with_gnu_ld=no 12489 fi 12490 ;; 12491 openbsd*) 12492 with_gnu_ld=no 12493 ;; 12494 esac 12495 12496 ld_shlibs_F77=yes 12497 if test "$with_gnu_ld" = yes; then 12498 # If archive_cmds runs LD, not CC, wlarc should be empty 12499 wlarc='${wl}' 12500 12501 # See if GNU ld supports shared libraries. 12502 case $host_os in 12503 aix3* | aix4* | aix5*) 12504 # On AIX/PPC, the GNU linker is very broken 12505 if test "$host_cpu" != ia64; then 12506 ld_shlibs_F77=no 12507 cat <<EOF 1>&2 12508 12509*** Warning: the GNU linker, at least up to release 2.9.1, is reported 12510*** to be unable to reliably create shared libraries on AIX. 12511*** Therefore, libtool is disabling shared libraries support. If you 12512*** really care for shared libraries, you may want to modify your PATH 12513*** so that a non-GNU linker is found, and then restart. 12514 12515EOF 12516 fi 12517 ;; 12518 12519 amigaos*) 12520 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)' 12521 hardcode_libdir_flag_spec_F77='-L$libdir' 12522 hardcode_minus_L_F77=yes 12523 12524 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 12525 # that the semantics of dynamic libraries on AmigaOS, at least up 12526 # to version 4, is to share data among multiple programs linked 12527 # with the same dynamic library. Since this doesn't match the 12528 # behavior of shared libraries on other platforms, we can't use 12529 # them. 12530 ld_shlibs_F77=no 12531 ;; 12532 12533 beos*) 12534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12535 allow_undefined_flag_F77=unsupported 12536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12537 # support --undefined. This deserves some investigation. FIXME 12538 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12539 else 12540 ld_shlibs_F77=no 12541 fi 12542 ;; 12543 12544 cygwin* | mingw* | pw32*) 12545 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 12546 # as there is no search path for DLLs. 12547 hardcode_libdir_flag_spec_F77='-L$libdir' 12548 allow_undefined_flag_F77=unsupported 12549 always_export_symbols_F77=no 12550 enable_shared_with_static_runtimes_F77=yes 12551 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12552 12553 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12554 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12555 # If the export-symbols file already is a .def file (1st line 12556 # is EXPORTS), use it as is; otherwise, prepend... 12557 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12558 cp $export_symbols $output_objdir/$soname.def; 12559 else 12560 echo EXPORTS > $output_objdir/$soname.def; 12561 cat $export_symbols >> $output_objdir/$soname.def; 12562 fi~ 12563 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 12564 else 12565 ld_shlibs=no 12566 fi 12567 ;; 12568 12569 netbsd*) 12570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12571 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12572 wlarc= 12573 else 12574 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12575 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12576 fi 12577 ;; 12578 12579 solaris* | sysv5*) 12580 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 12581 ld_shlibs_F77=no 12582 cat <<EOF 1>&2 12583 12584*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12585*** create shared libraries on Solaris systems. Therefore, libtool 12586*** is disabling shared libraries support. We urge you to upgrade GNU 12587*** binutils to release 2.9.1 or newer. Another option is to modify 12588*** your PATH or compiler configuration so that the native linker is 12589*** used, and then restart. 12590 12591EOF 12592 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12593 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12594 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12595 else 12596 ld_shlibs_F77=no 12597 fi 12598 ;; 12599 12600 sunos4*) 12601 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12602 wlarc= 12603 hardcode_direct_F77=yes 12604 hardcode_shlibpath_var_F77=no 12605 ;; 12606 12607 *) 12608 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12611 else 12612 ld_shlibs_F77=no 12613 fi 12614 ;; 12615 esac 12616 12617 if test "$ld_shlibs_F77" = yes; then 12618 runpath_var=LD_RUN_PATH 12619 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 12620 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 12621 # ancient GNU ld didn't support --whole-archive et. al. 12622 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 12623 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12624 else 12625 whole_archive_flag_spec_F77= 12626 fi 12627 fi 12628 else 12629 # PORTME fill in a description of your system's linker (not GNU ld) 12630 case $host_os in 12631 aix3*) 12632 allow_undefined_flag_F77=unsupported 12633 always_export_symbols_F77=yes 12634 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' 12635 # Note: this linker hardcodes the directories in LIBPATH if there 12636 # are no directories specified by -L. 12637 hardcode_minus_L_F77=yes 12638 if test "$GCC" = yes && test -z "$link_static_flag"; then 12639 # Neither direct hardcoding nor static linking is supported with a 12640 # broken collect2. 12641 hardcode_direct_F77=unsupported 12642 fi 12643 ;; 12644 12645 aix4* | aix5*) 12646 if test "$host_cpu" = ia64; then 12647 # On IA64, the linker does run time linking by default, so we don't 12648 # have to do anything special. 12649 aix_use_runtimelinking=no 12650 exp_sym_flag='-Bexport' 12651 no_entry_flag="" 12652 else 12653 # If we're using GNU nm, then we don't want the "-C" option. 12654 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12655 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12656 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' 12657 else 12658 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' 12659 fi 12660 aix_use_runtimelinking=no 12661 12662 # Test if we are trying to use run time linking or normal 12663 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12664 # need to do runtime linking. 12665 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 12666 for ld_flag in $LDFLAGS; do 12667 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 12668 aix_use_runtimelinking=yes 12669 break 12670 fi 12671 done 12672 esac 12673 12674 exp_sym_flag='-bexport' 12675 no_entry_flag='-bnoentry' 12676 fi 12677 12678 # When large executables or shared objects are built, AIX ld can 12679 # have problems creating the table of contents. If linking a library 12680 # or program results in "error TOC overflow" add -mminimal-toc to 12681 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12682 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12683 12684 archive_cmds_F77='' 12685 hardcode_direct_F77=yes 12686 hardcode_libdir_separator_F77=':' 12687 link_all_deplibs_F77=yes 12688 12689 if test "$GCC" = yes; then 12690 case $host_os in aix4.012|aix4.012.*) 12691 # We only want to do this on AIX 4.2 and lower, the check 12692 # below for broken collect2 doesn't work under 4.3+ 12693 collect2name=`${CC} -print-prog-name=collect2` 12694 if test -f "$collect2name" && \ 12695 strings "$collect2name" | grep resolve_lib_name >/dev/null 12696 then 12697 # We have reworked collect2 12698 hardcode_direct_F77=yes 12699 else 12700 # We have old collect2 12701 hardcode_direct_F77=unsupported 12702 # It fails to find uninstalled libraries when the uninstalled 12703 # path is not listed in the libpath. Setting hardcode_minus_L 12704 # to unsupported forces relinking 12705 hardcode_minus_L_F77=yes 12706 hardcode_libdir_flag_spec_F77='-L$libdir' 12707 hardcode_libdir_separator_F77= 12708 fi 12709 esac 12710 shared_flag='-shared' 12711 else 12712 # not using gcc 12713 if test "$host_cpu" = ia64; then 12714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12715 # chokes on -Wl,-G. The following line is correct: 12716 shared_flag='-G' 12717 else 12718 if test "$aix_use_runtimelinking" = yes; then 12719 shared_flag='${wl}-G' 12720 else 12721 shared_flag='${wl}-bM:SRE' 12722 fi 12723 fi 12724 fi 12725 12726 # It seems that -bexpall does not export symbols beginning with 12727 # underscore (_), so it is better to generate a list of symbols to export. 12728 always_export_symbols_F77=yes 12729 if test "$aix_use_runtimelinking" = yes; then 12730 # Warning - without using the other runtime loading flags (-brtl), 12731 # -berok will link without error, but may produce a broken library. 12732 allow_undefined_flag_F77='-berok' 12733 # Determine the default libpath from the value encoded in an empty executable. 12734 cat >conftest.$ac_ext <<_ACEOF 12735 program main 12736 12737 end 12738_ACEOF 12739rm -f conftest.$ac_objext conftest$ac_exeext 12740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12741 (eval $ac_link) 2>&5 12742 ac_status=$? 12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12744 (exit $ac_status); } && 12745 { ac_try='test -s conftest$ac_exeext' 12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12747 (eval $ac_try) 2>&5 12748 ac_status=$? 12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12750 (exit $ac_status); }; }; then 12751 12752aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12753}'` 12754# Check for a 64-bit object if we didn't find anything. 12755if 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; } 12756}'`; fi 12757else 12758 echo "$as_me: failed program was:" >&5 12759cat conftest.$ac_ext >&5 12760fi 12761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12762if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12763 12764 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 12765 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12766 else 12767 if test "$host_cpu" = ia64; then 12768 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 12769 allow_undefined_flag_F77="-z nodefs" 12770 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 12771 else 12772 # Determine the default libpath from the value encoded in an empty executable. 12773 cat >conftest.$ac_ext <<_ACEOF 12774 program main 12775 12776 end 12777_ACEOF 12778rm -f conftest.$ac_objext conftest$ac_exeext 12779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12780 (eval $ac_link) 2>&5 12781 ac_status=$? 12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12783 (exit $ac_status); } && 12784 { ac_try='test -s conftest$ac_exeext' 12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12786 (eval $ac_try) 2>&5 12787 ac_status=$? 12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12789 (exit $ac_status); }; }; then 12790 12791aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 12792}'` 12793# Check for a 64-bit object if we didn't find anything. 12794if 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; } 12795}'`; fi 12796else 12797 echo "$as_me: failed program was:" >&5 12798cat conftest.$ac_ext >&5 12799fi 12800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12801if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12802 12803 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 12804 # Warning - without using the other run time loading flags, 12805 # -berok will link without error, but may produce a broken library. 12806 no_undefined_flag_F77=' ${wl}-bernotok' 12807 allow_undefined_flag_F77=' ${wl}-berok' 12808 # -bexpall does not export symbols beginning with underscore (_) 12809 always_export_symbols_F77=yes 12810 # Exported symbols can be pulled into shared objects from archives 12811 whole_archive_flag_spec_F77=' ' 12812 archive_cmds_need_lc_F77=yes 12813 # This is similar to how AIX traditionally builds it's shared libraries. 12814 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12815 fi 12816 fi 12817 ;; 12818 12819 amigaos*) 12820 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)' 12821 hardcode_libdir_flag_spec_F77='-L$libdir' 12822 hardcode_minus_L_F77=yes 12823 # see comment about different semantics on the GNU ld section 12824 ld_shlibs_F77=no 12825 ;; 12826 12827 bsdi4*) 12828 export_dynamic_flag_spec_F77=-rdynamic 12829 ;; 12830 12831 cygwin* | mingw* | pw32*) 12832 # When not using gcc, we currently assume that we are using 12833 # Microsoft Visual C++. 12834 # hardcode_libdir_flag_spec is actually meaningless, as there is 12835 # no search path for DLLs. 12836 hardcode_libdir_flag_spec_F77=' ' 12837 allow_undefined_flag_F77=unsupported 12838 # Tell ltmain to make .lib files, not .a files. 12839 libext=lib 12840 # Tell ltmain to make .dll files, not .so files. 12841 shrext=".dll" 12842 # FIXME: Setting linknames here is a bad hack. 12843 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 12844 # The linker will automatically build a .lib file if we build a DLL. 12845 old_archive_From_new_cmds_F77='true' 12846 # FIXME: Should let the user specify the lib program. 12847 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 12848 fix_srcfile_path='`cygpath -w "$srcfile"`' 12849 enable_shared_with_static_runtimes_F77=yes 12850 ;; 12851 12852 darwin* | rhapsody*) 12853 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 12854 archive_cmds_need_lc_F77=no 12855 case "$host_os" in 12856 rhapsody* | darwin1.[012]) 12857 allow_undefined_flag_F77='-undefined suppress' 12858 ;; 12859 *) # Darwin 1.3 on 12860 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress' 12861 ;; 12862 esac 12863 # FIXME: Relying on posixy $() will cause problems for 12864 # cross-compilation, but unfortunately the echo tests do not 12865 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 12866 # `"' quotes if we put them in here... so don't! 12867 lt_int_apple_cc_single_mod=no 12868 output_verbose_link_cmd='echo' 12869 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 12870 lt_int_apple_cc_single_mod=yes 12871 fi 12872 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12873 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12874 else 12875 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 12876 fi 12877 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 12878 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 12879 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 12880 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12881 else 12882 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12883 fi 12884 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12885 hardcode_direct_F77=no 12886 hardcode_automatic_F77=yes 12887 hardcode_shlibpath_var_F77=unsupported 12888 whole_archive_flag_spec_F77='-all_load $convenience' 12889 link_all_deplibs_F77=yes 12890 fi 12891 ;; 12892 12893 dgux*) 12894 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12895 hardcode_libdir_flag_spec_F77='-L$libdir' 12896 hardcode_shlibpath_var_F77=no 12897 ;; 12898 12899 freebsd1*) 12900 ld_shlibs_F77=no 12901 ;; 12902 12903 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12904 # support. Future versions do this automatically, but an explicit c++rt0.o 12905 # does not break anything, and helps significantly (at the cost of a little 12906 # extra space). 12907 freebsd2.2*) 12908 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12909 hardcode_libdir_flag_spec_F77='-R$libdir' 12910 hardcode_direct_F77=yes 12911 hardcode_shlibpath_var_F77=no 12912 ;; 12913 12914 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12915 freebsd2*) 12916 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12917 hardcode_direct_F77=yes 12918 hardcode_minus_L_F77=yes 12919 hardcode_shlibpath_var_F77=no 12920 ;; 12921 12922 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12923 freebsd*) 12924 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 12925 hardcode_libdir_flag_spec_F77='-R$libdir' 12926 hardcode_direct_F77=yes 12927 hardcode_shlibpath_var_F77=no 12928 ;; 12929 12930 hpux9*) 12931 if test "$GCC" = yes; then 12932 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12933 else 12934 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' 12935 fi 12936 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 12937 hardcode_libdir_separator_F77=: 12938 hardcode_direct_F77=yes 12939 12940 # hardcode_minus_L: Not really in the search PATH, 12941 # but as the default location of the library. 12942 hardcode_minus_L_F77=yes 12943 export_dynamic_flag_spec_F77='${wl}-E' 12944 ;; 12945 12946 hpux10* | hpux11*) 12947 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 12948 case "$host_cpu" in 12949 hppa*64*|ia64*) 12950 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12951 ;; 12952 *) 12953 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12954 ;; 12955 esac 12956 else 12957 case "$host_cpu" in 12958 hppa*64*|ia64*) 12959 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 12960 ;; 12961 *) 12962 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12963 ;; 12964 esac 12965 fi 12966 if test "$with_gnu_ld" = no; then 12967 case "$host_cpu" in 12968 hppa*64*) 12969 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 12970 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 12971 hardcode_libdir_separator_F77=: 12972 hardcode_direct_F77=no 12973 hardcode_shlibpath_var_F77=no 12974 ;; 12975 ia64*) 12976 hardcode_libdir_flag_spec_F77='-L$libdir' 12977 hardcode_direct_F77=no 12978 hardcode_shlibpath_var_F77=no 12979 12980 # hardcode_minus_L: Not really in the search PATH, 12981 # but as the default location of the library. 12982 hardcode_minus_L_F77=yes 12983 ;; 12984 *) 12985 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 12986 hardcode_libdir_separator_F77=: 12987 hardcode_direct_F77=yes 12988 export_dynamic_flag_spec_F77='${wl}-E' 12989 12990 # hardcode_minus_L: Not really in the search PATH, 12991 # but as the default location of the library. 12992 hardcode_minus_L_F77=yes 12993 ;; 12994 esac 12995 fi 12996 ;; 12997 12998 irix5* | irix6* | nonstopux*) 12999 if test "$GCC" = yes; then 13000 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13001 else 13002 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' 13003 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13004 fi 13005 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13006 hardcode_libdir_separator_F77=: 13007 link_all_deplibs_F77=yes 13008 ;; 13009 13010 netbsd*) 13011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13012 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13013 else 13014 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13015 fi 13016 hardcode_libdir_flag_spec_F77='-R$libdir' 13017 hardcode_direct_F77=yes 13018 hardcode_shlibpath_var_F77=no 13019 ;; 13020 13021 newsos6) 13022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13023 hardcode_direct_F77=yes 13024 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13025 hardcode_libdir_separator_F77=: 13026 hardcode_shlibpath_var_F77=no 13027 ;; 13028 13029 openbsd*) 13030 hardcode_direct_F77=yes 13031 hardcode_shlibpath_var_F77=no 13032 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13033 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13034 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13035 export_dynamic_flag_spec_F77='${wl}-E' 13036 else 13037 case $host_os in 13038 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13039 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13040 hardcode_libdir_flag_spec_F77='-R$libdir' 13041 ;; 13042 *) 13043 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13044 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13045 ;; 13046 esac 13047 fi 13048 ;; 13049 13050 os2*) 13051 hardcode_libdir_flag_spec_F77='-L$libdir' 13052 hardcode_minus_L_F77=yes 13053 allow_undefined_flag_F77=unsupported 13054 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 13055 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13056 ;; 13057 13058 osf3*) 13059 if test "$GCC" = yes; then 13060 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13061 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13062 else 13063 allow_undefined_flag_F77=' -expect_unresolved \*' 13064 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' 13065 fi 13066 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13067 hardcode_libdir_separator_F77=: 13068 ;; 13069 13070 osf4* | osf5*) # as osf3* with the addition of -msym flag 13071 if test "$GCC" = yes; then 13072 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13073 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13074 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13075 else 13076 allow_undefined_flag_F77=' -expect_unresolved \*' 13077 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' 13078 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~ 13079 $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' 13080 13081 # Both c and cxx compiler support -rpath directly 13082 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13083 fi 13084 hardcode_libdir_separator_F77=: 13085 ;; 13086 13087 sco3.2v5*) 13088 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13089 hardcode_shlibpath_var_F77=no 13090 export_dynamic_flag_spec_F77='${wl}-Bexport' 13091 runpath_var=LD_RUN_PATH 13092 hardcode_runpath_var=yes 13093 ;; 13094 13095 solaris*) 13096 no_undefined_flag_F77=' -z text' 13097 if test "$GCC" = yes; then 13098 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13099 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13100 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13101 else 13102 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13103 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13104 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13105 fi 13106 hardcode_libdir_flag_spec_F77='-R$libdir' 13107 hardcode_shlibpath_var_F77=no 13108 case $host_os in 13109 solaris2.[0-5] | solaris2.[0-5].*) ;; 13110 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 13111 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13112 esac 13113 link_all_deplibs_F77=yes 13114 ;; 13115 13116 sunos4*) 13117 if test "x$host_vendor" = xsequent; then 13118 # Use $CC to link under sequent, because it throws in some extra .o 13119 # files that make .init and .fini sections work. 13120 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13121 else 13122 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13123 fi 13124 hardcode_libdir_flag_spec_F77='-L$libdir' 13125 hardcode_direct_F77=yes 13126 hardcode_minus_L_F77=yes 13127 hardcode_shlibpath_var_F77=no 13128 ;; 13129 13130 sysv4) 13131 case $host_vendor in 13132 sni) 13133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13134 hardcode_direct_F77=yes # is this really true??? 13135 ;; 13136 siemens) 13137 ## LD is ld it makes a PLAMLIB 13138 ## CC just makes a GrossModule. 13139 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13140 reload_cmds_F77='$CC -r -o $output$reload_objs' 13141 hardcode_direct_F77=no 13142 ;; 13143 motorola) 13144 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13145 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13146 ;; 13147 esac 13148 runpath_var='LD_RUN_PATH' 13149 hardcode_shlibpath_var_F77=no 13150 ;; 13151 13152 sysv4.3*) 13153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13154 hardcode_shlibpath_var_F77=no 13155 export_dynamic_flag_spec_F77='-Bexport' 13156 ;; 13157 13158 sysv4*MP*) 13159 if test -d /usr/nec; then 13160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13161 hardcode_shlibpath_var_F77=no 13162 runpath_var=LD_RUN_PATH 13163 hardcode_runpath_var=yes 13164 ld_shlibs_F77=yes 13165 fi 13166 ;; 13167 13168 sysv4.2uw2*) 13169 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13170 hardcode_direct_F77=yes 13171 hardcode_minus_L_F77=no 13172 hardcode_shlibpath_var_F77=no 13173 hardcode_runpath_var=yes 13174 runpath_var=LD_RUN_PATH 13175 ;; 13176 13177 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 13178 no_undefined_flag_F77='${wl}-z ${wl}text' 13179 if test "$GCC" = yes; then 13180 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13181 else 13182 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13183 fi 13184 runpath_var='LD_RUN_PATH' 13185 hardcode_shlibpath_var_F77=no 13186 ;; 13187 13188 sysv5*) 13189 no_undefined_flag_F77=' -z text' 13190 # $CC -shared without GNU ld will not create a library from C++ 13191 # object files and a static libstdc++, better avoid it by now 13192 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13193 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13194 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13195 hardcode_libdir_flag_spec_F77= 13196 hardcode_shlibpath_var_F77=no 13197 runpath_var='LD_RUN_PATH' 13198 ;; 13199 13200 uts4*) 13201 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13202 hardcode_libdir_flag_spec_F77='-L$libdir' 13203 hardcode_shlibpath_var_F77=no 13204 ;; 13205 13206 *) 13207 ld_shlibs_F77=no 13208 ;; 13209 esac 13210 fi 13211 13212echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 13213echo "${ECHO_T}$ld_shlibs_F77" >&6 13214test "$ld_shlibs_F77" = no && can_build_shared=no 13215 13216variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13217if test "$GCC" = yes; then 13218 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13219fi 13220 13221# 13222# Do we need to explicitly link libc? 13223# 13224case "x$archive_cmds_need_lc_F77" in 13225x|xyes) 13226 # Assume -lc should be added 13227 archive_cmds_need_lc_F77=yes 13228 13229 if test "$enable_shared" = yes && test "$GCC" = yes; then 13230 case $archive_cmds_F77 in 13231 *'~'*) 13232 # FIXME: we may have to deal with multi-command sequences. 13233 ;; 13234 '$CC '*) 13235 # Test whether the compiler implicitly links with -lc since on some 13236 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13237 # to ld, don't add -lc before -lgcc. 13238 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13239echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13240 $rm conftest* 13241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13242 13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13244 (eval $ac_compile) 2>&5 13245 ac_status=$? 13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13247 (exit $ac_status); } 2>conftest.err; then 13248 soname=conftest 13249 lib=conftest 13250 libobjs=conftest.$ac_objext 13251 deplibs= 13252 wl=$lt_prog_compiler_wl_F77 13253 compiler_flags=-v 13254 linker_flags=-v 13255 verstring= 13256 output_objdir=. 13257 libname=conftest 13258 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 13259 allow_undefined_flag_F77= 13260 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13261 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13262 ac_status=$? 13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13264 (exit $ac_status); } 13265 then 13266 archive_cmds_need_lc_F77=no 13267 else 13268 archive_cmds_need_lc_F77=yes 13269 fi 13270 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 13271 else 13272 cat conftest.err 1>&5 13273 fi 13274 $rm conftest* 13275 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 13276echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 13277 ;; 13278 esac 13279 fi 13280 ;; 13281esac 13282 13283echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13284echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13285hardcode_action_F77= 13286if test -n "$hardcode_libdir_flag_spec_F77" || \ 13287 test -n "$runpath_var F77" || \ 13288 test "X$hardcode_automatic_F77"="Xyes" ; then 13289 13290 # We can hardcode non-existant directories. 13291 if test "$hardcode_direct_F77" != no && 13292 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13293 # have to relink, otherwise we might link with an installed library 13294 # when we should be linking with a yet-to-be-installed one 13295 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 13296 test "$hardcode_minus_L_F77" != no; then 13297 # Linking always hardcodes the temporary library directory. 13298 hardcode_action_F77=relink 13299 else 13300 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13301 hardcode_action_F77=immediate 13302 fi 13303else 13304 # We cannot hardcode anything, or else we can only hardcode existing 13305 # directories. 13306 hardcode_action_F77=unsupported 13307fi 13308echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 13309echo "${ECHO_T}$hardcode_action_F77" >&6 13310 13311if test "$hardcode_action_F77" = relink; then 13312 # Fast installation is not supported 13313 enable_fast_install=no 13314elif test "$shlibpath_overrides_runpath" = yes || 13315 test "$enable_shared" = no; then 13316 # Fast installation is not necessary 13317 enable_fast_install=needless 13318fi 13319 13320striplib= 13321old_striplib= 13322echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 13323echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 13324if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 13325 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13326 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13327 echo "$as_me:$LINENO: result: yes" >&5 13328echo "${ECHO_T}yes" >&6 13329else 13330# FIXME - insert some real tests, host_os isn't really good enough 13331 case $host_os in 13332 darwin*) 13333 if test -n "$STRIP" ; then 13334 striplib="$STRIP -x" 13335 echo "$as_me:$LINENO: result: yes" >&5 13336echo "${ECHO_T}yes" >&6 13337 else 13338 echo "$as_me:$LINENO: result: no" >&5 13339echo "${ECHO_T}no" >&6 13340fi 13341 ;; 13342 *) 13343 echo "$as_me:$LINENO: result: no" >&5 13344echo "${ECHO_T}no" >&6 13345 ;; 13346 esac 13347fi 13348 13349echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13350echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13351library_names_spec= 13352libname_spec='lib$name' 13353soname_spec= 13354shrext=".so" 13355postinstall_cmds= 13356postuninstall_cmds= 13357finish_cmds= 13358finish_eval= 13359shlibpath_var= 13360shlibpath_overrides_runpath=unknown 13361version_type=none 13362dynamic_linker="$host_os ld.so" 13363sys_lib_dlsearch_path_spec="/lib /usr/lib" 13364if test "$GCC" = yes; then 13365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13366 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13367 # if the path contains ";" then we assume it to be the separator 13368 # otherwise default to the standard path separator (i.e. ":") - it is 13369 # assumed that no part of a normal pathname contains ";" but that should 13370 # okay in the real world where ";" in dirpaths is itself problematic. 13371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13372 else 13373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13374 fi 13375else 13376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13377fi 13378need_lib_prefix=unknown 13379hardcode_into_libs=no 13380 13381# when you set need_version to no, make sure it does not cause -set_version 13382# flags to be left without arguments 13383need_version=unknown 13384 13385case $host_os in 13386aix3*) 13387 version_type=linux 13388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13389 shlibpath_var=LIBPATH 13390 13391 # AIX 3 has no versioning support, so we append a major version to the name. 13392 soname_spec='${libname}${release}${shared_ext}$major' 13393 ;; 13394 13395aix4* | aix5*) 13396 version_type=linux 13397 need_lib_prefix=no 13398 need_version=no 13399 hardcode_into_libs=yes 13400 if test "$host_cpu" = ia64; then 13401 # AIX 5 supports IA64 13402 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13403 shlibpath_var=LD_LIBRARY_PATH 13404 else 13405 # With GCC up to 2.95.x, collect2 would create an import file 13406 # for dependence libraries. The import file would start with 13407 # the line `#! .'. This would cause the generated library to 13408 # depend on `.', always an invalid library. This was fixed in 13409 # development snapshots of GCC prior to 3.0. 13410 case $host_os in 13411 aix4 | aix4.[01] | aix4.[01].*) 13412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13413 echo ' yes ' 13414 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13415 : 13416 else 13417 can_build_shared=no 13418 fi 13419 ;; 13420 esac 13421 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13422 # soname into executable. Probably we can add versioning support to 13423 # collect2, so additional links can be useful in future. 13424 if test "$aix_use_runtimelinking" = yes; then 13425 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13426 # instead of lib<name>.a to let people know that these are not 13427 # typical AIX shared libraries. 13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13429 else 13430 # We preserve .a as extension for shared libraries through AIX4.2 13431 # and later when we are not doing run time linking. 13432 library_names_spec='${libname}${release}.a $libname.a' 13433 soname_spec='${libname}${release}${shared_ext}$major' 13434 fi 13435 shlibpath_var=LIBPATH 13436 fi 13437 ;; 13438 13439amigaos*) 13440 library_names_spec='$libname.ixlibrary $libname.a' 13441 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13442 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' 13443 ;; 13444 13445beos*) 13446 library_names_spec='${libname}${shared_ext}' 13447 dynamic_linker="$host_os ld.so" 13448 shlibpath_var=LIBRARY_PATH 13449 ;; 13450 13451bsdi4*) 13452 version_type=linux 13453 need_version=no 13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13455 soname_spec='${libname}${release}${shared_ext}$major' 13456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13457 shlibpath_var=LD_LIBRARY_PATH 13458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13460 # the default ld.so.conf also contains /usr/contrib/lib and 13461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13462 # libtool to hard-code these into programs 13463 ;; 13464 13465cygwin* | mingw* | pw32*) 13466 version_type=windows 13467 shrext=".dll" 13468 need_version=no 13469 need_lib_prefix=no 13470 13471 case $GCC,$host_os in 13472 yes,cygwin* | yes,mingw* | yes,pw32*) 13473 library_names_spec='$libname.dll.a' 13474 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13475 postinstall_cmds='base_file=`basename \${file}`~ 13476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13477 dldir=$destdir/`dirname \$dlpath`~ 13478 test -d \$dldir || mkdir -p \$dldir~ 13479 $install_prog $dir/$dlname \$dldir/$dlname' 13480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13481 dlpath=$dir/\$dldll~ 13482 $rm \$dlpath' 13483 shlibpath_overrides_runpath=yes 13484 13485 case $host_os in 13486 cygwin*) 13487 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13488 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13489 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 13490 ;; 13491 mingw*) 13492 # MinGW DLLs use traditional 'lib' prefix 13493 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13494 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13495 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13496 # It is most probably a Windows format PATH printed by 13497 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13498 # path with ; separators, and with drive letters. We can handle the 13499 # drive letters (cygwin fileutils understands them), so leave them, 13500 # especially as we might pass files found there to a mingw objdump, 13501 # which wouldn't understand a cygwinified path. Ahh. 13502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13503 else 13504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13505 fi 13506 ;; 13507 pw32*) 13508 # pw32 DLLs use 'pw' prefix rather than 'lib' 13509 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 13510 ;; 13511 esac 13512 ;; 13513 13514 *) 13515 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13516 ;; 13517 esac 13518 dynamic_linker='Win32 ld.exe' 13519 # FIXME: first we should search . and the directory the executable is in 13520 shlibpath_var=PATH 13521 ;; 13522 13523darwin* | rhapsody*) 13524 dynamic_linker="$host_os dyld" 13525 version_type=darwin 13526 need_lib_prefix=no 13527 need_version=no 13528 # FIXME: Relying on posixy $() will cause problems for 13529 # cross-compilation, but unfortunately the echo tests do not 13530 # yet detect zsh echo's removal of \ escapes. 13531 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13532 soname_spec='${libname}${release}${major}$shared_ext' 13533 shlibpath_overrides_runpath=yes 13534 shlibpath_var=DYLD_LIBRARY_PATH 13535 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 13536 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13537 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 13538 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"` 13539 fi 13540 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13541 ;; 13542 13543dgux*) 13544 version_type=linux 13545 need_lib_prefix=no 13546 need_version=no 13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13548 soname_spec='${libname}${release}${shared_ext}$major' 13549 shlibpath_var=LD_LIBRARY_PATH 13550 ;; 13551 13552freebsd1*) 13553 dynamic_linker=no 13554 ;; 13555 13556freebsd*) 13557 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 13558 version_type=freebsd-$objformat 13559 case $version_type in 13560 freebsd-elf*) 13561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13562 need_version=no 13563 need_lib_prefix=no 13564 ;; 13565 freebsd-*) 13566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13567 need_version=yes 13568 ;; 13569 esac 13570 shlibpath_var=LD_LIBRARY_PATH 13571 case $host_os in 13572 freebsd2*) 13573 shlibpath_overrides_runpath=yes 13574 ;; 13575 freebsd3.01* | freebsdelf3.01*) 13576 shlibpath_overrides_runpath=yes 13577 hardcode_into_libs=yes 13578 ;; 13579 *) # from 3.2 on 13580 shlibpath_overrides_runpath=no 13581 hardcode_into_libs=yes 13582 ;; 13583 esac 13584 ;; 13585 13586gnu*) 13587 version_type=linux 13588 need_lib_prefix=no 13589 need_version=no 13590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13591 soname_spec='${libname}${release}${shared_ext}$major' 13592 shlibpath_var=LD_LIBRARY_PATH 13593 hardcode_into_libs=yes 13594 ;; 13595 13596hpux9* | hpux10* | hpux11*) 13597 # Give a soname corresponding to the major version so that dld.sl refuses to 13598 # link against other versions. 13599 version_type=sunos 13600 need_lib_prefix=no 13601 need_version=no 13602 case "$host_cpu" in 13603 ia64*) 13604 shrext='.so' 13605 hardcode_into_libs=yes 13606 dynamic_linker="$host_os dld.so" 13607 shlibpath_var=LD_LIBRARY_PATH 13608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13610 soname_spec='${libname}${release}${shared_ext}$major' 13611 if test "X$HPUX_IA64_MODE" = X32; then 13612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13613 else 13614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13615 fi 13616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13617 ;; 13618 hppa*64*) 13619 shrext='.sl' 13620 hardcode_into_libs=yes 13621 dynamic_linker="$host_os dld.sl" 13622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13625 soname_spec='${libname}${release}${shared_ext}$major' 13626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13628 ;; 13629 *) 13630 shrext='.sl' 13631 dynamic_linker="$host_os dld.sl" 13632 shlibpath_var=SHLIB_PATH 13633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13635 soname_spec='${libname}${release}${shared_ext}$major' 13636 ;; 13637 esac 13638 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13639 postinstall_cmds='chmod 555 $lib' 13640 ;; 13641 13642irix5* | irix6* | nonstopux*) 13643 case $host_os in 13644 nonstopux*) version_type=nonstopux ;; 13645 *) 13646 if test "$lt_cv_prog_gnu_ld" = yes; then 13647 version_type=linux 13648 else 13649 version_type=irix 13650 fi ;; 13651 esac 13652 need_lib_prefix=no 13653 need_version=no 13654 soname_spec='${libname}${release}${shared_ext}$major' 13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13656 case $host_os in 13657 irix5* | nonstopux*) 13658 libsuff= shlibsuff= 13659 ;; 13660 *) 13661 case $LD in # libtool.m4 will add one of these switches to LD 13662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13663 libsuff= shlibsuff= libmagic=32-bit;; 13664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13665 libsuff=32 shlibsuff=N32 libmagic=N32;; 13666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13667 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13668 *) libsuff= shlibsuff= libmagic=never-match;; 13669 esac 13670 ;; 13671 esac 13672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13673 shlibpath_overrides_runpath=no 13674 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13675 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13676 hardcode_into_libs=yes 13677 ;; 13678 13679# No shared lib support for Linux oldld, aout, or coff. 13680linux*oldld* | linux*aout* | linux*coff*) 13681 dynamic_linker=no 13682 ;; 13683 13684# This must be Linux ELF. 13685linux*) 13686 version_type=linux 13687 need_lib_prefix=no 13688 need_version=no 13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13690 soname_spec='${libname}${release}${shared_ext}$major' 13691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13692 shlibpath_var=LD_LIBRARY_PATH 13693 shlibpath_overrides_runpath=no 13694 # This implies no fast_install, which is unacceptable. 13695 # Some rework will be needed to allow for fast_install 13696 # before this can be enabled. 13697 hardcode_into_libs=yes 13698 13699 # We used to test for /lib/ld.so.1 and disable shared libraries on 13700 # powerpc, because MkLinux only supported shared libraries with the 13701 # GNU dynamic linker. Since this was broken with cross compilers, 13702 # most powerpc-linux boxes support dynamic linking these days and 13703 # people can always --disable-shared, the test was removed, and we 13704 # assume the GNU/Linux dynamic linker is in use. 13705 dynamic_linker='GNU/Linux ld.so' 13706 ;; 13707 13708netbsd*) 13709 version_type=sunos 13710 need_lib_prefix=no 13711 need_version=no 13712 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13715 dynamic_linker='NetBSD (a.out) ld.so' 13716 else 13717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 13718 soname_spec='${libname}${release}${shared_ext}$major' 13719 dynamic_linker='NetBSD ld.elf_so' 13720 fi 13721 shlibpath_var=LD_LIBRARY_PATH 13722 shlibpath_overrides_runpath=yes 13723 hardcode_into_libs=yes 13724 ;; 13725 13726newsos6) 13727 version_type=linux 13728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13729 shlibpath_var=LD_LIBRARY_PATH 13730 shlibpath_overrides_runpath=yes 13731 ;; 13732 13733nto-qnx) 13734 version_type=linux 13735 need_lib_prefix=no 13736 need_version=no 13737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13738 soname_spec='${libname}${release}${shared_ext}$major' 13739 shlibpath_var=LD_LIBRARY_PATH 13740 shlibpath_overrides_runpath=yes 13741 ;; 13742 13743openbsd*) 13744 version_type=sunos 13745 need_lib_prefix=no 13746 need_version=no 13747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13749 shlibpath_var=LD_LIBRARY_PATH 13750 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13751 case $host_os in 13752 openbsd2.[89] | openbsd2.[89].*) 13753 shlibpath_overrides_runpath=no 13754 ;; 13755 *) 13756 shlibpath_overrides_runpath=yes 13757 ;; 13758 esac 13759 else 13760 shlibpath_overrides_runpath=yes 13761 fi 13762 ;; 13763 13764os2*) 13765 libname_spec='$name' 13766 shrext=".dll" 13767 need_lib_prefix=no 13768 library_names_spec='$libname${shared_ext} $libname.a' 13769 dynamic_linker='OS/2 ld.exe' 13770 shlibpath_var=LIBPATH 13771 ;; 13772 13773osf3* | osf4* | osf5*) 13774 version_type=osf 13775 need_lib_prefix=no 13776 need_version=no 13777 soname_spec='${libname}${release}${shared_ext}$major' 13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13779 shlibpath_var=LD_LIBRARY_PATH 13780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13782 ;; 13783 13784sco3.2v5*) 13785 version_type=osf 13786 soname_spec='${libname}${release}${shared_ext}$major' 13787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13788 shlibpath_var=LD_LIBRARY_PATH 13789 ;; 13790 13791solaris*) 13792 version_type=linux 13793 need_lib_prefix=no 13794 need_version=no 13795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13796 soname_spec='${libname}${release}${shared_ext}$major' 13797 shlibpath_var=LD_LIBRARY_PATH 13798 shlibpath_overrides_runpath=yes 13799 hardcode_into_libs=yes 13800 # ldd complains unless libraries are executable 13801 postinstall_cmds='chmod +x $lib' 13802 ;; 13803 13804sunos4*) 13805 version_type=sunos 13806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13807 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13808 shlibpath_var=LD_LIBRARY_PATH 13809 shlibpath_overrides_runpath=yes 13810 if test "$with_gnu_ld" = yes; then 13811 need_lib_prefix=no 13812 fi 13813 need_version=yes 13814 ;; 13815 13816sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13817 version_type=linux 13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13819 soname_spec='${libname}${release}${shared_ext}$major' 13820 shlibpath_var=LD_LIBRARY_PATH 13821 case $host_vendor in 13822 sni) 13823 shlibpath_overrides_runpath=no 13824 need_lib_prefix=no 13825 export_dynamic_flag_spec='${wl}-Blargedynsym' 13826 runpath_var=LD_RUN_PATH 13827 ;; 13828 siemens) 13829 need_lib_prefix=no 13830 ;; 13831 motorola) 13832 need_lib_prefix=no 13833 need_version=no 13834 shlibpath_overrides_runpath=no 13835 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13836 ;; 13837 esac 13838 ;; 13839 13840sysv4*MP*) 13841 if test -d /usr/nec ;then 13842 version_type=linux 13843 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13844 soname_spec='$libname${shared_ext}.$major' 13845 shlibpath_var=LD_LIBRARY_PATH 13846 fi 13847 ;; 13848 13849uts4*) 13850 version_type=linux 13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13852 soname_spec='${libname}${release}${shared_ext}$major' 13853 shlibpath_var=LD_LIBRARY_PATH 13854 ;; 13855 13856*) 13857 dynamic_linker=no 13858 ;; 13859esac 13860echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13861echo "${ECHO_T}$dynamic_linker" >&6 13862test "$dynamic_linker" = no && can_build_shared=no 13863 13864 13865# The else clause should only fire when bootstrapping the 13866# libtool distribution, otherwise you forgot to ship ltmain.sh 13867# with your package, and you will get complaints that there are 13868# no rules to generate ltmain.sh. 13869if test -f "$ltmain"; then 13870 # See if we are running on zsh, and set the options which allow our commands through 13871 # without removal of \ escapes. 13872 if test -n "${ZSH_VERSION+set}" ; then 13873 setopt NO_GLOB_SUBST 13874 fi 13875 # Now quote all the things that may contain metacharacters while being 13876 # careful not to overquote the AC_SUBSTed values. We take copies of the 13877 # variables and quote the copies for generation of the libtool script. 13878 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 13879 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13880 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13881 deplibs_check_method reload_flag reload_cmds need_locks \ 13882 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13883 lt_cv_sys_global_symbol_to_c_name_address \ 13884 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13885 old_postinstall_cmds old_postuninstall_cmds \ 13886 compiler_F77 \ 13887 CC_F77 \ 13888 LD_F77 \ 13889 lt_prog_compiler_wl_F77 \ 13890 lt_prog_compiler_pic_F77 \ 13891 lt_prog_compiler_static_F77 \ 13892 lt_prog_compiler_no_builtin_flag_F77 \ 13893 export_dynamic_flag_spec_F77 \ 13894 thread_safe_flag_spec_F77 \ 13895 whole_archive_flag_spec_F77 \ 13896 enable_shared_with_static_runtimes_F77 \ 13897 old_archive_cmds_F77 \ 13898 old_archive_from_new_cmds_F77 \ 13899 predep_objects_F77 \ 13900 postdep_objects_F77 \ 13901 predeps_F77 \ 13902 postdeps_F77 \ 13903 compiler_lib_search_path_F77 \ 13904 archive_cmds_F77 \ 13905 archive_expsym_cmds_F77 \ 13906 postinstall_cmds_F77 \ 13907 postuninstall_cmds_F77 \ 13908 old_archive_from_expsyms_cmds_F77 \ 13909 allow_undefined_flag_F77 \ 13910 no_undefined_flag_F77 \ 13911 export_symbols_cmds_F77 \ 13912 hardcode_libdir_flag_spec_F77 \ 13913 hardcode_libdir_flag_spec_ld_F77 \ 13914 hardcode_libdir_separator_F77 \ 13915 hardcode_automatic_F77 \ 13916 module_cmds_F77 \ 13917 module_expsym_cmds_F77 \ 13918 lt_cv_prog_compiler_c_o_F77 \ 13919 exclude_expsyms_F77 \ 13920 include_expsyms_F77; do 13921 13922 case $var in 13923 old_archive_cmds_F77 | \ 13924 old_archive_from_new_cmds_F77 | \ 13925 archive_cmds_F77 | \ 13926 archive_expsym_cmds_F77 | \ 13927 module_cmds_F77 | \ 13928 module_expsym_cmds_F77 | \ 13929 old_archive_from_expsyms_cmds_F77 | \ 13930 export_symbols_cmds_F77 | \ 13931 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13932 postinstall_cmds | postuninstall_cmds | \ 13933 old_postinstall_cmds | old_postuninstall_cmds | \ 13934 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13935 # Double-quote double-evaled strings. 13936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13937 ;; 13938 *) 13939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13940 ;; 13941 esac 13942 done 13943 13944 case $lt_echo in 13945 *'\$0 --fallback-echo"') 13946 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13947 ;; 13948 esac 13949 13950cfgfile="$ofile" 13951 13952 cat <<__EOF__ >> "$cfgfile" 13953# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13954 13955# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13956 13957# Shell to use when invoking shell scripts. 13958SHELL=$lt_SHELL 13959 13960# Whether or not to build shared libraries. 13961build_libtool_libs=$enable_shared 13962 13963# Whether or not to build static libraries. 13964build_old_libs=$enable_static 13965 13966# Whether or not to add -lc for building shared libraries. 13967build_libtool_need_lc=$archive_cmds_need_lc_F77 13968 13969# Whether or not to disallow shared libs when runtime libs are static 13970allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 13971 13972# Whether or not to optimize for fast installation. 13973fast_install=$enable_fast_install 13974 13975# The host system. 13976host_alias=$host_alias 13977host=$host 13978 13979# An echo program that does not interpret backslashes. 13980echo=$lt_echo 13981 13982# The archiver. 13983AR=$lt_AR 13984AR_FLAGS=$lt_AR_FLAGS 13985 13986# A C compiler. 13987LTCC=$lt_LTCC 13988 13989# A language-specific compiler. 13990CC=$lt_compiler_F77 13991 13992# Is the compiler the GNU C compiler? 13993with_gcc=$GCC_F77 13994 13995# An ERE matcher. 13996EGREP=$lt_EGREP 13997 13998# The linker used to build libraries. 13999LD=$lt_LD_F77 14000 14001# Whether we need hard or soft links. 14002LN_S=$lt_LN_S 14003 14004# A BSD-compatible nm program. 14005NM=$lt_NM 14006 14007# A symbol stripping program 14008STRIP=$STRIP 14009 14010# Used to examine libraries when file_magic_cmd begins "file" 14011MAGIC_CMD=$MAGIC_CMD 14012 14013# Used on cygwin: DLL creation program. 14014DLLTOOL="$DLLTOOL" 14015 14016# Used on cygwin: object dumper. 14017OBJDUMP="$OBJDUMP" 14018 14019# Used on cygwin: assembler. 14020AS="$AS" 14021 14022# The name of the directory that contains temporary libtool files. 14023objdir=$objdir 14024 14025# How to create reloadable object files. 14026reload_flag=$lt_reload_flag 14027reload_cmds=$lt_reload_cmds 14028 14029# How to pass a linker flag through the compiler. 14030wl=$lt_lt_prog_compiler_wl_F77 14031 14032# Object file suffix (normally "o"). 14033objext="$ac_objext" 14034 14035# Old archive suffix (normally "a"). 14036libext="$libext" 14037 14038# Shared library suffix (normally ".so"). 14039shrext='$shrext' 14040 14041# Executable file suffix (normally ""). 14042exeext="$exeext" 14043 14044# Additional compiler flags for building library objects. 14045pic_flag=$lt_lt_prog_compiler_pic_F77 14046pic_mode=$pic_mode 14047 14048# What is the maximum length of a command? 14049max_cmd_len=$lt_cv_sys_max_cmd_len 14050 14051# Does compiler simultaneously support -c and -o options? 14052compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14053 14054# Must we lock files when doing compilation ? 14055need_locks=$lt_need_locks 14056 14057# Do we need the lib prefix for modules? 14058need_lib_prefix=$need_lib_prefix 14059 14060# Do we need a version for libraries? 14061need_version=$need_version 14062 14063# Whether dlopen is supported. 14064dlopen_support=$enable_dlopen 14065 14066# Whether dlopen of programs is supported. 14067dlopen_self=$enable_dlopen_self 14068 14069# Whether dlopen of statically linked programs is supported. 14070dlopen_self_static=$enable_dlopen_self_static 14071 14072# Compiler flag to prevent dynamic linking. 14073link_static_flag=$lt_lt_prog_compiler_static_F77 14074 14075# Compiler flag to turn off builtin functions. 14076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14077 14078# Compiler flag to allow reflexive dlopens. 14079export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14080 14081# Compiler flag to generate shared objects directly from archives. 14082whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14083 14084# Compiler flag to generate thread-safe objects. 14085thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14086 14087# Library versioning type. 14088version_type=$version_type 14089 14090# Format of library name prefix. 14091libname_spec=$lt_libname_spec 14092 14093# List of archive names. First name is the real one, the rest are links. 14094# The last name is the one that the linker finds with -lNAME. 14095library_names_spec=$lt_library_names_spec 14096 14097# The coded name of the library, if different from the real name. 14098soname_spec=$lt_soname_spec 14099 14100# Commands used to build and install an old-style archive. 14101RANLIB=$lt_RANLIB 14102old_archive_cmds=$lt_old_archive_cmds_F77 14103old_postinstall_cmds=$lt_old_postinstall_cmds 14104old_postuninstall_cmds=$lt_old_postuninstall_cmds 14105 14106# Create an old-style archive from a shared archive. 14107old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14108 14109# Create a temporary old-style archive to link instead of a shared archive. 14110old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14111 14112# Commands used to build and install a shared archive. 14113archive_cmds=$lt_archive_cmds_F77 14114archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14115postinstall_cmds=$lt_postinstall_cmds 14116postuninstall_cmds=$lt_postuninstall_cmds 14117 14118# Commands used to build a loadable module (assumed same as above if empty) 14119module_cmds=$lt_module_cmds_F77 14120module_expsym_cmds=$lt_module_expsym_cmds_F77 14121 14122# Commands to strip libraries. 14123old_striplib=$lt_old_striplib 14124striplib=$lt_striplib 14125 14126# Dependencies to place before the objects being linked to create a 14127# shared library. 14128predep_objects=$lt_predep_objects_F77 14129 14130# Dependencies to place after the objects being linked to create a 14131# shared library. 14132postdep_objects=$lt_postdep_objects_F77 14133 14134# Dependencies to place before the objects being linked to create a 14135# shared library. 14136predeps=$lt_predeps_F77 14137 14138# Dependencies to place after the objects being linked to create a 14139# shared library. 14140postdeps=$lt_postdeps_F77 14141 14142# The library search path used internally by the compiler when linking 14143# a shared library. 14144compiler_lib_search_path=$lt_compiler_lib_search_path_F77 14145 14146# Method to check whether dependent libraries are shared objects. 14147deplibs_check_method=$lt_deplibs_check_method 14148 14149# Command to use when deplibs_check_method == file_magic. 14150file_magic_cmd=$lt_file_magic_cmd 14151 14152# Flag that allows shared libraries with undefined symbols to be built. 14153allow_undefined_flag=$lt_allow_undefined_flag_F77 14154 14155# Flag that forces no undefined symbols. 14156no_undefined_flag=$lt_no_undefined_flag_F77 14157 14158# Commands used to finish a libtool library installation in a directory. 14159finish_cmds=$lt_finish_cmds 14160 14161# Same as above, but a single script fragment to be evaled but not shown. 14162finish_eval=$lt_finish_eval 14163 14164# Take the output of nm and produce a listing of raw symbols and C names. 14165global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14166 14167# Transform the output of nm in a proper C declaration 14168global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14169 14170# Transform the output of nm in a C name address pair 14171global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14172 14173# This is the shared library runtime path variable. 14174runpath_var=$runpath_var 14175 14176# This is the shared library path variable. 14177shlibpath_var=$shlibpath_var 14178 14179# Is shlibpath searched before the hard-coded library search path? 14180shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14181 14182# How to hardcode a shared library path into an executable. 14183hardcode_action=$hardcode_action_F77 14184 14185# Whether we should hardcode library paths into libraries. 14186hardcode_into_libs=$hardcode_into_libs 14187 14188# Flag to hardcode \$libdir into a binary during linking. 14189# This must work even if \$libdir does not exist. 14190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 14191 14192# If ld is used when linking, flag to hardcode \$libdir into 14193# a binary during linking. This must work even if \$libdir does 14194# not exist. 14195hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 14196 14197# Whether we need a single -rpath flag with a separated argument. 14198hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 14199 14200# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14201# resulting binary. 14202hardcode_direct=$hardcode_direct_F77 14203 14204# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14205# resulting binary. 14206hardcode_minus_L=$hardcode_minus_L_F77 14207 14208# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14209# the resulting binary. 14210hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 14211 14212# Set to yes if building a shared library automatically hardcodes DIR into the library 14213# and all subsequent libraries and executables linked against it. 14214hardcode_automatic=$hardcode_automatic_F77 14215 14216# Variables whose values should be saved in libtool wrapper scripts and 14217# restored at relink time. 14218variables_saved_for_relink="$variables_saved_for_relink" 14219 14220# Whether libtool must link a program against all its dependency libraries. 14221link_all_deplibs=$link_all_deplibs_F77 14222 14223# Compile-time system search path for libraries 14224sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14225 14226# Run-time system search path for libraries 14227sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14228 14229# Fix the shell variable \$srcfile for the compiler. 14230fix_srcfile_path="$fix_srcfile_path_F77" 14231 14232# Set to yes if exported symbols are required. 14233always_export_symbols=$always_export_symbols_F77 14234 14235# The commands to list exported symbols. 14236export_symbols_cmds=$lt_export_symbols_cmds_F77 14237 14238# The commands to extract the exported symbol list from a shared archive. 14239extract_expsyms_cmds=$lt_extract_expsyms_cmds 14240 14241# Symbols that should not be listed in the preloaded symbols. 14242exclude_expsyms=$lt_exclude_expsyms_F77 14243 14244# Symbols that must always be exported. 14245include_expsyms=$lt_include_expsyms_F77 14246 14247# ### END LIBTOOL TAG CONFIG: $tagname 14248 14249__EOF__ 14250 14251 14252else 14253 # If there is no Makefile yet, we rely on a make rule to execute 14254 # `config.status --recheck' to rerun these tests and create the 14255 # libtool script then. 14256 test -f Makefile && make "$ltmain" 14257fi 14258 14259 14260ac_ext=c 14261ac_cpp='$CPP $CPPFLAGS' 14262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14264ac_compiler_gnu=$ac_cv_c_compiler_gnu 14265 14266CC="$lt_save_CC" 14267 14268 else 14269 tagname="" 14270 fi 14271 ;; 14272 14273 GCJ) 14274 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14275 14276 14277 14278# Source file extension for Java test sources. 14279ac_ext=java 14280 14281# Object file extension for compiled Java test sources. 14282objext=o 14283objext_GCJ=$objext 14284 14285# Code to be used in simple compile tests 14286lt_simple_compile_test_code="class foo {}\n" 14287 14288# Code to be used in simple link tests 14289lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 14290 14291# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14292 14293# If no C compiler was specified, use CC. 14294LTCC=${LTCC-"$CC"} 14295 14296# Allow CC to be a program name with arguments. 14297compiler=$CC 14298 14299 14300# Allow CC to be a program name with arguments. 14301lt_save_CC="$CC" 14302CC=${GCJ-"gcj"} 14303compiler=$CC 14304compiler_GCJ=$CC 14305 14306# GCJ did not exist at the time GCC didn't implicitly link libc in. 14307archive_cmds_need_lc_GCJ=no 14308 14309 14310lt_prog_compiler_no_builtin_flag_GCJ= 14311 14312if test "$GCC" = yes; then 14313 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 14314 14315 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14316echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 14317if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 14318 echo $ECHO_N "(cached) $ECHO_C" >&6 14319else 14320 lt_cv_prog_compiler_rtti_exceptions=no 14321 ac_outfile=conftest.$ac_objext 14322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14323 lt_compiler_flag="-fno-rtti -fno-exceptions" 14324 # Insert the option either (1) after the last *FLAGS variable, or 14325 # (2) before a word containing "conftest.", or (3) at the end. 14326 # Note that $ac_compile itself does not contain backslashes and begins 14327 # with a dollar sign (not a hyphen), so the echo should work correctly. 14328 # The option is referenced via a variable to avoid confusing sed. 14329 lt_compile=`echo "$ac_compile" | $SED \ 14330 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14332 -e 's:$: $lt_compiler_flag:'` 14333 (eval echo "\"\$as_me:14333: $lt_compile\"" >&5) 14334 (eval "$lt_compile" 2>conftest.err) 14335 ac_status=$? 14336 cat conftest.err >&5 14337 echo "$as_me:14337: \$? = $ac_status" >&5 14338 if (exit $ac_status) && test -s "$ac_outfile"; then 14339 # The compiler can only warn and ignore the option if not recognized 14340 # So say no if there are warnings 14341 if test ! -s conftest.err; then 14342 lt_cv_prog_compiler_rtti_exceptions=yes 14343 fi 14344 fi 14345 $rm conftest* 14346 14347fi 14348echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14349echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 14350 14351if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14352 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 14353else 14354 : 14355fi 14356 14357fi 14358 14359lt_prog_compiler_wl_GCJ= 14360lt_prog_compiler_pic_GCJ= 14361lt_prog_compiler_static_GCJ= 14362 14363echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14364echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 14365 14366 if test "$GCC" = yes; then 14367 lt_prog_compiler_wl_GCJ='-Wl,' 14368 lt_prog_compiler_static_GCJ='-static' 14369 14370 case $host_os in 14371 aix*) 14372 # All AIX code is PIC. 14373 if test "$host_cpu" = ia64; then 14374 # AIX 5 now supports IA64 processor 14375 lt_prog_compiler_static_GCJ='-Bstatic' 14376 fi 14377 ;; 14378 14379 amigaos*) 14380 # FIXME: we need at least 68020 code to build shared libraries, but 14381 # adding the `-m68020' flag to GCC prevents building anything better, 14382 # like `-m68040'. 14383 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 14384 ;; 14385 14386 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14387 # PIC is the default for these OSes. 14388 ;; 14389 14390 mingw* | pw32* | os2*) 14391 # This hack is so that the source file can tell whether it is being 14392 # built for inclusion in a dll (and should export symbols for example). 14393 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14394 ;; 14395 14396 darwin* | rhapsody*) 14397 # PIC is the default on this platform 14398 # Common symbols not allowed in MH_DYLIB files 14399 lt_prog_compiler_pic_GCJ='-fno-common' 14400 ;; 14401 14402 msdosdjgpp*) 14403 # Just because we use GCC doesn't mean we suddenly get shared libraries 14404 # on systems that don't support them. 14405 lt_prog_compiler_can_build_shared_GCJ=no 14406 enable_shared=no 14407 ;; 14408 14409 sysv4*MP*) 14410 if test -d /usr/nec; then 14411 lt_prog_compiler_pic_GCJ=-Kconform_pic 14412 fi 14413 ;; 14414 14415 hpux*) 14416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14417 # not for PA HP-UX. 14418 case "$host_cpu" in 14419 hppa*64*|ia64*) 14420 # +Z the default 14421 ;; 14422 *) 14423 lt_prog_compiler_pic_GCJ='-fPIC' 14424 ;; 14425 esac 14426 ;; 14427 14428 *) 14429 lt_prog_compiler_pic_GCJ='-fPIC' 14430 ;; 14431 esac 14432 else 14433 # PORTME Check for flag to pass linker flags through the system compiler. 14434 case $host_os in 14435 aix*) 14436 lt_prog_compiler_wl_GCJ='-Wl,' 14437 if test "$host_cpu" = ia64; then 14438 # AIX 5 now supports IA64 processor 14439 lt_prog_compiler_static_GCJ='-Bstatic' 14440 else 14441 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 14442 fi 14443 ;; 14444 14445 mingw* | pw32* | os2*) 14446 # This hack is so that the source file can tell whether it is being 14447 # built for inclusion in a dll (and should export symbols for example). 14448 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 14449 ;; 14450 14451 hpux9* | hpux10* | hpux11*) 14452 lt_prog_compiler_wl_GCJ='-Wl,' 14453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14454 # not for PA HP-UX. 14455 case "$host_cpu" in 14456 hppa*64*|ia64*) 14457 # +Z the default 14458 ;; 14459 *) 14460 lt_prog_compiler_pic_GCJ='+Z' 14461 ;; 14462 esac 14463 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14464 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 14465 ;; 14466 14467 irix5* | irix6* | nonstopux*) 14468 lt_prog_compiler_wl_GCJ='-Wl,' 14469 # PIC (with -KPIC) is the default. 14470 lt_prog_compiler_static_GCJ='-non_shared' 14471 ;; 14472 14473 newsos6) 14474 lt_prog_compiler_pic_GCJ='-KPIC' 14475 lt_prog_compiler_static_GCJ='-Bstatic' 14476 ;; 14477 14478 linux*) 14479 case $CC in 14480 icc|ecc) 14481 lt_prog_compiler_wl_GCJ='-Wl,' 14482 lt_prog_compiler_pic_GCJ='-KPIC' 14483 lt_prog_compiler_static_GCJ='-static' 14484 ;; 14485 ccc) 14486 lt_prog_compiler_wl_GCJ='-Wl,' 14487 # All Alpha code is PIC. 14488 lt_prog_compiler_static_GCJ='-non_shared' 14489 ;; 14490 esac 14491 ;; 14492 14493 osf3* | osf4* | osf5*) 14494 lt_prog_compiler_wl_GCJ='-Wl,' 14495 # All OSF/1 code is PIC. 14496 lt_prog_compiler_static_GCJ='-non_shared' 14497 ;; 14498 14499 sco3.2v5*) 14500 lt_prog_compiler_pic_GCJ='-Kpic' 14501 lt_prog_compiler_static_GCJ='-dn' 14502 ;; 14503 14504 solaris*) 14505 lt_prog_compiler_wl_GCJ='-Wl,' 14506 lt_prog_compiler_pic_GCJ='-KPIC' 14507 lt_prog_compiler_static_GCJ='-Bstatic' 14508 ;; 14509 14510 sunos4*) 14511 lt_prog_compiler_wl_GCJ='-Qoption ld ' 14512 lt_prog_compiler_pic_GCJ='-PIC' 14513 lt_prog_compiler_static_GCJ='-Bstatic' 14514 ;; 14515 14516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14517 lt_prog_compiler_wl_GCJ='-Wl,' 14518 lt_prog_compiler_pic_GCJ='-KPIC' 14519 lt_prog_compiler_static_GCJ='-Bstatic' 14520 ;; 14521 14522 sysv4*MP*) 14523 if test -d /usr/nec ;then 14524 lt_prog_compiler_pic_GCJ='-Kconform_pic' 14525 lt_prog_compiler_static_GCJ='-Bstatic' 14526 fi 14527 ;; 14528 14529 uts4*) 14530 lt_prog_compiler_pic_GCJ='-pic' 14531 lt_prog_compiler_static_GCJ='-Bstatic' 14532 ;; 14533 14534 *) 14535 lt_prog_compiler_can_build_shared_GCJ=no 14536 ;; 14537 esac 14538 fi 14539 14540echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 14541echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 14542 14543# 14544# Check to make sure the PIC flag actually works. 14545# 14546if test -n "$lt_prog_compiler_pic_GCJ"; then 14547 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 14548echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 14549if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 14550 echo $ECHO_N "(cached) $ECHO_C" >&6 14551else 14552 lt_prog_compiler_pic_works_GCJ=no 14553 ac_outfile=conftest.$ac_objext 14554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14555 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 14556 # Insert the option either (1) after the last *FLAGS variable, or 14557 # (2) before a word containing "conftest.", or (3) at the end. 14558 # Note that $ac_compile itself does not contain backslashes and begins 14559 # with a dollar sign (not a hyphen), so the echo should work correctly. 14560 # The option is referenced via a variable to avoid confusing sed. 14561 lt_compile=`echo "$ac_compile" | $SED \ 14562 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14564 -e 's:$: $lt_compiler_flag:'` 14565 (eval echo "\"\$as_me:14565: $lt_compile\"" >&5) 14566 (eval "$lt_compile" 2>conftest.err) 14567 ac_status=$? 14568 cat conftest.err >&5 14569 echo "$as_me:14569: \$? = $ac_status" >&5 14570 if (exit $ac_status) && test -s "$ac_outfile"; then 14571 # The compiler can only warn and ignore the option if not recognized 14572 # So say no if there are warnings 14573 if test ! -s conftest.err; then 14574 lt_prog_compiler_pic_works_GCJ=yes 14575 fi 14576 fi 14577 $rm conftest* 14578 14579fi 14580echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 14581echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 14582 14583if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 14584 case $lt_prog_compiler_pic_GCJ in 14585 "" | " "*) ;; 14586 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 14587 esac 14588else 14589 lt_prog_compiler_pic_GCJ= 14590 lt_prog_compiler_can_build_shared_GCJ=no 14591fi 14592 14593fi 14594case "$host_os" in 14595 # For platforms which do not support PIC, -DPIC is meaningless: 14596 *djgpp*) 14597 lt_prog_compiler_pic_GCJ= 14598 ;; 14599 *) 14600 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 14601 ;; 14602esac 14603 14604echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14605echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 14606if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 14607 echo $ECHO_N "(cached) $ECHO_C" >&6 14608else 14609 lt_cv_prog_compiler_c_o_GCJ=no 14610 $rm -r conftest 2>/dev/null 14611 mkdir conftest 14612 cd conftest 14613 mkdir out 14614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14615 14616 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 14617 # that will create temporary files in the current directory regardless of 14618 # the output directory. Thus, making CWD read-only will cause this test 14619 # to fail, enabling locking or at least warning the user not to do parallel 14620 # builds. 14621 chmod -w . 14622 14623 lt_compiler_flag="-o out/conftest2.$ac_objext" 14624 # Insert the option either (1) after the last *FLAGS variable, or 14625 # (2) before a word containing "conftest.", or (3) at the end. 14626 # Note that $ac_compile itself does not contain backslashes and begins 14627 # with a dollar sign (not a hyphen), so the echo should work correctly. 14628 lt_compile=`echo "$ac_compile" | $SED \ 14629 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14631 -e 's:$: $lt_compiler_flag:'` 14632 (eval echo "\"\$as_me:14632: $lt_compile\"" >&5) 14633 (eval "$lt_compile" 2>out/conftest.err) 14634 ac_status=$? 14635 cat out/conftest.err >&5 14636 echo "$as_me:14636: \$? = $ac_status" >&5 14637 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14638 then 14639 # The compiler can only warn and ignore the option if not recognized 14640 # So say no if there are warnings 14641 if test ! -s out/conftest.err; then 14642 lt_cv_prog_compiler_c_o_GCJ=yes 14643 fi 14644 fi 14645 chmod u+w . 14646 $rm conftest* out/* 14647 rmdir out 14648 cd .. 14649 rmdir conftest 14650 $rm conftest* 14651 14652fi 14653echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 14654echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 14655 14656 14657hard_links="nottested" 14658if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 14659 # do not overwrite the value of need_locks provided by the user 14660 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14661echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 14662 hard_links=yes 14663 $rm conftest* 14664 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14665 touch conftest.a 14666 ln conftest.a conftest.b 2>&5 || hard_links=no 14667 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14668 echo "$as_me:$LINENO: result: $hard_links" >&5 14669echo "${ECHO_T}$hard_links" >&6 14670 if test "$hard_links" = no; then 14671 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14672echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14673 need_locks=warn 14674 fi 14675else 14676 need_locks=no 14677fi 14678 14679echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14680echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14681 14682 runpath_var= 14683 allow_undefined_flag_GCJ= 14684 enable_shared_with_static_runtimes_GCJ=no 14685 archive_cmds_GCJ= 14686 archive_expsym_cmds_GCJ= 14687 old_archive_From_new_cmds_GCJ= 14688 old_archive_from_expsyms_cmds_GCJ= 14689 export_dynamic_flag_spec_GCJ= 14690 whole_archive_flag_spec_GCJ= 14691 thread_safe_flag_spec_GCJ= 14692 hardcode_libdir_flag_spec_GCJ= 14693 hardcode_libdir_flag_spec_ld_GCJ= 14694 hardcode_libdir_separator_GCJ= 14695 hardcode_direct_GCJ=no 14696 hardcode_minus_L_GCJ=no 14697 hardcode_shlibpath_var_GCJ=unsupported 14698 link_all_deplibs_GCJ=unknown 14699 hardcode_automatic_GCJ=no 14700 module_cmds_GCJ= 14701 module_expsym_cmds_GCJ= 14702 always_export_symbols_GCJ=no 14703 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14704 # include_expsyms should be a list of space-separated symbols to be *always* 14705 # included in the symbol list 14706 include_expsyms_GCJ= 14707 # exclude_expsyms can be an extended regexp of symbols to exclude 14708 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14710 # as well as any symbol that contains `d'. 14711 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 14712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14713 # platforms (ab)use it in PIC code, but their linkers get confused if 14714 # the symbol is explicitly referenced. Since portable code cannot 14715 # rely on this symbol name, it's probably fine to never include it in 14716 # preloaded symbol tables. 14717 extract_expsyms_cmds= 14718 14719 case $host_os in 14720 cygwin* | mingw* | pw32*) 14721 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14722 # When not using gcc, we currently assume that we are using 14723 # Microsoft Visual C++. 14724 if test "$GCC" != yes; then 14725 with_gnu_ld=no 14726 fi 14727 ;; 14728 openbsd*) 14729 with_gnu_ld=no 14730 ;; 14731 esac 14732 14733 ld_shlibs_GCJ=yes 14734 if test "$with_gnu_ld" = yes; then 14735 # If archive_cmds runs LD, not CC, wlarc should be empty 14736 wlarc='${wl}' 14737 14738 # See if GNU ld supports shared libraries. 14739 case $host_os in 14740 aix3* | aix4* | aix5*) 14741 # On AIX/PPC, the GNU linker is very broken 14742 if test "$host_cpu" != ia64; then 14743 ld_shlibs_GCJ=no 14744 cat <<EOF 1>&2 14745 14746*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14747*** to be unable to reliably create shared libraries on AIX. 14748*** Therefore, libtool is disabling shared libraries support. If you 14749*** really care for shared libraries, you may want to modify your PATH 14750*** so that a non-GNU linker is found, and then restart. 14751 14752EOF 14753 fi 14754 ;; 14755 14756 amigaos*) 14757 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)' 14758 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14759 hardcode_minus_L_GCJ=yes 14760 14761 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14762 # that the semantics of dynamic libraries on AmigaOS, at least up 14763 # to version 4, is to share data among multiple programs linked 14764 # with the same dynamic library. Since this doesn't match the 14765 # behavior of shared libraries on other platforms, we can't use 14766 # them. 14767 ld_shlibs_GCJ=no 14768 ;; 14769 14770 beos*) 14771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14772 allow_undefined_flag_GCJ=unsupported 14773 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14774 # support --undefined. This deserves some investigation. FIXME 14775 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14776 else 14777 ld_shlibs_GCJ=no 14778 fi 14779 ;; 14780 14781 cygwin* | mingw* | pw32*) 14782 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 14783 # as there is no search path for DLLs. 14784 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14785 allow_undefined_flag_GCJ=unsupported 14786 always_export_symbols_GCJ=no 14787 enable_shared_with_static_runtimes_GCJ=yes 14788 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14789 14790 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14791 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14792 # If the export-symbols file already is a .def file (1st line 14793 # is EXPORTS), use it as is; otherwise, prepend... 14794 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14795 cp $export_symbols $output_objdir/$soname.def; 14796 else 14797 echo EXPORTS > $output_objdir/$soname.def; 14798 cat $export_symbols >> $output_objdir/$soname.def; 14799 fi~ 14800 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14801 else 14802 ld_shlibs=no 14803 fi 14804 ;; 14805 14806 netbsd*) 14807 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14808 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14809 wlarc= 14810 else 14811 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14812 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14813 fi 14814 ;; 14815 14816 solaris* | sysv5*) 14817 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14818 ld_shlibs_GCJ=no 14819 cat <<EOF 1>&2 14820 14821*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14822*** create shared libraries on Solaris systems. Therefore, libtool 14823*** is disabling shared libraries support. We urge you to upgrade GNU 14824*** binutils to release 2.9.1 or newer. Another option is to modify 14825*** your PATH or compiler configuration so that the native linker is 14826*** used, and then restart. 14827 14828EOF 14829 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14830 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14831 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14832 else 14833 ld_shlibs_GCJ=no 14834 fi 14835 ;; 14836 14837 sunos4*) 14838 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14839 wlarc= 14840 hardcode_direct_GCJ=yes 14841 hardcode_shlibpath_var_GCJ=no 14842 ;; 14843 14844 *) 14845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14846 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14847 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14848 else 14849 ld_shlibs_GCJ=no 14850 fi 14851 ;; 14852 esac 14853 14854 if test "$ld_shlibs_GCJ" = yes; then 14855 runpath_var=LD_RUN_PATH 14856 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 14857 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 14858 # ancient GNU ld didn't support --whole-archive et. al. 14859 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14860 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14861 else 14862 whole_archive_flag_spec_GCJ= 14863 fi 14864 fi 14865 else 14866 # PORTME fill in a description of your system's linker (not GNU ld) 14867 case $host_os in 14868 aix3*) 14869 allow_undefined_flag_GCJ=unsupported 14870 always_export_symbols_GCJ=yes 14871 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' 14872 # Note: this linker hardcodes the directories in LIBPATH if there 14873 # are no directories specified by -L. 14874 hardcode_minus_L_GCJ=yes 14875 if test "$GCC" = yes && test -z "$link_static_flag"; then 14876 # Neither direct hardcoding nor static linking is supported with a 14877 # broken collect2. 14878 hardcode_direct_GCJ=unsupported 14879 fi 14880 ;; 14881 14882 aix4* | aix5*) 14883 if test "$host_cpu" = ia64; then 14884 # On IA64, the linker does run time linking by default, so we don't 14885 # have to do anything special. 14886 aix_use_runtimelinking=no 14887 exp_sym_flag='-Bexport' 14888 no_entry_flag="" 14889 else 14890 # If we're using GNU nm, then we don't want the "-C" option. 14891 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14892 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14893 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' 14894 else 14895 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' 14896 fi 14897 aix_use_runtimelinking=no 14898 14899 # Test if we are trying to use run time linking or normal 14900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14901 # need to do runtime linking. 14902 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14903 for ld_flag in $LDFLAGS; do 14904 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14905 aix_use_runtimelinking=yes 14906 break 14907 fi 14908 done 14909 esac 14910 14911 exp_sym_flag='-bexport' 14912 no_entry_flag='-bnoentry' 14913 fi 14914 14915 # When large executables or shared objects are built, AIX ld can 14916 # have problems creating the table of contents. If linking a library 14917 # or program results in "error TOC overflow" add -mminimal-toc to 14918 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14919 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14920 14921 archive_cmds_GCJ='' 14922 hardcode_direct_GCJ=yes 14923 hardcode_libdir_separator_GCJ=':' 14924 link_all_deplibs_GCJ=yes 14925 14926 if test "$GCC" = yes; then 14927 case $host_os in aix4.012|aix4.012.*) 14928 # We only want to do this on AIX 4.2 and lower, the check 14929 # below for broken collect2 doesn't work under 4.3+ 14930 collect2name=`${CC} -print-prog-name=collect2` 14931 if test -f "$collect2name" && \ 14932 strings "$collect2name" | grep resolve_lib_name >/dev/null 14933 then 14934 # We have reworked collect2 14935 hardcode_direct_GCJ=yes 14936 else 14937 # We have old collect2 14938 hardcode_direct_GCJ=unsupported 14939 # It fails to find uninstalled libraries when the uninstalled 14940 # path is not listed in the libpath. Setting hardcode_minus_L 14941 # to unsupported forces relinking 14942 hardcode_minus_L_GCJ=yes 14943 hardcode_libdir_flag_spec_GCJ='-L$libdir' 14944 hardcode_libdir_separator_GCJ= 14945 fi 14946 esac 14947 shared_flag='-shared' 14948 else 14949 # not using gcc 14950 if test "$host_cpu" = ia64; then 14951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14952 # chokes on -Wl,-G. The following line is correct: 14953 shared_flag='-G' 14954 else 14955 if test "$aix_use_runtimelinking" = yes; then 14956 shared_flag='${wl}-G' 14957 else 14958 shared_flag='${wl}-bM:SRE' 14959 fi 14960 fi 14961 fi 14962 14963 # It seems that -bexpall does not export symbols beginning with 14964 # underscore (_), so it is better to generate a list of symbols to export. 14965 always_export_symbols_GCJ=yes 14966 if test "$aix_use_runtimelinking" = yes; then 14967 # Warning - without using the other runtime loading flags (-brtl), 14968 # -berok will link without error, but may produce a broken library. 14969 allow_undefined_flag_GCJ='-berok' 14970 # Determine the default libpath from the value encoded in an empty executable. 14971 cat >conftest.$ac_ext <<_ACEOF 14972#line $LINENO "configure" 14973#include "confdefs.h" 14974 14975#ifdef F77_DUMMY_MAIN 14976# ifdef __cplusplus 14977 extern "C" 14978# endif 14979 int F77_DUMMY_MAIN() { return 1; } 14980#endif 14981int 14982main () 14983{ 14984 14985 ; 14986 return 0; 14987} 14988_ACEOF 14989rm -f conftest.$ac_objext conftest$ac_exeext 14990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14991 (eval $ac_link) 2>&5 14992 ac_status=$? 14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14994 (exit $ac_status); } && 14995 { ac_try='test -s conftest$ac_exeext' 14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14997 (eval $ac_try) 2>&5 14998 ac_status=$? 14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15000 (exit $ac_status); }; }; then 15001 15002aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15003}'` 15004# Check for a 64-bit object if we didn't find anything. 15005if 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; } 15006}'`; fi 15007else 15008 echo "$as_me: failed program was:" >&5 15009cat conftest.$ac_ext >&5 15010fi 15011rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15013 15014 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15015 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15016 else 15017 if test "$host_cpu" = ia64; then 15018 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15019 allow_undefined_flag_GCJ="-z nodefs" 15020 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 15021 else 15022 # Determine the default libpath from the value encoded in an empty executable. 15023 cat >conftest.$ac_ext <<_ACEOF 15024#line $LINENO "configure" 15025#include "confdefs.h" 15026 15027#ifdef F77_DUMMY_MAIN 15028# ifdef __cplusplus 15029 extern "C" 15030# endif 15031 int F77_DUMMY_MAIN() { return 1; } 15032#endif 15033int 15034main () 15035{ 15036 15037 ; 15038 return 0; 15039} 15040_ACEOF 15041rm -f conftest.$ac_objext conftest$ac_exeext 15042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15043 (eval $ac_link) 2>&5 15044 ac_status=$? 15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15046 (exit $ac_status); } && 15047 { ac_try='test -s conftest$ac_exeext' 15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15049 (eval $ac_try) 2>&5 15050 ac_status=$? 15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15052 (exit $ac_status); }; }; then 15053 15054aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15055}'` 15056# Check for a 64-bit object if we didn't find anything. 15057if 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; } 15058}'`; fi 15059else 15060 echo "$as_me: failed program was:" >&5 15061cat conftest.$ac_ext >&5 15062fi 15063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15065 15066 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15067 # Warning - without using the other run time loading flags, 15068 # -berok will link without error, but may produce a broken library. 15069 no_undefined_flag_GCJ=' ${wl}-bernotok' 15070 allow_undefined_flag_GCJ=' ${wl}-berok' 15071 # -bexpall does not export symbols beginning with underscore (_) 15072 always_export_symbols_GCJ=yes 15073 # Exported symbols can be pulled into shared objects from archives 15074 whole_archive_flag_spec_GCJ=' ' 15075 archive_cmds_need_lc_GCJ=yes 15076 # This is similar to how AIX traditionally builds it's shared libraries. 15077 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15078 fi 15079 fi 15080 ;; 15081 15082 amigaos*) 15083 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)' 15084 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15085 hardcode_minus_L_GCJ=yes 15086 # see comment about different semantics on the GNU ld section 15087 ld_shlibs_GCJ=no 15088 ;; 15089 15090 bsdi4*) 15091 export_dynamic_flag_spec_GCJ=-rdynamic 15092 ;; 15093 15094 cygwin* | mingw* | pw32*) 15095 # When not using gcc, we currently assume that we are using 15096 # Microsoft Visual C++. 15097 # hardcode_libdir_flag_spec is actually meaningless, as there is 15098 # no search path for DLLs. 15099 hardcode_libdir_flag_spec_GCJ=' ' 15100 allow_undefined_flag_GCJ=unsupported 15101 # Tell ltmain to make .lib files, not .a files. 15102 libext=lib 15103 # Tell ltmain to make .dll files, not .so files. 15104 shrext=".dll" 15105 # FIXME: Setting linknames here is a bad hack. 15106 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15107 # The linker will automatically build a .lib file if we build a DLL. 15108 old_archive_From_new_cmds_GCJ='true' 15109 # FIXME: Should let the user specify the lib program. 15110 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15111 fix_srcfile_path='`cygpath -w "$srcfile"`' 15112 enable_shared_with_static_runtimes_GCJ=yes 15113 ;; 15114 15115 darwin* | rhapsody*) 15116 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 15117 archive_cmds_need_lc_GCJ=no 15118 case "$host_os" in 15119 rhapsody* | darwin1.[012]) 15120 allow_undefined_flag_GCJ='-undefined suppress' 15121 ;; 15122 *) # Darwin 1.3 on 15123 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 15124 ;; 15125 esac 15126 # FIXME: Relying on posixy $() will cause problems for 15127 # cross-compilation, but unfortunately the echo tests do not 15128 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 15129 # `"' quotes if we put them in here... so don't! 15130 lt_int_apple_cc_single_mod=no 15131 output_verbose_link_cmd='echo' 15132 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 15133 lt_int_apple_cc_single_mod=yes 15134 fi 15135 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15136 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15137 else 15138 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15139 fi 15140 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 15141 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15142 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15143 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15144 else 15145 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15146 fi 15147 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15148 hardcode_direct_GCJ=no 15149 hardcode_automatic_GCJ=yes 15150 hardcode_shlibpath_var_GCJ=unsupported 15151 whole_archive_flag_spec_GCJ='-all_load $convenience' 15152 link_all_deplibs_GCJ=yes 15153 fi 15154 ;; 15155 15156 dgux*) 15157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15158 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15159 hardcode_shlibpath_var_GCJ=no 15160 ;; 15161 15162 freebsd1*) 15163 ld_shlibs_GCJ=no 15164 ;; 15165 15166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15167 # support. Future versions do this automatically, but an explicit c++rt0.o 15168 # does not break anything, and helps significantly (at the cost of a little 15169 # extra space). 15170 freebsd2.2*) 15171 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15172 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15173 hardcode_direct_GCJ=yes 15174 hardcode_shlibpath_var_GCJ=no 15175 ;; 15176 15177 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15178 freebsd2*) 15179 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15180 hardcode_direct_GCJ=yes 15181 hardcode_minus_L_GCJ=yes 15182 hardcode_shlibpath_var_GCJ=no 15183 ;; 15184 15185 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15186 freebsd*) 15187 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15188 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15189 hardcode_direct_GCJ=yes 15190 hardcode_shlibpath_var_GCJ=no 15191 ;; 15192 15193 hpux9*) 15194 if test "$GCC" = yes; then 15195 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15196 else 15197 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' 15198 fi 15199 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15200 hardcode_libdir_separator_GCJ=: 15201 hardcode_direct_GCJ=yes 15202 15203 # hardcode_minus_L: Not really in the search PATH, 15204 # but as the default location of the library. 15205 hardcode_minus_L_GCJ=yes 15206 export_dynamic_flag_spec_GCJ='${wl}-E' 15207 ;; 15208 15209 hpux10* | hpux11*) 15210 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15211 case "$host_cpu" in 15212 hppa*64*|ia64*) 15213 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15214 ;; 15215 *) 15216 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15217 ;; 15218 esac 15219 else 15220 case "$host_cpu" in 15221 hppa*64*|ia64*) 15222 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15223 ;; 15224 *) 15225 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15226 ;; 15227 esac 15228 fi 15229 if test "$with_gnu_ld" = no; then 15230 case "$host_cpu" in 15231 hppa*64*) 15232 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15233 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 15234 hardcode_libdir_separator_GCJ=: 15235 hardcode_direct_GCJ=no 15236 hardcode_shlibpath_var_GCJ=no 15237 ;; 15238 ia64*) 15239 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15240 hardcode_direct_GCJ=no 15241 hardcode_shlibpath_var_GCJ=no 15242 15243 # hardcode_minus_L: Not really in the search PATH, 15244 # but as the default location of the library. 15245 hardcode_minus_L_GCJ=yes 15246 ;; 15247 *) 15248 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15249 hardcode_libdir_separator_GCJ=: 15250 hardcode_direct_GCJ=yes 15251 export_dynamic_flag_spec_GCJ='${wl}-E' 15252 15253 # hardcode_minus_L: Not really in the search PATH, 15254 # but as the default location of the library. 15255 hardcode_minus_L_GCJ=yes 15256 ;; 15257 esac 15258 fi 15259 ;; 15260 15261 irix5* | irix6* | nonstopux*) 15262 if test "$GCC" = yes; then 15263 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15264 else 15265 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' 15266 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 15267 fi 15268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15269 hardcode_libdir_separator_GCJ=: 15270 link_all_deplibs_GCJ=yes 15271 ;; 15272 15273 netbsd*) 15274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15275 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15276 else 15277 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15278 fi 15279 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15280 hardcode_direct_GCJ=yes 15281 hardcode_shlibpath_var_GCJ=no 15282 ;; 15283 15284 newsos6) 15285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15286 hardcode_direct_GCJ=yes 15287 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15288 hardcode_libdir_separator_GCJ=: 15289 hardcode_shlibpath_var_GCJ=no 15290 ;; 15291 15292 openbsd*) 15293 hardcode_direct_GCJ=yes 15294 hardcode_shlibpath_var_GCJ=no 15295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15296 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15297 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15298 export_dynamic_flag_spec_GCJ='${wl}-E' 15299 else 15300 case $host_os in 15301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15302 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15303 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15304 ;; 15305 *) 15306 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15307 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15308 ;; 15309 esac 15310 fi 15311 ;; 15312 15313 os2*) 15314 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15315 hardcode_minus_L_GCJ=yes 15316 allow_undefined_flag_GCJ=unsupported 15317 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15318 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15319 ;; 15320 15321 osf3*) 15322 if test "$GCC" = yes; then 15323 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15324 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15325 else 15326 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15327 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' 15328 fi 15329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15330 hardcode_libdir_separator_GCJ=: 15331 ;; 15332 15333 osf4* | osf5*) # as osf3* with the addition of -msym flag 15334 if test "$GCC" = yes; then 15335 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 15336 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15337 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15338 else 15339 allow_undefined_flag_GCJ=' -expect_unresolved \*' 15340 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' 15341 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~ 15342 $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' 15343 15344 # Both c and cxx compiler support -rpath directly 15345 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 15346 fi 15347 hardcode_libdir_separator_GCJ=: 15348 ;; 15349 15350 sco3.2v5*) 15351 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15352 hardcode_shlibpath_var_GCJ=no 15353 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 15354 runpath_var=LD_RUN_PATH 15355 hardcode_runpath_var=yes 15356 ;; 15357 15358 solaris*) 15359 no_undefined_flag_GCJ=' -z text' 15360 if test "$GCC" = yes; then 15361 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15362 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15363 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15364 else 15365 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15366 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15368 fi 15369 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15370 hardcode_shlibpath_var_GCJ=no 15371 case $host_os in 15372 solaris2.[0-5] | solaris2.[0-5].*) ;; 15373 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 15374 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 15375 esac 15376 link_all_deplibs_GCJ=yes 15377 ;; 15378 15379 sunos4*) 15380 if test "x$host_vendor" = xsequent; then 15381 # Use $CC to link under sequent, because it throws in some extra .o 15382 # files that make .init and .fini sections work. 15383 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15384 else 15385 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15386 fi 15387 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15388 hardcode_direct_GCJ=yes 15389 hardcode_minus_L_GCJ=yes 15390 hardcode_shlibpath_var_GCJ=no 15391 ;; 15392 15393 sysv4) 15394 case $host_vendor in 15395 sni) 15396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15397 hardcode_direct_GCJ=yes # is this really true??? 15398 ;; 15399 siemens) 15400 ## LD is ld it makes a PLAMLIB 15401 ## CC just makes a GrossModule. 15402 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15403 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 15404 hardcode_direct_GCJ=no 15405 ;; 15406 motorola) 15407 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15408 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 15409 ;; 15410 esac 15411 runpath_var='LD_RUN_PATH' 15412 hardcode_shlibpath_var_GCJ=no 15413 ;; 15414 15415 sysv4.3*) 15416 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15417 hardcode_shlibpath_var_GCJ=no 15418 export_dynamic_flag_spec_GCJ='-Bexport' 15419 ;; 15420 15421 sysv4*MP*) 15422 if test -d /usr/nec; then 15423 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15424 hardcode_shlibpath_var_GCJ=no 15425 runpath_var=LD_RUN_PATH 15426 hardcode_runpath_var=yes 15427 ld_shlibs_GCJ=yes 15428 fi 15429 ;; 15430 15431 sysv4.2uw2*) 15432 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15433 hardcode_direct_GCJ=yes 15434 hardcode_minus_L_GCJ=no 15435 hardcode_shlibpath_var_GCJ=no 15436 hardcode_runpath_var=yes 15437 runpath_var=LD_RUN_PATH 15438 ;; 15439 15440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15441 no_undefined_flag_GCJ='${wl}-z ${wl}text' 15442 if test "$GCC" = yes; then 15443 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15444 else 15445 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15446 fi 15447 runpath_var='LD_RUN_PATH' 15448 hardcode_shlibpath_var_GCJ=no 15449 ;; 15450 15451 sysv5*) 15452 no_undefined_flag_GCJ=' -z text' 15453 # $CC -shared without GNU ld will not create a library from C++ 15454 # object files and a static libstdc++, better avoid it by now 15455 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15456 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15458 hardcode_libdir_flag_spec_GCJ= 15459 hardcode_shlibpath_var_GCJ=no 15460 runpath_var='LD_RUN_PATH' 15461 ;; 15462 15463 uts4*) 15464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15465 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15466 hardcode_shlibpath_var_GCJ=no 15467 ;; 15468 15469 *) 15470 ld_shlibs_GCJ=no 15471 ;; 15472 esac 15473 fi 15474 15475echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 15476echo "${ECHO_T}$ld_shlibs_GCJ" >&6 15477test "$ld_shlibs_GCJ" = no && can_build_shared=no 15478 15479variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15480if test "$GCC" = yes; then 15481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15482fi 15483 15484# 15485# Do we need to explicitly link libc? 15486# 15487case "x$archive_cmds_need_lc_GCJ" in 15488x|xyes) 15489 # Assume -lc should be added 15490 archive_cmds_need_lc_GCJ=yes 15491 15492 if test "$enable_shared" = yes && test "$GCC" = yes; then 15493 case $archive_cmds_GCJ in 15494 *'~'*) 15495 # FIXME: we may have to deal with multi-command sequences. 15496 ;; 15497 '$CC '*) 15498 # Test whether the compiler implicitly links with -lc since on some 15499 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15500 # to ld, don't add -lc before -lgcc. 15501 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15502echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 15503 $rm conftest* 15504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15505 15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15507 (eval $ac_compile) 2>&5 15508 ac_status=$? 15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15510 (exit $ac_status); } 2>conftest.err; then 15511 soname=conftest 15512 lib=conftest 15513 libobjs=conftest.$ac_objext 15514 deplibs= 15515 wl=$lt_prog_compiler_wl_GCJ 15516 compiler_flags=-v 15517 linker_flags=-v 15518 verstring= 15519 output_objdir=. 15520 libname=conftest 15521 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 15522 allow_undefined_flag_GCJ= 15523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15524 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15525 ac_status=$? 15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15527 (exit $ac_status); } 15528 then 15529 archive_cmds_need_lc_GCJ=no 15530 else 15531 archive_cmds_need_lc_GCJ=yes 15532 fi 15533 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 15534 else 15535 cat conftest.err 1>&5 15536 fi 15537 $rm conftest* 15538 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 15539echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 15540 ;; 15541 esac 15542 fi 15543 ;; 15544esac 15545 15546echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15547echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15548hardcode_action_GCJ= 15549if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 15550 test -n "$runpath_var GCJ" || \ 15551 test "X$hardcode_automatic_GCJ"="Xyes" ; then 15552 15553 # We can hardcode non-existant directories. 15554 if test "$hardcode_direct_GCJ" != no && 15555 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15556 # have to relink, otherwise we might link with an installed library 15557 # when we should be linking with a yet-to-be-installed one 15558 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 15559 test "$hardcode_minus_L_GCJ" != no; then 15560 # Linking always hardcodes the temporary library directory. 15561 hardcode_action_GCJ=relink 15562 else 15563 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15564 hardcode_action_GCJ=immediate 15565 fi 15566else 15567 # We cannot hardcode anything, or else we can only hardcode existing 15568 # directories. 15569 hardcode_action_GCJ=unsupported 15570fi 15571echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 15572echo "${ECHO_T}$hardcode_action_GCJ" >&6 15573 15574if test "$hardcode_action_GCJ" = relink; then 15575 # Fast installation is not supported 15576 enable_fast_install=no 15577elif test "$shlibpath_overrides_runpath" = yes || 15578 test "$enable_shared" = no; then 15579 # Fast installation is not necessary 15580 enable_fast_install=needless 15581fi 15582 15583striplib= 15584old_striplib= 15585echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15586echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15587if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15588 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15589 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15590 echo "$as_me:$LINENO: result: yes" >&5 15591echo "${ECHO_T}yes" >&6 15592else 15593# FIXME - insert some real tests, host_os isn't really good enough 15594 case $host_os in 15595 darwin*) 15596 if test -n "$STRIP" ; then 15597 striplib="$STRIP -x" 15598 echo "$as_me:$LINENO: result: yes" >&5 15599echo "${ECHO_T}yes" >&6 15600 else 15601 echo "$as_me:$LINENO: result: no" >&5 15602echo "${ECHO_T}no" >&6 15603fi 15604 ;; 15605 *) 15606 echo "$as_me:$LINENO: result: no" >&5 15607echo "${ECHO_T}no" >&6 15608 ;; 15609 esac 15610fi 15611 15612echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15613echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 15614library_names_spec= 15615libname_spec='lib$name' 15616soname_spec= 15617shrext=".so" 15618postinstall_cmds= 15619postuninstall_cmds= 15620finish_cmds= 15621finish_eval= 15622shlibpath_var= 15623shlibpath_overrides_runpath=unknown 15624version_type=none 15625dynamic_linker="$host_os ld.so" 15626sys_lib_dlsearch_path_spec="/lib /usr/lib" 15627if test "$GCC" = yes; then 15628 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15629 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15630 # if the path contains ";" then we assume it to be the separator 15631 # otherwise default to the standard path separator (i.e. ":") - it is 15632 # assumed that no part of a normal pathname contains ";" but that should 15633 # okay in the real world where ";" in dirpaths is itself problematic. 15634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15635 else 15636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15637 fi 15638else 15639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15640fi 15641need_lib_prefix=unknown 15642hardcode_into_libs=no 15643 15644# when you set need_version to no, make sure it does not cause -set_version 15645# flags to be left without arguments 15646need_version=unknown 15647 15648case $host_os in 15649aix3*) 15650 version_type=linux 15651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15652 shlibpath_var=LIBPATH 15653 15654 # AIX 3 has no versioning support, so we append a major version to the name. 15655 soname_spec='${libname}${release}${shared_ext}$major' 15656 ;; 15657 15658aix4* | aix5*) 15659 version_type=linux 15660 need_lib_prefix=no 15661 need_version=no 15662 hardcode_into_libs=yes 15663 if test "$host_cpu" = ia64; then 15664 # AIX 5 supports IA64 15665 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15666 shlibpath_var=LD_LIBRARY_PATH 15667 else 15668 # With GCC up to 2.95.x, collect2 would create an import file 15669 # for dependence libraries. The import file would start with 15670 # the line `#! .'. This would cause the generated library to 15671 # depend on `.', always an invalid library. This was fixed in 15672 # development snapshots of GCC prior to 3.0. 15673 case $host_os in 15674 aix4 | aix4.[01] | aix4.[01].*) 15675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15676 echo ' yes ' 15677 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15678 : 15679 else 15680 can_build_shared=no 15681 fi 15682 ;; 15683 esac 15684 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15685 # soname into executable. Probably we can add versioning support to 15686 # collect2, so additional links can be useful in future. 15687 if test "$aix_use_runtimelinking" = yes; then 15688 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15689 # instead of lib<name>.a to let people know that these are not 15690 # typical AIX shared libraries. 15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15692 else 15693 # We preserve .a as extension for shared libraries through AIX4.2 15694 # and later when we are not doing run time linking. 15695 library_names_spec='${libname}${release}.a $libname.a' 15696 soname_spec='${libname}${release}${shared_ext}$major' 15697 fi 15698 shlibpath_var=LIBPATH 15699 fi 15700 ;; 15701 15702amigaos*) 15703 library_names_spec='$libname.ixlibrary $libname.a' 15704 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15705 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' 15706 ;; 15707 15708beos*) 15709 library_names_spec='${libname}${shared_ext}' 15710 dynamic_linker="$host_os ld.so" 15711 shlibpath_var=LIBRARY_PATH 15712 ;; 15713 15714bsdi4*) 15715 version_type=linux 15716 need_version=no 15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15718 soname_spec='${libname}${release}${shared_ext}$major' 15719 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15720 shlibpath_var=LD_LIBRARY_PATH 15721 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15722 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15723 # the default ld.so.conf also contains /usr/contrib/lib and 15724 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15725 # libtool to hard-code these into programs 15726 ;; 15727 15728cygwin* | mingw* | pw32*) 15729 version_type=windows 15730 shrext=".dll" 15731 need_version=no 15732 need_lib_prefix=no 15733 15734 case $GCC,$host_os in 15735 yes,cygwin* | yes,mingw* | yes,pw32*) 15736 library_names_spec='$libname.dll.a' 15737 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15738 postinstall_cmds='base_file=`basename \${file}`~ 15739 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15740 dldir=$destdir/`dirname \$dlpath`~ 15741 test -d \$dldir || mkdir -p \$dldir~ 15742 $install_prog $dir/$dlname \$dldir/$dlname' 15743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15744 dlpath=$dir/\$dldll~ 15745 $rm \$dlpath' 15746 shlibpath_overrides_runpath=yes 15747 15748 case $host_os in 15749 cygwin*) 15750 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15752 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 15753 ;; 15754 mingw*) 15755 # MinGW DLLs use traditional 'lib' prefix 15756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15758 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15759 # It is most probably a Windows format PATH printed by 15760 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15761 # path with ; separators, and with drive letters. We can handle the 15762 # drive letters (cygwin fileutils understands them), so leave them, 15763 # especially as we might pass files found there to a mingw objdump, 15764 # which wouldn't understand a cygwinified path. Ahh. 15765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15766 else 15767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15768 fi 15769 ;; 15770 pw32*) 15771 # pw32 DLLs use 'pw' prefix rather than 'lib' 15772 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 15773 ;; 15774 esac 15775 ;; 15776 15777 *) 15778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15779 ;; 15780 esac 15781 dynamic_linker='Win32 ld.exe' 15782 # FIXME: first we should search . and the directory the executable is in 15783 shlibpath_var=PATH 15784 ;; 15785 15786darwin* | rhapsody*) 15787 dynamic_linker="$host_os dyld" 15788 version_type=darwin 15789 need_lib_prefix=no 15790 need_version=no 15791 # FIXME: Relying on posixy $() will cause problems for 15792 # cross-compilation, but unfortunately the echo tests do not 15793 # yet detect zsh echo's removal of \ escapes. 15794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15795 soname_spec='${libname}${release}${major}$shared_ext' 15796 shlibpath_overrides_runpath=yes 15797 shlibpath_var=DYLD_LIBRARY_PATH 15798 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 15799 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15800 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 15801 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"` 15802 fi 15803 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15804 ;; 15805 15806dgux*) 15807 version_type=linux 15808 need_lib_prefix=no 15809 need_version=no 15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15811 soname_spec='${libname}${release}${shared_ext}$major' 15812 shlibpath_var=LD_LIBRARY_PATH 15813 ;; 15814 15815freebsd1*) 15816 dynamic_linker=no 15817 ;; 15818 15819freebsd*) 15820 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 15821 version_type=freebsd-$objformat 15822 case $version_type in 15823 freebsd-elf*) 15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15825 need_version=no 15826 need_lib_prefix=no 15827 ;; 15828 freebsd-*) 15829 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15830 need_version=yes 15831 ;; 15832 esac 15833 shlibpath_var=LD_LIBRARY_PATH 15834 case $host_os in 15835 freebsd2*) 15836 shlibpath_overrides_runpath=yes 15837 ;; 15838 freebsd3.01* | freebsdelf3.01*) 15839 shlibpath_overrides_runpath=yes 15840 hardcode_into_libs=yes 15841 ;; 15842 *) # from 3.2 on 15843 shlibpath_overrides_runpath=no 15844 hardcode_into_libs=yes 15845 ;; 15846 esac 15847 ;; 15848 15849gnu*) 15850 version_type=linux 15851 need_lib_prefix=no 15852 need_version=no 15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15854 soname_spec='${libname}${release}${shared_ext}$major' 15855 shlibpath_var=LD_LIBRARY_PATH 15856 hardcode_into_libs=yes 15857 ;; 15858 15859hpux9* | hpux10* | hpux11*) 15860 # Give a soname corresponding to the major version so that dld.sl refuses to 15861 # link against other versions. 15862 version_type=sunos 15863 need_lib_prefix=no 15864 need_version=no 15865 case "$host_cpu" in 15866 ia64*) 15867 shrext='.so' 15868 hardcode_into_libs=yes 15869 dynamic_linker="$host_os dld.so" 15870 shlibpath_var=LD_LIBRARY_PATH 15871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15873 soname_spec='${libname}${release}${shared_ext}$major' 15874 if test "X$HPUX_IA64_MODE" = X32; then 15875 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15876 else 15877 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15878 fi 15879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15880 ;; 15881 hppa*64*) 15882 shrext='.sl' 15883 hardcode_into_libs=yes 15884 dynamic_linker="$host_os dld.sl" 15885 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15886 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15888 soname_spec='${libname}${release}${shared_ext}$major' 15889 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15891 ;; 15892 *) 15893 shrext='.sl' 15894 dynamic_linker="$host_os dld.sl" 15895 shlibpath_var=SHLIB_PATH 15896 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15898 soname_spec='${libname}${release}${shared_ext}$major' 15899 ;; 15900 esac 15901 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15902 postinstall_cmds='chmod 555 $lib' 15903 ;; 15904 15905irix5* | irix6* | nonstopux*) 15906 case $host_os in 15907 nonstopux*) version_type=nonstopux ;; 15908 *) 15909 if test "$lt_cv_prog_gnu_ld" = yes; then 15910 version_type=linux 15911 else 15912 version_type=irix 15913 fi ;; 15914 esac 15915 need_lib_prefix=no 15916 need_version=no 15917 soname_spec='${libname}${release}${shared_ext}$major' 15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15919 case $host_os in 15920 irix5* | nonstopux*) 15921 libsuff= shlibsuff= 15922 ;; 15923 *) 15924 case $LD in # libtool.m4 will add one of these switches to LD 15925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15926 libsuff= shlibsuff= libmagic=32-bit;; 15927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15928 libsuff=32 shlibsuff=N32 libmagic=N32;; 15929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15930 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15931 *) libsuff= shlibsuff= libmagic=never-match;; 15932 esac 15933 ;; 15934 esac 15935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15936 shlibpath_overrides_runpath=no 15937 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15938 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15939 hardcode_into_libs=yes 15940 ;; 15941 15942# No shared lib support for Linux oldld, aout, or coff. 15943linux*oldld* | linux*aout* | linux*coff*) 15944 dynamic_linker=no 15945 ;; 15946 15947# This must be Linux ELF. 15948linux*) 15949 version_type=linux 15950 need_lib_prefix=no 15951 need_version=no 15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15953 soname_spec='${libname}${release}${shared_ext}$major' 15954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15955 shlibpath_var=LD_LIBRARY_PATH 15956 shlibpath_overrides_runpath=no 15957 # This implies no fast_install, which is unacceptable. 15958 # Some rework will be needed to allow for fast_install 15959 # before this can be enabled. 15960 hardcode_into_libs=yes 15961 15962 # We used to test for /lib/ld.so.1 and disable shared libraries on 15963 # powerpc, because MkLinux only supported shared libraries with the 15964 # GNU dynamic linker. Since this was broken with cross compilers, 15965 # most powerpc-linux boxes support dynamic linking these days and 15966 # people can always --disable-shared, the test was removed, and we 15967 # assume the GNU/Linux dynamic linker is in use. 15968 dynamic_linker='GNU/Linux ld.so' 15969 ;; 15970 15971netbsd*) 15972 version_type=sunos 15973 need_lib_prefix=no 15974 need_version=no 15975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15978 dynamic_linker='NetBSD (a.out) ld.so' 15979 else 15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 15981 soname_spec='${libname}${release}${shared_ext}$major' 15982 dynamic_linker='NetBSD ld.elf_so' 15983 fi 15984 shlibpath_var=LD_LIBRARY_PATH 15985 shlibpath_overrides_runpath=yes 15986 hardcode_into_libs=yes 15987 ;; 15988 15989newsos6) 15990 version_type=linux 15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15992 shlibpath_var=LD_LIBRARY_PATH 15993 shlibpath_overrides_runpath=yes 15994 ;; 15995 15996nto-qnx) 15997 version_type=linux 15998 need_lib_prefix=no 15999 need_version=no 16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16001 soname_spec='${libname}${release}${shared_ext}$major' 16002 shlibpath_var=LD_LIBRARY_PATH 16003 shlibpath_overrides_runpath=yes 16004 ;; 16005 16006openbsd*) 16007 version_type=sunos 16008 need_lib_prefix=no 16009 need_version=no 16010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16012 shlibpath_var=LD_LIBRARY_PATH 16013 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16014 case $host_os in 16015 openbsd2.[89] | openbsd2.[89].*) 16016 shlibpath_overrides_runpath=no 16017 ;; 16018 *) 16019 shlibpath_overrides_runpath=yes 16020 ;; 16021 esac 16022 else 16023 shlibpath_overrides_runpath=yes 16024 fi 16025 ;; 16026 16027os2*) 16028 libname_spec='$name' 16029 shrext=".dll" 16030 need_lib_prefix=no 16031 library_names_spec='$libname${shared_ext} $libname.a' 16032 dynamic_linker='OS/2 ld.exe' 16033 shlibpath_var=LIBPATH 16034 ;; 16035 16036osf3* | osf4* | osf5*) 16037 version_type=osf 16038 need_lib_prefix=no 16039 need_version=no 16040 soname_spec='${libname}${release}${shared_ext}$major' 16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16042 shlibpath_var=LD_LIBRARY_PATH 16043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16044 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16045 ;; 16046 16047sco3.2v5*) 16048 version_type=osf 16049 soname_spec='${libname}${release}${shared_ext}$major' 16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16051 shlibpath_var=LD_LIBRARY_PATH 16052 ;; 16053 16054solaris*) 16055 version_type=linux 16056 need_lib_prefix=no 16057 need_version=no 16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16059 soname_spec='${libname}${release}${shared_ext}$major' 16060 shlibpath_var=LD_LIBRARY_PATH 16061 shlibpath_overrides_runpath=yes 16062 hardcode_into_libs=yes 16063 # ldd complains unless libraries are executable 16064 postinstall_cmds='chmod +x $lib' 16065 ;; 16066 16067sunos4*) 16068 version_type=sunos 16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16071 shlibpath_var=LD_LIBRARY_PATH 16072 shlibpath_overrides_runpath=yes 16073 if test "$with_gnu_ld" = yes; then 16074 need_lib_prefix=no 16075 fi 16076 need_version=yes 16077 ;; 16078 16079sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16080 version_type=linux 16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16082 soname_spec='${libname}${release}${shared_ext}$major' 16083 shlibpath_var=LD_LIBRARY_PATH 16084 case $host_vendor in 16085 sni) 16086 shlibpath_overrides_runpath=no 16087 need_lib_prefix=no 16088 export_dynamic_flag_spec='${wl}-Blargedynsym' 16089 runpath_var=LD_RUN_PATH 16090 ;; 16091 siemens) 16092 need_lib_prefix=no 16093 ;; 16094 motorola) 16095 need_lib_prefix=no 16096 need_version=no 16097 shlibpath_overrides_runpath=no 16098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16099 ;; 16100 esac 16101 ;; 16102 16103sysv4*MP*) 16104 if test -d /usr/nec ;then 16105 version_type=linux 16106 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16107 soname_spec='$libname${shared_ext}.$major' 16108 shlibpath_var=LD_LIBRARY_PATH 16109 fi 16110 ;; 16111 16112uts4*) 16113 version_type=linux 16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16115 soname_spec='${libname}${release}${shared_ext}$major' 16116 shlibpath_var=LD_LIBRARY_PATH 16117 ;; 16118 16119*) 16120 dynamic_linker=no 16121 ;; 16122esac 16123echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16124echo "${ECHO_T}$dynamic_linker" >&6 16125test "$dynamic_linker" = no && can_build_shared=no 16126 16127if test "x$enable_dlopen" != xyes; then 16128 enable_dlopen=unknown 16129 enable_dlopen_self=unknown 16130 enable_dlopen_self_static=unknown 16131else 16132 lt_cv_dlopen=no 16133 lt_cv_dlopen_libs= 16134 16135 case $host_os in 16136 beos*) 16137 lt_cv_dlopen="load_add_on" 16138 lt_cv_dlopen_libs= 16139 lt_cv_dlopen_self=yes 16140 ;; 16141 16142 mingw* | pw32*) 16143 lt_cv_dlopen="LoadLibrary" 16144 lt_cv_dlopen_libs= 16145 ;; 16146 16147 cygwin*) 16148 lt_cv_dlopen="dlopen" 16149 lt_cv_dlopen_libs= 16150 ;; 16151 16152 darwin*) 16153 # if libdl is installed we need to link against it 16154 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16155echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16156if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16157 echo $ECHO_N "(cached) $ECHO_C" >&6 16158else 16159 ac_check_lib_save_LIBS=$LIBS 16160LIBS="-ldl $LIBS" 16161cat >conftest.$ac_ext <<_ACEOF 16162#line $LINENO "configure" 16163#include "confdefs.h" 16164 16165/* Override any gcc2 internal prototype to avoid an error. */ 16166#ifdef __cplusplus 16167extern "C" 16168#endif 16169/* We use char because int might match the return type of a gcc2 16170 builtin and then its argument prototype would still apply. */ 16171char dlopen (); 16172#ifdef F77_DUMMY_MAIN 16173# ifdef __cplusplus 16174 extern "C" 16175# endif 16176 int F77_DUMMY_MAIN() { return 1; } 16177#endif 16178int 16179main () 16180{ 16181dlopen (); 16182 ; 16183 return 0; 16184} 16185_ACEOF 16186rm -f conftest.$ac_objext conftest$ac_exeext 16187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16188 (eval $ac_link) 2>&5 16189 ac_status=$? 16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16191 (exit $ac_status); } && 16192 { ac_try='test -s conftest$ac_exeext' 16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16194 (eval $ac_try) 2>&5 16195 ac_status=$? 16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16197 (exit $ac_status); }; }; then 16198 ac_cv_lib_dl_dlopen=yes 16199else 16200 echo "$as_me: failed program was:" >&5 16201cat conftest.$ac_ext >&5 16202ac_cv_lib_dl_dlopen=no 16203fi 16204rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16205LIBS=$ac_check_lib_save_LIBS 16206fi 16207echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16208echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16209if test $ac_cv_lib_dl_dlopen = yes; then 16210 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16211else 16212 16213 lt_cv_dlopen="dyld" 16214 lt_cv_dlopen_libs= 16215 lt_cv_dlopen_self=yes 16216 16217fi 16218 16219 ;; 16220 16221 *) 16222 echo "$as_me:$LINENO: checking for shl_load" >&5 16223echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 16224if test "${ac_cv_func_shl_load+set}" = set; then 16225 echo $ECHO_N "(cached) $ECHO_C" >&6 16226else 16227 cat >conftest.$ac_ext <<_ACEOF 16228#line $LINENO "configure" 16229#include "confdefs.h" 16230/* System header to define __stub macros and hopefully few prototypes, 16231 which can conflict with char shl_load (); below. */ 16232#include <assert.h> 16233/* Override any gcc2 internal prototype to avoid an error. */ 16234#ifdef __cplusplus 16235extern "C" 16236#endif 16237/* We use char because int might match the return type of a gcc2 16238 builtin and then its argument prototype would still apply. */ 16239char shl_load (); 16240char (*f) (); 16241 16242#ifdef F77_DUMMY_MAIN 16243# ifdef __cplusplus 16244 extern "C" 16245# endif 16246 int F77_DUMMY_MAIN() { return 1; } 16247#endif 16248int 16249main () 16250{ 16251/* The GNU C library defines this for functions which it implements 16252 to always fail with ENOSYS. Some functions are actually named 16253 something starting with __ and the normal name is an alias. */ 16254#if defined (__stub_shl_load) || defined (__stub___shl_load) 16255choke me 16256#else 16257f = shl_load; 16258#endif 16259 16260 ; 16261 return 0; 16262} 16263_ACEOF 16264rm -f conftest.$ac_objext conftest$ac_exeext 16265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16266 (eval $ac_link) 2>&5 16267 ac_status=$? 16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16269 (exit $ac_status); } && 16270 { ac_try='test -s conftest$ac_exeext' 16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16272 (eval $ac_try) 2>&5 16273 ac_status=$? 16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16275 (exit $ac_status); }; }; then 16276 ac_cv_func_shl_load=yes 16277else 16278 echo "$as_me: failed program was:" >&5 16279cat conftest.$ac_ext >&5 16280ac_cv_func_shl_load=no 16281fi 16282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16283fi 16284echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 16285echo "${ECHO_T}$ac_cv_func_shl_load" >&6 16286if test $ac_cv_func_shl_load = yes; then 16287 lt_cv_dlopen="shl_load" 16288else 16289 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 16290echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 16291if test "${ac_cv_lib_dld_shl_load+set}" = set; then 16292 echo $ECHO_N "(cached) $ECHO_C" >&6 16293else 16294 ac_check_lib_save_LIBS=$LIBS 16295LIBS="-ldld $LIBS" 16296cat >conftest.$ac_ext <<_ACEOF 16297#line $LINENO "configure" 16298#include "confdefs.h" 16299 16300/* Override any gcc2 internal prototype to avoid an error. */ 16301#ifdef __cplusplus 16302extern "C" 16303#endif 16304/* We use char because int might match the return type of a gcc2 16305 builtin and then its argument prototype would still apply. */ 16306char shl_load (); 16307#ifdef F77_DUMMY_MAIN 16308# ifdef __cplusplus 16309 extern "C" 16310# endif 16311 int F77_DUMMY_MAIN() { return 1; } 16312#endif 16313int 16314main () 16315{ 16316shl_load (); 16317 ; 16318 return 0; 16319} 16320_ACEOF 16321rm -f conftest.$ac_objext conftest$ac_exeext 16322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16323 (eval $ac_link) 2>&5 16324 ac_status=$? 16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16326 (exit $ac_status); } && 16327 { ac_try='test -s conftest$ac_exeext' 16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16329 (eval $ac_try) 2>&5 16330 ac_status=$? 16331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16332 (exit $ac_status); }; }; then 16333 ac_cv_lib_dld_shl_load=yes 16334else 16335 echo "$as_me: failed program was:" >&5 16336cat conftest.$ac_ext >&5 16337ac_cv_lib_dld_shl_load=no 16338fi 16339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16340LIBS=$ac_check_lib_save_LIBS 16341fi 16342echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 16343echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 16344if test $ac_cv_lib_dld_shl_load = yes; then 16345 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 16346else 16347 echo "$as_me:$LINENO: checking for dlopen" >&5 16348echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 16349if test "${ac_cv_func_dlopen+set}" = set; then 16350 echo $ECHO_N "(cached) $ECHO_C" >&6 16351else 16352 cat >conftest.$ac_ext <<_ACEOF 16353#line $LINENO "configure" 16354#include "confdefs.h" 16355/* System header to define __stub macros and hopefully few prototypes, 16356 which can conflict with char dlopen (); below. */ 16357#include <assert.h> 16358/* Override any gcc2 internal prototype to avoid an error. */ 16359#ifdef __cplusplus 16360extern "C" 16361#endif 16362/* We use char because int might match the return type of a gcc2 16363 builtin and then its argument prototype would still apply. */ 16364char dlopen (); 16365char (*f) (); 16366 16367#ifdef F77_DUMMY_MAIN 16368# ifdef __cplusplus 16369 extern "C" 16370# endif 16371 int F77_DUMMY_MAIN() { return 1; } 16372#endif 16373int 16374main () 16375{ 16376/* The GNU C library defines this for functions which it implements 16377 to always fail with ENOSYS. Some functions are actually named 16378 something starting with __ and the normal name is an alias. */ 16379#if defined (__stub_dlopen) || defined (__stub___dlopen) 16380choke me 16381#else 16382f = dlopen; 16383#endif 16384 16385 ; 16386 return 0; 16387} 16388_ACEOF 16389rm -f conftest.$ac_objext conftest$ac_exeext 16390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16391 (eval $ac_link) 2>&5 16392 ac_status=$? 16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16394 (exit $ac_status); } && 16395 { ac_try='test -s conftest$ac_exeext' 16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16397 (eval $ac_try) 2>&5 16398 ac_status=$? 16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16400 (exit $ac_status); }; }; then 16401 ac_cv_func_dlopen=yes 16402else 16403 echo "$as_me: failed program was:" >&5 16404cat conftest.$ac_ext >&5 16405ac_cv_func_dlopen=no 16406fi 16407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16408fi 16409echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 16410echo "${ECHO_T}$ac_cv_func_dlopen" >&6 16411if test $ac_cv_func_dlopen = yes; then 16412 lt_cv_dlopen="dlopen" 16413else 16414 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16415echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16416if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16417 echo $ECHO_N "(cached) $ECHO_C" >&6 16418else 16419 ac_check_lib_save_LIBS=$LIBS 16420LIBS="-ldl $LIBS" 16421cat >conftest.$ac_ext <<_ACEOF 16422#line $LINENO "configure" 16423#include "confdefs.h" 16424 16425/* Override any gcc2 internal prototype to avoid an error. */ 16426#ifdef __cplusplus 16427extern "C" 16428#endif 16429/* We use char because int might match the return type of a gcc2 16430 builtin and then its argument prototype would still apply. */ 16431char dlopen (); 16432#ifdef F77_DUMMY_MAIN 16433# ifdef __cplusplus 16434 extern "C" 16435# endif 16436 int F77_DUMMY_MAIN() { return 1; } 16437#endif 16438int 16439main () 16440{ 16441dlopen (); 16442 ; 16443 return 0; 16444} 16445_ACEOF 16446rm -f conftest.$ac_objext conftest$ac_exeext 16447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16448 (eval $ac_link) 2>&5 16449 ac_status=$? 16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16451 (exit $ac_status); } && 16452 { ac_try='test -s conftest$ac_exeext' 16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16454 (eval $ac_try) 2>&5 16455 ac_status=$? 16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16457 (exit $ac_status); }; }; then 16458 ac_cv_lib_dl_dlopen=yes 16459else 16460 echo "$as_me: failed program was:" >&5 16461cat conftest.$ac_ext >&5 16462ac_cv_lib_dl_dlopen=no 16463fi 16464rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16465LIBS=$ac_check_lib_save_LIBS 16466fi 16467echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16468echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16469if test $ac_cv_lib_dl_dlopen = yes; then 16470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16471else 16472 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 16473echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 16474if test "${ac_cv_lib_svld_dlopen+set}" = set; then 16475 echo $ECHO_N "(cached) $ECHO_C" >&6 16476else 16477 ac_check_lib_save_LIBS=$LIBS 16478LIBS="-lsvld $LIBS" 16479cat >conftest.$ac_ext <<_ACEOF 16480#line $LINENO "configure" 16481#include "confdefs.h" 16482 16483/* Override any gcc2 internal prototype to avoid an error. */ 16484#ifdef __cplusplus 16485extern "C" 16486#endif 16487/* We use char because int might match the return type of a gcc2 16488 builtin and then its argument prototype would still apply. */ 16489char dlopen (); 16490#ifdef F77_DUMMY_MAIN 16491# ifdef __cplusplus 16492 extern "C" 16493# endif 16494 int F77_DUMMY_MAIN() { return 1; } 16495#endif 16496int 16497main () 16498{ 16499dlopen (); 16500 ; 16501 return 0; 16502} 16503_ACEOF 16504rm -f conftest.$ac_objext conftest$ac_exeext 16505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16506 (eval $ac_link) 2>&5 16507 ac_status=$? 16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16509 (exit $ac_status); } && 16510 { ac_try='test -s conftest$ac_exeext' 16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16512 (eval $ac_try) 2>&5 16513 ac_status=$? 16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16515 (exit $ac_status); }; }; then 16516 ac_cv_lib_svld_dlopen=yes 16517else 16518 echo "$as_me: failed program was:" >&5 16519cat conftest.$ac_ext >&5 16520ac_cv_lib_svld_dlopen=no 16521fi 16522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16523LIBS=$ac_check_lib_save_LIBS 16524fi 16525echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 16526echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 16527if test $ac_cv_lib_svld_dlopen = yes; then 16528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 16529else 16530 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 16531echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 16532if test "${ac_cv_lib_dld_dld_link+set}" = set; then 16533 echo $ECHO_N "(cached) $ECHO_C" >&6 16534else 16535 ac_check_lib_save_LIBS=$LIBS 16536LIBS="-ldld $LIBS" 16537cat >conftest.$ac_ext <<_ACEOF 16538#line $LINENO "configure" 16539#include "confdefs.h" 16540 16541/* Override any gcc2 internal prototype to avoid an error. */ 16542#ifdef __cplusplus 16543extern "C" 16544#endif 16545/* We use char because int might match the return type of a gcc2 16546 builtin and then its argument prototype would still apply. */ 16547char dld_link (); 16548#ifdef F77_DUMMY_MAIN 16549# ifdef __cplusplus 16550 extern "C" 16551# endif 16552 int F77_DUMMY_MAIN() { return 1; } 16553#endif 16554int 16555main () 16556{ 16557dld_link (); 16558 ; 16559 return 0; 16560} 16561_ACEOF 16562rm -f conftest.$ac_objext conftest$ac_exeext 16563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16564 (eval $ac_link) 2>&5 16565 ac_status=$? 16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16567 (exit $ac_status); } && 16568 { ac_try='test -s conftest$ac_exeext' 16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16570 (eval $ac_try) 2>&5 16571 ac_status=$? 16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16573 (exit $ac_status); }; }; then 16574 ac_cv_lib_dld_dld_link=yes 16575else 16576 echo "$as_me: failed program was:" >&5 16577cat conftest.$ac_ext >&5 16578ac_cv_lib_dld_dld_link=no 16579fi 16580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16581LIBS=$ac_check_lib_save_LIBS 16582fi 16583echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 16584echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 16585if test $ac_cv_lib_dld_dld_link = yes; then 16586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 16587fi 16588 16589 16590fi 16591 16592 16593fi 16594 16595 16596fi 16597 16598 16599fi 16600 16601 16602fi 16603 16604 ;; 16605 esac 16606 16607 if test "x$lt_cv_dlopen" != xno; then 16608 enable_dlopen=yes 16609 else 16610 enable_dlopen=no 16611 fi 16612 16613 case $lt_cv_dlopen in 16614 dlopen) 16615 save_CPPFLAGS="$CPPFLAGS" 16616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16617 16618 save_LDFLAGS="$LDFLAGS" 16619 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16620 16621 save_LIBS="$LIBS" 16622 LIBS="$lt_cv_dlopen_libs $LIBS" 16623 16624 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 16625echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 16626if test "${lt_cv_dlopen_self+set}" = set; then 16627 echo $ECHO_N "(cached) $ECHO_C" >&6 16628else 16629 if test "$cross_compiling" = yes; then : 16630 lt_cv_dlopen_self=cross 16631else 16632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16633 lt_status=$lt_dlunknown 16634 cat > conftest.$ac_ext <<EOF 16635#line 16635 "configure" 16636#include "confdefs.h" 16637 16638#if HAVE_DLFCN_H 16639#include <dlfcn.h> 16640#endif 16641 16642#include <stdio.h> 16643 16644#ifdef RTLD_GLOBAL 16645# define LT_DLGLOBAL RTLD_GLOBAL 16646#else 16647# ifdef DL_GLOBAL 16648# define LT_DLGLOBAL DL_GLOBAL 16649# else 16650# define LT_DLGLOBAL 0 16651# endif 16652#endif 16653 16654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16655 find out it does not work in some platform. */ 16656#ifndef LT_DLLAZY_OR_NOW 16657# ifdef RTLD_LAZY 16658# define LT_DLLAZY_OR_NOW RTLD_LAZY 16659# else 16660# ifdef DL_LAZY 16661# define LT_DLLAZY_OR_NOW DL_LAZY 16662# else 16663# ifdef RTLD_NOW 16664# define LT_DLLAZY_OR_NOW RTLD_NOW 16665# else 16666# ifdef DL_NOW 16667# define LT_DLLAZY_OR_NOW DL_NOW 16668# else 16669# define LT_DLLAZY_OR_NOW 0 16670# endif 16671# endif 16672# endif 16673# endif 16674#endif 16675 16676#ifdef __cplusplus 16677extern "C" void exit (int); 16678#endif 16679 16680void fnord() { int i=42;} 16681int main () 16682{ 16683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16684 int status = $lt_dlunknown; 16685 16686 if (self) 16687 { 16688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16689 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16690 /* dlclose (self); */ 16691 } 16692 16693 exit (status); 16694} 16695EOF 16696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16697 (eval $ac_link) 2>&5 16698 ac_status=$? 16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 16701 (./conftest; exit; ) 2>/dev/null 16702 lt_status=$? 16703 case x$lt_status in 16704 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16705 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16706 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 16707 esac 16708 else : 16709 # compilation failed 16710 lt_cv_dlopen_self=no 16711 fi 16712fi 16713rm -fr conftest* 16714 16715 16716fi 16717echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 16718echo "${ECHO_T}$lt_cv_dlopen_self" >&6 16719 16720 if test "x$lt_cv_dlopen_self" = xyes; then 16721 LDFLAGS="$LDFLAGS $link_static_flag" 16722 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 16723echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 16724if test "${lt_cv_dlopen_self_static+set}" = set; then 16725 echo $ECHO_N "(cached) $ECHO_C" >&6 16726else 16727 if test "$cross_compiling" = yes; then : 16728 lt_cv_dlopen_self_static=cross 16729else 16730 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16731 lt_status=$lt_dlunknown 16732 cat > conftest.$ac_ext <<EOF 16733#line 16733 "configure" 16734#include "confdefs.h" 16735 16736#if HAVE_DLFCN_H 16737#include <dlfcn.h> 16738#endif 16739 16740#include <stdio.h> 16741 16742#ifdef RTLD_GLOBAL 16743# define LT_DLGLOBAL RTLD_GLOBAL 16744#else 16745# ifdef DL_GLOBAL 16746# define LT_DLGLOBAL DL_GLOBAL 16747# else 16748# define LT_DLGLOBAL 0 16749# endif 16750#endif 16751 16752/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16753 find out it does not work in some platform. */ 16754#ifndef LT_DLLAZY_OR_NOW 16755# ifdef RTLD_LAZY 16756# define LT_DLLAZY_OR_NOW RTLD_LAZY 16757# else 16758# ifdef DL_LAZY 16759# define LT_DLLAZY_OR_NOW DL_LAZY 16760# else 16761# ifdef RTLD_NOW 16762# define LT_DLLAZY_OR_NOW RTLD_NOW 16763# else 16764# ifdef DL_NOW 16765# define LT_DLLAZY_OR_NOW DL_NOW 16766# else 16767# define LT_DLLAZY_OR_NOW 0 16768# endif 16769# endif 16770# endif 16771# endif 16772#endif 16773 16774#ifdef __cplusplus 16775extern "C" void exit (int); 16776#endif 16777 16778void fnord() { int i=42;} 16779int main () 16780{ 16781 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16782 int status = $lt_dlunknown; 16783 16784 if (self) 16785 { 16786 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16787 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16788 /* dlclose (self); */ 16789 } 16790 16791 exit (status); 16792} 16793EOF 16794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16795 (eval $ac_link) 2>&5 16796 ac_status=$? 16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16798 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 16799 (./conftest; exit; ) 2>/dev/null 16800 lt_status=$? 16801 case x$lt_status in 16802 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16803 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16804 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 16805 esac 16806 else : 16807 # compilation failed 16808 lt_cv_dlopen_self_static=no 16809 fi 16810fi 16811rm -fr conftest* 16812 16813 16814fi 16815echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 16816echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 16817 fi 16818 16819 CPPFLAGS="$save_CPPFLAGS" 16820 LDFLAGS="$save_LDFLAGS" 16821 LIBS="$save_LIBS" 16822 ;; 16823 esac 16824 16825 case $lt_cv_dlopen_self in 16826 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16827 *) enable_dlopen_self=unknown ;; 16828 esac 16829 16830 case $lt_cv_dlopen_self_static in 16831 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16832 *) enable_dlopen_self_static=unknown ;; 16833 esac 16834fi 16835 16836 16837# The else clause should only fire when bootstrapping the 16838# libtool distribution, otherwise you forgot to ship ltmain.sh 16839# with your package, and you will get complaints that there are 16840# no rules to generate ltmain.sh. 16841if test -f "$ltmain"; then 16842 # See if we are running on zsh, and set the options which allow our commands through 16843 # without removal of \ escapes. 16844 if test -n "${ZSH_VERSION+set}" ; then 16845 setopt NO_GLOB_SUBST 16846 fi 16847 # Now quote all the things that may contain metacharacters while being 16848 # careful not to overquote the AC_SUBSTed values. We take copies of the 16849 # variables and quote the copies for generation of the libtool script. 16850 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 16851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16853 deplibs_check_method reload_flag reload_cmds need_locks \ 16854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16855 lt_cv_sys_global_symbol_to_c_name_address \ 16856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16857 old_postinstall_cmds old_postuninstall_cmds \ 16858 compiler_GCJ \ 16859 CC_GCJ \ 16860 LD_GCJ \ 16861 lt_prog_compiler_wl_GCJ \ 16862 lt_prog_compiler_pic_GCJ \ 16863 lt_prog_compiler_static_GCJ \ 16864 lt_prog_compiler_no_builtin_flag_GCJ \ 16865 export_dynamic_flag_spec_GCJ \ 16866 thread_safe_flag_spec_GCJ \ 16867 whole_archive_flag_spec_GCJ \ 16868 enable_shared_with_static_runtimes_GCJ \ 16869 old_archive_cmds_GCJ \ 16870 old_archive_from_new_cmds_GCJ \ 16871 predep_objects_GCJ \ 16872 postdep_objects_GCJ \ 16873 predeps_GCJ \ 16874 postdeps_GCJ \ 16875 compiler_lib_search_path_GCJ \ 16876 archive_cmds_GCJ \ 16877 archive_expsym_cmds_GCJ \ 16878 postinstall_cmds_GCJ \ 16879 postuninstall_cmds_GCJ \ 16880 old_archive_from_expsyms_cmds_GCJ \ 16881 allow_undefined_flag_GCJ \ 16882 no_undefined_flag_GCJ \ 16883 export_symbols_cmds_GCJ \ 16884 hardcode_libdir_flag_spec_GCJ \ 16885 hardcode_libdir_flag_spec_ld_GCJ \ 16886 hardcode_libdir_separator_GCJ \ 16887 hardcode_automatic_GCJ \ 16888 module_cmds_GCJ \ 16889 module_expsym_cmds_GCJ \ 16890 lt_cv_prog_compiler_c_o_GCJ \ 16891 exclude_expsyms_GCJ \ 16892 include_expsyms_GCJ; do 16893 16894 case $var in 16895 old_archive_cmds_GCJ | \ 16896 old_archive_from_new_cmds_GCJ | \ 16897 archive_cmds_GCJ | \ 16898 archive_expsym_cmds_GCJ | \ 16899 module_cmds_GCJ | \ 16900 module_expsym_cmds_GCJ | \ 16901 old_archive_from_expsyms_cmds_GCJ | \ 16902 export_symbols_cmds_GCJ | \ 16903 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16904 postinstall_cmds | postuninstall_cmds | \ 16905 old_postinstall_cmds | old_postuninstall_cmds | \ 16906 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16907 # Double-quote double-evaled strings. 16908 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16909 ;; 16910 *) 16911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16912 ;; 16913 esac 16914 done 16915 16916 case $lt_echo in 16917 *'\$0 --fallback-echo"') 16918 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16919 ;; 16920 esac 16921 16922cfgfile="$ofile" 16923 16924 cat <<__EOF__ >> "$cfgfile" 16925# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16926 16927# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16928 16929# Shell to use when invoking shell scripts. 16930SHELL=$lt_SHELL 16931 16932# Whether or not to build shared libraries. 16933build_libtool_libs=$enable_shared 16934 16935# Whether or not to build static libraries. 16936build_old_libs=$enable_static 16937 16938# Whether or not to add -lc for building shared libraries. 16939build_libtool_need_lc=$archive_cmds_need_lc_GCJ 16940 16941# Whether or not to disallow shared libs when runtime libs are static 16942allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 16943 16944# Whether or not to optimize for fast installation. 16945fast_install=$enable_fast_install 16946 16947# The host system. 16948host_alias=$host_alias 16949host=$host 16950 16951# An echo program that does not interpret backslashes. 16952echo=$lt_echo 16953 16954# The archiver. 16955AR=$lt_AR 16956AR_FLAGS=$lt_AR_FLAGS 16957 16958# A C compiler. 16959LTCC=$lt_LTCC 16960 16961# A language-specific compiler. 16962CC=$lt_compiler_GCJ 16963 16964# Is the compiler the GNU C compiler? 16965with_gcc=$GCC_GCJ 16966 16967# An ERE matcher. 16968EGREP=$lt_EGREP 16969 16970# The linker used to build libraries. 16971LD=$lt_LD_GCJ 16972 16973# Whether we need hard or soft links. 16974LN_S=$lt_LN_S 16975 16976# A BSD-compatible nm program. 16977NM=$lt_NM 16978 16979# A symbol stripping program 16980STRIP=$STRIP 16981 16982# Used to examine libraries when file_magic_cmd begins "file" 16983MAGIC_CMD=$MAGIC_CMD 16984 16985# Used on cygwin: DLL creation program. 16986DLLTOOL="$DLLTOOL" 16987 16988# Used on cygwin: object dumper. 16989OBJDUMP="$OBJDUMP" 16990 16991# Used on cygwin: assembler. 16992AS="$AS" 16993 16994# The name of the directory that contains temporary libtool files. 16995objdir=$objdir 16996 16997# How to create reloadable object files. 16998reload_flag=$lt_reload_flag 16999reload_cmds=$lt_reload_cmds 17000 17001# How to pass a linker flag through the compiler. 17002wl=$lt_lt_prog_compiler_wl_GCJ 17003 17004# Object file suffix (normally "o"). 17005objext="$ac_objext" 17006 17007# Old archive suffix (normally "a"). 17008libext="$libext" 17009 17010# Shared library suffix (normally ".so"). 17011shrext='$shrext' 17012 17013# Executable file suffix (normally ""). 17014exeext="$exeext" 17015 17016# Additional compiler flags for building library objects. 17017pic_flag=$lt_lt_prog_compiler_pic_GCJ 17018pic_mode=$pic_mode 17019 17020# What is the maximum length of a command? 17021max_cmd_len=$lt_cv_sys_max_cmd_len 17022 17023# Does compiler simultaneously support -c and -o options? 17024compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17025 17026# Must we lock files when doing compilation ? 17027need_locks=$lt_need_locks 17028 17029# Do we need the lib prefix for modules? 17030need_lib_prefix=$need_lib_prefix 17031 17032# Do we need a version for libraries? 17033need_version=$need_version 17034 17035# Whether dlopen is supported. 17036dlopen_support=$enable_dlopen 17037 17038# Whether dlopen of programs is supported. 17039dlopen_self=$enable_dlopen_self 17040 17041# Whether dlopen of statically linked programs is supported. 17042dlopen_self_static=$enable_dlopen_self_static 17043 17044# Compiler flag to prevent dynamic linking. 17045link_static_flag=$lt_lt_prog_compiler_static_GCJ 17046 17047# Compiler flag to turn off builtin functions. 17048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17049 17050# Compiler flag to allow reflexive dlopens. 17051export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17052 17053# Compiler flag to generate shared objects directly from archives. 17054whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17055 17056# Compiler flag to generate thread-safe objects. 17057thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17058 17059# Library versioning type. 17060version_type=$version_type 17061 17062# Format of library name prefix. 17063libname_spec=$lt_libname_spec 17064 17065# List of archive names. First name is the real one, the rest are links. 17066# The last name is the one that the linker finds with -lNAME. 17067library_names_spec=$lt_library_names_spec 17068 17069# The coded name of the library, if different from the real name. 17070soname_spec=$lt_soname_spec 17071 17072# Commands used to build and install an old-style archive. 17073RANLIB=$lt_RANLIB 17074old_archive_cmds=$lt_old_archive_cmds_GCJ 17075old_postinstall_cmds=$lt_old_postinstall_cmds 17076old_postuninstall_cmds=$lt_old_postuninstall_cmds 17077 17078# Create an old-style archive from a shared archive. 17079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17080 17081# Create a temporary old-style archive to link instead of a shared archive. 17082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17083 17084# Commands used to build and install a shared archive. 17085archive_cmds=$lt_archive_cmds_GCJ 17086archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17087postinstall_cmds=$lt_postinstall_cmds 17088postuninstall_cmds=$lt_postuninstall_cmds 17089 17090# Commands used to build a loadable module (assumed same as above if empty) 17091module_cmds=$lt_module_cmds_GCJ 17092module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17093 17094# Commands to strip libraries. 17095old_striplib=$lt_old_striplib 17096striplib=$lt_striplib 17097 17098# Dependencies to place before the objects being linked to create a 17099# shared library. 17100predep_objects=$lt_predep_objects_GCJ 17101 17102# Dependencies to place after the objects being linked to create a 17103# shared library. 17104postdep_objects=$lt_postdep_objects_GCJ 17105 17106# Dependencies to place before the objects being linked to create a 17107# shared library. 17108predeps=$lt_predeps_GCJ 17109 17110# Dependencies to place after the objects being linked to create a 17111# shared library. 17112postdeps=$lt_postdeps_GCJ 17113 17114# The library search path used internally by the compiler when linking 17115# a shared library. 17116compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17117 17118# Method to check whether dependent libraries are shared objects. 17119deplibs_check_method=$lt_deplibs_check_method 17120 17121# Command to use when deplibs_check_method == file_magic. 17122file_magic_cmd=$lt_file_magic_cmd 17123 17124# Flag that allows shared libraries with undefined symbols to be built. 17125allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17126 17127# Flag that forces no undefined symbols. 17128no_undefined_flag=$lt_no_undefined_flag_GCJ 17129 17130# Commands used to finish a libtool library installation in a directory. 17131finish_cmds=$lt_finish_cmds 17132 17133# Same as above, but a single script fragment to be evaled but not shown. 17134finish_eval=$lt_finish_eval 17135 17136# Take the output of nm and produce a listing of raw symbols and C names. 17137global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17138 17139# Transform the output of nm in a proper C declaration 17140global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17141 17142# Transform the output of nm in a C name address pair 17143global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17144 17145# This is the shared library runtime path variable. 17146runpath_var=$runpath_var 17147 17148# This is the shared library path variable. 17149shlibpath_var=$shlibpath_var 17150 17151# Is shlibpath searched before the hard-coded library search path? 17152shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17153 17154# How to hardcode a shared library path into an executable. 17155hardcode_action=$hardcode_action_GCJ 17156 17157# Whether we should hardcode library paths into libraries. 17158hardcode_into_libs=$hardcode_into_libs 17159 17160# Flag to hardcode \$libdir into a binary during linking. 17161# This must work even if \$libdir does not exist. 17162hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17163 17164# If ld is used when linking, flag to hardcode \$libdir into 17165# a binary during linking. This must work even if \$libdir does 17166# not exist. 17167hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17168 17169# Whether we need a single -rpath flag with a separated argument. 17170hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17171 17172# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17173# resulting binary. 17174hardcode_direct=$hardcode_direct_GCJ 17175 17176# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17177# resulting binary. 17178hardcode_minus_L=$hardcode_minus_L_GCJ 17179 17180# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17181# the resulting binary. 17182hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 17183 17184# Set to yes if building a shared library automatically hardcodes DIR into the library 17185# and all subsequent libraries and executables linked against it. 17186hardcode_automatic=$hardcode_automatic_GCJ 17187 17188# Variables whose values should be saved in libtool wrapper scripts and 17189# restored at relink time. 17190variables_saved_for_relink="$variables_saved_for_relink" 17191 17192# Whether libtool must link a program against all its dependency libraries. 17193link_all_deplibs=$link_all_deplibs_GCJ 17194 17195# Compile-time system search path for libraries 17196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17197 17198# Run-time system search path for libraries 17199sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17200 17201# Fix the shell variable \$srcfile for the compiler. 17202fix_srcfile_path="$fix_srcfile_path_GCJ" 17203 17204# Set to yes if exported symbols are required. 17205always_export_symbols=$always_export_symbols_GCJ 17206 17207# The commands to list exported symbols. 17208export_symbols_cmds=$lt_export_symbols_cmds_GCJ 17209 17210# The commands to extract the exported symbol list from a shared archive. 17211extract_expsyms_cmds=$lt_extract_expsyms_cmds 17212 17213# Symbols that should not be listed in the preloaded symbols. 17214exclude_expsyms=$lt_exclude_expsyms_GCJ 17215 17216# Symbols that must always be exported. 17217include_expsyms=$lt_include_expsyms_GCJ 17218 17219# ### END LIBTOOL TAG CONFIG: $tagname 17220 17221__EOF__ 17222 17223 17224else 17225 # If there is no Makefile yet, we rely on a make rule to execute 17226 # `config.status --recheck' to rerun these tests and create the 17227 # libtool script then. 17228 test -f Makefile && make "$ltmain" 17229fi 17230 17231 17232ac_ext=c 17233ac_cpp='$CPP $CPPFLAGS' 17234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17236ac_compiler_gnu=$ac_cv_c_compiler_gnu 17237 17238CC="$lt_save_CC" 17239 17240 else 17241 tagname="" 17242 fi 17243 ;; 17244 17245 RC) 17246 17247 17248 17249# Source file extension for RC test sources. 17250ac_ext=rc 17251 17252# Object file extension for compiled RC test sources. 17253objext=o 17254objext_RC=$objext 17255 17256# Code to be used in simple compile tests 17257lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 17258 17259# Code to be used in simple link tests 17260lt_simple_link_test_code="$lt_simple_compile_test_code" 17261 17262# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17263 17264# If no C compiler was specified, use CC. 17265LTCC=${LTCC-"$CC"} 17266 17267# Allow CC to be a program name with arguments. 17268compiler=$CC 17269 17270 17271# Allow CC to be a program name with arguments. 17272lt_save_CC="$CC" 17273CC=${RC-"windres"} 17274compiler=$CC 17275compiler_RC=$CC 17276lt_cv_prog_compiler_c_o_RC=yes 17277 17278# The else clause should only fire when bootstrapping the 17279# libtool distribution, otherwise you forgot to ship ltmain.sh 17280# with your package, and you will get complaints that there are 17281# no rules to generate ltmain.sh. 17282if test -f "$ltmain"; then 17283 # See if we are running on zsh, and set the options which allow our commands through 17284 # without removal of \ escapes. 17285 if test -n "${ZSH_VERSION+set}" ; then 17286 setopt NO_GLOB_SUBST 17287 fi 17288 # Now quote all the things that may contain metacharacters while being 17289 # careful not to overquote the AC_SUBSTed values. We take copies of the 17290 # variables and quote the copies for generation of the libtool script. 17291 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 17292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17294 deplibs_check_method reload_flag reload_cmds need_locks \ 17295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17296 lt_cv_sys_global_symbol_to_c_name_address \ 17297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17298 old_postinstall_cmds old_postuninstall_cmds \ 17299 compiler_RC \ 17300 CC_RC \ 17301 LD_RC \ 17302 lt_prog_compiler_wl_RC \ 17303 lt_prog_compiler_pic_RC \ 17304 lt_prog_compiler_static_RC \ 17305 lt_prog_compiler_no_builtin_flag_RC \ 17306 export_dynamic_flag_spec_RC \ 17307 thread_safe_flag_spec_RC \ 17308 whole_archive_flag_spec_RC \ 17309 enable_shared_with_static_runtimes_RC \ 17310 old_archive_cmds_RC \ 17311 old_archive_from_new_cmds_RC \ 17312 predep_objects_RC \ 17313 postdep_objects_RC \ 17314 predeps_RC \ 17315 postdeps_RC \ 17316 compiler_lib_search_path_RC \ 17317 archive_cmds_RC \ 17318 archive_expsym_cmds_RC \ 17319 postinstall_cmds_RC \ 17320 postuninstall_cmds_RC \ 17321 old_archive_from_expsyms_cmds_RC \ 17322 allow_undefined_flag_RC \ 17323 no_undefined_flag_RC \ 17324 export_symbols_cmds_RC \ 17325 hardcode_libdir_flag_spec_RC \ 17326 hardcode_libdir_flag_spec_ld_RC \ 17327 hardcode_libdir_separator_RC \ 17328 hardcode_automatic_RC \ 17329 module_cmds_RC \ 17330 module_expsym_cmds_RC \ 17331 lt_cv_prog_compiler_c_o_RC \ 17332 exclude_expsyms_RC \ 17333 include_expsyms_RC; do 17334 17335 case $var in 17336 old_archive_cmds_RC | \ 17337 old_archive_from_new_cmds_RC | \ 17338 archive_cmds_RC | \ 17339 archive_expsym_cmds_RC | \ 17340 module_cmds_RC | \ 17341 module_expsym_cmds_RC | \ 17342 old_archive_from_expsyms_cmds_RC | \ 17343 export_symbols_cmds_RC | \ 17344 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17345 postinstall_cmds | postuninstall_cmds | \ 17346 old_postinstall_cmds | old_postuninstall_cmds | \ 17347 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17348 # Double-quote double-evaled strings. 17349 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17350 ;; 17351 *) 17352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17353 ;; 17354 esac 17355 done 17356 17357 case $lt_echo in 17358 *'\$0 --fallback-echo"') 17359 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17360 ;; 17361 esac 17362 17363cfgfile="$ofile" 17364 17365 cat <<__EOF__ >> "$cfgfile" 17366# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17367 17368# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17369 17370# Shell to use when invoking shell scripts. 17371SHELL=$lt_SHELL 17372 17373# Whether or not to build shared libraries. 17374build_libtool_libs=$enable_shared 17375 17376# Whether or not to build static libraries. 17377build_old_libs=$enable_static 17378 17379# Whether or not to add -lc for building shared libraries. 17380build_libtool_need_lc=$archive_cmds_need_lc_RC 17381 17382# Whether or not to disallow shared libs when runtime libs are static 17383allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 17384 17385# Whether or not to optimize for fast installation. 17386fast_install=$enable_fast_install 17387 17388# The host system. 17389host_alias=$host_alias 17390host=$host 17391 17392# An echo program that does not interpret backslashes. 17393echo=$lt_echo 17394 17395# The archiver. 17396AR=$lt_AR 17397AR_FLAGS=$lt_AR_FLAGS 17398 17399# A C compiler. 17400LTCC=$lt_LTCC 17401 17402# A language-specific compiler. 17403CC=$lt_compiler_RC 17404 17405# Is the compiler the GNU C compiler? 17406with_gcc=$GCC_RC 17407 17408# An ERE matcher. 17409EGREP=$lt_EGREP 17410 17411# The linker used to build libraries. 17412LD=$lt_LD_RC 17413 17414# Whether we need hard or soft links. 17415LN_S=$lt_LN_S 17416 17417# A BSD-compatible nm program. 17418NM=$lt_NM 17419 17420# A symbol stripping program 17421STRIP=$STRIP 17422 17423# Used to examine libraries when file_magic_cmd begins "file" 17424MAGIC_CMD=$MAGIC_CMD 17425 17426# Used on cygwin: DLL creation program. 17427DLLTOOL="$DLLTOOL" 17428 17429# Used on cygwin: object dumper. 17430OBJDUMP="$OBJDUMP" 17431 17432# Used on cygwin: assembler. 17433AS="$AS" 17434 17435# The name of the directory that contains temporary libtool files. 17436objdir=$objdir 17437 17438# How to create reloadable object files. 17439reload_flag=$lt_reload_flag 17440reload_cmds=$lt_reload_cmds 17441 17442# How to pass a linker flag through the compiler. 17443wl=$lt_lt_prog_compiler_wl_RC 17444 17445# Object file suffix (normally "o"). 17446objext="$ac_objext" 17447 17448# Old archive suffix (normally "a"). 17449libext="$libext" 17450 17451# Shared library suffix (normally ".so"). 17452shrext='$shrext' 17453 17454# Executable file suffix (normally ""). 17455exeext="$exeext" 17456 17457# Additional compiler flags for building library objects. 17458pic_flag=$lt_lt_prog_compiler_pic_RC 17459pic_mode=$pic_mode 17460 17461# What is the maximum length of a command? 17462max_cmd_len=$lt_cv_sys_max_cmd_len 17463 17464# Does compiler simultaneously support -c and -o options? 17465compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 17466 17467# Must we lock files when doing compilation ? 17468need_locks=$lt_need_locks 17469 17470# Do we need the lib prefix for modules? 17471need_lib_prefix=$need_lib_prefix 17472 17473# Do we need a version for libraries? 17474need_version=$need_version 17475 17476# Whether dlopen is supported. 17477dlopen_support=$enable_dlopen 17478 17479# Whether dlopen of programs is supported. 17480dlopen_self=$enable_dlopen_self 17481 17482# Whether dlopen of statically linked programs is supported. 17483dlopen_self_static=$enable_dlopen_self_static 17484 17485# Compiler flag to prevent dynamic linking. 17486link_static_flag=$lt_lt_prog_compiler_static_RC 17487 17488# Compiler flag to turn off builtin functions. 17489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 17490 17491# Compiler flag to allow reflexive dlopens. 17492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 17493 17494# Compiler flag to generate shared objects directly from archives. 17495whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 17496 17497# Compiler flag to generate thread-safe objects. 17498thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 17499 17500# Library versioning type. 17501version_type=$version_type 17502 17503# Format of library name prefix. 17504libname_spec=$lt_libname_spec 17505 17506# List of archive names. First name is the real one, the rest are links. 17507# The last name is the one that the linker finds with -lNAME. 17508library_names_spec=$lt_library_names_spec 17509 17510# The coded name of the library, if different from the real name. 17511soname_spec=$lt_soname_spec 17512 17513# Commands used to build and install an old-style archive. 17514RANLIB=$lt_RANLIB 17515old_archive_cmds=$lt_old_archive_cmds_RC 17516old_postinstall_cmds=$lt_old_postinstall_cmds 17517old_postuninstall_cmds=$lt_old_postuninstall_cmds 17518 17519# Create an old-style archive from a shared archive. 17520old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 17521 17522# Create a temporary old-style archive to link instead of a shared archive. 17523old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 17524 17525# Commands used to build and install a shared archive. 17526archive_cmds=$lt_archive_cmds_RC 17527archive_expsym_cmds=$lt_archive_expsym_cmds_RC 17528postinstall_cmds=$lt_postinstall_cmds 17529postuninstall_cmds=$lt_postuninstall_cmds 17530 17531# Commands used to build a loadable module (assumed same as above if empty) 17532module_cmds=$lt_module_cmds_RC 17533module_expsym_cmds=$lt_module_expsym_cmds_RC 17534 17535# Commands to strip libraries. 17536old_striplib=$lt_old_striplib 17537striplib=$lt_striplib 17538 17539# Dependencies to place before the objects being linked to create a 17540# shared library. 17541predep_objects=$lt_predep_objects_RC 17542 17543# Dependencies to place after the objects being linked to create a 17544# shared library. 17545postdep_objects=$lt_postdep_objects_RC 17546 17547# Dependencies to place before the objects being linked to create a 17548# shared library. 17549predeps=$lt_predeps_RC 17550 17551# Dependencies to place after the objects being linked to create a 17552# shared library. 17553postdeps=$lt_postdeps_RC 17554 17555# The library search path used internally by the compiler when linking 17556# a shared library. 17557compiler_lib_search_path=$lt_compiler_lib_search_path_RC 17558 17559# Method to check whether dependent libraries are shared objects. 17560deplibs_check_method=$lt_deplibs_check_method 17561 17562# Command to use when deplibs_check_method == file_magic. 17563file_magic_cmd=$lt_file_magic_cmd 17564 17565# Flag that allows shared libraries with undefined symbols to be built. 17566allow_undefined_flag=$lt_allow_undefined_flag_RC 17567 17568# Flag that forces no undefined symbols. 17569no_undefined_flag=$lt_no_undefined_flag_RC 17570 17571# Commands used to finish a libtool library installation in a directory. 17572finish_cmds=$lt_finish_cmds 17573 17574# Same as above, but a single script fragment to be evaled but not shown. 17575finish_eval=$lt_finish_eval 17576 17577# Take the output of nm and produce a listing of raw symbols and C names. 17578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17579 17580# Transform the output of nm in a proper C declaration 17581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17582 17583# Transform the output of nm in a C name address pair 17584global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17585 17586# This is the shared library runtime path variable. 17587runpath_var=$runpath_var 17588 17589# This is the shared library path variable. 17590shlibpath_var=$shlibpath_var 17591 17592# Is shlibpath searched before the hard-coded library search path? 17593shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17594 17595# How to hardcode a shared library path into an executable. 17596hardcode_action=$hardcode_action_RC 17597 17598# Whether we should hardcode library paths into libraries. 17599hardcode_into_libs=$hardcode_into_libs 17600 17601# Flag to hardcode \$libdir into a binary during linking. 17602# This must work even if \$libdir does not exist. 17603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 17604 17605# If ld is used when linking, flag to hardcode \$libdir into 17606# a binary during linking. This must work even if \$libdir does 17607# not exist. 17608hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 17609 17610# Whether we need a single -rpath flag with a separated argument. 17611hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 17612 17613# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17614# resulting binary. 17615hardcode_direct=$hardcode_direct_RC 17616 17617# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17618# resulting binary. 17619hardcode_minus_L=$hardcode_minus_L_RC 17620 17621# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17622# the resulting binary. 17623hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 17624 17625# Set to yes if building a shared library automatically hardcodes DIR into the library 17626# and all subsequent libraries and executables linked against it. 17627hardcode_automatic=$hardcode_automatic_RC 17628 17629# Variables whose values should be saved in libtool wrapper scripts and 17630# restored at relink time. 17631variables_saved_for_relink="$variables_saved_for_relink" 17632 17633# Whether libtool must link a program against all its dependency libraries. 17634link_all_deplibs=$link_all_deplibs_RC 17635 17636# Compile-time system search path for libraries 17637sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17638 17639# Run-time system search path for libraries 17640sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17641 17642# Fix the shell variable \$srcfile for the compiler. 17643fix_srcfile_path="$fix_srcfile_path_RC" 17644 17645# Set to yes if exported symbols are required. 17646always_export_symbols=$always_export_symbols_RC 17647 17648# The commands to list exported symbols. 17649export_symbols_cmds=$lt_export_symbols_cmds_RC 17650 17651# The commands to extract the exported symbol list from a shared archive. 17652extract_expsyms_cmds=$lt_extract_expsyms_cmds 17653 17654# Symbols that should not be listed in the preloaded symbols. 17655exclude_expsyms=$lt_exclude_expsyms_RC 17656 17657# Symbols that must always be exported. 17658include_expsyms=$lt_include_expsyms_RC 17659 17660# ### END LIBTOOL TAG CONFIG: $tagname 17661 17662__EOF__ 17663 17664 17665else 17666 # If there is no Makefile yet, we rely on a make rule to execute 17667 # `config.status --recheck' to rerun these tests and create the 17668 # libtool script then. 17669 test -f Makefile && make "$ltmain" 17670fi 17671 17672 17673ac_ext=c 17674ac_cpp='$CPP $CPPFLAGS' 17675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17677ac_compiler_gnu=$ac_cv_c_compiler_gnu 17678 17679CC="$lt_save_CC" 17680 17681 ;; 17682 17683 *) 17684 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 17685echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 17686 { (exit 1); exit 1; }; } 17687 ;; 17688 esac 17689 17690 # Append the new tag name to the list of available tags. 17691 if test -n "$tagname" ; then 17692 available_tags="$available_tags $tagname" 17693 fi 17694 fi 17695 done 17696 IFS="$lt_save_ifs" 17697 17698 # Now substitute the updated list of available tags. 17699 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 17700 mv "${ofile}T" "$ofile" 17701 chmod +x "$ofile" 17702 else 17703 rm -f "${ofile}T" 17704 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 17705echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 17706 { (exit 1); exit 1; }; } 17707 fi 17708fi 17709 17710 17711 17712# This can be used to rebuild libtool when needed 17713LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 17714 17715# Always use our own libtool. 17716LIBTOOL='$(SHELL) $(top_builddir)/libtool' 17717 17718# Prevent multiple expansion 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742echo "$as_me:$LINENO: checking for library containing crypt" >&5 17743echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6 17744if test "${ac_cv_search_crypt+set}" = set; then 17745 echo $ECHO_N "(cached) $ECHO_C" >&6 17746else 17747 ac_func_search_save_LIBS=$LIBS 17748ac_cv_search_crypt=no 17749cat >conftest.$ac_ext <<_ACEOF 17750#line $LINENO "configure" 17751#include "confdefs.h" 17752 17753/* Override any gcc2 internal prototype to avoid an error. */ 17754#ifdef __cplusplus 17755extern "C" 17756#endif 17757/* We use char because int might match the return type of a gcc2 17758 builtin and then its argument prototype would still apply. */ 17759char crypt (); 17760#ifdef F77_DUMMY_MAIN 17761# ifdef __cplusplus 17762 extern "C" 17763# endif 17764 int F77_DUMMY_MAIN() { return 1; } 17765#endif 17766int 17767main () 17768{ 17769crypt (); 17770 ; 17771 return 0; 17772} 17773_ACEOF 17774rm -f conftest.$ac_objext conftest$ac_exeext 17775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17776 (eval $ac_link) 2>&5 17777 ac_status=$? 17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17779 (exit $ac_status); } && 17780 { ac_try='test -s conftest$ac_exeext' 17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17782 (eval $ac_try) 2>&5 17783 ac_status=$? 17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17785 (exit $ac_status); }; }; then 17786 ac_cv_search_crypt="none required" 17787else 17788 echo "$as_me: failed program was:" >&5 17789cat conftest.$ac_ext >&5 17790fi 17791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17792if test "$ac_cv_search_crypt" = no; then 17793 for ac_lib in crypt; do 17794 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17795 cat >conftest.$ac_ext <<_ACEOF 17796#line $LINENO "configure" 17797#include "confdefs.h" 17798 17799/* Override any gcc2 internal prototype to avoid an error. */ 17800#ifdef __cplusplus 17801extern "C" 17802#endif 17803/* We use char because int might match the return type of a gcc2 17804 builtin and then its argument prototype would still apply. */ 17805char crypt (); 17806#ifdef F77_DUMMY_MAIN 17807# ifdef __cplusplus 17808 extern "C" 17809# endif 17810 int F77_DUMMY_MAIN() { return 1; } 17811#endif 17812int 17813main () 17814{ 17815crypt (); 17816 ; 17817 return 0; 17818} 17819_ACEOF 17820rm -f conftest.$ac_objext conftest$ac_exeext 17821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17822 (eval $ac_link) 2>&5 17823 ac_status=$? 17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17825 (exit $ac_status); } && 17826 { ac_try='test -s conftest$ac_exeext' 17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17828 (eval $ac_try) 2>&5 17829 ac_status=$? 17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17831 (exit $ac_status); }; }; then 17832 ac_cv_search_crypt="-l$ac_lib" 17833break 17834else 17835 echo "$as_me: failed program was:" >&5 17836cat conftest.$ac_ext >&5 17837fi 17838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17839 done 17840fi 17841LIBS=$ac_func_search_save_LIBS 17842fi 17843echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 17844echo "${ECHO_T}$ac_cv_search_crypt" >&6 17845if test "$ac_cv_search_crypt" != no; then 17846 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS" 17847 17848fi 17849 17850 17851echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 17852echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 17853if test "${ac_cv_lib_socket_connect+set}" = set; then 17854 echo $ECHO_N "(cached) $ECHO_C" >&6 17855else 17856 ac_check_lib_save_LIBS=$LIBS 17857LIBS="-lsocket $LIBS" 17858cat >conftest.$ac_ext <<_ACEOF 17859#line $LINENO "configure" 17860#include "confdefs.h" 17861 17862/* Override any gcc2 internal prototype to avoid an error. */ 17863#ifdef __cplusplus 17864extern "C" 17865#endif 17866/* We use char because int might match the return type of a gcc2 17867 builtin and then its argument prototype would still apply. */ 17868char connect (); 17869#ifdef F77_DUMMY_MAIN 17870# ifdef __cplusplus 17871 extern "C" 17872# endif 17873 int F77_DUMMY_MAIN() { return 1; } 17874#endif 17875int 17876main () 17877{ 17878connect (); 17879 ; 17880 return 0; 17881} 17882_ACEOF 17883rm -f conftest.$ac_objext conftest$ac_exeext 17884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17885 (eval $ac_link) 2>&5 17886 ac_status=$? 17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17888 (exit $ac_status); } && 17889 { ac_try='test -s conftest$ac_exeext' 17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17891 (eval $ac_try) 2>&5 17892 ac_status=$? 17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17894 (exit $ac_status); }; }; then 17895 ac_cv_lib_socket_connect=yes 17896else 17897 echo "$as_me: failed program was:" >&5 17898cat conftest.$ac_ext >&5 17899ac_cv_lib_socket_connect=no 17900fi 17901rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17902LIBS=$ac_check_lib_save_LIBS 17903fi 17904echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 17905echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 17906if test $ac_cv_lib_socket_connect = yes; then 17907 cat >>confdefs.h <<_ACEOF 17908#define HAVE_LIBSOCKET 1 17909_ACEOF 17910 17911 LIBS="-lsocket $LIBS" 17912 17913fi 17914 17915 17916echo "$as_me:$LINENO: checking for getservbyname in -lbind" >&5 17917echo $ECHO_N "checking for getservbyname in -lbind... $ECHO_C" >&6 17918if test "${ac_cv_lib_bind_getservbyname+set}" = set; then 17919 echo $ECHO_N "(cached) $ECHO_C" >&6 17920else 17921 ac_check_lib_save_LIBS=$LIBS 17922LIBS="-lbind $LIBS" 17923cat >conftest.$ac_ext <<_ACEOF 17924#line $LINENO "configure" 17925#include "confdefs.h" 17926 17927/* Override any gcc2 internal prototype to avoid an error. */ 17928#ifdef __cplusplus 17929extern "C" 17930#endif 17931/* We use char because int might match the return type of a gcc2 17932 builtin and then its argument prototype would still apply. */ 17933char getservbyname (); 17934#ifdef F77_DUMMY_MAIN 17935# ifdef __cplusplus 17936 extern "C" 17937# endif 17938 int F77_DUMMY_MAIN() { return 1; } 17939#endif 17940int 17941main () 17942{ 17943getservbyname (); 17944 ; 17945 return 0; 17946} 17947_ACEOF 17948rm -f conftest.$ac_objext conftest$ac_exeext 17949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17950 (eval $ac_link) 2>&5 17951 ac_status=$? 17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17953 (exit $ac_status); } && 17954 { ac_try='test -s conftest$ac_exeext' 17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17956 (eval $ac_try) 2>&5 17957 ac_status=$? 17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17959 (exit $ac_status); }; }; then 17960 ac_cv_lib_bind_getservbyname=yes 17961else 17962 echo "$as_me: failed program was:" >&5 17963cat conftest.$ac_ext >&5 17964ac_cv_lib_bind_getservbyname=no 17965fi 17966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17967LIBS=$ac_check_lib_save_LIBS 17968fi 17969echo "$as_me:$LINENO: result: $ac_cv_lib_bind_getservbyname" >&5 17970echo "${ECHO_T}$ac_cv_lib_bind_getservbyname" >&6 17971if test $ac_cv_lib_bind_getservbyname = yes; then 17972 cat >>confdefs.h <<_ACEOF 17973#define HAVE_LIBBIND 1 17974_ACEOF 17975 17976 LIBS="-lbind $LIBS" 17977 17978fi 17979 17980 17981echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 17982echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 17983if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 17984 echo $ECHO_N "(cached) $ECHO_C" >&6 17985else 17986 ac_check_lib_save_LIBS=$LIBS 17987LIBS="-lnsl $LIBS" 17988cat >conftest.$ac_ext <<_ACEOF 17989#line $LINENO "configure" 17990#include "confdefs.h" 17991 17992/* Override any gcc2 internal prototype to avoid an error. */ 17993#ifdef __cplusplus 17994extern "C" 17995#endif 17996/* We use char because int might match the return type of a gcc2 17997 builtin and then its argument prototype would still apply. */ 17998char gethostbyname (); 17999#ifdef F77_DUMMY_MAIN 18000# ifdef __cplusplus 18001 extern "C" 18002# endif 18003 int F77_DUMMY_MAIN() { return 1; } 18004#endif 18005int 18006main () 18007{ 18008gethostbyname (); 18009 ; 18010 return 0; 18011} 18012_ACEOF 18013rm -f conftest.$ac_objext conftest$ac_exeext 18014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18015 (eval $ac_link) 2>&5 18016 ac_status=$? 18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18018 (exit $ac_status); } && 18019 { ac_try='test -s conftest$ac_exeext' 18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18021 (eval $ac_try) 2>&5 18022 ac_status=$? 18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18024 (exit $ac_status); }; }; then 18025 ac_cv_lib_nsl_gethostbyname=yes 18026else 18027 echo "$as_me: failed program was:" >&5 18028cat conftest.$ac_ext >&5 18029ac_cv_lib_nsl_gethostbyname=no 18030fi 18031rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18032LIBS=$ac_check_lib_save_LIBS 18033fi 18034echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 18035echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 18036if test $ac_cv_lib_nsl_gethostbyname = yes; then 18037 cat >>confdefs.h <<_ACEOF 18038#define HAVE_LIBNSL 1 18039_ACEOF 18040 18041 LIBS="-lnsl $LIBS" 18042 18043fi 18044 18045 18046echo "$as_me:$LINENO: checking for X" >&5 18047echo $ECHO_N "checking for X... $ECHO_C" >&6 18048 18049 18050# Check whether --with-x or --without-x was given. 18051if test "${with_x+set}" = set; then 18052 withval="$with_x" 18053 18054fi; 18055# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18056if test "x$with_x" = xno; then 18057 # The user explicitly disabled X. 18058 have_x=disabled 18059else 18060 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 18061 # Both variables are already set. 18062 have_x=yes 18063 else 18064 if test "${ac_cv_have_x+set}" = set; then 18065 echo $ECHO_N "(cached) $ECHO_C" >&6 18066else 18067 # One or both of the vars are not set, and there is no cached value. 18068ac_x_includes=no ac_x_libraries=no 18069rm -fr conftest.dir 18070if mkdir conftest.dir; then 18071 cd conftest.dir 18072 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 18073 cat >Imakefile <<'_ACEOF' 18074acfindx: 18075 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 18076_ACEOF 18077 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 18078 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 18079 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 18080 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18081 for ac_extension in a so sl; do 18082 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 18083 test -f $ac_im_libdir/libX11.$ac_extension; then 18084 ac_im_usrlibdir=$ac_im_libdir; break 18085 fi 18086 done 18087 # Screen out bogus values from the imake configuration. They are 18088 # bogus both because they are the default anyway, and because 18089 # using them would break gcc on systems where it needs fixed includes. 18090 case $ac_im_incroot in 18091 /usr/include) ;; 18092 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18093 esac 18094 case $ac_im_usrlibdir in 18095 /usr/lib | /lib) ;; 18096 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18097 esac 18098 fi 18099 cd .. 18100 rm -fr conftest.dir 18101fi 18102 18103# Standard set of common directories for X headers. 18104# Check X11 before X11Rn because it is often a symlink to the current release. 18105ac_x_header_dirs=' 18106/usr/X11/include 18107/usr/X11R6/include 18108/usr/X11R5/include 18109/usr/X11R4/include 18110 18111/usr/include/X11 18112/usr/include/X11R6 18113/usr/include/X11R5 18114/usr/include/X11R4 18115 18116/usr/local/X11/include 18117/usr/local/X11R6/include 18118/usr/local/X11R5/include 18119/usr/local/X11R4/include 18120 18121/usr/local/include/X11 18122/usr/local/include/X11R6 18123/usr/local/include/X11R5 18124/usr/local/include/X11R4 18125 18126/usr/X386/include 18127/usr/x386/include 18128/usr/XFree86/include/X11 18129 18130/usr/include 18131/usr/local/include 18132/usr/unsupported/include 18133/usr/athena/include 18134/usr/local/x11r5/include 18135/usr/lpp/Xamples/include 18136 18137/usr/openwin/include 18138/usr/openwin/share/include' 18139 18140if test "$ac_x_includes" = no; then 18141 # Guess where to find include files, by looking for Intrinsic.h. 18142 # First, try using that file with no special directory specified. 18143 cat >conftest.$ac_ext <<_ACEOF 18144#line $LINENO "configure" 18145#include "confdefs.h" 18146#include <X11/Intrinsic.h> 18147_ACEOF 18148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18150 ac_status=$? 18151 egrep -v '^ *\+' conftest.er1 >conftest.err 18152 rm -f conftest.er1 18153 cat conftest.err >&5 18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18155 (exit $ac_status); } >/dev/null; then 18156 if test -s conftest.err; then 18157 ac_cpp_err=$ac_c_preproc_warn_flag 18158 else 18159 ac_cpp_err= 18160 fi 18161else 18162 ac_cpp_err=yes 18163fi 18164if test -z "$ac_cpp_err"; then 18165 # We can compile using X headers with no special include directory. 18166ac_x_includes= 18167else 18168 echo "$as_me: failed program was:" >&5 18169 cat conftest.$ac_ext >&5 18170 for ac_dir in $ac_x_header_dirs; do 18171 if test -r "$ac_dir/X11/Intrinsic.h"; then 18172 ac_x_includes=$ac_dir 18173 break 18174 fi 18175done 18176fi 18177rm -f conftest.err conftest.$ac_ext 18178fi # $ac_x_includes = no 18179 18180if test "$ac_x_libraries" = no; then 18181 # Check for the libraries. 18182 # See if we find them without any special options. 18183 # Don't add to $LIBS permanently. 18184 ac_save_LIBS=$LIBS 18185 LIBS="-lXt $LIBS" 18186 cat >conftest.$ac_ext <<_ACEOF 18187#line $LINENO "configure" 18188#include "confdefs.h" 18189#include <X11/Intrinsic.h> 18190#ifdef F77_DUMMY_MAIN 18191# ifdef __cplusplus 18192 extern "C" 18193# endif 18194 int F77_DUMMY_MAIN() { return 1; } 18195#endif 18196int 18197main () 18198{ 18199XtMalloc (0) 18200 ; 18201 return 0; 18202} 18203_ACEOF 18204rm -f conftest.$ac_objext conftest$ac_exeext 18205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18206 (eval $ac_link) 2>&5 18207 ac_status=$? 18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18209 (exit $ac_status); } && 18210 { ac_try='test -s conftest$ac_exeext' 18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18212 (eval $ac_try) 2>&5 18213 ac_status=$? 18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18215 (exit $ac_status); }; }; then 18216 LIBS=$ac_save_LIBS 18217# We can link X programs with no special library path. 18218ac_x_libraries= 18219else 18220 echo "$as_me: failed program was:" >&5 18221cat conftest.$ac_ext >&5 18222LIBS=$ac_save_LIBS 18223for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18224do 18225 # Don't even attempt the hair of trying to link an X program! 18226 for ac_extension in a so sl; do 18227 if test -r $ac_dir/libXt.$ac_extension; then 18228 ac_x_libraries=$ac_dir 18229 break 2 18230 fi 18231 done 18232done 18233fi 18234rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18235fi # $ac_x_libraries = no 18236 18237if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 18238 # Didn't find X anywhere. Cache the known absence of X. 18239 ac_cv_have_x="have_x=no" 18240else 18241 # Record where we found X for the cache. 18242 ac_cv_have_x="have_x=yes \ 18243 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 18244fi 18245fi 18246 18247 fi 18248 eval "$ac_cv_have_x" 18249fi # $with_x != no 18250 18251if test "$have_x" != yes; then 18252 echo "$as_me:$LINENO: result: $have_x" >&5 18253echo "${ECHO_T}$have_x" >&6 18254 no_x=yes 18255else 18256 # If each of the values was on the command line, it overrides each guess. 18257 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18258 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18259 # Update the cache value to reflect the command line values. 18260 ac_cv_have_x="have_x=yes \ 18261 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 18262 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 18263echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 18264fi 18265 18266echo "$as_me:$LINENO: checking for ANSI C header files" >&5 18267echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 18268if test "${ac_cv_header_stdc+set}" = set; then 18269 echo $ECHO_N "(cached) $ECHO_C" >&6 18270else 18271 cat >conftest.$ac_ext <<_ACEOF 18272#line $LINENO "configure" 18273#include "confdefs.h" 18274#include <stdlib.h> 18275#include <stdarg.h> 18276#include <string.h> 18277#include <float.h> 18278 18279_ACEOF 18280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18282 ac_status=$? 18283 egrep -v '^ *\+' conftest.er1 >conftest.err 18284 rm -f conftest.er1 18285 cat conftest.err >&5 18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18287 (exit $ac_status); } >/dev/null; then 18288 if test -s conftest.err; then 18289 ac_cpp_err=$ac_c_preproc_warn_flag 18290 else 18291 ac_cpp_err= 18292 fi 18293else 18294 ac_cpp_err=yes 18295fi 18296if test -z "$ac_cpp_err"; then 18297 ac_cv_header_stdc=yes 18298else 18299 echo "$as_me: failed program was:" >&5 18300 cat conftest.$ac_ext >&5 18301 ac_cv_header_stdc=no 18302fi 18303rm -f conftest.err conftest.$ac_ext 18304 18305if test $ac_cv_header_stdc = yes; then 18306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18307 cat >conftest.$ac_ext <<_ACEOF 18308#line $LINENO "configure" 18309#include "confdefs.h" 18310#include <string.h> 18311 18312_ACEOF 18313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18314 egrep "memchr" >/dev/null 2>&1; then 18315 : 18316else 18317 ac_cv_header_stdc=no 18318fi 18319rm -f conftest* 18320 18321fi 18322 18323if test $ac_cv_header_stdc = yes; then 18324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18325 cat >conftest.$ac_ext <<_ACEOF 18326#line $LINENO "configure" 18327#include "confdefs.h" 18328#include <stdlib.h> 18329 18330_ACEOF 18331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18332 egrep "free" >/dev/null 2>&1; then 18333 : 18334else 18335 ac_cv_header_stdc=no 18336fi 18337rm -f conftest* 18338 18339fi 18340 18341if test $ac_cv_header_stdc = yes; then 18342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18343 if test "$cross_compiling" = yes; then 18344 : 18345else 18346 cat >conftest.$ac_ext <<_ACEOF 18347#line $LINENO "configure" 18348#include "confdefs.h" 18349#include <ctype.h> 18350#if ((' ' & 0x0FF) == 0x020) 18351# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18352# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18353#else 18354# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 18355 || ('j' <= (c) && (c) <= 'r') \ 18356 || ('s' <= (c) && (c) <= 'z')) 18357# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18358#endif 18359 18360#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18361int 18362main () 18363{ 18364 int i; 18365 for (i = 0; i < 256; i++) 18366 if (XOR (islower (i), ISLOWER (i)) 18367 || toupper (i) != TOUPPER (i)) 18368 exit(2); 18369 exit (0); 18370} 18371_ACEOF 18372rm -f conftest$ac_exeext 18373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18374 (eval $ac_link) 2>&5 18375 ac_status=$? 18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18379 (eval $ac_try) 2>&5 18380 ac_status=$? 18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18382 (exit $ac_status); }; }; then 18383 : 18384else 18385 echo "$as_me: program exited with status $ac_status" >&5 18386echo "$as_me: failed program was:" >&5 18387cat conftest.$ac_ext >&5 18388( exit $ac_status ) 18389ac_cv_header_stdc=no 18390fi 18391rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18392fi 18393fi 18394fi 18395echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 18396echo "${ECHO_T}$ac_cv_header_stdc" >&6 18397if test $ac_cv_header_stdc = yes; then 18398 18399cat >>confdefs.h <<\_ACEOF 18400#define STDC_HEADERS 1 18401_ACEOF 18402 18403fi 18404 18405echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 18406echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 18407if test "${ac_cv_header_sys_wait_h+set}" = set; then 18408 echo $ECHO_N "(cached) $ECHO_C" >&6 18409else 18410 cat >conftest.$ac_ext <<_ACEOF 18411#line $LINENO "configure" 18412#include "confdefs.h" 18413#include <sys/types.h> 18414#include <sys/wait.h> 18415#ifndef WEXITSTATUS 18416# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 18417#endif 18418#ifndef WIFEXITED 18419# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 18420#endif 18421 18422#ifdef F77_DUMMY_MAIN 18423# ifdef __cplusplus 18424 extern "C" 18425# endif 18426 int F77_DUMMY_MAIN() { return 1; } 18427#endif 18428int 18429main () 18430{ 18431 int s; 18432 wait (&s); 18433 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 18434 ; 18435 return 0; 18436} 18437_ACEOF 18438rm -f conftest.$ac_objext 18439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18440 (eval $ac_compile) 2>&5 18441 ac_status=$? 18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18443 (exit $ac_status); } && 18444 { ac_try='test -s conftest.$ac_objext' 18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18446 (eval $ac_try) 2>&5 18447 ac_status=$? 18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18449 (exit $ac_status); }; }; then 18450 ac_cv_header_sys_wait_h=yes 18451else 18452 echo "$as_me: failed program was:" >&5 18453cat conftest.$ac_ext >&5 18454ac_cv_header_sys_wait_h=no 18455fi 18456rm -f conftest.$ac_objext conftest.$ac_ext 18457fi 18458echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 18459echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 18460if test $ac_cv_header_sys_wait_h = yes; then 18461 18462cat >>confdefs.h <<\_ACEOF 18463#define HAVE_SYS_WAIT_H 1 18464_ACEOF 18465 18466fi 18467 18468echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 18469echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 18470if test "${ac_cv_header_time+set}" = set; then 18471 echo $ECHO_N "(cached) $ECHO_C" >&6 18472else 18473 cat >conftest.$ac_ext <<_ACEOF 18474#line $LINENO "configure" 18475#include "confdefs.h" 18476#include <sys/types.h> 18477#include <sys/time.h> 18478#include <time.h> 18479 18480#ifdef F77_DUMMY_MAIN 18481# ifdef __cplusplus 18482 extern "C" 18483# endif 18484 int F77_DUMMY_MAIN() { return 1; } 18485#endif 18486int 18487main () 18488{ 18489if ((struct tm *) 0) 18490return 0; 18491 ; 18492 return 0; 18493} 18494_ACEOF 18495rm -f conftest.$ac_objext 18496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18497 (eval $ac_compile) 2>&5 18498 ac_status=$? 18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18500 (exit $ac_status); } && 18501 { ac_try='test -s conftest.$ac_objext' 18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18503 (eval $ac_try) 2>&5 18504 ac_status=$? 18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18506 (exit $ac_status); }; }; then 18507 ac_cv_header_time=yes 18508else 18509 echo "$as_me: failed program was:" >&5 18510cat conftest.$ac_ext >&5 18511ac_cv_header_time=no 18512fi 18513rm -f conftest.$ac_objext conftest.$ac_ext 18514fi 18515echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 18516echo "${ECHO_T}$ac_cv_header_time" >&6 18517if test $ac_cv_header_time = yes; then 18518 18519cat >>confdefs.h <<\_ACEOF 18520#define TIME_WITH_SYS_TIME 1 18521_ACEOF 18522 18523fi 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544for ac_header in fcntl.h syslog.h unistd.h utmp.h utmpx.h \ 18545 sys/file.h sys/ioctl.h sys/time.h sys/types.h sys/param.h \ 18546 malloc.h strings.h memory.h \ 18547 curses.h ncurses.h sgtty.h term.h termio.h termios.h \ 18548 18549do 18550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18551if eval "test \"\${$as_ac_Header+set}\" = set"; then 18552 echo "$as_me:$LINENO: checking for $ac_header" >&5 18553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18554if eval "test \"\${$as_ac_Header+set}\" = set"; then 18555 echo $ECHO_N "(cached) $ECHO_C" >&6 18556fi 18557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18559else 18560 # Is the header compilable? 18561echo "$as_me:$LINENO: checking $ac_header usability" >&5 18562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 18563cat >conftest.$ac_ext <<_ACEOF 18564#line $LINENO "configure" 18565#include "confdefs.h" 18566$ac_includes_default 18567#include <$ac_header> 18568_ACEOF 18569rm -f conftest.$ac_objext 18570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18571 (eval $ac_compile) 2>&5 18572 ac_status=$? 18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18574 (exit $ac_status); } && 18575 { ac_try='test -s conftest.$ac_objext' 18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18577 (eval $ac_try) 2>&5 18578 ac_status=$? 18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18580 (exit $ac_status); }; }; then 18581 ac_header_compiler=yes 18582else 18583 echo "$as_me: failed program was:" >&5 18584cat conftest.$ac_ext >&5 18585ac_header_compiler=no 18586fi 18587rm -f conftest.$ac_objext conftest.$ac_ext 18588echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18589echo "${ECHO_T}$ac_header_compiler" >&6 18590 18591# Is the header present? 18592echo "$as_me:$LINENO: checking $ac_header presence" >&5 18593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 18594cat >conftest.$ac_ext <<_ACEOF 18595#line $LINENO "configure" 18596#include "confdefs.h" 18597#include <$ac_header> 18598_ACEOF 18599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 18600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 18601 ac_status=$? 18602 egrep -v '^ *\+' conftest.er1 >conftest.err 18603 rm -f conftest.er1 18604 cat conftest.err >&5 18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18606 (exit $ac_status); } >/dev/null; then 18607 if test -s conftest.err; then 18608 ac_cpp_err=$ac_c_preproc_warn_flag 18609 else 18610 ac_cpp_err= 18611 fi 18612else 18613 ac_cpp_err=yes 18614fi 18615if test -z "$ac_cpp_err"; then 18616 ac_header_preproc=yes 18617else 18618 echo "$as_me: failed program was:" >&5 18619 cat conftest.$ac_ext >&5 18620 ac_header_preproc=no 18621fi 18622rm -f conftest.err conftest.$ac_ext 18623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18624echo "${ECHO_T}$ac_header_preproc" >&6 18625 18626# So? What about this header? 18627case $ac_header_compiler:$ac_header_preproc in 18628 yes:no ) 18629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 18633 no:yes ) 18634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 18640esac 18641echo "$as_me:$LINENO: checking for $ac_header" >&5 18642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 18643if eval "test \"\${$as_ac_Header+set}\" = set"; then 18644 echo $ECHO_N "(cached) $ECHO_C" >&6 18645else 18646 eval "$as_ac_Header=$ac_header_preproc" 18647fi 18648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 18649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 18650 18651fi 18652if test `eval echo '${'$as_ac_Header'}'` = yes; then 18653 cat >>confdefs.h <<_ACEOF 18654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 18655_ACEOF 18656 18657fi 18658 18659done 18660 18661 18662echo "$as_me:$LINENO: checking for mode_t" >&5 18663echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 18664if test "${ac_cv_type_mode_t+set}" = set; then 18665 echo $ECHO_N "(cached) $ECHO_C" >&6 18666else 18667 cat >conftest.$ac_ext <<_ACEOF 18668#line $LINENO "configure" 18669#include "confdefs.h" 18670$ac_includes_default 18671#ifdef F77_DUMMY_MAIN 18672# ifdef __cplusplus 18673 extern "C" 18674# endif 18675 int F77_DUMMY_MAIN() { return 1; } 18676#endif 18677int 18678main () 18679{ 18680if ((mode_t *) 0) 18681 return 0; 18682if (sizeof (mode_t)) 18683 return 0; 18684 ; 18685 return 0; 18686} 18687_ACEOF 18688rm -f conftest.$ac_objext 18689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18690 (eval $ac_compile) 2>&5 18691 ac_status=$? 18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18693 (exit $ac_status); } && 18694 { ac_try='test -s conftest.$ac_objext' 18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18696 (eval $ac_try) 2>&5 18697 ac_status=$? 18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18699 (exit $ac_status); }; }; then 18700 ac_cv_type_mode_t=yes 18701else 18702 echo "$as_me: failed program was:" >&5 18703cat conftest.$ac_ext >&5 18704ac_cv_type_mode_t=no 18705fi 18706rm -f conftest.$ac_objext conftest.$ac_ext 18707fi 18708echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 18709echo "${ECHO_T}$ac_cv_type_mode_t" >&6 18710if test $ac_cv_type_mode_t = yes; then 18711 : 18712else 18713 18714cat >>confdefs.h <<_ACEOF 18715#define mode_t int 18716_ACEOF 18717 18718fi 18719 18720echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 18721echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 18722if test "${ac_cv_header_time+set}" = set; then 18723 echo $ECHO_N "(cached) $ECHO_C" >&6 18724else 18725 cat >conftest.$ac_ext <<_ACEOF 18726#line $LINENO "configure" 18727#include "confdefs.h" 18728#include <sys/types.h> 18729#include <sys/time.h> 18730#include <time.h> 18731 18732#ifdef F77_DUMMY_MAIN 18733# ifdef __cplusplus 18734 extern "C" 18735# endif 18736 int F77_DUMMY_MAIN() { return 1; } 18737#endif 18738int 18739main () 18740{ 18741if ((struct tm *) 0) 18742return 0; 18743 ; 18744 return 0; 18745} 18746_ACEOF 18747rm -f conftest.$ac_objext 18748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18749 (eval $ac_compile) 2>&5 18750 ac_status=$? 18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18752 (exit $ac_status); } && 18753 { ac_try='test -s conftest.$ac_objext' 18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18755 (eval $ac_try) 2>&5 18756 ac_status=$? 18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18758 (exit $ac_status); }; }; then 18759 ac_cv_header_time=yes 18760else 18761 echo "$as_me: failed program was:" >&5 18762cat conftest.$ac_ext >&5 18763ac_cv_header_time=no 18764fi 18765rm -f conftest.$ac_objext conftest.$ac_ext 18766fi 18767echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 18768echo "${ECHO_T}$ac_cv_header_time" >&6 18769if test $ac_cv_header_time = yes; then 18770 18771cat >>confdefs.h <<\_ACEOF 18772#define TIME_WITH_SYS_TIME 1 18773_ACEOF 18774 18775fi 18776 18777 18778echo "$as_me:$LINENO: checking for socklen_t" >&5 18779echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 18780if test "${ac_cv_type_socklen_t+set}" = set; then 18781 echo $ECHO_N "(cached) $ECHO_C" >&6 18782else 18783 cat >conftest.$ac_ext <<_ACEOF 18784#line $LINENO "configure" 18785#include "confdefs.h" 18786 18787#if HAVE_SYS_TYPES_H 18788# include <sys/types.h> 18789#endif 18790#include <sys/socket.h> 18791 18792#ifdef F77_DUMMY_MAIN 18793# ifdef __cplusplus 18794 extern "C" 18795# endif 18796 int F77_DUMMY_MAIN() { return 1; } 18797#endif 18798int 18799main () 18800{ 18801if ((socklen_t *) 0) 18802 return 0; 18803if (sizeof (socklen_t)) 18804 return 0; 18805 ; 18806 return 0; 18807} 18808_ACEOF 18809rm -f conftest.$ac_objext 18810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18811 (eval $ac_compile) 2>&5 18812 ac_status=$? 18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18814 (exit $ac_status); } && 18815 { ac_try='test -s conftest.$ac_objext' 18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18817 (eval $ac_try) 2>&5 18818 ac_status=$? 18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18820 (exit $ac_status); }; }; then 18821 ac_cv_type_socklen_t=yes 18822else 18823 echo "$as_me: failed program was:" >&5 18824cat conftest.$ac_ext >&5 18825ac_cv_type_socklen_t=no 18826fi 18827rm -f conftest.$ac_objext conftest.$ac_ext 18828fi 18829echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 18830echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 18831if test $ac_cv_type_socklen_t = yes; then 18832 18833cat >>confdefs.h <<_ACEOF 18834#define HAVE_SOCKLEN_T 1 18835_ACEOF 18836 18837 18838else 18839 18840cat >>confdefs.h <<\_ACEOF 18841#define socklen_t int 18842_ACEOF 18843 18844fi 18845 18846 18847 18848if test $ac_cv_c_compiler_gnu = yes; then 18849 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 18850echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 18851if test "${ac_cv_prog_gcc_traditional+set}" = set; then 18852 echo $ECHO_N "(cached) $ECHO_C" >&6 18853else 18854 ac_pattern="Autoconf.*'x'" 18855 cat >conftest.$ac_ext <<_ACEOF 18856#line $LINENO "configure" 18857#include "confdefs.h" 18858#include <sgtty.h> 18859Autoconf TIOCGETP 18860_ACEOF 18861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18862 egrep "$ac_pattern" >/dev/null 2>&1; then 18863 ac_cv_prog_gcc_traditional=yes 18864else 18865 ac_cv_prog_gcc_traditional=no 18866fi 18867rm -f conftest* 18868 18869 18870 if test $ac_cv_prog_gcc_traditional = no; then 18871 cat >conftest.$ac_ext <<_ACEOF 18872#line $LINENO "configure" 18873#include "confdefs.h" 18874#include <termio.h> 18875Autoconf TCGETA 18876_ACEOF 18877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18878 egrep "$ac_pattern" >/dev/null 2>&1; then 18879 ac_cv_prog_gcc_traditional=yes 18880fi 18881rm -f conftest* 18882 18883 fi 18884fi 18885echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 18886echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 18887 if test $ac_cv_prog_gcc_traditional = yes; then 18888 CC="$CC -traditional" 18889 fi 18890fi 18891 18892 18893echo "$as_me:$LINENO: checking return type of signal handlers" >&5 18894echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 18895if test "${ac_cv_type_signal+set}" = set; then 18896 echo $ECHO_N "(cached) $ECHO_C" >&6 18897else 18898 cat >conftest.$ac_ext <<_ACEOF 18899#line $LINENO "configure" 18900#include "confdefs.h" 18901#include <sys/types.h> 18902#include <signal.h> 18903#ifdef signal 18904# undef signal 18905#endif 18906#ifdef __cplusplus 18907extern "C" void (*signal (int, void (*)(int)))(int); 18908#else 18909void (*signal ()) (); 18910#endif 18911 18912#ifdef F77_DUMMY_MAIN 18913# ifdef __cplusplus 18914 extern "C" 18915# endif 18916 int F77_DUMMY_MAIN() { return 1; } 18917#endif 18918int 18919main () 18920{ 18921int i; 18922 ; 18923 return 0; 18924} 18925_ACEOF 18926rm -f conftest.$ac_objext 18927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18928 (eval $ac_compile) 2>&5 18929 ac_status=$? 18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18931 (exit $ac_status); } && 18932 { ac_try='test -s conftest.$ac_objext' 18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18934 (eval $ac_try) 2>&5 18935 ac_status=$? 18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18937 (exit $ac_status); }; }; then 18938 ac_cv_type_signal=void 18939else 18940 echo "$as_me: failed program was:" >&5 18941cat conftest.$ac_ext >&5 18942ac_cv_type_signal=int 18943fi 18944rm -f conftest.$ac_objext conftest.$ac_ext 18945fi 18946echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 18947echo "${ECHO_T}$ac_cv_type_signal" >&6 18948 18949cat >>confdefs.h <<_ACEOF 18950#define RETSIGTYPE $ac_cv_type_signal 18951_ACEOF 18952 18953 18954if test "$ac_cv_type_signal" = void; then 18955 18956cat >>confdefs.h <<\_ACEOF 18957#define RETSIGTYPE_VOID 1 18958_ACEOF 18959 18960fi 18961 18962echo "$as_me:$LINENO: checking for working memcmp" >&5 18963echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 18964if test "${ac_cv_func_memcmp_working+set}" = set; then 18965 echo $ECHO_N "(cached) $ECHO_C" >&6 18966else 18967 if test "$cross_compiling" = yes; then 18968 ac_cv_func_memcmp_working=no 18969else 18970 cat >conftest.$ac_ext <<_ACEOF 18971#line $LINENO "configure" 18972#include "confdefs.h" 18973 18974#ifdef F77_DUMMY_MAIN 18975# ifdef __cplusplus 18976 extern "C" 18977# endif 18978 int F77_DUMMY_MAIN() { return 1; } 18979#endif 18980int 18981main () 18982{ 18983 18984 /* Some versions of memcmp are not 8-bit clean. */ 18985 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 18986 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 18987 exit (1); 18988 18989 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 18990 or more and with at least one buffer not starting on a 4-byte boundary. 18991 William Lewis provided this test program. */ 18992 { 18993 char foo[21]; 18994 char bar[21]; 18995 int i; 18996 for (i = 0; i < 4; i++) 18997 { 18998 char *a = foo + i; 18999 char *b = bar + i; 19000 strcpy (a, "--------01111111"); 19001 strcpy (b, "--------10000000"); 19002 if (memcmp (a, b, 16) >= 0) 19003 exit (1); 19004 } 19005 exit (0); 19006 } 19007 19008 ; 19009 return 0; 19010} 19011_ACEOF 19012rm -f conftest$ac_exeext 19013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19014 (eval $ac_link) 2>&5 19015 ac_status=$? 19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19019 (eval $ac_try) 2>&5 19020 ac_status=$? 19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19022 (exit $ac_status); }; }; then 19023 ac_cv_func_memcmp_working=yes 19024else 19025 echo "$as_me: program exited with status $ac_status" >&5 19026echo "$as_me: failed program was:" >&5 19027cat conftest.$ac_ext >&5 19028( exit $ac_status ) 19029ac_cv_func_memcmp_working=no 19030fi 19031rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19032fi 19033fi 19034echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 19035echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 19036test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" 19037 19038 19039 19040 19041 19042for ac_func in getpgid getpgrp setpgrp wait3 19043do 19044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19045echo "$as_me:$LINENO: checking for $ac_func" >&5 19046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19047if eval "test \"\${$as_ac_var+set}\" = set"; then 19048 echo $ECHO_N "(cached) $ECHO_C" >&6 19049else 19050 cat >conftest.$ac_ext <<_ACEOF 19051#line $LINENO "configure" 19052#include "confdefs.h" 19053/* System header to define __stub macros and hopefully few prototypes, 19054 which can conflict with char $ac_func (); below. */ 19055#include <assert.h> 19056/* Override any gcc2 internal prototype to avoid an error. */ 19057#ifdef __cplusplus 19058extern "C" 19059#endif 19060/* We use char because int might match the return type of a gcc2 19061 builtin and then its argument prototype would still apply. */ 19062char $ac_func (); 19063char (*f) (); 19064 19065#ifdef F77_DUMMY_MAIN 19066# ifdef __cplusplus 19067 extern "C" 19068# endif 19069 int F77_DUMMY_MAIN() { return 1; } 19070#endif 19071int 19072main () 19073{ 19074/* The GNU C library defines this for functions which it implements 19075 to always fail with ENOSYS. Some functions are actually named 19076 something starting with __ and the normal name is an alias. */ 19077#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19078choke me 19079#else 19080f = $ac_func; 19081#endif 19082 19083 ; 19084 return 0; 19085} 19086_ACEOF 19087rm -f conftest.$ac_objext conftest$ac_exeext 19088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19089 (eval $ac_link) 2>&5 19090 ac_status=$? 19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19092 (exit $ac_status); } && 19093 { ac_try='test -s conftest$ac_exeext' 19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19095 (eval $ac_try) 2>&5 19096 ac_status=$? 19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19098 (exit $ac_status); }; }; then 19099 eval "$as_ac_var=yes" 19100else 19101 echo "$as_me: failed program was:" >&5 19102cat conftest.$ac_ext >&5 19103eval "$as_ac_var=no" 19104fi 19105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19106fi 19107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19108echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19109if test `eval echo '${'$as_ac_var'}'` = yes; then 19110 cat >>confdefs.h <<_ACEOF 19111#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19112_ACEOF 19113 19114fi 19115done 19116 19117echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 19118echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 19119if test "${ac_cv_func_getpgrp_void+set}" = set; then 19120 echo $ECHO_N "(cached) $ECHO_C" >&6 19121else 19122 # Use it with a single arg. 19123cat >conftest.$ac_ext <<_ACEOF 19124#line $LINENO "configure" 19125#include "confdefs.h" 19126$ac_includes_default 19127#ifdef F77_DUMMY_MAIN 19128# ifdef __cplusplus 19129 extern "C" 19130# endif 19131 int F77_DUMMY_MAIN() { return 1; } 19132#endif 19133int 19134main () 19135{ 19136getpgrp (0); 19137 ; 19138 return 0; 19139} 19140_ACEOF 19141rm -f conftest.$ac_objext 19142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19143 (eval $ac_compile) 2>&5 19144 ac_status=$? 19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19146 (exit $ac_status); } && 19147 { ac_try='test -s conftest.$ac_objext' 19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19149 (eval $ac_try) 2>&5 19150 ac_status=$? 19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19152 (exit $ac_status); }; }; then 19153 ac_cv_func_getpgrp_void=no 19154else 19155 echo "$as_me: failed program was:" >&5 19156cat conftest.$ac_ext >&5 19157ac_cv_func_getpgrp_void=yes 19158fi 19159rm -f conftest.$ac_objext conftest.$ac_ext 19160 19161fi 19162echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 19163echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 19164if test $ac_cv_func_getpgrp_void = yes; then 19165 19166cat >>confdefs.h <<\_ACEOF 19167#define GETPGRP_VOID 1 19168_ACEOF 19169 19170fi 19171 19172echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 19173echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 19174if test "${ac_cv_func_setpgrp_void+set}" = set; then 19175 echo $ECHO_N "(cached) $ECHO_C" >&6 19176else 19177 if test "$cross_compiling" = yes; then 19178 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 19179echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} 19180 { (exit 1); exit 1; }; } 19181else 19182 cat >conftest.$ac_ext <<_ACEOF 19183#line $LINENO "configure" 19184#include "confdefs.h" 19185#if HAVE_UNISTD_H 19186# include <unistd.h> 19187#endif 19188 19189#ifdef F77_DUMMY_MAIN 19190# ifdef __cplusplus 19191 extern "C" 19192# endif 19193 int F77_DUMMY_MAIN() { return 1; } 19194#endif 19195int 19196main () 19197{ 19198/* If this system has a BSD-style setpgrp which takes arguments, 19199 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 19200 exit successfully. */ 19201 exit (setpgrp (1,1) == -1 ? 0 : 1); 19202 ; 19203 return 0; 19204} 19205_ACEOF 19206rm -f conftest$ac_exeext 19207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19208 (eval $ac_link) 2>&5 19209 ac_status=$? 19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19213 (eval $ac_try) 2>&5 19214 ac_status=$? 19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19216 (exit $ac_status); }; }; then 19217 ac_cv_func_setpgrp_void=no 19218else 19219 echo "$as_me: program exited with status $ac_status" >&5 19220echo "$as_me: failed program was:" >&5 19221cat conftest.$ac_ext >&5 19222( exit $ac_status ) 19223ac_cv_func_setpgrp_void=yes 19224fi 19225rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19226fi 19227fi 19228echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 19229echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 19230if test $ac_cv_func_setpgrp_void = yes; then 19231 19232cat >>confdefs.h <<\_ACEOF 19233#define SETPGRP_VOID 1 19234_ACEOF 19235 19236fi 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258for ac_func in random drand48 fchmod getopt killpg \ 19259 FD_SET \ 19260 gethostname select socket closesocket setsockopt send recv \ 19261 getdtablesize getrlimit syslog vsyslog setenv snprintf 19262do 19263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19264echo "$as_me:$LINENO: checking for $ac_func" >&5 19265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19266if eval "test \"\${$as_ac_var+set}\" = set"; then 19267 echo $ECHO_N "(cached) $ECHO_C" >&6 19268else 19269 cat >conftest.$ac_ext <<_ACEOF 19270#line $LINENO "configure" 19271#include "confdefs.h" 19272/* System header to define __stub macros and hopefully few prototypes, 19273 which can conflict with char $ac_func (); below. */ 19274#include <assert.h> 19275/* Override any gcc2 internal prototype to avoid an error. */ 19276#ifdef __cplusplus 19277extern "C" 19278#endif 19279/* We use char because int might match the return type of a gcc2 19280 builtin and then its argument prototype would still apply. */ 19281char $ac_func (); 19282char (*f) (); 19283 19284#ifdef F77_DUMMY_MAIN 19285# ifdef __cplusplus 19286 extern "C" 19287# endif 19288 int F77_DUMMY_MAIN() { return 1; } 19289#endif 19290int 19291main () 19292{ 19293/* The GNU C library defines this for functions which it implements 19294 to always fail with ENOSYS. Some functions are actually named 19295 something starting with __ and the normal name is an alias. */ 19296#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19297choke me 19298#else 19299f = $ac_func; 19300#endif 19301 19302 ; 19303 return 0; 19304} 19305_ACEOF 19306rm -f conftest.$ac_objext conftest$ac_exeext 19307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19308 (eval $ac_link) 2>&5 19309 ac_status=$? 19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19311 (exit $ac_status); } && 19312 { ac_try='test -s conftest$ac_exeext' 19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19314 (eval $ac_try) 2>&5 19315 ac_status=$? 19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19317 (exit $ac_status); }; }; then 19318 eval "$as_ac_var=yes" 19319else 19320 echo "$as_me: failed program was:" >&5 19321cat conftest.$ac_ext >&5 19322eval "$as_ac_var=no" 19323fi 19324rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19325fi 19326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19327echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19328if test `eval echo '${'$as_ac_var'}'` = yes; then 19329 cat >>confdefs.h <<_ACEOF 19330#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19331_ACEOF 19332 19333fi 19334done 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346for ac_func in bcopy bzero bcmp index rindex \ 19347 memcpy memmove memset strchr strrchr 19348do 19349as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19350echo "$as_me:$LINENO: checking for $ac_func" >&5 19351echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19352if eval "test \"\${$as_ac_var+set}\" = set"; then 19353 echo $ECHO_N "(cached) $ECHO_C" >&6 19354else 19355 cat >conftest.$ac_ext <<_ACEOF 19356#line $LINENO "configure" 19357#include "confdefs.h" 19358/* System header to define __stub macros and hopefully few prototypes, 19359 which can conflict with char $ac_func (); below. */ 19360#include <assert.h> 19361/* Override any gcc2 internal prototype to avoid an error. */ 19362#ifdef __cplusplus 19363extern "C" 19364#endif 19365/* We use char because int might match the return type of a gcc2 19366 builtin and then its argument prototype would still apply. */ 19367char $ac_func (); 19368char (*f) (); 19369 19370#ifdef F77_DUMMY_MAIN 19371# ifdef __cplusplus 19372 extern "C" 19373# endif 19374 int F77_DUMMY_MAIN() { return 1; } 19375#endif 19376int 19377main () 19378{ 19379/* The GNU C library defines this for functions which it implements 19380 to always fail with ENOSYS. Some functions are actually named 19381 something starting with __ and the normal name is an alias. */ 19382#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19383choke me 19384#else 19385f = $ac_func; 19386#endif 19387 19388 ; 19389 return 0; 19390} 19391_ACEOF 19392rm -f conftest.$ac_objext conftest$ac_exeext 19393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19394 (eval $ac_link) 2>&5 19395 ac_status=$? 19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19397 (exit $ac_status); } && 19398 { ac_try='test -s conftest$ac_exeext' 19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19400 (eval $ac_try) 2>&5 19401 ac_status=$? 19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19403 (exit $ac_status); }; }; then 19404 eval "$as_ac_var=yes" 19405else 19406 echo "$as_me: failed program was:" >&5 19407cat conftest.$ac_ext >&5 19408eval "$as_ac_var=no" 19409fi 19410rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19411fi 19412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19414if test `eval echo '${'$as_ac_var'}'` = yes; then 19415 cat >>confdefs.h <<_ACEOF 19416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19417_ACEOF 19418 19419fi 19420done 19421 19422 19423JS_SUPPORTOBJS= 19424 19425 19426for ac_func in mkdir vasprintf 19427do 19428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19429echo "$as_me:$LINENO: checking for $ac_func" >&5 19430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 19431if eval "test \"\${$as_ac_var+set}\" = set"; then 19432 echo $ECHO_N "(cached) $ECHO_C" >&6 19433else 19434 cat >conftest.$ac_ext <<_ACEOF 19435#line $LINENO "configure" 19436#include "confdefs.h" 19437/* System header to define __stub macros and hopefully few prototypes, 19438 which can conflict with char $ac_func (); below. */ 19439#include <assert.h> 19440/* Override any gcc2 internal prototype to avoid an error. */ 19441#ifdef __cplusplus 19442extern "C" 19443#endif 19444/* We use char because int might match the return type of a gcc2 19445 builtin and then its argument prototype would still apply. */ 19446char $ac_func (); 19447char (*f) (); 19448 19449#ifdef F77_DUMMY_MAIN 19450# ifdef __cplusplus 19451 extern "C" 19452# endif 19453 int F77_DUMMY_MAIN() { return 1; } 19454#endif 19455int 19456main () 19457{ 19458/* The GNU C library defines this for functions which it implements 19459 to always fail with ENOSYS. Some functions are actually named 19460 something starting with __ and the normal name is an alias. */ 19461#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 19462choke me 19463#else 19464f = $ac_func; 19465#endif 19466 19467 ; 19468 return 0; 19469} 19470_ACEOF 19471rm -f conftest.$ac_objext conftest$ac_exeext 19472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19473 (eval $ac_link) 2>&5 19474 ac_status=$? 19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19476 (exit $ac_status); } && 19477 { ac_try='test -s conftest$ac_exeext' 19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19479 (eval $ac_try) 2>&5 19480 ac_status=$? 19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19482 (exit $ac_status); }; }; then 19483 eval "$as_ac_var=yes" 19484else 19485 echo "$as_me: failed program was:" >&5 19486cat conftest.$ac_ext >&5 19487eval "$as_ac_var=no" 19488fi 19489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19490fi 19491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 19492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 19493if test `eval echo '${'$as_ac_var'}'` = yes; then 19494 cat >>confdefs.h <<_ACEOF 19495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19496_ACEOF 19497 19498else 19499 JS_SUPPORTOBJS="${JS_SUPPORTOBJS} ${ac_func}.o" 19500fi 19501done 19502 19503 19504 19505 19506WRAPLIB= 19507echo "$as_me:$LINENO: checking whether to use libwrap" >&5 19508echo $ECHO_N "checking whether to use libwrap... $ECHO_C" >&6 19509 19510# Check whether --with-libwrap or --without-libwrap was given. 19511if test "${with_libwrap+set}" = set; then 19512 withval="$with_libwrap" 19513 case "$withval" in 19514 no) 19515 echo "$as_me:$LINENO: result: no" >&5 19516echo "${ECHO_T}no" >&6 19517 WRAP_TRY=no 19518 ;; 19519 yes) 19520 echo "$as_me:$LINENO: result: yes" >&5 19521echo "${ECHO_T}yes" >&6 19522 WRAP_TRY=yes 19523 ;; 19524 *) 19525 echo "$as_me:$LINENO: result: yes" >&5 19526echo "${ECHO_T}yes" >&6 19527 WRAP_TRY=yes 19528 if test -d "$withval"; then 19529 WRAPINCLUDES="-I$withval" 19530 if test -d $withval/include; then 19531 WRAPINCLUDES="-I$withval/include $WRAPINCLUDES" 19532 fi 19533 WRAPLIB="-L$withval -lwrap" 19534 if test -d $withval/lib; then 19535 WRAPLIB="-L$withval/lib $WRAPLIB" 19536 fi 19537 else 19538 WRAPINCLUDES="$withval" 19539 fi 19540 ;; 19541 esac 19542else 19543 echo "$as_me:$LINENO: result: try to find" >&5 19544echo "${ECHO_T}try to find" >&6 19545 WRAP_TRY=auto 19546 19547fi; 19548# Link test for libwrap 19549if test "$WRAP_TRY" = yes -o "$WRAP_TRY" = auto; then 19550 OLDCFLAGS="$CFLAGS" 19551 CFLAGS="$WRAPINCLUDES $CFLAGS" 19552 OLDLIBS="$LIBS" 19553 WRAPLIB=${WRAPLIB:-"-lwrap"} 19554 LIBS="$WRAPLIB $OLDLIBS" 19555 echo "$as_me:$LINENO: checking libwrap is working" >&5 19556echo $ECHO_N "checking libwrap is working... $ECHO_C" >&6 19557 cat >conftest.$ac_ext <<_ACEOF 19558#line $LINENO "configure" 19559#include "confdefs.h" 19560 int allow_severity; int deny_severity; 19561#ifdef F77_DUMMY_MAIN 19562# ifdef __cplusplus 19563 extern "C" 19564# endif 19565 int F77_DUMMY_MAIN() { return 1; } 19566#endif 19567int 19568main () 19569{ 19570 hosts_access(); 19571 ; 19572 return 0; 19573} 19574_ACEOF 19575rm -f conftest.$ac_objext conftest$ac_exeext 19576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19577 (eval $ac_link) 2>&5 19578 ac_status=$? 19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19580 (exit $ac_status); } && 19581 { ac_try='test -s conftest$ac_exeext' 19582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19583 (eval $ac_try) 2>&5 19584 ac_status=$? 19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19586 (exit $ac_status); }; }; then 19587 echo "$as_me:$LINENO: result: yes" >&5 19588echo "${ECHO_T}yes" >&6 19589 19590cat >>confdefs.h <<\_ACEOF 19591#define HAVE_LIBWRAP 1 19592_ACEOF 19593 19594 19595else 19596 echo "$as_me: failed program was:" >&5 19597cat conftest.$ac_ext >&5 19598 echo "$as_me:$LINENO: result: no" >&5 19599echo "${ECHO_T}no" >&6 19600 if test "$WRAP_TRY" = yes; then 19601 { { echo "$as_me:$LINENO: error: Could not find libwrap. Please check config.log." >&5 19602echo "$as_me: error: Could not find libwrap. Please check config.log." >&2;} 19603 { (exit 1); exit 1; }; } 19604 else 19605 # recover old flag / clear needless WRAPLIB and continue 19606 CFLAGS=$OLDCFLAGS 19607 WRAPLIB= 19608 fi 19609fi 19610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19611 # only jserver needs libwrap, recover LIBS also 19612 LIBS=$OLDLIBS 19613fi 19614 19615 19616# mkdir -p Contrib/dic/gerodic in case builddir != srcdir 19617dir=Contrib/dic/gerodic 19618if test ! -d $dir; then 19619 echo "creating $dir ..." 19620 $ac_install_sh -d $dir 19621fi 19622 19623 19624 19625makefiles_generic="makerule.mk Makefile" 19626 19627 19628if test "x${Wnn}" = "xWnn"; then 19629 makefiles_wnn="Wnn/Makefile Wnn/conv/Makefile Wnn/include/Makefile \ 19630 Wnn/jd/Makefile Wnn/jd/rk/Makefile Wnn/jd/rk.vi/Makefile \ 19631 Wnn/jlib/Makefile Wnn/jlib.V3/Makefile Wnn/jserver/Makefile \ 19632 Wnn/jutil/Makefile Wnn/ld/Makefile Wnn/ld/rk/Makefile \ 19633 Wnn/romkan/Makefile Wnn/uum/Makefile \ 19634 Wnn/man/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile \ 19635 Wnn/man/4.cmd/Makefile Wnn/man/6.jutil/Makefile \ 19636 Wnn/man/2.env/dic/Makefile Wnn/man/2.env/wnn/Makefile \ 19637 Wnn/man/3.libwnn/jl_lib/Makefile Wnn/man/3.libwnn/js_lib/Makefile \ 19638 Wnn/man/3.libwnn/misc_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile" 19639 makefiles_wnn_dic="Contrib/dic/gerodic/Makefile Wnn/pubdicplus/Makefile \ 19640 Wnn/wnncons/Makefile Wnn/wnncons/dic/Makefile" 19641fi 19642 19643 19644if test "x$cWnn" = "xcWnn"; then 19645 makefiles_cwnn="cWnn/Makefile cWnn/conv/Makefile cWnn/etc/Makefile \ 19646 cWnn/cd/Makefile cWnn/cd/rk/Makefile \ 19647 cWnn/cd/rk_p/Makefile cWnn/cd/rk_z/Makefile \ 19648 cWnn/td/Makefile cWnn/td/rk/Makefile \ 19649 cWnn/td/rk_z/Makefile cWnn/td/rk_p/Makefile \ 19650 cWnn/include/Makefile cWnn/jlib/Makefile \ 19651 cWnn/jserver/Makefile cWnn/jutil/Makefile \ 19652 cWnn/man/Makefile cWnn/man/1.intro/Makefile cWnn/man/2.env/Makefile \ 19653 cWnn/man/4.cmd/Makefile cWnn/man/6.jutil/Makefile \ 19654 cWnn/romkan/Makefile cWnn/uum/Makefile" 19655 makefiles_cwnn_dic="cWnn/cdic/Makefile cWnn/tdic/Makefile" 19656fi 19657 19658 19659if test "x$kWnn" = "xkWnn"; then 19660 makefiles_kwnn="kWnn/Makefile kWnn/conv/Makefile kWnn/etc/Makefile \ 19661 kWnn/include/Makefile kWnn/jlib/Makefile kWnn/jutil/Makefile \ 19662 kWnn/jserver/Makefile kWnn/kd/Makefile kWnn/kd/rk/Makefile \ 19663 kWnn/romkan/Makefile kWnn/uum/Makefile" 19664 makefiles_kwnn_dic="kWnn/kdic/Makefile" 19665fi 19666 19667ac_config_files="$ac_config_files ${makefiles_generic} ${makefiles_wnn} ${makefiles_wnn_dic} ${makefiles_cwnn} ${makefiles_cwnn_dic} ${makefiles_kwnn} ${makefiles_kwnn_dic}" 19668cat >confcache <<\_ACEOF 19669# This file is a shell script that caches the results of configure 19670# tests run on this system so they can be shared between configure 19671# scripts and configure runs, see configure's option --config-cache. 19672# It is not useful on other systems. If it contains results you don't 19673# want to keep, you may remove or edit it. 19674# 19675# config.status only pays attention to the cache file if you give it 19676# the --recheck option to rerun configure. 19677# 19678# `ac_cv_env_foo' variables (set or unset) will be overriden when 19679# loading this file, other *unset* `ac_cv_foo' will be assigned the 19680# following values. 19681 19682_ACEOF 19683 19684# The following way of writing the cache mishandles newlines in values, 19685# but we know of no workaround that is simple, portable, and efficient. 19686# So, don't put newlines in cache variables' values. 19687# Ultrix sh set writes to stderr and can't be redirected directly, 19688# and sets the high bit in the cache file unless we assign to the vars. 19689{ 19690 (set) 2>&1 | 19691 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19692 *ac_space=\ *) 19693 # `set' does not quote correctly, so add quotes (double-quote 19694 # substitution turns \\\\ into \\, and sed turns \\ into \). 19695 sed -n \ 19696 "s/'/'\\\\''/g; 19697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19698 ;; 19699 *) 19700 # `set' quotes correctly as required by POSIX, so do not add quotes. 19701 sed -n \ 19702 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19703 ;; 19704 esac; 19705} | 19706 sed ' 19707 t clear 19708 : clear 19709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19710 t end 19711 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19712 : end' >>confcache 19713if cmp -s $cache_file confcache; then :; else 19714 if test -w $cache_file; then 19715 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19716 cat confcache >$cache_file 19717 else 19718 echo "not updating unwritable cache $cache_file" 19719 fi 19720fi 19721rm -f confcache 19722 19723test "x$prefix" = xNONE && prefix=$ac_default_prefix 19724# Let make expand exec_prefix. 19725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19726 19727# VPATH may cause trouble with some makes, so we remove $(srcdir), 19728# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19729# trailing colons and then remove the whole line if VPATH becomes empty 19730# (actually we leave an empty line to preserve line numbers). 19731if test "x$srcdir" = x.; then 19732 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19733s/:*\$(srcdir):*/:/; 19734s/:*\${srcdir}:*/:/; 19735s/:*@srcdir@:*/:/; 19736s/^\([^=]*=[ ]*\):*/\1/; 19737s/:*$//; 19738s/^[^=]*=[ ]*$//; 19739}' 19740fi 19741 19742DEFS=-DHAVE_CONFIG_H 19743 19744 19745: ${CONFIG_STATUS=./config.status} 19746ac_clean_files_save=$ac_clean_files 19747ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19748{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19749echo "$as_me: creating $CONFIG_STATUS" >&6;} 19750cat >$CONFIG_STATUS <<_ACEOF 19751#! $SHELL 19752# Generated by $as_me. 19753# Run this file to recreate the current configuration. 19754# Compiler output produced by configure, useful for debugging 19755# configure, is in config.log if it exists. 19756 19757debug=false 19758SHELL=\${CONFIG_SHELL-$SHELL} 19759_ACEOF 19760 19761cat >>$CONFIG_STATUS <<\_ACEOF 19762 19763## --------------------- ## 19764## M4sh Initialization. ## 19765## --------------------- ## 19766 19767# Be Bourne compatible 19768if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19769 emulate sh 19770 NULLCMD=: 19771elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19772 set -o posix 19773fi 19774 19775# NLS nuisances. 19776# Support unset when possible. 19777if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 19778 as_unset=unset 19779else 19780 as_unset=false 19781fi 19782 19783(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 19784 { $as_unset LANG || test "${LANG+set}" != set; } || 19785 { LANG=C; export LANG; } 19786(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 19787 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 19788 { LC_ALL=C; export LC_ALL; } 19789(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 19790 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 19791 { LC_TIME=C; export LC_TIME; } 19792(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 19793 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 19794 { LC_CTYPE=C; export LC_CTYPE; } 19795(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 19796 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 19797 { LANGUAGE=C; export LANGUAGE; } 19798(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 19799 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 19800 { LC_COLLATE=C; export LC_COLLATE; } 19801(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 19802 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 19803 { LC_NUMERIC=C; export LC_NUMERIC; } 19804(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 19805 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 19806 { LC_MESSAGES=C; export LC_MESSAGES; } 19807 19808 19809# Name of the executable. 19810as_me=`(basename "$0") 2>/dev/null || 19811$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19812 X"$0" : 'X\(//\)$' \| \ 19813 X"$0" : 'X\(/\)$' \| \ 19814 . : '\(.\)' 2>/dev/null || 19815echo X/"$0" | 19816 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19817 /^X\/\(\/\/\)$/{ s//\1/; q; } 19818 /^X\/\(\/\).*/{ s//\1/; q; } 19819 s/.*/./; q'` 19820 19821# PATH needs CR, and LINENO needs CR and PATH. 19822# Avoid depending upon Character Ranges. 19823as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19824as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19825as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19826as_cr_digits='0123456789' 19827as_cr_alnum=$as_cr_Letters$as_cr_digits 19828 19829# The user is always right. 19830if test "${PATH_SEPARATOR+set}" != set; then 19831 echo "#! /bin/sh" >conftest.sh 19832 echo "exit 0" >>conftest.sh 19833 chmod +x conftest.sh 19834 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 19835 PATH_SEPARATOR=';' 19836 else 19837 PATH_SEPARATOR=: 19838 fi 19839 rm -f conftest.sh 19840fi 19841 19842 19843 as_lineno_1=$LINENO 19844 as_lineno_2=$LINENO 19845 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19846 test "x$as_lineno_1" != "x$as_lineno_2" && 19847 test "x$as_lineno_3" = "x$as_lineno_2" || { 19848 # Find who we are. Look in the path if we contain no path at all 19849 # relative or not. 19850 case $0 in 19851 *[\\/]* ) as_myself=$0 ;; 19852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19853for as_dir in $PATH 19854do 19855 IFS=$as_save_IFS 19856 test -z "$as_dir" && as_dir=. 19857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19858done 19859 19860 ;; 19861 esac 19862 # We did not find ourselves, most probably we were run as `sh COMMAND' 19863 # in which case we are not to be found in the path. 19864 if test "x$as_myself" = x; then 19865 as_myself=$0 19866 fi 19867 if test ! -f "$as_myself"; then 19868 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19869echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19870 { (exit 1); exit 1; }; } 19871 fi 19872 case $CONFIG_SHELL in 19873 '') 19874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19875for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19876do 19877 IFS=$as_save_IFS 19878 test -z "$as_dir" && as_dir=. 19879 for as_base in sh bash ksh sh5; do 19880 case $as_dir in 19881 /*) 19882 if ("$as_dir/$as_base" -c ' 19883 as_lineno_1=$LINENO 19884 as_lineno_2=$LINENO 19885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19886 test "x$as_lineno_1" != "x$as_lineno_2" && 19887 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19888 CONFIG_SHELL=$as_dir/$as_base 19889 export CONFIG_SHELL 19890 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19891 fi;; 19892 esac 19893 done 19894done 19895;; 19896 esac 19897 19898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19899 # uniformly replaced by the line number. The first 'sed' inserts a 19900 # line-number line before each line; the second 'sed' does the real 19901 # work. The second script uses 'N' to pair each line-number line 19902 # with the numbered line, and appends trailing '-' during 19903 # substitution so that $LINENO is not a special case at line end. 19904 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19905 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19906 sed '=' <$as_myself | 19907 sed ' 19908 N 19909 s,$,-, 19910 : loop 19911 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19912 t loop 19913 s,-$,, 19914 s,^['$as_cr_digits']*\n,, 19915 ' >$as_me.lineno && 19916 chmod +x $as_me.lineno || 19917 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19918echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19919 { (exit 1); exit 1; }; } 19920 19921 # Don't try to exec as it changes $[0], causing all sort of problems 19922 # (the dirname of $[0] is not the place where we might find the 19923 # original and so on. Autoconf is especially sensible to this). 19924 . ./$as_me.lineno 19925 # Exit status is that of the last command. 19926 exit 19927} 19928 19929 19930case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19931 *c*,-n*) ECHO_N= ECHO_C=' 19932' ECHO_T=' ' ;; 19933 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19934 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19935esac 19936 19937if expr a : '\(a\)' >/dev/null 2>&1; then 19938 as_expr=expr 19939else 19940 as_expr=false 19941fi 19942 19943rm -f conf$$ conf$$.exe conf$$.file 19944echo >conf$$.file 19945if ln -s conf$$.file conf$$ 2>/dev/null; then 19946 # We could just check for DJGPP; but this test a) works b) is more generic 19947 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19948 if test -f conf$$.exe; then 19949 # Don't use ln at all; we don't have any links 19950 as_ln_s='cp -p' 19951 else 19952 as_ln_s='ln -s' 19953 fi 19954elif ln conf$$.file conf$$ 2>/dev/null; then 19955 as_ln_s=ln 19956else 19957 as_ln_s='cp -p' 19958fi 19959rm -f conf$$ conf$$.exe conf$$.file 19960 19961as_executable_p="test -f" 19962 19963# Sed expression to map a string onto a valid CPP name. 19964as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 19965 19966# Sed expression to map a string onto a valid variable name. 19967as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 19968 19969 19970# IFS 19971# We need space, tab and new line, in precisely that order. 19972as_nl=' 19973' 19974IFS=" $as_nl" 19975 19976# CDPATH. 19977$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 19978 19979exec 6>&1 19980 19981# Open the log real soon, to keep \$[0] and so on meaningful, and to 19982# report actual input values of CONFIG_FILES etc. instead of their 19983# values after options handling. Logging --version etc. is OK. 19984exec 5>>config.log 19985{ 19986 echo 19987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19988## Running $as_me. ## 19989_ASBOX 19990} >&5 19991cat >&5 <<_CSEOF 19992 19993This file was extended by $as_me, which was 19994generated by GNU Autoconf 2.53. Invocation command line was 19995 19996 CONFIG_FILES = $CONFIG_FILES 19997 CONFIG_HEADERS = $CONFIG_HEADERS 19998 CONFIG_LINKS = $CONFIG_LINKS 19999 CONFIG_COMMANDS = $CONFIG_COMMANDS 20000 $ $0 $@ 20001 20002_CSEOF 20003echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 20004echo >&5 20005_ACEOF 20006 20007# Files that config.status was made for. 20008if test -n "$ac_config_files"; then 20009 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 20010fi 20011 20012if test -n "$ac_config_headers"; then 20013 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 20014fi 20015 20016if test -n "$ac_config_links"; then 20017 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 20018fi 20019 20020if test -n "$ac_config_commands"; then 20021 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 20022fi 20023 20024cat >>$CONFIG_STATUS <<\_ACEOF 20025 20026ac_cs_usage="\ 20027\`$as_me' instantiates files from templates according to the 20028current configuration. 20029 20030Usage: $0 [OPTIONS] [FILE]... 20031 20032 -h, --help print this help, then exit 20033 -V, --version print version number, then exit 20034 -d, --debug don't remove temporary files 20035 --recheck update $as_me by reconfiguring in the same conditions 20036 --file=FILE[:TEMPLATE] 20037 instantiate the configuration file FILE 20038 --header=FILE[:TEMPLATE] 20039 instantiate the configuration header FILE 20040 20041Configuration files: 20042$config_files 20043 20044Configuration headers: 20045$config_headers 20046 20047Report bugs to <bug-autoconf@gnu.org>." 20048_ACEOF 20049 20050cat >>$CONFIG_STATUS <<_ACEOF 20051ac_cs_version="\\ 20052config.status 20053configured by $0, generated by GNU Autoconf 2.53, 20054 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 20055 20056Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 20057Free Software Foundation, Inc. 20058This config.status script is free software; the Free Software Foundation 20059gives unlimited permission to copy, distribute and modify it." 20060srcdir=$srcdir 20061INSTALL="$INSTALL" 20062_ACEOF 20063 20064cat >>$CONFIG_STATUS <<\_ACEOF 20065# If no file are specified by the user, then we need to provide default 20066# value. By we need to know if files were specified by the user. 20067ac_need_defaults=: 20068while test $# != 0 20069do 20070 case $1 in 20071 --*=*) 20072 ac_option=`expr "x$1" : 'x\([^=]*\)='` 20073 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 20074 shift 20075 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 20076 shift 20077 ;; 20078 -*);; 20079 *) # This is not an option, so the user has probably given explicit 20080 # arguments. 20081 ac_need_defaults=false;; 20082 esac 20083 20084 case $1 in 20085 # Handling of the options. 20086_ACEOF 20087cat >>$CONFIG_STATUS <<_ACEOF 20088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20089 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 20090 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 20091_ACEOF 20092cat >>$CONFIG_STATUS <<\_ACEOF 20093 --version | --vers* | -V ) 20094 echo "$ac_cs_version"; exit 0 ;; 20095 --he | --h) 20096 # Conflict between --help and --header 20097 { { echo "$as_me:$LINENO: error: ambiguous option: $1 20098Try \`$0 --help' for more information." >&5 20099echo "$as_me: error: ambiguous option: $1 20100Try \`$0 --help' for more information." >&2;} 20101 { (exit 1); exit 1; }; };; 20102 --help | --hel | -h ) 20103 echo "$ac_cs_usage"; exit 0 ;; 20104 --debug | --d* | -d ) 20105 debug=: ;; 20106 --file | --fil | --fi | --f ) 20107 shift 20108 CONFIG_FILES="$CONFIG_FILES $1" 20109 ac_need_defaults=false;; 20110 --header | --heade | --head | --hea ) 20111 shift 20112 CONFIG_HEADERS="$CONFIG_HEADERS $1" 20113 ac_need_defaults=false;; 20114 20115 # This is an error. 20116 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 20117Try \`$0 --help' for more information." >&5 20118echo "$as_me: error: unrecognized option: $1 20119Try \`$0 --help' for more information." >&2;} 20120 { (exit 1); exit 1; }; } ;; 20121 20122 *) ac_config_targets="$ac_config_targets $1" ;; 20123 20124 esac 20125 shift 20126done 20127 20128_ACEOF 20129 20130 20131 20132 20133 20134cat >>$CONFIG_STATUS <<\_ACEOF 20135for ac_config_target in $ac_config_targets 20136do 20137 case "$ac_config_target" in 20138 # Handling of arguments. 20139 "${makefiles_generic}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_generic}" ;; 20140 "${makefiles_wnn}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_wnn}" ;; 20141 "${makefiles_wnn_dic}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_wnn_dic}" ;; 20142 "${makefiles_cwnn}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_cwnn}" ;; 20143 "${makefiles_cwnn_dic}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_cwnn_dic}" ;; 20144 "${makefiles_kwnn}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_kwnn}" ;; 20145 "${makefiles_kwnn_dic}" ) CONFIG_FILES="$CONFIG_FILES ${makefiles_kwnn_dic}" ;; 20146 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20147 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20148echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20149 { (exit 1); exit 1; }; };; 20150 esac 20151done 20152 20153# If the user did not use the arguments to specify the items to instantiate, 20154# then the envvar interface is used. Set only those that are not. 20155# We use the long form for the default assignment because of an extremely 20156# bizarre bug on SunOS 4.1.3. 20157if $ac_need_defaults; then 20158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20159 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20160fi 20161 20162# Create a temporary directory, and hook for its removal unless debugging. 20163$debug || 20164{ 20165 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20166 trap '{ (exit 1); exit 1; }' 1 2 13 15 20167} 20168 20169# Create a (secure) tmp directory for tmp files. 20170: ${TMPDIR=/tmp} 20171{ 20172 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 20173 test -n "$tmp" && test -d "$tmp" 20174} || 20175{ 20176 tmp=$TMPDIR/cs$$-$RANDOM 20177 (umask 077 && mkdir $tmp) 20178} || 20179{ 20180 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 20181 { (exit 1); exit 1; } 20182} 20183 20184_ACEOF 20185 20186cat >>$CONFIG_STATUS <<_ACEOF 20187 20188# 20189# CONFIG_FILES section. 20190# 20191 20192# No need to generate the scripts if there are no CONFIG_FILES. 20193# This happens for instance when ./config.status config.h 20194if test -n "\$CONFIG_FILES"; then 20195 # Protect against being on the right side of a sed subst in config.status. 20196 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20197 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20198s,@SHELL@,$SHELL,;t t 20199s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20200s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20201s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20202s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20203s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20204s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20205s,@exec_prefix@,$exec_prefix,;t t 20206s,@prefix@,$prefix,;t t 20207s,@program_transform_name@,$program_transform_name,;t t 20208s,@bindir@,$bindir,;t t 20209s,@sbindir@,$sbindir,;t t 20210s,@libexecdir@,$libexecdir,;t t 20211s,@datadir@,$datadir,;t t 20212s,@sysconfdir@,$sysconfdir,;t t 20213s,@sharedstatedir@,$sharedstatedir,;t t 20214s,@localstatedir@,$localstatedir,;t t 20215s,@libdir@,$libdir,;t t 20216s,@includedir@,$includedir,;t t 20217s,@oldincludedir@,$oldincludedir,;t t 20218s,@infodir@,$infodir,;t t 20219s,@mandir@,$mandir,;t t 20220s,@build_alias@,$build_alias,;t t 20221s,@host_alias@,$host_alias,;t t 20222s,@target_alias@,$target_alias,;t t 20223s,@DEFS@,$DEFS,;t t 20224s,@ECHO_C@,$ECHO_C,;t t 20225s,@ECHO_N@,$ECHO_N,;t t 20226s,@ECHO_T@,$ECHO_T,;t t 20227s,@LIBS@,$LIBS,;t t 20228s,@build@,$build,;t t 20229s,@build_cpu@,$build_cpu,;t t 20230s,@build_vendor@,$build_vendor,;t t 20231s,@build_os@,$build_os,;t t 20232s,@host@,$host,;t t 20233s,@host_cpu@,$host_cpu,;t t 20234s,@host_vendor@,$host_vendor,;t t 20235s,@host_os@,$host_os,;t t 20236s,@SUBDIRS@,$SUBDIRS,;t t 20237s,@WNNMANDIR@,$WNNMANDIR,;t t 20238s,@Wnn@,$Wnn,;t t 20239s,@JSERVER_SUBDIRS2@,$JSERVER_SUBDIRS2,;t t 20240s,@cWnn@,$cWnn,;t t 20241s,@kWnn@,$kWnn,;t t 20242s,@WNNJLIB@,$WNNJLIB,;t t 20243s,@DEPWNNJLIB@,$DEPWNNJLIB,;t t 20244s,@HINSI_DATA@,$HINSI_DATA,;t t 20245s,@CWNNJLIB@,$CWNNJLIB,;t t 20246s,@DEPCWNNJLIB@,$DEPCWNNJLIB,;t t 20247s,@CHINSI_DATA@,$CHINSI_DATA,;t t 20248s,@THINSI_DATA@,$THINSI_DATA,;t t 20249s,@KWNNJLIB@,$KWNNJLIB,;t t 20250s,@DEPKWNNJLIB@,$DEPKWNNJLIB,;t t 20251s,@KHINSI_DATA@,$KHINSI_DATA,;t t 20252s,@ipv6@,$ipv6,;t t 20253s,@unsafe_path@,$unsafe_path,;t t 20254s,@CC@,$CC,;t t 20255s,@CFLAGS@,$CFLAGS,;t t 20256s,@LDFLAGS@,$LDFLAGS,;t t 20257s,@CPPFLAGS@,$CPPFLAGS,;t t 20258s,@ac_ct_CC@,$ac_ct_CC,;t t 20259s,@EXEEXT@,$EXEEXT,;t t 20260s,@OBJEXT@,$OBJEXT,;t t 20261s,@CCOPTIONS@,$CCOPTIONS,;t t 20262s,@CDEBUGFLAGS@,$CDEBUGFLAGS,;t t 20263s,@INSTPGMFLAGS@,$INSTPGMFLAGS,;t t 20264s,@CPP@,$CPP,;t t 20265s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20266s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20267s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20268s,@LN_S@,$LN_S,;t t 20269s,@SET_MAKE@,$SET_MAKE,;t t 20270s,@EGREP@,$EGREP,;t t 20271s,@ECHO@,$ECHO,;t t 20272s,@AR@,$AR,;t t 20273s,@ac_ct_AR@,$ac_ct_AR,;t t 20274s,@RANLIB@,$RANLIB,;t t 20275s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20276s,@STRIP@,$STRIP,;t t 20277s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20278s,@CXX@,$CXX,;t t 20279s,@CXXFLAGS@,$CXXFLAGS,;t t 20280s,@ac_ct_CXX@,$ac_ct_CXX,;t t 20281s,@CXXCPP@,$CXXCPP,;t t 20282s,@F77@,$F77,;t t 20283s,@FFLAGS@,$FFLAGS,;t t 20284s,@ac_ct_F77@,$ac_ct_F77,;t t 20285s,@LIBTOOL@,$LIBTOOL,;t t 20286s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t 20287s,@LIBOBJS@,$LIBOBJS,;t t 20288s,@JS_SUPPORTOBJS@,$JS_SUPPORTOBJS,;t t 20289s,@WRAPLIB@,$WRAPLIB,;t t 20290CEOF 20291 20292_ACEOF 20293 20294 cat >>$CONFIG_STATUS <<\_ACEOF 20295 # Split the substitutions into bite-sized pieces for seds with 20296 # small command number limits, like on Digital OSF/1 and HP-UX. 20297 ac_max_sed_lines=48 20298 ac_sed_frag=1 # Number of current file. 20299 ac_beg=1 # First line for current file. 20300 ac_end=$ac_max_sed_lines # Line after last line for current file. 20301 ac_more_lines=: 20302 ac_sed_cmds= 20303 while $ac_more_lines; do 20304 if test $ac_beg -gt 1; then 20305 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20306 else 20307 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20308 fi 20309 if test ! -s $tmp/subs.frag; then 20310 ac_more_lines=false 20311 else 20312 # The purpose of the label and of the branching condition is to 20313 # speed up the sed processing (if there are no `@' at all, there 20314 # is no need to browse any of the substitutions). 20315 # These are the two extra sed commands mentioned above. 20316 (echo ':t 20317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20318 if test -z "$ac_sed_cmds"; then 20319 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20320 else 20321 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20322 fi 20323 ac_sed_frag=`expr $ac_sed_frag + 1` 20324 ac_beg=$ac_end 20325 ac_end=`expr $ac_end + $ac_max_sed_lines` 20326 fi 20327 done 20328 if test -z "$ac_sed_cmds"; then 20329 ac_sed_cmds=cat 20330 fi 20331fi # test -n "$CONFIG_FILES" 20332 20333_ACEOF 20334cat >>$CONFIG_STATUS <<\_ACEOF 20335for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20337 case $ac_file in 20338 - | *:- | *:-:* ) # input from stdin 20339 cat >$tmp/stdin 20340 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20341 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20342 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20343 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20344 * ) ac_file_in=$ac_file.in ;; 20345 esac 20346 20347 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20348 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20349$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20350 X"$ac_file" : 'X\(//\)[^/]' \| \ 20351 X"$ac_file" : 'X\(//\)$' \| \ 20352 X"$ac_file" : 'X\(/\)' \| \ 20353 . : '\(.\)' 2>/dev/null || 20354echo X"$ac_file" | 20355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20356 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20357 /^X\(\/\/\)$/{ s//\1/; q; } 20358 /^X\(\/\).*/{ s//\1/; q; } 20359 s/.*/./; q'` 20360 { case "$ac_dir" in 20361 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 20362 *) as_incr_dir=.;; 20363esac 20364as_dummy="$ac_dir" 20365for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 20366 case $as_mkdir_dir in 20367 # Skip DOS drivespec 20368 ?:) as_incr_dir=$as_mkdir_dir ;; 20369 *) 20370 as_incr_dir=$as_incr_dir/$as_mkdir_dir 20371 test -d "$as_incr_dir" || 20372 mkdir "$as_incr_dir" || 20373 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 20374echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 20375 { (exit 1); exit 1; }; } 20376 ;; 20377 esac 20378done; } 20379 20380 ac_builddir=. 20381 20382if test "$ac_dir" != .; then 20383 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20384 # A "../" for each directory in $ac_dir_suffix. 20385 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20386else 20387 ac_dir_suffix= ac_top_builddir= 20388fi 20389 20390case $srcdir in 20391 .) # No --srcdir option. We are building in place. 20392 ac_srcdir=. 20393 if test -z "$ac_top_builddir"; then 20394 ac_top_srcdir=. 20395 else 20396 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20397 fi ;; 20398 [\\/]* | ?:[\\/]* ) # Absolute path. 20399 ac_srcdir=$srcdir$ac_dir_suffix; 20400 ac_top_srcdir=$srcdir ;; 20401 *) # Relative path. 20402 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20403 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20404esac 20405# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 20406# absolute. 20407ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 20408ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 20409ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 20410ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 20411 20412 20413 case $INSTALL in 20414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20415 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20416 esac 20417 20418 if test x"$ac_file" != x-; then 20419 { echo "$as_me:$LINENO: creating $ac_file" >&5 20420echo "$as_me: creating $ac_file" >&6;} 20421 rm -f "$ac_file" 20422 fi 20423 # Let's still pretend it is `configure' which instantiates (i.e., don't 20424 # use $as_me), people would be surprised to read: 20425 # /* config.h. Generated by config.status. */ 20426 if test x"$ac_file" = x-; then 20427 configure_input= 20428 else 20429 configure_input="$ac_file. " 20430 fi 20431 configure_input=$configure_input"Generated from `echo $ac_file_in | 20432 sed 's,.*/,,'` by configure." 20433 20434 # First look for the input files in the build tree, otherwise in the 20435 # src tree. 20436 ac_file_inputs=`IFS=: 20437 for f in $ac_file_in; do 20438 case $f in 20439 -) echo $tmp/stdin ;; 20440 [\\/$]*) 20441 # Absolute (can't be DOS-style, as IFS=:) 20442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20443echo "$as_me: error: cannot find input file: $f" >&2;} 20444 { (exit 1); exit 1; }; } 20445 echo $f;; 20446 *) # Relative 20447 if test -f "$f"; then 20448 # Build tree 20449 echo $f 20450 elif test -f "$srcdir/$f"; then 20451 # Source tree 20452 echo $srcdir/$f 20453 else 20454 # /dev/null tree 20455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20456echo "$as_me: error: cannot find input file: $f" >&2;} 20457 { (exit 1); exit 1; }; } 20458 fi;; 20459 esac 20460 done` || { (exit 1); exit 1; } 20461_ACEOF 20462cat >>$CONFIG_STATUS <<_ACEOF 20463 sed "$ac_vpsub 20464$extrasub 20465_ACEOF 20466cat >>$CONFIG_STATUS <<\_ACEOF 20467:t 20468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20469s,@configure_input@,$configure_input,;t t 20470s,@srcdir@,$ac_srcdir,;t t 20471s,@abs_srcdir@,$ac_abs_srcdir,;t t 20472s,@top_srcdir@,$ac_top_srcdir,;t t 20473s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20474s,@builddir@,$ac_builddir,;t t 20475s,@abs_builddir@,$ac_abs_builddir,;t t 20476s,@top_builddir@,$ac_top_builddir,;t t 20477s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20478s,@INSTALL@,$ac_INSTALL,;t t 20479" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20480 rm -f $tmp/stdin 20481 if test x"$ac_file" != x-; then 20482 mv $tmp/out $ac_file 20483 else 20484 cat $tmp/out 20485 rm -f $tmp/out 20486 fi 20487 20488done 20489_ACEOF 20490cat >>$CONFIG_STATUS <<\_ACEOF 20491 20492# 20493# CONFIG_HEADER section. 20494# 20495 20496# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20497# NAME is the cpp macro being defined and VALUE is the value it is being given. 20498# 20499# ac_d sets the value in "#define NAME VALUE" lines. 20500ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20501ac_dB='[ ].*$,\1#\2' 20502ac_dC=' ' 20503ac_dD=',;t' 20504# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20505ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20506ac_uB='$,\1#\2define\3' 20507ac_uC=' ' 20508ac_uD=',;t' 20509 20510for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20512 case $ac_file in 20513 - | *:- | *:-:* ) # input from stdin 20514 cat >$tmp/stdin 20515 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20516 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20517 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20519 * ) ac_file_in=$ac_file.in ;; 20520 esac 20521 20522 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20523echo "$as_me: creating $ac_file" >&6;} 20524 20525 # First look for the input files in the build tree, otherwise in the 20526 # src tree. 20527 ac_file_inputs=`IFS=: 20528 for f in $ac_file_in; do 20529 case $f in 20530 -) echo $tmp/stdin ;; 20531 [\\/$]*) 20532 # Absolute (can't be DOS-style, as IFS=:) 20533 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20534echo "$as_me: error: cannot find input file: $f" >&2;} 20535 { (exit 1); exit 1; }; } 20536 echo $f;; 20537 *) # Relative 20538 if test -f "$f"; then 20539 # Build tree 20540 echo $f 20541 elif test -f "$srcdir/$f"; then 20542 # Source tree 20543 echo $srcdir/$f 20544 else 20545 # /dev/null tree 20546 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20547echo "$as_me: error: cannot find input file: $f" >&2;} 20548 { (exit 1); exit 1; }; } 20549 fi;; 20550 esac 20551 done` || { (exit 1); exit 1; } 20552 # Remove the trailing spaces. 20553 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20554 20555_ACEOF 20556 20557# Transform confdefs.h into two sed scripts, `conftest.defines' and 20558# `conftest.undefs', that substitutes the proper values into 20559# config.h.in to produce config.h. The first handles `#define' 20560# templates, and the second `#undef' templates. 20561# And first: Protect against being on the right side of a sed subst in 20562# config.status. Protect against being in an unquoted here document 20563# in config.status. 20564rm -f conftest.defines conftest.undefs 20565# Using a here document instead of a string reduces the quoting nightmare. 20566# Putting comments in sed scripts is not portable. 20567# 20568# `end' is used to avoid that the second main sed command (meant for 20569# 0-ary CPP macros) applies to n-ary macro definitions. 20570# See the Autoconf documentation for `clear'. 20571cat >confdef2sed.sed <<\_ACEOF 20572s/[\\&,]/\\&/g 20573s,[\\$`],\\&,g 20574t clear 20575: clear 20576s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20577t end 20578s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20579: end 20580_ACEOF 20581# If some macros were called several times there might be several times 20582# the same #defines, which is useless. Nevertheless, we may not want to 20583# sort them, since we want the *last* AC-DEFINE to be honored. 20584uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20585sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20586rm -f confdef2sed.sed 20587 20588# This sed command replaces #undef with comments. This is necessary, for 20589# example, in the case of _POSIX_SOURCE, which is predefined and required 20590# on some systems where configure will not decide to define it. 20591cat >>conftest.undefs <<\_ACEOF 20592s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20593_ACEOF 20594 20595# Break up conftest.defines because some shells have a limit on the size 20596# of here documents, and old seds have small limits too (100 cmds). 20597echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20598echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20599echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20600echo ' :' >>$CONFIG_STATUS 20601rm -f conftest.tail 20602while grep . conftest.defines >/dev/null 20603do 20604 # Write a limited-size here document to $tmp/defines.sed. 20605 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20606 # Speed up: don't consider the non `#define' lines. 20607 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20608 # Work around the forget-to-reset-the-flag bug. 20609 echo 't clr' >>$CONFIG_STATUS 20610 echo ': clr' >>$CONFIG_STATUS 20611 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20612 echo 'CEOF 20613 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20614 rm -f $tmp/in 20615 mv $tmp/out $tmp/in 20616' >>$CONFIG_STATUS 20617 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20618 rm -f conftest.defines 20619 mv conftest.tail conftest.defines 20620done 20621rm -f conftest.defines 20622echo ' fi # egrep' >>$CONFIG_STATUS 20623echo >>$CONFIG_STATUS 20624 20625# Break up conftest.undefs because some shells have a limit on the size 20626# of here documents, and old seds have small limits too (100 cmds). 20627echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20628rm -f conftest.tail 20629while grep . conftest.undefs >/dev/null 20630do 20631 # Write a limited-size here document to $tmp/undefs.sed. 20632 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20633 # Speed up: don't consider the non `#undef' 20634 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20635 # Work around the forget-to-reset-the-flag bug. 20636 echo 't clr' >>$CONFIG_STATUS 20637 echo ': clr' >>$CONFIG_STATUS 20638 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20639 echo 'CEOF 20640 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20641 rm -f $tmp/in 20642 mv $tmp/out $tmp/in 20643' >>$CONFIG_STATUS 20644 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20645 rm -f conftest.undefs 20646 mv conftest.tail conftest.undefs 20647done 20648rm -f conftest.undefs 20649 20650cat >>$CONFIG_STATUS <<\_ACEOF 20651 # Let's still pretend it is `configure' which instantiates (i.e., don't 20652 # use $as_me), people would be surprised to read: 20653 # /* config.h. Generated by config.status. */ 20654 if test x"$ac_file" = x-; then 20655 echo "/* Generated by configure. */" >$tmp/config.h 20656 else 20657 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 20658 fi 20659 cat $tmp/in >>$tmp/config.h 20660 rm -f $tmp/in 20661 if test x"$ac_file" != x-; then 20662 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 20663 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20664echo "$as_me: $ac_file is unchanged" >&6;} 20665 else 20666 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20668 X"$ac_file" : 'X\(//\)[^/]' \| \ 20669 X"$ac_file" : 'X\(//\)$' \| \ 20670 X"$ac_file" : 'X\(/\)' \| \ 20671 . : '\(.\)' 2>/dev/null || 20672echo X"$ac_file" | 20673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20674 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20675 /^X\(\/\/\)$/{ s//\1/; q; } 20676 /^X\(\/\).*/{ s//\1/; q; } 20677 s/.*/./; q'` 20678 { case "$ac_dir" in 20679 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 20680 *) as_incr_dir=.;; 20681esac 20682as_dummy="$ac_dir" 20683for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 20684 case $as_mkdir_dir in 20685 # Skip DOS drivespec 20686 ?:) as_incr_dir=$as_mkdir_dir ;; 20687 *) 20688 as_incr_dir=$as_incr_dir/$as_mkdir_dir 20689 test -d "$as_incr_dir" || 20690 mkdir "$as_incr_dir" || 20691 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 20692echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 20693 { (exit 1); exit 1; }; } 20694 ;; 20695 esac 20696done; } 20697 20698 rm -f $ac_file 20699 mv $tmp/config.h $ac_file 20700 fi 20701 else 20702 cat $tmp/config.h 20703 rm -f $tmp/config.h 20704 fi 20705done 20706_ACEOF 20707 20708cat >>$CONFIG_STATUS <<\_ACEOF 20709 20710{ (exit 0); exit 0; } 20711_ACEOF 20712chmod +x $CONFIG_STATUS 20713ac_clean_files=$ac_clean_files_save 20714 20715 20716# configure is writing to config.log, and then calls config.status. 20717# config.status does its own redirection, appending to config.log. 20718# Unfortunately, on DOS this fails, as config.log is still kept open 20719# by configure, so config.status won't be able to write to it; its 20720# output is simply discarded. So we exec the FD to /dev/null, 20721# effectively closing config.log, so it can be properly (re)opened and 20722# appended to by config.status. When coming back to configure, we 20723# need to make the FD available again. 20724if test "$no_create" != yes; then 20725 ac_cs_success=: 20726 exec 5>/dev/null 20727 $SHELL $CONFIG_STATUS || ac_cs_success=false 20728 exec 5>>config.log 20729 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20730 # would make configure fail if this is the last instruction. 20731 $ac_cs_success || { (exit 1); exit 1; } 20732fi 20733 20734