1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for normalize 0.7.7. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string=`eval $cmd`) 2>/dev/null && 289 echo_test_string=`eval $cmd` && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_config_libobj_dir=. 410cross_compiling=no 411subdirs= 412MFLAGS= 413MAKEFLAGS= 414SHELL=${CONFIG_SHELL-/bin/sh} 415 416# Maximum number of lines to put in a shell here document. 417# This variable seems obsolete. It should probably be removed, and 418# only ac_max_sed_lines should be used. 419: ${ac_max_here_lines=38} 420 421# Identity of this package. 422PACKAGE_NAME='normalize' 423PACKAGE_TARNAME='normalize' 424PACKAGE_VERSION='0.7.7' 425PACKAGE_STRING='normalize 0.7.7' 426PACKAGE_BUGREPORT='' 427 428ac_unique_file="src/normalize.c" 429# Factoring default headers for most tests. 430ac_includes_default="\ 431#include <stdio.h> 432#if HAVE_SYS_TYPES_H 433# include <sys/types.h> 434#endif 435#if HAVE_SYS_STAT_H 436# include <sys/stat.h> 437#endif 438#if STDC_HEADERS 439# include <stdlib.h> 440# include <stddef.h> 441#else 442# if HAVE_STDLIB_H 443# include <stdlib.h> 444# endif 445#endif 446#if HAVE_STRING_H 447# if !STDC_HEADERS && HAVE_MEMORY_H 448# include <memory.h> 449# endif 450# include <string.h> 451#endif 452#if HAVE_STRINGS_H 453# include <strings.h> 454#endif 455#if HAVE_INTTYPES_H 456# include <inttypes.h> 457#else 458# if HAVE_STDINT_H 459# include <stdint.h> 460# endif 461#endif 462#if HAVE_UNISTD_H 463# include <unistd.h> 464#endif" 465 466ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S CPP EGREP PERL MP3DECODE MP3ENCODE OGGDECODE OGGENCODE VORBISCOMMENT FLACDECODE FLACENCODE METAFLAC GLIB_CONFIG GLIB_CFLAGS GLIB_LIBS GTK_CONFIG GTK_CFLAGS GTK_LIBS XMMS_CONFIG XMMS_CFLAGS XMMS_LIBS XMMS_VERSION XMMS_DATA_DIR XMMS_PLUGIN_DIR XMMS_VISUALIZATION_PLUGIN_DIR XMMS_INPUT_PLUGIN_DIR XMMS_OUTPUT_PLUGIN_DIR XMMS_GENERAL_PLUGIN_DIR XMMS_EFFECT_PLUGIN_DIR ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PLUGINS AUDIOFILE_CONFIG AUDIOFILE_CFLAGS AUDIOFILE_LIBS AUDIOFILE_TRUE AUDIOFILE_FALSE MADLIBS MAD_TRUE MAD_FALSE NORMALIZE_BIN MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LTLIBOBJS' 467ac_subst_files='' 468 469# Initialize some variables set by options. 470ac_init_help= 471ac_init_version=false 472# The variables have the same names as the options, with 473# dashes changed to underlines. 474cache_file=/dev/null 475exec_prefix=NONE 476no_create= 477no_recursion= 478prefix=NONE 479program_prefix=NONE 480program_suffix=NONE 481program_transform_name=s,x,x, 482silent= 483site= 484srcdir= 485verbose= 486x_includes=NONE 487x_libraries=NONE 488 489# Installation directory options. 490# These are left unexpanded so users can "make install exec_prefix=/foo" 491# and all the variables that are supposed to be based on exec_prefix 492# by default will actually change. 493# Use braces instead of parens because sh, perl, etc. also accept them. 494bindir='${exec_prefix}/bin' 495sbindir='${exec_prefix}/sbin' 496libexecdir='${exec_prefix}/libexec' 497datadir='${prefix}/share' 498sysconfdir='${prefix}/etc' 499sharedstatedir='${prefix}/com' 500localstatedir='${prefix}/var' 501libdir='${exec_prefix}/lib' 502includedir='${prefix}/include' 503oldincludedir='/usr/include' 504infodir='${prefix}/info' 505mandir='${prefix}/man' 506 507ac_prev= 508for ac_option 509do 510 # If the previous option needs an argument, assign it. 511 if test -n "$ac_prev"; then 512 eval "$ac_prev=\$ac_option" 513 ac_prev= 514 continue 515 fi 516 517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 518 519 # Accept the important Cygnus configure options, so we can diagnose typos. 520 521 case $ac_option in 522 523 -bindir | --bindir | --bindi | --bind | --bin | --bi) 524 ac_prev=bindir ;; 525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 526 bindir=$ac_optarg ;; 527 528 -build | --build | --buil | --bui | --bu) 529 ac_prev=build_alias ;; 530 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 531 build_alias=$ac_optarg ;; 532 533 -cache-file | --cache-file | --cache-fil | --cache-fi \ 534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 535 ac_prev=cache_file ;; 536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 538 cache_file=$ac_optarg ;; 539 540 --config-cache | -C) 541 cache_file=config.cache ;; 542 543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 544 ac_prev=datadir ;; 545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 546 | --da=*) 547 datadir=$ac_optarg ;; 548 549 -disable-* | --disable-*) 550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 554 { (exit 1); exit 1; }; } 555 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 556 eval "enable_$ac_feature=no" ;; 557 558 -enable-* | --enable-*) 559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 560 # Reject names that are not valid shell variable names. 561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 563 { (exit 1); exit 1; }; } 564 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 565 case $ac_option in 566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 567 *) ac_optarg=yes ;; 568 esac 569 eval "enable_$ac_feature='$ac_optarg'" ;; 570 571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 573 | --exec | --exe | --ex) 574 ac_prev=exec_prefix ;; 575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 577 | --exec=* | --exe=* | --ex=*) 578 exec_prefix=$ac_optarg ;; 579 580 -gas | --gas | --ga | --g) 581 # Obsolete; use --with-gas. 582 with_gas=yes ;; 583 584 -help | --help | --hel | --he | -h) 585 ac_init_help=long ;; 586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 587 ac_init_help=recursive ;; 588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 589 ac_init_help=short ;; 590 591 -host | --host | --hos | --ho) 592 ac_prev=host_alias ;; 593 -host=* | --host=* | --hos=* | --ho=*) 594 host_alias=$ac_optarg ;; 595 596 -includedir | --includedir | --includedi | --included | --include \ 597 | --includ | --inclu | --incl | --inc) 598 ac_prev=includedir ;; 599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 600 | --includ=* | --inclu=* | --incl=* | --inc=*) 601 includedir=$ac_optarg ;; 602 603 -infodir | --infodir | --infodi | --infod | --info | --inf) 604 ac_prev=infodir ;; 605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 606 infodir=$ac_optarg ;; 607 608 -libdir | --libdir | --libdi | --libd) 609 ac_prev=libdir ;; 610 -libdir=* | --libdir=* | --libdi=* | --libd=*) 611 libdir=$ac_optarg ;; 612 613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 614 | --libexe | --libex | --libe) 615 ac_prev=libexecdir ;; 616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 617 | --libexe=* | --libex=* | --libe=*) 618 libexecdir=$ac_optarg ;; 619 620 -localstatedir | --localstatedir | --localstatedi | --localstated \ 621 | --localstate | --localstat | --localsta | --localst \ 622 | --locals | --local | --loca | --loc | --lo) 623 ac_prev=localstatedir ;; 624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 627 localstatedir=$ac_optarg ;; 628 629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 630 ac_prev=mandir ;; 631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 632 mandir=$ac_optarg ;; 633 634 -nfp | --nfp | --nf) 635 # Obsolete; use --without-fp. 636 with_fp=no ;; 637 638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 639 | --no-cr | --no-c | -n) 640 no_create=yes ;; 641 642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 644 no_recursion=yes ;; 645 646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 648 | --oldin | --oldi | --old | --ol | --o) 649 ac_prev=oldincludedir ;; 650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 653 oldincludedir=$ac_optarg ;; 654 655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 656 ac_prev=prefix ;; 657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 658 prefix=$ac_optarg ;; 659 660 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 661 | --program-pre | --program-pr | --program-p) 662 ac_prev=program_prefix ;; 663 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 665 program_prefix=$ac_optarg ;; 666 667 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 668 | --program-suf | --program-su | --program-s) 669 ac_prev=program_suffix ;; 670 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 672 program_suffix=$ac_optarg ;; 673 674 -program-transform-name | --program-transform-name \ 675 | --program-transform-nam | --program-transform-na \ 676 | --program-transform-n | --program-transform- \ 677 | --program-transform | --program-transfor \ 678 | --program-transfo | --program-transf \ 679 | --program-trans | --program-tran \ 680 | --progr-tra | --program-tr | --program-t) 681 ac_prev=program_transform_name ;; 682 -program-transform-name=* | --program-transform-name=* \ 683 | --program-transform-nam=* | --program-transform-na=* \ 684 | --program-transform-n=* | --program-transform-=* \ 685 | --program-transform=* | --program-transfor=* \ 686 | --program-transfo=* | --program-transf=* \ 687 | --program-trans=* | --program-tran=* \ 688 | --progr-tra=* | --program-tr=* | --program-t=*) 689 program_transform_name=$ac_optarg ;; 690 691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 692 | -silent | --silent | --silen | --sile | --sil) 693 silent=yes ;; 694 695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 696 ac_prev=sbindir ;; 697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 698 | --sbi=* | --sb=*) 699 sbindir=$ac_optarg ;; 700 701 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 703 | --sharedst | --shareds | --shared | --share | --shar \ 704 | --sha | --sh) 705 ac_prev=sharedstatedir ;; 706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 709 | --sha=* | --sh=*) 710 sharedstatedir=$ac_optarg ;; 711 712 -site | --site | --sit) 713 ac_prev=site ;; 714 -site=* | --site=* | --sit=*) 715 site=$ac_optarg ;; 716 717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 718 ac_prev=srcdir ;; 719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 720 srcdir=$ac_optarg ;; 721 722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 723 | --syscon | --sysco | --sysc | --sys | --sy) 724 ac_prev=sysconfdir ;; 725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 727 sysconfdir=$ac_optarg ;; 728 729 -target | --target | --targe | --targ | --tar | --ta | --t) 730 ac_prev=target_alias ;; 731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 732 target_alias=$ac_optarg ;; 733 734 -v | -verbose | --verbose | --verbos | --verbo | --verb) 735 verbose=yes ;; 736 737 -version | --version | --versio | --versi | --vers | -V) 738 ac_init_version=: ;; 739 740 -with-* | --with-*) 741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 742 # Reject names that are not valid shell variable names. 743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 744 { echo "$as_me: error: invalid package name: $ac_package" >&2 745 { (exit 1); exit 1; }; } 746 ac_package=`echo $ac_package| sed 's/-/_/g'` 747 case $ac_option in 748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 749 *) ac_optarg=yes ;; 750 esac 751 eval "with_$ac_package='$ac_optarg'" ;; 752 753 -without-* | --without-*) 754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 755 # Reject names that are not valid shell variable names. 756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 757 { echo "$as_me: error: invalid package name: $ac_package" >&2 758 { (exit 1); exit 1; }; } 759 ac_package=`echo $ac_package | sed 's/-/_/g'` 760 eval "with_$ac_package=no" ;; 761 762 --x) 763 # Obsolete; use --with-x. 764 with_x=yes ;; 765 766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 767 | --x-incl | --x-inc | --x-in | --x-i) 768 ac_prev=x_includes ;; 769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 771 x_includes=$ac_optarg ;; 772 773 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 775 ac_prev=x_libraries ;; 776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 778 x_libraries=$ac_optarg ;; 779 780 -*) { echo "$as_me: error: unrecognized option: $ac_option 781Try \`$0 --help' for more information." >&2 782 { (exit 1); exit 1; }; } 783 ;; 784 785 *=*) 786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 787 # Reject names that are not valid shell variable names. 788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 790 { (exit 1); exit 1; }; } 791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 792 eval "$ac_envvar='$ac_optarg'" 793 export $ac_envvar ;; 794 795 *) 796 # FIXME: should be removed in autoconf 3.0. 797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 801 ;; 802 803 esac 804done 805 806if test -n "$ac_prev"; then 807 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 808 { echo "$as_me: error: missing argument to $ac_option" >&2 809 { (exit 1); exit 1; }; } 810fi 811 812# Be sure to have absolute paths. 813for ac_var in exec_prefix prefix 814do 815 eval ac_val=$`echo $ac_var` 816 case $ac_val in 817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 819 { (exit 1); exit 1; }; };; 820 esac 821done 822 823# Be sure to have absolute paths. 824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 825 localstatedir libdir includedir oldincludedir infodir mandir 826do 827 eval ac_val=$`echo $ac_var` 828 case $ac_val in 829 [\\/$]* | ?:[\\/]* ) ;; 830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 831 { (exit 1); exit 1; }; };; 832 esac 833done 834 835# There might be people who depend on the old broken behavior: `$host' 836# used to hold the argument of --host etc. 837# FIXME: To remove some day. 838build=$build_alias 839host=$host_alias 840target=$target_alias 841 842# FIXME: To remove some day. 843if test "x$host_alias" != x; then 844 if test "x$build_alias" = x; then 845 cross_compiling=maybe 846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 847 If a cross compiler is detected then cross compile mode will be used." >&2 848 elif test "x$build_alias" != "x$host_alias"; then 849 cross_compiling=yes 850 fi 851fi 852 853ac_tool_prefix= 854test -n "$host_alias" && ac_tool_prefix=$host_alias- 855 856test "$silent" = yes && exec 6>/dev/null 857 858 859# Find the source files, if location was not specified. 860if test -z "$srcdir"; then 861 ac_srcdir_defaulted=yes 862 # Try the directory containing this script, then its parent. 863 ac_confdir=`(dirname "$0") 2>/dev/null || 864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 865 X"$0" : 'X\(//\)[^/]' \| \ 866 X"$0" : 'X\(//\)$' \| \ 867 X"$0" : 'X\(/\)' \| \ 868 . : '\(.\)' 2>/dev/null || 869echo X"$0" | 870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 871 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 872 /^X\(\/\/\)$/{ s//\1/; q; } 873 /^X\(\/\).*/{ s//\1/; q; } 874 s/.*/./; q'` 875 srcdir=$ac_confdir 876 if test ! -r $srcdir/$ac_unique_file; then 877 srcdir=.. 878 fi 879else 880 ac_srcdir_defaulted=no 881fi 882if test ! -r $srcdir/$ac_unique_file; then 883 if test "$ac_srcdir_defaulted" = yes; then 884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 885 { (exit 1); exit 1; }; } 886 else 887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 888 { (exit 1); exit 1; }; } 889 fi 890fi 891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 893 { (exit 1); exit 1; }; } 894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 895ac_env_build_alias_set=${build_alias+set} 896ac_env_build_alias_value=$build_alias 897ac_cv_env_build_alias_set=${build_alias+set} 898ac_cv_env_build_alias_value=$build_alias 899ac_env_host_alias_set=${host_alias+set} 900ac_env_host_alias_value=$host_alias 901ac_cv_env_host_alias_set=${host_alias+set} 902ac_cv_env_host_alias_value=$host_alias 903ac_env_target_alias_set=${target_alias+set} 904ac_env_target_alias_value=$target_alias 905ac_cv_env_target_alias_set=${target_alias+set} 906ac_cv_env_target_alias_value=$target_alias 907ac_env_CC_set=${CC+set} 908ac_env_CC_value=$CC 909ac_cv_env_CC_set=${CC+set} 910ac_cv_env_CC_value=$CC 911ac_env_CFLAGS_set=${CFLAGS+set} 912ac_env_CFLAGS_value=$CFLAGS 913ac_cv_env_CFLAGS_set=${CFLAGS+set} 914ac_cv_env_CFLAGS_value=$CFLAGS 915ac_env_LDFLAGS_set=${LDFLAGS+set} 916ac_env_LDFLAGS_value=$LDFLAGS 917ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 918ac_cv_env_LDFLAGS_value=$LDFLAGS 919ac_env_CPPFLAGS_set=${CPPFLAGS+set} 920ac_env_CPPFLAGS_value=$CPPFLAGS 921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 922ac_cv_env_CPPFLAGS_value=$CPPFLAGS 923ac_env_CPP_set=${CPP+set} 924ac_env_CPP_value=$CPP 925ac_cv_env_CPP_set=${CPP+set} 926ac_cv_env_CPP_value=$CPP 927ac_env_CXX_set=${CXX+set} 928ac_env_CXX_value=$CXX 929ac_cv_env_CXX_set=${CXX+set} 930ac_cv_env_CXX_value=$CXX 931ac_env_CXXFLAGS_set=${CXXFLAGS+set} 932ac_env_CXXFLAGS_value=$CXXFLAGS 933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 934ac_cv_env_CXXFLAGS_value=$CXXFLAGS 935ac_env_CXXCPP_set=${CXXCPP+set} 936ac_env_CXXCPP_value=$CXXCPP 937ac_cv_env_CXXCPP_set=${CXXCPP+set} 938ac_cv_env_CXXCPP_value=$CXXCPP 939ac_env_F77_set=${F77+set} 940ac_env_F77_value=$F77 941ac_cv_env_F77_set=${F77+set} 942ac_cv_env_F77_value=$F77 943ac_env_FFLAGS_set=${FFLAGS+set} 944ac_env_FFLAGS_value=$FFLAGS 945ac_cv_env_FFLAGS_set=${FFLAGS+set} 946ac_cv_env_FFLAGS_value=$FFLAGS 947 948# 949# Report the --help message. 950# 951if test "$ac_init_help" = "long"; then 952 # Omit some internal or obsolete options to make the list less imposing. 953 # This message is too long to be a string in the A/UX 3.1 sh. 954 cat <<_ACEOF 955\`configure' configures normalize 0.7.7 to adapt to many kinds of systems. 956 957Usage: $0 [OPTION]... [VAR=VALUE]... 958 959To assign environment variables (e.g., CC, CFLAGS...), specify them as 960VAR=VALUE. See below for descriptions of some of the useful variables. 961 962Defaults for the options are specified in brackets. 963 964Configuration: 965 -h, --help display this help and exit 966 --help=short display options specific to this package 967 --help=recursive display the short help of all the included packages 968 -V, --version display version information and exit 969 -q, --quiet, --silent do not print \`checking...' messages 970 --cache-file=FILE cache test results in FILE [disabled] 971 -C, --config-cache alias for \`--cache-file=config.cache' 972 -n, --no-create do not create output files 973 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 974 975_ACEOF 976 977 cat <<_ACEOF 978Installation directories: 979 --prefix=PREFIX install architecture-independent files in PREFIX 980 [$ac_default_prefix] 981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 982 [PREFIX] 983 984By default, \`make install' will install all the files in 985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 986an installation prefix other than \`$ac_default_prefix' using \`--prefix', 987for instance \`--prefix=\$HOME'. 988 989For better control, use the options below. 990 991Fine tuning of the installation directories: 992 --bindir=DIR user executables [EPREFIX/bin] 993 --sbindir=DIR system admin executables [EPREFIX/sbin] 994 --libexecdir=DIR program executables [EPREFIX/libexec] 995 --datadir=DIR read-only architecture-independent data [PREFIX/share] 996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 998 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 999 --libdir=DIR object code libraries [EPREFIX/lib] 1000 --includedir=DIR C header files [PREFIX/include] 1001 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1002 --infodir=DIR info documentation [PREFIX/info] 1003 --mandir=DIR man documentation [PREFIX/man] 1004_ACEOF 1005 1006 cat <<\_ACEOF 1007 1008Program names: 1009 --program-prefix=PREFIX prepend PREFIX to installed program names 1010 --program-suffix=SUFFIX append SUFFIX to installed program names 1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1012 1013System types: 1014 --build=BUILD configure for building on BUILD [guessed] 1015 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1016_ACEOF 1017fi 1018 1019if test -n "$ac_init_help"; then 1020 case $ac_init_help in 1021 short | recursive ) echo "Configuration of normalize 0.7.7:";; 1022 esac 1023 cat <<\_ACEOF 1024 1025Optional Features: 1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1028 --disable-dependency-tracking speeds up one-time build 1029 --enable-dependency-tracking do not reject slow dependency extractors 1030 --disable-helper-search do not look for helper programs 1031 --disable-lookup-table do not use lookup tables (saves memory, but slow) 1032 --disable-glibtest Do not try to compile and run a test GLIB program 1033 --disable-gtktest Do not try to compile and run a test GTK program 1034 --enable-static[=PKGS] 1035 build static libraries [default=no] 1036 --enable-shared[=PKGS] 1037 build shared libraries [default=yes] 1038 --enable-fast-install[=PKGS] 1039 optimize for fast installation [default=yes] 1040 --disable-libtool-lock avoid locking (might break parallel builds) 1041 --enable-xmms build the volume adjust plugin for xmms (default 1042 yes) 1043 --disable-audiofiletest Do not try to compile and run a test Audio File Library program 1044 --enable-longer-name name the binary "normalize-audio" instead of 1045 "normalize" 1046 --disable-nls do not use Native Language Support 1047 --disable-rpath do not hardcode runtime library paths 1048 1049Optional Packages: 1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1052 --with-glib-prefix=PFX Prefix where GLIB is installed (optional) 1053 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) 1054 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1055 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 1056 --with-xmms-prefix=PFX Prefix where XMMS is installed (optional) 1057 --with-xmms-exec-prefix=PFX Exec prefix where XMMS is installed (optional) 1058 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1059 --with-pic try to use only PIC/non-PIC objects [default=use 1060 both] 1061 --with-tags[=TAGS] 1062 include additional configurations [automatic] 1063 --with-audiofile-prefix=PFX Prefix where Audio File Library is installed (optional) 1064 --with-audiofile-exec-prefix=PFX Exec prefix where Audio File Library is installed (optional) 1065 --with-audiofile use the audiofile library (default yes) 1066 --with-mad-prefix=PFX prefix where MAD library is installed 1067 --with-mad use the mad mpeg audio library (default yes) 1068 --with-gnu-ld assume the C compiler uses GNU ld default=no 1069 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1070 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1071 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1072 --without-libintl-prefix don't search for libintl in includedir and libdir 1073 1074Some influential environment variables: 1075 CC C compiler command 1076 CFLAGS C compiler flags 1077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1078 nonstandard directory <lib dir> 1079 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1080 headers in a nonstandard directory <include dir> 1081 CPP C preprocessor 1082 CXX C++ compiler command 1083 CXXFLAGS C++ compiler flags 1084 CXXCPP C++ preprocessor 1085 F77 Fortran 77 compiler command 1086 FFLAGS Fortran 77 compiler flags 1087 1088Use these variables to override the choices made by `configure' or to help 1089it to find libraries and programs with nonstandard names/locations. 1090 1091_ACEOF 1092fi 1093 1094if test "$ac_init_help" = "recursive"; then 1095 # If there are subdirs, report their specific --help. 1096 ac_popdir=`pwd` 1097 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1098 test -d $ac_dir || continue 1099 ac_builddir=. 1100 1101if test "$ac_dir" != .; then 1102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1103 # A "../" for each directory in $ac_dir_suffix. 1104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1105else 1106 ac_dir_suffix= ac_top_builddir= 1107fi 1108 1109case $srcdir in 1110 .) # No --srcdir option. We are building in place. 1111 ac_srcdir=. 1112 if test -z "$ac_top_builddir"; then 1113 ac_top_srcdir=. 1114 else 1115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1116 fi ;; 1117 [\\/]* | ?:[\\/]* ) # Absolute path. 1118 ac_srcdir=$srcdir$ac_dir_suffix; 1119 ac_top_srcdir=$srcdir ;; 1120 *) # Relative path. 1121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1122 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1123esac 1124 1125# Do not use `cd foo && pwd` to compute absolute paths, because 1126# the directories may not exist. 1127case `pwd` in 1128.) ac_abs_builddir="$ac_dir";; 1129*) 1130 case "$ac_dir" in 1131 .) ac_abs_builddir=`pwd`;; 1132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1133 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1134 esac;; 1135esac 1136case $ac_abs_builddir in 1137.) ac_abs_top_builddir=${ac_top_builddir}.;; 1138*) 1139 case ${ac_top_builddir}. in 1140 .) ac_abs_top_builddir=$ac_abs_builddir;; 1141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1143 esac;; 1144esac 1145case $ac_abs_builddir in 1146.) ac_abs_srcdir=$ac_srcdir;; 1147*) 1148 case $ac_srcdir in 1149 .) ac_abs_srcdir=$ac_abs_builddir;; 1150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1152 esac;; 1153esac 1154case $ac_abs_builddir in 1155.) ac_abs_top_srcdir=$ac_top_srcdir;; 1156*) 1157 case $ac_top_srcdir in 1158 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1161 esac;; 1162esac 1163 1164 cd $ac_dir 1165 # Check for guested configure; otherwise get Cygnus style configure. 1166 if test -f $ac_srcdir/configure.gnu; then 1167 echo 1168 $SHELL $ac_srcdir/configure.gnu --help=recursive 1169 elif test -f $ac_srcdir/configure; then 1170 echo 1171 $SHELL $ac_srcdir/configure --help=recursive 1172 elif test -f $ac_srcdir/configure.ac || 1173 test -f $ac_srcdir/configure.in; then 1174 echo 1175 $ac_configure --help 1176 else 1177 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1178 fi 1179 cd $ac_popdir 1180 done 1181fi 1182 1183test -n "$ac_init_help" && exit 0 1184if $ac_init_version; then 1185 cat <<\_ACEOF 1186normalize configure 0.7.7 1187generated by GNU Autoconf 2.59 1188 1189Copyright (C) 2003 Free Software Foundation, Inc. 1190This configure script is free software; the Free Software Foundation 1191gives unlimited permission to copy, distribute and modify it. 1192_ACEOF 1193 exit 0 1194fi 1195exec 5>config.log 1196cat >&5 <<_ACEOF 1197This file contains any messages produced by compilers while 1198running configure, to aid debugging if configure makes a mistake. 1199 1200It was created by normalize $as_me 0.7.7, which was 1201generated by GNU Autoconf 2.59. Invocation command line was 1202 1203 $ $0 $@ 1204 1205_ACEOF 1206{ 1207cat <<_ASUNAME 1208## --------- ## 1209## Platform. ## 1210## --------- ## 1211 1212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1213uname -m = `(uname -m) 2>/dev/null || echo unknown` 1214uname -r = `(uname -r) 2>/dev/null || echo unknown` 1215uname -s = `(uname -s) 2>/dev/null || echo unknown` 1216uname -v = `(uname -v) 2>/dev/null || echo unknown` 1217 1218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1219/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1220 1221/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1222/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1224hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1225/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1226/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1227/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1228 1229_ASUNAME 1230 1231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1232for as_dir in $PATH 1233do 1234 IFS=$as_save_IFS 1235 test -z "$as_dir" && as_dir=. 1236 echo "PATH: $as_dir" 1237done 1238 1239} >&5 1240 1241cat >&5 <<_ACEOF 1242 1243 1244## ----------- ## 1245## Core tests. ## 1246## ----------- ## 1247 1248_ACEOF 1249 1250 1251# Keep a trace of the command line. 1252# Strip out --no-create and --no-recursion so they do not pile up. 1253# Strip out --silent because we don't want to record it for future runs. 1254# Also quote any args containing shell meta-characters. 1255# Make two passes to allow for proper duplicate-argument suppression. 1256ac_configure_args= 1257ac_configure_args0= 1258ac_configure_args1= 1259ac_sep= 1260ac_must_keep_next=false 1261for ac_pass in 1 2 1262do 1263 for ac_arg 1264 do 1265 case $ac_arg in 1266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1268 | -silent | --silent | --silen | --sile | --sil) 1269 continue ;; 1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1272 esac 1273 case $ac_pass in 1274 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1275 2) 1276 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1277 if test $ac_must_keep_next = true; then 1278 ac_must_keep_next=false # Got value, back to normal. 1279 else 1280 case $ac_arg in 1281 *=* | --config-cache | -C | -disable-* | --disable-* \ 1282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1284 | -with-* | --with-* | -without-* | --without-* | --x) 1285 case "$ac_configure_args0 " in 1286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1287 esac 1288 ;; 1289 -* ) ac_must_keep_next=true ;; 1290 esac 1291 fi 1292 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1293 # Get rid of the leading space. 1294 ac_sep=" " 1295 ;; 1296 esac 1297 done 1298done 1299$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1300$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1301 1302# When interrupted or exit'd, cleanup temporary files, and complete 1303# config.log. We remove comments because anyway the quotes in there 1304# would cause problems or look ugly. 1305# WARNING: Be sure not to use single quotes in there, as some shells, 1306# such as our DU 5.0 friend, will then `close' the trap. 1307trap 'exit_status=$? 1308 # Save into config.log some information that might help in debugging. 1309 { 1310 echo 1311 1312 cat <<\_ASBOX 1313## ---------------- ## 1314## Cache variables. ## 1315## ---------------- ## 1316_ASBOX 1317 echo 1318 # The following way of writing the cache mishandles newlines in values, 1319{ 1320 (set) 2>&1 | 1321 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1322 *ac_space=\ *) 1323 sed -n \ 1324 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1326 ;; 1327 *) 1328 sed -n \ 1329 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1330 ;; 1331 esac; 1332} 1333 echo 1334 1335 cat <<\_ASBOX 1336## ----------------- ## 1337## Output variables. ## 1338## ----------------- ## 1339_ASBOX 1340 echo 1341 for ac_var in $ac_subst_vars 1342 do 1343 eval ac_val=$`echo $ac_var` 1344 echo "$ac_var='"'"'$ac_val'"'"'" 1345 done | sort 1346 echo 1347 1348 if test -n "$ac_subst_files"; then 1349 cat <<\_ASBOX 1350## ------------- ## 1351## Output files. ## 1352## ------------- ## 1353_ASBOX 1354 echo 1355 for ac_var in $ac_subst_files 1356 do 1357 eval ac_val=$`echo $ac_var` 1358 echo "$ac_var='"'"'$ac_val'"'"'" 1359 done | sort 1360 echo 1361 fi 1362 1363 if test -s confdefs.h; then 1364 cat <<\_ASBOX 1365## ----------- ## 1366## confdefs.h. ## 1367## ----------- ## 1368_ASBOX 1369 echo 1370 sed "/^$/d" confdefs.h | sort 1371 echo 1372 fi 1373 test "$ac_signal" != 0 && 1374 echo "$as_me: caught signal $ac_signal" 1375 echo "$as_me: exit $exit_status" 1376 } >&5 1377 rm -f core *.core && 1378 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1379 exit $exit_status 1380 ' 0 1381for ac_signal in 1 2 13 15; do 1382 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1383done 1384ac_signal=0 1385 1386# confdefs.h avoids OS command line length limits that DEFS can exceed. 1387rm -rf conftest* confdefs.h 1388# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1389echo >confdefs.h 1390 1391# Predefined preprocessor variables. 1392 1393cat >>confdefs.h <<_ACEOF 1394#define PACKAGE_NAME "$PACKAGE_NAME" 1395_ACEOF 1396 1397 1398cat >>confdefs.h <<_ACEOF 1399#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1400_ACEOF 1401 1402 1403cat >>confdefs.h <<_ACEOF 1404#define PACKAGE_VERSION "$PACKAGE_VERSION" 1405_ACEOF 1406 1407 1408cat >>confdefs.h <<_ACEOF 1409#define PACKAGE_STRING "$PACKAGE_STRING" 1410_ACEOF 1411 1412 1413cat >>confdefs.h <<_ACEOF 1414#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1415_ACEOF 1416 1417 1418# Let the site file select an alternate cache file if it wants to. 1419# Prefer explicitly selected file to automatically selected ones. 1420if test -z "$CONFIG_SITE"; then 1421 if test "x$prefix" != xNONE; then 1422 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1423 else 1424 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1425 fi 1426fi 1427for ac_site_file in $CONFIG_SITE; do 1428 if test -r "$ac_site_file"; then 1429 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1430echo "$as_me: loading site script $ac_site_file" >&6;} 1431 sed 's/^/| /' "$ac_site_file" >&5 1432 . "$ac_site_file" 1433 fi 1434done 1435 1436if test -r "$cache_file"; then 1437 # Some versions of bash will fail to source /dev/null (special 1438 # files actually), so we avoid doing that. 1439 if test -f "$cache_file"; then 1440 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1441echo "$as_me: loading cache $cache_file" >&6;} 1442 case $cache_file in 1443 [\\/]* | ?:[\\/]* ) . $cache_file;; 1444 *) . ./$cache_file;; 1445 esac 1446 fi 1447else 1448 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1449echo "$as_me: creating cache $cache_file" >&6;} 1450 >$cache_file 1451fi 1452 1453# Check that the precious variables saved in the cache have kept the same 1454# value. 1455ac_cache_corrupted=false 1456for ac_var in `(set) 2>&1 | 1457 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1458 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1459 eval ac_new_set=\$ac_env_${ac_var}_set 1460 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1461 eval ac_new_val="\$ac_env_${ac_var}_value" 1462 case $ac_old_set,$ac_new_set in 1463 set,) 1464 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1465echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1466 ac_cache_corrupted=: ;; 1467 ,set) 1468 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1469echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1470 ac_cache_corrupted=: ;; 1471 ,);; 1472 *) 1473 if test "x$ac_old_val" != "x$ac_new_val"; then 1474 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1475echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1476 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1477echo "$as_me: former value: $ac_old_val" >&2;} 1478 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1479echo "$as_me: current value: $ac_new_val" >&2;} 1480 ac_cache_corrupted=: 1481 fi;; 1482 esac 1483 # Pass precious variables to config.status. 1484 if test "$ac_new_set" = set; then 1485 case $ac_new_val in 1486 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1487 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1488 *) ac_arg=$ac_var=$ac_new_val ;; 1489 esac 1490 case " $ac_configure_args " in 1491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1492 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1493 esac 1494 fi 1495done 1496if $ac_cache_corrupted; then 1497 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1498echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1499 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1500echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1501 { (exit 1); exit 1; }; } 1502fi 1503 1504ac_ext=c 1505ac_cpp='$CPP $CPPFLAGS' 1506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1508ac_compiler_gnu=$ac_cv_c_compiler_gnu 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538ac_aux_dir= 1539for ac_dir in config $srcdir/config; do 1540 if test -f $ac_dir/install-sh; then 1541 ac_aux_dir=$ac_dir 1542 ac_install_sh="$ac_aux_dir/install-sh -c" 1543 break 1544 elif test -f $ac_dir/install.sh; then 1545 ac_aux_dir=$ac_dir 1546 ac_install_sh="$ac_aux_dir/install.sh -c" 1547 break 1548 elif test -f $ac_dir/shtool; then 1549 ac_aux_dir=$ac_dir 1550 ac_install_sh="$ac_aux_dir/shtool install -c" 1551 break 1552 fi 1553done 1554if test -z "$ac_aux_dir"; then 1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 1556echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} 1557 { (exit 1); exit 1; }; } 1558fi 1559ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1560ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1562 1563 ac_config_files="$ac_config_files config/Makefile" 1564 1565 1566am__api_version="1.9" 1567# Find a good install program. We prefer a C program (faster), 1568# so one script is as good as another. But avoid the broken or 1569# incompatible versions: 1570# SysV /etc/install, /usr/sbin/install 1571# SunOS /usr/etc/install 1572# IRIX /sbin/install 1573# AIX /bin/install 1574# AmigaOS /C/install, which installs bootblocks on floppy discs 1575# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1576# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1577# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1578# OS/2's system install, which has a completely different semantic 1579# ./install, which can be erroneously created by make from ./install.sh. 1580echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1581echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1582if test -z "$INSTALL"; then 1583if test "${ac_cv_path_install+set}" = set; then 1584 echo $ECHO_N "(cached) $ECHO_C" >&6 1585else 1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1587for as_dir in $PATH 1588do 1589 IFS=$as_save_IFS 1590 test -z "$as_dir" && as_dir=. 1591 # Account for people who put trailing slashes in PATH elements. 1592case $as_dir/ in 1593 ./ | .// | /cC/* | \ 1594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1595 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1596 /usr/ucb/* ) ;; 1597 *) 1598 # OSF1 and SCO ODT 3.0 have their own names for install. 1599 # Don't use installbsd from OSF since it installs stuff as root 1600 # by default. 1601 for ac_prog in ginstall scoinst install; do 1602 for ac_exec_ext in '' $ac_executable_extensions; do 1603 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1604 if test $ac_prog = install && 1605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1606 # AIX install. It has an incompatible calling convention. 1607 : 1608 elif test $ac_prog = install && 1609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1610 # program-specific install script used by HP pwplus--don't use. 1611 : 1612 else 1613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1614 break 3 1615 fi 1616 fi 1617 done 1618 done 1619 ;; 1620esac 1621done 1622 1623 1624fi 1625 if test "${ac_cv_path_install+set}" = set; then 1626 INSTALL=$ac_cv_path_install 1627 else 1628 # As a last resort, use the slow shell script. We don't cache a 1629 # path for INSTALL within a source directory, because that will 1630 # break other packages using the cache if that directory is 1631 # removed, or if the path is relative. 1632 INSTALL=$ac_install_sh 1633 fi 1634fi 1635echo "$as_me:$LINENO: result: $INSTALL" >&5 1636echo "${ECHO_T}$INSTALL" >&6 1637 1638# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1639# It thinks the first close brace ends the variable substitution. 1640test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1641 1642test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1643 1644test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1645 1646echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1647echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1648# Just in case 1649sleep 1 1650echo timestamp > conftest.file 1651# Do `set' in a subshell so we don't clobber the current shell's 1652# arguments. Must try -L first in case configure is actually a 1653# symlink; some systems play weird games with the mod time of symlinks 1654# (eg FreeBSD returns the mod time of the symlink's containing 1655# directory). 1656if ( 1657 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1658 if test "$*" = "X"; then 1659 # -L didn't work. 1660 set X `ls -t $srcdir/configure conftest.file` 1661 fi 1662 rm -f conftest.file 1663 if test "$*" != "X $srcdir/configure conftest.file" \ 1664 && test "$*" != "X conftest.file $srcdir/configure"; then 1665 1666 # If neither matched, then we have a broken ls. This can happen 1667 # if, for instance, CONFIG_SHELL is bash and it inherits a 1668 # broken ls alias from the environment. This has actually 1669 # happened. Such a system could not be considered "sane". 1670 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1671alias in your environment" >&5 1672echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1673alias in your environment" >&2;} 1674 { (exit 1); exit 1; }; } 1675 fi 1676 1677 test "$2" = conftest.file 1678 ) 1679then 1680 # Ok. 1681 : 1682else 1683 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1684Check your system clock" >&5 1685echo "$as_me: error: newly created file is older than distributed files! 1686Check your system clock" >&2;} 1687 { (exit 1); exit 1; }; } 1688fi 1689echo "$as_me:$LINENO: result: yes" >&5 1690echo "${ECHO_T}yes" >&6 1691test "$program_prefix" != NONE && 1692 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1693# Use a double $ so make ignores it. 1694test "$program_suffix" != NONE && 1695 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1696# Double any \ or $. echo might interpret backslashes. 1697# By default was `s,x,x', remove it if useless. 1698cat <<\_ACEOF >conftest.sed 1699s/[\\$]/&&/g;s/;s,x,x,$// 1700_ACEOF 1701program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1702rm conftest.sed 1703 1704# expand $ac_aux_dir to an absolute path 1705am_aux_dir=`cd $ac_aux_dir && pwd` 1706 1707test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1708# Use eval to expand $SHELL 1709if eval "$MISSING --run true"; then 1710 am_missing_run="$MISSING --run " 1711else 1712 am_missing_run= 1713 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1714echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1715fi 1716 1717if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1718 # We used to keeping the `.' as first argument, in order to 1719 # allow $(mkdir_p) to be used without argument. As in 1720 # $(mkdir_p) $(somedir) 1721 # where $(somedir) is conditionally defined. However this is wrong 1722 # for two reasons: 1723 # 1. if the package is installed by a user who cannot write `.' 1724 # make install will fail, 1725 # 2. the above comment should most certainly read 1726 # $(mkdir_p) $(DESTDIR)$(somedir) 1727 # so it does not work when $(somedir) is undefined and 1728 # $(DESTDIR) is not. 1729 # To support the latter case, we have to write 1730 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1731 # so the `.' trick is pointless. 1732 mkdir_p='mkdir -p --' 1733else 1734 # On NextStep and OpenStep, the `mkdir' command does not 1735 # recognize any option. It will interpret all options as 1736 # directories to create, and then abort because `.' already 1737 # exists. 1738 for d in ./-p ./--version; 1739 do 1740 test -d $d && rmdir $d 1741 done 1742 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1743 if test -f "$ac_aux_dir/mkinstalldirs"; then 1744 mkdir_p='$(mkinstalldirs)' 1745 else 1746 mkdir_p='$(install_sh) -d' 1747 fi 1748fi 1749 1750for ac_prog in gawk mawk nawk awk 1751do 1752 # Extract the first word of "$ac_prog", so it can be a program name with args. 1753set dummy $ac_prog; ac_word=$2 1754echo "$as_me:$LINENO: checking for $ac_word" >&5 1755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1756if test "${ac_cv_prog_AWK+set}" = set; then 1757 echo $ECHO_N "(cached) $ECHO_C" >&6 1758else 1759 if test -n "$AWK"; then 1760 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1761else 1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1763for as_dir in $PATH 1764do 1765 IFS=$as_save_IFS 1766 test -z "$as_dir" && as_dir=. 1767 for ac_exec_ext in '' $ac_executable_extensions; do 1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1769 ac_cv_prog_AWK="$ac_prog" 1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1771 break 2 1772 fi 1773done 1774done 1775 1776fi 1777fi 1778AWK=$ac_cv_prog_AWK 1779if test -n "$AWK"; then 1780 echo "$as_me:$LINENO: result: $AWK" >&5 1781echo "${ECHO_T}$AWK" >&6 1782else 1783 echo "$as_me:$LINENO: result: no" >&5 1784echo "${ECHO_T}no" >&6 1785fi 1786 1787 test -n "$AWK" && break 1788done 1789 1790echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1791echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1792set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1793if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1794 echo $ECHO_N "(cached) $ECHO_C" >&6 1795else 1796 cat >conftest.make <<\_ACEOF 1797all: 1798 @echo 'ac_maketemp="$(MAKE)"' 1799_ACEOF 1800# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1801eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1802if test -n "$ac_maketemp"; then 1803 eval ac_cv_prog_make_${ac_make}_set=yes 1804else 1805 eval ac_cv_prog_make_${ac_make}_set=no 1806fi 1807rm -f conftest.make 1808fi 1809if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1810 echo "$as_me:$LINENO: result: yes" >&5 1811echo "${ECHO_T}yes" >&6 1812 SET_MAKE= 1813else 1814 echo "$as_me:$LINENO: result: no" >&5 1815echo "${ECHO_T}no" >&6 1816 SET_MAKE="MAKE=${MAKE-make}" 1817fi 1818 1819rm -rf .tst 2>/dev/null 1820mkdir .tst 2>/dev/null 1821if test -d .tst; then 1822 am__leading_dot=. 1823else 1824 am__leading_dot=_ 1825fi 1826rmdir .tst 2>/dev/null 1827 1828# test to see if srcdir already configured 1829if test "`cd $srcdir && pwd`" != "`pwd`" && 1830 test -f $srcdir/config.status; then 1831 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1832echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1833 { (exit 1); exit 1; }; } 1834fi 1835 1836# test whether we have cygpath 1837if test -z "$CYGPATH_W"; then 1838 if (cygpath --version) >/dev/null 2>/dev/null; then 1839 CYGPATH_W='cygpath -w' 1840 else 1841 CYGPATH_W=echo 1842 fi 1843fi 1844 1845 1846# Define the identity of the package. 1847 PACKAGE='normalize' 1848 VERSION='0.7.7' 1849 1850 1851cat >>confdefs.h <<_ACEOF 1852#define PACKAGE "$PACKAGE" 1853_ACEOF 1854 1855 1856cat >>confdefs.h <<_ACEOF 1857#define VERSION "$VERSION" 1858_ACEOF 1859 1860# Some tools Automake needs. 1861 1862ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1863 1864 1865AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1866 1867 1868AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1869 1870 1871AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1872 1873 1874MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1875 1876install_sh=${install_sh-"$am_aux_dir/install-sh"} 1877 1878# Installed binaries are usually stripped using `strip' when the user 1879# run `make install-strip'. However `strip' might not be the right 1880# tool to use in cross-compilation environments, therefore Automake 1881# will honor the `STRIP' environment variable to overrule this program. 1882if test "$cross_compiling" != no; then 1883 if test -n "$ac_tool_prefix"; then 1884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1885set dummy ${ac_tool_prefix}strip; ac_word=$2 1886echo "$as_me:$LINENO: checking for $ac_word" >&5 1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1888if test "${ac_cv_prog_STRIP+set}" = set; then 1889 echo $ECHO_N "(cached) $ECHO_C" >&6 1890else 1891 if test -n "$STRIP"; then 1892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1893else 1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1895for as_dir in $PATH 1896do 1897 IFS=$as_save_IFS 1898 test -z "$as_dir" && as_dir=. 1899 for ac_exec_ext in '' $ac_executable_extensions; do 1900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1901 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1903 break 2 1904 fi 1905done 1906done 1907 1908fi 1909fi 1910STRIP=$ac_cv_prog_STRIP 1911if test -n "$STRIP"; then 1912 echo "$as_me:$LINENO: result: $STRIP" >&5 1913echo "${ECHO_T}$STRIP" >&6 1914else 1915 echo "$as_me:$LINENO: result: no" >&5 1916echo "${ECHO_T}no" >&6 1917fi 1918 1919fi 1920if test -z "$ac_cv_prog_STRIP"; then 1921 ac_ct_STRIP=$STRIP 1922 # Extract the first word of "strip", so it can be a program name with args. 1923set dummy strip; ac_word=$2 1924echo "$as_me:$LINENO: checking for $ac_word" >&5 1925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1926if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1927 echo $ECHO_N "(cached) $ECHO_C" >&6 1928else 1929 if test -n "$ac_ct_STRIP"; then 1930 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1931else 1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1933for as_dir in $PATH 1934do 1935 IFS=$as_save_IFS 1936 test -z "$as_dir" && as_dir=. 1937 for ac_exec_ext in '' $ac_executable_extensions; do 1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1939 ac_cv_prog_ac_ct_STRIP="strip" 1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1941 break 2 1942 fi 1943done 1944done 1945 1946 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1947fi 1948fi 1949ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1950if test -n "$ac_ct_STRIP"; then 1951 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1952echo "${ECHO_T}$ac_ct_STRIP" >&6 1953else 1954 echo "$as_me:$LINENO: result: no" >&5 1955echo "${ECHO_T}no" >&6 1956fi 1957 1958 STRIP=$ac_ct_STRIP 1959else 1960 STRIP="$ac_cv_prog_STRIP" 1961fi 1962 1963fi 1964INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1965 1966# We need awk for the "check" target. The system "awk" is bad on 1967# some platforms. 1968# Always define AMTAR for backward compatibility. 1969 1970AMTAR=${AMTAR-"${am_missing_run}tar"} 1971 1972am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1973 1974 1975 1976 1977 1978 ac_config_headers="$ac_config_headers config.h" 1979 1980 1981# Make sure we can run config.sub. 1982$ac_config_sub sun4 >/dev/null 2>&1 || 1983 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1984echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1985 { (exit 1); exit 1; }; } 1986 1987echo "$as_me:$LINENO: checking build system type" >&5 1988echo $ECHO_N "checking build system type... $ECHO_C" >&6 1989if test "${ac_cv_build+set}" = set; then 1990 echo $ECHO_N "(cached) $ECHO_C" >&6 1991else 1992 ac_cv_build_alias=$build_alias 1993test -z "$ac_cv_build_alias" && 1994 ac_cv_build_alias=`$ac_config_guess` 1995test -z "$ac_cv_build_alias" && 1996 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1997echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1998 { (exit 1); exit 1; }; } 1999ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2000 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2001echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2002 { (exit 1); exit 1; }; } 2003 2004fi 2005echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2006echo "${ECHO_T}$ac_cv_build" >&6 2007build=$ac_cv_build 2008build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2009build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2010build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2011 2012 2013echo "$as_me:$LINENO: checking host system type" >&5 2014echo $ECHO_N "checking host system type... $ECHO_C" >&6 2015if test "${ac_cv_host+set}" = set; then 2016 echo $ECHO_N "(cached) $ECHO_C" >&6 2017else 2018 ac_cv_host_alias=$host_alias 2019test -z "$ac_cv_host_alias" && 2020 ac_cv_host_alias=$ac_cv_build_alias 2021ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2022 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2023echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2024 { (exit 1); exit 1; }; } 2025 2026fi 2027echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2028echo "${ECHO_T}$ac_cv_host" >&6 2029host=$ac_cv_host 2030host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2031host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2032host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2033 2034 2035ac_ext=c 2036ac_cpp='$CPP $CPPFLAGS' 2037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2039ac_compiler_gnu=$ac_cv_c_compiler_gnu 2040if test -n "$ac_tool_prefix"; then 2041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2042set dummy ${ac_tool_prefix}gcc; ac_word=$2 2043echo "$as_me:$LINENO: checking for $ac_word" >&5 2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2045if test "${ac_cv_prog_CC+set}" = set; then 2046 echo $ECHO_N "(cached) $ECHO_C" >&6 2047else 2048 if test -n "$CC"; then 2049 ac_cv_prog_CC="$CC" # Let the user override the test. 2050else 2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2052for as_dir in $PATH 2053do 2054 IFS=$as_save_IFS 2055 test -z "$as_dir" && as_dir=. 2056 for ac_exec_ext in '' $ac_executable_extensions; do 2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2058 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2060 break 2 2061 fi 2062done 2063done 2064 2065fi 2066fi 2067CC=$ac_cv_prog_CC 2068if test -n "$CC"; then 2069 echo "$as_me:$LINENO: result: $CC" >&5 2070echo "${ECHO_T}$CC" >&6 2071else 2072 echo "$as_me:$LINENO: result: no" >&5 2073echo "${ECHO_T}no" >&6 2074fi 2075 2076fi 2077if test -z "$ac_cv_prog_CC"; then 2078 ac_ct_CC=$CC 2079 # Extract the first word of "gcc", so it can be a program name with args. 2080set dummy gcc; ac_word=$2 2081echo "$as_me:$LINENO: checking for $ac_word" >&5 2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2084 echo $ECHO_N "(cached) $ECHO_C" >&6 2085else 2086 if test -n "$ac_ct_CC"; then 2087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2088else 2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2090for as_dir in $PATH 2091do 2092 IFS=$as_save_IFS 2093 test -z "$as_dir" && as_dir=. 2094 for ac_exec_ext in '' $ac_executable_extensions; do 2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2096 ac_cv_prog_ac_ct_CC="gcc" 2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2098 break 2 2099 fi 2100done 2101done 2102 2103fi 2104fi 2105ac_ct_CC=$ac_cv_prog_ac_ct_CC 2106if test -n "$ac_ct_CC"; then 2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2108echo "${ECHO_T}$ac_ct_CC" >&6 2109else 2110 echo "$as_me:$LINENO: result: no" >&5 2111echo "${ECHO_T}no" >&6 2112fi 2113 2114 CC=$ac_ct_CC 2115else 2116 CC="$ac_cv_prog_CC" 2117fi 2118 2119if test -z "$CC"; then 2120 if test -n "$ac_tool_prefix"; then 2121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2122set dummy ${ac_tool_prefix}cc; ac_word=$2 2123echo "$as_me:$LINENO: checking for $ac_word" >&5 2124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2125if test "${ac_cv_prog_CC+set}" = set; then 2126 echo $ECHO_N "(cached) $ECHO_C" >&6 2127else 2128 if test -n "$CC"; then 2129 ac_cv_prog_CC="$CC" # Let the user override the test. 2130else 2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2132for as_dir in $PATH 2133do 2134 IFS=$as_save_IFS 2135 test -z "$as_dir" && as_dir=. 2136 for ac_exec_ext in '' $ac_executable_extensions; do 2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2138 ac_cv_prog_CC="${ac_tool_prefix}cc" 2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2140 break 2 2141 fi 2142done 2143done 2144 2145fi 2146fi 2147CC=$ac_cv_prog_CC 2148if test -n "$CC"; then 2149 echo "$as_me:$LINENO: result: $CC" >&5 2150echo "${ECHO_T}$CC" >&6 2151else 2152 echo "$as_me:$LINENO: result: no" >&5 2153echo "${ECHO_T}no" >&6 2154fi 2155 2156fi 2157if test -z "$ac_cv_prog_CC"; then 2158 ac_ct_CC=$CC 2159 # Extract the first word of "cc", so it can be a program name with args. 2160set dummy cc; ac_word=$2 2161echo "$as_me:$LINENO: checking for $ac_word" >&5 2162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2163if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2164 echo $ECHO_N "(cached) $ECHO_C" >&6 2165else 2166 if test -n "$ac_ct_CC"; then 2167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2168else 2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2170for as_dir in $PATH 2171do 2172 IFS=$as_save_IFS 2173 test -z "$as_dir" && as_dir=. 2174 for ac_exec_ext in '' $ac_executable_extensions; do 2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2176 ac_cv_prog_ac_ct_CC="cc" 2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2178 break 2 2179 fi 2180done 2181done 2182 2183fi 2184fi 2185ac_ct_CC=$ac_cv_prog_ac_ct_CC 2186if test -n "$ac_ct_CC"; then 2187 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2188echo "${ECHO_T}$ac_ct_CC" >&6 2189else 2190 echo "$as_me:$LINENO: result: no" >&5 2191echo "${ECHO_T}no" >&6 2192fi 2193 2194 CC=$ac_ct_CC 2195else 2196 CC="$ac_cv_prog_CC" 2197fi 2198 2199fi 2200if test -z "$CC"; then 2201 # Extract the first word of "cc", so it can be a program name with args. 2202set dummy cc; ac_word=$2 2203echo "$as_me:$LINENO: checking for $ac_word" >&5 2204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2205if test "${ac_cv_prog_CC+set}" = set; then 2206 echo $ECHO_N "(cached) $ECHO_C" >&6 2207else 2208 if test -n "$CC"; then 2209 ac_cv_prog_CC="$CC" # Let the user override the test. 2210else 2211 ac_prog_rejected=no 2212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2213for as_dir in $PATH 2214do 2215 IFS=$as_save_IFS 2216 test -z "$as_dir" && as_dir=. 2217 for ac_exec_ext in '' $ac_executable_extensions; do 2218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2220 ac_prog_rejected=yes 2221 continue 2222 fi 2223 ac_cv_prog_CC="cc" 2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2225 break 2 2226 fi 2227done 2228done 2229 2230if test $ac_prog_rejected = yes; then 2231 # We found a bogon in the path, so make sure we never use it. 2232 set dummy $ac_cv_prog_CC 2233 shift 2234 if test $# != 0; then 2235 # We chose a different compiler from the bogus one. 2236 # However, it has the same basename, so the bogon will be chosen 2237 # first if we set CC to just the basename; use the full file name. 2238 shift 2239 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2240 fi 2241fi 2242fi 2243fi 2244CC=$ac_cv_prog_CC 2245if test -n "$CC"; then 2246 echo "$as_me:$LINENO: result: $CC" >&5 2247echo "${ECHO_T}$CC" >&6 2248else 2249 echo "$as_me:$LINENO: result: no" >&5 2250echo "${ECHO_T}no" >&6 2251fi 2252 2253fi 2254if test -z "$CC"; then 2255 if test -n "$ac_tool_prefix"; then 2256 for ac_prog in cl 2257 do 2258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2259set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2260echo "$as_me:$LINENO: checking for $ac_word" >&5 2261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2262if test "${ac_cv_prog_CC+set}" = set; then 2263 echo $ECHO_N "(cached) $ECHO_C" >&6 2264else 2265 if test -n "$CC"; then 2266 ac_cv_prog_CC="$CC" # Let the user override the test. 2267else 2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2269for as_dir in $PATH 2270do 2271 IFS=$as_save_IFS 2272 test -z "$as_dir" && as_dir=. 2273 for ac_exec_ext in '' $ac_executable_extensions; do 2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2277 break 2 2278 fi 2279done 2280done 2281 2282fi 2283fi 2284CC=$ac_cv_prog_CC 2285if test -n "$CC"; then 2286 echo "$as_me:$LINENO: result: $CC" >&5 2287echo "${ECHO_T}$CC" >&6 2288else 2289 echo "$as_me:$LINENO: result: no" >&5 2290echo "${ECHO_T}no" >&6 2291fi 2292 2293 test -n "$CC" && break 2294 done 2295fi 2296if test -z "$CC"; then 2297 ac_ct_CC=$CC 2298 for ac_prog in cl 2299do 2300 # Extract the first word of "$ac_prog", so it can be a program name with args. 2301set dummy $ac_prog; ac_word=$2 2302echo "$as_me:$LINENO: checking for $ac_word" >&5 2303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2304if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2305 echo $ECHO_N "(cached) $ECHO_C" >&6 2306else 2307 if test -n "$ac_ct_CC"; then 2308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2309else 2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2311for as_dir in $PATH 2312do 2313 IFS=$as_save_IFS 2314 test -z "$as_dir" && as_dir=. 2315 for ac_exec_ext in '' $ac_executable_extensions; do 2316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2317 ac_cv_prog_ac_ct_CC="$ac_prog" 2318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2319 break 2 2320 fi 2321done 2322done 2323 2324fi 2325fi 2326ac_ct_CC=$ac_cv_prog_ac_ct_CC 2327if test -n "$ac_ct_CC"; then 2328 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2329echo "${ECHO_T}$ac_ct_CC" >&6 2330else 2331 echo "$as_me:$LINENO: result: no" >&5 2332echo "${ECHO_T}no" >&6 2333fi 2334 2335 test -n "$ac_ct_CC" && break 2336done 2337 2338 CC=$ac_ct_CC 2339fi 2340 2341fi 2342 2343 2344test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2345See \`config.log' for more details." >&5 2346echo "$as_me: error: no acceptable C compiler found in \$PATH 2347See \`config.log' for more details." >&2;} 2348 { (exit 1); exit 1; }; } 2349 2350# Provide some information about the compiler. 2351echo "$as_me:$LINENO:" \ 2352 "checking for C compiler version" >&5 2353ac_compiler=`set X $ac_compile; echo $2` 2354{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2355 (eval $ac_compiler --version </dev/null >&5) 2>&5 2356 ac_status=$? 2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2358 (exit $ac_status); } 2359{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2360 (eval $ac_compiler -v </dev/null >&5) 2>&5 2361 ac_status=$? 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363 (exit $ac_status); } 2364{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2365 (eval $ac_compiler -V </dev/null >&5) 2>&5 2366 ac_status=$? 2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2368 (exit $ac_status); } 2369 2370cat >conftest.$ac_ext <<_ACEOF 2371/* confdefs.h. */ 2372_ACEOF 2373cat confdefs.h >>conftest.$ac_ext 2374cat >>conftest.$ac_ext <<_ACEOF 2375/* end confdefs.h. */ 2376 2377int 2378main () 2379{ 2380 2381 ; 2382 return 0; 2383} 2384_ACEOF 2385ac_clean_files_save=$ac_clean_files 2386ac_clean_files="$ac_clean_files a.out a.exe b.out" 2387# Try to create an executable without -o first, disregard a.out. 2388# It will help us diagnose broken compilers, and finding out an intuition 2389# of exeext. 2390echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2391echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2392ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2393if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2394 (eval $ac_link_default) 2>&5 2395 ac_status=$? 2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2397 (exit $ac_status); }; then 2398 # Find the output, starting from the most likely. This scheme is 2399# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2400# resort. 2401 2402# Be careful to initialize this variable, since it used to be cached. 2403# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2404ac_cv_exeext= 2405# b.out is created by i960 compilers. 2406for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2407do 2408 test -f "$ac_file" || continue 2409 case $ac_file in 2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2411 ;; 2412 conftest.$ac_ext ) 2413 # This is the source file. 2414 ;; 2415 [ab].out ) 2416 # We found the default executable, but exeext='' is most 2417 # certainly right. 2418 break;; 2419 *.* ) 2420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2421 # FIXME: I believe we export ac_cv_exeext for Libtool, 2422 # but it would be cool to find out if it's true. Does anybody 2423 # maintain Libtool? --akim. 2424 export ac_cv_exeext 2425 break;; 2426 * ) 2427 break;; 2428 esac 2429done 2430else 2431 echo "$as_me: failed program was:" >&5 2432sed 's/^/| /' conftest.$ac_ext >&5 2433 2434{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2435See \`config.log' for more details." >&5 2436echo "$as_me: error: C compiler cannot create executables 2437See \`config.log' for more details." >&2;} 2438 { (exit 77); exit 77; }; } 2439fi 2440 2441ac_exeext=$ac_cv_exeext 2442echo "$as_me:$LINENO: result: $ac_file" >&5 2443echo "${ECHO_T}$ac_file" >&6 2444 2445# Check the compiler produces executables we can run. If not, either 2446# the compiler is broken, or we cross compile. 2447echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2448echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2449# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2450# If not cross compiling, check that we can run a simple program. 2451if test "$cross_compiling" != yes; then 2452 if { ac_try='./$ac_file' 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2454 (eval $ac_try) 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); }; }; then 2458 cross_compiling=no 2459 else 2460 if test "$cross_compiling" = maybe; then 2461 cross_compiling=yes 2462 else 2463 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2464If you meant to cross compile, use \`--host'. 2465See \`config.log' for more details." >&5 2466echo "$as_me: error: cannot run C compiled programs. 2467If you meant to cross compile, use \`--host'. 2468See \`config.log' for more details." >&2;} 2469 { (exit 1); exit 1; }; } 2470 fi 2471 fi 2472fi 2473echo "$as_me:$LINENO: result: yes" >&5 2474echo "${ECHO_T}yes" >&6 2475 2476rm -f a.out a.exe conftest$ac_cv_exeext b.out 2477ac_clean_files=$ac_clean_files_save 2478# Check the compiler produces executables we can run. If not, either 2479# the compiler is broken, or we cross compile. 2480echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2481echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2482echo "$as_me:$LINENO: result: $cross_compiling" >&5 2483echo "${ECHO_T}$cross_compiling" >&6 2484 2485echo "$as_me:$LINENO: checking for suffix of executables" >&5 2486echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2488 (eval $ac_link) 2>&5 2489 ac_status=$? 2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2491 (exit $ac_status); }; then 2492 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2493# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2494# work properly (i.e., refer to `conftest.exe'), while it won't with 2495# `rm'. 2496for ac_file in conftest.exe conftest conftest.*; do 2497 test -f "$ac_file" || continue 2498 case $ac_file in 2499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2500 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2501 export ac_cv_exeext 2502 break;; 2503 * ) break;; 2504 esac 2505done 2506else 2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2508See \`config.log' for more details." >&5 2509echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2510See \`config.log' for more details." >&2;} 2511 { (exit 1); exit 1; }; } 2512fi 2513 2514rm -f conftest$ac_cv_exeext 2515echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2516echo "${ECHO_T}$ac_cv_exeext" >&6 2517 2518rm -f conftest.$ac_ext 2519EXEEXT=$ac_cv_exeext 2520ac_exeext=$EXEEXT 2521echo "$as_me:$LINENO: checking for suffix of object files" >&5 2522echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2523if test "${ac_cv_objext+set}" = set; then 2524 echo $ECHO_N "(cached) $ECHO_C" >&6 2525else 2526 cat >conftest.$ac_ext <<_ACEOF 2527/* confdefs.h. */ 2528_ACEOF 2529cat confdefs.h >>conftest.$ac_ext 2530cat >>conftest.$ac_ext <<_ACEOF 2531/* end confdefs.h. */ 2532 2533int 2534main () 2535{ 2536 2537 ; 2538 return 0; 2539} 2540_ACEOF 2541rm -f conftest.o conftest.obj 2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2543 (eval $ac_compile) 2>&5 2544 ac_status=$? 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); }; then 2547 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2548 case $ac_file in 2549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2550 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2551 break;; 2552 esac 2553done 2554else 2555 echo "$as_me: failed program was:" >&5 2556sed 's/^/| /' conftest.$ac_ext >&5 2557 2558{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2559See \`config.log' for more details." >&5 2560echo "$as_me: error: cannot compute suffix of object files: cannot compile 2561See \`config.log' for more details." >&2;} 2562 { (exit 1); exit 1; }; } 2563fi 2564 2565rm -f conftest.$ac_cv_objext conftest.$ac_ext 2566fi 2567echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2568echo "${ECHO_T}$ac_cv_objext" >&6 2569OBJEXT=$ac_cv_objext 2570ac_objext=$OBJEXT 2571echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2572echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2573if test "${ac_cv_c_compiler_gnu+set}" = set; then 2574 echo $ECHO_N "(cached) $ECHO_C" >&6 2575else 2576 cat >conftest.$ac_ext <<_ACEOF 2577/* confdefs.h. */ 2578_ACEOF 2579cat confdefs.h >>conftest.$ac_ext 2580cat >>conftest.$ac_ext <<_ACEOF 2581/* end confdefs.h. */ 2582 2583int 2584main () 2585{ 2586#ifndef __GNUC__ 2587 choke me 2588#endif 2589 2590 ; 2591 return 0; 2592} 2593_ACEOF 2594rm -f conftest.$ac_objext 2595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2596 (eval $ac_compile) 2>conftest.er1 2597 ac_status=$? 2598 grep -v '^ *+' conftest.er1 >conftest.err 2599 rm -f conftest.er1 2600 cat conftest.err >&5 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); } && 2603 { ac_try='test -z "$ac_c_werror_flag" 2604 || test ! -s conftest.err' 2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2606 (eval $ac_try) 2>&5 2607 ac_status=$? 2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2609 (exit $ac_status); }; } && 2610 { ac_try='test -s conftest.$ac_objext' 2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2612 (eval $ac_try) 2>&5 2613 ac_status=$? 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2615 (exit $ac_status); }; }; then 2616 ac_compiler_gnu=yes 2617else 2618 echo "$as_me: failed program was:" >&5 2619sed 's/^/| /' conftest.$ac_ext >&5 2620 2621ac_compiler_gnu=no 2622fi 2623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2624ac_cv_c_compiler_gnu=$ac_compiler_gnu 2625 2626fi 2627echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2628echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2629GCC=`test $ac_compiler_gnu = yes && echo yes` 2630ac_test_CFLAGS=${CFLAGS+set} 2631ac_save_CFLAGS=$CFLAGS 2632CFLAGS="-g" 2633echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2634echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2635if test "${ac_cv_prog_cc_g+set}" = set; then 2636 echo $ECHO_N "(cached) $ECHO_C" >&6 2637else 2638 cat >conftest.$ac_ext <<_ACEOF 2639/* confdefs.h. */ 2640_ACEOF 2641cat confdefs.h >>conftest.$ac_ext 2642cat >>conftest.$ac_ext <<_ACEOF 2643/* end confdefs.h. */ 2644 2645int 2646main () 2647{ 2648 2649 ; 2650 return 0; 2651} 2652_ACEOF 2653rm -f conftest.$ac_objext 2654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2655 (eval $ac_compile) 2>conftest.er1 2656 ac_status=$? 2657 grep -v '^ *+' conftest.er1 >conftest.err 2658 rm -f conftest.er1 2659 cat conftest.err >&5 2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2661 (exit $ac_status); } && 2662 { ac_try='test -z "$ac_c_werror_flag" 2663 || test ! -s conftest.err' 2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2665 (eval $ac_try) 2>&5 2666 ac_status=$? 2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2668 (exit $ac_status); }; } && 2669 { ac_try='test -s conftest.$ac_objext' 2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2671 (eval $ac_try) 2>&5 2672 ac_status=$? 2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2674 (exit $ac_status); }; }; then 2675 ac_cv_prog_cc_g=yes 2676else 2677 echo "$as_me: failed program was:" >&5 2678sed 's/^/| /' conftest.$ac_ext >&5 2679 2680ac_cv_prog_cc_g=no 2681fi 2682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2683fi 2684echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2685echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2686if test "$ac_test_CFLAGS" = set; then 2687 CFLAGS=$ac_save_CFLAGS 2688elif test $ac_cv_prog_cc_g = yes; then 2689 if test "$GCC" = yes; then 2690 CFLAGS="-g -O2" 2691 else 2692 CFLAGS="-g" 2693 fi 2694else 2695 if test "$GCC" = yes; then 2696 CFLAGS="-O2" 2697 else 2698 CFLAGS= 2699 fi 2700fi 2701echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2702echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2703if test "${ac_cv_prog_cc_stdc+set}" = set; then 2704 echo $ECHO_N "(cached) $ECHO_C" >&6 2705else 2706 ac_cv_prog_cc_stdc=no 2707ac_save_CC=$CC 2708cat >conftest.$ac_ext <<_ACEOF 2709/* confdefs.h. */ 2710_ACEOF 2711cat confdefs.h >>conftest.$ac_ext 2712cat >>conftest.$ac_ext <<_ACEOF 2713/* end confdefs.h. */ 2714#include <stdarg.h> 2715#include <stdio.h> 2716#include <sys/types.h> 2717#include <sys/stat.h> 2718/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2719struct buf { int x; }; 2720FILE * (*rcsopen) (struct buf *, struct stat *, int); 2721static char *e (p, i) 2722 char **p; 2723 int i; 2724{ 2725 return p[i]; 2726} 2727static char *f (char * (*g) (char **, int), char **p, ...) 2728{ 2729 char *s; 2730 va_list v; 2731 va_start (v,p); 2732 s = g (p, va_arg (v,int)); 2733 va_end (v); 2734 return s; 2735} 2736 2737/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2738 function prototypes and stuff, but not '\xHH' hex character constants. 2739 These don't provoke an error unfortunately, instead are silently treated 2740 as 'x'. The following induces an error, until -std1 is added to get 2741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2742 array size at least. It's necessary to write '\x00'==0 to get something 2743 that's true only with -std1. */ 2744int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2745 2746int test (int i, double x); 2747struct s1 {int (*f) (int a);}; 2748struct s2 {int (*f) (double a);}; 2749int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2750int argc; 2751char **argv; 2752int 2753main () 2754{ 2755return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2756 ; 2757 return 0; 2758} 2759_ACEOF 2760# Don't try gcc -ansi; that turns off useful extensions and 2761# breaks some systems' header files. 2762# AIX -qlanglvl=ansi 2763# Ultrix and OSF/1 -std1 2764# HP-UX 10.20 and later -Ae 2765# HP-UX older versions -Aa -D_HPUX_SOURCE 2766# SVR4 -Xc -D__EXTENSIONS__ 2767for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2768do 2769 CC="$ac_save_CC $ac_arg" 2770 rm -f conftest.$ac_objext 2771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2772 (eval $ac_compile) 2>conftest.er1 2773 ac_status=$? 2774 grep -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); } && 2779 { ac_try='test -z "$ac_c_werror_flag" 2780 || test ! -s conftest.err' 2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2782 (eval $ac_try) 2>&5 2783 ac_status=$? 2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2785 (exit $ac_status); }; } && 2786 { ac_try='test -s conftest.$ac_objext' 2787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2788 (eval $ac_try) 2>&5 2789 ac_status=$? 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2791 (exit $ac_status); }; }; then 2792 ac_cv_prog_cc_stdc=$ac_arg 2793break 2794else 2795 echo "$as_me: failed program was:" >&5 2796sed 's/^/| /' conftest.$ac_ext >&5 2797 2798fi 2799rm -f conftest.err conftest.$ac_objext 2800done 2801rm -f conftest.$ac_ext conftest.$ac_objext 2802CC=$ac_save_CC 2803 2804fi 2805 2806case "x$ac_cv_prog_cc_stdc" in 2807 x|xno) 2808 echo "$as_me:$LINENO: result: none needed" >&5 2809echo "${ECHO_T}none needed" >&6 ;; 2810 *) 2811 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2812echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2813 CC="$CC $ac_cv_prog_cc_stdc" ;; 2814esac 2815 2816# Some people use a C++ compiler to compile C. Since we use `exit', 2817# in C++ we need to declare it. In case someone uses the same compiler 2818# for both compiling C and C++ we need to have the C++ compiler decide 2819# the declaration of exit, since it's the most demanding environment. 2820cat >conftest.$ac_ext <<_ACEOF 2821#ifndef __cplusplus 2822 choke me 2823#endif 2824_ACEOF 2825rm -f conftest.$ac_objext 2826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2827 (eval $ac_compile) 2>conftest.er1 2828 ac_status=$? 2829 grep -v '^ *+' conftest.er1 >conftest.err 2830 rm -f conftest.er1 2831 cat conftest.err >&5 2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 (exit $ac_status); } && 2834 { ac_try='test -z "$ac_c_werror_flag" 2835 || test ! -s conftest.err' 2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2837 (eval $ac_try) 2>&5 2838 ac_status=$? 2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2840 (exit $ac_status); }; } && 2841 { ac_try='test -s conftest.$ac_objext' 2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2843 (eval $ac_try) 2>&5 2844 ac_status=$? 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2846 (exit $ac_status); }; }; then 2847 for ac_declaration in \ 2848 '' \ 2849 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2850 'extern "C" void std::exit (int); using std::exit;' \ 2851 'extern "C" void exit (int) throw ();' \ 2852 'extern "C" void exit (int);' \ 2853 'void exit (int);' 2854do 2855 cat >conftest.$ac_ext <<_ACEOF 2856/* confdefs.h. */ 2857_ACEOF 2858cat confdefs.h >>conftest.$ac_ext 2859cat >>conftest.$ac_ext <<_ACEOF 2860/* end confdefs.h. */ 2861$ac_declaration 2862#include <stdlib.h> 2863int 2864main () 2865{ 2866exit (42); 2867 ; 2868 return 0; 2869} 2870_ACEOF 2871rm -f conftest.$ac_objext 2872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2873 (eval $ac_compile) 2>conftest.er1 2874 ac_status=$? 2875 grep -v '^ *+' conftest.er1 >conftest.err 2876 rm -f conftest.er1 2877 cat conftest.err >&5 2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2879 (exit $ac_status); } && 2880 { ac_try='test -z "$ac_c_werror_flag" 2881 || test ! -s conftest.err' 2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2883 (eval $ac_try) 2>&5 2884 ac_status=$? 2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2886 (exit $ac_status); }; } && 2887 { ac_try='test -s conftest.$ac_objext' 2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2889 (eval $ac_try) 2>&5 2890 ac_status=$? 2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2892 (exit $ac_status); }; }; then 2893 : 2894else 2895 echo "$as_me: failed program was:" >&5 2896sed 's/^/| /' conftest.$ac_ext >&5 2897 2898continue 2899fi 2900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2901 cat >conftest.$ac_ext <<_ACEOF 2902/* confdefs.h. */ 2903_ACEOF 2904cat confdefs.h >>conftest.$ac_ext 2905cat >>conftest.$ac_ext <<_ACEOF 2906/* end confdefs.h. */ 2907$ac_declaration 2908int 2909main () 2910{ 2911exit (42); 2912 ; 2913 return 0; 2914} 2915_ACEOF 2916rm -f conftest.$ac_objext 2917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2918 (eval $ac_compile) 2>conftest.er1 2919 ac_status=$? 2920 grep -v '^ *+' conftest.er1 >conftest.err 2921 rm -f conftest.er1 2922 cat conftest.err >&5 2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2924 (exit $ac_status); } && 2925 { ac_try='test -z "$ac_c_werror_flag" 2926 || test ! -s conftest.err' 2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2928 (eval $ac_try) 2>&5 2929 ac_status=$? 2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2931 (exit $ac_status); }; } && 2932 { ac_try='test -s conftest.$ac_objext' 2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2934 (eval $ac_try) 2>&5 2935 ac_status=$? 2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); }; }; then 2938 break 2939else 2940 echo "$as_me: failed program was:" >&5 2941sed 's/^/| /' conftest.$ac_ext >&5 2942 2943fi 2944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2945done 2946rm -f conftest* 2947if test -n "$ac_declaration"; then 2948 echo '#ifdef __cplusplus' >>confdefs.h 2949 echo $ac_declaration >>confdefs.h 2950 echo '#endif' >>confdefs.h 2951fi 2952 2953else 2954 echo "$as_me: failed program was:" >&5 2955sed 's/^/| /' conftest.$ac_ext >&5 2956 2957fi 2958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2959ac_ext=c 2960ac_cpp='$CPP $CPPFLAGS' 2961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2963ac_compiler_gnu=$ac_cv_c_compiler_gnu 2964DEPDIR="${am__leading_dot}deps" 2965 2966 ac_config_commands="$ac_config_commands depfiles" 2967 2968 2969am_make=${MAKE-make} 2970cat > confinc << 'END' 2971am__doit: 2972 @echo done 2973.PHONY: am__doit 2974END 2975# If we don't find an include directive, just comment out the code. 2976echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2977echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2978am__include="#" 2979am__quote= 2980_am_result=none 2981# First try GNU make style include. 2982echo "include confinc" > confmf 2983# We grep out `Entering directory' and `Leaving directory' 2984# messages which can occur if `w' ends up in MAKEFLAGS. 2985# In particular we don't look at `^make:' because GNU make might 2986# be invoked under some other name (usually "gmake"), in which 2987# case it prints its new name instead of `make'. 2988if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2989 am__include=include 2990 am__quote= 2991 _am_result=GNU 2992fi 2993# Now try BSD make style include. 2994if test "$am__include" = "#"; then 2995 echo '.include "confinc"' > confmf 2996 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2997 am__include=.include 2998 am__quote="\"" 2999 _am_result=BSD 3000 fi 3001fi 3002 3003 3004echo "$as_me:$LINENO: result: $_am_result" >&5 3005echo "${ECHO_T}$_am_result" >&6 3006rm -f confinc confmf 3007 3008# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3009if test "${enable_dependency_tracking+set}" = set; then 3010 enableval="$enable_dependency_tracking" 3011 3012fi; 3013if test "x$enable_dependency_tracking" != xno; then 3014 am_depcomp="$ac_aux_dir/depcomp" 3015 AMDEPBACKSLASH='\' 3016fi 3017 3018 3019if test "x$enable_dependency_tracking" != xno; then 3020 AMDEP_TRUE= 3021 AMDEP_FALSE='#' 3022else 3023 AMDEP_TRUE='#' 3024 AMDEP_FALSE= 3025fi 3026 3027 3028 3029 3030depcc="$CC" am_compiler_list= 3031 3032echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3033echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3034if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3035 echo $ECHO_N "(cached) $ECHO_C" >&6 3036else 3037 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3038 # We make a subdir and do the tests there. Otherwise we can end up 3039 # making bogus files that we don't know about and never remove. For 3040 # instance it was reported that on HP-UX the gcc test will end up 3041 # making a dummy file named `D' -- because `-MD' means `put the output 3042 # in D'. 3043 mkdir conftest.dir 3044 # Copy depcomp to subdir because otherwise we won't find it if we're 3045 # using a relative directory. 3046 cp "$am_depcomp" conftest.dir 3047 cd conftest.dir 3048 # We will build objects and dependencies in a subdirectory because 3049 # it helps to detect inapplicable dependency modes. For instance 3050 # both Tru64's cc and ICC support -MD to output dependencies as a 3051 # side effect of compilation, but ICC will put the dependencies in 3052 # the current directory while Tru64 will put them in the object 3053 # directory. 3054 mkdir sub 3055 3056 am_cv_CC_dependencies_compiler_type=none 3057 if test "$am_compiler_list" = ""; then 3058 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3059 fi 3060 for depmode in $am_compiler_list; do 3061 # Setup a source with many dependencies, because some compilers 3062 # like to wrap large dependency lists on column 80 (with \), and 3063 # we should not choose a depcomp mode which is confused by this. 3064 # 3065 # We need to recreate these files for each test, as the compiler may 3066 # overwrite some of them when testing with obscure command lines. 3067 # This happens at least with the AIX C compiler. 3068 : > sub/conftest.c 3069 for i in 1 2 3 4 5 6; do 3070 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3071 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3072 # Solaris 8's {/usr,}/bin/sh. 3073 touch sub/conftst$i.h 3074 done 3075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3076 3077 case $depmode in 3078 nosideeffect) 3079 # after this tag, mechanisms are not by side-effect, so they'll 3080 # only be used when explicitly requested 3081 if test "x$enable_dependency_tracking" = xyes; then 3082 continue 3083 else 3084 break 3085 fi 3086 ;; 3087 none) break ;; 3088 esac 3089 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3090 # mode. It turns out that the SunPro C++ compiler does not properly 3091 # handle `-M -o', and we need to detect this. 3092 if depmode=$depmode \ 3093 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3095 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3096 >/dev/null 2>conftest.err && 3097 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3098 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3099 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3100 # icc doesn't choke on unknown options, it will just issue warnings 3101 # or remarks (even with -Werror). So we grep stderr for any message 3102 # that says an option was ignored or not supported. 3103 # When given -MP, icc 7.0 and 7.1 complain thusly: 3104 # icc: Command line warning: ignoring option '-M'; no argument required 3105 # The diagnosis changed in icc 8.0: 3106 # icc: Command line remark: option '-MP' not supported 3107 if (grep 'ignoring option' conftest.err || 3108 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3109 am_cv_CC_dependencies_compiler_type=$depmode 3110 break 3111 fi 3112 fi 3113 done 3114 3115 cd .. 3116 rm -rf conftest.dir 3117else 3118 am_cv_CC_dependencies_compiler_type=none 3119fi 3120 3121fi 3122echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3123echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3124CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3125 3126 3127 3128if 3129 test "x$enable_dependency_tracking" != xno \ 3130 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3131 am__fastdepCC_TRUE= 3132 am__fastdepCC_FALSE='#' 3133else 3134 am__fastdepCC_TRUE='#' 3135 am__fastdepCC_FALSE= 3136fi 3137 3138 3139 3140echo "$as_me:$LINENO: checking for library containing strerror" >&5 3141echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3142if test "${ac_cv_search_strerror+set}" = set; then 3143 echo $ECHO_N "(cached) $ECHO_C" >&6 3144else 3145 ac_func_search_save_LIBS=$LIBS 3146ac_cv_search_strerror=no 3147cat >conftest.$ac_ext <<_ACEOF 3148/* confdefs.h. */ 3149_ACEOF 3150cat confdefs.h >>conftest.$ac_ext 3151cat >>conftest.$ac_ext <<_ACEOF 3152/* end confdefs.h. */ 3153 3154/* Override any gcc2 internal prototype to avoid an error. */ 3155#ifdef __cplusplus 3156extern "C" 3157#endif 3158/* We use char because int might match the return type of a gcc2 3159 builtin and then its argument prototype would still apply. */ 3160char strerror (); 3161int 3162main () 3163{ 3164strerror (); 3165 ; 3166 return 0; 3167} 3168_ACEOF 3169rm -f conftest.$ac_objext conftest$ac_exeext 3170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3171 (eval $ac_link) 2>conftest.er1 3172 ac_status=$? 3173 grep -v '^ *+' conftest.er1 >conftest.err 3174 rm -f conftest.er1 3175 cat conftest.err >&5 3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3177 (exit $ac_status); } && 3178 { ac_try='test -z "$ac_c_werror_flag" 3179 || test ! -s conftest.err' 3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3181 (eval $ac_try) 2>&5 3182 ac_status=$? 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); }; } && 3185 { ac_try='test -s conftest$ac_exeext' 3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3187 (eval $ac_try) 2>&5 3188 ac_status=$? 3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3190 (exit $ac_status); }; }; then 3191 ac_cv_search_strerror="none required" 3192else 3193 echo "$as_me: failed program was:" >&5 3194sed 's/^/| /' conftest.$ac_ext >&5 3195 3196fi 3197rm -f conftest.err conftest.$ac_objext \ 3198 conftest$ac_exeext conftest.$ac_ext 3199if test "$ac_cv_search_strerror" = no; then 3200 for ac_lib in cposix; do 3201 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3202 cat >conftest.$ac_ext <<_ACEOF 3203/* confdefs.h. */ 3204_ACEOF 3205cat confdefs.h >>conftest.$ac_ext 3206cat >>conftest.$ac_ext <<_ACEOF 3207/* end confdefs.h. */ 3208 3209/* Override any gcc2 internal prototype to avoid an error. */ 3210#ifdef __cplusplus 3211extern "C" 3212#endif 3213/* We use char because int might match the return type of a gcc2 3214 builtin and then its argument prototype would still apply. */ 3215char strerror (); 3216int 3217main () 3218{ 3219strerror (); 3220 ; 3221 return 0; 3222} 3223_ACEOF 3224rm -f conftest.$ac_objext conftest$ac_exeext 3225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3226 (eval $ac_link) 2>conftest.er1 3227 ac_status=$? 3228 grep -v '^ *+' conftest.er1 >conftest.err 3229 rm -f conftest.er1 3230 cat conftest.err >&5 3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3232 (exit $ac_status); } && 3233 { ac_try='test -z "$ac_c_werror_flag" 3234 || test ! -s conftest.err' 3235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3236 (eval $ac_try) 2>&5 3237 ac_status=$? 3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3239 (exit $ac_status); }; } && 3240 { ac_try='test -s conftest$ac_exeext' 3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3242 (eval $ac_try) 2>&5 3243 ac_status=$? 3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3245 (exit $ac_status); }; }; then 3246 ac_cv_search_strerror="-l$ac_lib" 3247break 3248else 3249 echo "$as_me: failed program was:" >&5 3250sed 's/^/| /' conftest.$ac_ext >&5 3251 3252fi 3253rm -f conftest.err conftest.$ac_objext \ 3254 conftest$ac_exeext conftest.$ac_ext 3255 done 3256fi 3257LIBS=$ac_func_search_save_LIBS 3258fi 3259echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3260echo "${ECHO_T}$ac_cv_search_strerror" >&6 3261if test "$ac_cv_search_strerror" != no; then 3262 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3263 3264fi 3265 3266# Find a good install program. We prefer a C program (faster), 3267# so one script is as good as another. But avoid the broken or 3268# incompatible versions: 3269# SysV /etc/install, /usr/sbin/install 3270# SunOS /usr/etc/install 3271# IRIX /sbin/install 3272# AIX /bin/install 3273# AmigaOS /C/install, which installs bootblocks on floppy discs 3274# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3275# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3276# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3277# OS/2's system install, which has a completely different semantic 3278# ./install, which can be erroneously created by make from ./install.sh. 3279echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3280echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3281if test -z "$INSTALL"; then 3282if test "${ac_cv_path_install+set}" = set; then 3283 echo $ECHO_N "(cached) $ECHO_C" >&6 3284else 3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3286for as_dir in $PATH 3287do 3288 IFS=$as_save_IFS 3289 test -z "$as_dir" && as_dir=. 3290 # Account for people who put trailing slashes in PATH elements. 3291case $as_dir/ in 3292 ./ | .// | /cC/* | \ 3293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3294 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3295 /usr/ucb/* ) ;; 3296 *) 3297 # OSF1 and SCO ODT 3.0 have their own names for install. 3298 # Don't use installbsd from OSF since it installs stuff as root 3299 # by default. 3300 for ac_prog in ginstall scoinst install; do 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3303 if test $ac_prog = install && 3304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3305 # AIX install. It has an incompatible calling convention. 3306 : 3307 elif test $ac_prog = install && 3308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3309 # program-specific install script used by HP pwplus--don't use. 3310 : 3311 else 3312 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3313 break 3 3314 fi 3315 fi 3316 done 3317 done 3318 ;; 3319esac 3320done 3321 3322 3323fi 3324 if test "${ac_cv_path_install+set}" = set; then 3325 INSTALL=$ac_cv_path_install 3326 else 3327 # As a last resort, use the slow shell script. We don't cache a 3328 # path for INSTALL within a source directory, because that will 3329 # break other packages using the cache if that directory is 3330 # removed, or if the path is relative. 3331 INSTALL=$ac_install_sh 3332 fi 3333fi 3334echo "$as_me:$LINENO: result: $INSTALL" >&5 3335echo "${ECHO_T}$INSTALL" >&6 3336 3337# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3338# It thinks the first close brace ends the variable substitution. 3339test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3340 3341test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3342 3343test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3344 3345echo "$as_me:$LINENO: checking whether ln -s works" >&5 3346echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3347LN_S=$as_ln_s 3348if test "$LN_S" = "ln -s"; then 3349 echo "$as_me:$LINENO: result: yes" >&5 3350echo "${ECHO_T}yes" >&6 3351else 3352 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3353echo "${ECHO_T}no, using $LN_S" >&6 3354fi 3355 3356 3357 3358 echo "$as_me:$LINENO: checking for dos file convention" >&5 3359echo $ECHO_N "checking for dos file convention... $ECHO_C" >&6 3360if test "${ac_cv_dosfile+set}" = set; then 3361 echo $ECHO_N "(cached) $ECHO_C" >&6 3362else 3363 if test -d ".\."; then 3364 ac_cv_dosfile=yes 3365 else 3366 ac_cv_dosfile=no 3367 fi 3368 3369fi 3370echo "$as_me:$LINENO: result: $ac_cv_dosfile" >&5 3371echo "${ECHO_T}$ac_cv_dosfile" >&6 3372 3373 if test $ac_cv_dosfile = yes; then 3374 3375cat >>confdefs.h <<\_ACEOF 3376#define HAVE_DOS_FILE_NAMES 1 3377_ACEOF 3378 3379 3380cat >>confdefs.h <<\_ACEOF 3381#define HAVE_DOS_FILE_CONTENTS 1 3382_ACEOF 3383 3384 fi 3385 3386 3387ac_ext=c 3388ac_cpp='$CPP $CPPFLAGS' 3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3391ac_compiler_gnu=$ac_cv_c_compiler_gnu 3392echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3394# On Suns, sometimes $CPP names a directory. 3395if test -n "$CPP" && test -d "$CPP"; then 3396 CPP= 3397fi 3398if test -z "$CPP"; then 3399 if test "${ac_cv_prog_CPP+set}" = set; then 3400 echo $ECHO_N "(cached) $ECHO_C" >&6 3401else 3402 # Double quotes because CPP needs to be expanded 3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3404 do 3405 ac_preproc_ok=false 3406for ac_c_preproc_warn_flag in '' yes 3407do 3408 # Use a header file that comes with gcc, so configuring glibc 3409 # with a fresh cross-compiler works. 3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3411 # <limits.h> exists even on freestanding compilers. 3412 # On the NeXT, cc -E runs the code through the compiler's parser, 3413 # not just through cpp. "Syntax error" is here to catch this case. 3414 cat >conftest.$ac_ext <<_ACEOF 3415/* confdefs.h. */ 3416_ACEOF 3417cat confdefs.h >>conftest.$ac_ext 3418cat >>conftest.$ac_ext <<_ACEOF 3419/* end confdefs.h. */ 3420#ifdef __STDC__ 3421# include <limits.h> 3422#else 3423# include <assert.h> 3424#endif 3425 Syntax error 3426_ACEOF 3427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3429 ac_status=$? 3430 grep -v '^ *+' conftest.er1 >conftest.err 3431 rm -f conftest.er1 3432 cat conftest.err >&5 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3434 (exit $ac_status); } >/dev/null; then 3435 if test -s conftest.err; then 3436 ac_cpp_err=$ac_c_preproc_warn_flag 3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3438 else 3439 ac_cpp_err= 3440 fi 3441else 3442 ac_cpp_err=yes 3443fi 3444if test -z "$ac_cpp_err"; then 3445 : 3446else 3447 echo "$as_me: failed program was:" >&5 3448sed 's/^/| /' conftest.$ac_ext >&5 3449 3450 # Broken: fails on valid input. 3451continue 3452fi 3453rm -f conftest.err conftest.$ac_ext 3454 3455 # OK, works on sane cases. Now check whether non-existent headers 3456 # can be detected and how. 3457 cat >conftest.$ac_ext <<_ACEOF 3458/* confdefs.h. */ 3459_ACEOF 3460cat confdefs.h >>conftest.$ac_ext 3461cat >>conftest.$ac_ext <<_ACEOF 3462/* end confdefs.h. */ 3463#include <ac_nonexistent.h> 3464_ACEOF 3465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3467 ac_status=$? 3468 grep -v '^ *+' conftest.er1 >conftest.err 3469 rm -f conftest.er1 3470 cat conftest.err >&5 3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3472 (exit $ac_status); } >/dev/null; then 3473 if test -s conftest.err; then 3474 ac_cpp_err=$ac_c_preproc_warn_flag 3475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3476 else 3477 ac_cpp_err= 3478 fi 3479else 3480 ac_cpp_err=yes 3481fi 3482if test -z "$ac_cpp_err"; then 3483 # Broken: success on invalid input. 3484continue 3485else 3486 echo "$as_me: failed program was:" >&5 3487sed 's/^/| /' conftest.$ac_ext >&5 3488 3489 # Passes both tests. 3490ac_preproc_ok=: 3491break 3492fi 3493rm -f conftest.err conftest.$ac_ext 3494 3495done 3496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3497rm -f conftest.err conftest.$ac_ext 3498if $ac_preproc_ok; then 3499 break 3500fi 3501 3502 done 3503 ac_cv_prog_CPP=$CPP 3504 3505fi 3506 CPP=$ac_cv_prog_CPP 3507else 3508 ac_cv_prog_CPP=$CPP 3509fi 3510echo "$as_me:$LINENO: result: $CPP" >&5 3511echo "${ECHO_T}$CPP" >&6 3512ac_preproc_ok=false 3513for ac_c_preproc_warn_flag in '' yes 3514do 3515 # Use a header file that comes with gcc, so configuring glibc 3516 # with a fresh cross-compiler works. 3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3518 # <limits.h> exists even on freestanding compilers. 3519 # On the NeXT, cc -E runs the code through the compiler's parser, 3520 # not just through cpp. "Syntax error" is here to catch this case. 3521 cat >conftest.$ac_ext <<_ACEOF 3522/* confdefs.h. */ 3523_ACEOF 3524cat confdefs.h >>conftest.$ac_ext 3525cat >>conftest.$ac_ext <<_ACEOF 3526/* end confdefs.h. */ 3527#ifdef __STDC__ 3528# include <limits.h> 3529#else 3530# include <assert.h> 3531#endif 3532 Syntax error 3533_ACEOF 3534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3536 ac_status=$? 3537 grep -v '^ *+' conftest.er1 >conftest.err 3538 rm -f conftest.er1 3539 cat conftest.err >&5 3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3541 (exit $ac_status); } >/dev/null; then 3542 if test -s conftest.err; then 3543 ac_cpp_err=$ac_c_preproc_warn_flag 3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3545 else 3546 ac_cpp_err= 3547 fi 3548else 3549 ac_cpp_err=yes 3550fi 3551if test -z "$ac_cpp_err"; then 3552 : 3553else 3554 echo "$as_me: failed program was:" >&5 3555sed 's/^/| /' conftest.$ac_ext >&5 3556 3557 # Broken: fails on valid input. 3558continue 3559fi 3560rm -f conftest.err conftest.$ac_ext 3561 3562 # OK, works on sane cases. Now check whether non-existent headers 3563 # can be detected and how. 3564 cat >conftest.$ac_ext <<_ACEOF 3565/* confdefs.h. */ 3566_ACEOF 3567cat confdefs.h >>conftest.$ac_ext 3568cat >>conftest.$ac_ext <<_ACEOF 3569/* end confdefs.h. */ 3570#include <ac_nonexistent.h> 3571_ACEOF 3572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3574 ac_status=$? 3575 grep -v '^ *+' conftest.er1 >conftest.err 3576 rm -f conftest.er1 3577 cat conftest.err >&5 3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3579 (exit $ac_status); } >/dev/null; then 3580 if test -s conftest.err; then 3581 ac_cpp_err=$ac_c_preproc_warn_flag 3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3583 else 3584 ac_cpp_err= 3585 fi 3586else 3587 ac_cpp_err=yes 3588fi 3589if test -z "$ac_cpp_err"; then 3590 # Broken: success on invalid input. 3591continue 3592else 3593 echo "$as_me: failed program was:" >&5 3594sed 's/^/| /' conftest.$ac_ext >&5 3595 3596 # Passes both tests. 3597ac_preproc_ok=: 3598break 3599fi 3600rm -f conftest.err conftest.$ac_ext 3601 3602done 3603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3604rm -f conftest.err conftest.$ac_ext 3605if $ac_preproc_ok; then 3606 : 3607else 3608 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3609See \`config.log' for more details." >&5 3610echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3611See \`config.log' for more details." >&2;} 3612 { (exit 1); exit 1; }; } 3613fi 3614 3615ac_ext=c 3616ac_cpp='$CPP $CPPFLAGS' 3617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3619ac_compiler_gnu=$ac_cv_c_compiler_gnu 3620 3621 3622echo "$as_me:$LINENO: checking for egrep" >&5 3623echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3624if test "${ac_cv_prog_egrep+set}" = set; then 3625 echo $ECHO_N "(cached) $ECHO_C" >&6 3626else 3627 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3628 then ac_cv_prog_egrep='grep -E' 3629 else ac_cv_prog_egrep='egrep' 3630 fi 3631fi 3632echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3633echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3634 EGREP=$ac_cv_prog_egrep 3635 3636 3637echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3638echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3639if test "${ac_cv_header_stdc+set}" = set; then 3640 echo $ECHO_N "(cached) $ECHO_C" >&6 3641else 3642 cat >conftest.$ac_ext <<_ACEOF 3643/* confdefs.h. */ 3644_ACEOF 3645cat confdefs.h >>conftest.$ac_ext 3646cat >>conftest.$ac_ext <<_ACEOF 3647/* end confdefs.h. */ 3648#include <stdlib.h> 3649#include <stdarg.h> 3650#include <string.h> 3651#include <float.h> 3652 3653int 3654main () 3655{ 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661rm -f conftest.$ac_objext 3662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3663 (eval $ac_compile) 2>conftest.er1 3664 ac_status=$? 3665 grep -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); } && 3670 { ac_try='test -z "$ac_c_werror_flag" 3671 || test ! -s conftest.err' 3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3673 (eval $ac_try) 2>&5 3674 ac_status=$? 3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3676 (exit $ac_status); }; } && 3677 { ac_try='test -s conftest.$ac_objext' 3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3679 (eval $ac_try) 2>&5 3680 ac_status=$? 3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3682 (exit $ac_status); }; }; then 3683 ac_cv_header_stdc=yes 3684else 3685 echo "$as_me: failed program was:" >&5 3686sed 's/^/| /' conftest.$ac_ext >&5 3687 3688ac_cv_header_stdc=no 3689fi 3690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3691 3692if test $ac_cv_header_stdc = yes; then 3693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3694 cat >conftest.$ac_ext <<_ACEOF 3695/* confdefs.h. */ 3696_ACEOF 3697cat confdefs.h >>conftest.$ac_ext 3698cat >>conftest.$ac_ext <<_ACEOF 3699/* end confdefs.h. */ 3700#include <string.h> 3701 3702_ACEOF 3703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3704 $EGREP "memchr" >/dev/null 2>&1; then 3705 : 3706else 3707 ac_cv_header_stdc=no 3708fi 3709rm -f conftest* 3710 3711fi 3712 3713if test $ac_cv_header_stdc = yes; then 3714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3715 cat >conftest.$ac_ext <<_ACEOF 3716/* confdefs.h. */ 3717_ACEOF 3718cat confdefs.h >>conftest.$ac_ext 3719cat >>conftest.$ac_ext <<_ACEOF 3720/* end confdefs.h. */ 3721#include <stdlib.h> 3722 3723_ACEOF 3724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3725 $EGREP "free" >/dev/null 2>&1; then 3726 : 3727else 3728 ac_cv_header_stdc=no 3729fi 3730rm -f conftest* 3731 3732fi 3733 3734if test $ac_cv_header_stdc = yes; then 3735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3736 if test "$cross_compiling" = yes; then 3737 : 3738else 3739 cat >conftest.$ac_ext <<_ACEOF 3740/* confdefs.h. */ 3741_ACEOF 3742cat confdefs.h >>conftest.$ac_ext 3743cat >>conftest.$ac_ext <<_ACEOF 3744/* end confdefs.h. */ 3745#include <ctype.h> 3746#if ((' ' & 0x0FF) == 0x020) 3747# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3748# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3749#else 3750# define ISLOWER(c) \ 3751 (('a' <= (c) && (c) <= 'i') \ 3752 || ('j' <= (c) && (c) <= 'r') \ 3753 || ('s' <= (c) && (c) <= 'z')) 3754# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3755#endif 3756 3757#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3758int 3759main () 3760{ 3761 int i; 3762 for (i = 0; i < 256; i++) 3763 if (XOR (islower (i), ISLOWER (i)) 3764 || toupper (i) != TOUPPER (i)) 3765 exit(2); 3766 exit (0); 3767} 3768_ACEOF 3769rm -f conftest$ac_exeext 3770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3771 (eval $ac_link) 2>&5 3772 ac_status=$? 3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3776 (eval $ac_try) 2>&5 3777 ac_status=$? 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3779 (exit $ac_status); }; }; then 3780 : 3781else 3782 echo "$as_me: program exited with status $ac_status" >&5 3783echo "$as_me: failed program was:" >&5 3784sed 's/^/| /' conftest.$ac_ext >&5 3785 3786( exit $ac_status ) 3787ac_cv_header_stdc=no 3788fi 3789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3790fi 3791fi 3792fi 3793echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3794echo "${ECHO_T}$ac_cv_header_stdc" >&6 3795if test $ac_cv_header_stdc = yes; then 3796 3797cat >>confdefs.h <<\_ACEOF 3798#define STDC_HEADERS 1 3799_ACEOF 3800 3801fi 3802 3803# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3814 inttypes.h stdint.h unistd.h 3815do 3816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3817echo "$as_me:$LINENO: checking for $ac_header" >&5 3818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3819if eval "test \"\${$as_ac_Header+set}\" = set"; then 3820 echo $ECHO_N "(cached) $ECHO_C" >&6 3821else 3822 cat >conftest.$ac_ext <<_ACEOF 3823/* confdefs.h. */ 3824_ACEOF 3825cat confdefs.h >>conftest.$ac_ext 3826cat >>conftest.$ac_ext <<_ACEOF 3827/* end confdefs.h. */ 3828$ac_includes_default 3829 3830#include <$ac_header> 3831_ACEOF 3832rm -f conftest.$ac_objext 3833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3834 (eval $ac_compile) 2>conftest.er1 3835 ac_status=$? 3836 grep -v '^ *+' conftest.er1 >conftest.err 3837 rm -f conftest.er1 3838 cat conftest.err >&5 3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 (exit $ac_status); } && 3841 { ac_try='test -z "$ac_c_werror_flag" 3842 || test ! -s conftest.err' 3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3844 (eval $ac_try) 2>&5 3845 ac_status=$? 3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 (exit $ac_status); }; } && 3848 { ac_try='test -s conftest.$ac_objext' 3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3850 (eval $ac_try) 2>&5 3851 ac_status=$? 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3853 (exit $ac_status); }; }; then 3854 eval "$as_ac_Header=yes" 3855else 3856 echo "$as_me: failed program was:" >&5 3857sed 's/^/| /' conftest.$ac_ext >&5 3858 3859eval "$as_ac_Header=no" 3860fi 3861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3862fi 3863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3865if test `eval echo '${'$as_ac_Header'}'` = yes; then 3866 cat >>confdefs.h <<_ACEOF 3867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3868_ACEOF 3869 3870fi 3871 3872done 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888for ac_header in string.h math.h ctype.h fcntl.h unistd.h byteswap.h sys/types.h sys/stat.h sys/mman.h locale.h stdint.h inttypes.h errno.h 3889do 3890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3891if eval "test \"\${$as_ac_Header+set}\" = set"; then 3892 echo "$as_me:$LINENO: checking for $ac_header" >&5 3893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3894if eval "test \"\${$as_ac_Header+set}\" = set"; then 3895 echo $ECHO_N "(cached) $ECHO_C" >&6 3896fi 3897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3899else 3900 # Is the header compilable? 3901echo "$as_me:$LINENO: checking $ac_header usability" >&5 3902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3903cat >conftest.$ac_ext <<_ACEOF 3904/* confdefs.h. */ 3905_ACEOF 3906cat confdefs.h >>conftest.$ac_ext 3907cat >>conftest.$ac_ext <<_ACEOF 3908/* end confdefs.h. */ 3909$ac_includes_default 3910#include <$ac_header> 3911_ACEOF 3912rm -f conftest.$ac_objext 3913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3914 (eval $ac_compile) 2>conftest.er1 3915 ac_status=$? 3916 grep -v '^ *+' conftest.er1 >conftest.err 3917 rm -f conftest.er1 3918 cat conftest.err >&5 3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3920 (exit $ac_status); } && 3921 { ac_try='test -z "$ac_c_werror_flag" 3922 || test ! -s conftest.err' 3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3924 (eval $ac_try) 2>&5 3925 ac_status=$? 3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3927 (exit $ac_status); }; } && 3928 { ac_try='test -s conftest.$ac_objext' 3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3930 (eval $ac_try) 2>&5 3931 ac_status=$? 3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3933 (exit $ac_status); }; }; then 3934 ac_header_compiler=yes 3935else 3936 echo "$as_me: failed program was:" >&5 3937sed 's/^/| /' conftest.$ac_ext >&5 3938 3939ac_header_compiler=no 3940fi 3941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3943echo "${ECHO_T}$ac_header_compiler" >&6 3944 3945# Is the header present? 3946echo "$as_me:$LINENO: checking $ac_header presence" >&5 3947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3948cat >conftest.$ac_ext <<_ACEOF 3949/* confdefs.h. */ 3950_ACEOF 3951cat confdefs.h >>conftest.$ac_ext 3952cat >>conftest.$ac_ext <<_ACEOF 3953/* end confdefs.h. */ 3954#include <$ac_header> 3955_ACEOF 3956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3958 ac_status=$? 3959 grep -v '^ *+' conftest.er1 >conftest.err 3960 rm -f conftest.er1 3961 cat conftest.err >&5 3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3963 (exit $ac_status); } >/dev/null; then 3964 if test -s conftest.err; then 3965 ac_cpp_err=$ac_c_preproc_warn_flag 3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3967 else 3968 ac_cpp_err= 3969 fi 3970else 3971 ac_cpp_err=yes 3972fi 3973if test -z "$ac_cpp_err"; then 3974 ac_header_preproc=yes 3975else 3976 echo "$as_me: failed program was:" >&5 3977sed 's/^/| /' conftest.$ac_ext >&5 3978 3979 ac_header_preproc=no 3980fi 3981rm -f conftest.err conftest.$ac_ext 3982echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3983echo "${ECHO_T}$ac_header_preproc" >&6 3984 3985# So? What about this header? 3986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3987 yes:no: ) 3988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3992 ac_header_preproc=yes 3993 ;; 3994 no:yes:* ) 3995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4007 ( 4008 cat <<\_ASBOX 4009## ------------------------------------ ## 4010## Report this to the normalize lists. ## 4011## ------------------------------------ ## 4012_ASBOX 4013 ) | 4014 sed "s/^/$as_me: WARNING: /" >&2 4015 ;; 4016esac 4017echo "$as_me:$LINENO: checking for $ac_header" >&5 4018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4019if eval "test \"\${$as_ac_Header+set}\" = set"; then 4020 echo $ECHO_N "(cached) $ECHO_C" >&6 4021else 4022 eval "$as_ac_Header=\$ac_header_preproc" 4023fi 4024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4026 4027fi 4028if test `eval echo '${'$as_ac_Header'}'` = yes; then 4029 cat >>confdefs.h <<_ACEOF 4030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4031_ACEOF 4032 4033fi 4034 4035done 4036 4037 4038echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4039echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4040if test "${ac_cv_c_const+set}" = set; then 4041 echo $ECHO_N "(cached) $ECHO_C" >&6 4042else 4043 cat >conftest.$ac_ext <<_ACEOF 4044/* confdefs.h. */ 4045_ACEOF 4046cat confdefs.h >>conftest.$ac_ext 4047cat >>conftest.$ac_ext <<_ACEOF 4048/* end confdefs.h. */ 4049 4050int 4051main () 4052{ 4053/* FIXME: Include the comments suggested by Paul. */ 4054#ifndef __cplusplus 4055 /* Ultrix mips cc rejects this. */ 4056 typedef int charset[2]; 4057 const charset x; 4058 /* SunOS 4.1.1 cc rejects this. */ 4059 char const *const *ccp; 4060 char **p; 4061 /* NEC SVR4.0.2 mips cc rejects this. */ 4062 struct point {int x, y;}; 4063 static struct point const zero = {0,0}; 4064 /* AIX XL C 1.02.0.0 rejects this. 4065 It does not let you subtract one const X* pointer from another in 4066 an arm of an if-expression whose if-part is not a constant 4067 expression */ 4068 const char *g = "string"; 4069 ccp = &g + (g ? g-g : 0); 4070 /* HPUX 7.0 cc rejects these. */ 4071 ++ccp; 4072 p = (char**) ccp; 4073 ccp = (char const *const *) p; 4074 { /* SCO 3.2v4 cc rejects this. */ 4075 char *t; 4076 char const *s = 0 ? (char *) 0 : (char const *) 0; 4077 4078 *t++ = 0; 4079 } 4080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4081 int x[] = {25, 17}; 4082 const int *foo = &x[0]; 4083 ++foo; 4084 } 4085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4086 typedef const int *iptr; 4087 iptr p = 0; 4088 ++p; 4089 } 4090 { /* AIX XL C 1.02.0.0 rejects this saying 4091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4092 struct s { int j; const int *ap[3]; }; 4093 struct s *b; b->j = 5; 4094 } 4095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4096 const int foo = 10; 4097 } 4098#endif 4099 4100 ; 4101 return 0; 4102} 4103_ACEOF 4104rm -f conftest.$ac_objext 4105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4106 (eval $ac_compile) 2>conftest.er1 4107 ac_status=$? 4108 grep -v '^ *+' conftest.er1 >conftest.err 4109 rm -f conftest.er1 4110 cat conftest.err >&5 4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4112 (exit $ac_status); } && 4113 { ac_try='test -z "$ac_c_werror_flag" 4114 || test ! -s conftest.err' 4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4116 (eval $ac_try) 2>&5 4117 ac_status=$? 4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4119 (exit $ac_status); }; } && 4120 { ac_try='test -s conftest.$ac_objext' 4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4122 (eval $ac_try) 2>&5 4123 ac_status=$? 4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4125 (exit $ac_status); }; }; then 4126 ac_cv_c_const=yes 4127else 4128 echo "$as_me: failed program was:" >&5 4129sed 's/^/| /' conftest.$ac_ext >&5 4130 4131ac_cv_c_const=no 4132fi 4133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4134fi 4135echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4136echo "${ECHO_T}$ac_cv_c_const" >&6 4137if test $ac_cv_c_const = no; then 4138 4139cat >>confdefs.h <<\_ACEOF 4140#define const 4141_ACEOF 4142 4143fi 4144 4145echo "$as_me:$LINENO: checking for inline" >&5 4146echo $ECHO_N "checking for inline... $ECHO_C" >&6 4147if test "${ac_cv_c_inline+set}" = set; then 4148 echo $ECHO_N "(cached) $ECHO_C" >&6 4149else 4150 ac_cv_c_inline=no 4151for ac_kw in inline __inline__ __inline; do 4152 cat >conftest.$ac_ext <<_ACEOF 4153/* confdefs.h. */ 4154_ACEOF 4155cat confdefs.h >>conftest.$ac_ext 4156cat >>conftest.$ac_ext <<_ACEOF 4157/* end confdefs.h. */ 4158#ifndef __cplusplus 4159typedef int foo_t; 4160static $ac_kw foo_t static_foo () {return 0; } 4161$ac_kw foo_t foo () {return 0; } 4162#endif 4163 4164_ACEOF 4165rm -f conftest.$ac_objext 4166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4167 (eval $ac_compile) 2>conftest.er1 4168 ac_status=$? 4169 grep -v '^ *+' conftest.er1 >conftest.err 4170 rm -f conftest.er1 4171 cat conftest.err >&5 4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4173 (exit $ac_status); } && 4174 { ac_try='test -z "$ac_c_werror_flag" 4175 || test ! -s conftest.err' 4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4177 (eval $ac_try) 2>&5 4178 ac_status=$? 4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4180 (exit $ac_status); }; } && 4181 { ac_try='test -s conftest.$ac_objext' 4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4183 (eval $ac_try) 2>&5 4184 ac_status=$? 4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4186 (exit $ac_status); }; }; then 4187 ac_cv_c_inline=$ac_kw; break 4188else 4189 echo "$as_me: failed program was:" >&5 4190sed 's/^/| /' conftest.$ac_ext >&5 4191 4192fi 4193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4194done 4195 4196fi 4197echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4198echo "${ECHO_T}$ac_cv_c_inline" >&6 4199 4200 4201case $ac_cv_c_inline in 4202 inline | yes) ;; 4203 *) 4204 case $ac_cv_c_inline in 4205 no) ac_val=;; 4206 *) ac_val=$ac_cv_c_inline;; 4207 esac 4208 cat >>confdefs.h <<_ACEOF 4209#ifndef __cplusplus 4210#define inline $ac_val 4211#endif 4212_ACEOF 4213 ;; 4214esac 4215 4216echo "$as_me:$LINENO: checking for off_t" >&5 4217echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4218if test "${ac_cv_type_off_t+set}" = set; then 4219 echo $ECHO_N "(cached) $ECHO_C" >&6 4220else 4221 cat >conftest.$ac_ext <<_ACEOF 4222/* confdefs.h. */ 4223_ACEOF 4224cat confdefs.h >>conftest.$ac_ext 4225cat >>conftest.$ac_ext <<_ACEOF 4226/* end confdefs.h. */ 4227$ac_includes_default 4228int 4229main () 4230{ 4231if ((off_t *) 0) 4232 return 0; 4233if (sizeof (off_t)) 4234 return 0; 4235 ; 4236 return 0; 4237} 4238_ACEOF 4239rm -f conftest.$ac_objext 4240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4241 (eval $ac_compile) 2>conftest.er1 4242 ac_status=$? 4243 grep -v '^ *+' conftest.er1 >conftest.err 4244 rm -f conftest.er1 4245 cat conftest.err >&5 4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4247 (exit $ac_status); } && 4248 { ac_try='test -z "$ac_c_werror_flag" 4249 || test ! -s conftest.err' 4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4251 (eval $ac_try) 2>&5 4252 ac_status=$? 4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4254 (exit $ac_status); }; } && 4255 { ac_try='test -s conftest.$ac_objext' 4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4257 (eval $ac_try) 2>&5 4258 ac_status=$? 4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4260 (exit $ac_status); }; }; then 4261 ac_cv_type_off_t=yes 4262else 4263 echo "$as_me: failed program was:" >&5 4264sed 's/^/| /' conftest.$ac_ext >&5 4265 4266ac_cv_type_off_t=no 4267fi 4268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4269fi 4270echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4271echo "${ECHO_T}$ac_cv_type_off_t" >&6 4272if test $ac_cv_type_off_t = yes; then 4273 : 4274else 4275 4276cat >>confdefs.h <<_ACEOF 4277#define off_t long 4278_ACEOF 4279 4280fi 4281 4282echo "$as_me:$LINENO: checking for size_t" >&5 4283echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4284if test "${ac_cv_type_size_t+set}" = set; then 4285 echo $ECHO_N "(cached) $ECHO_C" >&6 4286else 4287 cat >conftest.$ac_ext <<_ACEOF 4288/* confdefs.h. */ 4289_ACEOF 4290cat confdefs.h >>conftest.$ac_ext 4291cat >>conftest.$ac_ext <<_ACEOF 4292/* end confdefs.h. */ 4293$ac_includes_default 4294int 4295main () 4296{ 4297if ((size_t *) 0) 4298 return 0; 4299if (sizeof (size_t)) 4300 return 0; 4301 ; 4302 return 0; 4303} 4304_ACEOF 4305rm -f conftest.$ac_objext 4306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4307 (eval $ac_compile) 2>conftest.er1 4308 ac_status=$? 4309 grep -v '^ *+' conftest.er1 >conftest.err 4310 rm -f conftest.er1 4311 cat conftest.err >&5 4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4313 (exit $ac_status); } && 4314 { ac_try='test -z "$ac_c_werror_flag" 4315 || test ! -s conftest.err' 4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4317 (eval $ac_try) 2>&5 4318 ac_status=$? 4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4320 (exit $ac_status); }; } && 4321 { ac_try='test -s conftest.$ac_objext' 4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4323 (eval $ac_try) 2>&5 4324 ac_status=$? 4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4326 (exit $ac_status); }; }; then 4327 ac_cv_type_size_t=yes 4328else 4329 echo "$as_me: failed program was:" >&5 4330sed 's/^/| /' conftest.$ac_ext >&5 4331 4332ac_cv_type_size_t=no 4333fi 4334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4335fi 4336echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4337echo "${ECHO_T}$ac_cv_type_size_t" >&6 4338if test $ac_cv_type_size_t = yes; then 4339 : 4340else 4341 4342cat >>confdefs.h <<_ACEOF 4343#define size_t unsigned 4344_ACEOF 4345 4346fi 4347 4348if test "$cross_compiling" = "yes"; then 4349 case "$host_cpu" in 4350 i?86 | alpha ) ENDIAN=little;; 4351 *) ENDIAN=big; cat >>confdefs.h <<\_ACEOF 4352#define WORDS_BIGENDIAN 1 4353_ACEOF 4354;; 4355 esac 4356 { echo "$as_me:$LINENO: WARNING: I'm guessing that the target machine is $ENDIAN-endian" >&5 4357echo "$as_me: WARNING: I'm guessing that the target machine is $ENDIAN-endian" >&2;} 4358else 4359 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4360echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 4361if test "${ac_cv_c_bigendian+set}" = set; then 4362 echo $ECHO_N "(cached) $ECHO_C" >&6 4363else 4364 # See if sys/param.h defines the BYTE_ORDER macro. 4365cat >conftest.$ac_ext <<_ACEOF 4366/* confdefs.h. */ 4367_ACEOF 4368cat confdefs.h >>conftest.$ac_ext 4369cat >>conftest.$ac_ext <<_ACEOF 4370/* end confdefs.h. */ 4371#include <sys/types.h> 4372#include <sys/param.h> 4373 4374int 4375main () 4376{ 4377#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4378 bogus endian macros 4379#endif 4380 4381 ; 4382 return 0; 4383} 4384_ACEOF 4385rm -f conftest.$ac_objext 4386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4387 (eval $ac_compile) 2>conftest.er1 4388 ac_status=$? 4389 grep -v '^ *+' conftest.er1 >conftest.err 4390 rm -f conftest.er1 4391 cat conftest.err >&5 4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4393 (exit $ac_status); } && 4394 { ac_try='test -z "$ac_c_werror_flag" 4395 || test ! -s conftest.err' 4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4397 (eval $ac_try) 2>&5 4398 ac_status=$? 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); }; } && 4401 { ac_try='test -s conftest.$ac_objext' 4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4403 (eval $ac_try) 2>&5 4404 ac_status=$? 4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4406 (exit $ac_status); }; }; then 4407 # It does; now see whether it defined to BIG_ENDIAN or not. 4408cat >conftest.$ac_ext <<_ACEOF 4409/* confdefs.h. */ 4410_ACEOF 4411cat confdefs.h >>conftest.$ac_ext 4412cat >>conftest.$ac_ext <<_ACEOF 4413/* end confdefs.h. */ 4414#include <sys/types.h> 4415#include <sys/param.h> 4416 4417int 4418main () 4419{ 4420#if BYTE_ORDER != BIG_ENDIAN 4421 not big endian 4422#endif 4423 4424 ; 4425 return 0; 4426} 4427_ACEOF 4428rm -f conftest.$ac_objext 4429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4430 (eval $ac_compile) 2>conftest.er1 4431 ac_status=$? 4432 grep -v '^ *+' conftest.er1 >conftest.err 4433 rm -f conftest.er1 4434 cat conftest.err >&5 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); } && 4437 { ac_try='test -z "$ac_c_werror_flag" 4438 || test ! -s conftest.err' 4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4440 (eval $ac_try) 2>&5 4441 ac_status=$? 4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4443 (exit $ac_status); }; } && 4444 { ac_try='test -s conftest.$ac_objext' 4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4446 (eval $ac_try) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; }; then 4450 ac_cv_c_bigendian=yes 4451else 4452 echo "$as_me: failed program was:" >&5 4453sed 's/^/| /' conftest.$ac_ext >&5 4454 4455ac_cv_c_bigendian=no 4456fi 4457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4458else 4459 echo "$as_me: failed program was:" >&5 4460sed 's/^/| /' conftest.$ac_ext >&5 4461 4462# It does not; compile a test program. 4463if test "$cross_compiling" = yes; then 4464 # try to guess the endianness by grepping values into an object file 4465 ac_cv_c_bigendian=unknown 4466 cat >conftest.$ac_ext <<_ACEOF 4467/* confdefs.h. */ 4468_ACEOF 4469cat confdefs.h >>conftest.$ac_ext 4470cat >>conftest.$ac_ext <<_ACEOF 4471/* end confdefs.h. */ 4472short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4473short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4474void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4475short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4476short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4477void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4478int 4479main () 4480{ 4481 _ascii (); _ebcdic (); 4482 ; 4483 return 0; 4484} 4485_ACEOF 4486rm -f conftest.$ac_objext 4487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4488 (eval $ac_compile) 2>conftest.er1 4489 ac_status=$? 4490 grep -v '^ *+' conftest.er1 >conftest.err 4491 rm -f conftest.er1 4492 cat conftest.err >&5 4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4494 (exit $ac_status); } && 4495 { ac_try='test -z "$ac_c_werror_flag" 4496 || test ! -s conftest.err' 4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4498 (eval $ac_try) 2>&5 4499 ac_status=$? 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); }; } && 4502 { ac_try='test -s conftest.$ac_objext' 4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4504 (eval $ac_try) 2>&5 4505 ac_status=$? 4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4507 (exit $ac_status); }; }; then 4508 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4509 ac_cv_c_bigendian=yes 4510fi 4511if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4512 if test "$ac_cv_c_bigendian" = unknown; then 4513 ac_cv_c_bigendian=no 4514 else 4515 # finding both strings is unlikely to happen, but who knows? 4516 ac_cv_c_bigendian=unknown 4517 fi 4518fi 4519else 4520 echo "$as_me: failed program was:" >&5 4521sed 's/^/| /' conftest.$ac_ext >&5 4522 4523fi 4524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4525else 4526 cat >conftest.$ac_ext <<_ACEOF 4527/* confdefs.h. */ 4528_ACEOF 4529cat confdefs.h >>conftest.$ac_ext 4530cat >>conftest.$ac_ext <<_ACEOF 4531/* end confdefs.h. */ 4532int 4533main () 4534{ 4535 /* Are we little or big endian? From Harbison&Steele. */ 4536 union 4537 { 4538 long l; 4539 char c[sizeof (long)]; 4540 } u; 4541 u.l = 1; 4542 exit (u.c[sizeof (long) - 1] == 1); 4543} 4544_ACEOF 4545rm -f conftest$ac_exeext 4546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4547 (eval $ac_link) 2>&5 4548 ac_status=$? 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4552 (eval $ac_try) 2>&5 4553 ac_status=$? 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); }; }; then 4556 ac_cv_c_bigendian=no 4557else 4558 echo "$as_me: program exited with status $ac_status" >&5 4559echo "$as_me: failed program was:" >&5 4560sed 's/^/| /' conftest.$ac_ext >&5 4561 4562( exit $ac_status ) 4563ac_cv_c_bigendian=yes 4564fi 4565rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4566fi 4567fi 4568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4569fi 4570echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4571echo "${ECHO_T}$ac_cv_c_bigendian" >&6 4572case $ac_cv_c_bigendian in 4573 yes) 4574 4575cat >>confdefs.h <<\_ACEOF 4576#define WORDS_BIGENDIAN 1 4577_ACEOF 4578 ;; 4579 no) 4580 ;; 4581 *) 4582 { { echo "$as_me:$LINENO: error: unknown endianness 4583presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4584echo "$as_me: error: unknown endianness 4585presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4586 { (exit 1); exit 1; }; } ;; 4587esac 4588 4589fi 4590 4591 4592echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 4593echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 4594if test "${ac_cv_lib_m_sqrt+set}" = set; then 4595 echo $ECHO_N "(cached) $ECHO_C" >&6 4596else 4597 ac_check_lib_save_LIBS=$LIBS 4598LIBS="-lm $LIBS" 4599cat >conftest.$ac_ext <<_ACEOF 4600/* confdefs.h. */ 4601_ACEOF 4602cat confdefs.h >>conftest.$ac_ext 4603cat >>conftest.$ac_ext <<_ACEOF 4604/* end confdefs.h. */ 4605 4606/* Override any gcc2 internal prototype to avoid an error. */ 4607#ifdef __cplusplus 4608extern "C" 4609#endif 4610/* We use char because int might match the return type of a gcc2 4611 builtin and then its argument prototype would still apply. */ 4612char sqrt (); 4613int 4614main () 4615{ 4616sqrt (); 4617 ; 4618 return 0; 4619} 4620_ACEOF 4621rm -f conftest.$ac_objext conftest$ac_exeext 4622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4623 (eval $ac_link) 2>conftest.er1 4624 ac_status=$? 4625 grep -v '^ *+' conftest.er1 >conftest.err 4626 rm -f conftest.er1 4627 cat conftest.err >&5 4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4629 (exit $ac_status); } && 4630 { ac_try='test -z "$ac_c_werror_flag" 4631 || test ! -s conftest.err' 4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4633 (eval $ac_try) 2>&5 4634 ac_status=$? 4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4636 (exit $ac_status); }; } && 4637 { ac_try='test -s conftest$ac_exeext' 4638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4639 (eval $ac_try) 2>&5 4640 ac_status=$? 4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4642 (exit $ac_status); }; }; then 4643 ac_cv_lib_m_sqrt=yes 4644else 4645 echo "$as_me: failed program was:" >&5 4646sed 's/^/| /' conftest.$ac_ext >&5 4647 4648ac_cv_lib_m_sqrt=no 4649fi 4650rm -f conftest.err conftest.$ac_objext \ 4651 conftest$ac_exeext conftest.$ac_ext 4652LIBS=$ac_check_lib_save_LIBS 4653fi 4654echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 4655echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 4656if test $ac_cv_lib_m_sqrt = yes; then 4657 cat >>confdefs.h <<_ACEOF 4658#define HAVE_LIBM 1 4659_ACEOF 4660 4661 LIBS="-lm $LIBS" 4662 4663else 4664 { { echo "$as_me:$LINENO: error: You don't seem to have a math library!" >&5 4665echo "$as_me: error: You don't seem to have a math library!" >&2;} 4666 { (exit 1); exit 1; }; } 4667fi 4668 4669 4670 4671 4672 4673 4674for ac_func in strerror strtod strchr memcpy ftruncate 4675do 4676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4677echo "$as_me:$LINENO: checking for $ac_func" >&5 4678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4679if eval "test \"\${$as_ac_var+set}\" = set"; then 4680 echo $ECHO_N "(cached) $ECHO_C" >&6 4681else 4682 cat >conftest.$ac_ext <<_ACEOF 4683/* confdefs.h. */ 4684_ACEOF 4685cat confdefs.h >>conftest.$ac_ext 4686cat >>conftest.$ac_ext <<_ACEOF 4687/* end confdefs.h. */ 4688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 4689 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4690#define $ac_func innocuous_$ac_func 4691 4692/* System header to define __stub macros and hopefully few prototypes, 4693 which can conflict with char $ac_func (); below. 4694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4695 <limits.h> exists even on freestanding compilers. */ 4696 4697#ifdef __STDC__ 4698# include <limits.h> 4699#else 4700# include <assert.h> 4701#endif 4702 4703#undef $ac_func 4704 4705/* Override any gcc2 internal prototype to avoid an error. */ 4706#ifdef __cplusplus 4707extern "C" 4708{ 4709#endif 4710/* We use char because int might match the return type of a gcc2 4711 builtin and then its argument prototype would still apply. */ 4712char $ac_func (); 4713/* The GNU C library defines this for functions which it implements 4714 to always fail with ENOSYS. Some functions are actually named 4715 something starting with __ and the normal name is an alias. */ 4716#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4717choke me 4718#else 4719char (*f) () = $ac_func; 4720#endif 4721#ifdef __cplusplus 4722} 4723#endif 4724 4725int 4726main () 4727{ 4728return f != $ac_func; 4729 ; 4730 return 0; 4731} 4732_ACEOF 4733rm -f conftest.$ac_objext conftest$ac_exeext 4734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4735 (eval $ac_link) 2>conftest.er1 4736 ac_status=$? 4737 grep -v '^ *+' conftest.er1 >conftest.err 4738 rm -f conftest.er1 4739 cat conftest.err >&5 4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4741 (exit $ac_status); } && 4742 { ac_try='test -z "$ac_c_werror_flag" 4743 || test ! -s conftest.err' 4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4745 (eval $ac_try) 2>&5 4746 ac_status=$? 4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4748 (exit $ac_status); }; } && 4749 { ac_try='test -s conftest$ac_exeext' 4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4751 (eval $ac_try) 2>&5 4752 ac_status=$? 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); }; }; then 4755 eval "$as_ac_var=yes" 4756else 4757 echo "$as_me: failed program was:" >&5 4758sed 's/^/| /' conftest.$ac_ext >&5 4759 4760eval "$as_ac_var=no" 4761fi 4762rm -f conftest.err conftest.$ac_objext \ 4763 conftest$ac_exeext conftest.$ac_ext 4764fi 4765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 4766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 4767if test `eval echo '${'$as_ac_var'}'` = yes; then 4768 cat >>confdefs.h <<_ACEOF 4769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 4770_ACEOF 4771 4772fi 4773done 4774 4775 4776if test x"$cross_compiling" = xyes -a x"$ac_cv_sizeof_long" = x; then 4777 # if cross-compiling, with no cached values, just assume something common. 4778 ac_cv_sizeof_char=1 4779 ac_cv_sizeof_short=2 4780 ac_cv_sizeof_int=4 4781 ac_cv_sizeof_long=4 4782 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" >&5 4783echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" >&2;} 4784fi 4785echo "$as_me:$LINENO: checking for char" >&5 4786echo $ECHO_N "checking for char... $ECHO_C" >&6 4787if test "${ac_cv_type_char+set}" = set; then 4788 echo $ECHO_N "(cached) $ECHO_C" >&6 4789else 4790 cat >conftest.$ac_ext <<_ACEOF 4791/* confdefs.h. */ 4792_ACEOF 4793cat confdefs.h >>conftest.$ac_ext 4794cat >>conftest.$ac_ext <<_ACEOF 4795/* end confdefs.h. */ 4796$ac_includes_default 4797int 4798main () 4799{ 4800if ((char *) 0) 4801 return 0; 4802if (sizeof (char)) 4803 return 0; 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808rm -f conftest.$ac_objext 4809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4810 (eval $ac_compile) 2>conftest.er1 4811 ac_status=$? 4812 grep -v '^ *+' conftest.er1 >conftest.err 4813 rm -f conftest.er1 4814 cat conftest.err >&5 4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4816 (exit $ac_status); } && 4817 { ac_try='test -z "$ac_c_werror_flag" 4818 || test ! -s conftest.err' 4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4820 (eval $ac_try) 2>&5 4821 ac_status=$? 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); }; } && 4824 { ac_try='test -s conftest.$ac_objext' 4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4826 (eval $ac_try) 2>&5 4827 ac_status=$? 4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4829 (exit $ac_status); }; }; then 4830 ac_cv_type_char=yes 4831else 4832 echo "$as_me: failed program was:" >&5 4833sed 's/^/| /' conftest.$ac_ext >&5 4834 4835ac_cv_type_char=no 4836fi 4837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4838fi 4839echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 4840echo "${ECHO_T}$ac_cv_type_char" >&6 4841 4842echo "$as_me:$LINENO: checking size of char" >&5 4843echo $ECHO_N "checking size of char... $ECHO_C" >&6 4844if test "${ac_cv_sizeof_char+set}" = set; then 4845 echo $ECHO_N "(cached) $ECHO_C" >&6 4846else 4847 if test "$ac_cv_type_char" = yes; then 4848 # The cast to unsigned long works around a bug in the HP C Compiler 4849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4851 # This bug is HP SR number 8606223364. 4852 if test "$cross_compiling" = yes; then 4853 # Depending upon the size, compute the lo and hi bounds. 4854cat >conftest.$ac_ext <<_ACEOF 4855/* confdefs.h. */ 4856_ACEOF 4857cat confdefs.h >>conftest.$ac_ext 4858cat >>conftest.$ac_ext <<_ACEOF 4859/* end confdefs.h. */ 4860$ac_includes_default 4861int 4862main () 4863{ 4864static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 4865test_array [0] = 0 4866 4867 ; 4868 return 0; 4869} 4870_ACEOF 4871rm -f conftest.$ac_objext 4872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4873 (eval $ac_compile) 2>conftest.er1 4874 ac_status=$? 4875 grep -v '^ *+' conftest.er1 >conftest.err 4876 rm -f conftest.er1 4877 cat conftest.err >&5 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); } && 4880 { ac_try='test -z "$ac_c_werror_flag" 4881 || test ! -s conftest.err' 4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4883 (eval $ac_try) 2>&5 4884 ac_status=$? 4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4886 (exit $ac_status); }; } && 4887 { ac_try='test -s conftest.$ac_objext' 4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4889 (eval $ac_try) 2>&5 4890 ac_status=$? 4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4892 (exit $ac_status); }; }; then 4893 ac_lo=0 ac_mid=0 4894 while :; do 4895 cat >conftest.$ac_ext <<_ACEOF 4896/* confdefs.h. */ 4897_ACEOF 4898cat confdefs.h >>conftest.$ac_ext 4899cat >>conftest.$ac_ext <<_ACEOF 4900/* end confdefs.h. */ 4901$ac_includes_default 4902int 4903main () 4904{ 4905static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 4906test_array [0] = 0 4907 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912rm -f conftest.$ac_objext 4913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4914 (eval $ac_compile) 2>conftest.er1 4915 ac_status=$? 4916 grep -v '^ *+' conftest.er1 >conftest.err 4917 rm -f conftest.er1 4918 cat conftest.err >&5 4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4920 (exit $ac_status); } && 4921 { ac_try='test -z "$ac_c_werror_flag" 4922 || test ! -s conftest.err' 4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4924 (eval $ac_try) 2>&5 4925 ac_status=$? 4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4927 (exit $ac_status); }; } && 4928 { ac_try='test -s conftest.$ac_objext' 4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4930 (eval $ac_try) 2>&5 4931 ac_status=$? 4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4933 (exit $ac_status); }; }; then 4934 ac_hi=$ac_mid; break 4935else 4936 echo "$as_me: failed program was:" >&5 4937sed 's/^/| /' conftest.$ac_ext >&5 4938 4939ac_lo=`expr $ac_mid + 1` 4940 if test $ac_lo -le $ac_mid; then 4941 ac_lo= ac_hi= 4942 break 4943 fi 4944 ac_mid=`expr 2 '*' $ac_mid + 1` 4945fi 4946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4947 done 4948else 4949 echo "$as_me: failed program was:" >&5 4950sed 's/^/| /' conftest.$ac_ext >&5 4951 4952cat >conftest.$ac_ext <<_ACEOF 4953/* confdefs.h. */ 4954_ACEOF 4955cat confdefs.h >>conftest.$ac_ext 4956cat >>conftest.$ac_ext <<_ACEOF 4957/* end confdefs.h. */ 4958$ac_includes_default 4959int 4960main () 4961{ 4962static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 4963test_array [0] = 0 4964 4965 ; 4966 return 0; 4967} 4968_ACEOF 4969rm -f conftest.$ac_objext 4970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4971 (eval $ac_compile) 2>conftest.er1 4972 ac_status=$? 4973 grep -v '^ *+' conftest.er1 >conftest.err 4974 rm -f conftest.er1 4975 cat conftest.err >&5 4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4977 (exit $ac_status); } && 4978 { ac_try='test -z "$ac_c_werror_flag" 4979 || test ! -s conftest.err' 4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4981 (eval $ac_try) 2>&5 4982 ac_status=$? 4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4984 (exit $ac_status); }; } && 4985 { ac_try='test -s conftest.$ac_objext' 4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4987 (eval $ac_try) 2>&5 4988 ac_status=$? 4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4990 (exit $ac_status); }; }; then 4991 ac_hi=-1 ac_mid=-1 4992 while :; do 4993 cat >conftest.$ac_ext <<_ACEOF 4994/* confdefs.h. */ 4995_ACEOF 4996cat confdefs.h >>conftest.$ac_ext 4997cat >>conftest.$ac_ext <<_ACEOF 4998/* end confdefs.h. */ 4999$ac_includes_default 5000int 5001main () 5002{ 5003static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 5004test_array [0] = 0 5005 5006 ; 5007 return 0; 5008} 5009_ACEOF 5010rm -f conftest.$ac_objext 5011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5012 (eval $ac_compile) 2>conftest.er1 5013 ac_status=$? 5014 grep -v '^ *+' conftest.er1 >conftest.err 5015 rm -f conftest.er1 5016 cat conftest.err >&5 5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5018 (exit $ac_status); } && 5019 { ac_try='test -z "$ac_c_werror_flag" 5020 || test ! -s conftest.err' 5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5022 (eval $ac_try) 2>&5 5023 ac_status=$? 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 (exit $ac_status); }; } && 5026 { ac_try='test -s conftest.$ac_objext' 5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5028 (eval $ac_try) 2>&5 5029 ac_status=$? 5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5031 (exit $ac_status); }; }; then 5032 ac_lo=$ac_mid; break 5033else 5034 echo "$as_me: failed program was:" >&5 5035sed 's/^/| /' conftest.$ac_ext >&5 5036 5037ac_hi=`expr '(' $ac_mid ')' - 1` 5038 if test $ac_mid -le $ac_hi; then 5039 ac_lo= ac_hi= 5040 break 5041 fi 5042 ac_mid=`expr 2 '*' $ac_mid` 5043fi 5044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5045 done 5046else 5047 echo "$as_me: failed program was:" >&5 5048sed 's/^/| /' conftest.$ac_ext >&5 5049 5050ac_lo= ac_hi= 5051fi 5052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5053fi 5054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5055# Binary search between lo and hi bounds. 5056while test "x$ac_lo" != "x$ac_hi"; do 5057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5058 cat >conftest.$ac_ext <<_ACEOF 5059/* confdefs.h. */ 5060_ACEOF 5061cat confdefs.h >>conftest.$ac_ext 5062cat >>conftest.$ac_ext <<_ACEOF 5063/* end confdefs.h. */ 5064$ac_includes_default 5065int 5066main () 5067{ 5068static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 5069test_array [0] = 0 5070 5071 ; 5072 return 0; 5073} 5074_ACEOF 5075rm -f conftest.$ac_objext 5076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5077 (eval $ac_compile) 2>conftest.er1 5078 ac_status=$? 5079 grep -v '^ *+' conftest.er1 >conftest.err 5080 rm -f conftest.er1 5081 cat conftest.err >&5 5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5083 (exit $ac_status); } && 5084 { ac_try='test -z "$ac_c_werror_flag" 5085 || test ! -s conftest.err' 5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5087 (eval $ac_try) 2>&5 5088 ac_status=$? 5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5090 (exit $ac_status); }; } && 5091 { ac_try='test -s conftest.$ac_objext' 5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5093 (eval $ac_try) 2>&5 5094 ac_status=$? 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5096 (exit $ac_status); }; }; then 5097 ac_hi=$ac_mid 5098else 5099 echo "$as_me: failed program was:" >&5 5100sed 's/^/| /' conftest.$ac_ext >&5 5101 5102ac_lo=`expr '(' $ac_mid ')' + 1` 5103fi 5104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5105done 5106case $ac_lo in 5107?*) ac_cv_sizeof_char=$ac_lo;; 5108'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 5109See \`config.log' for more details." >&5 5110echo "$as_me: error: cannot compute sizeof (char), 77 5111See \`config.log' for more details." >&2;} 5112 { (exit 1); exit 1; }; } ;; 5113esac 5114else 5115 if test "$cross_compiling" = yes; then 5116 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5117See \`config.log' for more details." >&5 5118echo "$as_me: error: cannot run test program while cross compiling 5119See \`config.log' for more details." >&2;} 5120 { (exit 1); exit 1; }; } 5121else 5122 cat >conftest.$ac_ext <<_ACEOF 5123/* confdefs.h. */ 5124_ACEOF 5125cat confdefs.h >>conftest.$ac_ext 5126cat >>conftest.$ac_ext <<_ACEOF 5127/* end confdefs.h. */ 5128$ac_includes_default 5129long longval () { return (long) (sizeof (char)); } 5130unsigned long ulongval () { return (long) (sizeof (char)); } 5131#include <stdio.h> 5132#include <stdlib.h> 5133int 5134main () 5135{ 5136 5137 FILE *f = fopen ("conftest.val", "w"); 5138 if (! f) 5139 exit (1); 5140 if (((long) (sizeof (char))) < 0) 5141 { 5142 long i = longval (); 5143 if (i != ((long) (sizeof (char)))) 5144 exit (1); 5145 fprintf (f, "%ld\n", i); 5146 } 5147 else 5148 { 5149 unsigned long i = ulongval (); 5150 if (i != ((long) (sizeof (char)))) 5151 exit (1); 5152 fprintf (f, "%lu\n", i); 5153 } 5154 exit (ferror (f) || fclose (f) != 0); 5155 5156 ; 5157 return 0; 5158} 5159_ACEOF 5160rm -f conftest$ac_exeext 5161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5162 (eval $ac_link) 2>&5 5163 ac_status=$? 5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5167 (eval $ac_try) 2>&5 5168 ac_status=$? 5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5170 (exit $ac_status); }; }; then 5171 ac_cv_sizeof_char=`cat conftest.val` 5172else 5173 echo "$as_me: program exited with status $ac_status" >&5 5174echo "$as_me: failed program was:" >&5 5175sed 's/^/| /' conftest.$ac_ext >&5 5176 5177( exit $ac_status ) 5178{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 5179See \`config.log' for more details." >&5 5180echo "$as_me: error: cannot compute sizeof (char), 77 5181See \`config.log' for more details." >&2;} 5182 { (exit 1); exit 1; }; } 5183fi 5184rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5185fi 5186fi 5187rm -f conftest.val 5188else 5189 ac_cv_sizeof_char=0 5190fi 5191fi 5192echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 5193echo "${ECHO_T}$ac_cv_sizeof_char" >&6 5194cat >>confdefs.h <<_ACEOF 5195#define SIZEOF_CHAR $ac_cv_sizeof_char 5196_ACEOF 5197 5198 5199echo "$as_me:$LINENO: checking for short" >&5 5200echo $ECHO_N "checking for short... $ECHO_C" >&6 5201if test "${ac_cv_type_short+set}" = set; then 5202 echo $ECHO_N "(cached) $ECHO_C" >&6 5203else 5204 cat >conftest.$ac_ext <<_ACEOF 5205/* confdefs.h. */ 5206_ACEOF 5207cat confdefs.h >>conftest.$ac_ext 5208cat >>conftest.$ac_ext <<_ACEOF 5209/* end confdefs.h. */ 5210$ac_includes_default 5211int 5212main () 5213{ 5214if ((short *) 0) 5215 return 0; 5216if (sizeof (short)) 5217 return 0; 5218 ; 5219 return 0; 5220} 5221_ACEOF 5222rm -f conftest.$ac_objext 5223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5224 (eval $ac_compile) 2>conftest.er1 5225 ac_status=$? 5226 grep -v '^ *+' conftest.er1 >conftest.err 5227 rm -f conftest.er1 5228 cat conftest.err >&5 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); } && 5231 { ac_try='test -z "$ac_c_werror_flag" 5232 || test ! -s conftest.err' 5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5234 (eval $ac_try) 2>&5 5235 ac_status=$? 5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5237 (exit $ac_status); }; } && 5238 { ac_try='test -s conftest.$ac_objext' 5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5240 (eval $ac_try) 2>&5 5241 ac_status=$? 5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5243 (exit $ac_status); }; }; then 5244 ac_cv_type_short=yes 5245else 5246 echo "$as_me: failed program was:" >&5 5247sed 's/^/| /' conftest.$ac_ext >&5 5248 5249ac_cv_type_short=no 5250fi 5251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5252fi 5253echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 5254echo "${ECHO_T}$ac_cv_type_short" >&6 5255 5256echo "$as_me:$LINENO: checking size of short" >&5 5257echo $ECHO_N "checking size of short... $ECHO_C" >&6 5258if test "${ac_cv_sizeof_short+set}" = set; then 5259 echo $ECHO_N "(cached) $ECHO_C" >&6 5260else 5261 if test "$ac_cv_type_short" = yes; then 5262 # The cast to unsigned long works around a bug in the HP C Compiler 5263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5265 # This bug is HP SR number 8606223364. 5266 if test "$cross_compiling" = yes; then 5267 # Depending upon the size, compute the lo and hi bounds. 5268cat >conftest.$ac_ext <<_ACEOF 5269/* confdefs.h. */ 5270_ACEOF 5271cat confdefs.h >>conftest.$ac_ext 5272cat >>conftest.$ac_ext <<_ACEOF 5273/* end confdefs.h. */ 5274$ac_includes_default 5275int 5276main () 5277{ 5278static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 5279test_array [0] = 0 5280 5281 ; 5282 return 0; 5283} 5284_ACEOF 5285rm -f conftest.$ac_objext 5286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5287 (eval $ac_compile) 2>conftest.er1 5288 ac_status=$? 5289 grep -v '^ *+' conftest.er1 >conftest.err 5290 rm -f conftest.er1 5291 cat conftest.err >&5 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); } && 5294 { ac_try='test -z "$ac_c_werror_flag" 5295 || test ! -s conftest.err' 5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5297 (eval $ac_try) 2>&5 5298 ac_status=$? 5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5300 (exit $ac_status); }; } && 5301 { ac_try='test -s conftest.$ac_objext' 5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5303 (eval $ac_try) 2>&5 5304 ac_status=$? 5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5306 (exit $ac_status); }; }; then 5307 ac_lo=0 ac_mid=0 5308 while :; do 5309 cat >conftest.$ac_ext <<_ACEOF 5310/* confdefs.h. */ 5311_ACEOF 5312cat confdefs.h >>conftest.$ac_ext 5313cat >>conftest.$ac_ext <<_ACEOF 5314/* end confdefs.h. */ 5315$ac_includes_default 5316int 5317main () 5318{ 5319static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 5320test_array [0] = 0 5321 5322 ; 5323 return 0; 5324} 5325_ACEOF 5326rm -f conftest.$ac_objext 5327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5328 (eval $ac_compile) 2>conftest.er1 5329 ac_status=$? 5330 grep -v '^ *+' conftest.er1 >conftest.err 5331 rm -f conftest.er1 5332 cat conftest.err >&5 5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5334 (exit $ac_status); } && 5335 { ac_try='test -z "$ac_c_werror_flag" 5336 || test ! -s conftest.err' 5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5338 (eval $ac_try) 2>&5 5339 ac_status=$? 5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); }; } && 5342 { ac_try='test -s conftest.$ac_objext' 5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5344 (eval $ac_try) 2>&5 5345 ac_status=$? 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); }; }; then 5348 ac_hi=$ac_mid; break 5349else 5350 echo "$as_me: failed program was:" >&5 5351sed 's/^/| /' conftest.$ac_ext >&5 5352 5353ac_lo=`expr $ac_mid + 1` 5354 if test $ac_lo -le $ac_mid; then 5355 ac_lo= ac_hi= 5356 break 5357 fi 5358 ac_mid=`expr 2 '*' $ac_mid + 1` 5359fi 5360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5361 done 5362else 5363 echo "$as_me: failed program was:" >&5 5364sed 's/^/| /' conftest.$ac_ext >&5 5365 5366cat >conftest.$ac_ext <<_ACEOF 5367/* confdefs.h. */ 5368_ACEOF 5369cat confdefs.h >>conftest.$ac_ext 5370cat >>conftest.$ac_ext <<_ACEOF 5371/* end confdefs.h. */ 5372$ac_includes_default 5373int 5374main () 5375{ 5376static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 5377test_array [0] = 0 5378 5379 ; 5380 return 0; 5381} 5382_ACEOF 5383rm -f conftest.$ac_objext 5384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5385 (eval $ac_compile) 2>conftest.er1 5386 ac_status=$? 5387 grep -v '^ *+' conftest.er1 >conftest.err 5388 rm -f conftest.er1 5389 cat conftest.err >&5 5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5391 (exit $ac_status); } && 5392 { ac_try='test -z "$ac_c_werror_flag" 5393 || test ! -s conftest.err' 5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5395 (eval $ac_try) 2>&5 5396 ac_status=$? 5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5398 (exit $ac_status); }; } && 5399 { ac_try='test -s conftest.$ac_objext' 5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5401 (eval $ac_try) 2>&5 5402 ac_status=$? 5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5404 (exit $ac_status); }; }; then 5405 ac_hi=-1 ac_mid=-1 5406 while :; do 5407 cat >conftest.$ac_ext <<_ACEOF 5408/* confdefs.h. */ 5409_ACEOF 5410cat confdefs.h >>conftest.$ac_ext 5411cat >>conftest.$ac_ext <<_ACEOF 5412/* end confdefs.h. */ 5413$ac_includes_default 5414int 5415main () 5416{ 5417static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 5418test_array [0] = 0 5419 5420 ; 5421 return 0; 5422} 5423_ACEOF 5424rm -f conftest.$ac_objext 5425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5426 (eval $ac_compile) 2>conftest.er1 5427 ac_status=$? 5428 grep -v '^ *+' conftest.er1 >conftest.err 5429 rm -f conftest.er1 5430 cat conftest.err >&5 5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5432 (exit $ac_status); } && 5433 { ac_try='test -z "$ac_c_werror_flag" 5434 || test ! -s conftest.err' 5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5436 (eval $ac_try) 2>&5 5437 ac_status=$? 5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5439 (exit $ac_status); }; } && 5440 { ac_try='test -s conftest.$ac_objext' 5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5442 (eval $ac_try) 2>&5 5443 ac_status=$? 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); }; }; then 5446 ac_lo=$ac_mid; break 5447else 5448 echo "$as_me: failed program was:" >&5 5449sed 's/^/| /' conftest.$ac_ext >&5 5450 5451ac_hi=`expr '(' $ac_mid ')' - 1` 5452 if test $ac_mid -le $ac_hi; then 5453 ac_lo= ac_hi= 5454 break 5455 fi 5456 ac_mid=`expr 2 '*' $ac_mid` 5457fi 5458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5459 done 5460else 5461 echo "$as_me: failed program was:" >&5 5462sed 's/^/| /' conftest.$ac_ext >&5 5463 5464ac_lo= ac_hi= 5465fi 5466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5467fi 5468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5469# Binary search between lo and hi bounds. 5470while test "x$ac_lo" != "x$ac_hi"; do 5471 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5472 cat >conftest.$ac_ext <<_ACEOF 5473/* confdefs.h. */ 5474_ACEOF 5475cat confdefs.h >>conftest.$ac_ext 5476cat >>conftest.$ac_ext <<_ACEOF 5477/* end confdefs.h. */ 5478$ac_includes_default 5479int 5480main () 5481{ 5482static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 5483test_array [0] = 0 5484 5485 ; 5486 return 0; 5487} 5488_ACEOF 5489rm -f conftest.$ac_objext 5490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5491 (eval $ac_compile) 2>conftest.er1 5492 ac_status=$? 5493 grep -v '^ *+' conftest.er1 >conftest.err 5494 rm -f conftest.er1 5495 cat conftest.err >&5 5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5497 (exit $ac_status); } && 5498 { ac_try='test -z "$ac_c_werror_flag" 5499 || test ! -s conftest.err' 5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5501 (eval $ac_try) 2>&5 5502 ac_status=$? 5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5504 (exit $ac_status); }; } && 5505 { ac_try='test -s conftest.$ac_objext' 5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5507 (eval $ac_try) 2>&5 5508 ac_status=$? 5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5510 (exit $ac_status); }; }; then 5511 ac_hi=$ac_mid 5512else 5513 echo "$as_me: failed program was:" >&5 5514sed 's/^/| /' conftest.$ac_ext >&5 5515 5516ac_lo=`expr '(' $ac_mid ')' + 1` 5517fi 5518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5519done 5520case $ac_lo in 5521?*) ac_cv_sizeof_short=$ac_lo;; 5522'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5523See \`config.log' for more details." >&5 5524echo "$as_me: error: cannot compute sizeof (short), 77 5525See \`config.log' for more details." >&2;} 5526 { (exit 1); exit 1; }; } ;; 5527esac 5528else 5529 if test "$cross_compiling" = yes; then 5530 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5531See \`config.log' for more details." >&5 5532echo "$as_me: error: cannot run test program while cross compiling 5533See \`config.log' for more details." >&2;} 5534 { (exit 1); exit 1; }; } 5535else 5536 cat >conftest.$ac_ext <<_ACEOF 5537/* confdefs.h. */ 5538_ACEOF 5539cat confdefs.h >>conftest.$ac_ext 5540cat >>conftest.$ac_ext <<_ACEOF 5541/* end confdefs.h. */ 5542$ac_includes_default 5543long longval () { return (long) (sizeof (short)); } 5544unsigned long ulongval () { return (long) (sizeof (short)); } 5545#include <stdio.h> 5546#include <stdlib.h> 5547int 5548main () 5549{ 5550 5551 FILE *f = fopen ("conftest.val", "w"); 5552 if (! f) 5553 exit (1); 5554 if (((long) (sizeof (short))) < 0) 5555 { 5556 long i = longval (); 5557 if (i != ((long) (sizeof (short)))) 5558 exit (1); 5559 fprintf (f, "%ld\n", i); 5560 } 5561 else 5562 { 5563 unsigned long i = ulongval (); 5564 if (i != ((long) (sizeof (short)))) 5565 exit (1); 5566 fprintf (f, "%lu\n", i); 5567 } 5568 exit (ferror (f) || fclose (f) != 0); 5569 5570 ; 5571 return 0; 5572} 5573_ACEOF 5574rm -f conftest$ac_exeext 5575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5576 (eval $ac_link) 2>&5 5577 ac_status=$? 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5581 (eval $ac_try) 2>&5 5582 ac_status=$? 5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 (exit $ac_status); }; }; then 5585 ac_cv_sizeof_short=`cat conftest.val` 5586else 5587 echo "$as_me: program exited with status $ac_status" >&5 5588echo "$as_me: failed program was:" >&5 5589sed 's/^/| /' conftest.$ac_ext >&5 5590 5591( exit $ac_status ) 5592{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 5593See \`config.log' for more details." >&5 5594echo "$as_me: error: cannot compute sizeof (short), 77 5595See \`config.log' for more details." >&2;} 5596 { (exit 1); exit 1; }; } 5597fi 5598rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5599fi 5600fi 5601rm -f conftest.val 5602else 5603 ac_cv_sizeof_short=0 5604fi 5605fi 5606echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 5607echo "${ECHO_T}$ac_cv_sizeof_short" >&6 5608cat >>confdefs.h <<_ACEOF 5609#define SIZEOF_SHORT $ac_cv_sizeof_short 5610_ACEOF 5611 5612 5613echo "$as_me:$LINENO: checking for int" >&5 5614echo $ECHO_N "checking for int... $ECHO_C" >&6 5615if test "${ac_cv_type_int+set}" = set; then 5616 echo $ECHO_N "(cached) $ECHO_C" >&6 5617else 5618 cat >conftest.$ac_ext <<_ACEOF 5619/* confdefs.h. */ 5620_ACEOF 5621cat confdefs.h >>conftest.$ac_ext 5622cat >>conftest.$ac_ext <<_ACEOF 5623/* end confdefs.h. */ 5624$ac_includes_default 5625int 5626main () 5627{ 5628if ((int *) 0) 5629 return 0; 5630if (sizeof (int)) 5631 return 0; 5632 ; 5633 return 0; 5634} 5635_ACEOF 5636rm -f conftest.$ac_objext 5637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5638 (eval $ac_compile) 2>conftest.er1 5639 ac_status=$? 5640 grep -v '^ *+' conftest.er1 >conftest.err 5641 rm -f conftest.er1 5642 cat conftest.err >&5 5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5644 (exit $ac_status); } && 5645 { ac_try='test -z "$ac_c_werror_flag" 5646 || test ! -s conftest.err' 5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5648 (eval $ac_try) 2>&5 5649 ac_status=$? 5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5651 (exit $ac_status); }; } && 5652 { ac_try='test -s conftest.$ac_objext' 5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5654 (eval $ac_try) 2>&5 5655 ac_status=$? 5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5657 (exit $ac_status); }; }; then 5658 ac_cv_type_int=yes 5659else 5660 echo "$as_me: failed program was:" >&5 5661sed 's/^/| /' conftest.$ac_ext >&5 5662 5663ac_cv_type_int=no 5664fi 5665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5666fi 5667echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 5668echo "${ECHO_T}$ac_cv_type_int" >&6 5669 5670echo "$as_me:$LINENO: checking size of int" >&5 5671echo $ECHO_N "checking size of int... $ECHO_C" >&6 5672if test "${ac_cv_sizeof_int+set}" = set; then 5673 echo $ECHO_N "(cached) $ECHO_C" >&6 5674else 5675 if test "$ac_cv_type_int" = yes; then 5676 # The cast to unsigned long works around a bug in the HP C Compiler 5677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5679 # This bug is HP SR number 8606223364. 5680 if test "$cross_compiling" = yes; then 5681 # Depending upon the size, compute the lo and hi bounds. 5682cat >conftest.$ac_ext <<_ACEOF 5683/* confdefs.h. */ 5684_ACEOF 5685cat confdefs.h >>conftest.$ac_ext 5686cat >>conftest.$ac_ext <<_ACEOF 5687/* end confdefs.h. */ 5688$ac_includes_default 5689int 5690main () 5691{ 5692static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 5693test_array [0] = 0 5694 5695 ; 5696 return 0; 5697} 5698_ACEOF 5699rm -f conftest.$ac_objext 5700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5701 (eval $ac_compile) 2>conftest.er1 5702 ac_status=$? 5703 grep -v '^ *+' conftest.er1 >conftest.err 5704 rm -f conftest.er1 5705 cat conftest.err >&5 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); } && 5708 { ac_try='test -z "$ac_c_werror_flag" 5709 || test ! -s conftest.err' 5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5711 (eval $ac_try) 2>&5 5712 ac_status=$? 5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5714 (exit $ac_status); }; } && 5715 { ac_try='test -s conftest.$ac_objext' 5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5717 (eval $ac_try) 2>&5 5718 ac_status=$? 5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5720 (exit $ac_status); }; }; then 5721 ac_lo=0 ac_mid=0 5722 while :; do 5723 cat >conftest.$ac_ext <<_ACEOF 5724/* confdefs.h. */ 5725_ACEOF 5726cat confdefs.h >>conftest.$ac_ext 5727cat >>conftest.$ac_ext <<_ACEOF 5728/* end confdefs.h. */ 5729$ac_includes_default 5730int 5731main () 5732{ 5733static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5734test_array [0] = 0 5735 5736 ; 5737 return 0; 5738} 5739_ACEOF 5740rm -f conftest.$ac_objext 5741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5742 (eval $ac_compile) 2>conftest.er1 5743 ac_status=$? 5744 grep -v '^ *+' conftest.er1 >conftest.err 5745 rm -f conftest.er1 5746 cat conftest.err >&5 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); } && 5749 { ac_try='test -z "$ac_c_werror_flag" 5750 || test ! -s conftest.err' 5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5752 (eval $ac_try) 2>&5 5753 ac_status=$? 5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 (exit $ac_status); }; } && 5756 { ac_try='test -s conftest.$ac_objext' 5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5758 (eval $ac_try) 2>&5 5759 ac_status=$? 5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5761 (exit $ac_status); }; }; then 5762 ac_hi=$ac_mid; break 5763else 5764 echo "$as_me: failed program was:" >&5 5765sed 's/^/| /' conftest.$ac_ext >&5 5766 5767ac_lo=`expr $ac_mid + 1` 5768 if test $ac_lo -le $ac_mid; then 5769 ac_lo= ac_hi= 5770 break 5771 fi 5772 ac_mid=`expr 2 '*' $ac_mid + 1` 5773fi 5774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5775 done 5776else 5777 echo "$as_me: failed program was:" >&5 5778sed 's/^/| /' conftest.$ac_ext >&5 5779 5780cat >conftest.$ac_ext <<_ACEOF 5781/* confdefs.h. */ 5782_ACEOF 5783cat confdefs.h >>conftest.$ac_ext 5784cat >>conftest.$ac_ext <<_ACEOF 5785/* end confdefs.h. */ 5786$ac_includes_default 5787int 5788main () 5789{ 5790static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 5791test_array [0] = 0 5792 5793 ; 5794 return 0; 5795} 5796_ACEOF 5797rm -f conftest.$ac_objext 5798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5799 (eval $ac_compile) 2>conftest.er1 5800 ac_status=$? 5801 grep -v '^ *+' conftest.er1 >conftest.err 5802 rm -f conftest.er1 5803 cat conftest.err >&5 5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5805 (exit $ac_status); } && 5806 { ac_try='test -z "$ac_c_werror_flag" 5807 || test ! -s conftest.err' 5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5809 (eval $ac_try) 2>&5 5810 ac_status=$? 5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5812 (exit $ac_status); }; } && 5813 { ac_try='test -s conftest.$ac_objext' 5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5815 (eval $ac_try) 2>&5 5816 ac_status=$? 5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5818 (exit $ac_status); }; }; then 5819 ac_hi=-1 ac_mid=-1 5820 while :; do 5821 cat >conftest.$ac_ext <<_ACEOF 5822/* confdefs.h. */ 5823_ACEOF 5824cat confdefs.h >>conftest.$ac_ext 5825cat >>conftest.$ac_ext <<_ACEOF 5826/* end confdefs.h. */ 5827$ac_includes_default 5828int 5829main () 5830{ 5831static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 5832test_array [0] = 0 5833 5834 ; 5835 return 0; 5836} 5837_ACEOF 5838rm -f conftest.$ac_objext 5839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5840 (eval $ac_compile) 2>conftest.er1 5841 ac_status=$? 5842 grep -v '^ *+' conftest.er1 >conftest.err 5843 rm -f conftest.er1 5844 cat conftest.err >&5 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5846 (exit $ac_status); } && 5847 { ac_try='test -z "$ac_c_werror_flag" 5848 || test ! -s conftest.err' 5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5850 (eval $ac_try) 2>&5 5851 ac_status=$? 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); }; } && 5854 { ac_try='test -s conftest.$ac_objext' 5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5856 (eval $ac_try) 2>&5 5857 ac_status=$? 5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5859 (exit $ac_status); }; }; then 5860 ac_lo=$ac_mid; break 5861else 5862 echo "$as_me: failed program was:" >&5 5863sed 's/^/| /' conftest.$ac_ext >&5 5864 5865ac_hi=`expr '(' $ac_mid ')' - 1` 5866 if test $ac_mid -le $ac_hi; then 5867 ac_lo= ac_hi= 5868 break 5869 fi 5870 ac_mid=`expr 2 '*' $ac_mid` 5871fi 5872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5873 done 5874else 5875 echo "$as_me: failed program was:" >&5 5876sed 's/^/| /' conftest.$ac_ext >&5 5877 5878ac_lo= ac_hi= 5879fi 5880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5881fi 5882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5883# Binary search between lo and hi bounds. 5884while test "x$ac_lo" != "x$ac_hi"; do 5885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5886 cat >conftest.$ac_ext <<_ACEOF 5887/* confdefs.h. */ 5888_ACEOF 5889cat confdefs.h >>conftest.$ac_ext 5890cat >>conftest.$ac_ext <<_ACEOF 5891/* end confdefs.h. */ 5892$ac_includes_default 5893int 5894main () 5895{ 5896static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 5897test_array [0] = 0 5898 5899 ; 5900 return 0; 5901} 5902_ACEOF 5903rm -f conftest.$ac_objext 5904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5905 (eval $ac_compile) 2>conftest.er1 5906 ac_status=$? 5907 grep -v '^ *+' conftest.er1 >conftest.err 5908 rm -f conftest.er1 5909 cat conftest.err >&5 5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5911 (exit $ac_status); } && 5912 { ac_try='test -z "$ac_c_werror_flag" 5913 || test ! -s conftest.err' 5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5915 (eval $ac_try) 2>&5 5916 ac_status=$? 5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5918 (exit $ac_status); }; } && 5919 { ac_try='test -s conftest.$ac_objext' 5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5921 (eval $ac_try) 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); }; }; then 5925 ac_hi=$ac_mid 5926else 5927 echo "$as_me: failed program was:" >&5 5928sed 's/^/| /' conftest.$ac_ext >&5 5929 5930ac_lo=`expr '(' $ac_mid ')' + 1` 5931fi 5932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5933done 5934case $ac_lo in 5935?*) ac_cv_sizeof_int=$ac_lo;; 5936'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 5937See \`config.log' for more details." >&5 5938echo "$as_me: error: cannot compute sizeof (int), 77 5939See \`config.log' for more details." >&2;} 5940 { (exit 1); exit 1; }; } ;; 5941esac 5942else 5943 if test "$cross_compiling" = yes; then 5944 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 5945See \`config.log' for more details." >&5 5946echo "$as_me: error: cannot run test program while cross compiling 5947See \`config.log' for more details." >&2;} 5948 { (exit 1); exit 1; }; } 5949else 5950 cat >conftest.$ac_ext <<_ACEOF 5951/* confdefs.h. */ 5952_ACEOF 5953cat confdefs.h >>conftest.$ac_ext 5954cat >>conftest.$ac_ext <<_ACEOF 5955/* end confdefs.h. */ 5956$ac_includes_default 5957long longval () { return (long) (sizeof (int)); } 5958unsigned long ulongval () { return (long) (sizeof (int)); } 5959#include <stdio.h> 5960#include <stdlib.h> 5961int 5962main () 5963{ 5964 5965 FILE *f = fopen ("conftest.val", "w"); 5966 if (! f) 5967 exit (1); 5968 if (((long) (sizeof (int))) < 0) 5969 { 5970 long i = longval (); 5971 if (i != ((long) (sizeof (int)))) 5972 exit (1); 5973 fprintf (f, "%ld\n", i); 5974 } 5975 else 5976 { 5977 unsigned long i = ulongval (); 5978 if (i != ((long) (sizeof (int)))) 5979 exit (1); 5980 fprintf (f, "%lu\n", i); 5981 } 5982 exit (ferror (f) || fclose (f) != 0); 5983 5984 ; 5985 return 0; 5986} 5987_ACEOF 5988rm -f conftest$ac_exeext 5989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5990 (eval $ac_link) 2>&5 5991 ac_status=$? 5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5995 (eval $ac_try) 2>&5 5996 ac_status=$? 5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5998 (exit $ac_status); }; }; then 5999 ac_cv_sizeof_int=`cat conftest.val` 6000else 6001 echo "$as_me: program exited with status $ac_status" >&5 6002echo "$as_me: failed program was:" >&5 6003sed 's/^/| /' conftest.$ac_ext >&5 6004 6005( exit $ac_status ) 6006{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 6007See \`config.log' for more details." >&5 6008echo "$as_me: error: cannot compute sizeof (int), 77 6009See \`config.log' for more details." >&2;} 6010 { (exit 1); exit 1; }; } 6011fi 6012rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6013fi 6014fi 6015rm -f conftest.val 6016else 6017 ac_cv_sizeof_int=0 6018fi 6019fi 6020echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 6021echo "${ECHO_T}$ac_cv_sizeof_int" >&6 6022cat >>confdefs.h <<_ACEOF 6023#define SIZEOF_INT $ac_cv_sizeof_int 6024_ACEOF 6025 6026 6027echo "$as_me:$LINENO: checking for long" >&5 6028echo $ECHO_N "checking for long... $ECHO_C" >&6 6029if test "${ac_cv_type_long+set}" = set; then 6030 echo $ECHO_N "(cached) $ECHO_C" >&6 6031else 6032 cat >conftest.$ac_ext <<_ACEOF 6033/* confdefs.h. */ 6034_ACEOF 6035cat confdefs.h >>conftest.$ac_ext 6036cat >>conftest.$ac_ext <<_ACEOF 6037/* end confdefs.h. */ 6038$ac_includes_default 6039int 6040main () 6041{ 6042if ((long *) 0) 6043 return 0; 6044if (sizeof (long)) 6045 return 0; 6046 ; 6047 return 0; 6048} 6049_ACEOF 6050rm -f conftest.$ac_objext 6051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6052 (eval $ac_compile) 2>conftest.er1 6053 ac_status=$? 6054 grep -v '^ *+' conftest.er1 >conftest.err 6055 rm -f conftest.er1 6056 cat conftest.err >&5 6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6058 (exit $ac_status); } && 6059 { ac_try='test -z "$ac_c_werror_flag" 6060 || test ! -s conftest.err' 6061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6062 (eval $ac_try) 2>&5 6063 ac_status=$? 6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6065 (exit $ac_status); }; } && 6066 { ac_try='test -s conftest.$ac_objext' 6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6068 (eval $ac_try) 2>&5 6069 ac_status=$? 6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6071 (exit $ac_status); }; }; then 6072 ac_cv_type_long=yes 6073else 6074 echo "$as_me: failed program was:" >&5 6075sed 's/^/| /' conftest.$ac_ext >&5 6076 6077ac_cv_type_long=no 6078fi 6079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6080fi 6081echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 6082echo "${ECHO_T}$ac_cv_type_long" >&6 6083 6084echo "$as_me:$LINENO: checking size of long" >&5 6085echo $ECHO_N "checking size of long... $ECHO_C" >&6 6086if test "${ac_cv_sizeof_long+set}" = set; then 6087 echo $ECHO_N "(cached) $ECHO_C" >&6 6088else 6089 if test "$ac_cv_type_long" = yes; then 6090 # The cast to unsigned long works around a bug in the HP C Compiler 6091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6093 # This bug is HP SR number 8606223364. 6094 if test "$cross_compiling" = yes; then 6095 # Depending upon the size, compute the lo and hi bounds. 6096cat >conftest.$ac_ext <<_ACEOF 6097/* confdefs.h. */ 6098_ACEOF 6099cat confdefs.h >>conftest.$ac_ext 6100cat >>conftest.$ac_ext <<_ACEOF 6101/* end confdefs.h. */ 6102$ac_includes_default 6103int 6104main () 6105{ 6106static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 6107test_array [0] = 0 6108 6109 ; 6110 return 0; 6111} 6112_ACEOF 6113rm -f conftest.$ac_objext 6114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6115 (eval $ac_compile) 2>conftest.er1 6116 ac_status=$? 6117 grep -v '^ *+' conftest.er1 >conftest.err 6118 rm -f conftest.er1 6119 cat conftest.err >&5 6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6121 (exit $ac_status); } && 6122 { ac_try='test -z "$ac_c_werror_flag" 6123 || test ! -s conftest.err' 6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6125 (eval $ac_try) 2>&5 6126 ac_status=$? 6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6128 (exit $ac_status); }; } && 6129 { ac_try='test -s conftest.$ac_objext' 6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6131 (eval $ac_try) 2>&5 6132 ac_status=$? 6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6134 (exit $ac_status); }; }; then 6135 ac_lo=0 ac_mid=0 6136 while :; do 6137 cat >conftest.$ac_ext <<_ACEOF 6138/* confdefs.h. */ 6139_ACEOF 6140cat confdefs.h >>conftest.$ac_ext 6141cat >>conftest.$ac_ext <<_ACEOF 6142/* end confdefs.h. */ 6143$ac_includes_default 6144int 6145main () 6146{ 6147static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 6148test_array [0] = 0 6149 6150 ; 6151 return 0; 6152} 6153_ACEOF 6154rm -f conftest.$ac_objext 6155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6156 (eval $ac_compile) 2>conftest.er1 6157 ac_status=$? 6158 grep -v '^ *+' conftest.er1 >conftest.err 6159 rm -f conftest.er1 6160 cat conftest.err >&5 6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6162 (exit $ac_status); } && 6163 { ac_try='test -z "$ac_c_werror_flag" 6164 || test ! -s conftest.err' 6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6166 (eval $ac_try) 2>&5 6167 ac_status=$? 6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6169 (exit $ac_status); }; } && 6170 { ac_try='test -s conftest.$ac_objext' 6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6172 (eval $ac_try) 2>&5 6173 ac_status=$? 6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6175 (exit $ac_status); }; }; then 6176 ac_hi=$ac_mid; break 6177else 6178 echo "$as_me: failed program was:" >&5 6179sed 's/^/| /' conftest.$ac_ext >&5 6180 6181ac_lo=`expr $ac_mid + 1` 6182 if test $ac_lo -le $ac_mid; then 6183 ac_lo= ac_hi= 6184 break 6185 fi 6186 ac_mid=`expr 2 '*' $ac_mid + 1` 6187fi 6188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6189 done 6190else 6191 echo "$as_me: failed program was:" >&5 6192sed 's/^/| /' conftest.$ac_ext >&5 6193 6194cat >conftest.$ac_ext <<_ACEOF 6195/* confdefs.h. */ 6196_ACEOF 6197cat confdefs.h >>conftest.$ac_ext 6198cat >>conftest.$ac_ext <<_ACEOF 6199/* end confdefs.h. */ 6200$ac_includes_default 6201int 6202main () 6203{ 6204static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 6205test_array [0] = 0 6206 6207 ; 6208 return 0; 6209} 6210_ACEOF 6211rm -f conftest.$ac_objext 6212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6213 (eval $ac_compile) 2>conftest.er1 6214 ac_status=$? 6215 grep -v '^ *+' conftest.er1 >conftest.err 6216 rm -f conftest.er1 6217 cat conftest.err >&5 6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6219 (exit $ac_status); } && 6220 { ac_try='test -z "$ac_c_werror_flag" 6221 || test ! -s conftest.err' 6222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6223 (eval $ac_try) 2>&5 6224 ac_status=$? 6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6226 (exit $ac_status); }; } && 6227 { ac_try='test -s conftest.$ac_objext' 6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6229 (eval $ac_try) 2>&5 6230 ac_status=$? 6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6232 (exit $ac_status); }; }; then 6233 ac_hi=-1 ac_mid=-1 6234 while :; do 6235 cat >conftest.$ac_ext <<_ACEOF 6236/* confdefs.h. */ 6237_ACEOF 6238cat confdefs.h >>conftest.$ac_ext 6239cat >>conftest.$ac_ext <<_ACEOF 6240/* end confdefs.h. */ 6241$ac_includes_default 6242int 6243main () 6244{ 6245static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 6246test_array [0] = 0 6247 6248 ; 6249 return 0; 6250} 6251_ACEOF 6252rm -f conftest.$ac_objext 6253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6254 (eval $ac_compile) 2>conftest.er1 6255 ac_status=$? 6256 grep -v '^ *+' conftest.er1 >conftest.err 6257 rm -f conftest.er1 6258 cat conftest.err >&5 6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6260 (exit $ac_status); } && 6261 { ac_try='test -z "$ac_c_werror_flag" 6262 || test ! -s conftest.err' 6263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6264 (eval $ac_try) 2>&5 6265 ac_status=$? 6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6267 (exit $ac_status); }; } && 6268 { ac_try='test -s conftest.$ac_objext' 6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6270 (eval $ac_try) 2>&5 6271 ac_status=$? 6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6273 (exit $ac_status); }; }; then 6274 ac_lo=$ac_mid; break 6275else 6276 echo "$as_me: failed program was:" >&5 6277sed 's/^/| /' conftest.$ac_ext >&5 6278 6279ac_hi=`expr '(' $ac_mid ')' - 1` 6280 if test $ac_mid -le $ac_hi; then 6281 ac_lo= ac_hi= 6282 break 6283 fi 6284 ac_mid=`expr 2 '*' $ac_mid` 6285fi 6286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6287 done 6288else 6289 echo "$as_me: failed program was:" >&5 6290sed 's/^/| /' conftest.$ac_ext >&5 6291 6292ac_lo= ac_hi= 6293fi 6294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6295fi 6296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6297# Binary search between lo and hi bounds. 6298while test "x$ac_lo" != "x$ac_hi"; do 6299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6300 cat >conftest.$ac_ext <<_ACEOF 6301/* confdefs.h. */ 6302_ACEOF 6303cat confdefs.h >>conftest.$ac_ext 6304cat >>conftest.$ac_ext <<_ACEOF 6305/* end confdefs.h. */ 6306$ac_includes_default 6307int 6308main () 6309{ 6310static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 6311test_array [0] = 0 6312 6313 ; 6314 return 0; 6315} 6316_ACEOF 6317rm -f conftest.$ac_objext 6318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6319 (eval $ac_compile) 2>conftest.er1 6320 ac_status=$? 6321 grep -v '^ *+' conftest.er1 >conftest.err 6322 rm -f conftest.er1 6323 cat conftest.err >&5 6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6325 (exit $ac_status); } && 6326 { ac_try='test -z "$ac_c_werror_flag" 6327 || test ! -s conftest.err' 6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6329 (eval $ac_try) 2>&5 6330 ac_status=$? 6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6332 (exit $ac_status); }; } && 6333 { ac_try='test -s conftest.$ac_objext' 6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6335 (eval $ac_try) 2>&5 6336 ac_status=$? 6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6338 (exit $ac_status); }; }; then 6339 ac_hi=$ac_mid 6340else 6341 echo "$as_me: failed program was:" >&5 6342sed 's/^/| /' conftest.$ac_ext >&5 6343 6344ac_lo=`expr '(' $ac_mid ')' + 1` 6345fi 6346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6347done 6348case $ac_lo in 6349?*) ac_cv_sizeof_long=$ac_lo;; 6350'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 6351See \`config.log' for more details." >&5 6352echo "$as_me: error: cannot compute sizeof (long), 77 6353See \`config.log' for more details." >&2;} 6354 { (exit 1); exit 1; }; } ;; 6355esac 6356else 6357 if test "$cross_compiling" = yes; then 6358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6359See \`config.log' for more details." >&5 6360echo "$as_me: error: cannot run test program while cross compiling 6361See \`config.log' for more details." >&2;} 6362 { (exit 1); exit 1; }; } 6363else 6364 cat >conftest.$ac_ext <<_ACEOF 6365/* confdefs.h. */ 6366_ACEOF 6367cat confdefs.h >>conftest.$ac_ext 6368cat >>conftest.$ac_ext <<_ACEOF 6369/* end confdefs.h. */ 6370$ac_includes_default 6371long longval () { return (long) (sizeof (long)); } 6372unsigned long ulongval () { return (long) (sizeof (long)); } 6373#include <stdio.h> 6374#include <stdlib.h> 6375int 6376main () 6377{ 6378 6379 FILE *f = fopen ("conftest.val", "w"); 6380 if (! f) 6381 exit (1); 6382 if (((long) (sizeof (long))) < 0) 6383 { 6384 long i = longval (); 6385 if (i != ((long) (sizeof (long)))) 6386 exit (1); 6387 fprintf (f, "%ld\n", i); 6388 } 6389 else 6390 { 6391 unsigned long i = ulongval (); 6392 if (i != ((long) (sizeof (long)))) 6393 exit (1); 6394 fprintf (f, "%lu\n", i); 6395 } 6396 exit (ferror (f) || fclose (f) != 0); 6397 6398 ; 6399 return 0; 6400} 6401_ACEOF 6402rm -f conftest$ac_exeext 6403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6404 (eval $ac_link) 2>&5 6405 ac_status=$? 6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6409 (eval $ac_try) 2>&5 6410 ac_status=$? 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); }; }; then 6413 ac_cv_sizeof_long=`cat conftest.val` 6414else 6415 echo "$as_me: program exited with status $ac_status" >&5 6416echo "$as_me: failed program was:" >&5 6417sed 's/^/| /' conftest.$ac_ext >&5 6418 6419( exit $ac_status ) 6420{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 6421See \`config.log' for more details." >&5 6422echo "$as_me: error: cannot compute sizeof (long), 77 6423See \`config.log' for more details." >&2;} 6424 { (exit 1); exit 1; }; } 6425fi 6426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6427fi 6428fi 6429rm -f conftest.val 6430else 6431 ac_cv_sizeof_long=0 6432fi 6433fi 6434echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 6435echo "${ECHO_T}$ac_cv_sizeof_long" >&6 6436cat >>confdefs.h <<_ACEOF 6437#define SIZEOF_LONG $ac_cv_sizeof_long 6438_ACEOF 6439 6440 6441SIZEOF_CHAR=$ac_cv_sizeof_char 6442SIZEOF_SHORT=$ac_cv_sizeof_short 6443SIZEOF_INT=$ac_cv_sizeof_int 6444SIZEOF_LONG=$ac_cv_sizeof_long 6445 6446 6447 6448 6449 6450 6451 6452 6453echo "$as_me:$LINENO: checking for an 8-bit type" >&5 6454echo $ECHO_N "checking for an 8-bit type... $ECHO_C" >&6 6455if test $SIZEOF_CHAR -eq 1; then 6456 cat >>confdefs.h <<\_ACEOF 6457#define __TYPE8__ char 6458_ACEOF 6459 6460 TYPE8=char 6461elif test $SIZEOF_SHORT -eq 1; then 6462 cat >>confdefs.h <<\_ACEOF 6463#define __TYPE8__ short 6464_ACEOF 6465 6466 TYPE8=short 6467elif test $SIZEOF_INT -eq 1; then 6468 cat >>confdefs.h <<\_ACEOF 6469#define __TYPE8__ int 6470_ACEOF 6471 6472 TYPE8=int 6473elif test $SIZEOF_LONG -eq 1; then 6474 cat >>confdefs.h <<\_ACEOF 6475#define __TYPE8__ long 6476_ACEOF 6477 6478 TYPE8=long 6479else 6480 echo "$as_me:$LINENO: result: not found" >&5 6481echo "${ECHO_T}not found" >&6 6482 { { echo "$as_me:$LINENO: error: I can't seem to find an 8-bit integer type!" >&5 6483echo "$as_me: error: I can't seem to find an 8-bit integer type!" >&2;} 6484 { (exit 1); exit 1; }; } 6485fi 6486echo "$as_me:$LINENO: result: $TYPE8" >&5 6487echo "${ECHO_T}$TYPE8" >&6 6488 6489echo "$as_me:$LINENO: checking for a 16-bit type" >&5 6490echo $ECHO_N "checking for a 16-bit type... $ECHO_C" >&6 6491if test $SIZEOF_CHAR -eq 2; then 6492 cat >>confdefs.h <<\_ACEOF 6493#define __TYPE16__ char 6494_ACEOF 6495 6496 TYPE16=char 6497elif test $SIZEOF_SHORT -eq 2; then 6498 cat >>confdefs.h <<\_ACEOF 6499#define __TYPE16__ short 6500_ACEOF 6501 6502 TYPE16=short 6503elif test $SIZEOF_INT -eq 2; then 6504 cat >>confdefs.h <<\_ACEOF 6505#define __TYPE16__ int 6506_ACEOF 6507 6508 TYPE16=int 6509elif test $SIZEOF_LONG -eq 2; then 6510 cat >>confdefs.h <<\_ACEOF 6511#define __TYPE16__ long 6512_ACEOF 6513 6514 TYPE16=long 6515else 6516 echo "$as_me:$LINENO: result: not found" >&5 6517echo "${ECHO_T}not found" >&6 6518 { { echo "$as_me:$LINENO: error: I can't seem to find a 16-bit integer type!" >&5 6519echo "$as_me: error: I can't seem to find a 16-bit integer type!" >&2;} 6520 { (exit 1); exit 1; }; } 6521fi 6522echo "$as_me:$LINENO: result: $TYPE16" >&5 6523echo "${ECHO_T}$TYPE16" >&6 6524 6525echo "$as_me:$LINENO: checking for a 32-bit type" >&5 6526echo $ECHO_N "checking for a 32-bit type... $ECHO_C" >&6 6527if test $SIZEOF_CHAR -eq 4; then 6528 cat >>confdefs.h <<\_ACEOF 6529#define __TYPE32__ char 6530_ACEOF 6531 6532 TYPE32=char 6533elif test $SIZEOF_SHORT -eq 4; then 6534 cat >>confdefs.h <<\_ACEOF 6535#define __TYPE32__ short 6536_ACEOF 6537 6538 TYPE32=short 6539elif test $SIZEOF_INT -eq 4; then 6540 cat >>confdefs.h <<\_ACEOF 6541#define __TYPE32__ int 6542_ACEOF 6543 6544 TYPE32=int 6545elif test $SIZEOF_LONG -eq 4; then 6546 cat >>confdefs.h <<\_ACEOF 6547#define __TYPE32__ long 6548_ACEOF 6549 6550 TYPE32=long 6551else 6552 echo "$as_me:$LINENO: result: not found" >&5 6553echo "${ECHO_T}not found" >&6 6554 { { echo "$as_me:$LINENO: error: I can't seem to find a 32-bit integer type!" >&5 6555echo "$as_me: error: I can't seem to find a 32-bit integer type!" >&2;} 6556 { (exit 1); exit 1; }; } 6557fi 6558echo "$as_me:$LINENO: result: $TYPE32" >&5 6559echo "${ECHO_T}$TYPE32" >&6 6560 6561echo "$as_me:$LINENO: checking for int8_t" >&5 6562echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 6563if test "${ac_cv_type_int8_t+set}" = set; then 6564 echo $ECHO_N "(cached) $ECHO_C" >&6 6565else 6566 cat >conftest.$ac_ext <<_ACEOF 6567/* confdefs.h. */ 6568_ACEOF 6569cat confdefs.h >>conftest.$ac_ext 6570cat >>conftest.$ac_ext <<_ACEOF 6571/* end confdefs.h. */ 6572#if HAVE_STDINT_H 6573# include <stdint.h> 6574#endif 6575#if HAVE_INTTYPES_H 6576# include <inttypes.h> 6577#endif 6578#if HAVE_SYS_TYPES_H 6579# include <sys/types.h> 6580#endif 6581 6582 6583int 6584main () 6585{ 6586if ((int8_t *) 0) 6587 return 0; 6588if (sizeof (int8_t)) 6589 return 0; 6590 ; 6591 return 0; 6592} 6593_ACEOF 6594rm -f conftest.$ac_objext 6595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6596 (eval $ac_compile) 2>conftest.er1 6597 ac_status=$? 6598 grep -v '^ *+' conftest.er1 >conftest.err 6599 rm -f conftest.er1 6600 cat conftest.err >&5 6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6602 (exit $ac_status); } && 6603 { ac_try='test -z "$ac_c_werror_flag" 6604 || test ! -s conftest.err' 6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6606 (eval $ac_try) 2>&5 6607 ac_status=$? 6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6609 (exit $ac_status); }; } && 6610 { ac_try='test -s conftest.$ac_objext' 6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6612 (eval $ac_try) 2>&5 6613 ac_status=$? 6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6615 (exit $ac_status); }; }; then 6616 ac_cv_type_int8_t=yes 6617else 6618 echo "$as_me: failed program was:" >&5 6619sed 's/^/| /' conftest.$ac_ext >&5 6620 6621ac_cv_type_int8_t=no 6622fi 6623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6624fi 6625echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 6626echo "${ECHO_T}$ac_cv_type_int8_t" >&6 6627if test $ac_cv_type_int8_t = yes; then 6628 6629cat >>confdefs.h <<_ACEOF 6630#define HAVE_INT8_T 1 6631_ACEOF 6632 6633 6634fi 6635echo "$as_me:$LINENO: checking for int16_t" >&5 6636echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 6637if test "${ac_cv_type_int16_t+set}" = set; then 6638 echo $ECHO_N "(cached) $ECHO_C" >&6 6639else 6640 cat >conftest.$ac_ext <<_ACEOF 6641/* confdefs.h. */ 6642_ACEOF 6643cat confdefs.h >>conftest.$ac_ext 6644cat >>conftest.$ac_ext <<_ACEOF 6645/* end confdefs.h. */ 6646#if HAVE_STDINT_H 6647# include <stdint.h> 6648#endif 6649#if HAVE_INTTYPES_H 6650# include <inttypes.h> 6651#endif 6652#if HAVE_SYS_TYPES_H 6653# include <sys/types.h> 6654#endif 6655 6656 6657int 6658main () 6659{ 6660if ((int16_t *) 0) 6661 return 0; 6662if (sizeof (int16_t)) 6663 return 0; 6664 ; 6665 return 0; 6666} 6667_ACEOF 6668rm -f conftest.$ac_objext 6669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6670 (eval $ac_compile) 2>conftest.er1 6671 ac_status=$? 6672 grep -v '^ *+' conftest.er1 >conftest.err 6673 rm -f conftest.er1 6674 cat conftest.err >&5 6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6676 (exit $ac_status); } && 6677 { ac_try='test -z "$ac_c_werror_flag" 6678 || test ! -s conftest.err' 6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6680 (eval $ac_try) 2>&5 6681 ac_status=$? 6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6683 (exit $ac_status); }; } && 6684 { ac_try='test -s conftest.$ac_objext' 6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6686 (eval $ac_try) 2>&5 6687 ac_status=$? 6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6689 (exit $ac_status); }; }; then 6690 ac_cv_type_int16_t=yes 6691else 6692 echo "$as_me: failed program was:" >&5 6693sed 's/^/| /' conftest.$ac_ext >&5 6694 6695ac_cv_type_int16_t=no 6696fi 6697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6698fi 6699echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 6700echo "${ECHO_T}$ac_cv_type_int16_t" >&6 6701if test $ac_cv_type_int16_t = yes; then 6702 6703cat >>confdefs.h <<_ACEOF 6704#define HAVE_INT16_T 1 6705_ACEOF 6706 6707 6708fi 6709echo "$as_me:$LINENO: checking for int32_t" >&5 6710echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 6711if test "${ac_cv_type_int32_t+set}" = set; then 6712 echo $ECHO_N "(cached) $ECHO_C" >&6 6713else 6714 cat >conftest.$ac_ext <<_ACEOF 6715/* confdefs.h. */ 6716_ACEOF 6717cat confdefs.h >>conftest.$ac_ext 6718cat >>conftest.$ac_ext <<_ACEOF 6719/* end confdefs.h. */ 6720#if HAVE_STDINT_H 6721# include <stdint.h> 6722#endif 6723#if HAVE_INTTYPES_H 6724# include <inttypes.h> 6725#endif 6726#if HAVE_SYS_TYPES_H 6727# include <sys/types.h> 6728#endif 6729 6730 6731int 6732main () 6733{ 6734if ((int32_t *) 0) 6735 return 0; 6736if (sizeof (int32_t)) 6737 return 0; 6738 ; 6739 return 0; 6740} 6741_ACEOF 6742rm -f conftest.$ac_objext 6743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6744 (eval $ac_compile) 2>conftest.er1 6745 ac_status=$? 6746 grep -v '^ *+' conftest.er1 >conftest.err 6747 rm -f conftest.er1 6748 cat conftest.err >&5 6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6750 (exit $ac_status); } && 6751 { ac_try='test -z "$ac_c_werror_flag" 6752 || test ! -s conftest.err' 6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6754 (eval $ac_try) 2>&5 6755 ac_status=$? 6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6757 (exit $ac_status); }; } && 6758 { ac_try='test -s conftest.$ac_objext' 6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6760 (eval $ac_try) 2>&5 6761 ac_status=$? 6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6763 (exit $ac_status); }; }; then 6764 ac_cv_type_int32_t=yes 6765else 6766 echo "$as_me: failed program was:" >&5 6767sed 's/^/| /' conftest.$ac_ext >&5 6768 6769ac_cv_type_int32_t=no 6770fi 6771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6772fi 6773echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 6774echo "${ECHO_T}$ac_cv_type_int32_t" >&6 6775if test $ac_cv_type_int32_t = yes; then 6776 6777cat >>confdefs.h <<_ACEOF 6778#define HAVE_INT32_T 1 6779_ACEOF 6780 6781 6782fi 6783echo "$as_me:$LINENO: checking for uint8_t" >&5 6784echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 6785if test "${ac_cv_type_uint8_t+set}" = set; then 6786 echo $ECHO_N "(cached) $ECHO_C" >&6 6787else 6788 cat >conftest.$ac_ext <<_ACEOF 6789/* confdefs.h. */ 6790_ACEOF 6791cat confdefs.h >>conftest.$ac_ext 6792cat >>conftest.$ac_ext <<_ACEOF 6793/* end confdefs.h. */ 6794#if HAVE_STDINT_H 6795# include <stdint.h> 6796#endif 6797#if HAVE_INTTYPES_H 6798# include <inttypes.h> 6799#endif 6800#if HAVE_SYS_TYPES_H 6801# include <sys/types.h> 6802#endif 6803 6804 6805int 6806main () 6807{ 6808if ((uint8_t *) 0) 6809 return 0; 6810if (sizeof (uint8_t)) 6811 return 0; 6812 ; 6813 return 0; 6814} 6815_ACEOF 6816rm -f conftest.$ac_objext 6817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6818 (eval $ac_compile) 2>conftest.er1 6819 ac_status=$? 6820 grep -v '^ *+' conftest.er1 >conftest.err 6821 rm -f conftest.er1 6822 cat conftest.err >&5 6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6824 (exit $ac_status); } && 6825 { ac_try='test -z "$ac_c_werror_flag" 6826 || test ! -s conftest.err' 6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6828 (eval $ac_try) 2>&5 6829 ac_status=$? 6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6831 (exit $ac_status); }; } && 6832 { ac_try='test -s conftest.$ac_objext' 6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6834 (eval $ac_try) 2>&5 6835 ac_status=$? 6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6837 (exit $ac_status); }; }; then 6838 ac_cv_type_uint8_t=yes 6839else 6840 echo "$as_me: failed program was:" >&5 6841sed 's/^/| /' conftest.$ac_ext >&5 6842 6843ac_cv_type_uint8_t=no 6844fi 6845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6846fi 6847echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 6848echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 6849if test $ac_cv_type_uint8_t = yes; then 6850 6851cat >>confdefs.h <<_ACEOF 6852#define HAVE_UINT8_T 1 6853_ACEOF 6854 6855 6856fi 6857echo "$as_me:$LINENO: checking for uint16_t" >&5 6858echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 6859if test "${ac_cv_type_uint16_t+set}" = set; then 6860 echo $ECHO_N "(cached) $ECHO_C" >&6 6861else 6862 cat >conftest.$ac_ext <<_ACEOF 6863/* confdefs.h. */ 6864_ACEOF 6865cat confdefs.h >>conftest.$ac_ext 6866cat >>conftest.$ac_ext <<_ACEOF 6867/* end confdefs.h. */ 6868#if HAVE_STDINT_H 6869# include <stdint.h> 6870#endif 6871#if HAVE_INTTYPES_H 6872# include <inttypes.h> 6873#endif 6874#if HAVE_SYS_TYPES_H 6875# include <sys/types.h> 6876#endif 6877 6878 6879int 6880main () 6881{ 6882if ((uint16_t *) 0) 6883 return 0; 6884if (sizeof (uint16_t)) 6885 return 0; 6886 ; 6887 return 0; 6888} 6889_ACEOF 6890rm -f conftest.$ac_objext 6891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6892 (eval $ac_compile) 2>conftest.er1 6893 ac_status=$? 6894 grep -v '^ *+' conftest.er1 >conftest.err 6895 rm -f conftest.er1 6896 cat conftest.err >&5 6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6898 (exit $ac_status); } && 6899 { ac_try='test -z "$ac_c_werror_flag" 6900 || test ! -s conftest.err' 6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6902 (eval $ac_try) 2>&5 6903 ac_status=$? 6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6905 (exit $ac_status); }; } && 6906 { ac_try='test -s conftest.$ac_objext' 6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6908 (eval $ac_try) 2>&5 6909 ac_status=$? 6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6911 (exit $ac_status); }; }; then 6912 ac_cv_type_uint16_t=yes 6913else 6914 echo "$as_me: failed program was:" >&5 6915sed 's/^/| /' conftest.$ac_ext >&5 6916 6917ac_cv_type_uint16_t=no 6918fi 6919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6920fi 6921echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 6922echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 6923if test $ac_cv_type_uint16_t = yes; then 6924 6925cat >>confdefs.h <<_ACEOF 6926#define HAVE_UINT16_T 1 6927_ACEOF 6928 6929 6930fi 6931echo "$as_me:$LINENO: checking for uint32_t" >&5 6932echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 6933if test "${ac_cv_type_uint32_t+set}" = set; then 6934 echo $ECHO_N "(cached) $ECHO_C" >&6 6935else 6936 cat >conftest.$ac_ext <<_ACEOF 6937/* confdefs.h. */ 6938_ACEOF 6939cat confdefs.h >>conftest.$ac_ext 6940cat >>conftest.$ac_ext <<_ACEOF 6941/* end confdefs.h. */ 6942#if HAVE_STDINT_H 6943# include <stdint.h> 6944#endif 6945#if HAVE_INTTYPES_H 6946# include <inttypes.h> 6947#endif 6948#if HAVE_SYS_TYPES_H 6949# include <sys/types.h> 6950#endif 6951 6952 6953int 6954main () 6955{ 6956if ((uint32_t *) 0) 6957 return 0; 6958if (sizeof (uint32_t)) 6959 return 0; 6960 ; 6961 return 0; 6962} 6963_ACEOF 6964rm -f conftest.$ac_objext 6965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6966 (eval $ac_compile) 2>conftest.er1 6967 ac_status=$? 6968 grep -v '^ *+' conftest.er1 >conftest.err 6969 rm -f conftest.er1 6970 cat conftest.err >&5 6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 (exit $ac_status); } && 6973 { ac_try='test -z "$ac_c_werror_flag" 6974 || test ! -s conftest.err' 6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6976 (eval $ac_try) 2>&5 6977 ac_status=$? 6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 (exit $ac_status); }; } && 6980 { ac_try='test -s conftest.$ac_objext' 6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6982 (eval $ac_try) 2>&5 6983 ac_status=$? 6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6985 (exit $ac_status); }; }; then 6986 ac_cv_type_uint32_t=yes 6987else 6988 echo "$as_me: failed program was:" >&5 6989sed 's/^/| /' conftest.$ac_ext >&5 6990 6991ac_cv_type_uint32_t=no 6992fi 6993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6994fi 6995echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 6996echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 6997if test $ac_cv_type_uint32_t = yes; then 6998 6999cat >>confdefs.h <<_ACEOF 7000#define HAVE_UINT32_T 1 7001_ACEOF 7002 7003 7004fi 7005 7006 7007 7008 7009 7010cat >confcache <<\_ACEOF 7011# This file is a shell script that caches the results of configure 7012# tests run on this system so they can be shared between configure 7013# scripts and configure runs, see configure's option --config-cache. 7014# It is not useful on other systems. If it contains results you don't 7015# want to keep, you may remove or edit it. 7016# 7017# config.status only pays attention to the cache file if you give it 7018# the --recheck option to rerun configure. 7019# 7020# `ac_cv_env_foo' variables (set or unset) will be overridden when 7021# loading this file, other *unset* `ac_cv_foo' will be assigned the 7022# following values. 7023 7024_ACEOF 7025 7026# The following way of writing the cache mishandles newlines in values, 7027# but we know of no workaround that is simple, portable, and efficient. 7028# So, don't put newlines in cache variables' values. 7029# Ultrix sh set writes to stderr and can't be redirected directly, 7030# and sets the high bit in the cache file unless we assign to the vars. 7031{ 7032 (set) 2>&1 | 7033 case `(ac_space=' '; set | grep ac_space) 2>&1` in 7034 *ac_space=\ *) 7035 # `set' does not quote correctly, so add quotes (double-quote 7036 # substitution turns \\\\ into \\, and sed turns \\ into \). 7037 sed -n \ 7038 "s/'/'\\\\''/g; 7039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 7040 ;; 7041 *) 7042 # `set' quotes correctly as required by POSIX, so do not add quotes. 7043 sed -n \ 7044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 7045 ;; 7046 esac; 7047} | 7048 sed ' 7049 t clear 7050 : clear 7051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 7052 t end 7053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 7054 : end' >>confcache 7055if diff $cache_file confcache >/dev/null 2>&1; then :; else 7056 if test -w $cache_file; then 7057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 7058 cat confcache >$cache_file 7059 else 7060 echo "not updating unwritable cache $cache_file" 7061 fi 7062fi 7063rm -f confcache 7064 7065# Check whether --enable-helper-search or --disable-helper-search was given. 7066if test "${enable_helper_search+set}" = set; then 7067 enableval="$enable_helper_search" 7068 case "$enableval" in 7069 yes) do_helper_search=true ;; 7070 no) do_helper_search=false ;; 7071 *) { { echo "$as_me:$LINENO: error: bad value $withval for --enable-helper-search" >&5 7072echo "$as_me: error: bad value $withval for --enable-helper-search" >&2;} 7073 { (exit 1); exit 1; }; } ;; 7074 esac 7075else 7076 do_helper_search=true 7077fi; 7078 7079# Extract the first word of "perl", so it can be a program name with args. 7080set dummy perl; ac_word=$2 7081echo "$as_me:$LINENO: checking for $ac_word" >&5 7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7083if test "${ac_cv_path_PERL+set}" = set; then 7084 echo $ECHO_N "(cached) $ECHO_C" >&6 7085else 7086 case $PERL in 7087 [\\/]* | ?:[\\/]*) 7088 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7089 ;; 7090 *) 7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7092for as_dir in $PATH 7093do 7094 IFS=$as_save_IFS 7095 test -z "$as_dir" && as_dir=. 7096 for ac_exec_ext in '' $ac_executable_extensions; do 7097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7098 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7100 break 2 7101 fi 7102done 7103done 7104 7105 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl" 7106 ;; 7107esac 7108fi 7109PERL=$ac_cv_path_PERL 7110 7111if test -n "$PERL"; then 7112 echo "$as_me:$LINENO: result: $PERL" >&5 7113echo "${ECHO_T}$PERL" >&6 7114else 7115 echo "$as_me:$LINENO: result: no" >&5 7116echo "${ECHO_T}no" >&6 7117fi 7118 7119if test x$do_helper_search = xtrue; then 7120 for ac_prog in madplay mpg123 7121do 7122 # Extract the first word of "$ac_prog", so it can be a program name with args. 7123set dummy $ac_prog; ac_word=$2 7124echo "$as_me:$LINENO: checking for $ac_word" >&5 7125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7126if test "${ac_cv_prog_MP3DECODE+set}" = set; then 7127 echo $ECHO_N "(cached) $ECHO_C" >&6 7128else 7129 if test -n "$MP3DECODE"; then 7130 ac_cv_prog_MP3DECODE="$MP3DECODE" # Let the user override the test. 7131else 7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7133for as_dir in $PATH 7134do 7135 IFS=$as_save_IFS 7136 test -z "$as_dir" && as_dir=. 7137 for ac_exec_ext in '' $ac_executable_extensions; do 7138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7139 ac_cv_prog_MP3DECODE="$ac_prog" 7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7141 break 2 7142 fi 7143done 7144done 7145 7146fi 7147fi 7148MP3DECODE=$ac_cv_prog_MP3DECODE 7149if test -n "$MP3DECODE"; then 7150 echo "$as_me:$LINENO: result: $MP3DECODE" >&5 7151echo "${ECHO_T}$MP3DECODE" >&6 7152else 7153 echo "$as_me:$LINENO: result: no" >&5 7154echo "${ECHO_T}no" >&6 7155fi 7156 7157 test -n "$MP3DECODE" && break 7158done 7159 7160 for ac_prog in lame notlame bladeenc 7161do 7162 # Extract the first word of "$ac_prog", so it can be a program name with args. 7163set dummy $ac_prog; ac_word=$2 7164echo "$as_me:$LINENO: checking for $ac_word" >&5 7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7166if test "${ac_cv_prog_MP3ENCODE+set}" = set; then 7167 echo $ECHO_N "(cached) $ECHO_C" >&6 7168else 7169 if test -n "$MP3ENCODE"; then 7170 ac_cv_prog_MP3ENCODE="$MP3ENCODE" # Let the user override the test. 7171else 7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7173for as_dir in $PATH 7174do 7175 IFS=$as_save_IFS 7176 test -z "$as_dir" && as_dir=. 7177 for ac_exec_ext in '' $ac_executable_extensions; do 7178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7179 ac_cv_prog_MP3ENCODE="$ac_prog" 7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7181 break 2 7182 fi 7183done 7184done 7185 7186fi 7187fi 7188MP3ENCODE=$ac_cv_prog_MP3ENCODE 7189if test -n "$MP3ENCODE"; then 7190 echo "$as_me:$LINENO: result: $MP3ENCODE" >&5 7191echo "${ECHO_T}$MP3ENCODE" >&6 7192else 7193 echo "$as_me:$LINENO: result: no" >&5 7194echo "${ECHO_T}no" >&6 7195fi 7196 7197 test -n "$MP3ENCODE" && break 7198done 7199 7200 for ac_prog in oggdec ogg123 7201do 7202 # Extract the first word of "$ac_prog", so it can be a program name with args. 7203set dummy $ac_prog; ac_word=$2 7204echo "$as_me:$LINENO: checking for $ac_word" >&5 7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7206if test "${ac_cv_prog_OGGDECODE+set}" = set; then 7207 echo $ECHO_N "(cached) $ECHO_C" >&6 7208else 7209 if test -n "$OGGDECODE"; then 7210 ac_cv_prog_OGGDECODE="$OGGDECODE" # Let the user override the test. 7211else 7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7213for as_dir in $PATH 7214do 7215 IFS=$as_save_IFS 7216 test -z "$as_dir" && as_dir=. 7217 for ac_exec_ext in '' $ac_executable_extensions; do 7218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7219 ac_cv_prog_OGGDECODE="$ac_prog" 7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7221 break 2 7222 fi 7223done 7224done 7225 7226fi 7227fi 7228OGGDECODE=$ac_cv_prog_OGGDECODE 7229if test -n "$OGGDECODE"; then 7230 echo "$as_me:$LINENO: result: $OGGDECODE" >&5 7231echo "${ECHO_T}$OGGDECODE" >&6 7232else 7233 echo "$as_me:$LINENO: result: no" >&5 7234echo "${ECHO_T}no" >&6 7235fi 7236 7237 test -n "$OGGDECODE" && break 7238done 7239 7240 for ac_prog in oggenc 7241do 7242 # Extract the first word of "$ac_prog", so it can be a program name with args. 7243set dummy $ac_prog; ac_word=$2 7244echo "$as_me:$LINENO: checking for $ac_word" >&5 7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7246if test "${ac_cv_prog_OGGENCODE+set}" = set; then 7247 echo $ECHO_N "(cached) $ECHO_C" >&6 7248else 7249 if test -n "$OGGENCODE"; then 7250 ac_cv_prog_OGGENCODE="$OGGENCODE" # Let the user override the test. 7251else 7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7253for as_dir in $PATH 7254do 7255 IFS=$as_save_IFS 7256 test -z "$as_dir" && as_dir=. 7257 for ac_exec_ext in '' $ac_executable_extensions; do 7258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7259 ac_cv_prog_OGGENCODE="$ac_prog" 7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7261 break 2 7262 fi 7263done 7264done 7265 7266fi 7267fi 7268OGGENCODE=$ac_cv_prog_OGGENCODE 7269if test -n "$OGGENCODE"; then 7270 echo "$as_me:$LINENO: result: $OGGENCODE" >&5 7271echo "${ECHO_T}$OGGENCODE" >&6 7272else 7273 echo "$as_me:$LINENO: result: no" >&5 7274echo "${ECHO_T}no" >&6 7275fi 7276 7277 test -n "$OGGENCODE" && break 7278done 7279 7280 for ac_prog in vorbiscomment 7281do 7282 # Extract the first word of "$ac_prog", so it can be a program name with args. 7283set dummy $ac_prog; ac_word=$2 7284echo "$as_me:$LINENO: checking for $ac_word" >&5 7285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7286if test "${ac_cv_prog_VORBISCOMMENT+set}" = set; then 7287 echo $ECHO_N "(cached) $ECHO_C" >&6 7288else 7289 if test -n "$VORBISCOMMENT"; then 7290 ac_cv_prog_VORBISCOMMENT="$VORBISCOMMENT" # Let the user override the test. 7291else 7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7293for as_dir in $PATH 7294do 7295 IFS=$as_save_IFS 7296 test -z "$as_dir" && as_dir=. 7297 for ac_exec_ext in '' $ac_executable_extensions; do 7298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7299 ac_cv_prog_VORBISCOMMENT="$ac_prog" 7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7301 break 2 7302 fi 7303done 7304done 7305 7306fi 7307fi 7308VORBISCOMMENT=$ac_cv_prog_VORBISCOMMENT 7309if test -n "$VORBISCOMMENT"; then 7310 echo "$as_me:$LINENO: result: $VORBISCOMMENT" >&5 7311echo "${ECHO_T}$VORBISCOMMENT" >&6 7312else 7313 echo "$as_me:$LINENO: result: no" >&5 7314echo "${ECHO_T}no" >&6 7315fi 7316 7317 test -n "$VORBISCOMMENT" && break 7318done 7319 7320 for ac_prog in flac 7321do 7322 # Extract the first word of "$ac_prog", so it can be a program name with args. 7323set dummy $ac_prog; ac_word=$2 7324echo "$as_me:$LINENO: checking for $ac_word" >&5 7325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7326if test "${ac_cv_prog_FLACDECODE+set}" = set; then 7327 echo $ECHO_N "(cached) $ECHO_C" >&6 7328else 7329 if test -n "$FLACDECODE"; then 7330 ac_cv_prog_FLACDECODE="$FLACDECODE" # Let the user override the test. 7331else 7332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7333for as_dir in $PATH 7334do 7335 IFS=$as_save_IFS 7336 test -z "$as_dir" && as_dir=. 7337 for ac_exec_ext in '' $ac_executable_extensions; do 7338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7339 ac_cv_prog_FLACDECODE="$ac_prog" 7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7341 break 2 7342 fi 7343done 7344done 7345 7346fi 7347fi 7348FLACDECODE=$ac_cv_prog_FLACDECODE 7349if test -n "$FLACDECODE"; then 7350 echo "$as_me:$LINENO: result: $FLACDECODE" >&5 7351echo "${ECHO_T}$FLACDECODE" >&6 7352else 7353 echo "$as_me:$LINENO: result: no" >&5 7354echo "${ECHO_T}no" >&6 7355fi 7356 7357 test -n "$FLACDECODE" && break 7358done 7359 7360 for ac_prog in flac 7361do 7362 # Extract the first word of "$ac_prog", so it can be a program name with args. 7363set dummy $ac_prog; ac_word=$2 7364echo "$as_me:$LINENO: checking for $ac_word" >&5 7365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7366if test "${ac_cv_prog_FLACENCODE+set}" = set; then 7367 echo $ECHO_N "(cached) $ECHO_C" >&6 7368else 7369 if test -n "$FLACENCODE"; then 7370 ac_cv_prog_FLACENCODE="$FLACENCODE" # Let the user override the test. 7371else 7372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7373for as_dir in $PATH 7374do 7375 IFS=$as_save_IFS 7376 test -z "$as_dir" && as_dir=. 7377 for ac_exec_ext in '' $ac_executable_extensions; do 7378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7379 ac_cv_prog_FLACENCODE="$ac_prog" 7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7381 break 2 7382 fi 7383done 7384done 7385 7386fi 7387fi 7388FLACENCODE=$ac_cv_prog_FLACENCODE 7389if test -n "$FLACENCODE"; then 7390 echo "$as_me:$LINENO: result: $FLACENCODE" >&5 7391echo "${ECHO_T}$FLACENCODE" >&6 7392else 7393 echo "$as_me:$LINENO: result: no" >&5 7394echo "${ECHO_T}no" >&6 7395fi 7396 7397 test -n "$FLACENCODE" && break 7398done 7399 7400 for ac_prog in metaflac 7401do 7402 # Extract the first word of "$ac_prog", so it can be a program name with args. 7403set dummy $ac_prog; ac_word=$2 7404echo "$as_me:$LINENO: checking for $ac_word" >&5 7405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7406if test "${ac_cv_prog_METAFLAC+set}" = set; then 7407 echo $ECHO_N "(cached) $ECHO_C" >&6 7408else 7409 if test -n "$METAFLAC"; then 7410 ac_cv_prog_METAFLAC="$METAFLAC" # Let the user override the test. 7411else 7412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7413for as_dir in $PATH 7414do 7415 IFS=$as_save_IFS 7416 test -z "$as_dir" && as_dir=. 7417 for ac_exec_ext in '' $ac_executable_extensions; do 7418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7419 ac_cv_prog_METAFLAC="$ac_prog" 7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7421 break 2 7422 fi 7423done 7424done 7425 7426fi 7427fi 7428METAFLAC=$ac_cv_prog_METAFLAC 7429if test -n "$METAFLAC"; then 7430 echo "$as_me:$LINENO: result: $METAFLAC" >&5 7431echo "${ECHO_T}$METAFLAC" >&6 7432else 7433 echo "$as_me:$LINENO: result: no" >&5 7434echo "${ECHO_T}no" >&6 7435fi 7436 7437 test -n "$METAFLAC" && break 7438done 7439 7440 if test x$MP3DECODE = xmpg123; then 7441 MP3DECODE="$MP3DECODE -q -w %w %m" 7442 else 7443 MP3DECODE="$MP3DECODE -q -o %w %m" 7444 fi 7445 if test x$MP3ENCODE = xlame -o x$MP3ENCODE = xnotlame; then 7446 MP3ENCODE="$MP3ENCODE --quiet -h -b %b %w %m" 7447 else 7448 MP3ENCODE="$MP3ENCODE -quiet %w %m" 7449 fi 7450 if test x$OGGDECODE = xoggdec; then 7451 OGGDECODE="$OGGDECODE -Q -o %w %m" 7452 else 7453 OGGDECODE="$OGGDECODE -q -d wav -f %w %m" 7454 fi 7455 if test x$OGGENCODE != x; then 7456 OGGENCODE="$OGGENCODE -Q -b %b -o %m %w" 7457 fi 7458 if test x$FLACDECODE != x; then 7459 FLACDECODE="$FLACDECODE -s -d -o %w %m" 7460 fi 7461 if test x$FLACENCODE != x; then 7462 FLACENCODE="$FLACENCODE -s -o %m %w" 7463 fi 7464fi 7465 7466 7467 7468# Check whether --enable-lookup-table or --disable-lookup-table was given. 7469if test "${enable_lookup_table+set}" = set; then 7470 enableval="$enable_lookup_table" 7471 case "$enableval" in 7472 yes) cat >>confdefs.h <<\_ACEOF 7473#define USE_LOOKUPTABLE 1 7474_ACEOF 7475 ;; 7476 no) ;; 7477 *) { { echo "$as_me:$LINENO: error: bad value $withval for --with-lookuptable" >&5 7478echo "$as_me: error: bad value $withval for --with-lookuptable" >&2;} 7479 { (exit 1); exit 1; }; } ;; 7480 esac 7481else 7482 cat >>confdefs.h <<\_ACEOF 7483#define USE_LOOKUPTABLE 1 7484_ACEOF 7485 7486fi; 7487 7488have_xmms=true 7489 7490# Check whether --with-glib-prefix or --without-glib-prefix was given. 7491if test "${with_glib_prefix+set}" = set; then 7492 withval="$with_glib_prefix" 7493 glib_config_prefix="$withval" 7494else 7495 glib_config_prefix="" 7496fi; 7497 7498# Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given. 7499if test "${with_glib_exec_prefix+set}" = set; then 7500 withval="$with_glib_exec_prefix" 7501 glib_config_exec_prefix="$withval" 7502else 7503 glib_config_exec_prefix="" 7504fi; 7505# Check whether --enable-glibtest or --disable-glibtest was given. 7506if test "${enable_glibtest+set}" = set; then 7507 enableval="$enable_glibtest" 7508 7509else 7510 enable_glibtest=yes 7511fi; 7512 7513 if test x$glib_config_exec_prefix != x ; then 7514 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" 7515 if test x${GLIB_CONFIG+set} != xset ; then 7516 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config 7517 fi 7518 fi 7519 if test x$glib_config_prefix != x ; then 7520 glib_config_args="$glib_config_args --prefix=$glib_config_prefix" 7521 if test x${GLIB_CONFIG+set} != xset ; then 7522 GLIB_CONFIG=$glib_config_prefix/bin/glib-config 7523 fi 7524 fi 7525 7526 for module in . 7527 do 7528 case "$module" in 7529 gmodule) 7530 glib_config_args="$glib_config_args gmodule" 7531 ;; 7532 gthread) 7533 glib_config_args="$glib_config_args gthread" 7534 ;; 7535 esac 7536 done 7537 7538 # Extract the first word of "glib-config", so it can be a program name with args. 7539set dummy glib-config; ac_word=$2 7540echo "$as_me:$LINENO: checking for $ac_word" >&5 7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7542if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then 7543 echo $ECHO_N "(cached) $ECHO_C" >&6 7544else 7545 case $GLIB_CONFIG in 7546 [\\/]* | ?:[\\/]*) 7547 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path. 7548 ;; 7549 *) 7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7551for as_dir in $PATH 7552do 7553 IFS=$as_save_IFS 7554 test -z "$as_dir" && as_dir=. 7555 for ac_exec_ext in '' $ac_executable_extensions; do 7556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7557 ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7559 break 2 7560 fi 7561done 7562done 7563 7564 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no" 7565 ;; 7566esac 7567fi 7568GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG 7569 7570if test -n "$GLIB_CONFIG"; then 7571 echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5 7572echo "${ECHO_T}$GLIB_CONFIG" >&6 7573else 7574 echo "$as_me:$LINENO: result: no" >&5 7575echo "${ECHO_T}no" >&6 7576fi 7577 7578 min_glib_version=1.2.2 7579 echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 7580echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6 7581 no_glib="" 7582 if test "$GLIB_CONFIG" = "no" ; then 7583 no_glib=yes 7584 else 7585 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` 7586 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` 7587 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ 7588 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 7589 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ 7590 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 7591 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ 7592 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 7593 if test "x$enable_glibtest" = "xyes" ; then 7594 ac_save_CFLAGS="$CFLAGS" 7595 ac_save_LIBS="$LIBS" 7596 CFLAGS="$CFLAGS $GLIB_CFLAGS" 7597 LIBS="$GLIB_LIBS $LIBS" 7598 rm -f conf.glibtest 7599 if test "$cross_compiling" = yes; then 7600 echo $ac_n "cross compiling; assumed OK... $ac_c" 7601else 7602 cat >conftest.$ac_ext <<_ACEOF 7603/* confdefs.h. */ 7604_ACEOF 7605cat confdefs.h >>conftest.$ac_ext 7606cat >>conftest.$ac_ext <<_ACEOF 7607/* end confdefs.h. */ 7608 7609#include <glib.h> 7610#include <stdio.h> 7611#include <stdlib.h> 7612 7613int 7614main () 7615{ 7616 int major, minor, micro; 7617 char *tmp_version; 7618 7619 system ("touch conf.glibtest"); 7620 7621 /* HP/UX 9 (%@#!) writes to sscanf strings */ 7622 tmp_version = g_strdup("$min_glib_version"); 7623 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7624 printf("%s, bad version string\n", "$min_glib_version"); 7625 exit(1); 7626 } 7627 7628 if ((glib_major_version != $glib_config_major_version) || 7629 (glib_minor_version != $glib_config_minor_version) || 7630 (glib_micro_version != $glib_config_micro_version)) 7631 { 7632 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", 7633 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 7634 glib_major_version, glib_minor_version, glib_micro_version); 7635 printf ("*** was found! If glib-config was correct, then it is best\n"); 7636 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); 7637 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 7638 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 7639 printf("*** required on your system.\n"); 7640 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); 7641 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); 7642 printf("*** before re-running configure\n"); 7643 } 7644 else if ((glib_major_version != GLIB_MAJOR_VERSION) || 7645 (glib_minor_version != GLIB_MINOR_VERSION) || 7646 (glib_micro_version != GLIB_MICRO_VERSION)) 7647 { 7648 printf("*** GLIB header files (version %d.%d.%d) do not match\n", 7649 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 7650 printf("*** library (version %d.%d.%d)\n", 7651 glib_major_version, glib_minor_version, glib_micro_version); 7652 } 7653 else 7654 { 7655 if ((glib_major_version > major) || 7656 ((glib_major_version == major) && (glib_minor_version > minor)) || 7657 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 7658 { 7659 return 0; 7660 } 7661 else 7662 { 7663 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", 7664 glib_major_version, glib_minor_version, glib_micro_version); 7665 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", 7666 major, minor, micro); 7667 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); 7668 printf("***\n"); 7669 printf("*** If you have already installed a sufficiently new version, this error\n"); 7670 printf("*** probably means that the wrong copy of the glib-config shell script is\n"); 7671 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 7672 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); 7673 printf("*** correct copy of glib-config. (In this case, you will have to\n"); 7674 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 7675 printf("*** so that the correct libraries are found at run-time))\n"); 7676 } 7677 } 7678 return 1; 7679} 7680 7681_ACEOF 7682rm -f conftest$ac_exeext 7683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7684 (eval $ac_link) 2>&5 7685 ac_status=$? 7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7689 (eval $ac_try) 2>&5 7690 ac_status=$? 7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7692 (exit $ac_status); }; }; then 7693 : 7694else 7695 echo "$as_me: program exited with status $ac_status" >&5 7696echo "$as_me: failed program was:" >&5 7697sed 's/^/| /' conftest.$ac_ext >&5 7698 7699( exit $ac_status ) 7700no_glib=yes 7701fi 7702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7703fi 7704 CFLAGS="$ac_save_CFLAGS" 7705 LIBS="$ac_save_LIBS" 7706 fi 7707 fi 7708 if test "x$no_glib" = x ; then 7709 echo "$as_me:$LINENO: result: yes" >&5 7710echo "${ECHO_T}yes" >&6 7711 : 7712 else 7713 echo "$as_me:$LINENO: result: no" >&5 7714echo "${ECHO_T}no" >&6 7715 if test "$GLIB_CONFIG" = "no" ; then 7716 echo "*** The glib-config script installed by GLIB could not be found" 7717 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" 7718 echo "*** your path, or set the GLIB_CONFIG environment variable to the" 7719 echo "*** full path to glib-config." 7720 else 7721 if test -f conf.glibtest ; then 7722 : 7723 else 7724 echo "*** Could not run GLIB test program, checking why..." 7725 CFLAGS="$CFLAGS $GLIB_CFLAGS" 7726 LIBS="$LIBS $GLIB_LIBS" 7727 cat >conftest.$ac_ext <<_ACEOF 7728/* confdefs.h. */ 7729_ACEOF 7730cat confdefs.h >>conftest.$ac_ext 7731cat >>conftest.$ac_ext <<_ACEOF 7732/* end confdefs.h. */ 7733 7734#include <glib.h> 7735#include <stdio.h> 7736 7737int 7738main () 7739{ 7740 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); 7741 ; 7742 return 0; 7743} 7744_ACEOF 7745rm -f conftest.$ac_objext conftest$ac_exeext 7746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7747 (eval $ac_link) 2>conftest.er1 7748 ac_status=$? 7749 grep -v '^ *+' conftest.er1 >conftest.err 7750 rm -f conftest.er1 7751 cat conftest.err >&5 7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7753 (exit $ac_status); } && 7754 { ac_try='test -z "$ac_c_werror_flag" 7755 || test ! -s conftest.err' 7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7757 (eval $ac_try) 2>&5 7758 ac_status=$? 7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7760 (exit $ac_status); }; } && 7761 { ac_try='test -s conftest$ac_exeext' 7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7763 (eval $ac_try) 2>&5 7764 ac_status=$? 7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7766 (exit $ac_status); }; }; then 7767 echo "*** The test program compiled, but did not run. This usually means" 7768 echo "*** that the run-time linker is not finding GLIB or finding the wrong" 7769 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" 7770 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 7771 echo "*** to the installed location Also, make sure you have run ldconfig if that" 7772 echo "*** is required on your system" 7773 echo "***" 7774 echo "*** If you have an old version installed, it is best to remove it, although" 7775 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 7776 echo "***" 7777 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 7778 echo "*** came with the system with the command" 7779 echo "***" 7780 echo "*** rpm --erase --nodeps gtk gtk-devel" 7781else 7782 echo "$as_me: failed program was:" >&5 7783sed 's/^/| /' conftest.$ac_ext >&5 7784 7785 echo "*** The test program failed to compile or link. See the file config.log for the" 7786 echo "*** exact error that occured. This usually means GLIB was incorrectly installed" 7787 echo "*** or that you have moved GLIB since it was installed. In the latter case, you" 7788 echo "*** may want to edit the glib-config script: $GLIB_CONFIG" 7789fi 7790rm -f conftest.err conftest.$ac_objext \ 7791 conftest$ac_exeext conftest.$ac_ext 7792 CFLAGS="$ac_save_CFLAGS" 7793 LIBS="$ac_save_LIBS" 7794 fi 7795 fi 7796 GLIB_CFLAGS="" 7797 GLIB_LIBS="" 7798 have_xmms=false 7799 fi 7800 7801 7802 rm -f conf.glibtest 7803 7804 7805# Check whether --with-gtk-prefix or --without-gtk-prefix was given. 7806if test "${with_gtk_prefix+set}" = set; then 7807 withval="$with_gtk_prefix" 7808 gtk_config_prefix="$withval" 7809else 7810 gtk_config_prefix="" 7811fi; 7812 7813# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. 7814if test "${with_gtk_exec_prefix+set}" = set; then 7815 withval="$with_gtk_exec_prefix" 7816 gtk_config_exec_prefix="$withval" 7817else 7818 gtk_config_exec_prefix="" 7819fi; 7820# Check whether --enable-gtktest or --disable-gtktest was given. 7821if test "${enable_gtktest+set}" = set; then 7822 enableval="$enable_gtktest" 7823 7824else 7825 enable_gtktest=yes 7826fi; 7827 7828 for module in . gthread 7829 do 7830 case "$module" in 7831 gthread) 7832 gtk_config_args="$gtk_config_args gthread" 7833 ;; 7834 esac 7835 done 7836 7837 if test x$gtk_config_exec_prefix != x ; then 7838 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 7839 if test x${GTK_CONFIG+set} != xset ; then 7840 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 7841 fi 7842 fi 7843 if test x$gtk_config_prefix != x ; then 7844 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 7845 if test x${GTK_CONFIG+set} != xset ; then 7846 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 7847 fi 7848 fi 7849 7850 # Extract the first word of "gtk-config", so it can be a program name with args. 7851set dummy gtk-config; ac_word=$2 7852echo "$as_me:$LINENO: checking for $ac_word" >&5 7853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7854if test "${ac_cv_path_GTK_CONFIG+set}" = set; then 7855 echo $ECHO_N "(cached) $ECHO_C" >&6 7856else 7857 case $GTK_CONFIG in 7858 [\\/]* | ?:[\\/]*) 7859 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 7860 ;; 7861 *) 7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7863for as_dir in $PATH 7864do 7865 IFS=$as_save_IFS 7866 test -z "$as_dir" && as_dir=. 7867 for ac_exec_ext in '' $ac_executable_extensions; do 7868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7869 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7871 break 2 7872 fi 7873done 7874done 7875 7876 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 7877 ;; 7878esac 7879fi 7880GTK_CONFIG=$ac_cv_path_GTK_CONFIG 7881 7882if test -n "$GTK_CONFIG"; then 7883 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 7884echo "${ECHO_T}$GTK_CONFIG" >&6 7885else 7886 echo "$as_me:$LINENO: result: no" >&5 7887echo "${ECHO_T}no" >&6 7888fi 7889 7890 min_gtk_version=1.2.2 7891 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 7892echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 7893 no_gtk="" 7894 if test "$GTK_CONFIG" = "no" ; then 7895 no_gtk=yes 7896 else 7897 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 7898 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 7899 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 7900 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 7901 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 7902 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 7903 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 7904 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 7905 if test "x$enable_gtktest" = "xyes" ; then 7906 ac_save_CFLAGS="$CFLAGS" 7907 ac_save_LIBS="$LIBS" 7908 CFLAGS="$CFLAGS $GTK_CFLAGS" 7909 LIBS="$GTK_LIBS $LIBS" 7910 rm -f conf.gtktest 7911 if test "$cross_compiling" = yes; then 7912 echo $ac_n "cross compiling; assumed OK... $ac_c" 7913else 7914 cat >conftest.$ac_ext <<_ACEOF 7915/* confdefs.h. */ 7916_ACEOF 7917cat confdefs.h >>conftest.$ac_ext 7918cat >>conftest.$ac_ext <<_ACEOF 7919/* end confdefs.h. */ 7920 7921#include <gtk/gtk.h> 7922#include <stdio.h> 7923#include <stdlib.h> 7924 7925int 7926main () 7927{ 7928 int major, minor, micro; 7929 char *tmp_version; 7930 7931 system ("touch conf.gtktest"); 7932 7933 /* HP/UX 9 (%@#!) writes to sscanf strings */ 7934 tmp_version = g_strdup("$min_gtk_version"); 7935 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7936 printf("%s, bad version string\n", "$min_gtk_version"); 7937 exit(1); 7938 } 7939 7940 if ((gtk_major_version != $gtk_config_major_version) || 7941 (gtk_minor_version != $gtk_config_minor_version) || 7942 (gtk_micro_version != $gtk_config_micro_version)) 7943 { 7944 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 7945 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 7946 gtk_major_version, gtk_minor_version, gtk_micro_version); 7947 printf ("*** was found! If gtk-config was correct, then it is best\n"); 7948 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 7949 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 7950 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 7951 printf("*** required on your system.\n"); 7952 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 7953 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 7954 printf("*** before re-running configure\n"); 7955 } 7956#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) 7957 else if ((gtk_major_version != GTK_MAJOR_VERSION) || 7958 (gtk_minor_version != GTK_MINOR_VERSION) || 7959 (gtk_micro_version != GTK_MICRO_VERSION)) 7960 { 7961 printf("*** GTK+ header files (version %d.%d.%d) do not match\n", 7962 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); 7963 printf("*** library (version %d.%d.%d)\n", 7964 gtk_major_version, gtk_minor_version, gtk_micro_version); 7965 } 7966#endif /* defined (GTK_MAJOR_VERSION) ... */ 7967 else 7968 { 7969 if ((gtk_major_version > major) || 7970 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 7971 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 7972 { 7973 return 0; 7974 } 7975 else 7976 { 7977 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 7978 gtk_major_version, gtk_minor_version, gtk_micro_version); 7979 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 7980 major, minor, micro); 7981 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 7982 printf("***\n"); 7983 printf("*** If you have already installed a sufficiently new version, this error\n"); 7984 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 7985 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 7986 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 7987 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 7988 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 7989 printf("*** so that the correct libraries are found at run-time))\n"); 7990 } 7991 } 7992 return 1; 7993} 7994 7995_ACEOF 7996rm -f conftest$ac_exeext 7997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7998 (eval $ac_link) 2>&5 7999 ac_status=$? 8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8003 (eval $ac_try) 2>&5 8004 ac_status=$? 8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8006 (exit $ac_status); }; }; then 8007 : 8008else 8009 echo "$as_me: program exited with status $ac_status" >&5 8010echo "$as_me: failed program was:" >&5 8011sed 's/^/| /' conftest.$ac_ext >&5 8012 8013( exit $ac_status ) 8014no_gtk=yes 8015fi 8016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8017fi 8018 CFLAGS="$ac_save_CFLAGS" 8019 LIBS="$ac_save_LIBS" 8020 fi 8021 fi 8022 if test "x$no_gtk" = x ; then 8023 echo "$as_me:$LINENO: result: yes" >&5 8024echo "${ECHO_T}yes" >&6 8025 : 8026 else 8027 echo "$as_me:$LINENO: result: no" >&5 8028echo "${ECHO_T}no" >&6 8029 if test "$GTK_CONFIG" = "no" ; then 8030 echo "*** The gtk-config script installed by GTK could not be found" 8031 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 8032 echo "*** your path, or set the GTK_CONFIG environment variable to the" 8033 echo "*** full path to gtk-config." 8034 else 8035 if test -f conf.gtktest ; then 8036 : 8037 else 8038 echo "*** Could not run GTK test program, checking why..." 8039 CFLAGS="$CFLAGS $GTK_CFLAGS" 8040 LIBS="$LIBS $GTK_LIBS" 8041 cat >conftest.$ac_ext <<_ACEOF 8042/* confdefs.h. */ 8043_ACEOF 8044cat confdefs.h >>conftest.$ac_ext 8045cat >>conftest.$ac_ext <<_ACEOF 8046/* end confdefs.h. */ 8047 8048#include <gtk/gtk.h> 8049#include <stdio.h> 8050 8051int 8052main () 8053{ 8054 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 8055 ; 8056 return 0; 8057} 8058_ACEOF 8059rm -f conftest.$ac_objext conftest$ac_exeext 8060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8061 (eval $ac_link) 2>conftest.er1 8062 ac_status=$? 8063 grep -v '^ *+' conftest.er1 >conftest.err 8064 rm -f conftest.er1 8065 cat conftest.err >&5 8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8067 (exit $ac_status); } && 8068 { ac_try='test -z "$ac_c_werror_flag" 8069 || test ! -s conftest.err' 8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8071 (eval $ac_try) 2>&5 8072 ac_status=$? 8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8074 (exit $ac_status); }; } && 8075 { ac_try='test -s conftest$ac_exeext' 8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8077 (eval $ac_try) 2>&5 8078 ac_status=$? 8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8080 (exit $ac_status); }; }; then 8081 echo "*** The test program compiled, but did not run. This usually means" 8082 echo "*** that the run-time linker is not finding GTK or finding the wrong" 8083 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 8084 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 8085 echo "*** to the installed location Also, make sure you have run ldconfig if that" 8086 echo "*** is required on your system" 8087 echo "***" 8088 echo "*** If you have an old version installed, it is best to remove it, although" 8089 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 8090 echo "***" 8091 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 8092 echo "*** came with the system with the command" 8093 echo "***" 8094 echo "*** rpm --erase --nodeps gtk gtk-devel" 8095else 8096 echo "$as_me: failed program was:" >&5 8097sed 's/^/| /' conftest.$ac_ext >&5 8098 8099 echo "*** The test program failed to compile or link. See the file config.log for the" 8100 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 8101 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 8102 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 8103fi 8104rm -f conftest.err conftest.$ac_objext \ 8105 conftest$ac_exeext conftest.$ac_ext 8106 CFLAGS="$ac_save_CFLAGS" 8107 LIBS="$ac_save_LIBS" 8108 fi 8109 fi 8110 GTK_CFLAGS="" 8111 GTK_LIBS="" 8112 have_xmms=false 8113 fi 8114 8115 8116 rm -f conf.gtktest 8117 8118 8119 8120# Check whether --with-xmms-prefix or --without-xmms-prefix was given. 8121if test "${with_xmms_prefix+set}" = set; then 8122 withval="$with_xmms_prefix" 8123 xmms_config_prefix="$withval" 8124else 8125 xmms_config_prefix="" 8126fi; 8127 8128# Check whether --with-xmms-exec-prefix or --without-xmms-exec-prefix was given. 8129if test "${with_xmms_exec_prefix+set}" = set; then 8130 withval="$with_xmms_exec_prefix" 8131 xmms_config_exec_prefix="$withval" 8132else 8133 xmms_config_exec_prefix="" 8134fi; 8135 8136if test x$xmms_config_exec_prefix != x; then 8137 xmms_config_args="$xmms_config_args --exec-prefix=$xmms_config_exec_prefix" 8138 if test x${XMMS_CONFIG+set} != xset; then 8139 XMMS_CONFIG=$xmms_config_exec_prefix/bin/xmms-config 8140 fi 8141fi 8142 8143if test x$xmms_config_prefix != x; then 8144 xmms_config_args="$xmms_config_args --prefix=$xmms_config_prefix" 8145 if test x${XMMS_CONFIG+set} != xset; then 8146 XMMS_CONFIG=$xmms_config_prefix/bin/xmms-config 8147 fi 8148fi 8149 8150# Extract the first word of "xmms-config", so it can be a program name with args. 8151set dummy xmms-config; ac_word=$2 8152echo "$as_me:$LINENO: checking for $ac_word" >&5 8153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8154if test "${ac_cv_path_XMMS_CONFIG+set}" = set; then 8155 echo $ECHO_N "(cached) $ECHO_C" >&6 8156else 8157 case $XMMS_CONFIG in 8158 [\\/]* | ?:[\\/]*) 8159 ac_cv_path_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test with a path. 8160 ;; 8161 *) 8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8163for as_dir in $PATH 8164do 8165 IFS=$as_save_IFS 8166 test -z "$as_dir" && as_dir=. 8167 for ac_exec_ext in '' $ac_executable_extensions; do 8168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8169 ac_cv_path_XMMS_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8171 break 2 8172 fi 8173done 8174done 8175 8176 test -z "$ac_cv_path_XMMS_CONFIG" && ac_cv_path_XMMS_CONFIG="no" 8177 ;; 8178esac 8179fi 8180XMMS_CONFIG=$ac_cv_path_XMMS_CONFIG 8181 8182if test -n "$XMMS_CONFIG"; then 8183 echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5 8184echo "${ECHO_T}$XMMS_CONFIG" >&6 8185else 8186 echo "$as_me:$LINENO: result: no" >&5 8187echo "${ECHO_T}no" >&6 8188fi 8189 8190min_xmms_version=1.0.0 8191 8192if test "$XMMS_CONFIG" = "no"; then 8193 no_xmms=yes 8194else 8195 XMMS_CFLAGS=`$XMMS_CONFIG $xmms_config_args --cflags` 8196 XMMS_LIBS=`$XMMS_CONFIG $xmms_config_args --libs` 8197 XMMS_VERSION=`$XMMS_CONFIG $xmms_config_args --version` 8198 XMMS_DATA_DIR=`$XMMS_CONFIG $xmms_config_args --data-dir` 8199 XMMS_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --plugin-dir` 8200 XMMS_VISUALIZATION_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args \ 8201 --visualization-plugin-dir` 8202 XMMS_INPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --input-plugin-dir` 8203 XMMS_OUTPUT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --output-plugin-dir` 8204 XMMS_EFFECT_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --effect-plugin-dir` 8205 XMMS_GENERAL_PLUGIN_DIR=`$XMMS_CONFIG $xmms_config_args --general-plugin-dir` 8206 8207 8208 8209# Determine which version number is greater. Prints 2 to stdout if 8210# the second number is greater, 1 if the first number is greater, 8211# 0 if the numbers are equal. 8212 8213# Written 15 December 1999 by Ben Gertzfield <che@debian.org> 8214# Revised 15 December 1999 by Jim Monty <monty@primenet.com> 8215 8216 for ac_prog in gawk mawk nawk awk 8217do 8218 # Extract the first word of "$ac_prog", so it can be a program name with args. 8219set dummy $ac_prog; ac_word=$2 8220echo "$as_me:$LINENO: checking for $ac_word" >&5 8221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8222if test "${ac_cv_prog_AWK+set}" = set; then 8223 echo $ECHO_N "(cached) $ECHO_C" >&6 8224else 8225 if test -n "$AWK"; then 8226 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8227else 8228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8229for as_dir in $PATH 8230do 8231 IFS=$as_save_IFS 8232 test -z "$as_dir" && as_dir=. 8233 for ac_exec_ext in '' $ac_executable_extensions; do 8234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8235 ac_cv_prog_AWK="$ac_prog" 8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8237 break 2 8238 fi 8239done 8240done 8241 8242fi 8243fi 8244AWK=$ac_cv_prog_AWK 8245if test -n "$AWK"; then 8246 echo "$as_me:$LINENO: result: $AWK" >&5 8247echo "${ECHO_T}$AWK" >&6 8248else 8249 echo "$as_me:$LINENO: result: no" >&5 8250echo "${ECHO_T}no" >&6 8251fi 8252 8253 test -n "$AWK" && break 8254done 8255 8256 xmms_got_version=` $AWK ' \ 8257BEGIN { \ 8258 print vercmp(ARGV[1], ARGV[2]); \ 8259} \ 8260 \ 8261function vercmp(ver1, ver2, ver1arr, ver2arr, \ 8262 ver1len, ver2len, \ 8263 ver1int, ver2int, len, i, p) { \ 8264 \ 8265 ver1len = split(ver1, ver1arr, /\./); \ 8266 ver2len = split(ver2, ver2arr, /\./); \ 8267 \ 8268 len = ver1len > ver2len ? ver1len : ver2len; \ 8269 \ 8270 for (i = 1; i <= len; i++) { \ 8271 p = 1000 ^ (len - i); \ 8272 ver1int += ver1arr[i] * p; \ 8273 ver2int += ver2arr[i] * p; \ 8274 } \ 8275 \ 8276 if (ver1int < ver2int) \ 8277 return 2; \ 8278 else if (ver1int > ver2int) \ 8279 return 1; \ 8280 else \ 8281 return 0; \ 8282}' $XMMS_VERSION $min_xmms_version` 8283 8284 if test $xmms_got_version -eq 2; then # failure 8285 no_xmms=version 8286 else # success! 8287 : 8288 fi 8289 8290fi 8291 8292echo "$as_me:$LINENO: checking for XMMS - version >= $min_xmms_version" >&5 8293echo $ECHO_N "checking for XMMS - version >= $min_xmms_version... $ECHO_C" >&6 8294 8295if test "x$no_xmms" = x; then 8296 echo "$as_me:$LINENO: result: yes" >&5 8297echo "${ECHO_T}yes" >&6 8298 : 8299else 8300 echo "$as_me:$LINENO: result: no" >&5 8301echo "${ECHO_T}no" >&6 8302 8303 if test "$XMMS_CONFIG" = "no" ; then 8304 echo "*** The xmms-config script installed by XMMS could not be found." 8305 echo "*** If XMMS was installed in PREFIX, make sure PREFIX/bin is in" 8306 echo "*** your path, or set the XMMS_CONFIG environment variable to the" 8307 echo "*** full path to xmms-config." 8308 else 8309 if test "$no_xmms" = "version"; then 8310 echo "*** An old version of XMMS, $XMMS_VERSION, was found." 8311 echo "*** You need a version of XMMS newer than $min_xmms_version." 8312 echo "*** The latest version of XMMS is always available from" 8313 echo "*** http://www.xmms.org/" 8314 echo "***" 8315 8316 echo "*** If you have already installed a sufficiently new version, this error" 8317 echo "*** probably means that the wrong copy of the xmms-config shell script is" 8318 echo "*** being found. The easiest way to fix this is to remove the old version" 8319 echo "*** of XMMS, but you can also set the XMMS_CONFIG environment to point to the" 8320 echo "*** correct copy of xmms-config. (In this case, you will have to" 8321 echo "*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf" 8322 echo "*** so that the correct libraries are found at run-time)" 8323 fi 8324 fi 8325 XMMS_CFLAGS="" 8326 XMMS_LIBS="" 8327 have_xmms=false 8328fi 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340# Check whether --enable-static or --disable-static was given. 8341if test "${enable_static+set}" = set; then 8342 enableval="$enable_static" 8343 p=${PACKAGE-default} 8344 case $enableval in 8345 yes) enable_static=yes ;; 8346 no) enable_static=no ;; 8347 *) 8348 enable_static=no 8349 # Look at the argument we got. We use all the common list separators. 8350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8351 for pkg in $enableval; do 8352 IFS="$lt_save_ifs" 8353 if test "X$pkg" = "X$p"; then 8354 enable_static=yes 8355 fi 8356 done 8357 IFS="$lt_save_ifs" 8358 ;; 8359 esac 8360else 8361 enable_static=no 8362fi; 8363 8364 8365# Check whether --enable-shared or --disable-shared was given. 8366if test "${enable_shared+set}" = set; then 8367 enableval="$enable_shared" 8368 p=${PACKAGE-default} 8369 case $enableval in 8370 yes) enable_shared=yes ;; 8371 no) enable_shared=no ;; 8372 *) 8373 enable_shared=no 8374 # Look at the argument we got. We use all the common list separators. 8375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8376 for pkg in $enableval; do 8377 IFS="$lt_save_ifs" 8378 if test "X$pkg" = "X$p"; then 8379 enable_shared=yes 8380 fi 8381 done 8382 IFS="$lt_save_ifs" 8383 ;; 8384 esac 8385else 8386 enable_shared=yes 8387fi; 8388 8389# Check whether --enable-fast-install or --disable-fast-install was given. 8390if test "${enable_fast_install+set}" = set; then 8391 enableval="$enable_fast_install" 8392 p=${PACKAGE-default} 8393 case $enableval in 8394 yes) enable_fast_install=yes ;; 8395 no) enable_fast_install=no ;; 8396 *) 8397 enable_fast_install=no 8398 # Look at the argument we got. We use all the common list separators. 8399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8400 for pkg in $enableval; do 8401 IFS="$lt_save_ifs" 8402 if test "X$pkg" = "X$p"; then 8403 enable_fast_install=yes 8404 fi 8405 done 8406 IFS="$lt_save_ifs" 8407 ;; 8408 esac 8409else 8410 enable_fast_install=yes 8411fi; 8412 8413echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 8414echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 8415if test "${lt_cv_path_SED+set}" = set; then 8416 echo $ECHO_N "(cached) $ECHO_C" >&6 8417else 8418 # Loop through the user's path and test for sed and gsed. 8419# Then use that list of sed's as ones to test for truncation. 8420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8421for as_dir in $PATH 8422do 8423 IFS=$as_save_IFS 8424 test -z "$as_dir" && as_dir=. 8425 for lt_ac_prog in sed gsed; do 8426 for ac_exec_ext in '' $ac_executable_extensions; do 8427 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 8428 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 8429 fi 8430 done 8431 done 8432done 8433lt_ac_max=0 8434lt_ac_count=0 8435# Add /usr/xpg4/bin/sed as it is typically found on Solaris 8436# along with /bin/sed that truncates output. 8437for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 8438 test ! -f $lt_ac_sed && continue 8439 cat /dev/null > conftest.in 8440 lt_ac_count=0 8441 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 8442 # Check for GNU sed and select it if it is found. 8443 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 8444 lt_cv_path_SED=$lt_ac_sed 8445 break 8446 fi 8447 while true; do 8448 cat conftest.in conftest.in >conftest.tmp 8449 mv conftest.tmp conftest.in 8450 cp conftest.in conftest.nl 8451 echo >>conftest.nl 8452 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 8453 cmp -s conftest.out conftest.nl || break 8454 # 10000 chars as input seems more than enough 8455 test $lt_ac_count -gt 10 && break 8456 lt_ac_count=`expr $lt_ac_count + 1` 8457 if test $lt_ac_count -gt $lt_ac_max; then 8458 lt_ac_max=$lt_ac_count 8459 lt_cv_path_SED=$lt_ac_sed 8460 fi 8461 done 8462done 8463 8464fi 8465 8466SED=$lt_cv_path_SED 8467echo "$as_me:$LINENO: result: $SED" >&5 8468echo "${ECHO_T}$SED" >&6 8469 8470 8471# Check whether --with-gnu-ld or --without-gnu-ld was given. 8472if test "${with_gnu_ld+set}" = set; then 8473 withval="$with_gnu_ld" 8474 test "$withval" = no || with_gnu_ld=yes 8475else 8476 with_gnu_ld=no 8477fi; 8478ac_prog=ld 8479if test "$GCC" = yes; then 8480 # Check if gcc -print-prog-name=ld gives a path. 8481 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 8482echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 8483 case $host in 8484 *-*-mingw*) 8485 # gcc leaves a trailing carriage return which upsets mingw 8486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8487 *) 8488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8489 esac 8490 case $ac_prog in 8491 # Accept absolute paths. 8492 [\\/]* | ?:[\\/]*) 8493 re_direlt='/[^/][^/]*/\.\./' 8494 # Canonicalize the pathname of ld 8495 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 8496 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8497 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 8498 done 8499 test -z "$LD" && LD="$ac_prog" 8500 ;; 8501 "") 8502 # If it fails, then pretend we aren't using GCC. 8503 ac_prog=ld 8504 ;; 8505 *) 8506 # If it is relative, then search for the first ld in PATH. 8507 with_gnu_ld=unknown 8508 ;; 8509 esac 8510elif test "$with_gnu_ld" = yes; then 8511 echo "$as_me:$LINENO: checking for GNU ld" >&5 8512echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 8513else 8514 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 8515echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 8516fi 8517if test "${lt_cv_path_LD+set}" = set; then 8518 echo $ECHO_N "(cached) $ECHO_C" >&6 8519else 8520 if test -z "$LD"; then 8521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8522 for ac_dir in $PATH; do 8523 IFS="$lt_save_ifs" 8524 test -z "$ac_dir" && ac_dir=. 8525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8526 lt_cv_path_LD="$ac_dir/$ac_prog" 8527 # Check to see if the program is GNU ld. I'd rather use --version, 8528 # but apparently some variants of GNU ld only accept -v. 8529 # Break only if it was the GNU/non-GNU ld that we prefer. 8530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8531 *GNU* | *'with BFD'*) 8532 test "$with_gnu_ld" != no && break 8533 ;; 8534 *) 8535 test "$with_gnu_ld" != yes && break 8536 ;; 8537 esac 8538 fi 8539 done 8540 IFS="$lt_save_ifs" 8541else 8542 lt_cv_path_LD="$LD" # Let the user override the test with a path. 8543fi 8544fi 8545 8546LD="$lt_cv_path_LD" 8547if test -n "$LD"; then 8548 echo "$as_me:$LINENO: result: $LD" >&5 8549echo "${ECHO_T}$LD" >&6 8550else 8551 echo "$as_me:$LINENO: result: no" >&5 8552echo "${ECHO_T}no" >&6 8553fi 8554test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 8555echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 8556 { (exit 1); exit 1; }; } 8557echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 8558echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 8559if test "${lt_cv_prog_gnu_ld+set}" = set; then 8560 echo $ECHO_N "(cached) $ECHO_C" >&6 8561else 8562 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8563case `$LD -v 2>&1 </dev/null` in 8564*GNU* | *'with BFD'*) 8565 lt_cv_prog_gnu_ld=yes 8566 ;; 8567*) 8568 lt_cv_prog_gnu_ld=no 8569 ;; 8570esac 8571fi 8572echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 8573echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 8574with_gnu_ld=$lt_cv_prog_gnu_ld 8575 8576 8577echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 8578echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 8579if test "${lt_cv_ld_reload_flag+set}" = set; then 8580 echo $ECHO_N "(cached) $ECHO_C" >&6 8581else 8582 lt_cv_ld_reload_flag='-r' 8583fi 8584echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 8585echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 8586reload_flag=$lt_cv_ld_reload_flag 8587case $reload_flag in 8588"" | " "*) ;; 8589*) reload_flag=" $reload_flag" ;; 8590esac 8591reload_cmds='$LD$reload_flag -o $output$reload_objs' 8592case $host_os in 8593 darwin*) 8594 if test "$GCC" = yes; then 8595 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 8596 else 8597 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8598 fi 8599 ;; 8600esac 8601 8602echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 8603echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 8604if test "${lt_cv_path_NM+set}" = set; then 8605 echo $ECHO_N "(cached) $ECHO_C" >&6 8606else 8607 if test -n "$NM"; then 8608 # Let the user override the test. 8609 lt_cv_path_NM="$NM" 8610else 8611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8612 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 8613 IFS="$lt_save_ifs" 8614 test -z "$ac_dir" && ac_dir=. 8615 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 8616 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 8617 # Check to see if the nm accepts a BSD-compat flag. 8618 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 8619 # nm: unknown option "B" ignored 8620 # Tru64's nm complains that /dev/null is an invalid object file 8621 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 8622 */dev/null* | *'Invalid file or object type'*) 8623 lt_cv_path_NM="$tmp_nm -B" 8624 break 8625 ;; 8626 *) 8627 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8628 */dev/null*) 8629 lt_cv_path_NM="$tmp_nm -p" 8630 break 8631 ;; 8632 *) 8633 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8634 continue # so that we can try to find one that supports BSD flags 8635 ;; 8636 esac 8637 esac 8638 fi 8639 done 8640 IFS="$lt_save_ifs" 8641 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 8642fi 8643fi 8644echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 8645echo "${ECHO_T}$lt_cv_path_NM" >&6 8646NM="$lt_cv_path_NM" 8647 8648echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 8649echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 8650if test "${lt_cv_deplibs_check_method+set}" = set; then 8651 echo $ECHO_N "(cached) $ECHO_C" >&6 8652else 8653 lt_cv_file_magic_cmd='$MAGIC_CMD' 8654lt_cv_file_magic_test_file= 8655lt_cv_deplibs_check_method='unknown' 8656# Need to set the preceding variable on all platforms that support 8657# interlibrary dependencies. 8658# 'none' -- dependencies not supported. 8659# `unknown' -- same as none, but documents that we really don't know. 8660# 'pass_all' -- all dependencies passed with no checks. 8661# 'test_compile' -- check by making test program. 8662# 'file_magic [[regex]]' -- check by looking for files in library path 8663# which responds to the $file_magic_cmd with a given extended regex. 8664# If you have `file' or equivalent on your system and you're not sure 8665# whether `pass_all' will *always* work, you probably want this one. 8666 8667case $host_os in 8668aix4* | aix5*) 8669 lt_cv_deplibs_check_method=pass_all 8670 ;; 8671 8672beos*) 8673 lt_cv_deplibs_check_method=pass_all 8674 ;; 8675 8676bsdi[45]*) 8677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8678 lt_cv_file_magic_cmd='/usr/bin/file -L' 8679 lt_cv_file_magic_test_file=/shlib/libc.so 8680 ;; 8681 8682cygwin*) 8683 # func_win32_libid is a shell function defined in ltmain.sh 8684 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8685 lt_cv_file_magic_cmd='func_win32_libid' 8686 ;; 8687 8688mingw* | pw32*) 8689 # Base MSYS/MinGW do not provide the 'file' command needed by 8690 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 8691 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 8692 lt_cv_file_magic_cmd='$OBJDUMP -f' 8693 ;; 8694 8695darwin* | rhapsody*) 8696 lt_cv_deplibs_check_method=pass_all 8697 ;; 8698 8699freebsd* | kfreebsd*-gnu | dragonfly*) 8700 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 8701 case $host_cpu in 8702 i*86 ) 8703 # Not sure whether the presence of OpenBSD here was a mistake. 8704 # Let's accept both of them until this is cleared up. 8705 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8706 lt_cv_file_magic_cmd=/usr/bin/file 8707 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8708 ;; 8709 esac 8710 else 8711 lt_cv_deplibs_check_method=pass_all 8712 fi 8713 ;; 8714 8715gnu*) 8716 lt_cv_deplibs_check_method=pass_all 8717 ;; 8718 8719hpux10.20* | hpux11*) 8720 lt_cv_file_magic_cmd=/usr/bin/file 8721 case $host_cpu in 8722 ia64*) 8723 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8724 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8725 ;; 8726 hppa*64*) 8727 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]' 8728 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8729 ;; 8730 *) 8731 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 8732 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8733 ;; 8734 esac 8735 ;; 8736 8737irix5* | irix6* | nonstopux*) 8738 case $LD in 8739 *-32|*"-32 ") libmagic=32-bit;; 8740 *-n32|*"-n32 ") libmagic=N32;; 8741 *-64|*"-64 ") libmagic=64-bit;; 8742 *) libmagic=never-match;; 8743 esac 8744 lt_cv_deplibs_check_method=pass_all 8745 ;; 8746 8747# This must be Linux ELF. 8748linux*) 8749 lt_cv_deplibs_check_method=pass_all 8750 ;; 8751 8752netbsd*) 8753 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 8754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8755 else 8756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8757 fi 8758 ;; 8759 8760newos6*) 8761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8762 lt_cv_file_magic_cmd=/usr/bin/file 8763 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8764 ;; 8765 8766nto-qnx*) 8767 lt_cv_deplibs_check_method=unknown 8768 ;; 8769 8770openbsd*) 8771 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8773 else 8774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8775 fi 8776 ;; 8777 8778osf3* | osf4* | osf5*) 8779 lt_cv_deplibs_check_method=pass_all 8780 ;; 8781 8782sco3.2v5*) 8783 lt_cv_deplibs_check_method=pass_all 8784 ;; 8785 8786solaris*) 8787 lt_cv_deplibs_check_method=pass_all 8788 ;; 8789 8790sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8791 case $host_vendor in 8792 motorola) 8793 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]' 8794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8795 ;; 8796 ncr) 8797 lt_cv_deplibs_check_method=pass_all 8798 ;; 8799 sequent) 8800 lt_cv_file_magic_cmd='/bin/file' 8801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8802 ;; 8803 sni) 8804 lt_cv_file_magic_cmd='/bin/file' 8805 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8806 lt_cv_file_magic_test_file=/lib/libc.so 8807 ;; 8808 siemens) 8809 lt_cv_deplibs_check_method=pass_all 8810 ;; 8811 esac 8812 ;; 8813 8814sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 8815 lt_cv_deplibs_check_method=pass_all 8816 ;; 8817esac 8818 8819fi 8820echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 8821echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 8822file_magic_cmd=$lt_cv_file_magic_cmd 8823deplibs_check_method=$lt_cv_deplibs_check_method 8824test -z "$deplibs_check_method" && deplibs_check_method=unknown 8825 8826 8827 8828 8829# If no C compiler was specified, use CC. 8830LTCC=${LTCC-"$CC"} 8831 8832# Allow CC to be a program name with arguments. 8833compiler=$CC 8834 8835# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 8836if test "${enable_libtool_lock+set}" = set; then 8837 enableval="$enable_libtool_lock" 8838 8839fi; 8840test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8841 8842# Some flags need to be propagated to the compiler or linker for good 8843# libtool support. 8844case $host in 8845ia64-*-hpux*) 8846 # Find out which ABI we are using. 8847 echo 'int i;' > conftest.$ac_ext 8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8849 (eval $ac_compile) 2>&5 8850 ac_status=$? 8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8852 (exit $ac_status); }; then 8853 case `/usr/bin/file conftest.$ac_objext` in 8854 *ELF-32*) 8855 HPUX_IA64_MODE="32" 8856 ;; 8857 *ELF-64*) 8858 HPUX_IA64_MODE="64" 8859 ;; 8860 esac 8861 fi 8862 rm -rf conftest* 8863 ;; 8864*-*-irix6*) 8865 # Find out which ABI we are using. 8866 echo '#line 8866 "configure"' > conftest.$ac_ext 8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8868 (eval $ac_compile) 2>&5 8869 ac_status=$? 8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8871 (exit $ac_status); }; then 8872 if test "$lt_cv_prog_gnu_ld" = yes; then 8873 case `/usr/bin/file conftest.$ac_objext` in 8874 *32-bit*) 8875 LD="${LD-ld} -melf32bsmip" 8876 ;; 8877 *N32*) 8878 LD="${LD-ld} -melf32bmipn32" 8879 ;; 8880 *64-bit*) 8881 LD="${LD-ld} -melf64bmip" 8882 ;; 8883 esac 8884 else 8885 case `/usr/bin/file conftest.$ac_objext` in 8886 *32-bit*) 8887 LD="${LD-ld} -32" 8888 ;; 8889 *N32*) 8890 LD="${LD-ld} -n32" 8891 ;; 8892 *64-bit*) 8893 LD="${LD-ld} -64" 8894 ;; 8895 esac 8896 fi 8897 fi 8898 rm -rf conftest* 8899 ;; 8900 8901x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 8902 # Find out which ABI we are using. 8903 echo 'int i;' > conftest.$ac_ext 8904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8905 (eval $ac_compile) 2>&5 8906 ac_status=$? 8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8908 (exit $ac_status); }; then 8909 case `/usr/bin/file conftest.o` in 8910 *32-bit*) 8911 case $host in 8912 x86_64-*linux*) 8913 LD="${LD-ld} -m elf_i386" 8914 ;; 8915 ppc64-*linux*|powerpc64-*linux*) 8916 LD="${LD-ld} -m elf32ppclinux" 8917 ;; 8918 s390x-*linux*) 8919 LD="${LD-ld} -m elf_s390" 8920 ;; 8921 sparc64-*linux*) 8922 LD="${LD-ld} -m elf32_sparc" 8923 ;; 8924 esac 8925 ;; 8926 *64-bit*) 8927 case $host in 8928 x86_64-*linux*) 8929 LD="${LD-ld} -m elf_x86_64" 8930 ;; 8931 ppc*-*linux*|powerpc*-*linux*) 8932 LD="${LD-ld} -m elf64ppc" 8933 ;; 8934 s390*-*linux*) 8935 LD="${LD-ld} -m elf64_s390" 8936 ;; 8937 sparc*-*linux*) 8938 LD="${LD-ld} -m elf64_sparc" 8939 ;; 8940 esac 8941 ;; 8942 esac 8943 fi 8944 rm -rf conftest* 8945 ;; 8946 8947*-*-sco3.2v5*) 8948 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8949 SAVE_CFLAGS="$CFLAGS" 8950 CFLAGS="$CFLAGS -belf" 8951 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 8952echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 8953if test "${lt_cv_cc_needs_belf+set}" = set; then 8954 echo $ECHO_N "(cached) $ECHO_C" >&6 8955else 8956 ac_ext=c 8957ac_cpp='$CPP $CPPFLAGS' 8958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8960ac_compiler_gnu=$ac_cv_c_compiler_gnu 8961 8962 cat >conftest.$ac_ext <<_ACEOF 8963/* confdefs.h. */ 8964_ACEOF 8965cat confdefs.h >>conftest.$ac_ext 8966cat >>conftest.$ac_ext <<_ACEOF 8967/* end confdefs.h. */ 8968 8969int 8970main () 8971{ 8972 8973 ; 8974 return 0; 8975} 8976_ACEOF 8977rm -f conftest.$ac_objext conftest$ac_exeext 8978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8979 (eval $ac_link) 2>conftest.er1 8980 ac_status=$? 8981 grep -v '^ *+' conftest.er1 >conftest.err 8982 rm -f conftest.er1 8983 cat conftest.err >&5 8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8985 (exit $ac_status); } && 8986 { ac_try='test -z "$ac_c_werror_flag" 8987 || test ! -s conftest.err' 8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8989 (eval $ac_try) 2>&5 8990 ac_status=$? 8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8992 (exit $ac_status); }; } && 8993 { ac_try='test -s conftest$ac_exeext' 8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8995 (eval $ac_try) 2>&5 8996 ac_status=$? 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 (exit $ac_status); }; }; then 8999 lt_cv_cc_needs_belf=yes 9000else 9001 echo "$as_me: failed program was:" >&5 9002sed 's/^/| /' conftest.$ac_ext >&5 9003 9004lt_cv_cc_needs_belf=no 9005fi 9006rm -f conftest.err conftest.$ac_objext \ 9007 conftest$ac_exeext conftest.$ac_ext 9008 ac_ext=c 9009ac_cpp='$CPP $CPPFLAGS' 9010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9012ac_compiler_gnu=$ac_cv_c_compiler_gnu 9013 9014fi 9015echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 9016echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 9017 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9018 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9019 CFLAGS="$SAVE_CFLAGS" 9020 fi 9021 ;; 9022 9023esac 9024 9025need_locks="$enable_libtool_lock" 9026 9027 9028 9029for ac_header in dlfcn.h 9030do 9031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9032if eval "test \"\${$as_ac_Header+set}\" = set"; then 9033 echo "$as_me:$LINENO: checking for $ac_header" >&5 9034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9035if eval "test \"\${$as_ac_Header+set}\" = set"; then 9036 echo $ECHO_N "(cached) $ECHO_C" >&6 9037fi 9038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9040else 9041 # Is the header compilable? 9042echo "$as_me:$LINENO: checking $ac_header usability" >&5 9043echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9044cat >conftest.$ac_ext <<_ACEOF 9045/* confdefs.h. */ 9046_ACEOF 9047cat confdefs.h >>conftest.$ac_ext 9048cat >>conftest.$ac_ext <<_ACEOF 9049/* end confdefs.h. */ 9050$ac_includes_default 9051#include <$ac_header> 9052_ACEOF 9053rm -f conftest.$ac_objext 9054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9055 (eval $ac_compile) 2>conftest.er1 9056 ac_status=$? 9057 grep -v '^ *+' conftest.er1 >conftest.err 9058 rm -f conftest.er1 9059 cat conftest.err >&5 9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9061 (exit $ac_status); } && 9062 { ac_try='test -z "$ac_c_werror_flag" 9063 || test ! -s conftest.err' 9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9065 (eval $ac_try) 2>&5 9066 ac_status=$? 9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9068 (exit $ac_status); }; } && 9069 { ac_try='test -s conftest.$ac_objext' 9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9071 (eval $ac_try) 2>&5 9072 ac_status=$? 9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9074 (exit $ac_status); }; }; then 9075 ac_header_compiler=yes 9076else 9077 echo "$as_me: failed program was:" >&5 9078sed 's/^/| /' conftest.$ac_ext >&5 9079 9080ac_header_compiler=no 9081fi 9082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9084echo "${ECHO_T}$ac_header_compiler" >&6 9085 9086# Is the header present? 9087echo "$as_me:$LINENO: checking $ac_header presence" >&5 9088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9089cat >conftest.$ac_ext <<_ACEOF 9090/* confdefs.h. */ 9091_ACEOF 9092cat confdefs.h >>conftest.$ac_ext 9093cat >>conftest.$ac_ext <<_ACEOF 9094/* end confdefs.h. */ 9095#include <$ac_header> 9096_ACEOF 9097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9099 ac_status=$? 9100 grep -v '^ *+' conftest.er1 >conftest.err 9101 rm -f conftest.er1 9102 cat conftest.err >&5 9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9104 (exit $ac_status); } >/dev/null; then 9105 if test -s conftest.err; then 9106 ac_cpp_err=$ac_c_preproc_warn_flag 9107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9108 else 9109 ac_cpp_err= 9110 fi 9111else 9112 ac_cpp_err=yes 9113fi 9114if test -z "$ac_cpp_err"; then 9115 ac_header_preproc=yes 9116else 9117 echo "$as_me: failed program was:" >&5 9118sed 's/^/| /' conftest.$ac_ext >&5 9119 9120 ac_header_preproc=no 9121fi 9122rm -f conftest.err conftest.$ac_ext 9123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9124echo "${ECHO_T}$ac_header_preproc" >&6 9125 9126# So? What about this header? 9127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9128 yes:no: ) 9129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9133 ac_header_preproc=yes 9134 ;; 9135 no:yes:* ) 9136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9148 ( 9149 cat <<\_ASBOX 9150## ------------------------------------ ## 9151## Report this to the normalize lists. ## 9152## ------------------------------------ ## 9153_ASBOX 9154 ) | 9155 sed "s/^/$as_me: WARNING: /" >&2 9156 ;; 9157esac 9158echo "$as_me:$LINENO: checking for $ac_header" >&5 9159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9160if eval "test \"\${$as_ac_Header+set}\" = set"; then 9161 echo $ECHO_N "(cached) $ECHO_C" >&6 9162else 9163 eval "$as_ac_Header=\$ac_header_preproc" 9164fi 9165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9167 9168fi 9169if test `eval echo '${'$as_ac_Header'}'` = yes; then 9170 cat >>confdefs.h <<_ACEOF 9171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9172_ACEOF 9173 9174fi 9175 9176done 9177 9178ac_ext=cc 9179ac_cpp='$CXXCPP $CPPFLAGS' 9180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9183if test -n "$ac_tool_prefix"; then 9184 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 9185 do 9186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9187set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9188echo "$as_me:$LINENO: checking for $ac_word" >&5 9189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9190if test "${ac_cv_prog_CXX+set}" = set; then 9191 echo $ECHO_N "(cached) $ECHO_C" >&6 9192else 9193 if test -n "$CXX"; then 9194 ac_cv_prog_CXX="$CXX" # Let the user override the test. 9195else 9196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9197for as_dir in $PATH 9198do 9199 IFS=$as_save_IFS 9200 test -z "$as_dir" && as_dir=. 9201 for ac_exec_ext in '' $ac_executable_extensions; do 9202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9203 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 9204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9205 break 2 9206 fi 9207done 9208done 9209 9210fi 9211fi 9212CXX=$ac_cv_prog_CXX 9213if test -n "$CXX"; then 9214 echo "$as_me:$LINENO: result: $CXX" >&5 9215echo "${ECHO_T}$CXX" >&6 9216else 9217 echo "$as_me:$LINENO: result: no" >&5 9218echo "${ECHO_T}no" >&6 9219fi 9220 9221 test -n "$CXX" && break 9222 done 9223fi 9224if test -z "$CXX"; then 9225 ac_ct_CXX=$CXX 9226 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 9227do 9228 # Extract the first word of "$ac_prog", so it can be a program name with args. 9229set dummy $ac_prog; ac_word=$2 9230echo "$as_me:$LINENO: checking for $ac_word" >&5 9231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9232if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 9233 echo $ECHO_N "(cached) $ECHO_C" >&6 9234else 9235 if test -n "$ac_ct_CXX"; then 9236 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 9237else 9238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9239for as_dir in $PATH 9240do 9241 IFS=$as_save_IFS 9242 test -z "$as_dir" && as_dir=. 9243 for ac_exec_ext in '' $ac_executable_extensions; do 9244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9245 ac_cv_prog_ac_ct_CXX="$ac_prog" 9246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9247 break 2 9248 fi 9249done 9250done 9251 9252fi 9253fi 9254ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 9255if test -n "$ac_ct_CXX"; then 9256 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 9257echo "${ECHO_T}$ac_ct_CXX" >&6 9258else 9259 echo "$as_me:$LINENO: result: no" >&5 9260echo "${ECHO_T}no" >&6 9261fi 9262 9263 test -n "$ac_ct_CXX" && break 9264done 9265test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 9266 9267 CXX=$ac_ct_CXX 9268fi 9269 9270 9271# Provide some information about the compiler. 9272echo "$as_me:$LINENO:" \ 9273 "checking for C++ compiler version" >&5 9274ac_compiler=`set X $ac_compile; echo $2` 9275{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 9276 (eval $ac_compiler --version </dev/null >&5) 2>&5 9277 ac_status=$? 9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 (exit $ac_status); } 9280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 9281 (eval $ac_compiler -v </dev/null >&5) 2>&5 9282 ac_status=$? 9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9284 (exit $ac_status); } 9285{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 9286 (eval $ac_compiler -V </dev/null >&5) 2>&5 9287 ac_status=$? 9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9289 (exit $ac_status); } 9290 9291echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 9292echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 9293if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 9294 echo $ECHO_N "(cached) $ECHO_C" >&6 9295else 9296 cat >conftest.$ac_ext <<_ACEOF 9297/* confdefs.h. */ 9298_ACEOF 9299cat confdefs.h >>conftest.$ac_ext 9300cat >>conftest.$ac_ext <<_ACEOF 9301/* end confdefs.h. */ 9302 9303int 9304main () 9305{ 9306#ifndef __GNUC__ 9307 choke me 9308#endif 9309 9310 ; 9311 return 0; 9312} 9313_ACEOF 9314rm -f conftest.$ac_objext 9315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9316 (eval $ac_compile) 2>conftest.er1 9317 ac_status=$? 9318 grep -v '^ *+' conftest.er1 >conftest.err 9319 rm -f conftest.er1 9320 cat conftest.err >&5 9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9322 (exit $ac_status); } && 9323 { ac_try='test -z "$ac_cxx_werror_flag" 9324 || test ! -s conftest.err' 9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9326 (eval $ac_try) 2>&5 9327 ac_status=$? 9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9329 (exit $ac_status); }; } && 9330 { ac_try='test -s conftest.$ac_objext' 9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9332 (eval $ac_try) 2>&5 9333 ac_status=$? 9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9335 (exit $ac_status); }; }; then 9336 ac_compiler_gnu=yes 9337else 9338 echo "$as_me: failed program was:" >&5 9339sed 's/^/| /' conftest.$ac_ext >&5 9340 9341ac_compiler_gnu=no 9342fi 9343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9344ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 9345 9346fi 9347echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 9348echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 9349GXX=`test $ac_compiler_gnu = yes && echo yes` 9350ac_test_CXXFLAGS=${CXXFLAGS+set} 9351ac_save_CXXFLAGS=$CXXFLAGS 9352CXXFLAGS="-g" 9353echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 9354echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 9355if test "${ac_cv_prog_cxx_g+set}" = set; then 9356 echo $ECHO_N "(cached) $ECHO_C" >&6 9357else 9358 cat >conftest.$ac_ext <<_ACEOF 9359/* confdefs.h. */ 9360_ACEOF 9361cat confdefs.h >>conftest.$ac_ext 9362cat >>conftest.$ac_ext <<_ACEOF 9363/* end confdefs.h. */ 9364 9365int 9366main () 9367{ 9368 9369 ; 9370 return 0; 9371} 9372_ACEOF 9373rm -f conftest.$ac_objext 9374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9375 (eval $ac_compile) 2>conftest.er1 9376 ac_status=$? 9377 grep -v '^ *+' conftest.er1 >conftest.err 9378 rm -f conftest.er1 9379 cat conftest.err >&5 9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9381 (exit $ac_status); } && 9382 { ac_try='test -z "$ac_cxx_werror_flag" 9383 || test ! -s conftest.err' 9384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9385 (eval $ac_try) 2>&5 9386 ac_status=$? 9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9388 (exit $ac_status); }; } && 9389 { ac_try='test -s conftest.$ac_objext' 9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9391 (eval $ac_try) 2>&5 9392 ac_status=$? 9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9394 (exit $ac_status); }; }; then 9395 ac_cv_prog_cxx_g=yes 9396else 9397 echo "$as_me: failed program was:" >&5 9398sed 's/^/| /' conftest.$ac_ext >&5 9399 9400ac_cv_prog_cxx_g=no 9401fi 9402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9403fi 9404echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 9405echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 9406if test "$ac_test_CXXFLAGS" = set; then 9407 CXXFLAGS=$ac_save_CXXFLAGS 9408elif test $ac_cv_prog_cxx_g = yes; then 9409 if test "$GXX" = yes; then 9410 CXXFLAGS="-g -O2" 9411 else 9412 CXXFLAGS="-g" 9413 fi 9414else 9415 if test "$GXX" = yes; then 9416 CXXFLAGS="-O2" 9417 else 9418 CXXFLAGS= 9419 fi 9420fi 9421for ac_declaration in \ 9422 '' \ 9423 'extern "C" void std::exit (int) throw (); using std::exit;' \ 9424 'extern "C" void std::exit (int); using std::exit;' \ 9425 'extern "C" void exit (int) throw ();' \ 9426 'extern "C" void exit (int);' \ 9427 'void exit (int);' 9428do 9429 cat >conftest.$ac_ext <<_ACEOF 9430/* confdefs.h. */ 9431_ACEOF 9432cat confdefs.h >>conftest.$ac_ext 9433cat >>conftest.$ac_ext <<_ACEOF 9434/* end confdefs.h. */ 9435$ac_declaration 9436#include <stdlib.h> 9437int 9438main () 9439{ 9440exit (42); 9441 ; 9442 return 0; 9443} 9444_ACEOF 9445rm -f conftest.$ac_objext 9446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9447 (eval $ac_compile) 2>conftest.er1 9448 ac_status=$? 9449 grep -v '^ *+' conftest.er1 >conftest.err 9450 rm -f conftest.er1 9451 cat conftest.err >&5 9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9453 (exit $ac_status); } && 9454 { ac_try='test -z "$ac_cxx_werror_flag" 9455 || test ! -s conftest.err' 9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9457 (eval $ac_try) 2>&5 9458 ac_status=$? 9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9460 (exit $ac_status); }; } && 9461 { ac_try='test -s conftest.$ac_objext' 9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9463 (eval $ac_try) 2>&5 9464 ac_status=$? 9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9466 (exit $ac_status); }; }; then 9467 : 9468else 9469 echo "$as_me: failed program was:" >&5 9470sed 's/^/| /' conftest.$ac_ext >&5 9471 9472continue 9473fi 9474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9475 cat >conftest.$ac_ext <<_ACEOF 9476/* confdefs.h. */ 9477_ACEOF 9478cat confdefs.h >>conftest.$ac_ext 9479cat >>conftest.$ac_ext <<_ACEOF 9480/* end confdefs.h. */ 9481$ac_declaration 9482int 9483main () 9484{ 9485exit (42); 9486 ; 9487 return 0; 9488} 9489_ACEOF 9490rm -f conftest.$ac_objext 9491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9492 (eval $ac_compile) 2>conftest.er1 9493 ac_status=$? 9494 grep -v '^ *+' conftest.er1 >conftest.err 9495 rm -f conftest.er1 9496 cat conftest.err >&5 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 (exit $ac_status); } && 9499 { ac_try='test -z "$ac_cxx_werror_flag" 9500 || test ! -s conftest.err' 9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9502 (eval $ac_try) 2>&5 9503 ac_status=$? 9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9505 (exit $ac_status); }; } && 9506 { ac_try='test -s conftest.$ac_objext' 9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9508 (eval $ac_try) 2>&5 9509 ac_status=$? 9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9511 (exit $ac_status); }; }; then 9512 break 9513else 9514 echo "$as_me: failed program was:" >&5 9515sed 's/^/| /' conftest.$ac_ext >&5 9516 9517fi 9518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9519done 9520rm -f conftest* 9521if test -n "$ac_declaration"; then 9522 echo '#ifdef __cplusplus' >>confdefs.h 9523 echo $ac_declaration >>confdefs.h 9524 echo '#endif' >>confdefs.h 9525fi 9526 9527ac_ext=cc 9528ac_cpp='$CXXCPP $CPPFLAGS' 9529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9532 9533depcc="$CXX" am_compiler_list= 9534 9535echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 9536echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 9537if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 9538 echo $ECHO_N "(cached) $ECHO_C" >&6 9539else 9540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 9541 # We make a subdir and do the tests there. Otherwise we can end up 9542 # making bogus files that we don't know about and never remove. For 9543 # instance it was reported that on HP-UX the gcc test will end up 9544 # making a dummy file named `D' -- because `-MD' means `put the output 9545 # in D'. 9546 mkdir conftest.dir 9547 # Copy depcomp to subdir because otherwise we won't find it if we're 9548 # using a relative directory. 9549 cp "$am_depcomp" conftest.dir 9550 cd conftest.dir 9551 # We will build objects and dependencies in a subdirectory because 9552 # it helps to detect inapplicable dependency modes. For instance 9553 # both Tru64's cc and ICC support -MD to output dependencies as a 9554 # side effect of compilation, but ICC will put the dependencies in 9555 # the current directory while Tru64 will put them in the object 9556 # directory. 9557 mkdir sub 9558 9559 am_cv_CXX_dependencies_compiler_type=none 9560 if test "$am_compiler_list" = ""; then 9561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 9562 fi 9563 for depmode in $am_compiler_list; do 9564 # Setup a source with many dependencies, because some compilers 9565 # like to wrap large dependency lists on column 80 (with \), and 9566 # we should not choose a depcomp mode which is confused by this. 9567 # 9568 # We need to recreate these files for each test, as the compiler may 9569 # overwrite some of them when testing with obscure command lines. 9570 # This happens at least with the AIX C compiler. 9571 : > sub/conftest.c 9572 for i in 1 2 3 4 5 6; do 9573 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 9575 # Solaris 8's {/usr,}/bin/sh. 9576 touch sub/conftst$i.h 9577 done 9578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 9579 9580 case $depmode in 9581 nosideeffect) 9582 # after this tag, mechanisms are not by side-effect, so they'll 9583 # only be used when explicitly requested 9584 if test "x$enable_dependency_tracking" = xyes; then 9585 continue 9586 else 9587 break 9588 fi 9589 ;; 9590 none) break ;; 9591 esac 9592 # We check with `-c' and `-o' for the sake of the "dashmstdout" 9593 # mode. It turns out that the SunPro C++ compiler does not properly 9594 # handle `-M -o', and we need to detect this. 9595 if depmode=$depmode \ 9596 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 9597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9598 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 9599 >/dev/null 2>conftest.err && 9600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 9601 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 9602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 9603 # icc doesn't choke on unknown options, it will just issue warnings 9604 # or remarks (even with -Werror). So we grep stderr for any message 9605 # that says an option was ignored or not supported. 9606 # When given -MP, icc 7.0 and 7.1 complain thusly: 9607 # icc: Command line warning: ignoring option '-M'; no argument required 9608 # The diagnosis changed in icc 8.0: 9609 # icc: Command line remark: option '-MP' not supported 9610 if (grep 'ignoring option' conftest.err || 9611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9612 am_cv_CXX_dependencies_compiler_type=$depmode 9613 break 9614 fi 9615 fi 9616 done 9617 9618 cd .. 9619 rm -rf conftest.dir 9620else 9621 am_cv_CXX_dependencies_compiler_type=none 9622fi 9623 9624fi 9625echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 9626echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 9627CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 9628 9629 9630 9631if 9632 test "x$enable_dependency_tracking" != xno \ 9633 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 9634 am__fastdepCXX_TRUE= 9635 am__fastdepCXX_FALSE='#' 9636else 9637 am__fastdepCXX_TRUE='#' 9638 am__fastdepCXX_FALSE= 9639fi 9640 9641 9642 9643 9644if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9645 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9646 (test "X$CXX" != "Xg++"))) ; then 9647 ac_ext=cc 9648ac_cpp='$CXXCPP $CPPFLAGS' 9649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9652echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 9653echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 9654if test -z "$CXXCPP"; then 9655 if test "${ac_cv_prog_CXXCPP+set}" = set; then 9656 echo $ECHO_N "(cached) $ECHO_C" >&6 9657else 9658 # Double quotes because CXXCPP needs to be expanded 9659 for CXXCPP in "$CXX -E" "/lib/cpp" 9660 do 9661 ac_preproc_ok=false 9662for ac_cxx_preproc_warn_flag in '' yes 9663do 9664 # Use a header file that comes with gcc, so configuring glibc 9665 # with a fresh cross-compiler works. 9666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9667 # <limits.h> exists even on freestanding compilers. 9668 # On the NeXT, cc -E runs the code through the compiler's parser, 9669 # not just through cpp. "Syntax error" is here to catch this case. 9670 cat >conftest.$ac_ext <<_ACEOF 9671/* confdefs.h. */ 9672_ACEOF 9673cat confdefs.h >>conftest.$ac_ext 9674cat >>conftest.$ac_ext <<_ACEOF 9675/* end confdefs.h. */ 9676#ifdef __STDC__ 9677# include <limits.h> 9678#else 9679# include <assert.h> 9680#endif 9681 Syntax error 9682_ACEOF 9683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9685 ac_status=$? 9686 grep -v '^ *+' conftest.er1 >conftest.err 9687 rm -f conftest.er1 9688 cat conftest.err >&5 9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9690 (exit $ac_status); } >/dev/null; then 9691 if test -s conftest.err; then 9692 ac_cpp_err=$ac_cxx_preproc_warn_flag 9693 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 9694 else 9695 ac_cpp_err= 9696 fi 9697else 9698 ac_cpp_err=yes 9699fi 9700if test -z "$ac_cpp_err"; then 9701 : 9702else 9703 echo "$as_me: failed program was:" >&5 9704sed 's/^/| /' conftest.$ac_ext >&5 9705 9706 # Broken: fails on valid input. 9707continue 9708fi 9709rm -f conftest.err conftest.$ac_ext 9710 9711 # OK, works on sane cases. Now check whether non-existent headers 9712 # can be detected and how. 9713 cat >conftest.$ac_ext <<_ACEOF 9714/* confdefs.h. */ 9715_ACEOF 9716cat confdefs.h >>conftest.$ac_ext 9717cat >>conftest.$ac_ext <<_ACEOF 9718/* end confdefs.h. */ 9719#include <ac_nonexistent.h> 9720_ACEOF 9721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9723 ac_status=$? 9724 grep -v '^ *+' conftest.er1 >conftest.err 9725 rm -f conftest.er1 9726 cat conftest.err >&5 9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9728 (exit $ac_status); } >/dev/null; then 9729 if test -s conftest.err; then 9730 ac_cpp_err=$ac_cxx_preproc_warn_flag 9731 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 9732 else 9733 ac_cpp_err= 9734 fi 9735else 9736 ac_cpp_err=yes 9737fi 9738if test -z "$ac_cpp_err"; then 9739 # Broken: success on invalid input. 9740continue 9741else 9742 echo "$as_me: failed program was:" >&5 9743sed 's/^/| /' conftest.$ac_ext >&5 9744 9745 # Passes both tests. 9746ac_preproc_ok=: 9747break 9748fi 9749rm -f conftest.err conftest.$ac_ext 9750 9751done 9752# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9753rm -f conftest.err conftest.$ac_ext 9754if $ac_preproc_ok; then 9755 break 9756fi 9757 9758 done 9759 ac_cv_prog_CXXCPP=$CXXCPP 9760 9761fi 9762 CXXCPP=$ac_cv_prog_CXXCPP 9763else 9764 ac_cv_prog_CXXCPP=$CXXCPP 9765fi 9766echo "$as_me:$LINENO: result: $CXXCPP" >&5 9767echo "${ECHO_T}$CXXCPP" >&6 9768ac_preproc_ok=false 9769for ac_cxx_preproc_warn_flag in '' yes 9770do 9771 # Use a header file that comes with gcc, so configuring glibc 9772 # with a fresh cross-compiler works. 9773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9774 # <limits.h> exists even on freestanding compilers. 9775 # On the NeXT, cc -E runs the code through the compiler's parser, 9776 # not just through cpp. "Syntax error" is here to catch this case. 9777 cat >conftest.$ac_ext <<_ACEOF 9778/* confdefs.h. */ 9779_ACEOF 9780cat confdefs.h >>conftest.$ac_ext 9781cat >>conftest.$ac_ext <<_ACEOF 9782/* end confdefs.h. */ 9783#ifdef __STDC__ 9784# include <limits.h> 9785#else 9786# include <assert.h> 9787#endif 9788 Syntax error 9789_ACEOF 9790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9792 ac_status=$? 9793 grep -v '^ *+' conftest.er1 >conftest.err 9794 rm -f conftest.er1 9795 cat conftest.err >&5 9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9797 (exit $ac_status); } >/dev/null; then 9798 if test -s conftest.err; then 9799 ac_cpp_err=$ac_cxx_preproc_warn_flag 9800 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 9801 else 9802 ac_cpp_err= 9803 fi 9804else 9805 ac_cpp_err=yes 9806fi 9807if test -z "$ac_cpp_err"; then 9808 : 9809else 9810 echo "$as_me: failed program was:" >&5 9811sed 's/^/| /' conftest.$ac_ext >&5 9812 9813 # Broken: fails on valid input. 9814continue 9815fi 9816rm -f conftest.err conftest.$ac_ext 9817 9818 # OK, works on sane cases. Now check whether non-existent headers 9819 # can be detected and how. 9820 cat >conftest.$ac_ext <<_ACEOF 9821/* confdefs.h. */ 9822_ACEOF 9823cat confdefs.h >>conftest.$ac_ext 9824cat >>conftest.$ac_ext <<_ACEOF 9825/* end confdefs.h. */ 9826#include <ac_nonexistent.h> 9827_ACEOF 9828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9830 ac_status=$? 9831 grep -v '^ *+' conftest.er1 >conftest.err 9832 rm -f conftest.er1 9833 cat conftest.err >&5 9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9835 (exit $ac_status); } >/dev/null; then 9836 if test -s conftest.err; then 9837 ac_cpp_err=$ac_cxx_preproc_warn_flag 9838 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 9839 else 9840 ac_cpp_err= 9841 fi 9842else 9843 ac_cpp_err=yes 9844fi 9845if test -z "$ac_cpp_err"; then 9846 # Broken: success on invalid input. 9847continue 9848else 9849 echo "$as_me: failed program was:" >&5 9850sed 's/^/| /' conftest.$ac_ext >&5 9851 9852 # Passes both tests. 9853ac_preproc_ok=: 9854break 9855fi 9856rm -f conftest.err conftest.$ac_ext 9857 9858done 9859# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9860rm -f conftest.err conftest.$ac_ext 9861if $ac_preproc_ok; then 9862 : 9863else 9864 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 9865See \`config.log' for more details." >&5 9866echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 9867See \`config.log' for more details." >&2;} 9868 { (exit 1); exit 1; }; } 9869fi 9870 9871ac_ext=cc 9872ac_cpp='$CXXCPP $CPPFLAGS' 9873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9876 9877fi 9878 9879 9880ac_ext=f 9881ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 9882ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9883ac_compiler_gnu=$ac_cv_f77_compiler_gnu 9884if test -n "$ac_tool_prefix"; then 9885 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 9886 do 9887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9889echo "$as_me:$LINENO: checking for $ac_word" >&5 9890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9891if test "${ac_cv_prog_F77+set}" = set; then 9892 echo $ECHO_N "(cached) $ECHO_C" >&6 9893else 9894 if test -n "$F77"; then 9895 ac_cv_prog_F77="$F77" # Let the user override the test. 9896else 9897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9898for as_dir in $PATH 9899do 9900 IFS=$as_save_IFS 9901 test -z "$as_dir" && as_dir=. 9902 for ac_exec_ext in '' $ac_executable_extensions; do 9903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9904 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 9905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9906 break 2 9907 fi 9908done 9909done 9910 9911fi 9912fi 9913F77=$ac_cv_prog_F77 9914if test -n "$F77"; then 9915 echo "$as_me:$LINENO: result: $F77" >&5 9916echo "${ECHO_T}$F77" >&6 9917else 9918 echo "$as_me:$LINENO: result: no" >&5 9919echo "${ECHO_T}no" >&6 9920fi 9921 9922 test -n "$F77" && break 9923 done 9924fi 9925if test -z "$F77"; then 9926 ac_ct_F77=$F77 9927 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 9928do 9929 # Extract the first word of "$ac_prog", so it can be a program name with args. 9930set dummy $ac_prog; ac_word=$2 9931echo "$as_me:$LINENO: checking for $ac_word" >&5 9932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9933if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 9934 echo $ECHO_N "(cached) $ECHO_C" >&6 9935else 9936 if test -n "$ac_ct_F77"; then 9937 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 9938else 9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9940for as_dir in $PATH 9941do 9942 IFS=$as_save_IFS 9943 test -z "$as_dir" && as_dir=. 9944 for ac_exec_ext in '' $ac_executable_extensions; do 9945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9946 ac_cv_prog_ac_ct_F77="$ac_prog" 9947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9948 break 2 9949 fi 9950done 9951done 9952 9953fi 9954fi 9955ac_ct_F77=$ac_cv_prog_ac_ct_F77 9956if test -n "$ac_ct_F77"; then 9957 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 9958echo "${ECHO_T}$ac_ct_F77" >&6 9959else 9960 echo "$as_me:$LINENO: result: no" >&5 9961echo "${ECHO_T}no" >&6 9962fi 9963 9964 test -n "$ac_ct_F77" && break 9965done 9966 9967 F77=$ac_ct_F77 9968fi 9969 9970 9971# Provide some information about the compiler. 9972echo "$as_me:9972:" \ 9973 "checking for Fortran 77 compiler version" >&5 9974ac_compiler=`set X $ac_compile; echo $2` 9975{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 9976 (eval $ac_compiler --version </dev/null >&5) 2>&5 9977 ac_status=$? 9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9979 (exit $ac_status); } 9980{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 9981 (eval $ac_compiler -v </dev/null >&5) 2>&5 9982 ac_status=$? 9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9984 (exit $ac_status); } 9985{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 9986 (eval $ac_compiler -V </dev/null >&5) 2>&5 9987 ac_status=$? 9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9989 (exit $ac_status); } 9990rm -f a.out 9991 9992# If we don't use `.F' as extension, the preprocessor is not run on the 9993# input file. (Note that this only needs to work for GNU compilers.) 9994ac_save_ext=$ac_ext 9995ac_ext=F 9996echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 9997echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 9998if test "${ac_cv_f77_compiler_gnu+set}" = set; then 9999 echo $ECHO_N "(cached) $ECHO_C" >&6 10000else 10001 cat >conftest.$ac_ext <<_ACEOF 10002 program main 10003#ifndef __GNUC__ 10004 choke me 10005#endif 10006 10007 end 10008_ACEOF 10009rm -f conftest.$ac_objext 10010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10011 (eval $ac_compile) 2>conftest.er1 10012 ac_status=$? 10013 grep -v '^ *+' conftest.er1 >conftest.err 10014 rm -f conftest.er1 10015 cat conftest.err >&5 10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10017 (exit $ac_status); } && 10018 { ac_try='test -z "$ac_f77_werror_flag" 10019 || test ! -s conftest.err' 10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10021 (eval $ac_try) 2>&5 10022 ac_status=$? 10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10024 (exit $ac_status); }; } && 10025 { ac_try='test -s conftest.$ac_objext' 10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10027 (eval $ac_try) 2>&5 10028 ac_status=$? 10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10030 (exit $ac_status); }; }; then 10031 ac_compiler_gnu=yes 10032else 10033 echo "$as_me: failed program was:" >&5 10034sed 's/^/| /' conftest.$ac_ext >&5 10035 10036ac_compiler_gnu=no 10037fi 10038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10039ac_cv_f77_compiler_gnu=$ac_compiler_gnu 10040 10041fi 10042echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 10043echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 10044ac_ext=$ac_save_ext 10045ac_test_FFLAGS=${FFLAGS+set} 10046ac_save_FFLAGS=$FFLAGS 10047FFLAGS= 10048echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 10049echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 10050if test "${ac_cv_prog_f77_g+set}" = set; then 10051 echo $ECHO_N "(cached) $ECHO_C" >&6 10052else 10053 FFLAGS=-g 10054cat >conftest.$ac_ext <<_ACEOF 10055 program main 10056 10057 end 10058_ACEOF 10059rm -f conftest.$ac_objext 10060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10061 (eval $ac_compile) 2>conftest.er1 10062 ac_status=$? 10063 grep -v '^ *+' conftest.er1 >conftest.err 10064 rm -f conftest.er1 10065 cat conftest.err >&5 10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10067 (exit $ac_status); } && 10068 { ac_try='test -z "$ac_f77_werror_flag" 10069 || test ! -s conftest.err' 10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10071 (eval $ac_try) 2>&5 10072 ac_status=$? 10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10074 (exit $ac_status); }; } && 10075 { ac_try='test -s conftest.$ac_objext' 10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10077 (eval $ac_try) 2>&5 10078 ac_status=$? 10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10080 (exit $ac_status); }; }; then 10081 ac_cv_prog_f77_g=yes 10082else 10083 echo "$as_me: failed program was:" >&5 10084sed 's/^/| /' conftest.$ac_ext >&5 10085 10086ac_cv_prog_f77_g=no 10087fi 10088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10089 10090fi 10091echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 10092echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 10093if test "$ac_test_FFLAGS" = set; then 10094 FFLAGS=$ac_save_FFLAGS 10095elif test $ac_cv_prog_f77_g = yes; then 10096 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 10097 FFLAGS="-g -O2" 10098 else 10099 FFLAGS="-g" 10100 fi 10101else 10102 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 10103 FFLAGS="-O2" 10104 else 10105 FFLAGS= 10106 fi 10107fi 10108 10109G77=`test $ac_compiler_gnu = yes && echo yes` 10110ac_ext=c 10111ac_cpp='$CPP $CPPFLAGS' 10112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10114ac_compiler_gnu=$ac_cv_c_compiler_gnu 10115 10116 10117 10118# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 10119 10120# find the maximum length of command line arguments 10121echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 10122echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 10123if test "${lt_cv_sys_max_cmd_len+set}" = set; then 10124 echo $ECHO_N "(cached) $ECHO_C" >&6 10125else 10126 i=0 10127 teststring="ABCD" 10128 10129 case $build_os in 10130 msdosdjgpp*) 10131 # On DJGPP, this test can blow up pretty badly due to problems in libc 10132 # (any single argument exceeding 2000 bytes causes a buffer overrun 10133 # during glob expansion). Even if it were fixed, the result of this 10134 # check would be larger than it should be. 10135 lt_cv_sys_max_cmd_len=12288; # 12K is about right 10136 ;; 10137 10138 gnu*) 10139 # Under GNU Hurd, this test is not required because there is 10140 # no limit to the length of command line arguments. 10141 # Libtool will interpret -1 as no limit whatsoever 10142 lt_cv_sys_max_cmd_len=-1; 10143 ;; 10144 10145 cygwin* | mingw*) 10146 # On Win9x/ME, this test blows up -- it succeeds, but takes 10147 # about 5 minutes as the teststring grows exponentially. 10148 # Worse, since 9x/ME are not pre-emptively multitasking, 10149 # you end up with a "frozen" computer, even though with patience 10150 # the test eventually succeeds (with a max line length of 256k). 10151 # Instead, let's just punt: use the minimum linelength reported by 10152 # all of the supported platforms: 8192 (on NT/2K/XP). 10153 lt_cv_sys_max_cmd_len=8192; 10154 ;; 10155 10156 amigaos*) 10157 # On AmigaOS with pdksh, this test takes hours, literally. 10158 # So we just punt and use a minimum line length of 8192. 10159 lt_cv_sys_max_cmd_len=8192; 10160 ;; 10161 10162 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 10163 # This has been around since 386BSD, at least. Likely further. 10164 if test -x /sbin/sysctl; then 10165 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 10166 elif test -x /usr/sbin/sysctl; then 10167 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 10168 else 10169 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 10170 fi 10171 # And add a safety zone 10172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 10173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 10174 ;; 10175 osf*) 10176 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 10177 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 10178 # nice to cause kernel panics so lets avoid the loop below. 10179 # First set a reasonable default. 10180 lt_cv_sys_max_cmd_len=16384 10181 # 10182 if test -x /sbin/sysconfig; then 10183 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 10184 *1*) lt_cv_sys_max_cmd_len=-1 ;; 10185 esac 10186 fi 10187 ;; 10188 *) 10189 # If test is not a shell built-in, we'll probably end up computing a 10190 # maximum length that is only half of the actual maximum length, but 10191 # we can't tell. 10192 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 10193 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 10194 = "XX$teststring") >/dev/null 2>&1 && 10195 new_result=`expr "X$teststring" : ".*" 2>&1` && 10196 lt_cv_sys_max_cmd_len=$new_result && 10197 test $i != 17 # 1/2 MB should be enough 10198 do 10199 i=`expr $i + 1` 10200 teststring=$teststring$teststring 10201 done 10202 teststring= 10203 # Add a significant safety factor because C++ compilers can tack on massive 10204 # amounts of additional arguments before passing them to the linker. 10205 # It appears as though 1/2 is a usable value. 10206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 10207 ;; 10208 esac 10209 10210fi 10211 10212if test -n $lt_cv_sys_max_cmd_len ; then 10213 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 10214echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 10215else 10216 echo "$as_me:$LINENO: result: none" >&5 10217echo "${ECHO_T}none" >&6 10218fi 10219 10220 10221 10222 10223# Check for command to grab the raw symbol name followed by C symbol from nm. 10224echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 10225echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 10226if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 10227 echo $ECHO_N "(cached) $ECHO_C" >&6 10228else 10229 10230# These are sane defaults that work on at least a few old systems. 10231# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10232 10233# Character class describing NM global symbol codes. 10234symcode='[BCDEGRST]' 10235 10236# Regexp to match symbols that can be accessed directly from C. 10237sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10238 10239# Transform an extracted symbol line into a proper C declaration 10240lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 10241 10242# Transform an extracted symbol line into symbol name and symbol address 10243lt_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'" 10244 10245# Define system-specific variables. 10246case $host_os in 10247aix*) 10248 symcode='[BCDT]' 10249 ;; 10250cygwin* | mingw* | pw32*) 10251 symcode='[ABCDGISTW]' 10252 ;; 10253hpux*) # Its linker distinguishes data from code symbols 10254 if test "$host_cpu" = ia64; then 10255 symcode='[ABCDEGRST]' 10256 fi 10257 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10258 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'" 10259 ;; 10260linux*) 10261 if test "$host_cpu" = ia64; then 10262 symcode='[ABCDGIRSTW]' 10263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10264 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'" 10265 fi 10266 ;; 10267irix* | nonstopux*) 10268 symcode='[BCDEGRST]' 10269 ;; 10270osf*) 10271 symcode='[BCDEGQRST]' 10272 ;; 10273solaris* | sysv5*) 10274 symcode='[BDRT]' 10275 ;; 10276sysv4) 10277 symcode='[DFNSTU]' 10278 ;; 10279esac 10280 10281# Handle CRLF in mingw tool chain 10282opt_cr= 10283case $build_os in 10284mingw*) 10285 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10286 ;; 10287esac 10288 10289# If we're using GNU nm, then use its standard symbol codes. 10290case `$NM -V 2>&1` in 10291*GNU* | *'with BFD'*) 10292 symcode='[ABCDGIRSTW]' ;; 10293esac 10294 10295# Try without a prefix undercore, then with it. 10296for ac_symprfx in "" "_"; do 10297 10298 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10299 symxfrm="\\1 $ac_symprfx\\2 \\2" 10300 10301 # Write the raw and C identifiers. 10302 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10303 10304 # Check to see that the pipe works correctly. 10305 pipe_works=no 10306 10307 rm -f conftest* 10308 cat > conftest.$ac_ext <<EOF 10309#ifdef __cplusplus 10310extern "C" { 10311#endif 10312char nm_test_var; 10313void nm_test_func(){} 10314#ifdef __cplusplus 10315} 10316#endif 10317int main(){nm_test_var='a';nm_test_func();return(0);} 10318EOF 10319 10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10321 (eval $ac_compile) 2>&5 10322 ac_status=$? 10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10324 (exit $ac_status); }; then 10325 # Now try to grab the symbols. 10326 nlist=conftest.nm 10327 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 10328 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 10329 ac_status=$? 10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10331 (exit $ac_status); } && test -s "$nlist"; then 10332 # Try sorting and uniquifying the output. 10333 if sort "$nlist" | uniq > "$nlist"T; then 10334 mv -f "$nlist"T "$nlist" 10335 else 10336 rm -f "$nlist"T 10337 fi 10338 10339 # Make sure that we snagged all the symbols we need. 10340 if grep ' nm_test_var$' "$nlist" >/dev/null; then 10341 if grep ' nm_test_func$' "$nlist" >/dev/null; then 10342 cat <<EOF > conftest.$ac_ext 10343#ifdef __cplusplus 10344extern "C" { 10345#endif 10346 10347EOF 10348 # Now generate the symbol file. 10349 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 10350 10351 cat <<EOF >> conftest.$ac_ext 10352#if defined (__STDC__) && __STDC__ 10353# define lt_ptr_t void * 10354#else 10355# define lt_ptr_t char * 10356# define const 10357#endif 10358 10359/* The mapping between symbol names and symbols. */ 10360const struct { 10361 const char *name; 10362 lt_ptr_t address; 10363} 10364lt_preloaded_symbols[] = 10365{ 10366EOF 10367 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 10368 cat <<\EOF >> conftest.$ac_ext 10369 {0, (lt_ptr_t) 0} 10370}; 10371 10372#ifdef __cplusplus 10373} 10374#endif 10375EOF 10376 # Now try linking the two files. 10377 mv conftest.$ac_objext conftstm.$ac_objext 10378 lt_save_LIBS="$LIBS" 10379 lt_save_CFLAGS="$CFLAGS" 10380 LIBS="conftstm.$ac_objext" 10381 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10383 (eval $ac_link) 2>&5 10384 ac_status=$? 10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10386 (exit $ac_status); } && test -s conftest${ac_exeext}; then 10387 pipe_works=yes 10388 fi 10389 LIBS="$lt_save_LIBS" 10390 CFLAGS="$lt_save_CFLAGS" 10391 else 10392 echo "cannot find nm_test_func in $nlist" >&5 10393 fi 10394 else 10395 echo "cannot find nm_test_var in $nlist" >&5 10396 fi 10397 else 10398 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10399 fi 10400 else 10401 echo "$progname: failed program was:" >&5 10402 cat conftest.$ac_ext >&5 10403 fi 10404 rm -f conftest* conftst* 10405 10406 # Do not use the global_symbol_pipe unless it works. 10407 if test "$pipe_works" = yes; then 10408 break 10409 else 10410 lt_cv_sys_global_symbol_pipe= 10411 fi 10412done 10413 10414fi 10415 10416if test -z "$lt_cv_sys_global_symbol_pipe"; then 10417 lt_cv_sys_global_symbol_to_cdecl= 10418fi 10419if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10420 echo "$as_me:$LINENO: result: failed" >&5 10421echo "${ECHO_T}failed" >&6 10422else 10423 echo "$as_me:$LINENO: result: ok" >&5 10424echo "${ECHO_T}ok" >&6 10425fi 10426 10427echo "$as_me:$LINENO: checking for objdir" >&5 10428echo $ECHO_N "checking for objdir... $ECHO_C" >&6 10429if test "${lt_cv_objdir+set}" = set; then 10430 echo $ECHO_N "(cached) $ECHO_C" >&6 10431else 10432 rm -f .libs 2>/dev/null 10433mkdir .libs 2>/dev/null 10434if test -d .libs; then 10435 lt_cv_objdir=.libs 10436else 10437 # MS-DOS does not allow filenames that begin with a dot. 10438 lt_cv_objdir=_libs 10439fi 10440rmdir .libs 2>/dev/null 10441fi 10442echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 10443echo "${ECHO_T}$lt_cv_objdir" >&6 10444objdir=$lt_cv_objdir 10445 10446 10447 10448 10449 10450case $host_os in 10451aix3*) 10452 # AIX sometimes has problems with the GCC collect2 program. For some 10453 # reason, if we set the COLLECT_NAMES environment variable, the problems 10454 # vanish in a puff of smoke. 10455 if test "X${COLLECT_NAMES+set}" != Xset; then 10456 COLLECT_NAMES= 10457 export COLLECT_NAMES 10458 fi 10459 ;; 10460esac 10461 10462# Sed substitution that helps us do robust quoting. It backslashifies 10463# metacharacters that are still active within double-quoted strings. 10464Xsed='sed -e 1s/^X//' 10465sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 10466 10467# Same as above, but do not quote variable references. 10468double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 10469 10470# Sed substitution to delay expansion of an escaped shell variable in a 10471# double_quote_subst'ed string. 10472delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10473 10474# Sed substitution to avoid accidental globbing in evaled expressions 10475no_glob_subst='s/\*/\\\*/g' 10476 10477# Constants: 10478rm="rm -f" 10479 10480# Global variables: 10481default_ofile=libtool 10482can_build_shared=yes 10483 10484# All known linkers require a `.a' archive for static linking (except MSVC, 10485# which needs '.lib'). 10486libext=a 10487ltmain="$ac_aux_dir/ltmain.sh" 10488ofile="$default_ofile" 10489with_gnu_ld="$lt_cv_prog_gnu_ld" 10490 10491if test -n "$ac_tool_prefix"; then 10492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 10493set dummy ${ac_tool_prefix}ar; ac_word=$2 10494echo "$as_me:$LINENO: checking for $ac_word" >&5 10495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10496if test "${ac_cv_prog_AR+set}" = set; then 10497 echo $ECHO_N "(cached) $ECHO_C" >&6 10498else 10499 if test -n "$AR"; then 10500 ac_cv_prog_AR="$AR" # Let the user override the test. 10501else 10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10503for as_dir in $PATH 10504do 10505 IFS=$as_save_IFS 10506 test -z "$as_dir" && as_dir=. 10507 for ac_exec_ext in '' $ac_executable_extensions; do 10508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10509 ac_cv_prog_AR="${ac_tool_prefix}ar" 10510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10511 break 2 10512 fi 10513done 10514done 10515 10516fi 10517fi 10518AR=$ac_cv_prog_AR 10519if test -n "$AR"; then 10520 echo "$as_me:$LINENO: result: $AR" >&5 10521echo "${ECHO_T}$AR" >&6 10522else 10523 echo "$as_me:$LINENO: result: no" >&5 10524echo "${ECHO_T}no" >&6 10525fi 10526 10527fi 10528if test -z "$ac_cv_prog_AR"; then 10529 ac_ct_AR=$AR 10530 # Extract the first word of "ar", so it can be a program name with args. 10531set dummy ar; ac_word=$2 10532echo "$as_me:$LINENO: checking for $ac_word" >&5 10533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10534if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 10535 echo $ECHO_N "(cached) $ECHO_C" >&6 10536else 10537 if test -n "$ac_ct_AR"; then 10538 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10539else 10540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10541for as_dir in $PATH 10542do 10543 IFS=$as_save_IFS 10544 test -z "$as_dir" && as_dir=. 10545 for ac_exec_ext in '' $ac_executable_extensions; do 10546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10547 ac_cv_prog_ac_ct_AR="ar" 10548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10549 break 2 10550 fi 10551done 10552done 10553 10554 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 10555fi 10556fi 10557ac_ct_AR=$ac_cv_prog_ac_ct_AR 10558if test -n "$ac_ct_AR"; then 10559 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 10560echo "${ECHO_T}$ac_ct_AR" >&6 10561else 10562 echo "$as_me:$LINENO: result: no" >&5 10563echo "${ECHO_T}no" >&6 10564fi 10565 10566 AR=$ac_ct_AR 10567else 10568 AR="$ac_cv_prog_AR" 10569fi 10570 10571if test -n "$ac_tool_prefix"; then 10572 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10573set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10574echo "$as_me:$LINENO: checking for $ac_word" >&5 10575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10576if test "${ac_cv_prog_RANLIB+set}" = set; then 10577 echo $ECHO_N "(cached) $ECHO_C" >&6 10578else 10579 if test -n "$RANLIB"; then 10580 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10581else 10582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10583for as_dir in $PATH 10584do 10585 IFS=$as_save_IFS 10586 test -z "$as_dir" && as_dir=. 10587 for ac_exec_ext in '' $ac_executable_extensions; do 10588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10589 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10591 break 2 10592 fi 10593done 10594done 10595 10596fi 10597fi 10598RANLIB=$ac_cv_prog_RANLIB 10599if test -n "$RANLIB"; then 10600 echo "$as_me:$LINENO: result: $RANLIB" >&5 10601echo "${ECHO_T}$RANLIB" >&6 10602else 10603 echo "$as_me:$LINENO: result: no" >&5 10604echo "${ECHO_T}no" >&6 10605fi 10606 10607fi 10608if test -z "$ac_cv_prog_RANLIB"; then 10609 ac_ct_RANLIB=$RANLIB 10610 # Extract the first word of "ranlib", so it can be a program name with args. 10611set dummy ranlib; ac_word=$2 10612echo "$as_me:$LINENO: checking for $ac_word" >&5 10613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10614if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 10615 echo $ECHO_N "(cached) $ECHO_C" >&6 10616else 10617 if test -n "$ac_ct_RANLIB"; then 10618 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10619else 10620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10621for as_dir in $PATH 10622do 10623 IFS=$as_save_IFS 10624 test -z "$as_dir" && as_dir=. 10625 for ac_exec_ext in '' $ac_executable_extensions; do 10626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10627 ac_cv_prog_ac_ct_RANLIB="ranlib" 10628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10629 break 2 10630 fi 10631done 10632done 10633 10634 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 10635fi 10636fi 10637ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10638if test -n "$ac_ct_RANLIB"; then 10639 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 10640echo "${ECHO_T}$ac_ct_RANLIB" >&6 10641else 10642 echo "$as_me:$LINENO: result: no" >&5 10643echo "${ECHO_T}no" >&6 10644fi 10645 10646 RANLIB=$ac_ct_RANLIB 10647else 10648 RANLIB="$ac_cv_prog_RANLIB" 10649fi 10650 10651if test -n "$ac_tool_prefix"; then 10652 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10653set dummy ${ac_tool_prefix}strip; ac_word=$2 10654echo "$as_me:$LINENO: checking for $ac_word" >&5 10655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10656if test "${ac_cv_prog_STRIP+set}" = set; then 10657 echo $ECHO_N "(cached) $ECHO_C" >&6 10658else 10659 if test -n "$STRIP"; then 10660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10661else 10662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10663for as_dir in $PATH 10664do 10665 IFS=$as_save_IFS 10666 test -z "$as_dir" && as_dir=. 10667 for ac_exec_ext in '' $ac_executable_extensions; do 10668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10669 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10671 break 2 10672 fi 10673done 10674done 10675 10676fi 10677fi 10678STRIP=$ac_cv_prog_STRIP 10679if test -n "$STRIP"; then 10680 echo "$as_me:$LINENO: result: $STRIP" >&5 10681echo "${ECHO_T}$STRIP" >&6 10682else 10683 echo "$as_me:$LINENO: result: no" >&5 10684echo "${ECHO_T}no" >&6 10685fi 10686 10687fi 10688if test -z "$ac_cv_prog_STRIP"; then 10689 ac_ct_STRIP=$STRIP 10690 # Extract the first word of "strip", so it can be a program name with args. 10691set dummy strip; ac_word=$2 10692echo "$as_me:$LINENO: checking for $ac_word" >&5 10693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10694if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 10695 echo $ECHO_N "(cached) $ECHO_C" >&6 10696else 10697 if test -n "$ac_ct_STRIP"; then 10698 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10699else 10700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10701for as_dir in $PATH 10702do 10703 IFS=$as_save_IFS 10704 test -z "$as_dir" && as_dir=. 10705 for ac_exec_ext in '' $ac_executable_extensions; do 10706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10707 ac_cv_prog_ac_ct_STRIP="strip" 10708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10709 break 2 10710 fi 10711done 10712done 10713 10714 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 10715fi 10716fi 10717ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10718if test -n "$ac_ct_STRIP"; then 10719 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 10720echo "${ECHO_T}$ac_ct_STRIP" >&6 10721else 10722 echo "$as_me:$LINENO: result: no" >&5 10723echo "${ECHO_T}no" >&6 10724fi 10725 10726 STRIP=$ac_ct_STRIP 10727else 10728 STRIP="$ac_cv_prog_STRIP" 10729fi 10730 10731 10732old_CC="$CC" 10733old_CFLAGS="$CFLAGS" 10734 10735# Set sane defaults for various variables 10736test -z "$AR" && AR=ar 10737test -z "$AR_FLAGS" && AR_FLAGS=cru 10738test -z "$AS" && AS=as 10739test -z "$CC" && CC=cc 10740test -z "$LTCC" && LTCC=$CC 10741test -z "$DLLTOOL" && DLLTOOL=dlltool 10742test -z "$LD" && LD=ld 10743test -z "$LN_S" && LN_S="ln -s" 10744test -z "$MAGIC_CMD" && MAGIC_CMD=file 10745test -z "$NM" && NM=nm 10746test -z "$SED" && SED=sed 10747test -z "$OBJDUMP" && OBJDUMP=objdump 10748test -z "$RANLIB" && RANLIB=: 10749test -z "$STRIP" && STRIP=: 10750test -z "$ac_objext" && ac_objext=o 10751 10752# Determine commands to create old-style static archives. 10753old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 10754old_postinstall_cmds='chmod 644 $oldlib' 10755old_postuninstall_cmds= 10756 10757if test -n "$RANLIB"; then 10758 case $host_os in 10759 openbsd*) 10760 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 10761 ;; 10762 *) 10763 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 10764 ;; 10765 esac 10766 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 10767fi 10768 10769for cc_temp in $compiler""; do 10770 case $cc_temp in 10771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10773 \-*) ;; 10774 *) break;; 10775 esac 10776done 10777cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10778 10779 10780# Only perform the check for file, if the check method requires it 10781case $deplibs_check_method in 10782file_magic*) 10783 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10784 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 10785echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 10786if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 10787 echo $ECHO_N "(cached) $ECHO_C" >&6 10788else 10789 case $MAGIC_CMD in 10790[\\/*] | ?:[\\/]*) 10791 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10792 ;; 10793*) 10794 lt_save_MAGIC_CMD="$MAGIC_CMD" 10795 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10796 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10797 for ac_dir in $ac_dummy; do 10798 IFS="$lt_save_ifs" 10799 test -z "$ac_dir" && ac_dir=. 10800 if test -f $ac_dir/${ac_tool_prefix}file; then 10801 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10802 if test -n "$file_magic_test_file"; then 10803 case $deplibs_check_method in 10804 "file_magic "*) 10805 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10807 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10808 $EGREP "$file_magic_regex" > /dev/null; then 10809 : 10810 else 10811 cat <<EOF 1>&2 10812 10813*** Warning: the command libtool uses to detect shared libraries, 10814*** $file_magic_cmd, produces output that libtool cannot recognize. 10815*** The result is that libtool may fail to recognize shared libraries 10816*** as such. This will affect the creation of libtool libraries that 10817*** depend on shared libraries, but programs linked with such libtool 10818*** libraries will work regardless of this problem. Nevertheless, you 10819*** may want to report the problem to your system manager and/or to 10820*** bug-libtool@gnu.org 10821 10822EOF 10823 fi ;; 10824 esac 10825 fi 10826 break 10827 fi 10828 done 10829 IFS="$lt_save_ifs" 10830 MAGIC_CMD="$lt_save_MAGIC_CMD" 10831 ;; 10832esac 10833fi 10834 10835MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10836if test -n "$MAGIC_CMD"; then 10837 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 10838echo "${ECHO_T}$MAGIC_CMD" >&6 10839else 10840 echo "$as_me:$LINENO: result: no" >&5 10841echo "${ECHO_T}no" >&6 10842fi 10843 10844if test -z "$lt_cv_path_MAGIC_CMD"; then 10845 if test -n "$ac_tool_prefix"; then 10846 echo "$as_me:$LINENO: checking for file" >&5 10847echo $ECHO_N "checking for file... $ECHO_C" >&6 10848if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 10849 echo $ECHO_N "(cached) $ECHO_C" >&6 10850else 10851 case $MAGIC_CMD in 10852[\\/*] | ?:[\\/]*) 10853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10854 ;; 10855*) 10856 lt_save_MAGIC_CMD="$MAGIC_CMD" 10857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10858 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10859 for ac_dir in $ac_dummy; do 10860 IFS="$lt_save_ifs" 10861 test -z "$ac_dir" && ac_dir=. 10862 if test -f $ac_dir/file; then 10863 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10864 if test -n "$file_magic_test_file"; then 10865 case $deplibs_check_method in 10866 "file_magic "*) 10867 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10870 $EGREP "$file_magic_regex" > /dev/null; then 10871 : 10872 else 10873 cat <<EOF 1>&2 10874 10875*** Warning: the command libtool uses to detect shared libraries, 10876*** $file_magic_cmd, produces output that libtool cannot recognize. 10877*** The result is that libtool may fail to recognize shared libraries 10878*** as such. This will affect the creation of libtool libraries that 10879*** depend on shared libraries, but programs linked with such libtool 10880*** libraries will work regardless of this problem. Nevertheless, you 10881*** may want to report the problem to your system manager and/or to 10882*** bug-libtool@gnu.org 10883 10884EOF 10885 fi ;; 10886 esac 10887 fi 10888 break 10889 fi 10890 done 10891 IFS="$lt_save_ifs" 10892 MAGIC_CMD="$lt_save_MAGIC_CMD" 10893 ;; 10894esac 10895fi 10896 10897MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10898if test -n "$MAGIC_CMD"; then 10899 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 10900echo "${ECHO_T}$MAGIC_CMD" >&6 10901else 10902 echo "$as_me:$LINENO: result: no" >&5 10903echo "${ECHO_T}no" >&6 10904fi 10905 10906 else 10907 MAGIC_CMD=: 10908 fi 10909fi 10910 10911 fi 10912 ;; 10913esac 10914 10915enable_dlopen=no 10916enable_win32_dll=no 10917 10918# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 10919if test "${enable_libtool_lock+set}" = set; then 10920 enableval="$enable_libtool_lock" 10921 10922fi; 10923test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10924 10925 10926# Check whether --with-pic or --without-pic was given. 10927if test "${with_pic+set}" = set; then 10928 withval="$with_pic" 10929 pic_mode="$withval" 10930else 10931 pic_mode=default 10932fi; 10933test -z "$pic_mode" && pic_mode=default 10934 10935# Use C for the default configuration in the libtool script 10936tagname= 10937lt_save_CC="$CC" 10938ac_ext=c 10939ac_cpp='$CPP $CPPFLAGS' 10940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10942ac_compiler_gnu=$ac_cv_c_compiler_gnu 10943 10944 10945# Source file extension for C test sources. 10946ac_ext=c 10947 10948# Object file extension for compiled C test sources. 10949objext=o 10950objext=$objext 10951 10952# Code to be used in simple compile tests 10953lt_simple_compile_test_code="int some_variable = 0;\n" 10954 10955# Code to be used in simple link tests 10956lt_simple_link_test_code='int main(){return(0);}\n' 10957 10958 10959# If no C compiler was specified, use CC. 10960LTCC=${LTCC-"$CC"} 10961 10962# Allow CC to be a program name with arguments. 10963compiler=$CC 10964 10965 10966# save warnings/boilerplate of simple test code 10967ac_outfile=conftest.$ac_objext 10968printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10969eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10970_lt_compiler_boilerplate=`cat conftest.err` 10971$rm conftest* 10972 10973ac_outfile=conftest.$ac_objext 10974printf "$lt_simple_link_test_code" >conftest.$ac_ext 10975eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 10976_lt_linker_boilerplate=`cat conftest.err` 10977$rm conftest* 10978 10979 10980# 10981# Check for any special shared library compilation flags. 10982# 10983lt_prog_cc_shlib= 10984if test "$GCC" = no; then 10985 case $host_os in 10986 sco3.2v5*) 10987 lt_prog_cc_shlib='-belf' 10988 ;; 10989 esac 10990fi 10991if test -n "$lt_prog_cc_shlib"; then 10992 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 10993echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 10994 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 10995 else 10996 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 10997echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 10998 lt_cv_prog_cc_can_build_shared=no 10999 fi 11000fi 11001 11002 11003# 11004# Check to make sure the static flag actually works. 11005# 11006echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 11007echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 11008if test "${lt_prog_compiler_static_works+set}" = set; then 11009 echo $ECHO_N "(cached) $ECHO_C" >&6 11010else 11011 lt_prog_compiler_static_works=no 11012 save_LDFLAGS="$LDFLAGS" 11013 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 11014 printf "$lt_simple_link_test_code" > conftest.$ac_ext 11015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11016 # The linker can only warn and ignore the option if not recognized 11017 # So say no if there are warnings 11018 if test -s conftest.err; then 11019 # Append any errors to the config.log. 11020 cat conftest.err 1>&5 11021 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 11022 $SED '/^$/d' conftest.err >conftest.er2 11023 if diff conftest.exp conftest.er2 >/dev/null; then 11024 lt_prog_compiler_static_works=yes 11025 fi 11026 else 11027 lt_prog_compiler_static_works=yes 11028 fi 11029 fi 11030 $rm conftest* 11031 LDFLAGS="$save_LDFLAGS" 11032 11033fi 11034echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 11035echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 11036 11037if test x"$lt_prog_compiler_static_works" = xyes; then 11038 : 11039else 11040 lt_prog_compiler_static= 11041fi 11042 11043 11044 11045 11046lt_prog_compiler_no_builtin_flag= 11047 11048if test "$GCC" = yes; then 11049 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 11050 11051 11052echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11053echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 11054if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 11055 echo $ECHO_N "(cached) $ECHO_C" >&6 11056else 11057 lt_cv_prog_compiler_rtti_exceptions=no 11058 ac_outfile=conftest.$ac_objext 11059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11060 lt_compiler_flag="-fno-rtti -fno-exceptions" 11061 # Insert the option either (1) after the last *FLAGS variable, or 11062 # (2) before a word containing "conftest.", or (3) at the end. 11063 # Note that $ac_compile itself does not contain backslashes and begins 11064 # with a dollar sign (not a hyphen), so the echo should work correctly. 11065 # The option is referenced via a variable to avoid confusing sed. 11066 lt_compile=`echo "$ac_compile" | $SED \ 11067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11069 -e 's:$: $lt_compiler_flag:'` 11070 (eval echo "\"\$as_me:11070: $lt_compile\"" >&5) 11071 (eval "$lt_compile" 2>conftest.err) 11072 ac_status=$? 11073 cat conftest.err >&5 11074 echo "$as_me:11074: \$? = $ac_status" >&5 11075 if (exit $ac_status) && test -s "$ac_outfile"; then 11076 # The compiler can only warn and ignore the option if not recognized 11077 # So say no if there are warnings other than the usual output. 11078 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11079 $SED '/^$/d' conftest.err >conftest.er2 11080 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11081 lt_cv_prog_compiler_rtti_exceptions=yes 11082 fi 11083 fi 11084 $rm conftest* 11085 11086fi 11087echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11088echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 11089 11090if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11091 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11092else 11093 : 11094fi 11095 11096fi 11097 11098lt_prog_compiler_wl= 11099lt_prog_compiler_pic= 11100lt_prog_compiler_static= 11101 11102echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11103echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11104 11105 if test "$GCC" = yes; then 11106 lt_prog_compiler_wl='-Wl,' 11107 lt_prog_compiler_static='-static' 11108 11109 case $host_os in 11110 aix*) 11111 # All AIX code is PIC. 11112 if test "$host_cpu" = ia64; then 11113 # AIX 5 now supports IA64 processor 11114 lt_prog_compiler_static='-Bstatic' 11115 fi 11116 ;; 11117 11118 amigaos*) 11119 # FIXME: we need at least 68020 code to build shared libraries, but 11120 # adding the `-m68020' flag to GCC prevents building anything better, 11121 # like `-m68040'. 11122 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11123 ;; 11124 11125 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11126 # PIC is the default for these OSes. 11127 ;; 11128 11129 mingw* | pw32* | os2*) 11130 # This hack is so that the source file can tell whether it is being 11131 # built for inclusion in a dll (and should export symbols for example). 11132 lt_prog_compiler_pic='-DDLL_EXPORT' 11133 ;; 11134 11135 darwin* | rhapsody*) 11136 # PIC is the default on this platform 11137 # Common symbols not allowed in MH_DYLIB files 11138 lt_prog_compiler_pic='-fno-common' 11139 ;; 11140 11141 msdosdjgpp*) 11142 # Just because we use GCC doesn't mean we suddenly get shared libraries 11143 # on systems that don't support them. 11144 lt_prog_compiler_can_build_shared=no 11145 enable_shared=no 11146 ;; 11147 11148 sysv4*MP*) 11149 if test -d /usr/nec; then 11150 lt_prog_compiler_pic=-Kconform_pic 11151 fi 11152 ;; 11153 11154 hpux*) 11155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11156 # not for PA HP-UX. 11157 case $host_cpu in 11158 hppa*64*|ia64*) 11159 # +Z the default 11160 ;; 11161 *) 11162 lt_prog_compiler_pic='-fPIC' 11163 ;; 11164 esac 11165 ;; 11166 11167 *) 11168 lt_prog_compiler_pic='-fPIC' 11169 ;; 11170 esac 11171 else 11172 # PORTME Check for flag to pass linker flags through the system compiler. 11173 case $host_os in 11174 aix*) 11175 lt_prog_compiler_wl='-Wl,' 11176 if test "$host_cpu" = ia64; then 11177 # AIX 5 now supports IA64 processor 11178 lt_prog_compiler_static='-Bstatic' 11179 else 11180 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11181 fi 11182 ;; 11183 darwin*) 11184 # PIC is the default on this platform 11185 # Common symbols not allowed in MH_DYLIB files 11186 case $cc_basename in 11187 xlc*) 11188 lt_prog_compiler_pic='-qnocommon' 11189 lt_prog_compiler_wl='-Wl,' 11190 ;; 11191 esac 11192 ;; 11193 11194 mingw* | pw32* | os2*) 11195 # This hack is so that the source file can tell whether it is being 11196 # built for inclusion in a dll (and should export symbols for example). 11197 lt_prog_compiler_pic='-DDLL_EXPORT' 11198 ;; 11199 11200 hpux9* | hpux10* | hpux11*) 11201 lt_prog_compiler_wl='-Wl,' 11202 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11203 # not for PA HP-UX. 11204 case $host_cpu in 11205 hppa*64*|ia64*) 11206 # +Z the default 11207 ;; 11208 *) 11209 lt_prog_compiler_pic='+Z' 11210 ;; 11211 esac 11212 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11213 lt_prog_compiler_static='${wl}-a ${wl}archive' 11214 ;; 11215 11216 irix5* | irix6* | nonstopux*) 11217 lt_prog_compiler_wl='-Wl,' 11218 # PIC (with -KPIC) is the default. 11219 lt_prog_compiler_static='-non_shared' 11220 ;; 11221 11222 newsos6) 11223 lt_prog_compiler_pic='-KPIC' 11224 lt_prog_compiler_static='-Bstatic' 11225 ;; 11226 11227 linux*) 11228 case $cc_basename in 11229 icc* | ecc*) 11230 lt_prog_compiler_wl='-Wl,' 11231 lt_prog_compiler_pic='-KPIC' 11232 lt_prog_compiler_static='-static' 11233 ;; 11234 pgcc* | pgf77* | pgf90* | pgf95*) 11235 # Portland Group compilers (*not* the Pentium gcc compiler, 11236 # which looks to be a dead project) 11237 lt_prog_compiler_wl='-Wl,' 11238 lt_prog_compiler_pic='-fpic' 11239 lt_prog_compiler_static='-Bstatic' 11240 ;; 11241 ccc*) 11242 lt_prog_compiler_wl='-Wl,' 11243 # All Alpha code is PIC. 11244 lt_prog_compiler_static='-non_shared' 11245 ;; 11246 esac 11247 ;; 11248 11249 osf3* | osf4* | osf5*) 11250 lt_prog_compiler_wl='-Wl,' 11251 # All OSF/1 code is PIC. 11252 lt_prog_compiler_static='-non_shared' 11253 ;; 11254 11255 sco3.2v5*) 11256 lt_prog_compiler_pic='-Kpic' 11257 lt_prog_compiler_static='-dn' 11258 ;; 11259 11260 solaris*) 11261 lt_prog_compiler_pic='-KPIC' 11262 lt_prog_compiler_static='-Bstatic' 11263 case $cc_basename in 11264 f77* | f90* | f95*) 11265 lt_prog_compiler_wl='-Qoption ld ';; 11266 *) 11267 lt_prog_compiler_wl='-Wl,';; 11268 esac 11269 ;; 11270 11271 sunos4*) 11272 lt_prog_compiler_wl='-Qoption ld ' 11273 lt_prog_compiler_pic='-PIC' 11274 lt_prog_compiler_static='-Bstatic' 11275 ;; 11276 11277 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11278 lt_prog_compiler_wl='-Wl,' 11279 lt_prog_compiler_pic='-KPIC' 11280 lt_prog_compiler_static='-Bstatic' 11281 ;; 11282 11283 sysv4*MP*) 11284 if test -d /usr/nec ;then 11285 lt_prog_compiler_pic='-Kconform_pic' 11286 lt_prog_compiler_static='-Bstatic' 11287 fi 11288 ;; 11289 11290 unicos*) 11291 lt_prog_compiler_wl='-Wl,' 11292 lt_prog_compiler_can_build_shared=no 11293 ;; 11294 11295 uts4*) 11296 lt_prog_compiler_pic='-pic' 11297 lt_prog_compiler_static='-Bstatic' 11298 ;; 11299 11300 *) 11301 lt_prog_compiler_can_build_shared=no 11302 ;; 11303 esac 11304 fi 11305 11306echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 11307echo "${ECHO_T}$lt_prog_compiler_pic" >&6 11308 11309# 11310# Check to make sure the PIC flag actually works. 11311# 11312if test -n "$lt_prog_compiler_pic"; then 11313 11314echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11315echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 11316if test "${lt_prog_compiler_pic_works+set}" = set; then 11317 echo $ECHO_N "(cached) $ECHO_C" >&6 11318else 11319 lt_prog_compiler_pic_works=no 11320 ac_outfile=conftest.$ac_objext 11321 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11322 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11323 # Insert the option either (1) after the last *FLAGS variable, or 11324 # (2) before a word containing "conftest.", or (3) at the end. 11325 # Note that $ac_compile itself does not contain backslashes and begins 11326 # with a dollar sign (not a hyphen), so the echo should work correctly. 11327 # The option is referenced via a variable to avoid confusing sed. 11328 lt_compile=`echo "$ac_compile" | $SED \ 11329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11331 -e 's:$: $lt_compiler_flag:'` 11332 (eval echo "\"\$as_me:11332: $lt_compile\"" >&5) 11333 (eval "$lt_compile" 2>conftest.err) 11334 ac_status=$? 11335 cat conftest.err >&5 11336 echo "$as_me:11336: \$? = $ac_status" >&5 11337 if (exit $ac_status) && test -s "$ac_outfile"; then 11338 # The compiler can only warn and ignore the option if not recognized 11339 # So say no if there are warnings other than the usual output. 11340 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11341 $SED '/^$/d' conftest.err >conftest.er2 11342 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11343 lt_prog_compiler_pic_works=yes 11344 fi 11345 fi 11346 $rm conftest* 11347 11348fi 11349echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 11350echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 11351 11352if test x"$lt_prog_compiler_pic_works" = xyes; then 11353 case $lt_prog_compiler_pic in 11354 "" | " "*) ;; 11355 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11356 esac 11357else 11358 lt_prog_compiler_pic= 11359 lt_prog_compiler_can_build_shared=no 11360fi 11361 11362fi 11363case $host_os in 11364 # For platforms which do not support PIC, -DPIC is meaningless: 11365 *djgpp*) 11366 lt_prog_compiler_pic= 11367 ;; 11368 *) 11369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11370 ;; 11371esac 11372 11373echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11374echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11375if test "${lt_cv_prog_compiler_c_o+set}" = set; then 11376 echo $ECHO_N "(cached) $ECHO_C" >&6 11377else 11378 lt_cv_prog_compiler_c_o=no 11379 $rm -r conftest 2>/dev/null 11380 mkdir conftest 11381 cd conftest 11382 mkdir out 11383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11384 11385 lt_compiler_flag="-o out/conftest2.$ac_objext" 11386 # Insert the option either (1) after the last *FLAGS variable, or 11387 # (2) before a word containing "conftest.", or (3) at the end. 11388 # Note that $ac_compile itself does not contain backslashes and begins 11389 # with a dollar sign (not a hyphen), so the echo should work correctly. 11390 lt_compile=`echo "$ac_compile" | $SED \ 11391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11393 -e 's:$: $lt_compiler_flag:'` 11394 (eval echo "\"\$as_me:11394: $lt_compile\"" >&5) 11395 (eval "$lt_compile" 2>out/conftest.err) 11396 ac_status=$? 11397 cat out/conftest.err >&5 11398 echo "$as_me:11398: \$? = $ac_status" >&5 11399 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11400 then 11401 # The compiler can only warn and ignore the option if not recognized 11402 # So say no if there are warnings 11403 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11404 $SED '/^$/d' out/conftest.err >out/conftest.er2 11405 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11406 lt_cv_prog_compiler_c_o=yes 11407 fi 11408 fi 11409 chmod u+w . 2>&5 11410 $rm conftest* 11411 # SGI C++ compiler will create directory out/ii_files/ for 11412 # template instantiation 11413 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11414 $rm out/* && rmdir out 11415 cd .. 11416 rmdir conftest 11417 $rm conftest* 11418 11419fi 11420echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 11421echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 11422 11423 11424hard_links="nottested" 11425if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11426 # do not overwrite the value of need_locks provided by the user 11427 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11428echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11429 hard_links=yes 11430 $rm conftest* 11431 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11432 touch conftest.a 11433 ln conftest.a conftest.b 2>&5 || hard_links=no 11434 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11435 echo "$as_me:$LINENO: result: $hard_links" >&5 11436echo "${ECHO_T}$hard_links" >&6 11437 if test "$hard_links" = no; then 11438 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11439echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11440 need_locks=warn 11441 fi 11442else 11443 need_locks=no 11444fi 11445 11446echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11447echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11448 11449 runpath_var= 11450 allow_undefined_flag= 11451 enable_shared_with_static_runtimes=no 11452 archive_cmds= 11453 archive_expsym_cmds= 11454 old_archive_From_new_cmds= 11455 old_archive_from_expsyms_cmds= 11456 export_dynamic_flag_spec= 11457 whole_archive_flag_spec= 11458 thread_safe_flag_spec= 11459 hardcode_libdir_flag_spec= 11460 hardcode_libdir_flag_spec_ld= 11461 hardcode_libdir_separator= 11462 hardcode_direct=no 11463 hardcode_minus_L=no 11464 hardcode_shlibpath_var=unsupported 11465 link_all_deplibs=unknown 11466 hardcode_automatic=no 11467 module_cmds= 11468 module_expsym_cmds= 11469 always_export_symbols=no 11470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11471 # include_expsyms should be a list of space-separated symbols to be *always* 11472 # included in the symbol list 11473 include_expsyms= 11474 # exclude_expsyms can be an extended regexp of symbols to exclude 11475 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11476 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11477 # as well as any symbol that contains `d'. 11478 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 11479 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11480 # platforms (ab)use it in PIC code, but their linkers get confused if 11481 # the symbol is explicitly referenced. Since portable code cannot 11482 # rely on this symbol name, it's probably fine to never include it in 11483 # preloaded symbol tables. 11484 extract_expsyms_cmds= 11485 # Just being paranoid about ensuring that cc_basename is set. 11486 for cc_temp in $compiler""; do 11487 case $cc_temp in 11488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11490 \-*) ;; 11491 *) break;; 11492 esac 11493done 11494cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11495 11496 case $host_os in 11497 cygwin* | mingw* | pw32*) 11498 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11499 # When not using gcc, we currently assume that we are using 11500 # Microsoft Visual C++. 11501 if test "$GCC" != yes; then 11502 with_gnu_ld=no 11503 fi 11504 ;; 11505 openbsd*) 11506 with_gnu_ld=no 11507 ;; 11508 esac 11509 11510 ld_shlibs=yes 11511 if test "$with_gnu_ld" = yes; then 11512 # If archive_cmds runs LD, not CC, wlarc should be empty 11513 wlarc='${wl}' 11514 11515 # Set some defaults for GNU ld with shared library support. These 11516 # are reset later if shared libraries are not supported. Putting them 11517 # here allows them to be overridden if necessary. 11518 runpath_var=LD_RUN_PATH 11519 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 11520 export_dynamic_flag_spec='${wl}--export-dynamic' 11521 # ancient GNU ld didn't support --whole-archive et. al. 11522 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 11523 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11524 else 11525 whole_archive_flag_spec= 11526 fi 11527 supports_anon_versioning=no 11528 case `$LD -v 2>/dev/null` in 11529 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11530 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11531 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11532 *\ 2.11.*) ;; # other 2.11 versions 11533 *) supports_anon_versioning=yes ;; 11534 esac 11535 11536 # See if GNU ld supports shared libraries. 11537 case $host_os in 11538 aix3* | aix4* | aix5*) 11539 # On AIX/PPC, the GNU linker is very broken 11540 if test "$host_cpu" != ia64; then 11541 ld_shlibs=no 11542 cat <<EOF 1>&2 11543 11544*** Warning: the GNU linker, at least up to release 2.9.1, is reported 11545*** to be unable to reliably create shared libraries on AIX. 11546*** Therefore, libtool is disabling shared libraries support. If you 11547*** really care for shared libraries, you may want to modify your PATH 11548*** so that a non-GNU linker is found, and then restart. 11549 11550EOF 11551 fi 11552 ;; 11553 11554 amigaos*) 11555 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)' 11556 hardcode_libdir_flag_spec='-L$libdir' 11557 hardcode_minus_L=yes 11558 11559 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 11560 # that the semantics of dynamic libraries on AmigaOS, at least up 11561 # to version 4, is to share data among multiple programs linked 11562 # with the same dynamic library. Since this doesn't match the 11563 # behavior of shared libraries on other platforms, we can't use 11564 # them. 11565 ld_shlibs=no 11566 ;; 11567 11568 beos*) 11569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11570 allow_undefined_flag=unsupported 11571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11572 # support --undefined. This deserves some investigation. FIXME 11573 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11574 else 11575 ld_shlibs=no 11576 fi 11577 ;; 11578 11579 cygwin* | mingw* | pw32*) 11580 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11581 # as there is no search path for DLLs. 11582 hardcode_libdir_flag_spec='-L$libdir' 11583 allow_undefined_flag=unsupported 11584 always_export_symbols=no 11585 enable_shared_with_static_runtimes=yes 11586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11587 11588 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11590 # If the export-symbols file already is a .def file (1st line 11591 # is EXPORTS), use it as is; otherwise, prepend... 11592 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11593 cp $export_symbols $output_objdir/$soname.def; 11594 else 11595 echo EXPORTS > $output_objdir/$soname.def; 11596 cat $export_symbols >> $output_objdir/$soname.def; 11597 fi~ 11598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 11599 else 11600 ld_shlibs=no 11601 fi 11602 ;; 11603 11604 linux*) 11605 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11606 tmp_addflag= 11607 case $cc_basename,$host_cpu in 11608 pgcc*) # Portland Group C compiler 11609 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11610 tmp_addflag=' $pic_flag' 11611 ;; 11612 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 11613 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11614 tmp_addflag=' $pic_flag -Mnomain' ;; 11615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11616 tmp_addflag=' -i_dynamic' ;; 11617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11618 tmp_addflag=' -i_dynamic -nofor_main' ;; 11619 ifc* | ifort*) # Intel Fortran compiler 11620 tmp_addflag=' -nofor_main' ;; 11621 esac 11622 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11623 11624 if test $supports_anon_versioning = yes; then 11625 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 11626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11627 $echo "local: *; };" >> $output_objdir/$libname.ver~ 11628 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11629 fi 11630 else 11631 ld_shlibs=no 11632 fi 11633 ;; 11634 11635 netbsd*) 11636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11637 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11638 wlarc= 11639 else 11640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11642 fi 11643 ;; 11644 11645 solaris* | sysv5*) 11646 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 11647 ld_shlibs=no 11648 cat <<EOF 1>&2 11649 11650*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11651*** create shared libraries on Solaris systems. Therefore, libtool 11652*** is disabling shared libraries support. We urge you to upgrade GNU 11653*** binutils to release 2.9.1 or newer. Another option is to modify 11654*** your PATH or compiler configuration so that the native linker is 11655*** used, and then restart. 11656 11657EOF 11658 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11661 else 11662 ld_shlibs=no 11663 fi 11664 ;; 11665 11666 sunos4*) 11667 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11668 wlarc= 11669 hardcode_direct=yes 11670 hardcode_shlibpath_var=no 11671 ;; 11672 11673 *) 11674 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11677 else 11678 ld_shlibs=no 11679 fi 11680 ;; 11681 esac 11682 11683 if test "$ld_shlibs" = no; then 11684 runpath_var= 11685 hardcode_libdir_flag_spec= 11686 export_dynamic_flag_spec= 11687 whole_archive_flag_spec= 11688 fi 11689 else 11690 # PORTME fill in a description of your system's linker (not GNU ld) 11691 case $host_os in 11692 aix3*) 11693 allow_undefined_flag=unsupported 11694 always_export_symbols=yes 11695 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' 11696 # Note: this linker hardcodes the directories in LIBPATH if there 11697 # are no directories specified by -L. 11698 hardcode_minus_L=yes 11699 if test "$GCC" = yes && test -z "$link_static_flag"; then 11700 # Neither direct hardcoding nor static linking is supported with a 11701 # broken collect2. 11702 hardcode_direct=unsupported 11703 fi 11704 ;; 11705 11706 aix4* | aix5*) 11707 if test "$host_cpu" = ia64; then 11708 # On IA64, the linker does run time linking by default, so we don't 11709 # have to do anything special. 11710 aix_use_runtimelinking=no 11711 exp_sym_flag='-Bexport' 11712 no_entry_flag="" 11713 else 11714 # If we're using GNU nm, then we don't want the "-C" option. 11715 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11716 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11717 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' 11718 else 11719 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' 11720 fi 11721 aix_use_runtimelinking=no 11722 11723 # Test if we are trying to use run time linking or normal 11724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11725 # need to do runtime linking. 11726 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11727 for ld_flag in $LDFLAGS; do 11728 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11729 aix_use_runtimelinking=yes 11730 break 11731 fi 11732 done 11733 esac 11734 11735 exp_sym_flag='-bexport' 11736 no_entry_flag='-bnoentry' 11737 fi 11738 11739 # When large executables or shared objects are built, AIX ld can 11740 # have problems creating the table of contents. If linking a library 11741 # or program results in "error TOC overflow" add -mminimal-toc to 11742 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11743 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11744 11745 archive_cmds='' 11746 hardcode_direct=yes 11747 hardcode_libdir_separator=':' 11748 link_all_deplibs=yes 11749 11750 if test "$GCC" = yes; then 11751 case $host_os in aix4.[012]|aix4.[012].*) 11752 # We only want to do this on AIX 4.2 and lower, the check 11753 # below for broken collect2 doesn't work under 4.3+ 11754 collect2name=`${CC} -print-prog-name=collect2` 11755 if test -f "$collect2name" && \ 11756 strings "$collect2name" | grep resolve_lib_name >/dev/null 11757 then 11758 # We have reworked collect2 11759 hardcode_direct=yes 11760 else 11761 # We have old collect2 11762 hardcode_direct=unsupported 11763 # It fails to find uninstalled libraries when the uninstalled 11764 # path is not listed in the libpath. Setting hardcode_minus_L 11765 # to unsupported forces relinking 11766 hardcode_minus_L=yes 11767 hardcode_libdir_flag_spec='-L$libdir' 11768 hardcode_libdir_separator= 11769 fi 11770 esac 11771 shared_flag='-shared' 11772 if test "$aix_use_runtimelinking" = yes; then 11773 shared_flag="$shared_flag "'${wl}-G' 11774 fi 11775 else 11776 # not using gcc 11777 if test "$host_cpu" = ia64; then 11778 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11779 # chokes on -Wl,-G. The following line is correct: 11780 shared_flag='-G' 11781 else 11782 if test "$aix_use_runtimelinking" = yes; then 11783 shared_flag='${wl}-G' 11784 else 11785 shared_flag='${wl}-bM:SRE' 11786 fi 11787 fi 11788 fi 11789 11790 # It seems that -bexpall does not export symbols beginning with 11791 # underscore (_), so it is better to generate a list of symbols to export. 11792 always_export_symbols=yes 11793 if test "$aix_use_runtimelinking" = yes; then 11794 # Warning - without using the other runtime loading flags (-brtl), 11795 # -berok will link without error, but may produce a broken library. 11796 allow_undefined_flag='-berok' 11797 # Determine the default libpath from the value encoded in an empty executable. 11798 cat >conftest.$ac_ext <<_ACEOF 11799/* confdefs.h. */ 11800_ACEOF 11801cat confdefs.h >>conftest.$ac_ext 11802cat >>conftest.$ac_ext <<_ACEOF 11803/* end confdefs.h. */ 11804 11805int 11806main () 11807{ 11808 11809 ; 11810 return 0; 11811} 11812_ACEOF 11813rm -f conftest.$ac_objext conftest$ac_exeext 11814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11815 (eval $ac_link) 2>conftest.er1 11816 ac_status=$? 11817 grep -v '^ *+' conftest.er1 >conftest.err 11818 rm -f conftest.er1 11819 cat conftest.err >&5 11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11821 (exit $ac_status); } && 11822 { ac_try='test -z "$ac_c_werror_flag" 11823 || test ! -s conftest.err' 11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11825 (eval $ac_try) 2>&5 11826 ac_status=$? 11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11828 (exit $ac_status); }; } && 11829 { ac_try='test -s conftest$ac_exeext' 11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11831 (eval $ac_try) 2>&5 11832 ac_status=$? 11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11834 (exit $ac_status); }; }; then 11835 11836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11837}'` 11838# Check for a 64-bit object if we didn't find anything. 11839if 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; } 11840}'`; fi 11841else 11842 echo "$as_me: failed program was:" >&5 11843sed 's/^/| /' conftest.$ac_ext >&5 11844 11845fi 11846rm -f conftest.err conftest.$ac_objext \ 11847 conftest$ac_exeext conftest.$ac_ext 11848if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11849 11850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11851 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" 11852 else 11853 if test "$host_cpu" = ia64; then 11854 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11855 allow_undefined_flag="-z nodefs" 11856 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" 11857 else 11858 # Determine the default libpath from the value encoded in an empty executable. 11859 cat >conftest.$ac_ext <<_ACEOF 11860/* confdefs.h. */ 11861_ACEOF 11862cat confdefs.h >>conftest.$ac_ext 11863cat >>conftest.$ac_ext <<_ACEOF 11864/* end confdefs.h. */ 11865 11866int 11867main () 11868{ 11869 11870 ; 11871 return 0; 11872} 11873_ACEOF 11874rm -f conftest.$ac_objext conftest$ac_exeext 11875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11876 (eval $ac_link) 2>conftest.er1 11877 ac_status=$? 11878 grep -v '^ *+' conftest.er1 >conftest.err 11879 rm -f conftest.er1 11880 cat conftest.err >&5 11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11882 (exit $ac_status); } && 11883 { ac_try='test -z "$ac_c_werror_flag" 11884 || test ! -s conftest.err' 11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11886 (eval $ac_try) 2>&5 11887 ac_status=$? 11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11889 (exit $ac_status); }; } && 11890 { ac_try='test -s conftest$ac_exeext' 11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11892 (eval $ac_try) 2>&5 11893 ac_status=$? 11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11895 (exit $ac_status); }; }; then 11896 11897aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11898}'` 11899# Check for a 64-bit object if we didn't find anything. 11900if 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; } 11901}'`; fi 11902else 11903 echo "$as_me: failed program was:" >&5 11904sed 's/^/| /' conftest.$ac_ext >&5 11905 11906fi 11907rm -f conftest.err conftest.$ac_objext \ 11908 conftest$ac_exeext conftest.$ac_ext 11909if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11910 11911 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11912 # Warning - without using the other run time loading flags, 11913 # -berok will link without error, but may produce a broken library. 11914 no_undefined_flag=' ${wl}-bernotok' 11915 allow_undefined_flag=' ${wl}-berok' 11916 # -bexpall does not export symbols beginning with underscore (_) 11917 always_export_symbols=yes 11918 # Exported symbols can be pulled into shared objects from archives 11919 whole_archive_flag_spec=' ' 11920 archive_cmds_need_lc=yes 11921 # This is similar to how AIX traditionally builds its shared libraries. 11922 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' 11923 fi 11924 fi 11925 ;; 11926 11927 amigaos*) 11928 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)' 11929 hardcode_libdir_flag_spec='-L$libdir' 11930 hardcode_minus_L=yes 11931 # see comment about different semantics on the GNU ld section 11932 ld_shlibs=no 11933 ;; 11934 11935 bsdi[45]*) 11936 export_dynamic_flag_spec=-rdynamic 11937 ;; 11938 11939 cygwin* | mingw* | pw32*) 11940 # When not using gcc, we currently assume that we are using 11941 # Microsoft Visual C++. 11942 # hardcode_libdir_flag_spec is actually meaningless, as there is 11943 # no search path for DLLs. 11944 hardcode_libdir_flag_spec=' ' 11945 allow_undefined_flag=unsupported 11946 # Tell ltmain to make .lib files, not .a files. 11947 libext=lib 11948 # Tell ltmain to make .dll files, not .so files. 11949 shrext_cmds=".dll" 11950 # FIXME: Setting linknames here is a bad hack. 11951 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 11952 # The linker will automatically build a .lib file if we build a DLL. 11953 old_archive_From_new_cmds='true' 11954 # FIXME: Should let the user specify the lib program. 11955 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 11956 fix_srcfile_path='`cygpath -w "$srcfile"`' 11957 enable_shared_with_static_runtimes=yes 11958 ;; 11959 11960 darwin* | rhapsody*) 11961 case $host_os in 11962 rhapsody* | darwin1.[012]) 11963 allow_undefined_flag='${wl}-undefined ${wl}suppress' 11964 ;; 11965 *) # Darwin 1.3 on 11966 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11967 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11968 else 11969 case ${MACOSX_DEPLOYMENT_TARGET} in 11970 10.[012]) 11971 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11972 ;; 11973 10.*) 11974 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 11975 ;; 11976 esac 11977 fi 11978 ;; 11979 esac 11980 archive_cmds_need_lc=no 11981 hardcode_direct=no 11982 hardcode_automatic=yes 11983 hardcode_shlibpath_var=unsupported 11984 whole_archive_flag_spec='' 11985 link_all_deplibs=yes 11986 if test "$GCC" = yes ; then 11987 output_verbose_link_cmd='echo' 11988 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11989 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11991 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}' 11992 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11993 else 11994 case $cc_basename in 11995 xlc*) 11996 output_verbose_link_cmd='echo' 11997 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11998 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12000 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12001 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12002 ;; 12003 *) 12004 ld_shlibs=no 12005 ;; 12006 esac 12007 fi 12008 ;; 12009 12010 dgux*) 12011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12012 hardcode_libdir_flag_spec='-L$libdir' 12013 hardcode_shlibpath_var=no 12014 ;; 12015 12016 freebsd1*) 12017 ld_shlibs=no 12018 ;; 12019 12020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12021 # support. Future versions do this automatically, but an explicit c++rt0.o 12022 # does not break anything, and helps significantly (at the cost of a little 12023 # extra space). 12024 freebsd2.2*) 12025 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12026 hardcode_libdir_flag_spec='-R$libdir' 12027 hardcode_direct=yes 12028 hardcode_shlibpath_var=no 12029 ;; 12030 12031 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12032 freebsd2*) 12033 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12034 hardcode_direct=yes 12035 hardcode_minus_L=yes 12036 hardcode_shlibpath_var=no 12037 ;; 12038 12039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12040 freebsd* | kfreebsd*-gnu | dragonfly*) 12041 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 12042 hardcode_libdir_flag_spec='-R$libdir' 12043 hardcode_direct=yes 12044 hardcode_shlibpath_var=no 12045 ;; 12046 12047 hpux9*) 12048 if test "$GCC" = yes; then 12049 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' 12050 else 12051 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' 12052 fi 12053 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12054 hardcode_libdir_separator=: 12055 hardcode_direct=yes 12056 12057 # hardcode_minus_L: Not really in the search PATH, 12058 # but as the default location of the library. 12059 hardcode_minus_L=yes 12060 export_dynamic_flag_spec='${wl}-E' 12061 ;; 12062 12063 hpux10* | hpux11*) 12064 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 12065 case $host_cpu in 12066 hppa*64*|ia64*) 12067 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12068 ;; 12069 *) 12070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12071 ;; 12072 esac 12073 else 12074 case $host_cpu in 12075 hppa*64*|ia64*) 12076 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 12077 ;; 12078 *) 12079 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12080 ;; 12081 esac 12082 fi 12083 if test "$with_gnu_ld" = no; then 12084 case $host_cpu in 12085 hppa*64*) 12086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12087 hardcode_libdir_flag_spec_ld='+b $libdir' 12088 hardcode_libdir_separator=: 12089 hardcode_direct=no 12090 hardcode_shlibpath_var=no 12091 ;; 12092 ia64*) 12093 hardcode_libdir_flag_spec='-L$libdir' 12094 hardcode_direct=no 12095 hardcode_shlibpath_var=no 12096 12097 # hardcode_minus_L: Not really in the search PATH, 12098 # but as the default location of the library. 12099 hardcode_minus_L=yes 12100 ;; 12101 *) 12102 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12103 hardcode_libdir_separator=: 12104 hardcode_direct=yes 12105 export_dynamic_flag_spec='${wl}-E' 12106 12107 # hardcode_minus_L: Not really in the search PATH, 12108 # but as the default location of the library. 12109 hardcode_minus_L=yes 12110 ;; 12111 esac 12112 fi 12113 ;; 12114 12115 irix5* | irix6* | nonstopux*) 12116 if test "$GCC" = yes; then 12117 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' 12118 else 12119 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' 12120 hardcode_libdir_flag_spec_ld='-rpath $libdir' 12121 fi 12122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12123 hardcode_libdir_separator=: 12124 link_all_deplibs=yes 12125 ;; 12126 12127 netbsd*) 12128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12129 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12130 else 12131 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12132 fi 12133 hardcode_libdir_flag_spec='-R$libdir' 12134 hardcode_direct=yes 12135 hardcode_shlibpath_var=no 12136 ;; 12137 12138 newsos6) 12139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12140 hardcode_direct=yes 12141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12142 hardcode_libdir_separator=: 12143 hardcode_shlibpath_var=no 12144 ;; 12145 12146 openbsd*) 12147 hardcode_direct=yes 12148 hardcode_shlibpath_var=no 12149 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12151 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12153 export_dynamic_flag_spec='${wl}-E' 12154 else 12155 case $host_os in 12156 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12158 hardcode_libdir_flag_spec='-R$libdir' 12159 ;; 12160 *) 12161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12163 ;; 12164 esac 12165 fi 12166 ;; 12167 12168 os2*) 12169 hardcode_libdir_flag_spec='-L$libdir' 12170 hardcode_minus_L=yes 12171 allow_undefined_flag=unsupported 12172 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' 12173 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12174 ;; 12175 12176 osf3*) 12177 if test "$GCC" = yes; then 12178 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12179 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' 12180 else 12181 allow_undefined_flag=' -expect_unresolved \*' 12182 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' 12183 fi 12184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12185 hardcode_libdir_separator=: 12186 ;; 12187 12188 osf4* | osf5*) # as osf3* with the addition of -msym flag 12189 if test "$GCC" = yes; then 12190 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12191 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' 12192 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12193 else 12194 allow_undefined_flag=' -expect_unresolved \*' 12195 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' 12196 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 12197 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 12198 12199 # Both c and cxx compiler support -rpath directly 12200 hardcode_libdir_flag_spec='-rpath $libdir' 12201 fi 12202 hardcode_libdir_separator=: 12203 ;; 12204 12205 sco3.2v5*) 12206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12207 hardcode_shlibpath_var=no 12208 export_dynamic_flag_spec='${wl}-Bexport' 12209 runpath_var=LD_RUN_PATH 12210 hardcode_runpath_var=yes 12211 ;; 12212 12213 solaris*) 12214 no_undefined_flag=' -z text' 12215 if test "$GCC" = yes; then 12216 wlarc='${wl}' 12217 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12218 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12219 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 12220 else 12221 wlarc='' 12222 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12223 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12224 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 12225 fi 12226 hardcode_libdir_flag_spec='-R$libdir' 12227 hardcode_shlibpath_var=no 12228 case $host_os in 12229 solaris2.[0-5] | solaris2.[0-5].*) ;; 12230 *) 12231 # The compiler driver will combine linker options so we 12232 # cannot just pass the convience library names through 12233 # without $wl, iff we do not link with $LD. 12234 # Luckily, gcc supports the same syntax we need for Sun Studio. 12235 # Supported since Solaris 2.6 (maybe 2.5.1?) 12236 case $wlarc in 12237 '') 12238 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 12239 *) 12240 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 12241 esac ;; 12242 esac 12243 link_all_deplibs=yes 12244 ;; 12245 12246 sunos4*) 12247 if test "x$host_vendor" = xsequent; then 12248 # Use $CC to link under sequent, because it throws in some extra .o 12249 # files that make .init and .fini sections work. 12250 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12251 else 12252 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12253 fi 12254 hardcode_libdir_flag_spec='-L$libdir' 12255 hardcode_direct=yes 12256 hardcode_minus_L=yes 12257 hardcode_shlibpath_var=no 12258 ;; 12259 12260 sysv4) 12261 case $host_vendor in 12262 sni) 12263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12264 hardcode_direct=yes # is this really true??? 12265 ;; 12266 siemens) 12267 ## LD is ld it makes a PLAMLIB 12268 ## CC just makes a GrossModule. 12269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12270 reload_cmds='$CC -r -o $output$reload_objs' 12271 hardcode_direct=no 12272 ;; 12273 motorola) 12274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12275 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12276 ;; 12277 esac 12278 runpath_var='LD_RUN_PATH' 12279 hardcode_shlibpath_var=no 12280 ;; 12281 12282 sysv4.3*) 12283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12284 hardcode_shlibpath_var=no 12285 export_dynamic_flag_spec='-Bexport' 12286 ;; 12287 12288 sysv4*MP*) 12289 if test -d /usr/nec; then 12290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12291 hardcode_shlibpath_var=no 12292 runpath_var=LD_RUN_PATH 12293 hardcode_runpath_var=yes 12294 ld_shlibs=yes 12295 fi 12296 ;; 12297 12298 sysv4.2uw2*) 12299 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12300 hardcode_direct=yes 12301 hardcode_minus_L=no 12302 hardcode_shlibpath_var=no 12303 hardcode_runpath_var=yes 12304 runpath_var=LD_RUN_PATH 12305 ;; 12306 12307 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 12308 no_undefined_flag='${wl}-z ${wl}text' 12309 if test "$GCC" = yes; then 12310 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12311 else 12312 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12313 fi 12314 runpath_var='LD_RUN_PATH' 12315 hardcode_shlibpath_var=no 12316 ;; 12317 12318 sysv5*) 12319 no_undefined_flag=' -z text' 12320 # $CC -shared without GNU ld will not create a library from C++ 12321 # object files and a static libstdc++, better avoid it by now 12322 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12323 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12324 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 12325 hardcode_libdir_flag_spec= 12326 hardcode_shlibpath_var=no 12327 runpath_var='LD_RUN_PATH' 12328 ;; 12329 12330 uts4*) 12331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12332 hardcode_libdir_flag_spec='-L$libdir' 12333 hardcode_shlibpath_var=no 12334 ;; 12335 12336 *) 12337 ld_shlibs=no 12338 ;; 12339 esac 12340 fi 12341 12342echo "$as_me:$LINENO: result: $ld_shlibs" >&5 12343echo "${ECHO_T}$ld_shlibs" >&6 12344test "$ld_shlibs" = no && can_build_shared=no 12345 12346variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12347if test "$GCC" = yes; then 12348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12349fi 12350 12351# 12352# Do we need to explicitly link libc? 12353# 12354case "x$archive_cmds_need_lc" in 12355x|xyes) 12356 # Assume -lc should be added 12357 archive_cmds_need_lc=yes 12358 12359 if test "$enable_shared" = yes && test "$GCC" = yes; then 12360 case $archive_cmds in 12361 *'~'*) 12362 # FIXME: we may have to deal with multi-command sequences. 12363 ;; 12364 '$CC '*) 12365 # Test whether the compiler implicitly links with -lc since on some 12366 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12367 # to ld, don't add -lc before -lgcc. 12368 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12369echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12370 $rm conftest* 12371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12372 12373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12374 (eval $ac_compile) 2>&5 12375 ac_status=$? 12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12377 (exit $ac_status); } 2>conftest.err; then 12378 soname=conftest 12379 lib=conftest 12380 libobjs=conftest.$ac_objext 12381 deplibs= 12382 wl=$lt_prog_compiler_wl 12383 compiler_flags=-v 12384 linker_flags=-v 12385 verstring= 12386 output_objdir=. 12387 libname=conftest 12388 lt_save_allow_undefined_flag=$allow_undefined_flag 12389 allow_undefined_flag= 12390 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12391 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12392 ac_status=$? 12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12394 (exit $ac_status); } 12395 then 12396 archive_cmds_need_lc=no 12397 else 12398 archive_cmds_need_lc=yes 12399 fi 12400 allow_undefined_flag=$lt_save_allow_undefined_flag 12401 else 12402 cat conftest.err 1>&5 12403 fi 12404 $rm conftest* 12405 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 12406echo "${ECHO_T}$archive_cmds_need_lc" >&6 12407 ;; 12408 esac 12409 fi 12410 ;; 12411esac 12412 12413echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12414echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12415library_names_spec= 12416libname_spec='lib$name' 12417soname_spec= 12418shrext_cmds=".so" 12419postinstall_cmds= 12420postuninstall_cmds= 12421finish_cmds= 12422finish_eval= 12423shlibpath_var= 12424shlibpath_overrides_runpath=unknown 12425version_type=none 12426dynamic_linker="$host_os ld.so" 12427sys_lib_dlsearch_path_spec="/lib /usr/lib" 12428if test "$GCC" = yes; then 12429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12430 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12431 # if the path contains ";" then we assume it to be the separator 12432 # otherwise default to the standard path separator (i.e. ":") - it is 12433 # assumed that no part of a normal pathname contains ";" but that should 12434 # okay in the real world where ";" in dirpaths is itself problematic. 12435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12436 else 12437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12438 fi 12439else 12440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12441fi 12442need_lib_prefix=unknown 12443hardcode_into_libs=no 12444 12445# when you set need_version to no, make sure it does not cause -set_version 12446# flags to be left without arguments 12447need_version=unknown 12448 12449case $host_os in 12450aix3*) 12451 version_type=linux 12452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12453 shlibpath_var=LIBPATH 12454 12455 # AIX 3 has no versioning support, so we append a major version to the name. 12456 soname_spec='${libname}${release}${shared_ext}$major' 12457 ;; 12458 12459aix4* | aix5*) 12460 version_type=linux 12461 need_lib_prefix=no 12462 need_version=no 12463 hardcode_into_libs=yes 12464 if test "$host_cpu" = ia64; then 12465 # AIX 5 supports IA64 12466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12467 shlibpath_var=LD_LIBRARY_PATH 12468 else 12469 # With GCC up to 2.95.x, collect2 would create an import file 12470 # for dependence libraries. The import file would start with 12471 # the line `#! .'. This would cause the generated library to 12472 # depend on `.', always an invalid library. This was fixed in 12473 # development snapshots of GCC prior to 3.0. 12474 case $host_os in 12475 aix4 | aix4.[01] | aix4.[01].*) 12476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12477 echo ' yes ' 12478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12479 : 12480 else 12481 can_build_shared=no 12482 fi 12483 ;; 12484 esac 12485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12486 # soname into executable. Probably we can add versioning support to 12487 # collect2, so additional links can be useful in future. 12488 if test "$aix_use_runtimelinking" = yes; then 12489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12490 # instead of lib<name>.a to let people know that these are not 12491 # typical AIX shared libraries. 12492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12493 else 12494 # We preserve .a as extension for shared libraries through AIX4.2 12495 # and later when we are not doing run time linking. 12496 library_names_spec='${libname}${release}.a $libname.a' 12497 soname_spec='${libname}${release}${shared_ext}$major' 12498 fi 12499 shlibpath_var=LIBPATH 12500 fi 12501 ;; 12502 12503amigaos*) 12504 library_names_spec='$libname.ixlibrary $libname.a' 12505 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12506 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' 12507 ;; 12508 12509beos*) 12510 library_names_spec='${libname}${shared_ext}' 12511 dynamic_linker="$host_os ld.so" 12512 shlibpath_var=LIBRARY_PATH 12513 ;; 12514 12515bsdi[45]*) 12516 version_type=linux 12517 need_version=no 12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12519 soname_spec='${libname}${release}${shared_ext}$major' 12520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12521 shlibpath_var=LD_LIBRARY_PATH 12522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12524 # the default ld.so.conf also contains /usr/contrib/lib and 12525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12526 # libtool to hard-code these into programs 12527 ;; 12528 12529cygwin* | mingw* | pw32*) 12530 version_type=windows 12531 shrext_cmds=".dll" 12532 need_version=no 12533 need_lib_prefix=no 12534 12535 case $GCC,$host_os in 12536 yes,cygwin* | yes,mingw* | yes,pw32*) 12537 library_names_spec='$libname.dll.a' 12538 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12539 postinstall_cmds='base_file=`basename \${file}`~ 12540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12541 dldir=$destdir/`dirname \$dlpath`~ 12542 test -d \$dldir || mkdir -p \$dldir~ 12543 $install_prog $dir/$dlname \$dldir/$dlname~ 12544 chmod a+x \$dldir/$dlname' 12545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12546 dlpath=$dir/\$dldll~ 12547 $rm \$dlpath' 12548 shlibpath_overrides_runpath=yes 12549 12550 case $host_os in 12551 cygwin*) 12552 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12553 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12554 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12555 ;; 12556 mingw*) 12557 # MinGW DLLs use traditional 'lib' prefix 12558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12560 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12561 # It is most probably a Windows format PATH printed by 12562 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12563 # path with ; separators, and with drive letters. We can handle the 12564 # drive letters (cygwin fileutils understands them), so leave them, 12565 # especially as we might pass files found there to a mingw objdump, 12566 # which wouldn't understand a cygwinified path. Ahh. 12567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12568 else 12569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12570 fi 12571 ;; 12572 pw32*) 12573 # pw32 DLLs use 'pw' prefix rather than 'lib' 12574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12575 ;; 12576 esac 12577 ;; 12578 12579 *) 12580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12581 ;; 12582 esac 12583 dynamic_linker='Win32 ld.exe' 12584 # FIXME: first we should search . and the directory the executable is in 12585 shlibpath_var=PATH 12586 ;; 12587 12588darwin* | rhapsody*) 12589 dynamic_linker="$host_os dyld" 12590 version_type=darwin 12591 need_lib_prefix=no 12592 need_version=no 12593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12594 soname_spec='${libname}${release}${major}$shared_ext' 12595 shlibpath_overrides_runpath=yes 12596 shlibpath_var=DYLD_LIBRARY_PATH 12597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12598 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12599 if test "$GCC" = yes; then 12600 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"` 12601 else 12602 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12603 fi 12604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12605 ;; 12606 12607dgux*) 12608 version_type=linux 12609 need_lib_prefix=no 12610 need_version=no 12611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12612 soname_spec='${libname}${release}${shared_ext}$major' 12613 shlibpath_var=LD_LIBRARY_PATH 12614 ;; 12615 12616freebsd1*) 12617 dynamic_linker=no 12618 ;; 12619 12620kfreebsd*-gnu) 12621 version_type=linux 12622 need_lib_prefix=no 12623 need_version=no 12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12625 soname_spec='${libname}${release}${shared_ext}$major' 12626 shlibpath_var=LD_LIBRARY_PATH 12627 shlibpath_overrides_runpath=no 12628 hardcode_into_libs=yes 12629 dynamic_linker='GNU ld.so' 12630 ;; 12631 12632freebsd* | dragonfly*) 12633 # DragonFly does not have aout. When/if they implement a new 12634 # versioning mechanism, adjust this. 12635 if test -x /usr/bin/objformat; then 12636 objformat=`/usr/bin/objformat` 12637 else 12638 case $host_os in 12639 freebsd[123]*) objformat=aout ;; 12640 *) objformat=elf ;; 12641 esac 12642 fi 12643 version_type=freebsd-$objformat 12644 case $version_type in 12645 freebsd-elf*) 12646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12647 need_version=no 12648 need_lib_prefix=no 12649 ;; 12650 freebsd-*) 12651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12652 need_version=yes 12653 ;; 12654 esac 12655 shlibpath_var=LD_LIBRARY_PATH 12656 case $host_os in 12657 freebsd2*) 12658 shlibpath_overrides_runpath=yes 12659 ;; 12660 freebsd3.[01]* | freebsdelf3.[01]*) 12661 shlibpath_overrides_runpath=yes 12662 hardcode_into_libs=yes 12663 ;; 12664 *) # from 3.2 on 12665 shlibpath_overrides_runpath=no 12666 hardcode_into_libs=yes 12667 ;; 12668 esac 12669 ;; 12670 12671gnu*) 12672 version_type=linux 12673 need_lib_prefix=no 12674 need_version=no 12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12676 soname_spec='${libname}${release}${shared_ext}$major' 12677 shlibpath_var=LD_LIBRARY_PATH 12678 hardcode_into_libs=yes 12679 ;; 12680 12681hpux9* | hpux10* | hpux11*) 12682 # Give a soname corresponding to the major version so that dld.sl refuses to 12683 # link against other versions. 12684 version_type=sunos 12685 need_lib_prefix=no 12686 need_version=no 12687 case $host_cpu in 12688 ia64*) 12689 shrext_cmds='.so' 12690 hardcode_into_libs=yes 12691 dynamic_linker="$host_os dld.so" 12692 shlibpath_var=LD_LIBRARY_PATH 12693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12695 soname_spec='${libname}${release}${shared_ext}$major' 12696 if test "X$HPUX_IA64_MODE" = X32; then 12697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12698 else 12699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12700 fi 12701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12702 ;; 12703 hppa*64*) 12704 shrext_cmds='.sl' 12705 hardcode_into_libs=yes 12706 dynamic_linker="$host_os dld.sl" 12707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12710 soname_spec='${libname}${release}${shared_ext}$major' 12711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12713 ;; 12714 *) 12715 shrext_cmds='.sl' 12716 dynamic_linker="$host_os dld.sl" 12717 shlibpath_var=SHLIB_PATH 12718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12720 soname_spec='${libname}${release}${shared_ext}$major' 12721 ;; 12722 esac 12723 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12724 postinstall_cmds='chmod 555 $lib' 12725 ;; 12726 12727irix5* | irix6* | nonstopux*) 12728 case $host_os in 12729 nonstopux*) version_type=nonstopux ;; 12730 *) 12731 if test "$lt_cv_prog_gnu_ld" = yes; then 12732 version_type=linux 12733 else 12734 version_type=irix 12735 fi ;; 12736 esac 12737 need_lib_prefix=no 12738 need_version=no 12739 soname_spec='${libname}${release}${shared_ext}$major' 12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12741 case $host_os in 12742 irix5* | nonstopux*) 12743 libsuff= shlibsuff= 12744 ;; 12745 *) 12746 case $LD in # libtool.m4 will add one of these switches to LD 12747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12748 libsuff= shlibsuff= libmagic=32-bit;; 12749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12750 libsuff=32 shlibsuff=N32 libmagic=N32;; 12751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12752 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12753 *) libsuff= shlibsuff= libmagic=never-match;; 12754 esac 12755 ;; 12756 esac 12757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12758 shlibpath_overrides_runpath=no 12759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12761 hardcode_into_libs=yes 12762 ;; 12763 12764# No shared lib support for Linux oldld, aout, or coff. 12765linux*oldld* | linux*aout* | linux*coff*) 12766 dynamic_linker=no 12767 ;; 12768 12769# This must be Linux ELF. 12770linux*) 12771 version_type=linux 12772 need_lib_prefix=no 12773 need_version=no 12774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12775 soname_spec='${libname}${release}${shared_ext}$major' 12776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12777 shlibpath_var=LD_LIBRARY_PATH 12778 shlibpath_overrides_runpath=no 12779 # This implies no fast_install, which is unacceptable. 12780 # Some rework will be needed to allow for fast_install 12781 # before this can be enabled. 12782 hardcode_into_libs=yes 12783 12784 # Append ld.so.conf contents to the search path 12785 if test -f /etc/ld.so.conf; then 12786 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12788 fi 12789 12790 # We used to test for /lib/ld.so.1 and disable shared libraries on 12791 # powerpc, because MkLinux only supported shared libraries with the 12792 # GNU dynamic linker. Since this was broken with cross compilers, 12793 # most powerpc-linux boxes support dynamic linking these days and 12794 # people can always --disable-shared, the test was removed, and we 12795 # assume the GNU/Linux dynamic linker is in use. 12796 dynamic_linker='GNU/Linux ld.so' 12797 ;; 12798 12799knetbsd*-gnu) 12800 version_type=linux 12801 need_lib_prefix=no 12802 need_version=no 12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12804 soname_spec='${libname}${release}${shared_ext}$major' 12805 shlibpath_var=LD_LIBRARY_PATH 12806 shlibpath_overrides_runpath=no 12807 hardcode_into_libs=yes 12808 dynamic_linker='GNU ld.so' 12809 ;; 12810 12811netbsd*) 12812 version_type=sunos 12813 need_lib_prefix=no 12814 need_version=no 12815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12818 dynamic_linker='NetBSD (a.out) ld.so' 12819 else 12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12821 soname_spec='${libname}${release}${shared_ext}$major' 12822 dynamic_linker='NetBSD ld.elf_so' 12823 fi 12824 shlibpath_var=LD_LIBRARY_PATH 12825 shlibpath_overrides_runpath=yes 12826 hardcode_into_libs=yes 12827 ;; 12828 12829newsos6) 12830 version_type=linux 12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12832 shlibpath_var=LD_LIBRARY_PATH 12833 shlibpath_overrides_runpath=yes 12834 ;; 12835 12836nto-qnx*) 12837 version_type=linux 12838 need_lib_prefix=no 12839 need_version=no 12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12841 soname_spec='${libname}${release}${shared_ext}$major' 12842 shlibpath_var=LD_LIBRARY_PATH 12843 shlibpath_overrides_runpath=yes 12844 ;; 12845 12846openbsd*) 12847 version_type=sunos 12848 need_lib_prefix=no 12849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12850 case $host_os in 12851 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12852 *) need_version=no ;; 12853 esac 12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12856 shlibpath_var=LD_LIBRARY_PATH 12857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12858 case $host_os in 12859 openbsd2.[89] | openbsd2.[89].*) 12860 shlibpath_overrides_runpath=no 12861 ;; 12862 *) 12863 shlibpath_overrides_runpath=yes 12864 ;; 12865 esac 12866 else 12867 shlibpath_overrides_runpath=yes 12868 fi 12869 ;; 12870 12871os2*) 12872 libname_spec='$name' 12873 shrext_cmds=".dll" 12874 need_lib_prefix=no 12875 library_names_spec='$libname${shared_ext} $libname.a' 12876 dynamic_linker='OS/2 ld.exe' 12877 shlibpath_var=LIBPATH 12878 ;; 12879 12880osf3* | osf4* | osf5*) 12881 version_type=osf 12882 need_lib_prefix=no 12883 need_version=no 12884 soname_spec='${libname}${release}${shared_ext}$major' 12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12886 shlibpath_var=LD_LIBRARY_PATH 12887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12889 ;; 12890 12891sco3.2v5*) 12892 version_type=osf 12893 soname_spec='${libname}${release}${shared_ext}$major' 12894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12895 shlibpath_var=LD_LIBRARY_PATH 12896 ;; 12897 12898solaris*) 12899 version_type=linux 12900 need_lib_prefix=no 12901 need_version=no 12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12903 soname_spec='${libname}${release}${shared_ext}$major' 12904 shlibpath_var=LD_LIBRARY_PATH 12905 shlibpath_overrides_runpath=yes 12906 hardcode_into_libs=yes 12907 # ldd complains unless libraries are executable 12908 postinstall_cmds='chmod +x $lib' 12909 ;; 12910 12911sunos4*) 12912 version_type=sunos 12913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12914 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12915 shlibpath_var=LD_LIBRARY_PATH 12916 shlibpath_overrides_runpath=yes 12917 if test "$with_gnu_ld" = yes; then 12918 need_lib_prefix=no 12919 fi 12920 need_version=yes 12921 ;; 12922 12923sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12924 version_type=linux 12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12926 soname_spec='${libname}${release}${shared_ext}$major' 12927 shlibpath_var=LD_LIBRARY_PATH 12928 case $host_vendor in 12929 sni) 12930 shlibpath_overrides_runpath=no 12931 need_lib_prefix=no 12932 export_dynamic_flag_spec='${wl}-Blargedynsym' 12933 runpath_var=LD_RUN_PATH 12934 ;; 12935 siemens) 12936 need_lib_prefix=no 12937 ;; 12938 motorola) 12939 need_lib_prefix=no 12940 need_version=no 12941 shlibpath_overrides_runpath=no 12942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12943 ;; 12944 esac 12945 ;; 12946 12947sysv4*MP*) 12948 if test -d /usr/nec ;then 12949 version_type=linux 12950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12951 soname_spec='$libname${shared_ext}.$major' 12952 shlibpath_var=LD_LIBRARY_PATH 12953 fi 12954 ;; 12955 12956uts4*) 12957 version_type=linux 12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12959 soname_spec='${libname}${release}${shared_ext}$major' 12960 shlibpath_var=LD_LIBRARY_PATH 12961 ;; 12962 12963*) 12964 dynamic_linker=no 12965 ;; 12966esac 12967echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12968echo "${ECHO_T}$dynamic_linker" >&6 12969test "$dynamic_linker" = no && can_build_shared=no 12970 12971echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12972echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12973hardcode_action= 12974if test -n "$hardcode_libdir_flag_spec" || \ 12975 test -n "$runpath_var" || \ 12976 test "X$hardcode_automatic" = "Xyes" ; then 12977 12978 # We can hardcode non-existant directories. 12979 if test "$hardcode_direct" != no && 12980 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12981 # have to relink, otherwise we might link with an installed library 12982 # when we should be linking with a yet-to-be-installed one 12983 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 12984 test "$hardcode_minus_L" != no; then 12985 # Linking always hardcodes the temporary library directory. 12986 hardcode_action=relink 12987 else 12988 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12989 hardcode_action=immediate 12990 fi 12991else 12992 # We cannot hardcode anything, or else we can only hardcode existing 12993 # directories. 12994 hardcode_action=unsupported 12995fi 12996echo "$as_me:$LINENO: result: $hardcode_action" >&5 12997echo "${ECHO_T}$hardcode_action" >&6 12998 12999if test "$hardcode_action" = relink; then 13000 # Fast installation is not supported 13001 enable_fast_install=no 13002elif test "$shlibpath_overrides_runpath" = yes || 13003 test "$enable_shared" = no; then 13004 # Fast installation is not necessary 13005 enable_fast_install=needless 13006fi 13007 13008striplib= 13009old_striplib= 13010echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 13011echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 13012if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 13013 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13014 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13015 echo "$as_me:$LINENO: result: yes" >&5 13016echo "${ECHO_T}yes" >&6 13017else 13018# FIXME - insert some real tests, host_os isn't really good enough 13019 case $host_os in 13020 darwin*) 13021 if test -n "$STRIP" ; then 13022 striplib="$STRIP -x" 13023 echo "$as_me:$LINENO: result: yes" >&5 13024echo "${ECHO_T}yes" >&6 13025 else 13026 echo "$as_me:$LINENO: result: no" >&5 13027echo "${ECHO_T}no" >&6 13028fi 13029 ;; 13030 *) 13031 echo "$as_me:$LINENO: result: no" >&5 13032echo "${ECHO_T}no" >&6 13033 ;; 13034 esac 13035fi 13036 13037if test "x$enable_dlopen" != xyes; then 13038 enable_dlopen=unknown 13039 enable_dlopen_self=unknown 13040 enable_dlopen_self_static=unknown 13041else 13042 lt_cv_dlopen=no 13043 lt_cv_dlopen_libs= 13044 13045 case $host_os in 13046 beos*) 13047 lt_cv_dlopen="load_add_on" 13048 lt_cv_dlopen_libs= 13049 lt_cv_dlopen_self=yes 13050 ;; 13051 13052 mingw* | pw32*) 13053 lt_cv_dlopen="LoadLibrary" 13054 lt_cv_dlopen_libs= 13055 ;; 13056 13057 cygwin*) 13058 lt_cv_dlopen="dlopen" 13059 lt_cv_dlopen_libs= 13060 ;; 13061 13062 darwin*) 13063 # if libdl is installed we need to link against it 13064 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 13065echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13066if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13067 echo $ECHO_N "(cached) $ECHO_C" >&6 13068else 13069 ac_check_lib_save_LIBS=$LIBS 13070LIBS="-ldl $LIBS" 13071cat >conftest.$ac_ext <<_ACEOF 13072/* confdefs.h. */ 13073_ACEOF 13074cat confdefs.h >>conftest.$ac_ext 13075cat >>conftest.$ac_ext <<_ACEOF 13076/* end confdefs.h. */ 13077 13078/* Override any gcc2 internal prototype to avoid an error. */ 13079#ifdef __cplusplus 13080extern "C" 13081#endif 13082/* We use char because int might match the return type of a gcc2 13083 builtin and then its argument prototype would still apply. */ 13084char dlopen (); 13085int 13086main () 13087{ 13088dlopen (); 13089 ; 13090 return 0; 13091} 13092_ACEOF 13093rm -f conftest.$ac_objext conftest$ac_exeext 13094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13095 (eval $ac_link) 2>conftest.er1 13096 ac_status=$? 13097 grep -v '^ *+' conftest.er1 >conftest.err 13098 rm -f conftest.er1 13099 cat conftest.err >&5 13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13101 (exit $ac_status); } && 13102 { ac_try='test -z "$ac_c_werror_flag" 13103 || test ! -s conftest.err' 13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13105 (eval $ac_try) 2>&5 13106 ac_status=$? 13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13108 (exit $ac_status); }; } && 13109 { ac_try='test -s conftest$ac_exeext' 13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13111 (eval $ac_try) 2>&5 13112 ac_status=$? 13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13114 (exit $ac_status); }; }; then 13115 ac_cv_lib_dl_dlopen=yes 13116else 13117 echo "$as_me: failed program was:" >&5 13118sed 's/^/| /' conftest.$ac_ext >&5 13119 13120ac_cv_lib_dl_dlopen=no 13121fi 13122rm -f conftest.err conftest.$ac_objext \ 13123 conftest$ac_exeext conftest.$ac_ext 13124LIBS=$ac_check_lib_save_LIBS 13125fi 13126echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13127echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13128if test $ac_cv_lib_dl_dlopen = yes; then 13129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13130else 13131 13132 lt_cv_dlopen="dyld" 13133 lt_cv_dlopen_libs= 13134 lt_cv_dlopen_self=yes 13135 13136fi 13137 13138 ;; 13139 13140 *) 13141 echo "$as_me:$LINENO: checking for shl_load" >&5 13142echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 13143if test "${ac_cv_func_shl_load+set}" = set; then 13144 echo $ECHO_N "(cached) $ECHO_C" >&6 13145else 13146 cat >conftest.$ac_ext <<_ACEOF 13147/* confdefs.h. */ 13148_ACEOF 13149cat confdefs.h >>conftest.$ac_ext 13150cat >>conftest.$ac_ext <<_ACEOF 13151/* end confdefs.h. */ 13152/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 13153 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13154#define shl_load innocuous_shl_load 13155 13156/* System header to define __stub macros and hopefully few prototypes, 13157 which can conflict with char shl_load (); below. 13158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13159 <limits.h> exists even on freestanding compilers. */ 13160 13161#ifdef __STDC__ 13162# include <limits.h> 13163#else 13164# include <assert.h> 13165#endif 13166 13167#undef shl_load 13168 13169/* Override any gcc2 internal prototype to avoid an error. */ 13170#ifdef __cplusplus 13171extern "C" 13172{ 13173#endif 13174/* We use char because int might match the return type of a gcc2 13175 builtin and then its argument prototype would still apply. */ 13176char shl_load (); 13177/* The GNU C library defines this for functions which it implements 13178 to always fail with ENOSYS. Some functions are actually named 13179 something starting with __ and the normal name is an alias. */ 13180#if defined (__stub_shl_load) || defined (__stub___shl_load) 13181choke me 13182#else 13183char (*f) () = shl_load; 13184#endif 13185#ifdef __cplusplus 13186} 13187#endif 13188 13189int 13190main () 13191{ 13192return f != shl_load; 13193 ; 13194 return 0; 13195} 13196_ACEOF 13197rm -f conftest.$ac_objext conftest$ac_exeext 13198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13199 (eval $ac_link) 2>conftest.er1 13200 ac_status=$? 13201 grep -v '^ *+' conftest.er1 >conftest.err 13202 rm -f conftest.er1 13203 cat conftest.err >&5 13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13205 (exit $ac_status); } && 13206 { ac_try='test -z "$ac_c_werror_flag" 13207 || test ! -s conftest.err' 13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13209 (eval $ac_try) 2>&5 13210 ac_status=$? 13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13212 (exit $ac_status); }; } && 13213 { ac_try='test -s conftest$ac_exeext' 13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13215 (eval $ac_try) 2>&5 13216 ac_status=$? 13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13218 (exit $ac_status); }; }; then 13219 ac_cv_func_shl_load=yes 13220else 13221 echo "$as_me: failed program was:" >&5 13222sed 's/^/| /' conftest.$ac_ext >&5 13223 13224ac_cv_func_shl_load=no 13225fi 13226rm -f conftest.err conftest.$ac_objext \ 13227 conftest$ac_exeext conftest.$ac_ext 13228fi 13229echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 13230echo "${ECHO_T}$ac_cv_func_shl_load" >&6 13231if test $ac_cv_func_shl_load = yes; then 13232 lt_cv_dlopen="shl_load" 13233else 13234 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 13235echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 13236if test "${ac_cv_lib_dld_shl_load+set}" = set; then 13237 echo $ECHO_N "(cached) $ECHO_C" >&6 13238else 13239 ac_check_lib_save_LIBS=$LIBS 13240LIBS="-ldld $LIBS" 13241cat >conftest.$ac_ext <<_ACEOF 13242/* confdefs.h. */ 13243_ACEOF 13244cat confdefs.h >>conftest.$ac_ext 13245cat >>conftest.$ac_ext <<_ACEOF 13246/* end confdefs.h. */ 13247 13248/* Override any gcc2 internal prototype to avoid an error. */ 13249#ifdef __cplusplus 13250extern "C" 13251#endif 13252/* We use char because int might match the return type of a gcc2 13253 builtin and then its argument prototype would still apply. */ 13254char shl_load (); 13255int 13256main () 13257{ 13258shl_load (); 13259 ; 13260 return 0; 13261} 13262_ACEOF 13263rm -f conftest.$ac_objext conftest$ac_exeext 13264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13265 (eval $ac_link) 2>conftest.er1 13266 ac_status=$? 13267 grep -v '^ *+' conftest.er1 >conftest.err 13268 rm -f conftest.er1 13269 cat conftest.err >&5 13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13271 (exit $ac_status); } && 13272 { ac_try='test -z "$ac_c_werror_flag" 13273 || test ! -s conftest.err' 13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13275 (eval $ac_try) 2>&5 13276 ac_status=$? 13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13278 (exit $ac_status); }; } && 13279 { ac_try='test -s conftest$ac_exeext' 13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13281 (eval $ac_try) 2>&5 13282 ac_status=$? 13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13284 (exit $ac_status); }; }; then 13285 ac_cv_lib_dld_shl_load=yes 13286else 13287 echo "$as_me: failed program was:" >&5 13288sed 's/^/| /' conftest.$ac_ext >&5 13289 13290ac_cv_lib_dld_shl_load=no 13291fi 13292rm -f conftest.err conftest.$ac_objext \ 13293 conftest$ac_exeext conftest.$ac_ext 13294LIBS=$ac_check_lib_save_LIBS 13295fi 13296echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 13297echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 13298if test $ac_cv_lib_dld_shl_load = yes; then 13299 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 13300else 13301 echo "$as_me:$LINENO: checking for dlopen" >&5 13302echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 13303if test "${ac_cv_func_dlopen+set}" = set; then 13304 echo $ECHO_N "(cached) $ECHO_C" >&6 13305else 13306 cat >conftest.$ac_ext <<_ACEOF 13307/* confdefs.h. */ 13308_ACEOF 13309cat confdefs.h >>conftest.$ac_ext 13310cat >>conftest.$ac_ext <<_ACEOF 13311/* end confdefs.h. */ 13312/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 13313 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13314#define dlopen innocuous_dlopen 13315 13316/* System header to define __stub macros and hopefully few prototypes, 13317 which can conflict with char dlopen (); below. 13318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13319 <limits.h> exists even on freestanding compilers. */ 13320 13321#ifdef __STDC__ 13322# include <limits.h> 13323#else 13324# include <assert.h> 13325#endif 13326 13327#undef dlopen 13328 13329/* Override any gcc2 internal prototype to avoid an error. */ 13330#ifdef __cplusplus 13331extern "C" 13332{ 13333#endif 13334/* We use char because int might match the return type of a gcc2 13335 builtin and then its argument prototype would still apply. */ 13336char dlopen (); 13337/* The GNU C library defines this for functions which it implements 13338 to always fail with ENOSYS. Some functions are actually named 13339 something starting with __ and the normal name is an alias. */ 13340#if defined (__stub_dlopen) || defined (__stub___dlopen) 13341choke me 13342#else 13343char (*f) () = dlopen; 13344#endif 13345#ifdef __cplusplus 13346} 13347#endif 13348 13349int 13350main () 13351{ 13352return f != dlopen; 13353 ; 13354 return 0; 13355} 13356_ACEOF 13357rm -f conftest.$ac_objext conftest$ac_exeext 13358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13359 (eval $ac_link) 2>conftest.er1 13360 ac_status=$? 13361 grep -v '^ *+' conftest.er1 >conftest.err 13362 rm -f conftest.er1 13363 cat conftest.err >&5 13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13365 (exit $ac_status); } && 13366 { ac_try='test -z "$ac_c_werror_flag" 13367 || test ! -s conftest.err' 13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13369 (eval $ac_try) 2>&5 13370 ac_status=$? 13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13372 (exit $ac_status); }; } && 13373 { ac_try='test -s conftest$ac_exeext' 13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13375 (eval $ac_try) 2>&5 13376 ac_status=$? 13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13378 (exit $ac_status); }; }; then 13379 ac_cv_func_dlopen=yes 13380else 13381 echo "$as_me: failed program was:" >&5 13382sed 's/^/| /' conftest.$ac_ext >&5 13383 13384ac_cv_func_dlopen=no 13385fi 13386rm -f conftest.err conftest.$ac_objext \ 13387 conftest$ac_exeext conftest.$ac_ext 13388fi 13389echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 13390echo "${ECHO_T}$ac_cv_func_dlopen" >&6 13391if test $ac_cv_func_dlopen = yes; then 13392 lt_cv_dlopen="dlopen" 13393else 13394 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 13395echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 13396if test "${ac_cv_lib_dl_dlopen+set}" = set; then 13397 echo $ECHO_N "(cached) $ECHO_C" >&6 13398else 13399 ac_check_lib_save_LIBS=$LIBS 13400LIBS="-ldl $LIBS" 13401cat >conftest.$ac_ext <<_ACEOF 13402/* confdefs.h. */ 13403_ACEOF 13404cat confdefs.h >>conftest.$ac_ext 13405cat >>conftest.$ac_ext <<_ACEOF 13406/* end confdefs.h. */ 13407 13408/* Override any gcc2 internal prototype to avoid an error. */ 13409#ifdef __cplusplus 13410extern "C" 13411#endif 13412/* We use char because int might match the return type of a gcc2 13413 builtin and then its argument prototype would still apply. */ 13414char dlopen (); 13415int 13416main () 13417{ 13418dlopen (); 13419 ; 13420 return 0; 13421} 13422_ACEOF 13423rm -f conftest.$ac_objext conftest$ac_exeext 13424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13425 (eval $ac_link) 2>conftest.er1 13426 ac_status=$? 13427 grep -v '^ *+' conftest.er1 >conftest.err 13428 rm -f conftest.er1 13429 cat conftest.err >&5 13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13431 (exit $ac_status); } && 13432 { ac_try='test -z "$ac_c_werror_flag" 13433 || test ! -s conftest.err' 13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13435 (eval $ac_try) 2>&5 13436 ac_status=$? 13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13438 (exit $ac_status); }; } && 13439 { ac_try='test -s conftest$ac_exeext' 13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13441 (eval $ac_try) 2>&5 13442 ac_status=$? 13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13444 (exit $ac_status); }; }; then 13445 ac_cv_lib_dl_dlopen=yes 13446else 13447 echo "$as_me: failed program was:" >&5 13448sed 's/^/| /' conftest.$ac_ext >&5 13449 13450ac_cv_lib_dl_dlopen=no 13451fi 13452rm -f conftest.err conftest.$ac_objext \ 13453 conftest$ac_exeext conftest.$ac_ext 13454LIBS=$ac_check_lib_save_LIBS 13455fi 13456echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 13457echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 13458if test $ac_cv_lib_dl_dlopen = yes; then 13459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13460else 13461 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 13462echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 13463if test "${ac_cv_lib_svld_dlopen+set}" = set; then 13464 echo $ECHO_N "(cached) $ECHO_C" >&6 13465else 13466 ac_check_lib_save_LIBS=$LIBS 13467LIBS="-lsvld $LIBS" 13468cat >conftest.$ac_ext <<_ACEOF 13469/* confdefs.h. */ 13470_ACEOF 13471cat confdefs.h >>conftest.$ac_ext 13472cat >>conftest.$ac_ext <<_ACEOF 13473/* end confdefs.h. */ 13474 13475/* Override any gcc2 internal prototype to avoid an error. */ 13476#ifdef __cplusplus 13477extern "C" 13478#endif 13479/* We use char because int might match the return type of a gcc2 13480 builtin and then its argument prototype would still apply. */ 13481char dlopen (); 13482int 13483main () 13484{ 13485dlopen (); 13486 ; 13487 return 0; 13488} 13489_ACEOF 13490rm -f conftest.$ac_objext conftest$ac_exeext 13491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13492 (eval $ac_link) 2>conftest.er1 13493 ac_status=$? 13494 grep -v '^ *+' conftest.er1 >conftest.err 13495 rm -f conftest.er1 13496 cat conftest.err >&5 13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13498 (exit $ac_status); } && 13499 { ac_try='test -z "$ac_c_werror_flag" 13500 || test ! -s conftest.err' 13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13502 (eval $ac_try) 2>&5 13503 ac_status=$? 13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13505 (exit $ac_status); }; } && 13506 { ac_try='test -s conftest$ac_exeext' 13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13508 (eval $ac_try) 2>&5 13509 ac_status=$? 13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13511 (exit $ac_status); }; }; then 13512 ac_cv_lib_svld_dlopen=yes 13513else 13514 echo "$as_me: failed program was:" >&5 13515sed 's/^/| /' conftest.$ac_ext >&5 13516 13517ac_cv_lib_svld_dlopen=no 13518fi 13519rm -f conftest.err conftest.$ac_objext \ 13520 conftest$ac_exeext conftest.$ac_ext 13521LIBS=$ac_check_lib_save_LIBS 13522fi 13523echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 13524echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 13525if test $ac_cv_lib_svld_dlopen = yes; then 13526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13527else 13528 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 13529echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 13530if test "${ac_cv_lib_dld_dld_link+set}" = set; then 13531 echo $ECHO_N "(cached) $ECHO_C" >&6 13532else 13533 ac_check_lib_save_LIBS=$LIBS 13534LIBS="-ldld $LIBS" 13535cat >conftest.$ac_ext <<_ACEOF 13536/* confdefs.h. */ 13537_ACEOF 13538cat confdefs.h >>conftest.$ac_ext 13539cat >>conftest.$ac_ext <<_ACEOF 13540/* end confdefs.h. */ 13541 13542/* Override any gcc2 internal prototype to avoid an error. */ 13543#ifdef __cplusplus 13544extern "C" 13545#endif 13546/* We use char because int might match the return type of a gcc2 13547 builtin and then its argument prototype would still apply. */ 13548char dld_link (); 13549int 13550main () 13551{ 13552dld_link (); 13553 ; 13554 return 0; 13555} 13556_ACEOF 13557rm -f conftest.$ac_objext conftest$ac_exeext 13558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13559 (eval $ac_link) 2>conftest.er1 13560 ac_status=$? 13561 grep -v '^ *+' conftest.er1 >conftest.err 13562 rm -f conftest.er1 13563 cat conftest.err >&5 13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13565 (exit $ac_status); } && 13566 { ac_try='test -z "$ac_c_werror_flag" 13567 || test ! -s conftest.err' 13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13569 (eval $ac_try) 2>&5 13570 ac_status=$? 13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13572 (exit $ac_status); }; } && 13573 { ac_try='test -s conftest$ac_exeext' 13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13575 (eval $ac_try) 2>&5 13576 ac_status=$? 13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13578 (exit $ac_status); }; }; then 13579 ac_cv_lib_dld_dld_link=yes 13580else 13581 echo "$as_me: failed program was:" >&5 13582sed 's/^/| /' conftest.$ac_ext >&5 13583 13584ac_cv_lib_dld_dld_link=no 13585fi 13586rm -f conftest.err conftest.$ac_objext \ 13587 conftest$ac_exeext conftest.$ac_ext 13588LIBS=$ac_check_lib_save_LIBS 13589fi 13590echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 13591echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 13592if test $ac_cv_lib_dld_dld_link = yes; then 13593 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 13594fi 13595 13596 13597fi 13598 13599 13600fi 13601 13602 13603fi 13604 13605 13606fi 13607 13608 13609fi 13610 13611 ;; 13612 esac 13613 13614 if test "x$lt_cv_dlopen" != xno; then 13615 enable_dlopen=yes 13616 else 13617 enable_dlopen=no 13618 fi 13619 13620 case $lt_cv_dlopen in 13621 dlopen) 13622 save_CPPFLAGS="$CPPFLAGS" 13623 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13624 13625 save_LDFLAGS="$LDFLAGS" 13626 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13627 13628 save_LIBS="$LIBS" 13629 LIBS="$lt_cv_dlopen_libs $LIBS" 13630 13631 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 13632echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 13633if test "${lt_cv_dlopen_self+set}" = set; then 13634 echo $ECHO_N "(cached) $ECHO_C" >&6 13635else 13636 if test "$cross_compiling" = yes; then : 13637 lt_cv_dlopen_self=cross 13638else 13639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13640 lt_status=$lt_dlunknown 13641 cat > conftest.$ac_ext <<EOF 13642#line 13642 "configure" 13643#include "confdefs.h" 13644 13645#if HAVE_DLFCN_H 13646#include <dlfcn.h> 13647#endif 13648 13649#include <stdio.h> 13650 13651#ifdef RTLD_GLOBAL 13652# define LT_DLGLOBAL RTLD_GLOBAL 13653#else 13654# ifdef DL_GLOBAL 13655# define LT_DLGLOBAL DL_GLOBAL 13656# else 13657# define LT_DLGLOBAL 0 13658# endif 13659#endif 13660 13661/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13662 find out it does not work in some platform. */ 13663#ifndef LT_DLLAZY_OR_NOW 13664# ifdef RTLD_LAZY 13665# define LT_DLLAZY_OR_NOW RTLD_LAZY 13666# else 13667# ifdef DL_LAZY 13668# define LT_DLLAZY_OR_NOW DL_LAZY 13669# else 13670# ifdef RTLD_NOW 13671# define LT_DLLAZY_OR_NOW RTLD_NOW 13672# else 13673# ifdef DL_NOW 13674# define LT_DLLAZY_OR_NOW DL_NOW 13675# else 13676# define LT_DLLAZY_OR_NOW 0 13677# endif 13678# endif 13679# endif 13680# endif 13681#endif 13682 13683#ifdef __cplusplus 13684extern "C" void exit (int); 13685#endif 13686 13687void fnord() { int i=42;} 13688int main () 13689{ 13690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13691 int status = $lt_dlunknown; 13692 13693 if (self) 13694 { 13695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13697 /* dlclose (self); */ 13698 } 13699 13700 exit (status); 13701} 13702EOF 13703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13704 (eval $ac_link) 2>&5 13705 ac_status=$? 13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13707 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13708 (./conftest; exit; ) >&5 2>/dev/null 13709 lt_status=$? 13710 case x$lt_status in 13711 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13712 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13713 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 13714 esac 13715 else : 13716 # compilation failed 13717 lt_cv_dlopen_self=no 13718 fi 13719fi 13720rm -fr conftest* 13721 13722 13723fi 13724echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 13725echo "${ECHO_T}$lt_cv_dlopen_self" >&6 13726 13727 if test "x$lt_cv_dlopen_self" = xyes; then 13728 LDFLAGS="$LDFLAGS $link_static_flag" 13729 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 13730echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 13731if test "${lt_cv_dlopen_self_static+set}" = set; then 13732 echo $ECHO_N "(cached) $ECHO_C" >&6 13733else 13734 if test "$cross_compiling" = yes; then : 13735 lt_cv_dlopen_self_static=cross 13736else 13737 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13738 lt_status=$lt_dlunknown 13739 cat > conftest.$ac_ext <<EOF 13740#line 13740 "configure" 13741#include "confdefs.h" 13742 13743#if HAVE_DLFCN_H 13744#include <dlfcn.h> 13745#endif 13746 13747#include <stdio.h> 13748 13749#ifdef RTLD_GLOBAL 13750# define LT_DLGLOBAL RTLD_GLOBAL 13751#else 13752# ifdef DL_GLOBAL 13753# define LT_DLGLOBAL DL_GLOBAL 13754# else 13755# define LT_DLGLOBAL 0 13756# endif 13757#endif 13758 13759/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13760 find out it does not work in some platform. */ 13761#ifndef LT_DLLAZY_OR_NOW 13762# ifdef RTLD_LAZY 13763# define LT_DLLAZY_OR_NOW RTLD_LAZY 13764# else 13765# ifdef DL_LAZY 13766# define LT_DLLAZY_OR_NOW DL_LAZY 13767# else 13768# ifdef RTLD_NOW 13769# define LT_DLLAZY_OR_NOW RTLD_NOW 13770# else 13771# ifdef DL_NOW 13772# define LT_DLLAZY_OR_NOW DL_NOW 13773# else 13774# define LT_DLLAZY_OR_NOW 0 13775# endif 13776# endif 13777# endif 13778# endif 13779#endif 13780 13781#ifdef __cplusplus 13782extern "C" void exit (int); 13783#endif 13784 13785void fnord() { int i=42;} 13786int main () 13787{ 13788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13789 int status = $lt_dlunknown; 13790 13791 if (self) 13792 { 13793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13795 /* dlclose (self); */ 13796 } 13797 13798 exit (status); 13799} 13800EOF 13801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13802 (eval $ac_link) 2>&5 13803 ac_status=$? 13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13805 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13806 (./conftest; exit; ) >&5 2>/dev/null 13807 lt_status=$? 13808 case x$lt_status in 13809 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13810 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13811 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13812 esac 13813 else : 13814 # compilation failed 13815 lt_cv_dlopen_self_static=no 13816 fi 13817fi 13818rm -fr conftest* 13819 13820 13821fi 13822echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13823echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13824 fi 13825 13826 CPPFLAGS="$save_CPPFLAGS" 13827 LDFLAGS="$save_LDFLAGS" 13828 LIBS="$save_LIBS" 13829 ;; 13830 esac 13831 13832 case $lt_cv_dlopen_self in 13833 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13834 *) enable_dlopen_self=unknown ;; 13835 esac 13836 13837 case $lt_cv_dlopen_self_static in 13838 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13839 *) enable_dlopen_self_static=unknown ;; 13840 esac 13841fi 13842 13843 13844# Report which librarie types wil actually be built 13845echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13846echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13847echo "$as_me:$LINENO: result: $can_build_shared" >&5 13848echo "${ECHO_T}$can_build_shared" >&6 13849 13850echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13851echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13852test "$can_build_shared" = "no" && enable_shared=no 13853 13854# On AIX, shared libraries and static libraries use the same namespace, and 13855# are all built from PIC. 13856case $host_os in 13857aix3*) 13858 test "$enable_shared" = yes && enable_static=no 13859 if test -n "$RANLIB"; then 13860 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13861 postinstall_cmds='$RANLIB $lib' 13862 fi 13863 ;; 13864 13865aix4* | aix5*) 13866 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13867 test "$enable_shared" = yes && enable_static=no 13868 fi 13869 ;; 13870esac 13871echo "$as_me:$LINENO: result: $enable_shared" >&5 13872echo "${ECHO_T}$enable_shared" >&6 13873 13874echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13875echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13876# Make sure either enable_shared or enable_static is yes. 13877test "$enable_shared" = yes || enable_static=yes 13878echo "$as_me:$LINENO: result: $enable_static" >&5 13879echo "${ECHO_T}$enable_static" >&6 13880 13881# The else clause should only fire when bootstrapping the 13882# libtool distribution, otherwise you forgot to ship ltmain.sh 13883# with your package, and you will get complaints that there are 13884# no rules to generate ltmain.sh. 13885if test -f "$ltmain"; then 13886 # See if we are running on zsh, and set the options which allow our commands through 13887 # without removal of \ escapes. 13888 if test -n "${ZSH_VERSION+set}" ; then 13889 setopt NO_GLOB_SUBST 13890 fi 13891 # Now quote all the things that may contain metacharacters while being 13892 # careful not to overquote the AC_SUBSTed values. We take copies of the 13893 # variables and quote the copies for generation of the libtool script. 13894 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13895 SED SHELL STRIP \ 13896 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13897 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13898 deplibs_check_method reload_flag reload_cmds need_locks \ 13899 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13900 lt_cv_sys_global_symbol_to_c_name_address \ 13901 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13902 old_postinstall_cmds old_postuninstall_cmds \ 13903 compiler \ 13904 CC \ 13905 LD \ 13906 lt_prog_compiler_wl \ 13907 lt_prog_compiler_pic \ 13908 lt_prog_compiler_static \ 13909 lt_prog_compiler_no_builtin_flag \ 13910 export_dynamic_flag_spec \ 13911 thread_safe_flag_spec \ 13912 whole_archive_flag_spec \ 13913 enable_shared_with_static_runtimes \ 13914 old_archive_cmds \ 13915 old_archive_from_new_cmds \ 13916 predep_objects \ 13917 postdep_objects \ 13918 predeps \ 13919 postdeps \ 13920 compiler_lib_search_path \ 13921 archive_cmds \ 13922 archive_expsym_cmds \ 13923 postinstall_cmds \ 13924 postuninstall_cmds \ 13925 old_archive_from_expsyms_cmds \ 13926 allow_undefined_flag \ 13927 no_undefined_flag \ 13928 export_symbols_cmds \ 13929 hardcode_libdir_flag_spec \ 13930 hardcode_libdir_flag_spec_ld \ 13931 hardcode_libdir_separator \ 13932 hardcode_automatic \ 13933 module_cmds \ 13934 module_expsym_cmds \ 13935 lt_cv_prog_compiler_c_o \ 13936 exclude_expsyms \ 13937 include_expsyms; do 13938 13939 case $var in 13940 old_archive_cmds | \ 13941 old_archive_from_new_cmds | \ 13942 archive_cmds | \ 13943 archive_expsym_cmds | \ 13944 module_cmds | \ 13945 module_expsym_cmds | \ 13946 old_archive_from_expsyms_cmds | \ 13947 export_symbols_cmds | \ 13948 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13949 postinstall_cmds | postuninstall_cmds | \ 13950 old_postinstall_cmds | old_postuninstall_cmds | \ 13951 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13952 # Double-quote double-evaled strings. 13953 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13954 ;; 13955 *) 13956 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13957 ;; 13958 esac 13959 done 13960 13961 case $lt_echo in 13962 *'\$0 --fallback-echo"') 13963 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13964 ;; 13965 esac 13966 13967cfgfile="${ofile}T" 13968 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 13969 $rm -f "$cfgfile" 13970 { echo "$as_me:$LINENO: creating $ofile" >&5 13971echo "$as_me: creating $ofile" >&6;} 13972 13973 cat <<__EOF__ >> "$cfgfile" 13974#! $SHELL 13975 13976# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13977# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 13978# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13979# 13980# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 13981# Free Software Foundation, Inc. 13982# 13983# This file is part of GNU Libtool: 13984# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 13985# 13986# This program is free software; you can redistribute it and/or modify 13987# it under the terms of the GNU General Public License as published by 13988# the Free Software Foundation; either version 2 of the License, or 13989# (at your option) any later version. 13990# 13991# This program is distributed in the hope that it will be useful, but 13992# WITHOUT ANY WARRANTY; without even the implied warranty of 13993# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13994# General Public License for more details. 13995# 13996# You should have received a copy of the GNU General Public License 13997# along with this program; if not, write to the Free Software 13998# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13999# 14000# As a special exception to the GNU General Public License, if you 14001# distribute this file as part of a program that contains a 14002# configuration script generated by Autoconf, you may include it under 14003# the same distribution terms that you use for the rest of that program. 14004 14005# A sed program that does not truncate output. 14006SED=$lt_SED 14007 14008# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14009Xsed="$SED -e 1s/^X//" 14010 14011# The HP-UX ksh and POSIX shell print the target directory to stdout 14012# if CDPATH is set. 14013(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14014 14015# The names of the tagged configurations supported by this script. 14016available_tags= 14017 14018# ### BEGIN LIBTOOL CONFIG 14019 14020# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14021 14022# Shell to use when invoking shell scripts. 14023SHELL=$lt_SHELL 14024 14025# Whether or not to build shared libraries. 14026build_libtool_libs=$enable_shared 14027 14028# Whether or not to build static libraries. 14029build_old_libs=$enable_static 14030 14031# Whether or not to add -lc for building shared libraries. 14032build_libtool_need_lc=$archive_cmds_need_lc 14033 14034# Whether or not to disallow shared libs when runtime libs are static 14035allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14036 14037# Whether or not to optimize for fast installation. 14038fast_install=$enable_fast_install 14039 14040# The host system. 14041host_alias=$host_alias 14042host=$host 14043host_os=$host_os 14044 14045# The build system. 14046build_alias=$build_alias 14047build=$build 14048build_os=$build_os 14049 14050# An echo program that does not interpret backslashes. 14051echo=$lt_echo 14052 14053# The archiver. 14054AR=$lt_AR 14055AR_FLAGS=$lt_AR_FLAGS 14056 14057# A C compiler. 14058LTCC=$lt_LTCC 14059 14060# A language-specific compiler. 14061CC=$lt_compiler 14062 14063# Is the compiler the GNU C compiler? 14064with_gcc=$GCC 14065 14066# An ERE matcher. 14067EGREP=$lt_EGREP 14068 14069# The linker used to build libraries. 14070LD=$lt_LD 14071 14072# Whether we need hard or soft links. 14073LN_S=$lt_LN_S 14074 14075# A BSD-compatible nm program. 14076NM=$lt_NM 14077 14078# A symbol stripping program 14079STRIP=$lt_STRIP 14080 14081# Used to examine libraries when file_magic_cmd begins "file" 14082MAGIC_CMD=$MAGIC_CMD 14083 14084# Used on cygwin: DLL creation program. 14085DLLTOOL="$DLLTOOL" 14086 14087# Used on cygwin: object dumper. 14088OBJDUMP="$OBJDUMP" 14089 14090# Used on cygwin: assembler. 14091AS="$AS" 14092 14093# The name of the directory that contains temporary libtool files. 14094objdir=$objdir 14095 14096# How to create reloadable object files. 14097reload_flag=$lt_reload_flag 14098reload_cmds=$lt_reload_cmds 14099 14100# How to pass a linker flag through the compiler. 14101wl=$lt_lt_prog_compiler_wl 14102 14103# Object file suffix (normally "o"). 14104objext="$ac_objext" 14105 14106# Old archive suffix (normally "a"). 14107libext="$libext" 14108 14109# Shared library suffix (normally ".so"). 14110shrext_cmds='$shrext_cmds' 14111 14112# Executable file suffix (normally ""). 14113exeext="$exeext" 14114 14115# Additional compiler flags for building library objects. 14116pic_flag=$lt_lt_prog_compiler_pic 14117pic_mode=$pic_mode 14118 14119# What is the maximum length of a command? 14120max_cmd_len=$lt_cv_sys_max_cmd_len 14121 14122# Does compiler simultaneously support -c and -o options? 14123compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14124 14125# Must we lock files when doing compilation? 14126need_locks=$lt_need_locks 14127 14128# Do we need the lib prefix for modules? 14129need_lib_prefix=$need_lib_prefix 14130 14131# Do we need a version for libraries? 14132need_version=$need_version 14133 14134# Whether dlopen is supported. 14135dlopen_support=$enable_dlopen 14136 14137# Whether dlopen of programs is supported. 14138dlopen_self=$enable_dlopen_self 14139 14140# Whether dlopen of statically linked programs is supported. 14141dlopen_self_static=$enable_dlopen_self_static 14142 14143# Compiler flag to prevent dynamic linking. 14144link_static_flag=$lt_lt_prog_compiler_static 14145 14146# Compiler flag to turn off builtin functions. 14147no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14148 14149# Compiler flag to allow reflexive dlopens. 14150export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14151 14152# Compiler flag to generate shared objects directly from archives. 14153whole_archive_flag_spec=$lt_whole_archive_flag_spec 14154 14155# Compiler flag to generate thread-safe objects. 14156thread_safe_flag_spec=$lt_thread_safe_flag_spec 14157 14158# Library versioning type. 14159version_type=$version_type 14160 14161# Format of library name prefix. 14162libname_spec=$lt_libname_spec 14163 14164# List of archive names. First name is the real one, the rest are links. 14165# The last name is the one that the linker finds with -lNAME. 14166library_names_spec=$lt_library_names_spec 14167 14168# The coded name of the library, if different from the real name. 14169soname_spec=$lt_soname_spec 14170 14171# Commands used to build and install an old-style archive. 14172RANLIB=$lt_RANLIB 14173old_archive_cmds=$lt_old_archive_cmds 14174old_postinstall_cmds=$lt_old_postinstall_cmds 14175old_postuninstall_cmds=$lt_old_postuninstall_cmds 14176 14177# Create an old-style archive from a shared archive. 14178old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14179 14180# Create a temporary old-style archive to link instead of a shared archive. 14181old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14182 14183# Commands used to build and install a shared archive. 14184archive_cmds=$lt_archive_cmds 14185archive_expsym_cmds=$lt_archive_expsym_cmds 14186postinstall_cmds=$lt_postinstall_cmds 14187postuninstall_cmds=$lt_postuninstall_cmds 14188 14189# Commands used to build a loadable module (assumed same as above if empty) 14190module_cmds=$lt_module_cmds 14191module_expsym_cmds=$lt_module_expsym_cmds 14192 14193# Commands to strip libraries. 14194old_striplib=$lt_old_striplib 14195striplib=$lt_striplib 14196 14197# Dependencies to place before the objects being linked to create a 14198# shared library. 14199predep_objects=$lt_predep_objects 14200 14201# Dependencies to place after the objects being linked to create a 14202# shared library. 14203postdep_objects=$lt_postdep_objects 14204 14205# Dependencies to place before the objects being linked to create a 14206# shared library. 14207predeps=$lt_predeps 14208 14209# Dependencies to place after the objects being linked to create a 14210# shared library. 14211postdeps=$lt_postdeps 14212 14213# The library search path used internally by the compiler when linking 14214# a shared library. 14215compiler_lib_search_path=$lt_compiler_lib_search_path 14216 14217# Method to check whether dependent libraries are shared objects. 14218deplibs_check_method=$lt_deplibs_check_method 14219 14220# Command to use when deplibs_check_method == file_magic. 14221file_magic_cmd=$lt_file_magic_cmd 14222 14223# Flag that allows shared libraries with undefined symbols to be built. 14224allow_undefined_flag=$lt_allow_undefined_flag 14225 14226# Flag that forces no undefined symbols. 14227no_undefined_flag=$lt_no_undefined_flag 14228 14229# Commands used to finish a libtool library installation in a directory. 14230finish_cmds=$lt_finish_cmds 14231 14232# Same as above, but a single script fragment to be evaled but not shown. 14233finish_eval=$lt_finish_eval 14234 14235# Take the output of nm and produce a listing of raw symbols and C names. 14236global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14237 14238# Transform the output of nm in a proper C declaration 14239global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14240 14241# Transform the output of nm in a C name address pair 14242global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14243 14244# This is the shared library runtime path variable. 14245runpath_var=$runpath_var 14246 14247# This is the shared library path variable. 14248shlibpath_var=$shlibpath_var 14249 14250# Is shlibpath searched before the hard-coded library search path? 14251shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14252 14253# How to hardcode a shared library path into an executable. 14254hardcode_action=$hardcode_action 14255 14256# Whether we should hardcode library paths into libraries. 14257hardcode_into_libs=$hardcode_into_libs 14258 14259# Flag to hardcode \$libdir into a binary during linking. 14260# This must work even if \$libdir does not exist. 14261hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14262 14263# If ld is used when linking, flag to hardcode \$libdir into 14264# a binary during linking. This must work even if \$libdir does 14265# not exist. 14266hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14267 14268# Whether we need a single -rpath flag with a separated argument. 14269hardcode_libdir_separator=$lt_hardcode_libdir_separator 14270 14271# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14272# resulting binary. 14273hardcode_direct=$hardcode_direct 14274 14275# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14276# resulting binary. 14277hardcode_minus_L=$hardcode_minus_L 14278 14279# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14280# the resulting binary. 14281hardcode_shlibpath_var=$hardcode_shlibpath_var 14282 14283# Set to yes if building a shared library automatically hardcodes DIR into the library 14284# and all subsequent libraries and executables linked against it. 14285hardcode_automatic=$hardcode_automatic 14286 14287# Variables whose values should be saved in libtool wrapper scripts and 14288# restored at relink time. 14289variables_saved_for_relink="$variables_saved_for_relink" 14290 14291# Whether libtool must link a program against all its dependency libraries. 14292link_all_deplibs=$link_all_deplibs 14293 14294# Compile-time system search path for libraries 14295sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14296 14297# Run-time system search path for libraries 14298sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14299 14300# Fix the shell variable \$srcfile for the compiler. 14301fix_srcfile_path="$fix_srcfile_path" 14302 14303# Set to yes if exported symbols are required. 14304always_export_symbols=$always_export_symbols 14305 14306# The commands to list exported symbols. 14307export_symbols_cmds=$lt_export_symbols_cmds 14308 14309# The commands to extract the exported symbol list from a shared archive. 14310extract_expsyms_cmds=$lt_extract_expsyms_cmds 14311 14312# Symbols that should not be listed in the preloaded symbols. 14313exclude_expsyms=$lt_exclude_expsyms 14314 14315# Symbols that must always be exported. 14316include_expsyms=$lt_include_expsyms 14317 14318# ### END LIBTOOL CONFIG 14319 14320__EOF__ 14321 14322 14323 case $host_os in 14324 aix3*) 14325 cat <<\EOF >> "$cfgfile" 14326 14327# AIX sometimes has problems with the GCC collect2 program. For some 14328# reason, if we set the COLLECT_NAMES environment variable, the problems 14329# vanish in a puff of smoke. 14330if test "X${COLLECT_NAMES+set}" != Xset; then 14331 COLLECT_NAMES= 14332 export COLLECT_NAMES 14333fi 14334EOF 14335 ;; 14336 esac 14337 14338 # We use sed instead of cat because bash on DJGPP gets confused if 14339 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14340 # text mode, it properly converts lines to CR/LF. This bash problem 14341 # is reportedly fixed, but why not run on old versions too? 14342 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 14343 14344 mv -f "$cfgfile" "$ofile" || \ 14345 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14346 chmod +x "$ofile" 14347 14348else 14349 # If there is no Makefile yet, we rely on a make rule to execute 14350 # `config.status --recheck' to rerun these tests and create the 14351 # libtool script then. 14352 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14353 if test -f "$ltmain_in"; then 14354 test -f Makefile && make "$ltmain" 14355 fi 14356fi 14357 14358 14359ac_ext=c 14360ac_cpp='$CPP $CPPFLAGS' 14361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14363ac_compiler_gnu=$ac_cv_c_compiler_gnu 14364 14365CC="$lt_save_CC" 14366 14367 14368# Check whether --with-tags or --without-tags was given. 14369if test "${with_tags+set}" = set; then 14370 withval="$with_tags" 14371 tagnames="$withval" 14372fi; 14373 14374if test -f "$ltmain" && test -n "$tagnames"; then 14375 if test ! -f "${ofile}"; then 14376 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 14377echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 14378 fi 14379 14380 if test -z "$LTCC"; then 14381 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 14382 if test -z "$LTCC"; then 14383 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 14384echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 14385 else 14386 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 14387echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 14388 fi 14389 fi 14390 14391 # Extract list of available tagged configurations in $ofile. 14392 # Note that this assumes the entire list is on one line. 14393 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 14394 14395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14396 for tagname in $tagnames; do 14397 IFS="$lt_save_ifs" 14398 # Check whether tagname contains only valid characters 14399 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 14400 "") ;; 14401 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 14402echo "$as_me: error: invalid tag name: $tagname" >&2;} 14403 { (exit 1); exit 1; }; } 14404 ;; 14405 esac 14406 14407 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 14408 then 14409 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 14410echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 14411 { (exit 1); exit 1; }; } 14412 fi 14413 14414 # Update the list of available tags. 14415 if test -n "$tagname"; then 14416 echo appending configuration tag \"$tagname\" to $ofile 14417 14418 case $tagname in 14419 CXX) 14420 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 14421 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 14422 (test "X$CXX" != "Xg++"))) ; then 14423 ac_ext=cc 14424ac_cpp='$CXXCPP $CPPFLAGS' 14425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14428 14429 14430 14431 14432archive_cmds_need_lc_CXX=no 14433allow_undefined_flag_CXX= 14434always_export_symbols_CXX=no 14435archive_expsym_cmds_CXX= 14436export_dynamic_flag_spec_CXX= 14437hardcode_direct_CXX=no 14438hardcode_libdir_flag_spec_CXX= 14439hardcode_libdir_flag_spec_ld_CXX= 14440hardcode_libdir_separator_CXX= 14441hardcode_minus_L_CXX=no 14442hardcode_automatic_CXX=no 14443module_cmds_CXX= 14444module_expsym_cmds_CXX= 14445link_all_deplibs_CXX=unknown 14446old_archive_cmds_CXX=$old_archive_cmds 14447no_undefined_flag_CXX= 14448whole_archive_flag_spec_CXX= 14449enable_shared_with_static_runtimes_CXX=no 14450 14451# Dependencies to place before and after the object being linked: 14452predep_objects_CXX= 14453postdep_objects_CXX= 14454predeps_CXX= 14455postdeps_CXX= 14456compiler_lib_search_path_CXX= 14457 14458# Source file extension for C++ test sources. 14459ac_ext=cpp 14460 14461# Object file extension for compiled C++ test sources. 14462objext=o 14463objext_CXX=$objext 14464 14465# Code to be used in simple compile tests 14466lt_simple_compile_test_code="int some_variable = 0;\n" 14467 14468# Code to be used in simple link tests 14469lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 14470 14471# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14472 14473# If no C compiler was specified, use CC. 14474LTCC=${LTCC-"$CC"} 14475 14476# Allow CC to be a program name with arguments. 14477compiler=$CC 14478 14479 14480# save warnings/boilerplate of simple test code 14481ac_outfile=conftest.$ac_objext 14482printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14483eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 14484_lt_compiler_boilerplate=`cat conftest.err` 14485$rm conftest* 14486 14487ac_outfile=conftest.$ac_objext 14488printf "$lt_simple_link_test_code" >conftest.$ac_ext 14489eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 14490_lt_linker_boilerplate=`cat conftest.err` 14491$rm conftest* 14492 14493 14494# Allow CC to be a program name with arguments. 14495lt_save_CC=$CC 14496lt_save_LD=$LD 14497lt_save_GCC=$GCC 14498GCC=$GXX 14499lt_save_with_gnu_ld=$with_gnu_ld 14500lt_save_path_LD=$lt_cv_path_LD 14501if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14502 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14503else 14504 unset lt_cv_prog_gnu_ld 14505fi 14506if test -n "${lt_cv_path_LDCXX+set}"; then 14507 lt_cv_path_LD=$lt_cv_path_LDCXX 14508else 14509 unset lt_cv_path_LD 14510fi 14511test -z "${LDCXX+set}" || LD=$LDCXX 14512CC=${CXX-"c++"} 14513compiler=$CC 14514compiler_CXX=$CC 14515for cc_temp in $compiler""; do 14516 case $cc_temp in 14517 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14518 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14519 \-*) ;; 14520 *) break;; 14521 esac 14522done 14523cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14524 14525 14526# We don't want -fno-exception wen compiling C++ code, so set the 14527# no_builtin_flag separately 14528if test "$GXX" = yes; then 14529 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14530else 14531 lt_prog_compiler_no_builtin_flag_CXX= 14532fi 14533 14534if test "$GXX" = yes; then 14535 # Set up default GNU C++ configuration 14536 14537 14538# Check whether --with-gnu-ld or --without-gnu-ld was given. 14539if test "${with_gnu_ld+set}" = set; then 14540 withval="$with_gnu_ld" 14541 test "$withval" = no || with_gnu_ld=yes 14542else 14543 with_gnu_ld=no 14544fi; 14545ac_prog=ld 14546if test "$GCC" = yes; then 14547 # Check if gcc -print-prog-name=ld gives a path. 14548 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 14549echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 14550 case $host in 14551 *-*-mingw*) 14552 # gcc leaves a trailing carriage return which upsets mingw 14553 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14554 *) 14555 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14556 esac 14557 case $ac_prog in 14558 # Accept absolute paths. 14559 [\\/]* | ?:[\\/]*) 14560 re_direlt='/[^/][^/]*/\.\./' 14561 # Canonicalize the pathname of ld 14562 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 14563 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 14564 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 14565 done 14566 test -z "$LD" && LD="$ac_prog" 14567 ;; 14568 "") 14569 # If it fails, then pretend we aren't using GCC. 14570 ac_prog=ld 14571 ;; 14572 *) 14573 # If it is relative, then search for the first ld in PATH. 14574 with_gnu_ld=unknown 14575 ;; 14576 esac 14577elif test "$with_gnu_ld" = yes; then 14578 echo "$as_me:$LINENO: checking for GNU ld" >&5 14579echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 14580else 14581 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 14582echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 14583fi 14584if test "${lt_cv_path_LD+set}" = set; then 14585 echo $ECHO_N "(cached) $ECHO_C" >&6 14586else 14587 if test -z "$LD"; then 14588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14589 for ac_dir in $PATH; do 14590 IFS="$lt_save_ifs" 14591 test -z "$ac_dir" && ac_dir=. 14592 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14593 lt_cv_path_LD="$ac_dir/$ac_prog" 14594 # Check to see if the program is GNU ld. I'd rather use --version, 14595 # but apparently some variants of GNU ld only accept -v. 14596 # Break only if it was the GNU/non-GNU ld that we prefer. 14597 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14598 *GNU* | *'with BFD'*) 14599 test "$with_gnu_ld" != no && break 14600 ;; 14601 *) 14602 test "$with_gnu_ld" != yes && break 14603 ;; 14604 esac 14605 fi 14606 done 14607 IFS="$lt_save_ifs" 14608else 14609 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14610fi 14611fi 14612 14613LD="$lt_cv_path_LD" 14614if test -n "$LD"; then 14615 echo "$as_me:$LINENO: result: $LD" >&5 14616echo "${ECHO_T}$LD" >&6 14617else 14618 echo "$as_me:$LINENO: result: no" >&5 14619echo "${ECHO_T}no" >&6 14620fi 14621test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 14622echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 14623 { (exit 1); exit 1; }; } 14624echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 14625echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 14626if test "${lt_cv_prog_gnu_ld+set}" = set; then 14627 echo $ECHO_N "(cached) $ECHO_C" >&6 14628else 14629 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14630case `$LD -v 2>&1 </dev/null` in 14631*GNU* | *'with BFD'*) 14632 lt_cv_prog_gnu_ld=yes 14633 ;; 14634*) 14635 lt_cv_prog_gnu_ld=no 14636 ;; 14637esac 14638fi 14639echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 14640echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 14641with_gnu_ld=$lt_cv_prog_gnu_ld 14642 14643 14644 14645 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14646 # archiving commands below assume that GNU ld is being used. 14647 if test "$with_gnu_ld" = yes; then 14648 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14649 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' 14650 14651 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14652 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14653 14654 # If archive_cmds runs LD, not CC, wlarc should be empty 14655 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14656 # investigate it a little bit more. (MM) 14657 wlarc='${wl}' 14658 14659 # ancient GNU ld didn't support --whole-archive et. al. 14660 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 14661 grep 'no-whole-archive' > /dev/null; then 14662 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14663 else 14664 whole_archive_flag_spec_CXX= 14665 fi 14666 else 14667 with_gnu_ld=no 14668 wlarc= 14669 14670 # A generic and very simple default shared library creation 14671 # command for GNU C++ for the case where it uses the native 14672 # linker, instead of GNU ld. If possible, this setting should 14673 # overridden to take advantage of the native linker features on 14674 # the platform it is being used on. 14675 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14676 fi 14677 14678 # Commands to make compiler produce verbose output that lists 14679 # what "hidden" libraries, object files and flags are used when 14680 # linking a shared library. 14681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 14682 14683else 14684 GXX=no 14685 with_gnu_ld=no 14686 wlarc= 14687fi 14688 14689# PORTME: fill in a description of your system's C++ link characteristics 14690echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14691echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14692ld_shlibs_CXX=yes 14693case $host_os in 14694 aix3*) 14695 # FIXME: insert proper C++ library support 14696 ld_shlibs_CXX=no 14697 ;; 14698 aix4* | aix5*) 14699 if test "$host_cpu" = ia64; then 14700 # On IA64, the linker does run time linking by default, so we don't 14701 # have to do anything special. 14702 aix_use_runtimelinking=no 14703 exp_sym_flag='-Bexport' 14704 no_entry_flag="" 14705 else 14706 aix_use_runtimelinking=no 14707 14708 # Test if we are trying to use run time linking or normal 14709 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14710 # need to do runtime linking. 14711 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14712 for ld_flag in $LDFLAGS; do 14713 case $ld_flag in 14714 *-brtl*) 14715 aix_use_runtimelinking=yes 14716 break 14717 ;; 14718 esac 14719 done 14720 esac 14721 14722 exp_sym_flag='-bexport' 14723 no_entry_flag='-bnoentry' 14724 fi 14725 14726 # When large executables or shared objects are built, AIX ld can 14727 # have problems creating the table of contents. If linking a library 14728 # or program results in "error TOC overflow" add -mminimal-toc to 14729 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14730 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14731 14732 archive_cmds_CXX='' 14733 hardcode_direct_CXX=yes 14734 hardcode_libdir_separator_CXX=':' 14735 link_all_deplibs_CXX=yes 14736 14737 if test "$GXX" = yes; then 14738 case $host_os in aix4.[012]|aix4.[012].*) 14739 # We only want to do this on AIX 4.2 and lower, the check 14740 # below for broken collect2 doesn't work under 4.3+ 14741 collect2name=`${CC} -print-prog-name=collect2` 14742 if test -f "$collect2name" && \ 14743 strings "$collect2name" | grep resolve_lib_name >/dev/null 14744 then 14745 # We have reworked collect2 14746 hardcode_direct_CXX=yes 14747 else 14748 # We have old collect2 14749 hardcode_direct_CXX=unsupported 14750 # It fails to find uninstalled libraries when the uninstalled 14751 # path is not listed in the libpath. Setting hardcode_minus_L 14752 # to unsupported forces relinking 14753 hardcode_minus_L_CXX=yes 14754 hardcode_libdir_flag_spec_CXX='-L$libdir' 14755 hardcode_libdir_separator_CXX= 14756 fi 14757 esac 14758 shared_flag='-shared' 14759 if test "$aix_use_runtimelinking" = yes; then 14760 shared_flag="$shared_flag "'${wl}-G' 14761 fi 14762 else 14763 # not using gcc 14764 if test "$host_cpu" = ia64; then 14765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14766 # chokes on -Wl,-G. The following line is correct: 14767 shared_flag='-G' 14768 else 14769 if test "$aix_use_runtimelinking" = yes; then 14770 shared_flag='${wl}-G' 14771 else 14772 shared_flag='${wl}-bM:SRE' 14773 fi 14774 fi 14775 fi 14776 14777 # It seems that -bexpall does not export symbols beginning with 14778 # underscore (_), so it is better to generate a list of symbols to export. 14779 always_export_symbols_CXX=yes 14780 if test "$aix_use_runtimelinking" = yes; then 14781 # Warning - without using the other runtime loading flags (-brtl), 14782 # -berok will link without error, but may produce a broken library. 14783 allow_undefined_flag_CXX='-berok' 14784 # Determine the default libpath from the value encoded in an empty executable. 14785 cat >conftest.$ac_ext <<_ACEOF 14786/* confdefs.h. */ 14787_ACEOF 14788cat confdefs.h >>conftest.$ac_ext 14789cat >>conftest.$ac_ext <<_ACEOF 14790/* end confdefs.h. */ 14791 14792int 14793main () 14794{ 14795 14796 ; 14797 return 0; 14798} 14799_ACEOF 14800rm -f conftest.$ac_objext conftest$ac_exeext 14801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14802 (eval $ac_link) 2>conftest.er1 14803 ac_status=$? 14804 grep -v '^ *+' conftest.er1 >conftest.err 14805 rm -f conftest.er1 14806 cat conftest.err >&5 14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14808 (exit $ac_status); } && 14809 { ac_try='test -z "$ac_cxx_werror_flag" 14810 || test ! -s conftest.err' 14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14812 (eval $ac_try) 2>&5 14813 ac_status=$? 14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14815 (exit $ac_status); }; } && 14816 { ac_try='test -s conftest$ac_exeext' 14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14818 (eval $ac_try) 2>&5 14819 ac_status=$? 14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14821 (exit $ac_status); }; }; then 14822 14823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14824}'` 14825# Check for a 64-bit object if we didn't find anything. 14826if 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; } 14827}'`; fi 14828else 14829 echo "$as_me: failed program was:" >&5 14830sed 's/^/| /' conftest.$ac_ext >&5 14831 14832fi 14833rm -f conftest.err conftest.$ac_objext \ 14834 conftest$ac_exeext conftest.$ac_ext 14835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14836 14837 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14838 14839 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" 14840 else 14841 if test "$host_cpu" = ia64; then 14842 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 14843 allow_undefined_flag_CXX="-z nodefs" 14844 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" 14845 else 14846 # Determine the default libpath from the value encoded in an empty executable. 14847 cat >conftest.$ac_ext <<_ACEOF 14848/* confdefs.h. */ 14849_ACEOF 14850cat confdefs.h >>conftest.$ac_ext 14851cat >>conftest.$ac_ext <<_ACEOF 14852/* end confdefs.h. */ 14853 14854int 14855main () 14856{ 14857 14858 ; 14859 return 0; 14860} 14861_ACEOF 14862rm -f conftest.$ac_objext conftest$ac_exeext 14863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14864 (eval $ac_link) 2>conftest.er1 14865 ac_status=$? 14866 grep -v '^ *+' conftest.er1 >conftest.err 14867 rm -f conftest.er1 14868 cat conftest.err >&5 14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14870 (exit $ac_status); } && 14871 { ac_try='test -z "$ac_cxx_werror_flag" 14872 || test ! -s conftest.err' 14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14874 (eval $ac_try) 2>&5 14875 ac_status=$? 14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14877 (exit $ac_status); }; } && 14878 { ac_try='test -s conftest$ac_exeext' 14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14880 (eval $ac_try) 2>&5 14881 ac_status=$? 14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14883 (exit $ac_status); }; }; then 14884 14885aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14886}'` 14887# Check for a 64-bit object if we didn't find anything. 14888if 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; } 14889}'`; fi 14890else 14891 echo "$as_me: failed program was:" >&5 14892sed 's/^/| /' conftest.$ac_ext >&5 14893 14894fi 14895rm -f conftest.err conftest.$ac_objext \ 14896 conftest$ac_exeext conftest.$ac_ext 14897if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14898 14899 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14900 # Warning - without using the other run time loading flags, 14901 # -berok will link without error, but may produce a broken library. 14902 no_undefined_flag_CXX=' ${wl}-bernotok' 14903 allow_undefined_flag_CXX=' ${wl}-berok' 14904 # -bexpall does not export symbols beginning with underscore (_) 14905 always_export_symbols_CXX=yes 14906 # Exported symbols can be pulled into shared objects from archives 14907 whole_archive_flag_spec_CXX=' ' 14908 archive_cmds_need_lc_CXX=yes 14909 # This is similar to how AIX traditionally builds its shared libraries. 14910 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' 14911 fi 14912 fi 14913 ;; 14914 chorus*) 14915 case $cc_basename in 14916 *) 14917 # FIXME: insert proper C++ library support 14918 ld_shlibs_CXX=no 14919 ;; 14920 esac 14921 ;; 14922 14923 14924 cygwin* | mingw* | pw32*) 14925 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14926 # as there is no search path for DLLs. 14927 hardcode_libdir_flag_spec_CXX='-L$libdir' 14928 allow_undefined_flag_CXX=unsupported 14929 always_export_symbols_CXX=no 14930 enable_shared_with_static_runtimes_CXX=yes 14931 14932 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14933 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' 14934 # If the export-symbols file already is a .def file (1st line 14935 # is EXPORTS), use it as is; otherwise, prepend... 14936 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14937 cp $export_symbols $output_objdir/$soname.def; 14938 else 14939 echo EXPORTS > $output_objdir/$soname.def; 14940 cat $export_symbols >> $output_objdir/$soname.def; 14941 fi~ 14942 $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' 14943 else 14944 ld_shlibs_CXX=no 14945 fi 14946 ;; 14947 darwin* | rhapsody*) 14948 case $host_os in 14949 rhapsody* | darwin1.[012]) 14950 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 14951 ;; 14952 *) # Darwin 1.3 on 14953 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14954 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14955 else 14956 case ${MACOSX_DEPLOYMENT_TARGET} in 14957 10.[012]) 14958 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14959 ;; 14960 10.*) 14961 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 14962 ;; 14963 esac 14964 fi 14965 ;; 14966 esac 14967 archive_cmds_need_lc_CXX=no 14968 hardcode_direct_CXX=no 14969 hardcode_automatic_CXX=yes 14970 hardcode_shlibpath_var_CXX=unsupported 14971 whole_archive_flag_spec_CXX='' 14972 link_all_deplibs_CXX=yes 14973 14974 if test "$GXX" = yes ; then 14975 lt_int_apple_cc_single_mod=no 14976 output_verbose_link_cmd='echo' 14977 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 14978 lt_int_apple_cc_single_mod=yes 14979 fi 14980 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14981 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14982 else 14983 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14984 fi 14985 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14986 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14987 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14988 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}' 14989 else 14990 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14991 fi 14992 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14993 else 14994 case $cc_basename in 14995 xlc*) 14996 output_verbose_link_cmd='echo' 14997 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14998 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15000 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15001 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15002 ;; 15003 *) 15004 ld_shlibs_CXX=no 15005 ;; 15006 esac 15007 fi 15008 ;; 15009 15010 dgux*) 15011 case $cc_basename in 15012 ec++*) 15013 # FIXME: insert proper C++ library support 15014 ld_shlibs_CXX=no 15015 ;; 15016 ghcx*) 15017 # Green Hills C++ Compiler 15018 # FIXME: insert proper C++ library support 15019 ld_shlibs_CXX=no 15020 ;; 15021 *) 15022 # FIXME: insert proper C++ library support 15023 ld_shlibs_CXX=no 15024 ;; 15025 esac 15026 ;; 15027 freebsd[12]*) 15028 # C++ shared libraries reported to be fairly broken before switch to ELF 15029 ld_shlibs_CXX=no 15030 ;; 15031 freebsd-elf*) 15032 archive_cmds_need_lc_CXX=no 15033 ;; 15034 freebsd* | kfreebsd*-gnu | dragonfly*) 15035 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15036 # conventions 15037 ld_shlibs_CXX=yes 15038 ;; 15039 gnu*) 15040 ;; 15041 hpux9*) 15042 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15043 hardcode_libdir_separator_CXX=: 15044 export_dynamic_flag_spec_CXX='${wl}-E' 15045 hardcode_direct_CXX=yes 15046 hardcode_minus_L_CXX=yes # Not in the search PATH, 15047 # but as the default 15048 # location of the library. 15049 15050 case $cc_basename in 15051 CC*) 15052 # FIXME: insert proper C++ library support 15053 ld_shlibs_CXX=no 15054 ;; 15055 aCC*) 15056 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' 15057 # Commands to make compiler produce verbose output that lists 15058 # what "hidden" libraries, object files and flags are used when 15059 # linking a shared library. 15060 # 15061 # There doesn't appear to be a way to prevent this compiler from 15062 # explicitly linking system object files so we need to strip them 15063 # from the output so that they don't get included in the library 15064 # dependencies. 15065 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' 15066 ;; 15067 *) 15068 if test "$GXX" = yes; then 15069 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' 15070 else 15071 # FIXME: insert proper C++ library support 15072 ld_shlibs_CXX=no 15073 fi 15074 ;; 15075 esac 15076 ;; 15077 hpux10*|hpux11*) 15078 if test $with_gnu_ld = no; then 15079 case $host_cpu in 15080 hppa*64*) 15081 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15082 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 15083 hardcode_libdir_separator_CXX=: 15084 ;; 15085 ia64*) 15086 hardcode_libdir_flag_spec_CXX='-L$libdir' 15087 ;; 15088 *) 15089 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15090 hardcode_libdir_separator_CXX=: 15091 export_dynamic_flag_spec_CXX='${wl}-E' 15092 ;; 15093 esac 15094 fi 15095 case $host_cpu in 15096 hppa*64*) 15097 hardcode_direct_CXX=no 15098 hardcode_shlibpath_var_CXX=no 15099 ;; 15100 ia64*) 15101 hardcode_direct_CXX=no 15102 hardcode_shlibpath_var_CXX=no 15103 hardcode_minus_L_CXX=yes # Not in the search PATH, 15104 # but as the default 15105 # location of the library. 15106 ;; 15107 *) 15108 hardcode_direct_CXX=yes 15109 hardcode_minus_L_CXX=yes # Not in the search PATH, 15110 # but as the default 15111 # location of the library. 15112 ;; 15113 esac 15114 15115 case $cc_basename in 15116 CC*) 15117 # FIXME: insert proper C++ library support 15118 ld_shlibs_CXX=no 15119 ;; 15120 aCC*) 15121 case $host_cpu in 15122 hppa*64*|ia64*) 15123 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 15124 ;; 15125 *) 15126 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15127 ;; 15128 esac 15129 # Commands to make compiler produce verbose output that lists 15130 # what "hidden" libraries, object files and flags are used when 15131 # linking a shared library. 15132 # 15133 # There doesn't appear to be a way to prevent this compiler from 15134 # explicitly linking system object files so we need to strip them 15135 # from the output so that they don't get included in the library 15136 # dependencies. 15137 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' 15138 ;; 15139 *) 15140 if test "$GXX" = yes; then 15141 if test $with_gnu_ld = no; then 15142 case $host_cpu in 15143 ia64*|hppa*64*) 15144 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 15145 ;; 15146 *) 15147 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' 15148 ;; 15149 esac 15150 fi 15151 else 15152 # FIXME: insert proper C++ library support 15153 ld_shlibs_CXX=no 15154 fi 15155 ;; 15156 esac 15157 ;; 15158 irix5* | irix6*) 15159 case $cc_basename in 15160 CC*) 15161 # SGI C++ 15162 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15163 15164 # Archives containing C++ object files must be created using 15165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15166 # necessary to make sure instantiated templates are included 15167 # in the archive. 15168 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15169 ;; 15170 *) 15171 if test "$GXX" = yes; then 15172 if test "$with_gnu_ld" = no; then 15173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15174 else 15175 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' 15176 fi 15177 fi 15178 link_all_deplibs_CXX=yes 15179 ;; 15180 esac 15181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15182 hardcode_libdir_separator_CXX=: 15183 ;; 15184 linux*) 15185 case $cc_basename in 15186 KCC*) 15187 # Kuck and Associates, Inc. (KAI) C++ Compiler 15188 15189 # KCC will only create a shared library if the output file 15190 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15191 # to its proper name (with version) after linking. 15192 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' 15193 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' 15194 # Commands to make compiler produce verbose output that lists 15195 # what "hidden" libraries, object files and flags are used when 15196 # linking a shared library. 15197 # 15198 # There doesn't appear to be a way to prevent this compiler from 15199 # explicitly linking system object files so we need to strip them 15200 # from the output so that they don't get included in the library 15201 # dependencies. 15202 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' 15203 15204 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 15205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15206 15207 # Archives containing C++ object files must be created using 15208 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15209 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15210 ;; 15211 icpc*) 15212 # Intel C++ 15213 with_gnu_ld=yes 15214 # version 8.0 and above of icpc choke on multiply defined symbols 15215 # if we add $predep_objects and $postdep_objects, however 7.1 and 15216 # earlier do not add the objects themselves. 15217 case `$CC -V 2>&1` in 15218 *"Version 7."*) 15219 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15220 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' 15221 ;; 15222 *) # Version 8.0 or newer 15223 tmp_idyn= 15224 case $host_cpu in 15225 ia64*) tmp_idyn=' -i_dynamic';; 15226 esac 15227 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15228 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15229 ;; 15230 esac 15231 archive_cmds_need_lc_CXX=no 15232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15234 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15235 ;; 15236 pgCC*) 15237 # Portland Group C++ compiler 15238 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15239 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 15240 15241 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 15242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15243 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15244 ;; 15245 cxx*) 15246 # Compaq C++ 15247 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15248 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' 15249 15250 runpath_var=LD_RUN_PATH 15251 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15252 hardcode_libdir_separator_CXX=: 15253 15254 # Commands to make compiler produce verbose output that lists 15255 # what "hidden" libraries, object files and flags are used when 15256 # linking a shared library. 15257 # 15258 # There doesn't appear to be a way to prevent this compiler from 15259 # explicitly linking system object files so we need to strip them 15260 # from the output so that they don't get included in the library 15261 # dependencies. 15262 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' 15263 ;; 15264 esac 15265 ;; 15266 lynxos*) 15267 # FIXME: insert proper C++ library support 15268 ld_shlibs_CXX=no 15269 ;; 15270 m88k*) 15271 # FIXME: insert proper C++ library support 15272 ld_shlibs_CXX=no 15273 ;; 15274 mvs*) 15275 case $cc_basename in 15276 cxx*) 15277 # FIXME: insert proper C++ library support 15278 ld_shlibs_CXX=no 15279 ;; 15280 *) 15281 # FIXME: insert proper C++ library support 15282 ld_shlibs_CXX=no 15283 ;; 15284 esac 15285 ;; 15286 netbsd*) 15287 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15288 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15289 wlarc= 15290 hardcode_libdir_flag_spec_CXX='-R$libdir' 15291 hardcode_direct_CXX=yes 15292 hardcode_shlibpath_var_CXX=no 15293 fi 15294 # Workaround some broken pre-1.5 toolchains 15295 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15296 ;; 15297 openbsd2*) 15298 # C++ shared libraries are fairly broken 15299 ld_shlibs_CXX=no 15300 ;; 15301 openbsd*) 15302 hardcode_direct_CXX=yes 15303 hardcode_shlibpath_var_CXX=no 15304 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15306 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15307 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 15308 export_dynamic_flag_spec_CXX='${wl}-E' 15309 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15310 fi 15311 output_verbose_link_cmd='echo' 15312 ;; 15313 osf3*) 15314 case $cc_basename in 15315 KCC*) 15316 # Kuck and Associates, Inc. (KAI) C++ Compiler 15317 15318 # KCC will only create a shared library if the output file 15319 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15320 # to its proper name (with version) after linking. 15321 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' 15322 15323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15324 hardcode_libdir_separator_CXX=: 15325 15326 # Archives containing C++ object files must be created using 15327 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15328 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15329 15330 ;; 15331 RCC*) 15332 # Rational C++ 2.4.1 15333 # FIXME: insert proper C++ library support 15334 ld_shlibs_CXX=no 15335 ;; 15336 cxx*) 15337 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15338 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15339 15340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15341 hardcode_libdir_separator_CXX=: 15342 15343 # Commands to make compiler produce verbose output that lists 15344 # what "hidden" libraries, object files and flags are used when 15345 # linking a shared library. 15346 # 15347 # There doesn't appear to be a way to prevent this compiler from 15348 # explicitly linking system object files so we need to strip them 15349 # from the output so that they don't get included in the library 15350 # dependencies. 15351 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' 15352 ;; 15353 *) 15354 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15355 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15356 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15357 15358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15359 hardcode_libdir_separator_CXX=: 15360 15361 # Commands to make compiler produce verbose output that lists 15362 # what "hidden" libraries, object files and flags are used when 15363 # linking a shared library. 15364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 15365 15366 else 15367 # FIXME: insert proper C++ library support 15368 ld_shlibs_CXX=no 15369 fi 15370 ;; 15371 esac 15372 ;; 15373 osf4* | osf5*) 15374 case $cc_basename in 15375 KCC*) 15376 # Kuck and Associates, Inc. (KAI) C++ Compiler 15377 15378 # KCC will only create a shared library if the output file 15379 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15380 # to its proper name (with version) after linking. 15381 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' 15382 15383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15384 hardcode_libdir_separator_CXX=: 15385 15386 # Archives containing C++ object files must be created using 15387 # the KAI C++ compiler. 15388 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 15389 ;; 15390 RCC*) 15391 # Rational C++ 2.4.1 15392 # FIXME: insert proper C++ library support 15393 ld_shlibs_CXX=no 15394 ;; 15395 cxx*) 15396 allow_undefined_flag_CXX=' -expect_unresolved \*' 15397 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15398 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15399 echo "-hidden">> $lib.exp~ 15400 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 15401 $rm $lib.exp' 15402 15403 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15404 hardcode_libdir_separator_CXX=: 15405 15406 # Commands to make compiler produce verbose output that lists 15407 # what "hidden" libraries, object files and flags are used when 15408 # linking a shared library. 15409 # 15410 # There doesn't appear to be a way to prevent this compiler from 15411 # explicitly linking system object files so we need to strip them 15412 # from the output so that they don't get included in the library 15413 # dependencies. 15414 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' 15415 ;; 15416 *) 15417 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15419 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15420 15421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15422 hardcode_libdir_separator_CXX=: 15423 15424 # Commands to make compiler produce verbose output that lists 15425 # what "hidden" libraries, object files and flags are used when 15426 # linking a shared library. 15427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 15428 15429 else 15430 # FIXME: insert proper C++ library support 15431 ld_shlibs_CXX=no 15432 fi 15433 ;; 15434 esac 15435 ;; 15436 psos*) 15437 # FIXME: insert proper C++ library support 15438 ld_shlibs_CXX=no 15439 ;; 15440 sco*) 15441 archive_cmds_need_lc_CXX=no 15442 case $cc_basename in 15443 CC*) 15444 # FIXME: insert proper C++ library support 15445 ld_shlibs_CXX=no 15446 ;; 15447 *) 15448 # FIXME: insert proper C++ library support 15449 ld_shlibs_CXX=no 15450 ;; 15451 esac 15452 ;; 15453 sunos4*) 15454 case $cc_basename in 15455 CC*) 15456 # Sun C++ 4.x 15457 # FIXME: insert proper C++ library support 15458 ld_shlibs_CXX=no 15459 ;; 15460 lcc*) 15461 # Lucid 15462 # FIXME: insert proper C++ library support 15463 ld_shlibs_CXX=no 15464 ;; 15465 *) 15466 # FIXME: insert proper C++ library support 15467 ld_shlibs_CXX=no 15468 ;; 15469 esac 15470 ;; 15471 solaris*) 15472 case $cc_basename in 15473 CC*) 15474 # Sun C++ 4.2, 5.x and Centerline C++ 15475 archive_cmds_need_lc_CXX=yes 15476 no_undefined_flag_CXX=' -zdefs' 15477 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15478 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15479 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 15480 15481 hardcode_libdir_flag_spec_CXX='-R$libdir' 15482 hardcode_shlibpath_var_CXX=no 15483 case $host_os in 15484 solaris2.[0-5] | solaris2.[0-5].*) ;; 15485 *) 15486 # The C++ compiler is used as linker so we must use $wl 15487 # flag to pass the commands to the underlying system 15488 # linker. We must also pass each convience library through 15489 # to the system linker between allextract/defaultextract. 15490 # The C++ compiler will combine linker options so we 15491 # cannot just pass the convience library names through 15492 # without $wl. 15493 # Supported since Solaris 2.6 (maybe 2.5.1?) 15494 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 15495 ;; 15496 esac 15497 link_all_deplibs_CXX=yes 15498 15499 output_verbose_link_cmd='echo' 15500 15501 # Archives containing C++ object files must be created using 15502 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15503 # necessary to make sure instantiated templates are included 15504 # in the archive. 15505 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15506 ;; 15507 gcx*) 15508 # Green Hills C++ Compiler 15509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15510 15511 # The C++ compiler must be used to create the archive. 15512 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15513 ;; 15514 *) 15515 # GNU C++ compiler with Solaris linker 15516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15517 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 15518 if $CC --version | grep -v '^2\.7' > /dev/null; then 15519 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15520 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15521 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 15522 15523 # Commands to make compiler produce verbose output that lists 15524 # what "hidden" libraries, object files and flags are used when 15525 # linking a shared library. 15526 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 15527 else 15528 # g++ 2.7 appears to require `-G' NOT `-shared' on this 15529 # platform. 15530 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15531 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15532 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 15533 15534 # Commands to make compiler produce verbose output that lists 15535 # what "hidden" libraries, object files and flags are used when 15536 # linking a shared library. 15537 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 15538 fi 15539 15540 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 15541 fi 15542 ;; 15543 esac 15544 ;; 15545 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 15546 archive_cmds_need_lc_CXX=no 15547 ;; 15548 tandem*) 15549 case $cc_basename in 15550 NCC*) 15551 # NonStop-UX NCC 3.20 15552 # FIXME: insert proper C++ library support 15553 ld_shlibs_CXX=no 15554 ;; 15555 *) 15556 # FIXME: insert proper C++ library support 15557 ld_shlibs_CXX=no 15558 ;; 15559 esac 15560 ;; 15561 vxworks*) 15562 # FIXME: insert proper C++ library support 15563 ld_shlibs_CXX=no 15564 ;; 15565 *) 15566 # FIXME: insert proper C++ library support 15567 ld_shlibs_CXX=no 15568 ;; 15569esac 15570echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 15571echo "${ECHO_T}$ld_shlibs_CXX" >&6 15572test "$ld_shlibs_CXX" = no && can_build_shared=no 15573 15574GCC_CXX="$GXX" 15575LD_CXX="$LD" 15576 15577 15578cat > conftest.$ac_ext <<EOF 15579class Foo 15580{ 15581public: 15582 Foo (void) { a = 0; } 15583private: 15584 int a; 15585}; 15586EOF 15587 15588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15589 (eval $ac_compile) 2>&5 15590 ac_status=$? 15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15592 (exit $ac_status); }; then 15593 # Parse the compiler output and extract the necessary 15594 # objects, libraries and library flags. 15595 15596 # Sentinel used to keep track of whether or not we are before 15597 # the conftest object file. 15598 pre_test_object_deps_done=no 15599 15600 # The `*' in the case matches for architectures that use `case' in 15601 # $output_verbose_cmd can trigger glob expansion during the loop 15602 # eval without this substitution. 15603 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 15604 15605 for p in `eval $output_verbose_link_cmd`; do 15606 case $p in 15607 15608 -L* | -R* | -l*) 15609 # Some compilers place space between "-{L,R}" and the path. 15610 # Remove the space. 15611 if test $p = "-L" \ 15612 || test $p = "-R"; then 15613 prev=$p 15614 continue 15615 else 15616 prev= 15617 fi 15618 15619 if test "$pre_test_object_deps_done" = no; then 15620 case $p in 15621 -L* | -R*) 15622 # Internal compiler library paths should come after those 15623 # provided the user. The postdeps already come after the 15624 # user supplied libs so there is no need to process them. 15625 if test -z "$compiler_lib_search_path_CXX"; then 15626 compiler_lib_search_path_CXX="${prev}${p}" 15627 else 15628 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 15629 fi 15630 ;; 15631 # The "-l" case would never come before the object being 15632 # linked, so don't bother handling this case. 15633 esac 15634 else 15635 if test -z "$postdeps_CXX"; then 15636 postdeps_CXX="${prev}${p}" 15637 else 15638 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 15639 fi 15640 fi 15641 ;; 15642 15643 *.$objext) 15644 # This assumes that the test object file only shows up 15645 # once in the compiler output. 15646 if test "$p" = "conftest.$objext"; then 15647 pre_test_object_deps_done=yes 15648 continue 15649 fi 15650 15651 if test "$pre_test_object_deps_done" = no; then 15652 if test -z "$predep_objects_CXX"; then 15653 predep_objects_CXX="$p" 15654 else 15655 predep_objects_CXX="$predep_objects_CXX $p" 15656 fi 15657 else 15658 if test -z "$postdep_objects_CXX"; then 15659 postdep_objects_CXX="$p" 15660 else 15661 postdep_objects_CXX="$postdep_objects_CXX $p" 15662 fi 15663 fi 15664 ;; 15665 15666 *) ;; # Ignore the rest. 15667 15668 esac 15669 done 15670 15671 # Clean up. 15672 rm -f a.out a.exe 15673else 15674 echo "libtool.m4: error: problem compiling CXX test program" 15675fi 15676 15677$rm -f confest.$objext 15678 15679# PORTME: override above test on systems where it is broken 15680case $host_os in 15681solaris*) 15682 case $cc_basename in 15683 CC*) 15684 # Adding this requires a known-good setup of shared libraries for 15685 # Sun compiler versions before 5.6, else PIC objects from an old 15686 # archive will be linked into the output, leading to subtle bugs. 15687 postdeps_CXX='-lCstd -lCrun' 15688 ;; 15689 esac 15690esac 15691 15692 15693case " $postdeps_CXX " in 15694*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15695esac 15696 15697lt_prog_compiler_wl_CXX= 15698lt_prog_compiler_pic_CXX= 15699lt_prog_compiler_static_CXX= 15700 15701echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15702echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15703 15704 # C++ specific cases for pic, static, wl, etc. 15705 if test "$GXX" = yes; then 15706 lt_prog_compiler_wl_CXX='-Wl,' 15707 lt_prog_compiler_static_CXX='-static' 15708 15709 case $host_os in 15710 aix*) 15711 # All AIX code is PIC. 15712 if test "$host_cpu" = ia64; then 15713 # AIX 5 now supports IA64 processor 15714 lt_prog_compiler_static_CXX='-Bstatic' 15715 fi 15716 ;; 15717 amigaos*) 15718 # FIXME: we need at least 68020 code to build shared libraries, but 15719 # adding the `-m68020' flag to GCC prevents building anything better, 15720 # like `-m68040'. 15721 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15722 ;; 15723 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15724 # PIC is the default for these OSes. 15725 ;; 15726 mingw* | os2* | pw32*) 15727 # This hack is so that the source file can tell whether it is being 15728 # built for inclusion in a dll (and should export symbols for example). 15729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15730 ;; 15731 darwin* | rhapsody*) 15732 # PIC is the default on this platform 15733 # Common symbols not allowed in MH_DYLIB files 15734 lt_prog_compiler_pic_CXX='-fno-common' 15735 ;; 15736 *djgpp*) 15737 # DJGPP does not support shared libraries at all 15738 lt_prog_compiler_pic_CXX= 15739 ;; 15740 sysv4*MP*) 15741 if test -d /usr/nec; then 15742 lt_prog_compiler_pic_CXX=-Kconform_pic 15743 fi 15744 ;; 15745 hpux*) 15746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15747 # not for PA HP-UX. 15748 case $host_cpu in 15749 hppa*64*|ia64*) 15750 ;; 15751 *) 15752 lt_prog_compiler_pic_CXX='-fPIC' 15753 ;; 15754 esac 15755 ;; 15756 *) 15757 lt_prog_compiler_pic_CXX='-fPIC' 15758 ;; 15759 esac 15760 else 15761 case $host_os in 15762 aix4* | aix5*) 15763 # All AIX code is PIC. 15764 if test "$host_cpu" = ia64; then 15765 # AIX 5 now supports IA64 processor 15766 lt_prog_compiler_static_CXX='-Bstatic' 15767 else 15768 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15769 fi 15770 ;; 15771 chorus*) 15772 case $cc_basename in 15773 cxch68*) 15774 # Green Hills C++ Compiler 15775 # _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" 15776 ;; 15777 esac 15778 ;; 15779 darwin*) 15780 # PIC is the default on this platform 15781 # Common symbols not allowed in MH_DYLIB files 15782 case $cc_basename in 15783 xlc*) 15784 lt_prog_compiler_pic_CXX='-qnocommon' 15785 lt_prog_compiler_wl_CXX='-Wl,' 15786 ;; 15787 esac 15788 ;; 15789 dgux*) 15790 case $cc_basename in 15791 ec++*) 15792 lt_prog_compiler_pic_CXX='-KPIC' 15793 ;; 15794 ghcx*) 15795 # Green Hills C++ Compiler 15796 lt_prog_compiler_pic_CXX='-pic' 15797 ;; 15798 *) 15799 ;; 15800 esac 15801 ;; 15802 freebsd* | kfreebsd*-gnu | dragonfly*) 15803 # FreeBSD uses GNU C++ 15804 ;; 15805 hpux9* | hpux10* | hpux11*) 15806 case $cc_basename in 15807 CC*) 15808 lt_prog_compiler_wl_CXX='-Wl,' 15809 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 15810 if test "$host_cpu" != ia64; then 15811 lt_prog_compiler_pic_CXX='+Z' 15812 fi 15813 ;; 15814 aCC*) 15815 lt_prog_compiler_wl_CXX='-Wl,' 15816 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 15817 case $host_cpu in 15818 hppa*64*|ia64*) 15819 # +Z the default 15820 ;; 15821 *) 15822 lt_prog_compiler_pic_CXX='+Z' 15823 ;; 15824 esac 15825 ;; 15826 *) 15827 ;; 15828 esac 15829 ;; 15830 irix5* | irix6* | nonstopux*) 15831 case $cc_basename in 15832 CC*) 15833 lt_prog_compiler_wl_CXX='-Wl,' 15834 lt_prog_compiler_static_CXX='-non_shared' 15835 # CC pic flag -KPIC is the default. 15836 ;; 15837 *) 15838 ;; 15839 esac 15840 ;; 15841 linux*) 15842 case $cc_basename in 15843 KCC*) 15844 # KAI C++ Compiler 15845 lt_prog_compiler_wl_CXX='--backend -Wl,' 15846 lt_prog_compiler_pic_CXX='-fPIC' 15847 ;; 15848 icpc* | ecpc*) 15849 # Intel C++ 15850 lt_prog_compiler_wl_CXX='-Wl,' 15851 lt_prog_compiler_pic_CXX='-KPIC' 15852 lt_prog_compiler_static_CXX='-static' 15853 ;; 15854 pgCC*) 15855 # Portland Group C++ compiler. 15856 lt_prog_compiler_wl_CXX='-Wl,' 15857 lt_prog_compiler_pic_CXX='-fpic' 15858 lt_prog_compiler_static_CXX='-Bstatic' 15859 ;; 15860 cxx*) 15861 # Compaq C++ 15862 # Make sure the PIC flag is empty. It appears that all Alpha 15863 # Linux and Compaq Tru64 Unix objects are PIC. 15864 lt_prog_compiler_pic_CXX= 15865 lt_prog_compiler_static_CXX='-non_shared' 15866 ;; 15867 *) 15868 ;; 15869 esac 15870 ;; 15871 lynxos*) 15872 ;; 15873 m88k*) 15874 ;; 15875 mvs*) 15876 case $cc_basename in 15877 cxx*) 15878 lt_prog_compiler_pic_CXX='-W c,exportall' 15879 ;; 15880 *) 15881 ;; 15882 esac 15883 ;; 15884 netbsd*) 15885 ;; 15886 osf3* | osf4* | osf5*) 15887 case $cc_basename in 15888 KCC*) 15889 lt_prog_compiler_wl_CXX='--backend -Wl,' 15890 ;; 15891 RCC*) 15892 # Rational C++ 2.4.1 15893 lt_prog_compiler_pic_CXX='-pic' 15894 ;; 15895 cxx*) 15896 # Digital/Compaq C++ 15897 lt_prog_compiler_wl_CXX='-Wl,' 15898 # Make sure the PIC flag is empty. It appears that all Alpha 15899 # Linux and Compaq Tru64 Unix objects are PIC. 15900 lt_prog_compiler_pic_CXX= 15901 lt_prog_compiler_static_CXX='-non_shared' 15902 ;; 15903 *) 15904 ;; 15905 esac 15906 ;; 15907 psos*) 15908 ;; 15909 sco*) 15910 case $cc_basename in 15911 CC*) 15912 lt_prog_compiler_pic_CXX='-fPIC' 15913 ;; 15914 *) 15915 ;; 15916 esac 15917 ;; 15918 solaris*) 15919 case $cc_basename in 15920 CC*) 15921 # Sun C++ 4.2, 5.x and Centerline C++ 15922 lt_prog_compiler_pic_CXX='-KPIC' 15923 lt_prog_compiler_static_CXX='-Bstatic' 15924 lt_prog_compiler_wl_CXX='-Qoption ld ' 15925 ;; 15926 gcx*) 15927 # Green Hills C++ Compiler 15928 lt_prog_compiler_pic_CXX='-PIC' 15929 ;; 15930 *) 15931 ;; 15932 esac 15933 ;; 15934 sunos4*) 15935 case $cc_basename in 15936 CC*) 15937 # Sun C++ 4.x 15938 lt_prog_compiler_pic_CXX='-pic' 15939 lt_prog_compiler_static_CXX='-Bstatic' 15940 ;; 15941 lcc*) 15942 # Lucid 15943 lt_prog_compiler_pic_CXX='-pic' 15944 ;; 15945 *) 15946 ;; 15947 esac 15948 ;; 15949 tandem*) 15950 case $cc_basename in 15951 NCC*) 15952 # NonStop-UX NCC 3.20 15953 lt_prog_compiler_pic_CXX='-KPIC' 15954 ;; 15955 *) 15956 ;; 15957 esac 15958 ;; 15959 unixware*) 15960 ;; 15961 vxworks*) 15962 ;; 15963 *) 15964 lt_prog_compiler_can_build_shared_CXX=no 15965 ;; 15966 esac 15967 fi 15968 15969echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 15970echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 15971 15972# 15973# Check to make sure the PIC flag actually works. 15974# 15975if test -n "$lt_prog_compiler_pic_CXX"; then 15976 15977echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15978echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 15979if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 15980 echo $ECHO_N "(cached) $ECHO_C" >&6 15981else 15982 lt_prog_compiler_pic_works_CXX=no 15983 ac_outfile=conftest.$ac_objext 15984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15985 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15986 # Insert the option either (1) after the last *FLAGS variable, or 15987 # (2) before a word containing "conftest.", or (3) at the end. 15988 # Note that $ac_compile itself does not contain backslashes and begins 15989 # with a dollar sign (not a hyphen), so the echo should work correctly. 15990 # The option is referenced via a variable to avoid confusing sed. 15991 lt_compile=`echo "$ac_compile" | $SED \ 15992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15994 -e 's:$: $lt_compiler_flag:'` 15995 (eval echo "\"\$as_me:15995: $lt_compile\"" >&5) 15996 (eval "$lt_compile" 2>conftest.err) 15997 ac_status=$? 15998 cat conftest.err >&5 15999 echo "$as_me:15999: \$? = $ac_status" >&5 16000 if (exit $ac_status) && test -s "$ac_outfile"; then 16001 # The compiler can only warn and ignore the option if not recognized 16002 # So say no if there are warnings other than the usual output. 16003 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16004 $SED '/^$/d' conftest.err >conftest.er2 16005 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16006 lt_prog_compiler_pic_works_CXX=yes 16007 fi 16008 fi 16009 $rm conftest* 16010 16011fi 16012echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 16013echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 16014 16015if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 16016 case $lt_prog_compiler_pic_CXX in 16017 "" | " "*) ;; 16018 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16019 esac 16020else 16021 lt_prog_compiler_pic_CXX= 16022 lt_prog_compiler_can_build_shared_CXX=no 16023fi 16024 16025fi 16026case $host_os in 16027 # For platforms which do not support PIC, -DPIC is meaningless: 16028 *djgpp*) 16029 lt_prog_compiler_pic_CXX= 16030 ;; 16031 *) 16032 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16033 ;; 16034esac 16035 16036echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16037echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16038if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 16039 echo $ECHO_N "(cached) $ECHO_C" >&6 16040else 16041 lt_cv_prog_compiler_c_o_CXX=no 16042 $rm -r conftest 2>/dev/null 16043 mkdir conftest 16044 cd conftest 16045 mkdir out 16046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16047 16048 lt_compiler_flag="-o out/conftest2.$ac_objext" 16049 # Insert the option either (1) after the last *FLAGS variable, or 16050 # (2) before a word containing "conftest.", or (3) at the end. 16051 # Note that $ac_compile itself does not contain backslashes and begins 16052 # with a dollar sign (not a hyphen), so the echo should work correctly. 16053 lt_compile=`echo "$ac_compile" | $SED \ 16054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16056 -e 's:$: $lt_compiler_flag:'` 16057 (eval echo "\"\$as_me:16057: $lt_compile\"" >&5) 16058 (eval "$lt_compile" 2>out/conftest.err) 16059 ac_status=$? 16060 cat out/conftest.err >&5 16061 echo "$as_me:16061: \$? = $ac_status" >&5 16062 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16063 then 16064 # The compiler can only warn and ignore the option if not recognized 16065 # So say no if there are warnings 16066 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16067 $SED '/^$/d' out/conftest.err >out/conftest.er2 16068 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16069 lt_cv_prog_compiler_c_o_CXX=yes 16070 fi 16071 fi 16072 chmod u+w . 2>&5 16073 $rm conftest* 16074 # SGI C++ compiler will create directory out/ii_files/ for 16075 # template instantiation 16076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16077 $rm out/* && rmdir out 16078 cd .. 16079 rmdir conftest 16080 $rm conftest* 16081 16082fi 16083echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16084echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 16085 16086 16087hard_links="nottested" 16088if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 16089 # do not overwrite the value of need_locks provided by the user 16090 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16091echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16092 hard_links=yes 16093 $rm conftest* 16094 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16095 touch conftest.a 16096 ln conftest.a conftest.b 2>&5 || hard_links=no 16097 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16098 echo "$as_me:$LINENO: result: $hard_links" >&5 16099echo "${ECHO_T}$hard_links" >&6 16100 if test "$hard_links" = no; then 16101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16102echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16103 need_locks=warn 16104 fi 16105else 16106 need_locks=no 16107fi 16108 16109echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16110echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16111 16112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16113 case $host_os in 16114 aix4* | aix5*) 16115 # If we're using GNU nm, then we don't want the "-C" option. 16116 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16117 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16118 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' 16119 else 16120 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' 16121 fi 16122 ;; 16123 pw32*) 16124 export_symbols_cmds_CXX="$ltdll_cmds" 16125 ;; 16126 cygwin* | mingw*) 16127 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16128 ;; 16129 *) 16130 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16131 ;; 16132 esac 16133 16134echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 16135echo "${ECHO_T}$ld_shlibs_CXX" >&6 16136test "$ld_shlibs_CXX" = no && can_build_shared=no 16137 16138variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16139if test "$GCC" = yes; then 16140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16141fi 16142 16143# 16144# Do we need to explicitly link libc? 16145# 16146case "x$archive_cmds_need_lc_CXX" in 16147x|xyes) 16148 # Assume -lc should be added 16149 archive_cmds_need_lc_CXX=yes 16150 16151 if test "$enable_shared" = yes && test "$GCC" = yes; then 16152 case $archive_cmds_CXX in 16153 *'~'*) 16154 # FIXME: we may have to deal with multi-command sequences. 16155 ;; 16156 '$CC '*) 16157 # Test whether the compiler implicitly links with -lc since on some 16158 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16159 # to ld, don't add -lc before -lgcc. 16160 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16161echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16162 $rm conftest* 16163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16164 16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16166 (eval $ac_compile) 2>&5 16167 ac_status=$? 16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16169 (exit $ac_status); } 2>conftest.err; then 16170 soname=conftest 16171 lib=conftest 16172 libobjs=conftest.$ac_objext 16173 deplibs= 16174 wl=$lt_prog_compiler_wl_CXX 16175 compiler_flags=-v 16176 linker_flags=-v 16177 verstring= 16178 output_objdir=. 16179 libname=conftest 16180 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16181 allow_undefined_flag_CXX= 16182 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16183 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16184 ac_status=$? 16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16186 (exit $ac_status); } 16187 then 16188 archive_cmds_need_lc_CXX=no 16189 else 16190 archive_cmds_need_lc_CXX=yes 16191 fi 16192 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16193 else 16194 cat conftest.err 1>&5 16195 fi 16196 $rm conftest* 16197 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 16198echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 16199 ;; 16200 esac 16201 fi 16202 ;; 16203esac 16204 16205echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16206echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16207library_names_spec= 16208libname_spec='lib$name' 16209soname_spec= 16210shrext_cmds=".so" 16211postinstall_cmds= 16212postuninstall_cmds= 16213finish_cmds= 16214finish_eval= 16215shlibpath_var= 16216shlibpath_overrides_runpath=unknown 16217version_type=none 16218dynamic_linker="$host_os ld.so" 16219sys_lib_dlsearch_path_spec="/lib /usr/lib" 16220if test "$GCC" = yes; then 16221 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16222 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16223 # if the path contains ";" then we assume it to be the separator 16224 # otherwise default to the standard path separator (i.e. ":") - it is 16225 # assumed that no part of a normal pathname contains ";" but that should 16226 # okay in the real world where ";" in dirpaths is itself problematic. 16227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16228 else 16229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16230 fi 16231else 16232 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16233fi 16234need_lib_prefix=unknown 16235hardcode_into_libs=no 16236 16237# when you set need_version to no, make sure it does not cause -set_version 16238# flags to be left without arguments 16239need_version=unknown 16240 16241case $host_os in 16242aix3*) 16243 version_type=linux 16244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16245 shlibpath_var=LIBPATH 16246 16247 # AIX 3 has no versioning support, so we append a major version to the name. 16248 soname_spec='${libname}${release}${shared_ext}$major' 16249 ;; 16250 16251aix4* | aix5*) 16252 version_type=linux 16253 need_lib_prefix=no 16254 need_version=no 16255 hardcode_into_libs=yes 16256 if test "$host_cpu" = ia64; then 16257 # AIX 5 supports IA64 16258 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16259 shlibpath_var=LD_LIBRARY_PATH 16260 else 16261 # With GCC up to 2.95.x, collect2 would create an import file 16262 # for dependence libraries. The import file would start with 16263 # the line `#! .'. This would cause the generated library to 16264 # depend on `.', always an invalid library. This was fixed in 16265 # development snapshots of GCC prior to 3.0. 16266 case $host_os in 16267 aix4 | aix4.[01] | aix4.[01].*) 16268 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16269 echo ' yes ' 16270 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16271 : 16272 else 16273 can_build_shared=no 16274 fi 16275 ;; 16276 esac 16277 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16278 # soname into executable. Probably we can add versioning support to 16279 # collect2, so additional links can be useful in future. 16280 if test "$aix_use_runtimelinking" = yes; then 16281 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16282 # instead of lib<name>.a to let people know that these are not 16283 # typical AIX shared libraries. 16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16285 else 16286 # We preserve .a as extension for shared libraries through AIX4.2 16287 # and later when we are not doing run time linking. 16288 library_names_spec='${libname}${release}.a $libname.a' 16289 soname_spec='${libname}${release}${shared_ext}$major' 16290 fi 16291 shlibpath_var=LIBPATH 16292 fi 16293 ;; 16294 16295amigaos*) 16296 library_names_spec='$libname.ixlibrary $libname.a' 16297 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16298 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' 16299 ;; 16300 16301beos*) 16302 library_names_spec='${libname}${shared_ext}' 16303 dynamic_linker="$host_os ld.so" 16304 shlibpath_var=LIBRARY_PATH 16305 ;; 16306 16307bsdi[45]*) 16308 version_type=linux 16309 need_version=no 16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16311 soname_spec='${libname}${release}${shared_ext}$major' 16312 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16313 shlibpath_var=LD_LIBRARY_PATH 16314 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16315 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16316 # the default ld.so.conf also contains /usr/contrib/lib and 16317 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16318 # libtool to hard-code these into programs 16319 ;; 16320 16321cygwin* | mingw* | pw32*) 16322 version_type=windows 16323 shrext_cmds=".dll" 16324 need_version=no 16325 need_lib_prefix=no 16326 16327 case $GCC,$host_os in 16328 yes,cygwin* | yes,mingw* | yes,pw32*) 16329 library_names_spec='$libname.dll.a' 16330 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16331 postinstall_cmds='base_file=`basename \${file}`~ 16332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16333 dldir=$destdir/`dirname \$dlpath`~ 16334 test -d \$dldir || mkdir -p \$dldir~ 16335 $install_prog $dir/$dlname \$dldir/$dlname~ 16336 chmod a+x \$dldir/$dlname' 16337 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16338 dlpath=$dir/\$dldll~ 16339 $rm \$dlpath' 16340 shlibpath_overrides_runpath=yes 16341 16342 case $host_os in 16343 cygwin*) 16344 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16345 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16346 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16347 ;; 16348 mingw*) 16349 # MinGW DLLs use traditional 'lib' prefix 16350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16351 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16352 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16353 # It is most probably a Windows format PATH printed by 16354 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16355 # path with ; separators, and with drive letters. We can handle the 16356 # drive letters (cygwin fileutils understands them), so leave them, 16357 # especially as we might pass files found there to a mingw objdump, 16358 # which wouldn't understand a cygwinified path. Ahh. 16359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16360 else 16361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16362 fi 16363 ;; 16364 pw32*) 16365 # pw32 DLLs use 'pw' prefix rather than 'lib' 16366 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16367 ;; 16368 esac 16369 ;; 16370 16371 *) 16372 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16373 ;; 16374 esac 16375 dynamic_linker='Win32 ld.exe' 16376 # FIXME: first we should search . and the directory the executable is in 16377 shlibpath_var=PATH 16378 ;; 16379 16380darwin* | rhapsody*) 16381 dynamic_linker="$host_os dyld" 16382 version_type=darwin 16383 need_lib_prefix=no 16384 need_version=no 16385 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16386 soname_spec='${libname}${release}${major}$shared_ext' 16387 shlibpath_overrides_runpath=yes 16388 shlibpath_var=DYLD_LIBRARY_PATH 16389 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16390 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16391 if test "$GCC" = yes; then 16392 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"` 16393 else 16394 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16395 fi 16396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16397 ;; 16398 16399dgux*) 16400 version_type=linux 16401 need_lib_prefix=no 16402 need_version=no 16403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16404 soname_spec='${libname}${release}${shared_ext}$major' 16405 shlibpath_var=LD_LIBRARY_PATH 16406 ;; 16407 16408freebsd1*) 16409 dynamic_linker=no 16410 ;; 16411 16412kfreebsd*-gnu) 16413 version_type=linux 16414 need_lib_prefix=no 16415 need_version=no 16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16417 soname_spec='${libname}${release}${shared_ext}$major' 16418 shlibpath_var=LD_LIBRARY_PATH 16419 shlibpath_overrides_runpath=no 16420 hardcode_into_libs=yes 16421 dynamic_linker='GNU ld.so' 16422 ;; 16423 16424freebsd* | dragonfly*) 16425 # DragonFly does not have aout. When/if they implement a new 16426 # versioning mechanism, adjust this. 16427 if test -x /usr/bin/objformat; then 16428 objformat=`/usr/bin/objformat` 16429 else 16430 case $host_os in 16431 freebsd[123]*) objformat=aout ;; 16432 *) objformat=elf ;; 16433 esac 16434 fi 16435 version_type=freebsd-$objformat 16436 case $version_type in 16437 freebsd-elf*) 16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16439 need_version=no 16440 need_lib_prefix=no 16441 ;; 16442 freebsd-*) 16443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16444 need_version=yes 16445 ;; 16446 esac 16447 shlibpath_var=LD_LIBRARY_PATH 16448 case $host_os in 16449 freebsd2*) 16450 shlibpath_overrides_runpath=yes 16451 ;; 16452 freebsd3.[01]* | freebsdelf3.[01]*) 16453 shlibpath_overrides_runpath=yes 16454 hardcode_into_libs=yes 16455 ;; 16456 *) # from 3.2 on 16457 shlibpath_overrides_runpath=no 16458 hardcode_into_libs=yes 16459 ;; 16460 esac 16461 ;; 16462 16463gnu*) 16464 version_type=linux 16465 need_lib_prefix=no 16466 need_version=no 16467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16468 soname_spec='${libname}${release}${shared_ext}$major' 16469 shlibpath_var=LD_LIBRARY_PATH 16470 hardcode_into_libs=yes 16471 ;; 16472 16473hpux9* | hpux10* | hpux11*) 16474 # Give a soname corresponding to the major version so that dld.sl refuses to 16475 # link against other versions. 16476 version_type=sunos 16477 need_lib_prefix=no 16478 need_version=no 16479 case $host_cpu in 16480 ia64*) 16481 shrext_cmds='.so' 16482 hardcode_into_libs=yes 16483 dynamic_linker="$host_os dld.so" 16484 shlibpath_var=LD_LIBRARY_PATH 16485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16487 soname_spec='${libname}${release}${shared_ext}$major' 16488 if test "X$HPUX_IA64_MODE" = X32; then 16489 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16490 else 16491 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16492 fi 16493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16494 ;; 16495 hppa*64*) 16496 shrext_cmds='.sl' 16497 hardcode_into_libs=yes 16498 dynamic_linker="$host_os dld.sl" 16499 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16502 soname_spec='${libname}${release}${shared_ext}$major' 16503 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16505 ;; 16506 *) 16507 shrext_cmds='.sl' 16508 dynamic_linker="$host_os dld.sl" 16509 shlibpath_var=SHLIB_PATH 16510 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16512 soname_spec='${libname}${release}${shared_ext}$major' 16513 ;; 16514 esac 16515 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16516 postinstall_cmds='chmod 555 $lib' 16517 ;; 16518 16519irix5* | irix6* | nonstopux*) 16520 case $host_os in 16521 nonstopux*) version_type=nonstopux ;; 16522 *) 16523 if test "$lt_cv_prog_gnu_ld" = yes; then 16524 version_type=linux 16525 else 16526 version_type=irix 16527 fi ;; 16528 esac 16529 need_lib_prefix=no 16530 need_version=no 16531 soname_spec='${libname}${release}${shared_ext}$major' 16532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16533 case $host_os in 16534 irix5* | nonstopux*) 16535 libsuff= shlibsuff= 16536 ;; 16537 *) 16538 case $LD in # libtool.m4 will add one of these switches to LD 16539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16540 libsuff= shlibsuff= libmagic=32-bit;; 16541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16542 libsuff=32 shlibsuff=N32 libmagic=N32;; 16543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16544 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16545 *) libsuff= shlibsuff= libmagic=never-match;; 16546 esac 16547 ;; 16548 esac 16549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16550 shlibpath_overrides_runpath=no 16551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16553 hardcode_into_libs=yes 16554 ;; 16555 16556# No shared lib support for Linux oldld, aout, or coff. 16557linux*oldld* | linux*aout* | linux*coff*) 16558 dynamic_linker=no 16559 ;; 16560 16561# This must be Linux ELF. 16562linux*) 16563 version_type=linux 16564 need_lib_prefix=no 16565 need_version=no 16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16567 soname_spec='${libname}${release}${shared_ext}$major' 16568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16569 shlibpath_var=LD_LIBRARY_PATH 16570 shlibpath_overrides_runpath=no 16571 # This implies no fast_install, which is unacceptable. 16572 # Some rework will be needed to allow for fast_install 16573 # before this can be enabled. 16574 hardcode_into_libs=yes 16575 16576 # Append ld.so.conf contents to the search path 16577 if test -f /etc/ld.so.conf; then 16578 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16579 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16580 fi 16581 16582 # We used to test for /lib/ld.so.1 and disable shared libraries on 16583 # powerpc, because MkLinux only supported shared libraries with the 16584 # GNU dynamic linker. Since this was broken with cross compilers, 16585 # most powerpc-linux boxes support dynamic linking these days and 16586 # people can always --disable-shared, the test was removed, and we 16587 # assume the GNU/Linux dynamic linker is in use. 16588 dynamic_linker='GNU/Linux ld.so' 16589 ;; 16590 16591knetbsd*-gnu) 16592 version_type=linux 16593 need_lib_prefix=no 16594 need_version=no 16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16596 soname_spec='${libname}${release}${shared_ext}$major' 16597 shlibpath_var=LD_LIBRARY_PATH 16598 shlibpath_overrides_runpath=no 16599 hardcode_into_libs=yes 16600 dynamic_linker='GNU ld.so' 16601 ;; 16602 16603netbsd*) 16604 version_type=sunos 16605 need_lib_prefix=no 16606 need_version=no 16607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16610 dynamic_linker='NetBSD (a.out) ld.so' 16611 else 16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16613 soname_spec='${libname}${release}${shared_ext}$major' 16614 dynamic_linker='NetBSD ld.elf_so' 16615 fi 16616 shlibpath_var=LD_LIBRARY_PATH 16617 shlibpath_overrides_runpath=yes 16618 hardcode_into_libs=yes 16619 ;; 16620 16621newsos6) 16622 version_type=linux 16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16624 shlibpath_var=LD_LIBRARY_PATH 16625 shlibpath_overrides_runpath=yes 16626 ;; 16627 16628nto-qnx*) 16629 version_type=linux 16630 need_lib_prefix=no 16631 need_version=no 16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16633 soname_spec='${libname}${release}${shared_ext}$major' 16634 shlibpath_var=LD_LIBRARY_PATH 16635 shlibpath_overrides_runpath=yes 16636 ;; 16637 16638openbsd*) 16639 version_type=sunos 16640 need_lib_prefix=no 16641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16642 case $host_os in 16643 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16644 *) need_version=no ;; 16645 esac 16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16648 shlibpath_var=LD_LIBRARY_PATH 16649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16650 case $host_os in 16651 openbsd2.[89] | openbsd2.[89].*) 16652 shlibpath_overrides_runpath=no 16653 ;; 16654 *) 16655 shlibpath_overrides_runpath=yes 16656 ;; 16657 esac 16658 else 16659 shlibpath_overrides_runpath=yes 16660 fi 16661 ;; 16662 16663os2*) 16664 libname_spec='$name' 16665 shrext_cmds=".dll" 16666 need_lib_prefix=no 16667 library_names_spec='$libname${shared_ext} $libname.a' 16668 dynamic_linker='OS/2 ld.exe' 16669 shlibpath_var=LIBPATH 16670 ;; 16671 16672osf3* | osf4* | osf5*) 16673 version_type=osf 16674 need_lib_prefix=no 16675 need_version=no 16676 soname_spec='${libname}${release}${shared_ext}$major' 16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16678 shlibpath_var=LD_LIBRARY_PATH 16679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16681 ;; 16682 16683sco3.2v5*) 16684 version_type=osf 16685 soname_spec='${libname}${release}${shared_ext}$major' 16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16687 shlibpath_var=LD_LIBRARY_PATH 16688 ;; 16689 16690solaris*) 16691 version_type=linux 16692 need_lib_prefix=no 16693 need_version=no 16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16695 soname_spec='${libname}${release}${shared_ext}$major' 16696 shlibpath_var=LD_LIBRARY_PATH 16697 shlibpath_overrides_runpath=yes 16698 hardcode_into_libs=yes 16699 # ldd complains unless libraries are executable 16700 postinstall_cmds='chmod +x $lib' 16701 ;; 16702 16703sunos4*) 16704 version_type=sunos 16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16707 shlibpath_var=LD_LIBRARY_PATH 16708 shlibpath_overrides_runpath=yes 16709 if test "$with_gnu_ld" = yes; then 16710 need_lib_prefix=no 16711 fi 16712 need_version=yes 16713 ;; 16714 16715sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16716 version_type=linux 16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16718 soname_spec='${libname}${release}${shared_ext}$major' 16719 shlibpath_var=LD_LIBRARY_PATH 16720 case $host_vendor in 16721 sni) 16722 shlibpath_overrides_runpath=no 16723 need_lib_prefix=no 16724 export_dynamic_flag_spec='${wl}-Blargedynsym' 16725 runpath_var=LD_RUN_PATH 16726 ;; 16727 siemens) 16728 need_lib_prefix=no 16729 ;; 16730 motorola) 16731 need_lib_prefix=no 16732 need_version=no 16733 shlibpath_overrides_runpath=no 16734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16735 ;; 16736 esac 16737 ;; 16738 16739sysv4*MP*) 16740 if test -d /usr/nec ;then 16741 version_type=linux 16742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16743 soname_spec='$libname${shared_ext}.$major' 16744 shlibpath_var=LD_LIBRARY_PATH 16745 fi 16746 ;; 16747 16748uts4*) 16749 version_type=linux 16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16751 soname_spec='${libname}${release}${shared_ext}$major' 16752 shlibpath_var=LD_LIBRARY_PATH 16753 ;; 16754 16755*) 16756 dynamic_linker=no 16757 ;; 16758esac 16759echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16760echo "${ECHO_T}$dynamic_linker" >&6 16761test "$dynamic_linker" = no && can_build_shared=no 16762 16763echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16764echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16765hardcode_action_CXX= 16766if test -n "$hardcode_libdir_flag_spec_CXX" || \ 16767 test -n "$runpath_var_CXX" || \ 16768 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16769 16770 # We can hardcode non-existant directories. 16771 if test "$hardcode_direct_CXX" != no && 16772 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16773 # have to relink, otherwise we might link with an installed library 16774 # when we should be linking with a yet-to-be-installed one 16775 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16776 test "$hardcode_minus_L_CXX" != no; then 16777 # Linking always hardcodes the temporary library directory. 16778 hardcode_action_CXX=relink 16779 else 16780 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16781 hardcode_action_CXX=immediate 16782 fi 16783else 16784 # We cannot hardcode anything, or else we can only hardcode existing 16785 # directories. 16786 hardcode_action_CXX=unsupported 16787fi 16788echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 16789echo "${ECHO_T}$hardcode_action_CXX" >&6 16790 16791if test "$hardcode_action_CXX" = relink; then 16792 # Fast installation is not supported 16793 enable_fast_install=no 16794elif test "$shlibpath_overrides_runpath" = yes || 16795 test "$enable_shared" = no; then 16796 # Fast installation is not necessary 16797 enable_fast_install=needless 16798fi 16799 16800striplib= 16801old_striplib= 16802echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 16803echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 16804if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16805 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16806 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16807 echo "$as_me:$LINENO: result: yes" >&5 16808echo "${ECHO_T}yes" >&6 16809else 16810# FIXME - insert some real tests, host_os isn't really good enough 16811 case $host_os in 16812 darwin*) 16813 if test -n "$STRIP" ; then 16814 striplib="$STRIP -x" 16815 echo "$as_me:$LINENO: result: yes" >&5 16816echo "${ECHO_T}yes" >&6 16817 else 16818 echo "$as_me:$LINENO: result: no" >&5 16819echo "${ECHO_T}no" >&6 16820fi 16821 ;; 16822 *) 16823 echo "$as_me:$LINENO: result: no" >&5 16824echo "${ECHO_T}no" >&6 16825 ;; 16826 esac 16827fi 16828 16829if test "x$enable_dlopen" != xyes; then 16830 enable_dlopen=unknown 16831 enable_dlopen_self=unknown 16832 enable_dlopen_self_static=unknown 16833else 16834 lt_cv_dlopen=no 16835 lt_cv_dlopen_libs= 16836 16837 case $host_os in 16838 beos*) 16839 lt_cv_dlopen="load_add_on" 16840 lt_cv_dlopen_libs= 16841 lt_cv_dlopen_self=yes 16842 ;; 16843 16844 mingw* | pw32*) 16845 lt_cv_dlopen="LoadLibrary" 16846 lt_cv_dlopen_libs= 16847 ;; 16848 16849 cygwin*) 16850 lt_cv_dlopen="dlopen" 16851 lt_cv_dlopen_libs= 16852 ;; 16853 16854 darwin*) 16855 # if libdl is installed we need to link against it 16856 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16857echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16858if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16859 echo $ECHO_N "(cached) $ECHO_C" >&6 16860else 16861 ac_check_lib_save_LIBS=$LIBS 16862LIBS="-ldl $LIBS" 16863cat >conftest.$ac_ext <<_ACEOF 16864/* confdefs.h. */ 16865_ACEOF 16866cat confdefs.h >>conftest.$ac_ext 16867cat >>conftest.$ac_ext <<_ACEOF 16868/* end confdefs.h. */ 16869 16870/* Override any gcc2 internal prototype to avoid an error. */ 16871#ifdef __cplusplus 16872extern "C" 16873#endif 16874/* We use char because int might match the return type of a gcc2 16875 builtin and then its argument prototype would still apply. */ 16876char dlopen (); 16877int 16878main () 16879{ 16880dlopen (); 16881 ; 16882 return 0; 16883} 16884_ACEOF 16885rm -f conftest.$ac_objext conftest$ac_exeext 16886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16887 (eval $ac_link) 2>conftest.er1 16888 ac_status=$? 16889 grep -v '^ *+' conftest.er1 >conftest.err 16890 rm -f conftest.er1 16891 cat conftest.err >&5 16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16893 (exit $ac_status); } && 16894 { ac_try='test -z "$ac_cxx_werror_flag" 16895 || test ! -s conftest.err' 16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16897 (eval $ac_try) 2>&5 16898 ac_status=$? 16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16900 (exit $ac_status); }; } && 16901 { ac_try='test -s conftest$ac_exeext' 16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16903 (eval $ac_try) 2>&5 16904 ac_status=$? 16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16906 (exit $ac_status); }; }; then 16907 ac_cv_lib_dl_dlopen=yes 16908else 16909 echo "$as_me: failed program was:" >&5 16910sed 's/^/| /' conftest.$ac_ext >&5 16911 16912ac_cv_lib_dl_dlopen=no 16913fi 16914rm -f conftest.err conftest.$ac_objext \ 16915 conftest$ac_exeext conftest.$ac_ext 16916LIBS=$ac_check_lib_save_LIBS 16917fi 16918echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16919echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16920if test $ac_cv_lib_dl_dlopen = yes; then 16921 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16922else 16923 16924 lt_cv_dlopen="dyld" 16925 lt_cv_dlopen_libs= 16926 lt_cv_dlopen_self=yes 16927 16928fi 16929 16930 ;; 16931 16932 *) 16933 echo "$as_me:$LINENO: checking for shl_load" >&5 16934echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 16935if test "${ac_cv_func_shl_load+set}" = set; then 16936 echo $ECHO_N "(cached) $ECHO_C" >&6 16937else 16938 cat >conftest.$ac_ext <<_ACEOF 16939/* confdefs.h. */ 16940_ACEOF 16941cat confdefs.h >>conftest.$ac_ext 16942cat >>conftest.$ac_ext <<_ACEOF 16943/* end confdefs.h. */ 16944/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 16945 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16946#define shl_load innocuous_shl_load 16947 16948/* System header to define __stub macros and hopefully few prototypes, 16949 which can conflict with char shl_load (); below. 16950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16951 <limits.h> exists even on freestanding compilers. */ 16952 16953#ifdef __STDC__ 16954# include <limits.h> 16955#else 16956# include <assert.h> 16957#endif 16958 16959#undef shl_load 16960 16961/* Override any gcc2 internal prototype to avoid an error. */ 16962#ifdef __cplusplus 16963extern "C" 16964{ 16965#endif 16966/* We use char because int might match the return type of a gcc2 16967 builtin and then its argument prototype would still apply. */ 16968char shl_load (); 16969/* The GNU C library defines this for functions which it implements 16970 to always fail with ENOSYS. Some functions are actually named 16971 something starting with __ and the normal name is an alias. */ 16972#if defined (__stub_shl_load) || defined (__stub___shl_load) 16973choke me 16974#else 16975char (*f) () = shl_load; 16976#endif 16977#ifdef __cplusplus 16978} 16979#endif 16980 16981int 16982main () 16983{ 16984return f != shl_load; 16985 ; 16986 return 0; 16987} 16988_ACEOF 16989rm -f conftest.$ac_objext conftest$ac_exeext 16990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16991 (eval $ac_link) 2>conftest.er1 16992 ac_status=$? 16993 grep -v '^ *+' conftest.er1 >conftest.err 16994 rm -f conftest.er1 16995 cat conftest.err >&5 16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16997 (exit $ac_status); } && 16998 { ac_try='test -z "$ac_cxx_werror_flag" 16999 || test ! -s conftest.err' 17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17001 (eval $ac_try) 2>&5 17002 ac_status=$? 17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17004 (exit $ac_status); }; } && 17005 { ac_try='test -s conftest$ac_exeext' 17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17007 (eval $ac_try) 2>&5 17008 ac_status=$? 17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17010 (exit $ac_status); }; }; then 17011 ac_cv_func_shl_load=yes 17012else 17013 echo "$as_me: failed program was:" >&5 17014sed 's/^/| /' conftest.$ac_ext >&5 17015 17016ac_cv_func_shl_load=no 17017fi 17018rm -f conftest.err conftest.$ac_objext \ 17019 conftest$ac_exeext conftest.$ac_ext 17020fi 17021echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17022echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17023if test $ac_cv_func_shl_load = yes; then 17024 lt_cv_dlopen="shl_load" 17025else 17026 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17027echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17028if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17029 echo $ECHO_N "(cached) $ECHO_C" >&6 17030else 17031 ac_check_lib_save_LIBS=$LIBS 17032LIBS="-ldld $LIBS" 17033cat >conftest.$ac_ext <<_ACEOF 17034/* confdefs.h. */ 17035_ACEOF 17036cat confdefs.h >>conftest.$ac_ext 17037cat >>conftest.$ac_ext <<_ACEOF 17038/* end confdefs.h. */ 17039 17040/* Override any gcc2 internal prototype to avoid an error. */ 17041#ifdef __cplusplus 17042extern "C" 17043#endif 17044/* We use char because int might match the return type of a gcc2 17045 builtin and then its argument prototype would still apply. */ 17046char shl_load (); 17047int 17048main () 17049{ 17050shl_load (); 17051 ; 17052 return 0; 17053} 17054_ACEOF 17055rm -f conftest.$ac_objext conftest$ac_exeext 17056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17057 (eval $ac_link) 2>conftest.er1 17058 ac_status=$? 17059 grep -v '^ *+' conftest.er1 >conftest.err 17060 rm -f conftest.er1 17061 cat conftest.err >&5 17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17063 (exit $ac_status); } && 17064 { ac_try='test -z "$ac_cxx_werror_flag" 17065 || test ! -s conftest.err' 17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17067 (eval $ac_try) 2>&5 17068 ac_status=$? 17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17070 (exit $ac_status); }; } && 17071 { ac_try='test -s conftest$ac_exeext' 17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17073 (eval $ac_try) 2>&5 17074 ac_status=$? 17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17076 (exit $ac_status); }; }; then 17077 ac_cv_lib_dld_shl_load=yes 17078else 17079 echo "$as_me: failed program was:" >&5 17080sed 's/^/| /' conftest.$ac_ext >&5 17081 17082ac_cv_lib_dld_shl_load=no 17083fi 17084rm -f conftest.err conftest.$ac_objext \ 17085 conftest$ac_exeext conftest.$ac_ext 17086LIBS=$ac_check_lib_save_LIBS 17087fi 17088echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17089echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17090if test $ac_cv_lib_dld_shl_load = yes; then 17091 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17092else 17093 echo "$as_me:$LINENO: checking for dlopen" >&5 17094echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17095if test "${ac_cv_func_dlopen+set}" = set; then 17096 echo $ECHO_N "(cached) $ECHO_C" >&6 17097else 17098 cat >conftest.$ac_ext <<_ACEOF 17099/* confdefs.h. */ 17100_ACEOF 17101cat confdefs.h >>conftest.$ac_ext 17102cat >>conftest.$ac_ext <<_ACEOF 17103/* end confdefs.h. */ 17104/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17105 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17106#define dlopen innocuous_dlopen 17107 17108/* System header to define __stub macros and hopefully few prototypes, 17109 which can conflict with char dlopen (); below. 17110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17111 <limits.h> exists even on freestanding compilers. */ 17112 17113#ifdef __STDC__ 17114# include <limits.h> 17115#else 17116# include <assert.h> 17117#endif 17118 17119#undef dlopen 17120 17121/* Override any gcc2 internal prototype to avoid an error. */ 17122#ifdef __cplusplus 17123extern "C" 17124{ 17125#endif 17126/* We use char because int might match the return type of a gcc2 17127 builtin and then its argument prototype would still apply. */ 17128char dlopen (); 17129/* The GNU C library defines this for functions which it implements 17130 to always fail with ENOSYS. Some functions are actually named 17131 something starting with __ and the normal name is an alias. */ 17132#if defined (__stub_dlopen) || defined (__stub___dlopen) 17133choke me 17134#else 17135char (*f) () = dlopen; 17136#endif 17137#ifdef __cplusplus 17138} 17139#endif 17140 17141int 17142main () 17143{ 17144return f != dlopen; 17145 ; 17146 return 0; 17147} 17148_ACEOF 17149rm -f conftest.$ac_objext conftest$ac_exeext 17150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17151 (eval $ac_link) 2>conftest.er1 17152 ac_status=$? 17153 grep -v '^ *+' conftest.er1 >conftest.err 17154 rm -f conftest.er1 17155 cat conftest.err >&5 17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17157 (exit $ac_status); } && 17158 { ac_try='test -z "$ac_cxx_werror_flag" 17159 || test ! -s conftest.err' 17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17161 (eval $ac_try) 2>&5 17162 ac_status=$? 17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17164 (exit $ac_status); }; } && 17165 { ac_try='test -s conftest$ac_exeext' 17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17167 (eval $ac_try) 2>&5 17168 ac_status=$? 17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17170 (exit $ac_status); }; }; then 17171 ac_cv_func_dlopen=yes 17172else 17173 echo "$as_me: failed program was:" >&5 17174sed 's/^/| /' conftest.$ac_ext >&5 17175 17176ac_cv_func_dlopen=no 17177fi 17178rm -f conftest.err conftest.$ac_objext \ 17179 conftest$ac_exeext conftest.$ac_ext 17180fi 17181echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17182echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17183if test $ac_cv_func_dlopen = yes; then 17184 lt_cv_dlopen="dlopen" 17185else 17186 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17187echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17188if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17189 echo $ECHO_N "(cached) $ECHO_C" >&6 17190else 17191 ac_check_lib_save_LIBS=$LIBS 17192LIBS="-ldl $LIBS" 17193cat >conftest.$ac_ext <<_ACEOF 17194/* confdefs.h. */ 17195_ACEOF 17196cat confdefs.h >>conftest.$ac_ext 17197cat >>conftest.$ac_ext <<_ACEOF 17198/* end confdefs.h. */ 17199 17200/* Override any gcc2 internal prototype to avoid an error. */ 17201#ifdef __cplusplus 17202extern "C" 17203#endif 17204/* We use char because int might match the return type of a gcc2 17205 builtin and then its argument prototype would still apply. */ 17206char dlopen (); 17207int 17208main () 17209{ 17210dlopen (); 17211 ; 17212 return 0; 17213} 17214_ACEOF 17215rm -f conftest.$ac_objext conftest$ac_exeext 17216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17217 (eval $ac_link) 2>conftest.er1 17218 ac_status=$? 17219 grep -v '^ *+' conftest.er1 >conftest.err 17220 rm -f conftest.er1 17221 cat conftest.err >&5 17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17223 (exit $ac_status); } && 17224 { ac_try='test -z "$ac_cxx_werror_flag" 17225 || test ! -s conftest.err' 17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17227 (eval $ac_try) 2>&5 17228 ac_status=$? 17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17230 (exit $ac_status); }; } && 17231 { ac_try='test -s conftest$ac_exeext' 17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17233 (eval $ac_try) 2>&5 17234 ac_status=$? 17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17236 (exit $ac_status); }; }; then 17237 ac_cv_lib_dl_dlopen=yes 17238else 17239 echo "$as_me: failed program was:" >&5 17240sed 's/^/| /' conftest.$ac_ext >&5 17241 17242ac_cv_lib_dl_dlopen=no 17243fi 17244rm -f conftest.err conftest.$ac_objext \ 17245 conftest$ac_exeext conftest.$ac_ext 17246LIBS=$ac_check_lib_save_LIBS 17247fi 17248echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17249echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17250if test $ac_cv_lib_dl_dlopen = yes; then 17251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17252else 17253 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17254echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17255if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17256 echo $ECHO_N "(cached) $ECHO_C" >&6 17257else 17258 ac_check_lib_save_LIBS=$LIBS 17259LIBS="-lsvld $LIBS" 17260cat >conftest.$ac_ext <<_ACEOF 17261/* confdefs.h. */ 17262_ACEOF 17263cat confdefs.h >>conftest.$ac_ext 17264cat >>conftest.$ac_ext <<_ACEOF 17265/* end confdefs.h. */ 17266 17267/* Override any gcc2 internal prototype to avoid an error. */ 17268#ifdef __cplusplus 17269extern "C" 17270#endif 17271/* We use char because int might match the return type of a gcc2 17272 builtin and then its argument prototype would still apply. */ 17273char dlopen (); 17274int 17275main () 17276{ 17277dlopen (); 17278 ; 17279 return 0; 17280} 17281_ACEOF 17282rm -f conftest.$ac_objext conftest$ac_exeext 17283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17284 (eval $ac_link) 2>conftest.er1 17285 ac_status=$? 17286 grep -v '^ *+' conftest.er1 >conftest.err 17287 rm -f conftest.er1 17288 cat conftest.err >&5 17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17290 (exit $ac_status); } && 17291 { ac_try='test -z "$ac_cxx_werror_flag" 17292 || test ! -s conftest.err' 17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17294 (eval $ac_try) 2>&5 17295 ac_status=$? 17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17297 (exit $ac_status); }; } && 17298 { ac_try='test -s conftest$ac_exeext' 17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17300 (eval $ac_try) 2>&5 17301 ac_status=$? 17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17303 (exit $ac_status); }; }; then 17304 ac_cv_lib_svld_dlopen=yes 17305else 17306 echo "$as_me: failed program was:" >&5 17307sed 's/^/| /' conftest.$ac_ext >&5 17308 17309ac_cv_lib_svld_dlopen=no 17310fi 17311rm -f conftest.err conftest.$ac_objext \ 17312 conftest$ac_exeext conftest.$ac_ext 17313LIBS=$ac_check_lib_save_LIBS 17314fi 17315echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17316echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17317if test $ac_cv_lib_svld_dlopen = yes; then 17318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17319else 17320 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17321echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17322if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17323 echo $ECHO_N "(cached) $ECHO_C" >&6 17324else 17325 ac_check_lib_save_LIBS=$LIBS 17326LIBS="-ldld $LIBS" 17327cat >conftest.$ac_ext <<_ACEOF 17328/* confdefs.h. */ 17329_ACEOF 17330cat confdefs.h >>conftest.$ac_ext 17331cat >>conftest.$ac_ext <<_ACEOF 17332/* end confdefs.h. */ 17333 17334/* Override any gcc2 internal prototype to avoid an error. */ 17335#ifdef __cplusplus 17336extern "C" 17337#endif 17338/* We use char because int might match the return type of a gcc2 17339 builtin and then its argument prototype would still apply. */ 17340char dld_link (); 17341int 17342main () 17343{ 17344dld_link (); 17345 ; 17346 return 0; 17347} 17348_ACEOF 17349rm -f conftest.$ac_objext conftest$ac_exeext 17350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17351 (eval $ac_link) 2>conftest.er1 17352 ac_status=$? 17353 grep -v '^ *+' conftest.er1 >conftest.err 17354 rm -f conftest.er1 17355 cat conftest.err >&5 17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17357 (exit $ac_status); } && 17358 { ac_try='test -z "$ac_cxx_werror_flag" 17359 || test ! -s conftest.err' 17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17361 (eval $ac_try) 2>&5 17362 ac_status=$? 17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17364 (exit $ac_status); }; } && 17365 { ac_try='test -s conftest$ac_exeext' 17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17367 (eval $ac_try) 2>&5 17368 ac_status=$? 17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17370 (exit $ac_status); }; }; then 17371 ac_cv_lib_dld_dld_link=yes 17372else 17373 echo "$as_me: failed program was:" >&5 17374sed 's/^/| /' conftest.$ac_ext >&5 17375 17376ac_cv_lib_dld_dld_link=no 17377fi 17378rm -f conftest.err conftest.$ac_objext \ 17379 conftest$ac_exeext conftest.$ac_ext 17380LIBS=$ac_check_lib_save_LIBS 17381fi 17382echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 17383echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 17384if test $ac_cv_lib_dld_dld_link = yes; then 17385 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 17386fi 17387 17388 17389fi 17390 17391 17392fi 17393 17394 17395fi 17396 17397 17398fi 17399 17400 17401fi 17402 17403 ;; 17404 esac 17405 17406 if test "x$lt_cv_dlopen" != xno; then 17407 enable_dlopen=yes 17408 else 17409 enable_dlopen=no 17410 fi 17411 17412 case $lt_cv_dlopen in 17413 dlopen) 17414 save_CPPFLAGS="$CPPFLAGS" 17415 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17416 17417 save_LDFLAGS="$LDFLAGS" 17418 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17419 17420 save_LIBS="$LIBS" 17421 LIBS="$lt_cv_dlopen_libs $LIBS" 17422 17423 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 17424echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 17425if test "${lt_cv_dlopen_self+set}" = set; then 17426 echo $ECHO_N "(cached) $ECHO_C" >&6 17427else 17428 if test "$cross_compiling" = yes; then : 17429 lt_cv_dlopen_self=cross 17430else 17431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17432 lt_status=$lt_dlunknown 17433 cat > conftest.$ac_ext <<EOF 17434#line 17434 "configure" 17435#include "confdefs.h" 17436 17437#if HAVE_DLFCN_H 17438#include <dlfcn.h> 17439#endif 17440 17441#include <stdio.h> 17442 17443#ifdef RTLD_GLOBAL 17444# define LT_DLGLOBAL RTLD_GLOBAL 17445#else 17446# ifdef DL_GLOBAL 17447# define LT_DLGLOBAL DL_GLOBAL 17448# else 17449# define LT_DLGLOBAL 0 17450# endif 17451#endif 17452 17453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17454 find out it does not work in some platform. */ 17455#ifndef LT_DLLAZY_OR_NOW 17456# ifdef RTLD_LAZY 17457# define LT_DLLAZY_OR_NOW RTLD_LAZY 17458# else 17459# ifdef DL_LAZY 17460# define LT_DLLAZY_OR_NOW DL_LAZY 17461# else 17462# ifdef RTLD_NOW 17463# define LT_DLLAZY_OR_NOW RTLD_NOW 17464# else 17465# ifdef DL_NOW 17466# define LT_DLLAZY_OR_NOW DL_NOW 17467# else 17468# define LT_DLLAZY_OR_NOW 0 17469# endif 17470# endif 17471# endif 17472# endif 17473#endif 17474 17475#ifdef __cplusplus 17476extern "C" void exit (int); 17477#endif 17478 17479void fnord() { int i=42;} 17480int main () 17481{ 17482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17483 int status = $lt_dlunknown; 17484 17485 if (self) 17486 { 17487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17488 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17489 /* dlclose (self); */ 17490 } 17491 17492 exit (status); 17493} 17494EOF 17495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17496 (eval $ac_link) 2>&5 17497 ac_status=$? 17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17499 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17500 (./conftest; exit; ) >&5 2>/dev/null 17501 lt_status=$? 17502 case x$lt_status in 17503 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17504 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17505 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17506 esac 17507 else : 17508 # compilation failed 17509 lt_cv_dlopen_self=no 17510 fi 17511fi 17512rm -fr conftest* 17513 17514 17515fi 17516echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17517echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17518 17519 if test "x$lt_cv_dlopen_self" = xyes; then 17520 LDFLAGS="$LDFLAGS $link_static_flag" 17521 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17522echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17523if test "${lt_cv_dlopen_self_static+set}" = set; then 17524 echo $ECHO_N "(cached) $ECHO_C" >&6 17525else 17526 if test "$cross_compiling" = yes; then : 17527 lt_cv_dlopen_self_static=cross 17528else 17529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17530 lt_status=$lt_dlunknown 17531 cat > conftest.$ac_ext <<EOF 17532#line 17532 "configure" 17533#include "confdefs.h" 17534 17535#if HAVE_DLFCN_H 17536#include <dlfcn.h> 17537#endif 17538 17539#include <stdio.h> 17540 17541#ifdef RTLD_GLOBAL 17542# define LT_DLGLOBAL RTLD_GLOBAL 17543#else 17544# ifdef DL_GLOBAL 17545# define LT_DLGLOBAL DL_GLOBAL 17546# else 17547# define LT_DLGLOBAL 0 17548# endif 17549#endif 17550 17551/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17552 find out it does not work in some platform. */ 17553#ifndef LT_DLLAZY_OR_NOW 17554# ifdef RTLD_LAZY 17555# define LT_DLLAZY_OR_NOW RTLD_LAZY 17556# else 17557# ifdef DL_LAZY 17558# define LT_DLLAZY_OR_NOW DL_LAZY 17559# else 17560# ifdef RTLD_NOW 17561# define LT_DLLAZY_OR_NOW RTLD_NOW 17562# else 17563# ifdef DL_NOW 17564# define LT_DLLAZY_OR_NOW DL_NOW 17565# else 17566# define LT_DLLAZY_OR_NOW 0 17567# endif 17568# endif 17569# endif 17570# endif 17571#endif 17572 17573#ifdef __cplusplus 17574extern "C" void exit (int); 17575#endif 17576 17577void fnord() { int i=42;} 17578int main () 17579{ 17580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17581 int status = $lt_dlunknown; 17582 17583 if (self) 17584 { 17585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17586 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17587 /* dlclose (self); */ 17588 } 17589 17590 exit (status); 17591} 17592EOF 17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17594 (eval $ac_link) 2>&5 17595 ac_status=$? 17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17597 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17598 (./conftest; exit; ) >&5 2>/dev/null 17599 lt_status=$? 17600 case x$lt_status in 17601 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17602 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17603 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 17604 esac 17605 else : 17606 # compilation failed 17607 lt_cv_dlopen_self_static=no 17608 fi 17609fi 17610rm -fr conftest* 17611 17612 17613fi 17614echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17615echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 17616 fi 17617 17618 CPPFLAGS="$save_CPPFLAGS" 17619 LDFLAGS="$save_LDFLAGS" 17620 LIBS="$save_LIBS" 17621 ;; 17622 esac 17623 17624 case $lt_cv_dlopen_self in 17625 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17626 *) enable_dlopen_self=unknown ;; 17627 esac 17628 17629 case $lt_cv_dlopen_self_static in 17630 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17631 *) enable_dlopen_self_static=unknown ;; 17632 esac 17633fi 17634 17635 17636# The else clause should only fire when bootstrapping the 17637# libtool distribution, otherwise you forgot to ship ltmain.sh 17638# with your package, and you will get complaints that there are 17639# no rules to generate ltmain.sh. 17640if test -f "$ltmain"; then 17641 # See if we are running on zsh, and set the options which allow our commands through 17642 # without removal of \ escapes. 17643 if test -n "${ZSH_VERSION+set}" ; then 17644 setopt NO_GLOB_SUBST 17645 fi 17646 # Now quote all the things that may contain metacharacters while being 17647 # careful not to overquote the AC_SUBSTed values. We take copies of the 17648 # variables and quote the copies for generation of the libtool script. 17649 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 17650 SED SHELL STRIP \ 17651 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17652 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17653 deplibs_check_method reload_flag reload_cmds need_locks \ 17654 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17655 lt_cv_sys_global_symbol_to_c_name_address \ 17656 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17657 old_postinstall_cmds old_postuninstall_cmds \ 17658 compiler_CXX \ 17659 CC_CXX \ 17660 LD_CXX \ 17661 lt_prog_compiler_wl_CXX \ 17662 lt_prog_compiler_pic_CXX \ 17663 lt_prog_compiler_static_CXX \ 17664 lt_prog_compiler_no_builtin_flag_CXX \ 17665 export_dynamic_flag_spec_CXX \ 17666 thread_safe_flag_spec_CXX \ 17667 whole_archive_flag_spec_CXX \ 17668 enable_shared_with_static_runtimes_CXX \ 17669 old_archive_cmds_CXX \ 17670 old_archive_from_new_cmds_CXX \ 17671 predep_objects_CXX \ 17672 postdep_objects_CXX \ 17673 predeps_CXX \ 17674 postdeps_CXX \ 17675 compiler_lib_search_path_CXX \ 17676 archive_cmds_CXX \ 17677 archive_expsym_cmds_CXX \ 17678 postinstall_cmds_CXX \ 17679 postuninstall_cmds_CXX \ 17680 old_archive_from_expsyms_cmds_CXX \ 17681 allow_undefined_flag_CXX \ 17682 no_undefined_flag_CXX \ 17683 export_symbols_cmds_CXX \ 17684 hardcode_libdir_flag_spec_CXX \ 17685 hardcode_libdir_flag_spec_ld_CXX \ 17686 hardcode_libdir_separator_CXX \ 17687 hardcode_automatic_CXX \ 17688 module_cmds_CXX \ 17689 module_expsym_cmds_CXX \ 17690 lt_cv_prog_compiler_c_o_CXX \ 17691 exclude_expsyms_CXX \ 17692 include_expsyms_CXX; do 17693 17694 case $var in 17695 old_archive_cmds_CXX | \ 17696 old_archive_from_new_cmds_CXX | \ 17697 archive_cmds_CXX | \ 17698 archive_expsym_cmds_CXX | \ 17699 module_cmds_CXX | \ 17700 module_expsym_cmds_CXX | \ 17701 old_archive_from_expsyms_cmds_CXX | \ 17702 export_symbols_cmds_CXX | \ 17703 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17704 postinstall_cmds | postuninstall_cmds | \ 17705 old_postinstall_cmds | old_postuninstall_cmds | \ 17706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17707 # Double-quote double-evaled strings. 17708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17709 ;; 17710 *) 17711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17712 ;; 17713 esac 17714 done 17715 17716 case $lt_echo in 17717 *'\$0 --fallback-echo"') 17718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17719 ;; 17720 esac 17721 17722cfgfile="$ofile" 17723 17724 cat <<__EOF__ >> "$cfgfile" 17725# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17726 17727# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17728 17729# Shell to use when invoking shell scripts. 17730SHELL=$lt_SHELL 17731 17732# Whether or not to build shared libraries. 17733build_libtool_libs=$enable_shared 17734 17735# Whether or not to build static libraries. 17736build_old_libs=$enable_static 17737 17738# Whether or not to add -lc for building shared libraries. 17739build_libtool_need_lc=$archive_cmds_need_lc_CXX 17740 17741# Whether or not to disallow shared libs when runtime libs are static 17742allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17743 17744# Whether or not to optimize for fast installation. 17745fast_install=$enable_fast_install 17746 17747# The host system. 17748host_alias=$host_alias 17749host=$host 17750host_os=$host_os 17751 17752# The build system. 17753build_alias=$build_alias 17754build=$build 17755build_os=$build_os 17756 17757# An echo program that does not interpret backslashes. 17758echo=$lt_echo 17759 17760# The archiver. 17761AR=$lt_AR 17762AR_FLAGS=$lt_AR_FLAGS 17763 17764# A C compiler. 17765LTCC=$lt_LTCC 17766 17767# A language-specific compiler. 17768CC=$lt_compiler_CXX 17769 17770# Is the compiler the GNU C compiler? 17771with_gcc=$GCC_CXX 17772 17773# An ERE matcher. 17774EGREP=$lt_EGREP 17775 17776# The linker used to build libraries. 17777LD=$lt_LD_CXX 17778 17779# Whether we need hard or soft links. 17780LN_S=$lt_LN_S 17781 17782# A BSD-compatible nm program. 17783NM=$lt_NM 17784 17785# A symbol stripping program 17786STRIP=$lt_STRIP 17787 17788# Used to examine libraries when file_magic_cmd begins "file" 17789MAGIC_CMD=$MAGIC_CMD 17790 17791# Used on cygwin: DLL creation program. 17792DLLTOOL="$DLLTOOL" 17793 17794# Used on cygwin: object dumper. 17795OBJDUMP="$OBJDUMP" 17796 17797# Used on cygwin: assembler. 17798AS="$AS" 17799 17800# The name of the directory that contains temporary libtool files. 17801objdir=$objdir 17802 17803# How to create reloadable object files. 17804reload_flag=$lt_reload_flag 17805reload_cmds=$lt_reload_cmds 17806 17807# How to pass a linker flag through the compiler. 17808wl=$lt_lt_prog_compiler_wl_CXX 17809 17810# Object file suffix (normally "o"). 17811objext="$ac_objext" 17812 17813# Old archive suffix (normally "a"). 17814libext="$libext" 17815 17816# Shared library suffix (normally ".so"). 17817shrext_cmds='$shrext_cmds' 17818 17819# Executable file suffix (normally ""). 17820exeext="$exeext" 17821 17822# Additional compiler flags for building library objects. 17823pic_flag=$lt_lt_prog_compiler_pic_CXX 17824pic_mode=$pic_mode 17825 17826# What is the maximum length of a command? 17827max_cmd_len=$lt_cv_sys_max_cmd_len 17828 17829# Does compiler simultaneously support -c and -o options? 17830compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17831 17832# Must we lock files when doing compilation? 17833need_locks=$lt_need_locks 17834 17835# Do we need the lib prefix for modules? 17836need_lib_prefix=$need_lib_prefix 17837 17838# Do we need a version for libraries? 17839need_version=$need_version 17840 17841# Whether dlopen is supported. 17842dlopen_support=$enable_dlopen 17843 17844# Whether dlopen of programs is supported. 17845dlopen_self=$enable_dlopen_self 17846 17847# Whether dlopen of statically linked programs is supported. 17848dlopen_self_static=$enable_dlopen_self_static 17849 17850# Compiler flag to prevent dynamic linking. 17851link_static_flag=$lt_lt_prog_compiler_static_CXX 17852 17853# Compiler flag to turn off builtin functions. 17854no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17855 17856# Compiler flag to allow reflexive dlopens. 17857export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17858 17859# Compiler flag to generate shared objects directly from archives. 17860whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17861 17862# Compiler flag to generate thread-safe objects. 17863thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 17864 17865# Library versioning type. 17866version_type=$version_type 17867 17868# Format of library name prefix. 17869libname_spec=$lt_libname_spec 17870 17871# List of archive names. First name is the real one, the rest are links. 17872# The last name is the one that the linker finds with -lNAME. 17873library_names_spec=$lt_library_names_spec 17874 17875# The coded name of the library, if different from the real name. 17876soname_spec=$lt_soname_spec 17877 17878# Commands used to build and install an old-style archive. 17879RANLIB=$lt_RANLIB 17880old_archive_cmds=$lt_old_archive_cmds_CXX 17881old_postinstall_cmds=$lt_old_postinstall_cmds 17882old_postuninstall_cmds=$lt_old_postuninstall_cmds 17883 17884# Create an old-style archive from a shared archive. 17885old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17886 17887# Create a temporary old-style archive to link instead of a shared archive. 17888old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17889 17890# Commands used to build and install a shared archive. 17891archive_cmds=$lt_archive_cmds_CXX 17892archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17893postinstall_cmds=$lt_postinstall_cmds 17894postuninstall_cmds=$lt_postuninstall_cmds 17895 17896# Commands used to build a loadable module (assumed same as above if empty) 17897module_cmds=$lt_module_cmds_CXX 17898module_expsym_cmds=$lt_module_expsym_cmds_CXX 17899 17900# Commands to strip libraries. 17901old_striplib=$lt_old_striplib 17902striplib=$lt_striplib 17903 17904# Dependencies to place before the objects being linked to create a 17905# shared library. 17906predep_objects=$lt_predep_objects_CXX 17907 17908# Dependencies to place after the objects being linked to create a 17909# shared library. 17910postdep_objects=$lt_postdep_objects_CXX 17911 17912# Dependencies to place before the objects being linked to create a 17913# shared library. 17914predeps=$lt_predeps_CXX 17915 17916# Dependencies to place after the objects being linked to create a 17917# shared library. 17918postdeps=$lt_postdeps_CXX 17919 17920# The library search path used internally by the compiler when linking 17921# a shared library. 17922compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17923 17924# Method to check whether dependent libraries are shared objects. 17925deplibs_check_method=$lt_deplibs_check_method 17926 17927# Command to use when deplibs_check_method == file_magic. 17928file_magic_cmd=$lt_file_magic_cmd 17929 17930# Flag that allows shared libraries with undefined symbols to be built. 17931allow_undefined_flag=$lt_allow_undefined_flag_CXX 17932 17933# Flag that forces no undefined symbols. 17934no_undefined_flag=$lt_no_undefined_flag_CXX 17935 17936# Commands used to finish a libtool library installation in a directory. 17937finish_cmds=$lt_finish_cmds 17938 17939# Same as above, but a single script fragment to be evaled but not shown. 17940finish_eval=$lt_finish_eval 17941 17942# Take the output of nm and produce a listing of raw symbols and C names. 17943global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17944 17945# Transform the output of nm in a proper C declaration 17946global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17947 17948# Transform the output of nm in a C name address pair 17949global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17950 17951# This is the shared library runtime path variable. 17952runpath_var=$runpath_var 17953 17954# This is the shared library path variable. 17955shlibpath_var=$shlibpath_var 17956 17957# Is shlibpath searched before the hard-coded library search path? 17958shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17959 17960# How to hardcode a shared library path into an executable. 17961hardcode_action=$hardcode_action_CXX 17962 17963# Whether we should hardcode library paths into libraries. 17964hardcode_into_libs=$hardcode_into_libs 17965 17966# Flag to hardcode \$libdir into a binary during linking. 17967# This must work even if \$libdir does not exist. 17968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17969 17970# If ld is used when linking, flag to hardcode \$libdir into 17971# a binary during linking. This must work even if \$libdir does 17972# not exist. 17973hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17974 17975# Whether we need a single -rpath flag with a separated argument. 17976hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17977 17978# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17979# resulting binary. 17980hardcode_direct=$hardcode_direct_CXX 17981 17982# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17983# resulting binary. 17984hardcode_minus_L=$hardcode_minus_L_CXX 17985 17986# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17987# the resulting binary. 17988hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17989 17990# Set to yes if building a shared library automatically hardcodes DIR into the library 17991# and all subsequent libraries and executables linked against it. 17992hardcode_automatic=$hardcode_automatic_CXX 17993 17994# Variables whose values should be saved in libtool wrapper scripts and 17995# restored at relink time. 17996variables_saved_for_relink="$variables_saved_for_relink" 17997 17998# Whether libtool must link a program against all its dependency libraries. 17999link_all_deplibs=$link_all_deplibs_CXX 18000 18001# Compile-time system search path for libraries 18002sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18003 18004# Run-time system search path for libraries 18005sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18006 18007# Fix the shell variable \$srcfile for the compiler. 18008fix_srcfile_path="$fix_srcfile_path_CXX" 18009 18010# Set to yes if exported symbols are required. 18011always_export_symbols=$always_export_symbols_CXX 18012 18013# The commands to list exported symbols. 18014export_symbols_cmds=$lt_export_symbols_cmds_CXX 18015 18016# The commands to extract the exported symbol list from a shared archive. 18017extract_expsyms_cmds=$lt_extract_expsyms_cmds 18018 18019# Symbols that should not be listed in the preloaded symbols. 18020exclude_expsyms=$lt_exclude_expsyms_CXX 18021 18022# Symbols that must always be exported. 18023include_expsyms=$lt_include_expsyms_CXX 18024 18025# ### END LIBTOOL TAG CONFIG: $tagname 18026 18027__EOF__ 18028 18029 18030else 18031 # If there is no Makefile yet, we rely on a make rule to execute 18032 # `config.status --recheck' to rerun these tests and create the 18033 # libtool script then. 18034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18035 if test -f "$ltmain_in"; then 18036 test -f Makefile && make "$ltmain" 18037 fi 18038fi 18039 18040 18041ac_ext=c 18042ac_cpp='$CPP $CPPFLAGS' 18043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18045ac_compiler_gnu=$ac_cv_c_compiler_gnu 18046 18047CC=$lt_save_CC 18048LDCXX=$LD 18049LD=$lt_save_LD 18050GCC=$lt_save_GCC 18051with_gnu_ldcxx=$with_gnu_ld 18052with_gnu_ld=$lt_save_with_gnu_ld 18053lt_cv_path_LDCXX=$lt_cv_path_LD 18054lt_cv_path_LD=$lt_save_path_LD 18055lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18056lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18057 18058 else 18059 tagname="" 18060 fi 18061 ;; 18062 18063 F77) 18064 if test -n "$F77" && test "X$F77" != "Xno"; then 18065 18066ac_ext=f 18067ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 18068ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18069ac_compiler_gnu=$ac_cv_f77_compiler_gnu 18070 18071 18072archive_cmds_need_lc_F77=no 18073allow_undefined_flag_F77= 18074always_export_symbols_F77=no 18075archive_expsym_cmds_F77= 18076export_dynamic_flag_spec_F77= 18077hardcode_direct_F77=no 18078hardcode_libdir_flag_spec_F77= 18079hardcode_libdir_flag_spec_ld_F77= 18080hardcode_libdir_separator_F77= 18081hardcode_minus_L_F77=no 18082hardcode_automatic_F77=no 18083module_cmds_F77= 18084module_expsym_cmds_F77= 18085link_all_deplibs_F77=unknown 18086old_archive_cmds_F77=$old_archive_cmds 18087no_undefined_flag_F77= 18088whole_archive_flag_spec_F77= 18089enable_shared_with_static_runtimes_F77=no 18090 18091# Source file extension for f77 test sources. 18092ac_ext=f 18093 18094# Object file extension for compiled f77 test sources. 18095objext=o 18096objext_F77=$objext 18097 18098# Code to be used in simple compile tests 18099lt_simple_compile_test_code=" subroutine t\n return\n end\n" 18100 18101# Code to be used in simple link tests 18102lt_simple_link_test_code=" program t\n end\n" 18103 18104# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18105 18106# If no C compiler was specified, use CC. 18107LTCC=${LTCC-"$CC"} 18108 18109# Allow CC to be a program name with arguments. 18110compiler=$CC 18111 18112 18113# save warnings/boilerplate of simple test code 18114ac_outfile=conftest.$ac_objext 18115printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18116eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 18117_lt_compiler_boilerplate=`cat conftest.err` 18118$rm conftest* 18119 18120ac_outfile=conftest.$ac_objext 18121printf "$lt_simple_link_test_code" >conftest.$ac_ext 18122eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 18123_lt_linker_boilerplate=`cat conftest.err` 18124$rm conftest* 18125 18126 18127# Allow CC to be a program name with arguments. 18128lt_save_CC="$CC" 18129CC=${F77-"f77"} 18130compiler=$CC 18131compiler_F77=$CC 18132for cc_temp in $compiler""; do 18133 case $cc_temp in 18134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18136 \-*) ;; 18137 *) break;; 18138 esac 18139done 18140cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18141 18142 18143echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 18144echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 18145echo "$as_me:$LINENO: result: $can_build_shared" >&5 18146echo "${ECHO_T}$can_build_shared" >&6 18147 18148echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 18149echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 18150test "$can_build_shared" = "no" && enable_shared=no 18151 18152# On AIX, shared libraries and static libraries use the same namespace, and 18153# are all built from PIC. 18154case $host_os in 18155aix3*) 18156 test "$enable_shared" = yes && enable_static=no 18157 if test -n "$RANLIB"; then 18158 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18159 postinstall_cmds='$RANLIB $lib' 18160 fi 18161 ;; 18162aix4* | aix5*) 18163 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 18164 test "$enable_shared" = yes && enable_static=no 18165 fi 18166 ;; 18167esac 18168echo "$as_me:$LINENO: result: $enable_shared" >&5 18169echo "${ECHO_T}$enable_shared" >&6 18170 18171echo "$as_me:$LINENO: checking whether to build static libraries" >&5 18172echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 18173# Make sure either enable_shared or enable_static is yes. 18174test "$enable_shared" = yes || enable_static=yes 18175echo "$as_me:$LINENO: result: $enable_static" >&5 18176echo "${ECHO_T}$enable_static" >&6 18177 18178test "$ld_shlibs_F77" = no && can_build_shared=no 18179 18180GCC_F77="$G77" 18181LD_F77="$LD" 18182 18183lt_prog_compiler_wl_F77= 18184lt_prog_compiler_pic_F77= 18185lt_prog_compiler_static_F77= 18186 18187echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 18188echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 18189 18190 if test "$GCC" = yes; then 18191 lt_prog_compiler_wl_F77='-Wl,' 18192 lt_prog_compiler_static_F77='-static' 18193 18194 case $host_os in 18195 aix*) 18196 # All AIX code is PIC. 18197 if test "$host_cpu" = ia64; then 18198 # AIX 5 now supports IA64 processor 18199 lt_prog_compiler_static_F77='-Bstatic' 18200 fi 18201 ;; 18202 18203 amigaos*) 18204 # FIXME: we need at least 68020 code to build shared libraries, but 18205 # adding the `-m68020' flag to GCC prevents building anything better, 18206 # like `-m68040'. 18207 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 18208 ;; 18209 18210 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18211 # PIC is the default for these OSes. 18212 ;; 18213 18214 mingw* | pw32* | os2*) 18215 # This hack is so that the source file can tell whether it is being 18216 # built for inclusion in a dll (and should export symbols for example). 18217 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 18218 ;; 18219 18220 darwin* | rhapsody*) 18221 # PIC is the default on this platform 18222 # Common symbols not allowed in MH_DYLIB files 18223 lt_prog_compiler_pic_F77='-fno-common' 18224 ;; 18225 18226 msdosdjgpp*) 18227 # Just because we use GCC doesn't mean we suddenly get shared libraries 18228 # on systems that don't support them. 18229 lt_prog_compiler_can_build_shared_F77=no 18230 enable_shared=no 18231 ;; 18232 18233 sysv4*MP*) 18234 if test -d /usr/nec; then 18235 lt_prog_compiler_pic_F77=-Kconform_pic 18236 fi 18237 ;; 18238 18239 hpux*) 18240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18241 # not for PA HP-UX. 18242 case $host_cpu in 18243 hppa*64*|ia64*) 18244 # +Z the default 18245 ;; 18246 *) 18247 lt_prog_compiler_pic_F77='-fPIC' 18248 ;; 18249 esac 18250 ;; 18251 18252 *) 18253 lt_prog_compiler_pic_F77='-fPIC' 18254 ;; 18255 esac 18256 else 18257 # PORTME Check for flag to pass linker flags through the system compiler. 18258 case $host_os in 18259 aix*) 18260 lt_prog_compiler_wl_F77='-Wl,' 18261 if test "$host_cpu" = ia64; then 18262 # AIX 5 now supports IA64 processor 18263 lt_prog_compiler_static_F77='-Bstatic' 18264 else 18265 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 18266 fi 18267 ;; 18268 darwin*) 18269 # PIC is the default on this platform 18270 # Common symbols not allowed in MH_DYLIB files 18271 case $cc_basename in 18272 xlc*) 18273 lt_prog_compiler_pic_F77='-qnocommon' 18274 lt_prog_compiler_wl_F77='-Wl,' 18275 ;; 18276 esac 18277 ;; 18278 18279 mingw* | pw32* | os2*) 18280 # This hack is so that the source file can tell whether it is being 18281 # built for inclusion in a dll (and should export symbols for example). 18282 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 18283 ;; 18284 18285 hpux9* | hpux10* | hpux11*) 18286 lt_prog_compiler_wl_F77='-Wl,' 18287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18288 # not for PA HP-UX. 18289 case $host_cpu in 18290 hppa*64*|ia64*) 18291 # +Z the default 18292 ;; 18293 *) 18294 lt_prog_compiler_pic_F77='+Z' 18295 ;; 18296 esac 18297 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18298 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 18299 ;; 18300 18301 irix5* | irix6* | nonstopux*) 18302 lt_prog_compiler_wl_F77='-Wl,' 18303 # PIC (with -KPIC) is the default. 18304 lt_prog_compiler_static_F77='-non_shared' 18305 ;; 18306 18307 newsos6) 18308 lt_prog_compiler_pic_F77='-KPIC' 18309 lt_prog_compiler_static_F77='-Bstatic' 18310 ;; 18311 18312 linux*) 18313 case $cc_basename in 18314 icc* | ecc*) 18315 lt_prog_compiler_wl_F77='-Wl,' 18316 lt_prog_compiler_pic_F77='-KPIC' 18317 lt_prog_compiler_static_F77='-static' 18318 ;; 18319 pgcc* | pgf77* | pgf90* | pgf95*) 18320 # Portland Group compilers (*not* the Pentium gcc compiler, 18321 # which looks to be a dead project) 18322 lt_prog_compiler_wl_F77='-Wl,' 18323 lt_prog_compiler_pic_F77='-fpic' 18324 lt_prog_compiler_static_F77='-Bstatic' 18325 ;; 18326 ccc*) 18327 lt_prog_compiler_wl_F77='-Wl,' 18328 # All Alpha code is PIC. 18329 lt_prog_compiler_static_F77='-non_shared' 18330 ;; 18331 esac 18332 ;; 18333 18334 osf3* | osf4* | osf5*) 18335 lt_prog_compiler_wl_F77='-Wl,' 18336 # All OSF/1 code is PIC. 18337 lt_prog_compiler_static_F77='-non_shared' 18338 ;; 18339 18340 sco3.2v5*) 18341 lt_prog_compiler_pic_F77='-Kpic' 18342 lt_prog_compiler_static_F77='-dn' 18343 ;; 18344 18345 solaris*) 18346 lt_prog_compiler_pic_F77='-KPIC' 18347 lt_prog_compiler_static_F77='-Bstatic' 18348 case $cc_basename in 18349 f77* | f90* | f95*) 18350 lt_prog_compiler_wl_F77='-Qoption ld ';; 18351 *) 18352 lt_prog_compiler_wl_F77='-Wl,';; 18353 esac 18354 ;; 18355 18356 sunos4*) 18357 lt_prog_compiler_wl_F77='-Qoption ld ' 18358 lt_prog_compiler_pic_F77='-PIC' 18359 lt_prog_compiler_static_F77='-Bstatic' 18360 ;; 18361 18362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18363 lt_prog_compiler_wl_F77='-Wl,' 18364 lt_prog_compiler_pic_F77='-KPIC' 18365 lt_prog_compiler_static_F77='-Bstatic' 18366 ;; 18367 18368 sysv4*MP*) 18369 if test -d /usr/nec ;then 18370 lt_prog_compiler_pic_F77='-Kconform_pic' 18371 lt_prog_compiler_static_F77='-Bstatic' 18372 fi 18373 ;; 18374 18375 unicos*) 18376 lt_prog_compiler_wl_F77='-Wl,' 18377 lt_prog_compiler_can_build_shared_F77=no 18378 ;; 18379 18380 uts4*) 18381 lt_prog_compiler_pic_F77='-pic' 18382 lt_prog_compiler_static_F77='-Bstatic' 18383 ;; 18384 18385 *) 18386 lt_prog_compiler_can_build_shared_F77=no 18387 ;; 18388 esac 18389 fi 18390 18391echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 18392echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 18393 18394# 18395# Check to make sure the PIC flag actually works. 18396# 18397if test -n "$lt_prog_compiler_pic_F77"; then 18398 18399echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 18400echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 18401if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 18402 echo $ECHO_N "(cached) $ECHO_C" >&6 18403else 18404 lt_prog_compiler_pic_works_F77=no 18405 ac_outfile=conftest.$ac_objext 18406 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18407 lt_compiler_flag="$lt_prog_compiler_pic_F77" 18408 # Insert the option either (1) after the last *FLAGS variable, or 18409 # (2) before a word containing "conftest.", or (3) at the end. 18410 # Note that $ac_compile itself does not contain backslashes and begins 18411 # with a dollar sign (not a hyphen), so the echo should work correctly. 18412 # The option is referenced via a variable to avoid confusing sed. 18413 lt_compile=`echo "$ac_compile" | $SED \ 18414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18416 -e 's:$: $lt_compiler_flag:'` 18417 (eval echo "\"\$as_me:18417: $lt_compile\"" >&5) 18418 (eval "$lt_compile" 2>conftest.err) 18419 ac_status=$? 18420 cat conftest.err >&5 18421 echo "$as_me:18421: \$? = $ac_status" >&5 18422 if (exit $ac_status) && test -s "$ac_outfile"; then 18423 # The compiler can only warn and ignore the option if not recognized 18424 # So say no if there are warnings other than the usual output. 18425 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 18426 $SED '/^$/d' conftest.err >conftest.er2 18427 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 18428 lt_prog_compiler_pic_works_F77=yes 18429 fi 18430 fi 18431 $rm conftest* 18432 18433fi 18434echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 18435echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 18436 18437if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 18438 case $lt_prog_compiler_pic_F77 in 18439 "" | " "*) ;; 18440 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 18441 esac 18442else 18443 lt_prog_compiler_pic_F77= 18444 lt_prog_compiler_can_build_shared_F77=no 18445fi 18446 18447fi 18448case $host_os in 18449 # For platforms which do not support PIC, -DPIC is meaningless: 18450 *djgpp*) 18451 lt_prog_compiler_pic_F77= 18452 ;; 18453 *) 18454 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 18455 ;; 18456esac 18457 18458echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18459echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 18460if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 18461 echo $ECHO_N "(cached) $ECHO_C" >&6 18462else 18463 lt_cv_prog_compiler_c_o_F77=no 18464 $rm -r conftest 2>/dev/null 18465 mkdir conftest 18466 cd conftest 18467 mkdir out 18468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18469 18470 lt_compiler_flag="-o out/conftest2.$ac_objext" 18471 # Insert the option either (1) after the last *FLAGS variable, or 18472 # (2) before a word containing "conftest.", or (3) at the end. 18473 # Note that $ac_compile itself does not contain backslashes and begins 18474 # with a dollar sign (not a hyphen), so the echo should work correctly. 18475 lt_compile=`echo "$ac_compile" | $SED \ 18476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18478 -e 's:$: $lt_compiler_flag:'` 18479 (eval echo "\"\$as_me:18479: $lt_compile\"" >&5) 18480 (eval "$lt_compile" 2>out/conftest.err) 18481 ac_status=$? 18482 cat out/conftest.err >&5 18483 echo "$as_me:18483: \$? = $ac_status" >&5 18484 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18485 then 18486 # The compiler can only warn and ignore the option if not recognized 18487 # So say no if there are warnings 18488 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 18489 $SED '/^$/d' out/conftest.err >out/conftest.er2 18490 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18491 lt_cv_prog_compiler_c_o_F77=yes 18492 fi 18493 fi 18494 chmod u+w . 2>&5 18495 $rm conftest* 18496 # SGI C++ compiler will create directory out/ii_files/ for 18497 # template instantiation 18498 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18499 $rm out/* && rmdir out 18500 cd .. 18501 rmdir conftest 18502 $rm conftest* 18503 18504fi 18505echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 18506echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 18507 18508 18509hard_links="nottested" 18510if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 18511 # do not overwrite the value of need_locks provided by the user 18512 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 18514 hard_links=yes 18515 $rm conftest* 18516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18517 touch conftest.a 18518 ln conftest.a conftest.b 2>&5 || hard_links=no 18519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18520 echo "$as_me:$LINENO: result: $hard_links" >&5 18521echo "${ECHO_T}$hard_links" >&6 18522 if test "$hard_links" = no; then 18523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18525 need_locks=warn 18526 fi 18527else 18528 need_locks=no 18529fi 18530 18531echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 18533 18534 runpath_var= 18535 allow_undefined_flag_F77= 18536 enable_shared_with_static_runtimes_F77=no 18537 archive_cmds_F77= 18538 archive_expsym_cmds_F77= 18539 old_archive_From_new_cmds_F77= 18540 old_archive_from_expsyms_cmds_F77= 18541 export_dynamic_flag_spec_F77= 18542 whole_archive_flag_spec_F77= 18543 thread_safe_flag_spec_F77= 18544 hardcode_libdir_flag_spec_F77= 18545 hardcode_libdir_flag_spec_ld_F77= 18546 hardcode_libdir_separator_F77= 18547 hardcode_direct_F77=no 18548 hardcode_minus_L_F77=no 18549 hardcode_shlibpath_var_F77=unsupported 18550 link_all_deplibs_F77=unknown 18551 hardcode_automatic_F77=no 18552 module_cmds_F77= 18553 module_expsym_cmds_F77= 18554 always_export_symbols_F77=no 18555 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18556 # include_expsyms should be a list of space-separated symbols to be *always* 18557 # included in the symbol list 18558 include_expsyms_F77= 18559 # exclude_expsyms can be an extended regexp of symbols to exclude 18560 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18561 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18562 # as well as any symbol that contains `d'. 18563 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 18564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18565 # platforms (ab)use it in PIC code, but their linkers get confused if 18566 # the symbol is explicitly referenced. Since portable code cannot 18567 # rely on this symbol name, it's probably fine to never include it in 18568 # preloaded symbol tables. 18569 extract_expsyms_cmds= 18570 # Just being paranoid about ensuring that cc_basename is set. 18571 for cc_temp in $compiler""; do 18572 case $cc_temp in 18573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18575 \-*) ;; 18576 *) break;; 18577 esac 18578done 18579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18580 18581 case $host_os in 18582 cygwin* | mingw* | pw32*) 18583 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18584 # When not using gcc, we currently assume that we are using 18585 # Microsoft Visual C++. 18586 if test "$GCC" != yes; then 18587 with_gnu_ld=no 18588 fi 18589 ;; 18590 openbsd*) 18591 with_gnu_ld=no 18592 ;; 18593 esac 18594 18595 ld_shlibs_F77=yes 18596 if test "$with_gnu_ld" = yes; then 18597 # If archive_cmds runs LD, not CC, wlarc should be empty 18598 wlarc='${wl}' 18599 18600 # Set some defaults for GNU ld with shared library support. These 18601 # are reset later if shared libraries are not supported. Putting them 18602 # here allows them to be overridden if necessary. 18603 runpath_var=LD_RUN_PATH 18604 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 18605 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 18606 # ancient GNU ld didn't support --whole-archive et. al. 18607 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18608 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18609 else 18610 whole_archive_flag_spec_F77= 18611 fi 18612 supports_anon_versioning=no 18613 case `$LD -v 2>/dev/null` in 18614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18617 *\ 2.11.*) ;; # other 2.11 versions 18618 *) supports_anon_versioning=yes ;; 18619 esac 18620 18621 # See if GNU ld supports shared libraries. 18622 case $host_os in 18623 aix3* | aix4* | aix5*) 18624 # On AIX/PPC, the GNU linker is very broken 18625 if test "$host_cpu" != ia64; then 18626 ld_shlibs_F77=no 18627 cat <<EOF 1>&2 18628 18629*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18630*** to be unable to reliably create shared libraries on AIX. 18631*** Therefore, libtool is disabling shared libraries support. If you 18632*** really care for shared libraries, you may want to modify your PATH 18633*** so that a non-GNU linker is found, and then restart. 18634 18635EOF 18636 fi 18637 ;; 18638 18639 amigaos*) 18640 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)' 18641 hardcode_libdir_flag_spec_F77='-L$libdir' 18642 hardcode_minus_L_F77=yes 18643 18644 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18645 # that the semantics of dynamic libraries on AmigaOS, at least up 18646 # to version 4, is to share data among multiple programs linked 18647 # with the same dynamic library. Since this doesn't match the 18648 # behavior of shared libraries on other platforms, we can't use 18649 # them. 18650 ld_shlibs_F77=no 18651 ;; 18652 18653 beos*) 18654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18655 allow_undefined_flag_F77=unsupported 18656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18657 # support --undefined. This deserves some investigation. FIXME 18658 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18659 else 18660 ld_shlibs_F77=no 18661 fi 18662 ;; 18663 18664 cygwin* | mingw* | pw32*) 18665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 18666 # as there is no search path for DLLs. 18667 hardcode_libdir_flag_spec_F77='-L$libdir' 18668 allow_undefined_flag_F77=unsupported 18669 always_export_symbols_F77=no 18670 enable_shared_with_static_runtimes_F77=yes 18671 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 18672 18673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18674 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 18675 # If the export-symbols file already is a .def file (1st line 18676 # is EXPORTS), use it as is; otherwise, prepend... 18677 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18678 cp $export_symbols $output_objdir/$soname.def; 18679 else 18680 echo EXPORTS > $output_objdir/$soname.def; 18681 cat $export_symbols >> $output_objdir/$soname.def; 18682 fi~ 18683 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 18684 else 18685 ld_shlibs_F77=no 18686 fi 18687 ;; 18688 18689 linux*) 18690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18691 tmp_addflag= 18692 case $cc_basename,$host_cpu in 18693 pgcc*) # Portland Group C compiler 18694 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18695 tmp_addflag=' $pic_flag' 18696 ;; 18697 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18698 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18699 tmp_addflag=' $pic_flag -Mnomain' ;; 18700 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18701 tmp_addflag=' -i_dynamic' ;; 18702 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18703 tmp_addflag=' -i_dynamic -nofor_main' ;; 18704 ifc* | ifort*) # Intel Fortran compiler 18705 tmp_addflag=' -nofor_main' ;; 18706 esac 18707 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18708 18709 if test $supports_anon_versioning = yes; then 18710 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 18711 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18712 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18713 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18714 fi 18715 else 18716 ld_shlibs_F77=no 18717 fi 18718 ;; 18719 18720 netbsd*) 18721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18722 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18723 wlarc= 18724 else 18725 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18726 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18727 fi 18728 ;; 18729 18730 solaris* | sysv5*) 18731 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18732 ld_shlibs_F77=no 18733 cat <<EOF 1>&2 18734 18735*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18736*** create shared libraries on Solaris systems. Therefore, libtool 18737*** is disabling shared libraries support. We urge you to upgrade GNU 18738*** binutils to release 2.9.1 or newer. Another option is to modify 18739*** your PATH or compiler configuration so that the native linker is 18740*** used, and then restart. 18741 18742EOF 18743 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18744 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18745 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18746 else 18747 ld_shlibs_F77=no 18748 fi 18749 ;; 18750 18751 sunos4*) 18752 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18753 wlarc= 18754 hardcode_direct_F77=yes 18755 hardcode_shlibpath_var_F77=no 18756 ;; 18757 18758 *) 18759 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18760 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18761 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18762 else 18763 ld_shlibs_F77=no 18764 fi 18765 ;; 18766 esac 18767 18768 if test "$ld_shlibs_F77" = no; then 18769 runpath_var= 18770 hardcode_libdir_flag_spec_F77= 18771 export_dynamic_flag_spec_F77= 18772 whole_archive_flag_spec_F77= 18773 fi 18774 else 18775 # PORTME fill in a description of your system's linker (not GNU ld) 18776 case $host_os in 18777 aix3*) 18778 allow_undefined_flag_F77=unsupported 18779 always_export_symbols_F77=yes 18780 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' 18781 # Note: this linker hardcodes the directories in LIBPATH if there 18782 # are no directories specified by -L. 18783 hardcode_minus_L_F77=yes 18784 if test "$GCC" = yes && test -z "$link_static_flag"; then 18785 # Neither direct hardcoding nor static linking is supported with a 18786 # broken collect2. 18787 hardcode_direct_F77=unsupported 18788 fi 18789 ;; 18790 18791 aix4* | aix5*) 18792 if test "$host_cpu" = ia64; then 18793 # On IA64, the linker does run time linking by default, so we don't 18794 # have to do anything special. 18795 aix_use_runtimelinking=no 18796 exp_sym_flag='-Bexport' 18797 no_entry_flag="" 18798 else 18799 # If we're using GNU nm, then we don't want the "-C" option. 18800 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18801 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18802 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' 18803 else 18804 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' 18805 fi 18806 aix_use_runtimelinking=no 18807 18808 # Test if we are trying to use run time linking or normal 18809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18810 # need to do runtime linking. 18811 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 18812 for ld_flag in $LDFLAGS; do 18813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18814 aix_use_runtimelinking=yes 18815 break 18816 fi 18817 done 18818 esac 18819 18820 exp_sym_flag='-bexport' 18821 no_entry_flag='-bnoentry' 18822 fi 18823 18824 # When large executables or shared objects are built, AIX ld can 18825 # have problems creating the table of contents. If linking a library 18826 # or program results in "error TOC overflow" add -mminimal-toc to 18827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18829 18830 archive_cmds_F77='' 18831 hardcode_direct_F77=yes 18832 hardcode_libdir_separator_F77=':' 18833 link_all_deplibs_F77=yes 18834 18835 if test "$GCC" = yes; then 18836 case $host_os in aix4.[012]|aix4.[012].*) 18837 # We only want to do this on AIX 4.2 and lower, the check 18838 # below for broken collect2 doesn't work under 4.3+ 18839 collect2name=`${CC} -print-prog-name=collect2` 18840 if test -f "$collect2name" && \ 18841 strings "$collect2name" | grep resolve_lib_name >/dev/null 18842 then 18843 # We have reworked collect2 18844 hardcode_direct_F77=yes 18845 else 18846 # We have old collect2 18847 hardcode_direct_F77=unsupported 18848 # It fails to find uninstalled libraries when the uninstalled 18849 # path is not listed in the libpath. Setting hardcode_minus_L 18850 # to unsupported forces relinking 18851 hardcode_minus_L_F77=yes 18852 hardcode_libdir_flag_spec_F77='-L$libdir' 18853 hardcode_libdir_separator_F77= 18854 fi 18855 esac 18856 shared_flag='-shared' 18857 if test "$aix_use_runtimelinking" = yes; then 18858 shared_flag="$shared_flag "'${wl}-G' 18859 fi 18860 else 18861 # not using gcc 18862 if test "$host_cpu" = ia64; then 18863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18864 # chokes on -Wl,-G. The following line is correct: 18865 shared_flag='-G' 18866 else 18867 if test "$aix_use_runtimelinking" = yes; then 18868 shared_flag='${wl}-G' 18869 else 18870 shared_flag='${wl}-bM:SRE' 18871 fi 18872 fi 18873 fi 18874 18875 # It seems that -bexpall does not export symbols beginning with 18876 # underscore (_), so it is better to generate a list of symbols to export. 18877 always_export_symbols_F77=yes 18878 if test "$aix_use_runtimelinking" = yes; then 18879 # Warning - without using the other runtime loading flags (-brtl), 18880 # -berok will link without error, but may produce a broken library. 18881 allow_undefined_flag_F77='-berok' 18882 # Determine the default libpath from the value encoded in an empty executable. 18883 cat >conftest.$ac_ext <<_ACEOF 18884 program main 18885 18886 end 18887_ACEOF 18888rm -f conftest.$ac_objext conftest$ac_exeext 18889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18890 (eval $ac_link) 2>conftest.er1 18891 ac_status=$? 18892 grep -v '^ *+' conftest.er1 >conftest.err 18893 rm -f conftest.er1 18894 cat conftest.err >&5 18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18896 (exit $ac_status); } && 18897 { ac_try='test -z "$ac_f77_werror_flag" 18898 || test ! -s conftest.err' 18899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18900 (eval $ac_try) 2>&5 18901 ac_status=$? 18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18903 (exit $ac_status); }; } && 18904 { ac_try='test -s conftest$ac_exeext' 18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18906 (eval $ac_try) 2>&5 18907 ac_status=$? 18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18909 (exit $ac_status); }; }; then 18910 18911aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18912}'` 18913# Check for a 64-bit object if we didn't find anything. 18914if 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; } 18915}'`; fi 18916else 18917 echo "$as_me: failed program was:" >&5 18918sed 's/^/| /' conftest.$ac_ext >&5 18919 18920fi 18921rm -f conftest.err conftest.$ac_objext \ 18922 conftest$ac_exeext conftest.$ac_ext 18923if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18924 18925 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 18926 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" 18927 else 18928 if test "$host_cpu" = ia64; then 18929 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 18930 allow_undefined_flag_F77="-z nodefs" 18931 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" 18932 else 18933 # Determine the default libpath from the value encoded in an empty executable. 18934 cat >conftest.$ac_ext <<_ACEOF 18935 program main 18936 18937 end 18938_ACEOF 18939rm -f conftest.$ac_objext conftest$ac_exeext 18940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18941 (eval $ac_link) 2>conftest.er1 18942 ac_status=$? 18943 grep -v '^ *+' conftest.er1 >conftest.err 18944 rm -f conftest.er1 18945 cat conftest.err >&5 18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18947 (exit $ac_status); } && 18948 { ac_try='test -z "$ac_f77_werror_flag" 18949 || test ! -s conftest.err' 18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18951 (eval $ac_try) 2>&5 18952 ac_status=$? 18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18954 (exit $ac_status); }; } && 18955 { ac_try='test -s conftest$ac_exeext' 18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18957 (eval $ac_try) 2>&5 18958 ac_status=$? 18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18960 (exit $ac_status); }; }; then 18961 18962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18963}'` 18964# Check for a 64-bit object if we didn't find anything. 18965if 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; } 18966}'`; fi 18967else 18968 echo "$as_me: failed program was:" >&5 18969sed 's/^/| /' conftest.$ac_ext >&5 18970 18971fi 18972rm -f conftest.err conftest.$ac_objext \ 18973 conftest$ac_exeext conftest.$ac_ext 18974if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18975 18976 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 18977 # Warning - without using the other run time loading flags, 18978 # -berok will link without error, but may produce a broken library. 18979 no_undefined_flag_F77=' ${wl}-bernotok' 18980 allow_undefined_flag_F77=' ${wl}-berok' 18981 # -bexpall does not export symbols beginning with underscore (_) 18982 always_export_symbols_F77=yes 18983 # Exported symbols can be pulled into shared objects from archives 18984 whole_archive_flag_spec_F77=' ' 18985 archive_cmds_need_lc_F77=yes 18986 # This is similar to how AIX traditionally builds its shared libraries. 18987 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' 18988 fi 18989 fi 18990 ;; 18991 18992 amigaos*) 18993 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)' 18994 hardcode_libdir_flag_spec_F77='-L$libdir' 18995 hardcode_minus_L_F77=yes 18996 # see comment about different semantics on the GNU ld section 18997 ld_shlibs_F77=no 18998 ;; 18999 19000 bsdi[45]*) 19001 export_dynamic_flag_spec_F77=-rdynamic 19002 ;; 19003 19004 cygwin* | mingw* | pw32*) 19005 # When not using gcc, we currently assume that we are using 19006 # Microsoft Visual C++. 19007 # hardcode_libdir_flag_spec is actually meaningless, as there is 19008 # no search path for DLLs. 19009 hardcode_libdir_flag_spec_F77=' ' 19010 allow_undefined_flag_F77=unsupported 19011 # Tell ltmain to make .lib files, not .a files. 19012 libext=lib 19013 # Tell ltmain to make .dll files, not .so files. 19014 shrext_cmds=".dll" 19015 # FIXME: Setting linknames here is a bad hack. 19016 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 19017 # The linker will automatically build a .lib file if we build a DLL. 19018 old_archive_From_new_cmds_F77='true' 19019 # FIXME: Should let the user specify the lib program. 19020 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 19021 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 19022 enable_shared_with_static_runtimes_F77=yes 19023 ;; 19024 19025 darwin* | rhapsody*) 19026 case $host_os in 19027 rhapsody* | darwin1.[012]) 19028 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 19029 ;; 19030 *) # Darwin 1.3 on 19031 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 19032 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19033 else 19034 case ${MACOSX_DEPLOYMENT_TARGET} in 19035 10.[012]) 19036 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19037 ;; 19038 10.*) 19039 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 19040 ;; 19041 esac 19042 fi 19043 ;; 19044 esac 19045 archive_cmds_need_lc_F77=no 19046 hardcode_direct_F77=no 19047 hardcode_automatic_F77=yes 19048 hardcode_shlibpath_var_F77=unsupported 19049 whole_archive_flag_spec_F77='' 19050 link_all_deplibs_F77=yes 19051 if test "$GCC" = yes ; then 19052 output_verbose_link_cmd='echo' 19053 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 19054 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19055 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19056 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19057 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19058 else 19059 case $cc_basename in 19060 xlc*) 19061 output_verbose_link_cmd='echo' 19062 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 19063 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19064 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19065 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19066 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19067 ;; 19068 *) 19069 ld_shlibs_F77=no 19070 ;; 19071 esac 19072 fi 19073 ;; 19074 19075 dgux*) 19076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19077 hardcode_libdir_flag_spec_F77='-L$libdir' 19078 hardcode_shlibpath_var_F77=no 19079 ;; 19080 19081 freebsd1*) 19082 ld_shlibs_F77=no 19083 ;; 19084 19085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19086 # support. Future versions do this automatically, but an explicit c++rt0.o 19087 # does not break anything, and helps significantly (at the cost of a little 19088 # extra space). 19089 freebsd2.2*) 19090 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19091 hardcode_libdir_flag_spec_F77='-R$libdir' 19092 hardcode_direct_F77=yes 19093 hardcode_shlibpath_var_F77=no 19094 ;; 19095 19096 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19097 freebsd2*) 19098 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19099 hardcode_direct_F77=yes 19100 hardcode_minus_L_F77=yes 19101 hardcode_shlibpath_var_F77=no 19102 ;; 19103 19104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19105 freebsd* | kfreebsd*-gnu | dragonfly*) 19106 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 19107 hardcode_libdir_flag_spec_F77='-R$libdir' 19108 hardcode_direct_F77=yes 19109 hardcode_shlibpath_var_F77=no 19110 ;; 19111 19112 hpux9*) 19113 if test "$GCC" = yes; then 19114 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' 19115 else 19116 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' 19117 fi 19118 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 19119 hardcode_libdir_separator_F77=: 19120 hardcode_direct_F77=yes 19121 19122 # hardcode_minus_L: Not really in the search PATH, 19123 # but as the default location of the library. 19124 hardcode_minus_L_F77=yes 19125 export_dynamic_flag_spec_F77='${wl}-E' 19126 ;; 19127 19128 hpux10* | hpux11*) 19129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19130 case $host_cpu in 19131 hppa*64*|ia64*) 19132 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19133 ;; 19134 *) 19135 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19136 ;; 19137 esac 19138 else 19139 case $host_cpu in 19140 hppa*64*|ia64*) 19141 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 19142 ;; 19143 *) 19144 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19145 ;; 19146 esac 19147 fi 19148 if test "$with_gnu_ld" = no; then 19149 case $host_cpu in 19150 hppa*64*) 19151 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 19152 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 19153 hardcode_libdir_separator_F77=: 19154 hardcode_direct_F77=no 19155 hardcode_shlibpath_var_F77=no 19156 ;; 19157 ia64*) 19158 hardcode_libdir_flag_spec_F77='-L$libdir' 19159 hardcode_direct_F77=no 19160 hardcode_shlibpath_var_F77=no 19161 19162 # hardcode_minus_L: Not really in the search PATH, 19163 # but as the default location of the library. 19164 hardcode_minus_L_F77=yes 19165 ;; 19166 *) 19167 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 19168 hardcode_libdir_separator_F77=: 19169 hardcode_direct_F77=yes 19170 export_dynamic_flag_spec_F77='${wl}-E' 19171 19172 # hardcode_minus_L: Not really in the search PATH, 19173 # but as the default location of the library. 19174 hardcode_minus_L_F77=yes 19175 ;; 19176 esac 19177 fi 19178 ;; 19179 19180 irix5* | irix6* | nonstopux*) 19181 if test "$GCC" = yes; then 19182 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' 19183 else 19184 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' 19185 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 19186 fi 19187 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 19188 hardcode_libdir_separator_F77=: 19189 link_all_deplibs_F77=yes 19190 ;; 19191 19192 netbsd*) 19193 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19194 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19195 else 19196 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19197 fi 19198 hardcode_libdir_flag_spec_F77='-R$libdir' 19199 hardcode_direct_F77=yes 19200 hardcode_shlibpath_var_F77=no 19201 ;; 19202 19203 newsos6) 19204 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19205 hardcode_direct_F77=yes 19206 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 19207 hardcode_libdir_separator_F77=: 19208 hardcode_shlibpath_var_F77=no 19209 ;; 19210 19211 openbsd*) 19212 hardcode_direct_F77=yes 19213 hardcode_shlibpath_var_F77=no 19214 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19215 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19216 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19217 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 19218 export_dynamic_flag_spec_F77='${wl}-E' 19219 else 19220 case $host_os in 19221 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19222 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19223 hardcode_libdir_flag_spec_F77='-R$libdir' 19224 ;; 19225 *) 19226 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19227 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 19228 ;; 19229 esac 19230 fi 19231 ;; 19232 19233 os2*) 19234 hardcode_libdir_flag_spec_F77='-L$libdir' 19235 hardcode_minus_L_F77=yes 19236 allow_undefined_flag_F77=unsupported 19237 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' 19238 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19239 ;; 19240 19241 osf3*) 19242 if test "$GCC" = yes; then 19243 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 19244 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' 19245 else 19246 allow_undefined_flag_F77=' -expect_unresolved \*' 19247 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' 19248 fi 19249 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 19250 hardcode_libdir_separator_F77=: 19251 ;; 19252 19253 osf4* | osf5*) # as osf3* with the addition of -msym flag 19254 if test "$GCC" = yes; then 19255 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 19256 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' 19257 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 19258 else 19259 allow_undefined_flag_F77=' -expect_unresolved \*' 19260 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' 19261 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~ 19262 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 19263 19264 # Both c and cxx compiler support -rpath directly 19265 hardcode_libdir_flag_spec_F77='-rpath $libdir' 19266 fi 19267 hardcode_libdir_separator_F77=: 19268 ;; 19269 19270 sco3.2v5*) 19271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19272 hardcode_shlibpath_var_F77=no 19273 export_dynamic_flag_spec_F77='${wl}-Bexport' 19274 runpath_var=LD_RUN_PATH 19275 hardcode_runpath_var=yes 19276 ;; 19277 19278 solaris*) 19279 no_undefined_flag_F77=' -z text' 19280 if test "$GCC" = yes; then 19281 wlarc='${wl}' 19282 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19283 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19284 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19285 else 19286 wlarc='' 19287 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19288 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19290 fi 19291 hardcode_libdir_flag_spec_F77='-R$libdir' 19292 hardcode_shlibpath_var_F77=no 19293 case $host_os in 19294 solaris2.[0-5] | solaris2.[0-5].*) ;; 19295 *) 19296 # The compiler driver will combine linker options so we 19297 # cannot just pass the convience library names through 19298 # without $wl, iff we do not link with $LD. 19299 # Luckily, gcc supports the same syntax we need for Sun Studio. 19300 # Supported since Solaris 2.6 (maybe 2.5.1?) 19301 case $wlarc in 19302 '') 19303 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 19304 *) 19305 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 19306 esac ;; 19307 esac 19308 link_all_deplibs_F77=yes 19309 ;; 19310 19311 sunos4*) 19312 if test "x$host_vendor" = xsequent; then 19313 # Use $CC to link under sequent, because it throws in some extra .o 19314 # files that make .init and .fini sections work. 19315 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19316 else 19317 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19318 fi 19319 hardcode_libdir_flag_spec_F77='-L$libdir' 19320 hardcode_direct_F77=yes 19321 hardcode_minus_L_F77=yes 19322 hardcode_shlibpath_var_F77=no 19323 ;; 19324 19325 sysv4) 19326 case $host_vendor in 19327 sni) 19328 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19329 hardcode_direct_F77=yes # is this really true??? 19330 ;; 19331 siemens) 19332 ## LD is ld it makes a PLAMLIB 19333 ## CC just makes a GrossModule. 19334 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19335 reload_cmds_F77='$CC -r -o $output$reload_objs' 19336 hardcode_direct_F77=no 19337 ;; 19338 motorola) 19339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19340 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 19341 ;; 19342 esac 19343 runpath_var='LD_RUN_PATH' 19344 hardcode_shlibpath_var_F77=no 19345 ;; 19346 19347 sysv4.3*) 19348 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19349 hardcode_shlibpath_var_F77=no 19350 export_dynamic_flag_spec_F77='-Bexport' 19351 ;; 19352 19353 sysv4*MP*) 19354 if test -d /usr/nec; then 19355 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19356 hardcode_shlibpath_var_F77=no 19357 runpath_var=LD_RUN_PATH 19358 hardcode_runpath_var=yes 19359 ld_shlibs_F77=yes 19360 fi 19361 ;; 19362 19363 sysv4.2uw2*) 19364 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19365 hardcode_direct_F77=yes 19366 hardcode_minus_L_F77=no 19367 hardcode_shlibpath_var_F77=no 19368 hardcode_runpath_var=yes 19369 runpath_var=LD_RUN_PATH 19370 ;; 19371 19372 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 19373 no_undefined_flag_F77='${wl}-z ${wl}text' 19374 if test "$GCC" = yes; then 19375 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19376 else 19377 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19378 fi 19379 runpath_var='LD_RUN_PATH' 19380 hardcode_shlibpath_var_F77=no 19381 ;; 19382 19383 sysv5*) 19384 no_undefined_flag_F77=' -z text' 19385 # $CC -shared without GNU ld will not create a library from C++ 19386 # object files and a static libstdc++, better avoid it by now 19387 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19388 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19389 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19390 hardcode_libdir_flag_spec_F77= 19391 hardcode_shlibpath_var_F77=no 19392 runpath_var='LD_RUN_PATH' 19393 ;; 19394 19395 uts4*) 19396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19397 hardcode_libdir_flag_spec_F77='-L$libdir' 19398 hardcode_shlibpath_var_F77=no 19399 ;; 19400 19401 *) 19402 ld_shlibs_F77=no 19403 ;; 19404 esac 19405 fi 19406 19407echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 19408echo "${ECHO_T}$ld_shlibs_F77" >&6 19409test "$ld_shlibs_F77" = no && can_build_shared=no 19410 19411variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19412if test "$GCC" = yes; then 19413 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19414fi 19415 19416# 19417# Do we need to explicitly link libc? 19418# 19419case "x$archive_cmds_need_lc_F77" in 19420x|xyes) 19421 # Assume -lc should be added 19422 archive_cmds_need_lc_F77=yes 19423 19424 if test "$enable_shared" = yes && test "$GCC" = yes; then 19425 case $archive_cmds_F77 in 19426 *'~'*) 19427 # FIXME: we may have to deal with multi-command sequences. 19428 ;; 19429 '$CC '*) 19430 # Test whether the compiler implicitly links with -lc since on some 19431 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19432 # to ld, don't add -lc before -lgcc. 19433 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19434echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 19435 $rm conftest* 19436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19437 19438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19439 (eval $ac_compile) 2>&5 19440 ac_status=$? 19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19442 (exit $ac_status); } 2>conftest.err; then 19443 soname=conftest 19444 lib=conftest 19445 libobjs=conftest.$ac_objext 19446 deplibs= 19447 wl=$lt_prog_compiler_wl_F77 19448 compiler_flags=-v 19449 linker_flags=-v 19450 verstring= 19451 output_objdir=. 19452 libname=conftest 19453 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 19454 allow_undefined_flag_F77= 19455 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19456 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19457 ac_status=$? 19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19459 (exit $ac_status); } 19460 then 19461 archive_cmds_need_lc_F77=no 19462 else 19463 archive_cmds_need_lc_F77=yes 19464 fi 19465 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 19466 else 19467 cat conftest.err 1>&5 19468 fi 19469 $rm conftest* 19470 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 19471echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 19472 ;; 19473 esac 19474 fi 19475 ;; 19476esac 19477 19478echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19479echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 19480library_names_spec= 19481libname_spec='lib$name' 19482soname_spec= 19483shrext_cmds=".so" 19484postinstall_cmds= 19485postuninstall_cmds= 19486finish_cmds= 19487finish_eval= 19488shlibpath_var= 19489shlibpath_overrides_runpath=unknown 19490version_type=none 19491dynamic_linker="$host_os ld.so" 19492sys_lib_dlsearch_path_spec="/lib /usr/lib" 19493if test "$GCC" = yes; then 19494 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19495 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 19496 # if the path contains ";" then we assume it to be the separator 19497 # otherwise default to the standard path separator (i.e. ":") - it is 19498 # assumed that no part of a normal pathname contains ";" but that should 19499 # okay in the real world where ";" in dirpaths is itself problematic. 19500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19501 else 19502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19503 fi 19504else 19505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19506fi 19507need_lib_prefix=unknown 19508hardcode_into_libs=no 19509 19510# when you set need_version to no, make sure it does not cause -set_version 19511# flags to be left without arguments 19512need_version=unknown 19513 19514case $host_os in 19515aix3*) 19516 version_type=linux 19517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19518 shlibpath_var=LIBPATH 19519 19520 # AIX 3 has no versioning support, so we append a major version to the name. 19521 soname_spec='${libname}${release}${shared_ext}$major' 19522 ;; 19523 19524aix4* | aix5*) 19525 version_type=linux 19526 need_lib_prefix=no 19527 need_version=no 19528 hardcode_into_libs=yes 19529 if test "$host_cpu" = ia64; then 19530 # AIX 5 supports IA64 19531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19532 shlibpath_var=LD_LIBRARY_PATH 19533 else 19534 # With GCC up to 2.95.x, collect2 would create an import file 19535 # for dependence libraries. The import file would start with 19536 # the line `#! .'. This would cause the generated library to 19537 # depend on `.', always an invalid library. This was fixed in 19538 # development snapshots of GCC prior to 3.0. 19539 case $host_os in 19540 aix4 | aix4.[01] | aix4.[01].*) 19541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19542 echo ' yes ' 19543 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19544 : 19545 else 19546 can_build_shared=no 19547 fi 19548 ;; 19549 esac 19550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19551 # soname into executable. Probably we can add versioning support to 19552 # collect2, so additional links can be useful in future. 19553 if test "$aix_use_runtimelinking" = yes; then 19554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19555 # instead of lib<name>.a to let people know that these are not 19556 # typical AIX shared libraries. 19557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19558 else 19559 # We preserve .a as extension for shared libraries through AIX4.2 19560 # and later when we are not doing run time linking. 19561 library_names_spec='${libname}${release}.a $libname.a' 19562 soname_spec='${libname}${release}${shared_ext}$major' 19563 fi 19564 shlibpath_var=LIBPATH 19565 fi 19566 ;; 19567 19568amigaos*) 19569 library_names_spec='$libname.ixlibrary $libname.a' 19570 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19571 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' 19572 ;; 19573 19574beos*) 19575 library_names_spec='${libname}${shared_ext}' 19576 dynamic_linker="$host_os ld.so" 19577 shlibpath_var=LIBRARY_PATH 19578 ;; 19579 19580bsdi[45]*) 19581 version_type=linux 19582 need_version=no 19583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19584 soname_spec='${libname}${release}${shared_ext}$major' 19585 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19586 shlibpath_var=LD_LIBRARY_PATH 19587 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19588 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19589 # the default ld.so.conf also contains /usr/contrib/lib and 19590 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19591 # libtool to hard-code these into programs 19592 ;; 19593 19594cygwin* | mingw* | pw32*) 19595 version_type=windows 19596 shrext_cmds=".dll" 19597 need_version=no 19598 need_lib_prefix=no 19599 19600 case $GCC,$host_os in 19601 yes,cygwin* | yes,mingw* | yes,pw32*) 19602 library_names_spec='$libname.dll.a' 19603 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19604 postinstall_cmds='base_file=`basename \${file}`~ 19605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19606 dldir=$destdir/`dirname \$dlpath`~ 19607 test -d \$dldir || mkdir -p \$dldir~ 19608 $install_prog $dir/$dlname \$dldir/$dlname~ 19609 chmod a+x \$dldir/$dlname' 19610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19611 dlpath=$dir/\$dldll~ 19612 $rm \$dlpath' 19613 shlibpath_overrides_runpath=yes 19614 19615 case $host_os in 19616 cygwin*) 19617 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19618 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19619 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19620 ;; 19621 mingw*) 19622 # MinGW DLLs use traditional 'lib' prefix 19623 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19624 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19625 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19626 # It is most probably a Windows format PATH printed by 19627 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19628 # path with ; separators, and with drive letters. We can handle the 19629 # drive letters (cygwin fileutils understands them), so leave them, 19630 # especially as we might pass files found there to a mingw objdump, 19631 # which wouldn't understand a cygwinified path. Ahh. 19632 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19633 else 19634 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19635 fi 19636 ;; 19637 pw32*) 19638 # pw32 DLLs use 'pw' prefix rather than 'lib' 19639 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19640 ;; 19641 esac 19642 ;; 19643 19644 *) 19645 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19646 ;; 19647 esac 19648 dynamic_linker='Win32 ld.exe' 19649 # FIXME: first we should search . and the directory the executable is in 19650 shlibpath_var=PATH 19651 ;; 19652 19653darwin* | rhapsody*) 19654 dynamic_linker="$host_os dyld" 19655 version_type=darwin 19656 need_lib_prefix=no 19657 need_version=no 19658 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19659 soname_spec='${libname}${release}${major}$shared_ext' 19660 shlibpath_overrides_runpath=yes 19661 shlibpath_var=DYLD_LIBRARY_PATH 19662 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19663 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 19664 if test "$GCC" = yes; then 19665 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"` 19666 else 19667 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 19668 fi 19669 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19670 ;; 19671 19672dgux*) 19673 version_type=linux 19674 need_lib_prefix=no 19675 need_version=no 19676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19677 soname_spec='${libname}${release}${shared_ext}$major' 19678 shlibpath_var=LD_LIBRARY_PATH 19679 ;; 19680 19681freebsd1*) 19682 dynamic_linker=no 19683 ;; 19684 19685kfreebsd*-gnu) 19686 version_type=linux 19687 need_lib_prefix=no 19688 need_version=no 19689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19690 soname_spec='${libname}${release}${shared_ext}$major' 19691 shlibpath_var=LD_LIBRARY_PATH 19692 shlibpath_overrides_runpath=no 19693 hardcode_into_libs=yes 19694 dynamic_linker='GNU ld.so' 19695 ;; 19696 19697freebsd* | dragonfly*) 19698 # DragonFly does not have aout. When/if they implement a new 19699 # versioning mechanism, adjust this. 19700 if test -x /usr/bin/objformat; then 19701 objformat=`/usr/bin/objformat` 19702 else 19703 case $host_os in 19704 freebsd[123]*) objformat=aout ;; 19705 *) objformat=elf ;; 19706 esac 19707 fi 19708 version_type=freebsd-$objformat 19709 case $version_type in 19710 freebsd-elf*) 19711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19712 need_version=no 19713 need_lib_prefix=no 19714 ;; 19715 freebsd-*) 19716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19717 need_version=yes 19718 ;; 19719 esac 19720 shlibpath_var=LD_LIBRARY_PATH 19721 case $host_os in 19722 freebsd2*) 19723 shlibpath_overrides_runpath=yes 19724 ;; 19725 freebsd3.[01]* | freebsdelf3.[01]*) 19726 shlibpath_overrides_runpath=yes 19727 hardcode_into_libs=yes 19728 ;; 19729 *) # from 3.2 on 19730 shlibpath_overrides_runpath=no 19731 hardcode_into_libs=yes 19732 ;; 19733 esac 19734 ;; 19735 19736gnu*) 19737 version_type=linux 19738 need_lib_prefix=no 19739 need_version=no 19740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19741 soname_spec='${libname}${release}${shared_ext}$major' 19742 shlibpath_var=LD_LIBRARY_PATH 19743 hardcode_into_libs=yes 19744 ;; 19745 19746hpux9* | hpux10* | hpux11*) 19747 # Give a soname corresponding to the major version so that dld.sl refuses to 19748 # link against other versions. 19749 version_type=sunos 19750 need_lib_prefix=no 19751 need_version=no 19752 case $host_cpu in 19753 ia64*) 19754 shrext_cmds='.so' 19755 hardcode_into_libs=yes 19756 dynamic_linker="$host_os dld.so" 19757 shlibpath_var=LD_LIBRARY_PATH 19758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19760 soname_spec='${libname}${release}${shared_ext}$major' 19761 if test "X$HPUX_IA64_MODE" = X32; then 19762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19763 else 19764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19765 fi 19766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19767 ;; 19768 hppa*64*) 19769 shrext_cmds='.sl' 19770 hardcode_into_libs=yes 19771 dynamic_linker="$host_os dld.sl" 19772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19775 soname_spec='${libname}${release}${shared_ext}$major' 19776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19778 ;; 19779 *) 19780 shrext_cmds='.sl' 19781 dynamic_linker="$host_os dld.sl" 19782 shlibpath_var=SHLIB_PATH 19783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19785 soname_spec='${libname}${release}${shared_ext}$major' 19786 ;; 19787 esac 19788 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19789 postinstall_cmds='chmod 555 $lib' 19790 ;; 19791 19792irix5* | irix6* | nonstopux*) 19793 case $host_os in 19794 nonstopux*) version_type=nonstopux ;; 19795 *) 19796 if test "$lt_cv_prog_gnu_ld" = yes; then 19797 version_type=linux 19798 else 19799 version_type=irix 19800 fi ;; 19801 esac 19802 need_lib_prefix=no 19803 need_version=no 19804 soname_spec='${libname}${release}${shared_ext}$major' 19805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19806 case $host_os in 19807 irix5* | nonstopux*) 19808 libsuff= shlibsuff= 19809 ;; 19810 *) 19811 case $LD in # libtool.m4 will add one of these switches to LD 19812 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19813 libsuff= shlibsuff= libmagic=32-bit;; 19814 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19815 libsuff=32 shlibsuff=N32 libmagic=N32;; 19816 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19817 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19818 *) libsuff= shlibsuff= libmagic=never-match;; 19819 esac 19820 ;; 19821 esac 19822 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19823 shlibpath_overrides_runpath=no 19824 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19825 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19826 hardcode_into_libs=yes 19827 ;; 19828 19829# No shared lib support for Linux oldld, aout, or coff. 19830linux*oldld* | linux*aout* | linux*coff*) 19831 dynamic_linker=no 19832 ;; 19833 19834# This must be Linux ELF. 19835linux*) 19836 version_type=linux 19837 need_lib_prefix=no 19838 need_version=no 19839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19840 soname_spec='${libname}${release}${shared_ext}$major' 19841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19842 shlibpath_var=LD_LIBRARY_PATH 19843 shlibpath_overrides_runpath=no 19844 # This implies no fast_install, which is unacceptable. 19845 # Some rework will be needed to allow for fast_install 19846 # before this can be enabled. 19847 hardcode_into_libs=yes 19848 19849 # Append ld.so.conf contents to the search path 19850 if test -f /etc/ld.so.conf; then 19851 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 19852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19853 fi 19854 19855 # We used to test for /lib/ld.so.1 and disable shared libraries on 19856 # powerpc, because MkLinux only supported shared libraries with the 19857 # GNU dynamic linker. Since this was broken with cross compilers, 19858 # most powerpc-linux boxes support dynamic linking these days and 19859 # people can always --disable-shared, the test was removed, and we 19860 # assume the GNU/Linux dynamic linker is in use. 19861 dynamic_linker='GNU/Linux ld.so' 19862 ;; 19863 19864knetbsd*-gnu) 19865 version_type=linux 19866 need_lib_prefix=no 19867 need_version=no 19868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19869 soname_spec='${libname}${release}${shared_ext}$major' 19870 shlibpath_var=LD_LIBRARY_PATH 19871 shlibpath_overrides_runpath=no 19872 hardcode_into_libs=yes 19873 dynamic_linker='GNU ld.so' 19874 ;; 19875 19876netbsd*) 19877 version_type=sunos 19878 need_lib_prefix=no 19879 need_version=no 19880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19883 dynamic_linker='NetBSD (a.out) ld.so' 19884 else 19885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19886 soname_spec='${libname}${release}${shared_ext}$major' 19887 dynamic_linker='NetBSD ld.elf_so' 19888 fi 19889 shlibpath_var=LD_LIBRARY_PATH 19890 shlibpath_overrides_runpath=yes 19891 hardcode_into_libs=yes 19892 ;; 19893 19894newsos6) 19895 version_type=linux 19896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19897 shlibpath_var=LD_LIBRARY_PATH 19898 shlibpath_overrides_runpath=yes 19899 ;; 19900 19901nto-qnx*) 19902 version_type=linux 19903 need_lib_prefix=no 19904 need_version=no 19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19906 soname_spec='${libname}${release}${shared_ext}$major' 19907 shlibpath_var=LD_LIBRARY_PATH 19908 shlibpath_overrides_runpath=yes 19909 ;; 19910 19911openbsd*) 19912 version_type=sunos 19913 need_lib_prefix=no 19914 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19915 case $host_os in 19916 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19917 *) need_version=no ;; 19918 esac 19919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19921 shlibpath_var=LD_LIBRARY_PATH 19922 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19923 case $host_os in 19924 openbsd2.[89] | openbsd2.[89].*) 19925 shlibpath_overrides_runpath=no 19926 ;; 19927 *) 19928 shlibpath_overrides_runpath=yes 19929 ;; 19930 esac 19931 else 19932 shlibpath_overrides_runpath=yes 19933 fi 19934 ;; 19935 19936os2*) 19937 libname_spec='$name' 19938 shrext_cmds=".dll" 19939 need_lib_prefix=no 19940 library_names_spec='$libname${shared_ext} $libname.a' 19941 dynamic_linker='OS/2 ld.exe' 19942 shlibpath_var=LIBPATH 19943 ;; 19944 19945osf3* | osf4* | osf5*) 19946 version_type=osf 19947 need_lib_prefix=no 19948 need_version=no 19949 soname_spec='${libname}${release}${shared_ext}$major' 19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19951 shlibpath_var=LD_LIBRARY_PATH 19952 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19953 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19954 ;; 19955 19956sco3.2v5*) 19957 version_type=osf 19958 soname_spec='${libname}${release}${shared_ext}$major' 19959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19960 shlibpath_var=LD_LIBRARY_PATH 19961 ;; 19962 19963solaris*) 19964 version_type=linux 19965 need_lib_prefix=no 19966 need_version=no 19967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19968 soname_spec='${libname}${release}${shared_ext}$major' 19969 shlibpath_var=LD_LIBRARY_PATH 19970 shlibpath_overrides_runpath=yes 19971 hardcode_into_libs=yes 19972 # ldd complains unless libraries are executable 19973 postinstall_cmds='chmod +x $lib' 19974 ;; 19975 19976sunos4*) 19977 version_type=sunos 19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19979 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19980 shlibpath_var=LD_LIBRARY_PATH 19981 shlibpath_overrides_runpath=yes 19982 if test "$with_gnu_ld" = yes; then 19983 need_lib_prefix=no 19984 fi 19985 need_version=yes 19986 ;; 19987 19988sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 19989 version_type=linux 19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19991 soname_spec='${libname}${release}${shared_ext}$major' 19992 shlibpath_var=LD_LIBRARY_PATH 19993 case $host_vendor in 19994 sni) 19995 shlibpath_overrides_runpath=no 19996 need_lib_prefix=no 19997 export_dynamic_flag_spec='${wl}-Blargedynsym' 19998 runpath_var=LD_RUN_PATH 19999 ;; 20000 siemens) 20001 need_lib_prefix=no 20002 ;; 20003 motorola) 20004 need_lib_prefix=no 20005 need_version=no 20006 shlibpath_overrides_runpath=no 20007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20008 ;; 20009 esac 20010 ;; 20011 20012sysv4*MP*) 20013 if test -d /usr/nec ;then 20014 version_type=linux 20015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 20016 soname_spec='$libname${shared_ext}.$major' 20017 shlibpath_var=LD_LIBRARY_PATH 20018 fi 20019 ;; 20020 20021uts4*) 20022 version_type=linux 20023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20024 soname_spec='${libname}${release}${shared_ext}$major' 20025 shlibpath_var=LD_LIBRARY_PATH 20026 ;; 20027 20028*) 20029 dynamic_linker=no 20030 ;; 20031esac 20032echo "$as_me:$LINENO: result: $dynamic_linker" >&5 20033echo "${ECHO_T}$dynamic_linker" >&6 20034test "$dynamic_linker" = no && can_build_shared=no 20035 20036echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20037echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 20038hardcode_action_F77= 20039if test -n "$hardcode_libdir_flag_spec_F77" || \ 20040 test -n "$runpath_var_F77" || \ 20041 test "X$hardcode_automatic_F77" = "Xyes" ; then 20042 20043 # We can hardcode non-existant directories. 20044 if test "$hardcode_direct_F77" != no && 20045 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20046 # have to relink, otherwise we might link with an installed library 20047 # when we should be linking with a yet-to-be-installed one 20048 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 20049 test "$hardcode_minus_L_F77" != no; then 20050 # Linking always hardcodes the temporary library directory. 20051 hardcode_action_F77=relink 20052 else 20053 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20054 hardcode_action_F77=immediate 20055 fi 20056else 20057 # We cannot hardcode anything, or else we can only hardcode existing 20058 # directories. 20059 hardcode_action_F77=unsupported 20060fi 20061echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 20062echo "${ECHO_T}$hardcode_action_F77" >&6 20063 20064if test "$hardcode_action_F77" = relink; then 20065 # Fast installation is not supported 20066 enable_fast_install=no 20067elif test "$shlibpath_overrides_runpath" = yes || 20068 test "$enable_shared" = no; then 20069 # Fast installation is not necessary 20070 enable_fast_install=needless 20071fi 20072 20073striplib= 20074old_striplib= 20075echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 20076echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 20077if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 20078 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 20079 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 20080 echo "$as_me:$LINENO: result: yes" >&5 20081echo "${ECHO_T}yes" >&6 20082else 20083# FIXME - insert some real tests, host_os isn't really good enough 20084 case $host_os in 20085 darwin*) 20086 if test -n "$STRIP" ; then 20087 striplib="$STRIP -x" 20088 echo "$as_me:$LINENO: result: yes" >&5 20089echo "${ECHO_T}yes" >&6 20090 else 20091 echo "$as_me:$LINENO: result: no" >&5 20092echo "${ECHO_T}no" >&6 20093fi 20094 ;; 20095 *) 20096 echo "$as_me:$LINENO: result: no" >&5 20097echo "${ECHO_T}no" >&6 20098 ;; 20099 esac 20100fi 20101 20102 20103 20104# The else clause should only fire when bootstrapping the 20105# libtool distribution, otherwise you forgot to ship ltmain.sh 20106# with your package, and you will get complaints that there are 20107# no rules to generate ltmain.sh. 20108if test -f "$ltmain"; then 20109 # See if we are running on zsh, and set the options which allow our commands through 20110 # without removal of \ escapes. 20111 if test -n "${ZSH_VERSION+set}" ; then 20112 setopt NO_GLOB_SUBST 20113 fi 20114 # Now quote all the things that may contain metacharacters while being 20115 # careful not to overquote the AC_SUBSTed values. We take copies of the 20116 # variables and quote the copies for generation of the libtool script. 20117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 20118 SED SHELL STRIP \ 20119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20121 deplibs_check_method reload_flag reload_cmds need_locks \ 20122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20123 lt_cv_sys_global_symbol_to_c_name_address \ 20124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20125 old_postinstall_cmds old_postuninstall_cmds \ 20126 compiler_F77 \ 20127 CC_F77 \ 20128 LD_F77 \ 20129 lt_prog_compiler_wl_F77 \ 20130 lt_prog_compiler_pic_F77 \ 20131 lt_prog_compiler_static_F77 \ 20132 lt_prog_compiler_no_builtin_flag_F77 \ 20133 export_dynamic_flag_spec_F77 \ 20134 thread_safe_flag_spec_F77 \ 20135 whole_archive_flag_spec_F77 \ 20136 enable_shared_with_static_runtimes_F77 \ 20137 old_archive_cmds_F77 \ 20138 old_archive_from_new_cmds_F77 \ 20139 predep_objects_F77 \ 20140 postdep_objects_F77 \ 20141 predeps_F77 \ 20142 postdeps_F77 \ 20143 compiler_lib_search_path_F77 \ 20144 archive_cmds_F77 \ 20145 archive_expsym_cmds_F77 \ 20146 postinstall_cmds_F77 \ 20147 postuninstall_cmds_F77 \ 20148 old_archive_from_expsyms_cmds_F77 \ 20149 allow_undefined_flag_F77 \ 20150 no_undefined_flag_F77 \ 20151 export_symbols_cmds_F77 \ 20152 hardcode_libdir_flag_spec_F77 \ 20153 hardcode_libdir_flag_spec_ld_F77 \ 20154 hardcode_libdir_separator_F77 \ 20155 hardcode_automatic_F77 \ 20156 module_cmds_F77 \ 20157 module_expsym_cmds_F77 \ 20158 lt_cv_prog_compiler_c_o_F77 \ 20159 exclude_expsyms_F77 \ 20160 include_expsyms_F77; do 20161 20162 case $var in 20163 old_archive_cmds_F77 | \ 20164 old_archive_from_new_cmds_F77 | \ 20165 archive_cmds_F77 | \ 20166 archive_expsym_cmds_F77 | \ 20167 module_cmds_F77 | \ 20168 module_expsym_cmds_F77 | \ 20169 old_archive_from_expsyms_cmds_F77 | \ 20170 export_symbols_cmds_F77 | \ 20171 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20172 postinstall_cmds | postuninstall_cmds | \ 20173 old_postinstall_cmds | old_postuninstall_cmds | \ 20174 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20175 # Double-quote double-evaled strings. 20176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20177 ;; 20178 *) 20179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20180 ;; 20181 esac 20182 done 20183 20184 case $lt_echo in 20185 *'\$0 --fallback-echo"') 20186 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20187 ;; 20188 esac 20189 20190cfgfile="$ofile" 20191 20192 cat <<__EOF__ >> "$cfgfile" 20193# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20194 20195# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20196 20197# Shell to use when invoking shell scripts. 20198SHELL=$lt_SHELL 20199 20200# Whether or not to build shared libraries. 20201build_libtool_libs=$enable_shared 20202 20203# Whether or not to build static libraries. 20204build_old_libs=$enable_static 20205 20206# Whether or not to add -lc for building shared libraries. 20207build_libtool_need_lc=$archive_cmds_need_lc_F77 20208 20209# Whether or not to disallow shared libs when runtime libs are static 20210allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 20211 20212# Whether or not to optimize for fast installation. 20213fast_install=$enable_fast_install 20214 20215# The host system. 20216host_alias=$host_alias 20217host=$host 20218host_os=$host_os 20219 20220# The build system. 20221build_alias=$build_alias 20222build=$build 20223build_os=$build_os 20224 20225# An echo program that does not interpret backslashes. 20226echo=$lt_echo 20227 20228# The archiver. 20229AR=$lt_AR 20230AR_FLAGS=$lt_AR_FLAGS 20231 20232# A C compiler. 20233LTCC=$lt_LTCC 20234 20235# A language-specific compiler. 20236CC=$lt_compiler_F77 20237 20238# Is the compiler the GNU C compiler? 20239with_gcc=$GCC_F77 20240 20241# An ERE matcher. 20242EGREP=$lt_EGREP 20243 20244# The linker used to build libraries. 20245LD=$lt_LD_F77 20246 20247# Whether we need hard or soft links. 20248LN_S=$lt_LN_S 20249 20250# A BSD-compatible nm program. 20251NM=$lt_NM 20252 20253# A symbol stripping program 20254STRIP=$lt_STRIP 20255 20256# Used to examine libraries when file_magic_cmd begins "file" 20257MAGIC_CMD=$MAGIC_CMD 20258 20259# Used on cygwin: DLL creation program. 20260DLLTOOL="$DLLTOOL" 20261 20262# Used on cygwin: object dumper. 20263OBJDUMP="$OBJDUMP" 20264 20265# Used on cygwin: assembler. 20266AS="$AS" 20267 20268# The name of the directory that contains temporary libtool files. 20269objdir=$objdir 20270 20271# How to create reloadable object files. 20272reload_flag=$lt_reload_flag 20273reload_cmds=$lt_reload_cmds 20274 20275# How to pass a linker flag through the compiler. 20276wl=$lt_lt_prog_compiler_wl_F77 20277 20278# Object file suffix (normally "o"). 20279objext="$ac_objext" 20280 20281# Old archive suffix (normally "a"). 20282libext="$libext" 20283 20284# Shared library suffix (normally ".so"). 20285shrext_cmds='$shrext_cmds' 20286 20287# Executable file suffix (normally ""). 20288exeext="$exeext" 20289 20290# Additional compiler flags for building library objects. 20291pic_flag=$lt_lt_prog_compiler_pic_F77 20292pic_mode=$pic_mode 20293 20294# What is the maximum length of a command? 20295max_cmd_len=$lt_cv_sys_max_cmd_len 20296 20297# Does compiler simultaneously support -c and -o options? 20298compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 20299 20300# Must we lock files when doing compilation? 20301need_locks=$lt_need_locks 20302 20303# Do we need the lib prefix for modules? 20304need_lib_prefix=$need_lib_prefix 20305 20306# Do we need a version for libraries? 20307need_version=$need_version 20308 20309# Whether dlopen is supported. 20310dlopen_support=$enable_dlopen 20311 20312# Whether dlopen of programs is supported. 20313dlopen_self=$enable_dlopen_self 20314 20315# Whether dlopen of statically linked programs is supported. 20316dlopen_self_static=$enable_dlopen_self_static 20317 20318# Compiler flag to prevent dynamic linking. 20319link_static_flag=$lt_lt_prog_compiler_static_F77 20320 20321# Compiler flag to turn off builtin functions. 20322no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 20323 20324# Compiler flag to allow reflexive dlopens. 20325export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 20326 20327# Compiler flag to generate shared objects directly from archives. 20328whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 20329 20330# Compiler flag to generate thread-safe objects. 20331thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 20332 20333# Library versioning type. 20334version_type=$version_type 20335 20336# Format of library name prefix. 20337libname_spec=$lt_libname_spec 20338 20339# List of archive names. First name is the real one, the rest are links. 20340# The last name is the one that the linker finds with -lNAME. 20341library_names_spec=$lt_library_names_spec 20342 20343# The coded name of the library, if different from the real name. 20344soname_spec=$lt_soname_spec 20345 20346# Commands used to build and install an old-style archive. 20347RANLIB=$lt_RANLIB 20348old_archive_cmds=$lt_old_archive_cmds_F77 20349old_postinstall_cmds=$lt_old_postinstall_cmds 20350old_postuninstall_cmds=$lt_old_postuninstall_cmds 20351 20352# Create an old-style archive from a shared archive. 20353old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 20354 20355# Create a temporary old-style archive to link instead of a shared archive. 20356old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 20357 20358# Commands used to build and install a shared archive. 20359archive_cmds=$lt_archive_cmds_F77 20360archive_expsym_cmds=$lt_archive_expsym_cmds_F77 20361postinstall_cmds=$lt_postinstall_cmds 20362postuninstall_cmds=$lt_postuninstall_cmds 20363 20364# Commands used to build a loadable module (assumed same as above if empty) 20365module_cmds=$lt_module_cmds_F77 20366module_expsym_cmds=$lt_module_expsym_cmds_F77 20367 20368# Commands to strip libraries. 20369old_striplib=$lt_old_striplib 20370striplib=$lt_striplib 20371 20372# Dependencies to place before the objects being linked to create a 20373# shared library. 20374predep_objects=$lt_predep_objects_F77 20375 20376# Dependencies to place after the objects being linked to create a 20377# shared library. 20378postdep_objects=$lt_postdep_objects_F77 20379 20380# Dependencies to place before the objects being linked to create a 20381# shared library. 20382predeps=$lt_predeps_F77 20383 20384# Dependencies to place after the objects being linked to create a 20385# shared library. 20386postdeps=$lt_postdeps_F77 20387 20388# The library search path used internally by the compiler when linking 20389# a shared library. 20390compiler_lib_search_path=$lt_compiler_lib_search_path_F77 20391 20392# Method to check whether dependent libraries are shared objects. 20393deplibs_check_method=$lt_deplibs_check_method 20394 20395# Command to use when deplibs_check_method == file_magic. 20396file_magic_cmd=$lt_file_magic_cmd 20397 20398# Flag that allows shared libraries with undefined symbols to be built. 20399allow_undefined_flag=$lt_allow_undefined_flag_F77 20400 20401# Flag that forces no undefined symbols. 20402no_undefined_flag=$lt_no_undefined_flag_F77 20403 20404# Commands used to finish a libtool library installation in a directory. 20405finish_cmds=$lt_finish_cmds 20406 20407# Same as above, but a single script fragment to be evaled but not shown. 20408finish_eval=$lt_finish_eval 20409 20410# Take the output of nm and produce a listing of raw symbols and C names. 20411global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20412 20413# Transform the output of nm in a proper C declaration 20414global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20415 20416# Transform the output of nm in a C name address pair 20417global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20418 20419# This is the shared library runtime path variable. 20420runpath_var=$runpath_var 20421 20422# This is the shared library path variable. 20423shlibpath_var=$shlibpath_var 20424 20425# Is shlibpath searched before the hard-coded library search path? 20426shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20427 20428# How to hardcode a shared library path into an executable. 20429hardcode_action=$hardcode_action_F77 20430 20431# Whether we should hardcode library paths into libraries. 20432hardcode_into_libs=$hardcode_into_libs 20433 20434# Flag to hardcode \$libdir into a binary during linking. 20435# This must work even if \$libdir does not exist. 20436hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 20437 20438# If ld is used when linking, flag to hardcode \$libdir into 20439# a binary during linking. This must work even if \$libdir does 20440# not exist. 20441hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 20442 20443# Whether we need a single -rpath flag with a separated argument. 20444hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 20445 20446# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20447# resulting binary. 20448hardcode_direct=$hardcode_direct_F77 20449 20450# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20451# resulting binary. 20452hardcode_minus_L=$hardcode_minus_L_F77 20453 20454# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20455# the resulting binary. 20456hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 20457 20458# Set to yes if building a shared library automatically hardcodes DIR into the library 20459# and all subsequent libraries and executables linked against it. 20460hardcode_automatic=$hardcode_automatic_F77 20461 20462# Variables whose values should be saved in libtool wrapper scripts and 20463# restored at relink time. 20464variables_saved_for_relink="$variables_saved_for_relink" 20465 20466# Whether libtool must link a program against all its dependency libraries. 20467link_all_deplibs=$link_all_deplibs_F77 20468 20469# Compile-time system search path for libraries 20470sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20471 20472# Run-time system search path for libraries 20473sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20474 20475# Fix the shell variable \$srcfile for the compiler. 20476fix_srcfile_path="$fix_srcfile_path_F77" 20477 20478# Set to yes if exported symbols are required. 20479always_export_symbols=$always_export_symbols_F77 20480 20481# The commands to list exported symbols. 20482export_symbols_cmds=$lt_export_symbols_cmds_F77 20483 20484# The commands to extract the exported symbol list from a shared archive. 20485extract_expsyms_cmds=$lt_extract_expsyms_cmds 20486 20487# Symbols that should not be listed in the preloaded symbols. 20488exclude_expsyms=$lt_exclude_expsyms_F77 20489 20490# Symbols that must always be exported. 20491include_expsyms=$lt_include_expsyms_F77 20492 20493# ### END LIBTOOL TAG CONFIG: $tagname 20494 20495__EOF__ 20496 20497 20498else 20499 # If there is no Makefile yet, we rely on a make rule to execute 20500 # `config.status --recheck' to rerun these tests and create the 20501 # libtool script then. 20502 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20503 if test -f "$ltmain_in"; then 20504 test -f Makefile && make "$ltmain" 20505 fi 20506fi 20507 20508 20509ac_ext=c 20510ac_cpp='$CPP $CPPFLAGS' 20511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20513ac_compiler_gnu=$ac_cv_c_compiler_gnu 20514 20515CC="$lt_save_CC" 20516 20517 else 20518 tagname="" 20519 fi 20520 ;; 20521 20522 GCJ) 20523 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 20524 20525 20526 20527# Source file extension for Java test sources. 20528ac_ext=java 20529 20530# Object file extension for compiled Java test sources. 20531objext=o 20532objext_GCJ=$objext 20533 20534# Code to be used in simple compile tests 20535lt_simple_compile_test_code="class foo {}\n" 20536 20537# Code to be used in simple link tests 20538lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 20539 20540# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20541 20542# If no C compiler was specified, use CC. 20543LTCC=${LTCC-"$CC"} 20544 20545# Allow CC to be a program name with arguments. 20546compiler=$CC 20547 20548 20549# save warnings/boilerplate of simple test code 20550ac_outfile=conftest.$ac_objext 20551printf "$lt_simple_compile_test_code" >conftest.$ac_ext 20552eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 20553_lt_compiler_boilerplate=`cat conftest.err` 20554$rm conftest* 20555 20556ac_outfile=conftest.$ac_objext 20557printf "$lt_simple_link_test_code" >conftest.$ac_ext 20558eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 20559_lt_linker_boilerplate=`cat conftest.err` 20560$rm conftest* 20561 20562 20563# Allow CC to be a program name with arguments. 20564lt_save_CC="$CC" 20565CC=${GCJ-"gcj"} 20566compiler=$CC 20567compiler_GCJ=$CC 20568for cc_temp in $compiler""; do 20569 case $cc_temp in 20570 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20571 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20572 \-*) ;; 20573 *) break;; 20574 esac 20575done 20576cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20577 20578 20579# GCJ did not exist at the time GCC didn't implicitly link libc in. 20580archive_cmds_need_lc_GCJ=no 20581 20582old_archive_cmds_GCJ=$old_archive_cmds 20583 20584 20585lt_prog_compiler_no_builtin_flag_GCJ= 20586 20587if test "$GCC" = yes; then 20588 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 20589 20590 20591echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 20592echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 20593if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 20594 echo $ECHO_N "(cached) $ECHO_C" >&6 20595else 20596 lt_cv_prog_compiler_rtti_exceptions=no 20597 ac_outfile=conftest.$ac_objext 20598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 20599 lt_compiler_flag="-fno-rtti -fno-exceptions" 20600 # Insert the option either (1) after the last *FLAGS variable, or 20601 # (2) before a word containing "conftest.", or (3) at the end. 20602 # Note that $ac_compile itself does not contain backslashes and begins 20603 # with a dollar sign (not a hyphen), so the echo should work correctly. 20604 # The option is referenced via a variable to avoid confusing sed. 20605 lt_compile=`echo "$ac_compile" | $SED \ 20606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20608 -e 's:$: $lt_compiler_flag:'` 20609 (eval echo "\"\$as_me:20609: $lt_compile\"" >&5) 20610 (eval "$lt_compile" 2>conftest.err) 20611 ac_status=$? 20612 cat conftest.err >&5 20613 echo "$as_me:20613: \$? = $ac_status" >&5 20614 if (exit $ac_status) && test -s "$ac_outfile"; then 20615 # The compiler can only warn and ignore the option if not recognized 20616 # So say no if there are warnings other than the usual output. 20617 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 20618 $SED '/^$/d' conftest.err >conftest.er2 20619 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 20620 lt_cv_prog_compiler_rtti_exceptions=yes 20621 fi 20622 fi 20623 $rm conftest* 20624 20625fi 20626echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 20627echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 20628 20629if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 20630 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 20631else 20632 : 20633fi 20634 20635fi 20636 20637lt_prog_compiler_wl_GCJ= 20638lt_prog_compiler_pic_GCJ= 20639lt_prog_compiler_static_GCJ= 20640 20641echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 20642echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 20643 20644 if test "$GCC" = yes; then 20645 lt_prog_compiler_wl_GCJ='-Wl,' 20646 lt_prog_compiler_static_GCJ='-static' 20647 20648 case $host_os in 20649 aix*) 20650 # All AIX code is PIC. 20651 if test "$host_cpu" = ia64; then 20652 # AIX 5 now supports IA64 processor 20653 lt_prog_compiler_static_GCJ='-Bstatic' 20654 fi 20655 ;; 20656 20657 amigaos*) 20658 # FIXME: we need at least 68020 code to build shared libraries, but 20659 # adding the `-m68020' flag to GCC prevents building anything better, 20660 # like `-m68040'. 20661 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 20662 ;; 20663 20664 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 20665 # PIC is the default for these OSes. 20666 ;; 20667 20668 mingw* | pw32* | os2*) 20669 # This hack is so that the source file can tell whether it is being 20670 # built for inclusion in a dll (and should export symbols for example). 20671 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 20672 ;; 20673 20674 darwin* | rhapsody*) 20675 # PIC is the default on this platform 20676 # Common symbols not allowed in MH_DYLIB files 20677 lt_prog_compiler_pic_GCJ='-fno-common' 20678 ;; 20679 20680 msdosdjgpp*) 20681 # Just because we use GCC doesn't mean we suddenly get shared libraries 20682 # on systems that don't support them. 20683 lt_prog_compiler_can_build_shared_GCJ=no 20684 enable_shared=no 20685 ;; 20686 20687 sysv4*MP*) 20688 if test -d /usr/nec; then 20689 lt_prog_compiler_pic_GCJ=-Kconform_pic 20690 fi 20691 ;; 20692 20693 hpux*) 20694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 20695 # not for PA HP-UX. 20696 case $host_cpu in 20697 hppa*64*|ia64*) 20698 # +Z the default 20699 ;; 20700 *) 20701 lt_prog_compiler_pic_GCJ='-fPIC' 20702 ;; 20703 esac 20704 ;; 20705 20706 *) 20707 lt_prog_compiler_pic_GCJ='-fPIC' 20708 ;; 20709 esac 20710 else 20711 # PORTME Check for flag to pass linker flags through the system compiler. 20712 case $host_os in 20713 aix*) 20714 lt_prog_compiler_wl_GCJ='-Wl,' 20715 if test "$host_cpu" = ia64; then 20716 # AIX 5 now supports IA64 processor 20717 lt_prog_compiler_static_GCJ='-Bstatic' 20718 else 20719 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 20720 fi 20721 ;; 20722 darwin*) 20723 # PIC is the default on this platform 20724 # Common symbols not allowed in MH_DYLIB files 20725 case $cc_basename in 20726 xlc*) 20727 lt_prog_compiler_pic_GCJ='-qnocommon' 20728 lt_prog_compiler_wl_GCJ='-Wl,' 20729 ;; 20730 esac 20731 ;; 20732 20733 mingw* | pw32* | os2*) 20734 # This hack is so that the source file can tell whether it is being 20735 # built for inclusion in a dll (and should export symbols for example). 20736 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 20737 ;; 20738 20739 hpux9* | hpux10* | hpux11*) 20740 lt_prog_compiler_wl_GCJ='-Wl,' 20741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 20742 # not for PA HP-UX. 20743 case $host_cpu in 20744 hppa*64*|ia64*) 20745 # +Z the default 20746 ;; 20747 *) 20748 lt_prog_compiler_pic_GCJ='+Z' 20749 ;; 20750 esac 20751 # Is there a better lt_prog_compiler_static that works with the bundled CC? 20752 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 20753 ;; 20754 20755 irix5* | irix6* | nonstopux*) 20756 lt_prog_compiler_wl_GCJ='-Wl,' 20757 # PIC (with -KPIC) is the default. 20758 lt_prog_compiler_static_GCJ='-non_shared' 20759 ;; 20760 20761 newsos6) 20762 lt_prog_compiler_pic_GCJ='-KPIC' 20763 lt_prog_compiler_static_GCJ='-Bstatic' 20764 ;; 20765 20766 linux*) 20767 case $cc_basename in 20768 icc* | ecc*) 20769 lt_prog_compiler_wl_GCJ='-Wl,' 20770 lt_prog_compiler_pic_GCJ='-KPIC' 20771 lt_prog_compiler_static_GCJ='-static' 20772 ;; 20773 pgcc* | pgf77* | pgf90* | pgf95*) 20774 # Portland Group compilers (*not* the Pentium gcc compiler, 20775 # which looks to be a dead project) 20776 lt_prog_compiler_wl_GCJ='-Wl,' 20777 lt_prog_compiler_pic_GCJ='-fpic' 20778 lt_prog_compiler_static_GCJ='-Bstatic' 20779 ;; 20780 ccc*) 20781 lt_prog_compiler_wl_GCJ='-Wl,' 20782 # All Alpha code is PIC. 20783 lt_prog_compiler_static_GCJ='-non_shared' 20784 ;; 20785 esac 20786 ;; 20787 20788 osf3* | osf4* | osf5*) 20789 lt_prog_compiler_wl_GCJ='-Wl,' 20790 # All OSF/1 code is PIC. 20791 lt_prog_compiler_static_GCJ='-non_shared' 20792 ;; 20793 20794 sco3.2v5*) 20795 lt_prog_compiler_pic_GCJ='-Kpic' 20796 lt_prog_compiler_static_GCJ='-dn' 20797 ;; 20798 20799 solaris*) 20800 lt_prog_compiler_pic_GCJ='-KPIC' 20801 lt_prog_compiler_static_GCJ='-Bstatic' 20802 case $cc_basename in 20803 f77* | f90* | f95*) 20804 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 20805 *) 20806 lt_prog_compiler_wl_GCJ='-Wl,';; 20807 esac 20808 ;; 20809 20810 sunos4*) 20811 lt_prog_compiler_wl_GCJ='-Qoption ld ' 20812 lt_prog_compiler_pic_GCJ='-PIC' 20813 lt_prog_compiler_static_GCJ='-Bstatic' 20814 ;; 20815 20816 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20817 lt_prog_compiler_wl_GCJ='-Wl,' 20818 lt_prog_compiler_pic_GCJ='-KPIC' 20819 lt_prog_compiler_static_GCJ='-Bstatic' 20820 ;; 20821 20822 sysv4*MP*) 20823 if test -d /usr/nec ;then 20824 lt_prog_compiler_pic_GCJ='-Kconform_pic' 20825 lt_prog_compiler_static_GCJ='-Bstatic' 20826 fi 20827 ;; 20828 20829 unicos*) 20830 lt_prog_compiler_wl_GCJ='-Wl,' 20831 lt_prog_compiler_can_build_shared_GCJ=no 20832 ;; 20833 20834 uts4*) 20835 lt_prog_compiler_pic_GCJ='-pic' 20836 lt_prog_compiler_static_GCJ='-Bstatic' 20837 ;; 20838 20839 *) 20840 lt_prog_compiler_can_build_shared_GCJ=no 20841 ;; 20842 esac 20843 fi 20844 20845echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 20846echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 20847 20848# 20849# Check to make sure the PIC flag actually works. 20850# 20851if test -n "$lt_prog_compiler_pic_GCJ"; then 20852 20853echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 20854echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 20855if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 20856 echo $ECHO_N "(cached) $ECHO_C" >&6 20857else 20858 lt_prog_compiler_pic_works_GCJ=no 20859 ac_outfile=conftest.$ac_objext 20860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 20861 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 20862 # Insert the option either (1) after the last *FLAGS variable, or 20863 # (2) before a word containing "conftest.", or (3) at the end. 20864 # Note that $ac_compile itself does not contain backslashes and begins 20865 # with a dollar sign (not a hyphen), so the echo should work correctly. 20866 # The option is referenced via a variable to avoid confusing sed. 20867 lt_compile=`echo "$ac_compile" | $SED \ 20868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20870 -e 's:$: $lt_compiler_flag:'` 20871 (eval echo "\"\$as_me:20871: $lt_compile\"" >&5) 20872 (eval "$lt_compile" 2>conftest.err) 20873 ac_status=$? 20874 cat conftest.err >&5 20875 echo "$as_me:20875: \$? = $ac_status" >&5 20876 if (exit $ac_status) && test -s "$ac_outfile"; then 20877 # The compiler can only warn and ignore the option if not recognized 20878 # So say no if there are warnings other than the usual output. 20879 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 20880 $SED '/^$/d' conftest.err >conftest.er2 20881 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 20882 lt_prog_compiler_pic_works_GCJ=yes 20883 fi 20884 fi 20885 $rm conftest* 20886 20887fi 20888echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 20889echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 20890 20891if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 20892 case $lt_prog_compiler_pic_GCJ in 20893 "" | " "*) ;; 20894 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 20895 esac 20896else 20897 lt_prog_compiler_pic_GCJ= 20898 lt_prog_compiler_can_build_shared_GCJ=no 20899fi 20900 20901fi 20902case $host_os in 20903 # For platforms which do not support PIC, -DPIC is meaningless: 20904 *djgpp*) 20905 lt_prog_compiler_pic_GCJ= 20906 ;; 20907 *) 20908 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 20909 ;; 20910esac 20911 20912echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 20913echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 20914if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 20915 echo $ECHO_N "(cached) $ECHO_C" >&6 20916else 20917 lt_cv_prog_compiler_c_o_GCJ=no 20918 $rm -r conftest 2>/dev/null 20919 mkdir conftest 20920 cd conftest 20921 mkdir out 20922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 20923 20924 lt_compiler_flag="-o out/conftest2.$ac_objext" 20925 # Insert the option either (1) after the last *FLAGS variable, or 20926 # (2) before a word containing "conftest.", or (3) at the end. 20927 # Note that $ac_compile itself does not contain backslashes and begins 20928 # with a dollar sign (not a hyphen), so the echo should work correctly. 20929 lt_compile=`echo "$ac_compile" | $SED \ 20930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20932 -e 's:$: $lt_compiler_flag:'` 20933 (eval echo "\"\$as_me:20933: $lt_compile\"" >&5) 20934 (eval "$lt_compile" 2>out/conftest.err) 20935 ac_status=$? 20936 cat out/conftest.err >&5 20937 echo "$as_me:20937: \$? = $ac_status" >&5 20938 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20939 then 20940 # The compiler can only warn and ignore the option if not recognized 20941 # So say no if there are warnings 20942 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 20943 $SED '/^$/d' out/conftest.err >out/conftest.er2 20944 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20945 lt_cv_prog_compiler_c_o_GCJ=yes 20946 fi 20947 fi 20948 chmod u+w . 2>&5 20949 $rm conftest* 20950 # SGI C++ compiler will create directory out/ii_files/ for 20951 # template instantiation 20952 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 20953 $rm out/* && rmdir out 20954 cd .. 20955 rmdir conftest 20956 $rm conftest* 20957 20958fi 20959echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 20960echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 20961 20962 20963hard_links="nottested" 20964if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 20965 # do not overwrite the value of need_locks provided by the user 20966 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 20967echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 20968 hard_links=yes 20969 $rm conftest* 20970 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20971 touch conftest.a 20972 ln conftest.a conftest.b 2>&5 || hard_links=no 20973 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20974 echo "$as_me:$LINENO: result: $hard_links" >&5 20975echo "${ECHO_T}$hard_links" >&6 20976 if test "$hard_links" = no; then 20977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 20978echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 20979 need_locks=warn 20980 fi 20981else 20982 need_locks=no 20983fi 20984 20985echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20986echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 20987 20988 runpath_var= 20989 allow_undefined_flag_GCJ= 20990 enable_shared_with_static_runtimes_GCJ=no 20991 archive_cmds_GCJ= 20992 archive_expsym_cmds_GCJ= 20993 old_archive_From_new_cmds_GCJ= 20994 old_archive_from_expsyms_cmds_GCJ= 20995 export_dynamic_flag_spec_GCJ= 20996 whole_archive_flag_spec_GCJ= 20997 thread_safe_flag_spec_GCJ= 20998 hardcode_libdir_flag_spec_GCJ= 20999 hardcode_libdir_flag_spec_ld_GCJ= 21000 hardcode_libdir_separator_GCJ= 21001 hardcode_direct_GCJ=no 21002 hardcode_minus_L_GCJ=no 21003 hardcode_shlibpath_var_GCJ=unsupported 21004 link_all_deplibs_GCJ=unknown 21005 hardcode_automatic_GCJ=no 21006 module_cmds_GCJ= 21007 module_expsym_cmds_GCJ= 21008 always_export_symbols_GCJ=no 21009 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 21010 # include_expsyms should be a list of space-separated symbols to be *always* 21011 # included in the symbol list 21012 include_expsyms_GCJ= 21013 # exclude_expsyms can be an extended regexp of symbols to exclude 21014 # it will be wrapped by ` (' and `)$', so one must not match beginning or 21015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 21016 # as well as any symbol that contains `d'. 21017 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 21018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 21019 # platforms (ab)use it in PIC code, but their linkers get confused if 21020 # the symbol is explicitly referenced. Since portable code cannot 21021 # rely on this symbol name, it's probably fine to never include it in 21022 # preloaded symbol tables. 21023 extract_expsyms_cmds= 21024 # Just being paranoid about ensuring that cc_basename is set. 21025 for cc_temp in $compiler""; do 21026 case $cc_temp in 21027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21029 \-*) ;; 21030 *) break;; 21031 esac 21032done 21033cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 21034 21035 case $host_os in 21036 cygwin* | mingw* | pw32*) 21037 # FIXME: the MSVC++ port hasn't been tested in a loooong time 21038 # When not using gcc, we currently assume that we are using 21039 # Microsoft Visual C++. 21040 if test "$GCC" != yes; then 21041 with_gnu_ld=no 21042 fi 21043 ;; 21044 openbsd*) 21045 with_gnu_ld=no 21046 ;; 21047 esac 21048 21049 ld_shlibs_GCJ=yes 21050 if test "$with_gnu_ld" = yes; then 21051 # If archive_cmds runs LD, not CC, wlarc should be empty 21052 wlarc='${wl}' 21053 21054 # Set some defaults for GNU ld with shared library support. These 21055 # are reset later if shared libraries are not supported. Putting them 21056 # here allows them to be overridden if necessary. 21057 runpath_var=LD_RUN_PATH 21058 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 21059 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 21060 # ancient GNU ld didn't support --whole-archive et. al. 21061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 21062 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 21063 else 21064 whole_archive_flag_spec_GCJ= 21065 fi 21066 supports_anon_versioning=no 21067 case `$LD -v 2>/dev/null` in 21068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 21069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 21070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 21071 *\ 2.11.*) ;; # other 2.11 versions 21072 *) supports_anon_versioning=yes ;; 21073 esac 21074 21075 # See if GNU ld supports shared libraries. 21076 case $host_os in 21077 aix3* | aix4* | aix5*) 21078 # On AIX/PPC, the GNU linker is very broken 21079 if test "$host_cpu" != ia64; then 21080 ld_shlibs_GCJ=no 21081 cat <<EOF 1>&2 21082 21083*** Warning: the GNU linker, at least up to release 2.9.1, is reported 21084*** to be unable to reliably create shared libraries on AIX. 21085*** Therefore, libtool is disabling shared libraries support. If you 21086*** really care for shared libraries, you may want to modify your PATH 21087*** so that a non-GNU linker is found, and then restart. 21088 21089EOF 21090 fi 21091 ;; 21092 21093 amigaos*) 21094 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)' 21095 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21096 hardcode_minus_L_GCJ=yes 21097 21098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 21099 # that the semantics of dynamic libraries on AmigaOS, at least up 21100 # to version 4, is to share data among multiple programs linked 21101 # with the same dynamic library. Since this doesn't match the 21102 # behavior of shared libraries on other platforms, we can't use 21103 # them. 21104 ld_shlibs_GCJ=no 21105 ;; 21106 21107 beos*) 21108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21109 allow_undefined_flag_GCJ=unsupported 21110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 21111 # support --undefined. This deserves some investigation. FIXME 21112 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21113 else 21114 ld_shlibs_GCJ=no 21115 fi 21116 ;; 21117 21118 cygwin* | mingw* | pw32*) 21119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 21120 # as there is no search path for DLLs. 21121 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21122 allow_undefined_flag_GCJ=unsupported 21123 always_export_symbols_GCJ=no 21124 enable_shared_with_static_runtimes_GCJ=yes 21125 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 21126 21127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 21128 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 21129 # If the export-symbols file already is a .def file (1st line 21130 # is EXPORTS), use it as is; otherwise, prepend... 21131 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 21132 cp $export_symbols $output_objdir/$soname.def; 21133 else 21134 echo EXPORTS > $output_objdir/$soname.def; 21135 cat $export_symbols >> $output_objdir/$soname.def; 21136 fi~ 21137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 21138 else 21139 ld_shlibs_GCJ=no 21140 fi 21141 ;; 21142 21143 linux*) 21144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21145 tmp_addflag= 21146 case $cc_basename,$host_cpu in 21147 pgcc*) # Portland Group C compiler 21148 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 21149 tmp_addflag=' $pic_flag' 21150 ;; 21151 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 21152 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 21153 tmp_addflag=' $pic_flag -Mnomain' ;; 21154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 21155 tmp_addflag=' -i_dynamic' ;; 21156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 21157 tmp_addflag=' -i_dynamic -nofor_main' ;; 21158 ifc* | ifort*) # Intel Fortran compiler 21159 tmp_addflag=' -nofor_main' ;; 21160 esac 21161 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21162 21163 if test $supports_anon_versioning = yes; then 21164 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 21165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 21166 $echo "local: *; };" >> $output_objdir/$libname.ver~ 21167 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 21168 fi 21169 else 21170 ld_shlibs_GCJ=no 21171 fi 21172 ;; 21173 21174 netbsd*) 21175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 21176 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 21177 wlarc= 21178 else 21179 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21180 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21181 fi 21182 ;; 21183 21184 solaris* | sysv5*) 21185 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 21186 ld_shlibs_GCJ=no 21187 cat <<EOF 1>&2 21188 21189*** Warning: The releases 2.8.* of the GNU linker cannot reliably 21190*** create shared libraries on Solaris systems. Therefore, libtool 21191*** is disabling shared libraries support. We urge you to upgrade GNU 21192*** binutils to release 2.9.1 or newer. Another option is to modify 21193*** your PATH or compiler configuration so that the native linker is 21194*** used, and then restart. 21195 21196EOF 21197 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21199 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21200 else 21201 ld_shlibs_GCJ=no 21202 fi 21203 ;; 21204 21205 sunos4*) 21206 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 21207 wlarc= 21208 hardcode_direct_GCJ=yes 21209 hardcode_shlibpath_var_GCJ=no 21210 ;; 21211 21212 *) 21213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 21214 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 21215 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 21216 else 21217 ld_shlibs_GCJ=no 21218 fi 21219 ;; 21220 esac 21221 21222 if test "$ld_shlibs_GCJ" = no; then 21223 runpath_var= 21224 hardcode_libdir_flag_spec_GCJ= 21225 export_dynamic_flag_spec_GCJ= 21226 whole_archive_flag_spec_GCJ= 21227 fi 21228 else 21229 # PORTME fill in a description of your system's linker (not GNU ld) 21230 case $host_os in 21231 aix3*) 21232 allow_undefined_flag_GCJ=unsupported 21233 always_export_symbols_GCJ=yes 21234 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' 21235 # Note: this linker hardcodes the directories in LIBPATH if there 21236 # are no directories specified by -L. 21237 hardcode_minus_L_GCJ=yes 21238 if test "$GCC" = yes && test -z "$link_static_flag"; then 21239 # Neither direct hardcoding nor static linking is supported with a 21240 # broken collect2. 21241 hardcode_direct_GCJ=unsupported 21242 fi 21243 ;; 21244 21245 aix4* | aix5*) 21246 if test "$host_cpu" = ia64; then 21247 # On IA64, the linker does run time linking by default, so we don't 21248 # have to do anything special. 21249 aix_use_runtimelinking=no 21250 exp_sym_flag='-Bexport' 21251 no_entry_flag="" 21252 else 21253 # If we're using GNU nm, then we don't want the "-C" option. 21254 # -C means demangle to AIX nm, but means don't demangle with GNU nm 21255 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 21256 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' 21257 else 21258 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' 21259 fi 21260 aix_use_runtimelinking=no 21261 21262 # Test if we are trying to use run time linking or normal 21263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 21264 # need to do runtime linking. 21265 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 21266 for ld_flag in $LDFLAGS; do 21267 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 21268 aix_use_runtimelinking=yes 21269 break 21270 fi 21271 done 21272 esac 21273 21274 exp_sym_flag='-bexport' 21275 no_entry_flag='-bnoentry' 21276 fi 21277 21278 # When large executables or shared objects are built, AIX ld can 21279 # have problems creating the table of contents. If linking a library 21280 # or program results in "error TOC overflow" add -mminimal-toc to 21281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 21282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 21283 21284 archive_cmds_GCJ='' 21285 hardcode_direct_GCJ=yes 21286 hardcode_libdir_separator_GCJ=':' 21287 link_all_deplibs_GCJ=yes 21288 21289 if test "$GCC" = yes; then 21290 case $host_os in aix4.[012]|aix4.[012].*) 21291 # We only want to do this on AIX 4.2 and lower, the check 21292 # below for broken collect2 doesn't work under 4.3+ 21293 collect2name=`${CC} -print-prog-name=collect2` 21294 if test -f "$collect2name" && \ 21295 strings "$collect2name" | grep resolve_lib_name >/dev/null 21296 then 21297 # We have reworked collect2 21298 hardcode_direct_GCJ=yes 21299 else 21300 # We have old collect2 21301 hardcode_direct_GCJ=unsupported 21302 # It fails to find uninstalled libraries when the uninstalled 21303 # path is not listed in the libpath. Setting hardcode_minus_L 21304 # to unsupported forces relinking 21305 hardcode_minus_L_GCJ=yes 21306 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21307 hardcode_libdir_separator_GCJ= 21308 fi 21309 esac 21310 shared_flag='-shared' 21311 if test "$aix_use_runtimelinking" = yes; then 21312 shared_flag="$shared_flag "'${wl}-G' 21313 fi 21314 else 21315 # not using gcc 21316 if test "$host_cpu" = ia64; then 21317 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 21318 # chokes on -Wl,-G. The following line is correct: 21319 shared_flag='-G' 21320 else 21321 if test "$aix_use_runtimelinking" = yes; then 21322 shared_flag='${wl}-G' 21323 else 21324 shared_flag='${wl}-bM:SRE' 21325 fi 21326 fi 21327 fi 21328 21329 # It seems that -bexpall does not export symbols beginning with 21330 # underscore (_), so it is better to generate a list of symbols to export. 21331 always_export_symbols_GCJ=yes 21332 if test "$aix_use_runtimelinking" = yes; then 21333 # Warning - without using the other runtime loading flags (-brtl), 21334 # -berok will link without error, but may produce a broken library. 21335 allow_undefined_flag_GCJ='-berok' 21336 # Determine the default libpath from the value encoded in an empty executable. 21337 cat >conftest.$ac_ext <<_ACEOF 21338/* confdefs.h. */ 21339_ACEOF 21340cat confdefs.h >>conftest.$ac_ext 21341cat >>conftest.$ac_ext <<_ACEOF 21342/* end confdefs.h. */ 21343 21344int 21345main () 21346{ 21347 21348 ; 21349 return 0; 21350} 21351_ACEOF 21352rm -f conftest.$ac_objext conftest$ac_exeext 21353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21354 (eval $ac_link) 2>conftest.er1 21355 ac_status=$? 21356 grep -v '^ *+' conftest.er1 >conftest.err 21357 rm -f conftest.er1 21358 cat conftest.err >&5 21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21360 (exit $ac_status); } && 21361 { ac_try='test -z "$ac_c_werror_flag" 21362 || test ! -s conftest.err' 21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21364 (eval $ac_try) 2>&5 21365 ac_status=$? 21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21367 (exit $ac_status); }; } && 21368 { ac_try='test -s conftest$ac_exeext' 21369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21370 (eval $ac_try) 2>&5 21371 ac_status=$? 21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21373 (exit $ac_status); }; }; then 21374 21375aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 21376}'` 21377# Check for a 64-bit object if we didn't find anything. 21378if 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; } 21379}'`; fi 21380else 21381 echo "$as_me: failed program was:" >&5 21382sed 's/^/| /' conftest.$ac_ext >&5 21383 21384fi 21385rm -f conftest.err conftest.$ac_objext \ 21386 conftest$ac_exeext conftest.$ac_ext 21387if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 21388 21389 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 21390 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" 21391 else 21392 if test "$host_cpu" = ia64; then 21393 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 21394 allow_undefined_flag_GCJ="-z nodefs" 21395 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" 21396 else 21397 # Determine the default libpath from the value encoded in an empty executable. 21398 cat >conftest.$ac_ext <<_ACEOF 21399/* confdefs.h. */ 21400_ACEOF 21401cat confdefs.h >>conftest.$ac_ext 21402cat >>conftest.$ac_ext <<_ACEOF 21403/* end confdefs.h. */ 21404 21405int 21406main () 21407{ 21408 21409 ; 21410 return 0; 21411} 21412_ACEOF 21413rm -f conftest.$ac_objext conftest$ac_exeext 21414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21415 (eval $ac_link) 2>conftest.er1 21416 ac_status=$? 21417 grep -v '^ *+' conftest.er1 >conftest.err 21418 rm -f conftest.er1 21419 cat conftest.err >&5 21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21421 (exit $ac_status); } && 21422 { ac_try='test -z "$ac_c_werror_flag" 21423 || test ! -s conftest.err' 21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21425 (eval $ac_try) 2>&5 21426 ac_status=$? 21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21428 (exit $ac_status); }; } && 21429 { ac_try='test -s conftest$ac_exeext' 21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21431 (eval $ac_try) 2>&5 21432 ac_status=$? 21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21434 (exit $ac_status); }; }; then 21435 21436aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 21437}'` 21438# Check for a 64-bit object if we didn't find anything. 21439if 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; } 21440}'`; fi 21441else 21442 echo "$as_me: failed program was:" >&5 21443sed 's/^/| /' conftest.$ac_ext >&5 21444 21445fi 21446rm -f conftest.err conftest.$ac_objext \ 21447 conftest$ac_exeext conftest.$ac_ext 21448if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 21449 21450 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 21451 # Warning - without using the other run time loading flags, 21452 # -berok will link without error, but may produce a broken library. 21453 no_undefined_flag_GCJ=' ${wl}-bernotok' 21454 allow_undefined_flag_GCJ=' ${wl}-berok' 21455 # -bexpall does not export symbols beginning with underscore (_) 21456 always_export_symbols_GCJ=yes 21457 # Exported symbols can be pulled into shared objects from archives 21458 whole_archive_flag_spec_GCJ=' ' 21459 archive_cmds_need_lc_GCJ=yes 21460 # This is similar to how AIX traditionally builds its shared libraries. 21461 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' 21462 fi 21463 fi 21464 ;; 21465 21466 amigaos*) 21467 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)' 21468 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21469 hardcode_minus_L_GCJ=yes 21470 # see comment about different semantics on the GNU ld section 21471 ld_shlibs_GCJ=no 21472 ;; 21473 21474 bsdi[45]*) 21475 export_dynamic_flag_spec_GCJ=-rdynamic 21476 ;; 21477 21478 cygwin* | mingw* | pw32*) 21479 # When not using gcc, we currently assume that we are using 21480 # Microsoft Visual C++. 21481 # hardcode_libdir_flag_spec is actually meaningless, as there is 21482 # no search path for DLLs. 21483 hardcode_libdir_flag_spec_GCJ=' ' 21484 allow_undefined_flag_GCJ=unsupported 21485 # Tell ltmain to make .lib files, not .a files. 21486 libext=lib 21487 # Tell ltmain to make .dll files, not .so files. 21488 shrext_cmds=".dll" 21489 # FIXME: Setting linknames here is a bad hack. 21490 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 21491 # The linker will automatically build a .lib file if we build a DLL. 21492 old_archive_From_new_cmds_GCJ='true' 21493 # FIXME: Should let the user specify the lib program. 21494 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 21495 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 21496 enable_shared_with_static_runtimes_GCJ=yes 21497 ;; 21498 21499 darwin* | rhapsody*) 21500 case $host_os in 21501 rhapsody* | darwin1.[012]) 21502 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 21503 ;; 21504 *) # Darwin 1.3 on 21505 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 21506 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 21507 else 21508 case ${MACOSX_DEPLOYMENT_TARGET} in 21509 10.[012]) 21510 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 21511 ;; 21512 10.*) 21513 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 21514 ;; 21515 esac 21516 fi 21517 ;; 21518 esac 21519 archive_cmds_need_lc_GCJ=no 21520 hardcode_direct_GCJ=no 21521 hardcode_automatic_GCJ=yes 21522 hardcode_shlibpath_var_GCJ=unsupported 21523 whole_archive_flag_spec_GCJ='' 21524 link_all_deplibs_GCJ=yes 21525 if test "$GCC" = yes ; then 21526 output_verbose_link_cmd='echo' 21527 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 21528 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 21529 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 21530 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21531 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21532 else 21533 case $cc_basename in 21534 xlc*) 21535 output_verbose_link_cmd='echo' 21536 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 21537 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 21538 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 21539 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21540 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21541 ;; 21542 *) 21543 ld_shlibs_GCJ=no 21544 ;; 21545 esac 21546 fi 21547 ;; 21548 21549 dgux*) 21550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21551 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21552 hardcode_shlibpath_var_GCJ=no 21553 ;; 21554 21555 freebsd1*) 21556 ld_shlibs_GCJ=no 21557 ;; 21558 21559 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 21560 # support. Future versions do this automatically, but an explicit c++rt0.o 21561 # does not break anything, and helps significantly (at the cost of a little 21562 # extra space). 21563 freebsd2.2*) 21564 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 21565 hardcode_libdir_flag_spec_GCJ='-R$libdir' 21566 hardcode_direct_GCJ=yes 21567 hardcode_shlibpath_var_GCJ=no 21568 ;; 21569 21570 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 21571 freebsd2*) 21572 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 21573 hardcode_direct_GCJ=yes 21574 hardcode_minus_L_GCJ=yes 21575 hardcode_shlibpath_var_GCJ=no 21576 ;; 21577 21578 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 21579 freebsd* | kfreebsd*-gnu | dragonfly*) 21580 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 21581 hardcode_libdir_flag_spec_GCJ='-R$libdir' 21582 hardcode_direct_GCJ=yes 21583 hardcode_shlibpath_var_GCJ=no 21584 ;; 21585 21586 hpux9*) 21587 if test "$GCC" = yes; then 21588 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' 21589 else 21590 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' 21591 fi 21592 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 21593 hardcode_libdir_separator_GCJ=: 21594 hardcode_direct_GCJ=yes 21595 21596 # hardcode_minus_L: Not really in the search PATH, 21597 # but as the default location of the library. 21598 hardcode_minus_L_GCJ=yes 21599 export_dynamic_flag_spec_GCJ='${wl}-E' 21600 ;; 21601 21602 hpux10* | hpux11*) 21603 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 21604 case $host_cpu in 21605 hppa*64*|ia64*) 21606 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 21607 ;; 21608 *) 21609 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 21610 ;; 21611 esac 21612 else 21613 case $host_cpu in 21614 hppa*64*|ia64*) 21615 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 21616 ;; 21617 *) 21618 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 21619 ;; 21620 esac 21621 fi 21622 if test "$with_gnu_ld" = no; then 21623 case $host_cpu in 21624 hppa*64*) 21625 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 21626 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 21627 hardcode_libdir_separator_GCJ=: 21628 hardcode_direct_GCJ=no 21629 hardcode_shlibpath_var_GCJ=no 21630 ;; 21631 ia64*) 21632 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21633 hardcode_direct_GCJ=no 21634 hardcode_shlibpath_var_GCJ=no 21635 21636 # hardcode_minus_L: Not really in the search PATH, 21637 # but as the default location of the library. 21638 hardcode_minus_L_GCJ=yes 21639 ;; 21640 *) 21641 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 21642 hardcode_libdir_separator_GCJ=: 21643 hardcode_direct_GCJ=yes 21644 export_dynamic_flag_spec_GCJ='${wl}-E' 21645 21646 # hardcode_minus_L: Not really in the search PATH, 21647 # but as the default location of the library. 21648 hardcode_minus_L_GCJ=yes 21649 ;; 21650 esac 21651 fi 21652 ;; 21653 21654 irix5* | irix6* | nonstopux*) 21655 if test "$GCC" = yes; then 21656 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' 21657 else 21658 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' 21659 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 21660 fi 21661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 21662 hardcode_libdir_separator_GCJ=: 21663 link_all_deplibs_GCJ=yes 21664 ;; 21665 21666 netbsd*) 21667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 21668 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 21669 else 21670 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 21671 fi 21672 hardcode_libdir_flag_spec_GCJ='-R$libdir' 21673 hardcode_direct_GCJ=yes 21674 hardcode_shlibpath_var_GCJ=no 21675 ;; 21676 21677 newsos6) 21678 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21679 hardcode_direct_GCJ=yes 21680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 21681 hardcode_libdir_separator_GCJ=: 21682 hardcode_shlibpath_var_GCJ=no 21683 ;; 21684 21685 openbsd*) 21686 hardcode_direct_GCJ=yes 21687 hardcode_shlibpath_var_GCJ=no 21688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21689 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 21690 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 21691 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 21692 export_dynamic_flag_spec_GCJ='${wl}-E' 21693 else 21694 case $host_os in 21695 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 21696 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 21697 hardcode_libdir_flag_spec_GCJ='-R$libdir' 21698 ;; 21699 *) 21700 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 21701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 21702 ;; 21703 esac 21704 fi 21705 ;; 21706 21707 os2*) 21708 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21709 hardcode_minus_L_GCJ=yes 21710 allow_undefined_flag_GCJ=unsupported 21711 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' 21712 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 21713 ;; 21714 21715 osf3*) 21716 if test "$GCC" = yes; then 21717 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 21718 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' 21719 else 21720 allow_undefined_flag_GCJ=' -expect_unresolved \*' 21721 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' 21722 fi 21723 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 21724 hardcode_libdir_separator_GCJ=: 21725 ;; 21726 21727 osf4* | osf5*) # as osf3* with the addition of -msym flag 21728 if test "$GCC" = yes; then 21729 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 21730 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' 21731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 21732 else 21733 allow_undefined_flag_GCJ=' -expect_unresolved \*' 21734 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' 21735 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~ 21736 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 21737 21738 # Both c and cxx compiler support -rpath directly 21739 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 21740 fi 21741 hardcode_libdir_separator_GCJ=: 21742 ;; 21743 21744 sco3.2v5*) 21745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21746 hardcode_shlibpath_var_GCJ=no 21747 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 21748 runpath_var=LD_RUN_PATH 21749 hardcode_runpath_var=yes 21750 ;; 21751 21752 solaris*) 21753 no_undefined_flag_GCJ=' -z text' 21754 if test "$GCC" = yes; then 21755 wlarc='${wl}' 21756 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 21757 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 21758 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 21759 else 21760 wlarc='' 21761 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 21762 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 21763 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 21764 fi 21765 hardcode_libdir_flag_spec_GCJ='-R$libdir' 21766 hardcode_shlibpath_var_GCJ=no 21767 case $host_os in 21768 solaris2.[0-5] | solaris2.[0-5].*) ;; 21769 *) 21770 # The compiler driver will combine linker options so we 21771 # cannot just pass the convience library names through 21772 # without $wl, iff we do not link with $LD. 21773 # Luckily, gcc supports the same syntax we need for Sun Studio. 21774 # Supported since Solaris 2.6 (maybe 2.5.1?) 21775 case $wlarc in 21776 '') 21777 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 21778 *) 21779 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 21780 esac ;; 21781 esac 21782 link_all_deplibs_GCJ=yes 21783 ;; 21784 21785 sunos4*) 21786 if test "x$host_vendor" = xsequent; then 21787 # Use $CC to link under sequent, because it throws in some extra .o 21788 # files that make .init and .fini sections work. 21789 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 21790 else 21791 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 21792 fi 21793 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21794 hardcode_direct_GCJ=yes 21795 hardcode_minus_L_GCJ=yes 21796 hardcode_shlibpath_var_GCJ=no 21797 ;; 21798 21799 sysv4) 21800 case $host_vendor in 21801 sni) 21802 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21803 hardcode_direct_GCJ=yes # is this really true??? 21804 ;; 21805 siemens) 21806 ## LD is ld it makes a PLAMLIB 21807 ## CC just makes a GrossModule. 21808 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 21809 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 21810 hardcode_direct_GCJ=no 21811 ;; 21812 motorola) 21813 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21814 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 21815 ;; 21816 esac 21817 runpath_var='LD_RUN_PATH' 21818 hardcode_shlibpath_var_GCJ=no 21819 ;; 21820 21821 sysv4.3*) 21822 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21823 hardcode_shlibpath_var_GCJ=no 21824 export_dynamic_flag_spec_GCJ='-Bexport' 21825 ;; 21826 21827 sysv4*MP*) 21828 if test -d /usr/nec; then 21829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21830 hardcode_shlibpath_var_GCJ=no 21831 runpath_var=LD_RUN_PATH 21832 hardcode_runpath_var=yes 21833 ld_shlibs_GCJ=yes 21834 fi 21835 ;; 21836 21837 sysv4.2uw2*) 21838 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 21839 hardcode_direct_GCJ=yes 21840 hardcode_minus_L_GCJ=no 21841 hardcode_shlibpath_var_GCJ=no 21842 hardcode_runpath_var=yes 21843 runpath_var=LD_RUN_PATH 21844 ;; 21845 21846 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 21847 no_undefined_flag_GCJ='${wl}-z ${wl}text' 21848 if test "$GCC" = yes; then 21849 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 21850 else 21851 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 21852 fi 21853 runpath_var='LD_RUN_PATH' 21854 hardcode_shlibpath_var_GCJ=no 21855 ;; 21856 21857 sysv5*) 21858 no_undefined_flag_GCJ=' -z text' 21859 # $CC -shared without GNU ld will not create a library from C++ 21860 # object files and a static libstdc++, better avoid it by now 21861 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 21862 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 21863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 21864 hardcode_libdir_flag_spec_GCJ= 21865 hardcode_shlibpath_var_GCJ=no 21866 runpath_var='LD_RUN_PATH' 21867 ;; 21868 21869 uts4*) 21870 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 21871 hardcode_libdir_flag_spec_GCJ='-L$libdir' 21872 hardcode_shlibpath_var_GCJ=no 21873 ;; 21874 21875 *) 21876 ld_shlibs_GCJ=no 21877 ;; 21878 esac 21879 fi 21880 21881echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 21882echo "${ECHO_T}$ld_shlibs_GCJ" >&6 21883test "$ld_shlibs_GCJ" = no && can_build_shared=no 21884 21885variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21886if test "$GCC" = yes; then 21887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21888fi 21889 21890# 21891# Do we need to explicitly link libc? 21892# 21893case "x$archive_cmds_need_lc_GCJ" in 21894x|xyes) 21895 # Assume -lc should be added 21896 archive_cmds_need_lc_GCJ=yes 21897 21898 if test "$enable_shared" = yes && test "$GCC" = yes; then 21899 case $archive_cmds_GCJ in 21900 *'~'*) 21901 # FIXME: we may have to deal with multi-command sequences. 21902 ;; 21903 '$CC '*) 21904 # Test whether the compiler implicitly links with -lc since on some 21905 # systems, -lgcc has to come before -lc. If gcc already passes -lc 21906 # to ld, don't add -lc before -lgcc. 21907 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 21908echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 21909 $rm conftest* 21910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 21911 21912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21913 (eval $ac_compile) 2>&5 21914 ac_status=$? 21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21916 (exit $ac_status); } 2>conftest.err; then 21917 soname=conftest 21918 lib=conftest 21919 libobjs=conftest.$ac_objext 21920 deplibs= 21921 wl=$lt_prog_compiler_wl_GCJ 21922 compiler_flags=-v 21923 linker_flags=-v 21924 verstring= 21925 output_objdir=. 21926 libname=conftest 21927 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 21928 allow_undefined_flag_GCJ= 21929 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 21930 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 21931 ac_status=$? 21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21933 (exit $ac_status); } 21934 then 21935 archive_cmds_need_lc_GCJ=no 21936 else 21937 archive_cmds_need_lc_GCJ=yes 21938 fi 21939 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 21940 else 21941 cat conftest.err 1>&5 21942 fi 21943 $rm conftest* 21944 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 21945echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 21946 ;; 21947 esac 21948 fi 21949 ;; 21950esac 21951 21952echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 21953echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 21954library_names_spec= 21955libname_spec='lib$name' 21956soname_spec= 21957shrext_cmds=".so" 21958postinstall_cmds= 21959postuninstall_cmds= 21960finish_cmds= 21961finish_eval= 21962shlibpath_var= 21963shlibpath_overrides_runpath=unknown 21964version_type=none 21965dynamic_linker="$host_os ld.so" 21966sys_lib_dlsearch_path_spec="/lib /usr/lib" 21967if test "$GCC" = yes; then 21968 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 21969 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 21970 # if the path contains ";" then we assume it to be the separator 21971 # otherwise default to the standard path separator (i.e. ":") - it is 21972 # assumed that no part of a normal pathname contains ";" but that should 21973 # okay in the real world where ";" in dirpaths is itself problematic. 21974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21975 else 21976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21977 fi 21978else 21979 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21980fi 21981need_lib_prefix=unknown 21982hardcode_into_libs=no 21983 21984# when you set need_version to no, make sure it does not cause -set_version 21985# flags to be left without arguments 21986need_version=unknown 21987 21988case $host_os in 21989aix3*) 21990 version_type=linux 21991 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21992 shlibpath_var=LIBPATH 21993 21994 # AIX 3 has no versioning support, so we append a major version to the name. 21995 soname_spec='${libname}${release}${shared_ext}$major' 21996 ;; 21997 21998aix4* | aix5*) 21999 version_type=linux 22000 need_lib_prefix=no 22001 need_version=no 22002 hardcode_into_libs=yes 22003 if test "$host_cpu" = ia64; then 22004 # AIX 5 supports IA64 22005 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 22006 shlibpath_var=LD_LIBRARY_PATH 22007 else 22008 # With GCC up to 2.95.x, collect2 would create an import file 22009 # for dependence libraries. The import file would start with 22010 # the line `#! .'. This would cause the generated library to 22011 # depend on `.', always an invalid library. This was fixed in 22012 # development snapshots of GCC prior to 3.0. 22013 case $host_os in 22014 aix4 | aix4.[01] | aix4.[01].*) 22015 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22016 echo ' yes ' 22017 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 22018 : 22019 else 22020 can_build_shared=no 22021 fi 22022 ;; 22023 esac 22024 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 22025 # soname into executable. Probably we can add versioning support to 22026 # collect2, so additional links can be useful in future. 22027 if test "$aix_use_runtimelinking" = yes; then 22028 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 22029 # instead of lib<name>.a to let people know that these are not 22030 # typical AIX shared libraries. 22031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22032 else 22033 # We preserve .a as extension for shared libraries through AIX4.2 22034 # and later when we are not doing run time linking. 22035 library_names_spec='${libname}${release}.a $libname.a' 22036 soname_spec='${libname}${release}${shared_ext}$major' 22037 fi 22038 shlibpath_var=LIBPATH 22039 fi 22040 ;; 22041 22042amigaos*) 22043 library_names_spec='$libname.ixlibrary $libname.a' 22044 # Create ${libname}_ixlibrary.a entries in /sys/libs. 22045 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' 22046 ;; 22047 22048beos*) 22049 library_names_spec='${libname}${shared_ext}' 22050 dynamic_linker="$host_os ld.so" 22051 shlibpath_var=LIBRARY_PATH 22052 ;; 22053 22054bsdi[45]*) 22055 version_type=linux 22056 need_version=no 22057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22058 soname_spec='${libname}${release}${shared_ext}$major' 22059 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 22060 shlibpath_var=LD_LIBRARY_PATH 22061 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 22062 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 22063 # the default ld.so.conf also contains /usr/contrib/lib and 22064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 22065 # libtool to hard-code these into programs 22066 ;; 22067 22068cygwin* | mingw* | pw32*) 22069 version_type=windows 22070 shrext_cmds=".dll" 22071 need_version=no 22072 need_lib_prefix=no 22073 22074 case $GCC,$host_os in 22075 yes,cygwin* | yes,mingw* | yes,pw32*) 22076 library_names_spec='$libname.dll.a' 22077 # DLL is installed to $(libdir)/../bin by postinstall_cmds 22078 postinstall_cmds='base_file=`basename \${file}`~ 22079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 22080 dldir=$destdir/`dirname \$dlpath`~ 22081 test -d \$dldir || mkdir -p \$dldir~ 22082 $install_prog $dir/$dlname \$dldir/$dlname~ 22083 chmod a+x \$dldir/$dlname' 22084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 22085 dlpath=$dir/\$dldll~ 22086 $rm \$dlpath' 22087 shlibpath_overrides_runpath=yes 22088 22089 case $host_os in 22090 cygwin*) 22091 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 22092 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22093 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 22094 ;; 22095 mingw*) 22096 # MinGW DLLs use traditional 'lib' prefix 22097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22098 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 22099 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 22100 # It is most probably a Windows format PATH printed by 22101 # mingw gcc, but we are running on Cygwin. Gcc prints its search 22102 # path with ; separators, and with drive letters. We can handle the 22103 # drive letters (cygwin fileutils understands them), so leave them, 22104 # especially as we might pass files found there to a mingw objdump, 22105 # which wouldn't understand a cygwinified path. Ahh. 22106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22107 else 22108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22109 fi 22110 ;; 22111 pw32*) 22112 # pw32 DLLs use 'pw' prefix rather than 'lib' 22113 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 22114 ;; 22115 esac 22116 ;; 22117 22118 *) 22119 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 22120 ;; 22121 esac 22122 dynamic_linker='Win32 ld.exe' 22123 # FIXME: first we should search . and the directory the executable is in 22124 shlibpath_var=PATH 22125 ;; 22126 22127darwin* | rhapsody*) 22128 dynamic_linker="$host_os dyld" 22129 version_type=darwin 22130 need_lib_prefix=no 22131 need_version=no 22132 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 22133 soname_spec='${libname}${release}${major}$shared_ext' 22134 shlibpath_overrides_runpath=yes 22135 shlibpath_var=DYLD_LIBRARY_PATH 22136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22137 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 22138 if test "$GCC" = yes; then 22139 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"` 22140 else 22141 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 22142 fi 22143 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22144 ;; 22145 22146dgux*) 22147 version_type=linux 22148 need_lib_prefix=no 22149 need_version=no 22150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 22151 soname_spec='${libname}${release}${shared_ext}$major' 22152 shlibpath_var=LD_LIBRARY_PATH 22153 ;; 22154 22155freebsd1*) 22156 dynamic_linker=no 22157 ;; 22158 22159kfreebsd*-gnu) 22160 version_type=linux 22161 need_lib_prefix=no 22162 need_version=no 22163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22164 soname_spec='${libname}${release}${shared_ext}$major' 22165 shlibpath_var=LD_LIBRARY_PATH 22166 shlibpath_overrides_runpath=no 22167 hardcode_into_libs=yes 22168 dynamic_linker='GNU ld.so' 22169 ;; 22170 22171freebsd* | dragonfly*) 22172 # DragonFly does not have aout. When/if they implement a new 22173 # versioning mechanism, adjust this. 22174 if test -x /usr/bin/objformat; then 22175 objformat=`/usr/bin/objformat` 22176 else 22177 case $host_os in 22178 freebsd[123]*) objformat=aout ;; 22179 *) objformat=elf ;; 22180 esac 22181 fi 22182 version_type=freebsd-$objformat 22183 case $version_type in 22184 freebsd-elf*) 22185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22186 need_version=no 22187 need_lib_prefix=no 22188 ;; 22189 freebsd-*) 22190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 22191 need_version=yes 22192 ;; 22193 esac 22194 shlibpath_var=LD_LIBRARY_PATH 22195 case $host_os in 22196 freebsd2*) 22197 shlibpath_overrides_runpath=yes 22198 ;; 22199 freebsd3.[01]* | freebsdelf3.[01]*) 22200 shlibpath_overrides_runpath=yes 22201 hardcode_into_libs=yes 22202 ;; 22203 *) # from 3.2 on 22204 shlibpath_overrides_runpath=no 22205 hardcode_into_libs=yes 22206 ;; 22207 esac 22208 ;; 22209 22210gnu*) 22211 version_type=linux 22212 need_lib_prefix=no 22213 need_version=no 22214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 22215 soname_spec='${libname}${release}${shared_ext}$major' 22216 shlibpath_var=LD_LIBRARY_PATH 22217 hardcode_into_libs=yes 22218 ;; 22219 22220hpux9* | hpux10* | hpux11*) 22221 # Give a soname corresponding to the major version so that dld.sl refuses to 22222 # link against other versions. 22223 version_type=sunos 22224 need_lib_prefix=no 22225 need_version=no 22226 case $host_cpu in 22227 ia64*) 22228 shrext_cmds='.so' 22229 hardcode_into_libs=yes 22230 dynamic_linker="$host_os dld.so" 22231 shlibpath_var=LD_LIBRARY_PATH 22232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22234 soname_spec='${libname}${release}${shared_ext}$major' 22235 if test "X$HPUX_IA64_MODE" = X32; then 22236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 22237 else 22238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 22239 fi 22240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22241 ;; 22242 hppa*64*) 22243 shrext_cmds='.sl' 22244 hardcode_into_libs=yes 22245 dynamic_linker="$host_os dld.sl" 22246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 22247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 22248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22249 soname_spec='${libname}${release}${shared_ext}$major' 22250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 22251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 22252 ;; 22253 *) 22254 shrext_cmds='.sl' 22255 dynamic_linker="$host_os dld.sl" 22256 shlibpath_var=SHLIB_PATH 22257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 22258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22259 soname_spec='${libname}${release}${shared_ext}$major' 22260 ;; 22261 esac 22262 # HP-UX runs *really* slowly unless shared libraries are mode 555. 22263 postinstall_cmds='chmod 555 $lib' 22264 ;; 22265 22266irix5* | irix6* | nonstopux*) 22267 case $host_os in 22268 nonstopux*) version_type=nonstopux ;; 22269 *) 22270 if test "$lt_cv_prog_gnu_ld" = yes; then 22271 version_type=linux 22272 else 22273 version_type=irix 22274 fi ;; 22275 esac 22276 need_lib_prefix=no 22277 need_version=no 22278 soname_spec='${libname}${release}${shared_ext}$major' 22279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 22280 case $host_os in 22281 irix5* | nonstopux*) 22282 libsuff= shlibsuff= 22283 ;; 22284 *) 22285 case $LD in # libtool.m4 will add one of these switches to LD 22286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 22287 libsuff= shlibsuff= libmagic=32-bit;; 22288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 22289 libsuff=32 shlibsuff=N32 libmagic=N32;; 22290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 22291 libsuff=64 shlibsuff=64 libmagic=64-bit;; 22292 *) libsuff= shlibsuff= libmagic=never-match;; 22293 esac 22294 ;; 22295 esac 22296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 22297 shlibpath_overrides_runpath=no 22298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 22299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 22300 hardcode_into_libs=yes 22301 ;; 22302 22303# No shared lib support for Linux oldld, aout, or coff. 22304linux*oldld* | linux*aout* | linux*coff*) 22305 dynamic_linker=no 22306 ;; 22307 22308# This must be Linux ELF. 22309linux*) 22310 version_type=linux 22311 need_lib_prefix=no 22312 need_version=no 22313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22314 soname_spec='${libname}${release}${shared_ext}$major' 22315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 22316 shlibpath_var=LD_LIBRARY_PATH 22317 shlibpath_overrides_runpath=no 22318 # This implies no fast_install, which is unacceptable. 22319 # Some rework will be needed to allow for fast_install 22320 # before this can be enabled. 22321 hardcode_into_libs=yes 22322 22323 # Append ld.so.conf contents to the search path 22324 if test -f /etc/ld.so.conf; then 22325 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 22326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 22327 fi 22328 22329 # We used to test for /lib/ld.so.1 and disable shared libraries on 22330 # powerpc, because MkLinux only supported shared libraries with the 22331 # GNU dynamic linker. Since this was broken with cross compilers, 22332 # most powerpc-linux boxes support dynamic linking these days and 22333 # people can always --disable-shared, the test was removed, and we 22334 # assume the GNU/Linux dynamic linker is in use. 22335 dynamic_linker='GNU/Linux ld.so' 22336 ;; 22337 22338knetbsd*-gnu) 22339 version_type=linux 22340 need_lib_prefix=no 22341 need_version=no 22342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22343 soname_spec='${libname}${release}${shared_ext}$major' 22344 shlibpath_var=LD_LIBRARY_PATH 22345 shlibpath_overrides_runpath=no 22346 hardcode_into_libs=yes 22347 dynamic_linker='GNU ld.so' 22348 ;; 22349 22350netbsd*) 22351 version_type=sunos 22352 need_lib_prefix=no 22353 need_version=no 22354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 22355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22357 dynamic_linker='NetBSD (a.out) ld.so' 22358 else 22359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22360 soname_spec='${libname}${release}${shared_ext}$major' 22361 dynamic_linker='NetBSD ld.elf_so' 22362 fi 22363 shlibpath_var=LD_LIBRARY_PATH 22364 shlibpath_overrides_runpath=yes 22365 hardcode_into_libs=yes 22366 ;; 22367 22368newsos6) 22369 version_type=linux 22370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22371 shlibpath_var=LD_LIBRARY_PATH 22372 shlibpath_overrides_runpath=yes 22373 ;; 22374 22375nto-qnx*) 22376 version_type=linux 22377 need_lib_prefix=no 22378 need_version=no 22379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22380 soname_spec='${libname}${release}${shared_ext}$major' 22381 shlibpath_var=LD_LIBRARY_PATH 22382 shlibpath_overrides_runpath=yes 22383 ;; 22384 22385openbsd*) 22386 version_type=sunos 22387 need_lib_prefix=no 22388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 22389 case $host_os in 22390 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 22391 *) need_version=no ;; 22392 esac 22393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 22395 shlibpath_var=LD_LIBRARY_PATH 22396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 22397 case $host_os in 22398 openbsd2.[89] | openbsd2.[89].*) 22399 shlibpath_overrides_runpath=no 22400 ;; 22401 *) 22402 shlibpath_overrides_runpath=yes 22403 ;; 22404 esac 22405 else 22406 shlibpath_overrides_runpath=yes 22407 fi 22408 ;; 22409 22410os2*) 22411 libname_spec='$name' 22412 shrext_cmds=".dll" 22413 need_lib_prefix=no 22414 library_names_spec='$libname${shared_ext} $libname.a' 22415 dynamic_linker='OS/2 ld.exe' 22416 shlibpath_var=LIBPATH 22417 ;; 22418 22419osf3* | osf4* | osf5*) 22420 version_type=osf 22421 need_lib_prefix=no 22422 need_version=no 22423 soname_spec='${libname}${release}${shared_ext}$major' 22424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22425 shlibpath_var=LD_LIBRARY_PATH 22426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 22427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 22428 ;; 22429 22430sco3.2v5*) 22431 version_type=osf 22432 soname_spec='${libname}${release}${shared_ext}$major' 22433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22434 shlibpath_var=LD_LIBRARY_PATH 22435 ;; 22436 22437solaris*) 22438 version_type=linux 22439 need_lib_prefix=no 22440 need_version=no 22441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22442 soname_spec='${libname}${release}${shared_ext}$major' 22443 shlibpath_var=LD_LIBRARY_PATH 22444 shlibpath_overrides_runpath=yes 22445 hardcode_into_libs=yes 22446 # ldd complains unless libraries are executable 22447 postinstall_cmds='chmod +x $lib' 22448 ;; 22449 22450sunos4*) 22451 version_type=sunos 22452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 22453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 22454 shlibpath_var=LD_LIBRARY_PATH 22455 shlibpath_overrides_runpath=yes 22456 if test "$with_gnu_ld" = yes; then 22457 need_lib_prefix=no 22458 fi 22459 need_version=yes 22460 ;; 22461 22462sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 22463 version_type=linux 22464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22465 soname_spec='${libname}${release}${shared_ext}$major' 22466 shlibpath_var=LD_LIBRARY_PATH 22467 case $host_vendor in 22468 sni) 22469 shlibpath_overrides_runpath=no 22470 need_lib_prefix=no 22471 export_dynamic_flag_spec='${wl}-Blargedynsym' 22472 runpath_var=LD_RUN_PATH 22473 ;; 22474 siemens) 22475 need_lib_prefix=no 22476 ;; 22477 motorola) 22478 need_lib_prefix=no 22479 need_version=no 22480 shlibpath_overrides_runpath=no 22481 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 22482 ;; 22483 esac 22484 ;; 22485 22486sysv4*MP*) 22487 if test -d /usr/nec ;then 22488 version_type=linux 22489 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 22490 soname_spec='$libname${shared_ext}.$major' 22491 shlibpath_var=LD_LIBRARY_PATH 22492 fi 22493 ;; 22494 22495uts4*) 22496 version_type=linux 22497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 22498 soname_spec='${libname}${release}${shared_ext}$major' 22499 shlibpath_var=LD_LIBRARY_PATH 22500 ;; 22501 22502*) 22503 dynamic_linker=no 22504 ;; 22505esac 22506echo "$as_me:$LINENO: result: $dynamic_linker" >&5 22507echo "${ECHO_T}$dynamic_linker" >&6 22508test "$dynamic_linker" = no && can_build_shared=no 22509 22510echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 22511echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 22512hardcode_action_GCJ= 22513if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 22514 test -n "$runpath_var_GCJ" || \ 22515 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 22516 22517 # We can hardcode non-existant directories. 22518 if test "$hardcode_direct_GCJ" != no && 22519 # If the only mechanism to avoid hardcoding is shlibpath_var, we 22520 # have to relink, otherwise we might link with an installed library 22521 # when we should be linking with a yet-to-be-installed one 22522 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 22523 test "$hardcode_minus_L_GCJ" != no; then 22524 # Linking always hardcodes the temporary library directory. 22525 hardcode_action_GCJ=relink 22526 else 22527 # We can link without hardcoding, and we can hardcode nonexisting dirs. 22528 hardcode_action_GCJ=immediate 22529 fi 22530else 22531 # We cannot hardcode anything, or else we can only hardcode existing 22532 # directories. 22533 hardcode_action_GCJ=unsupported 22534fi 22535echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 22536echo "${ECHO_T}$hardcode_action_GCJ" >&6 22537 22538if test "$hardcode_action_GCJ" = relink; then 22539 # Fast installation is not supported 22540 enable_fast_install=no 22541elif test "$shlibpath_overrides_runpath" = yes || 22542 test "$enable_shared" = no; then 22543 # Fast installation is not necessary 22544 enable_fast_install=needless 22545fi 22546 22547striplib= 22548old_striplib= 22549echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 22550echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 22551if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 22552 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 22553 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 22554 echo "$as_me:$LINENO: result: yes" >&5 22555echo "${ECHO_T}yes" >&6 22556else 22557# FIXME - insert some real tests, host_os isn't really good enough 22558 case $host_os in 22559 darwin*) 22560 if test -n "$STRIP" ; then 22561 striplib="$STRIP -x" 22562 echo "$as_me:$LINENO: result: yes" >&5 22563echo "${ECHO_T}yes" >&6 22564 else 22565 echo "$as_me:$LINENO: result: no" >&5 22566echo "${ECHO_T}no" >&6 22567fi 22568 ;; 22569 *) 22570 echo "$as_me:$LINENO: result: no" >&5 22571echo "${ECHO_T}no" >&6 22572 ;; 22573 esac 22574fi 22575 22576if test "x$enable_dlopen" != xyes; then 22577 enable_dlopen=unknown 22578 enable_dlopen_self=unknown 22579 enable_dlopen_self_static=unknown 22580else 22581 lt_cv_dlopen=no 22582 lt_cv_dlopen_libs= 22583 22584 case $host_os in 22585 beos*) 22586 lt_cv_dlopen="load_add_on" 22587 lt_cv_dlopen_libs= 22588 lt_cv_dlopen_self=yes 22589 ;; 22590 22591 mingw* | pw32*) 22592 lt_cv_dlopen="LoadLibrary" 22593 lt_cv_dlopen_libs= 22594 ;; 22595 22596 cygwin*) 22597 lt_cv_dlopen="dlopen" 22598 lt_cv_dlopen_libs= 22599 ;; 22600 22601 darwin*) 22602 # if libdl is installed we need to link against it 22603 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 22604echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 22605if test "${ac_cv_lib_dl_dlopen+set}" = set; then 22606 echo $ECHO_N "(cached) $ECHO_C" >&6 22607else 22608 ac_check_lib_save_LIBS=$LIBS 22609LIBS="-ldl $LIBS" 22610cat >conftest.$ac_ext <<_ACEOF 22611/* confdefs.h. */ 22612_ACEOF 22613cat confdefs.h >>conftest.$ac_ext 22614cat >>conftest.$ac_ext <<_ACEOF 22615/* end confdefs.h. */ 22616 22617/* Override any gcc2 internal prototype to avoid an error. */ 22618#ifdef __cplusplus 22619extern "C" 22620#endif 22621/* We use char because int might match the return type of a gcc2 22622 builtin and then its argument prototype would still apply. */ 22623char dlopen (); 22624int 22625main () 22626{ 22627dlopen (); 22628 ; 22629 return 0; 22630} 22631_ACEOF 22632rm -f conftest.$ac_objext conftest$ac_exeext 22633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22634 (eval $ac_link) 2>conftest.er1 22635 ac_status=$? 22636 grep -v '^ *+' conftest.er1 >conftest.err 22637 rm -f conftest.er1 22638 cat conftest.err >&5 22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22640 (exit $ac_status); } && 22641 { ac_try='test -z "$ac_c_werror_flag" 22642 || test ! -s conftest.err' 22643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22644 (eval $ac_try) 2>&5 22645 ac_status=$? 22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22647 (exit $ac_status); }; } && 22648 { ac_try='test -s conftest$ac_exeext' 22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22650 (eval $ac_try) 2>&5 22651 ac_status=$? 22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22653 (exit $ac_status); }; }; then 22654 ac_cv_lib_dl_dlopen=yes 22655else 22656 echo "$as_me: failed program was:" >&5 22657sed 's/^/| /' conftest.$ac_ext >&5 22658 22659ac_cv_lib_dl_dlopen=no 22660fi 22661rm -f conftest.err conftest.$ac_objext \ 22662 conftest$ac_exeext conftest.$ac_ext 22663LIBS=$ac_check_lib_save_LIBS 22664fi 22665echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 22666echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 22667if test $ac_cv_lib_dl_dlopen = yes; then 22668 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 22669else 22670 22671 lt_cv_dlopen="dyld" 22672 lt_cv_dlopen_libs= 22673 lt_cv_dlopen_self=yes 22674 22675fi 22676 22677 ;; 22678 22679 *) 22680 echo "$as_me:$LINENO: checking for shl_load" >&5 22681echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 22682if test "${ac_cv_func_shl_load+set}" = set; then 22683 echo $ECHO_N "(cached) $ECHO_C" >&6 22684else 22685 cat >conftest.$ac_ext <<_ACEOF 22686/* confdefs.h. */ 22687_ACEOF 22688cat confdefs.h >>conftest.$ac_ext 22689cat >>conftest.$ac_ext <<_ACEOF 22690/* end confdefs.h. */ 22691/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 22692 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22693#define shl_load innocuous_shl_load 22694 22695/* System header to define __stub macros and hopefully few prototypes, 22696 which can conflict with char shl_load (); below. 22697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22698 <limits.h> exists even on freestanding compilers. */ 22699 22700#ifdef __STDC__ 22701# include <limits.h> 22702#else 22703# include <assert.h> 22704#endif 22705 22706#undef shl_load 22707 22708/* Override any gcc2 internal prototype to avoid an error. */ 22709#ifdef __cplusplus 22710extern "C" 22711{ 22712#endif 22713/* We use char because int might match the return type of a gcc2 22714 builtin and then its argument prototype would still apply. */ 22715char shl_load (); 22716/* The GNU C library defines this for functions which it implements 22717 to always fail with ENOSYS. Some functions are actually named 22718 something starting with __ and the normal name is an alias. */ 22719#if defined (__stub_shl_load) || defined (__stub___shl_load) 22720choke me 22721#else 22722char (*f) () = shl_load; 22723#endif 22724#ifdef __cplusplus 22725} 22726#endif 22727 22728int 22729main () 22730{ 22731return f != shl_load; 22732 ; 22733 return 0; 22734} 22735_ACEOF 22736rm -f conftest.$ac_objext conftest$ac_exeext 22737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22738 (eval $ac_link) 2>conftest.er1 22739 ac_status=$? 22740 grep -v '^ *+' conftest.er1 >conftest.err 22741 rm -f conftest.er1 22742 cat conftest.err >&5 22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22744 (exit $ac_status); } && 22745 { ac_try='test -z "$ac_c_werror_flag" 22746 || test ! -s conftest.err' 22747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22748 (eval $ac_try) 2>&5 22749 ac_status=$? 22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22751 (exit $ac_status); }; } && 22752 { ac_try='test -s conftest$ac_exeext' 22753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22754 (eval $ac_try) 2>&5 22755 ac_status=$? 22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22757 (exit $ac_status); }; }; then 22758 ac_cv_func_shl_load=yes 22759else 22760 echo "$as_me: failed program was:" >&5 22761sed 's/^/| /' conftest.$ac_ext >&5 22762 22763ac_cv_func_shl_load=no 22764fi 22765rm -f conftest.err conftest.$ac_objext \ 22766 conftest$ac_exeext conftest.$ac_ext 22767fi 22768echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 22769echo "${ECHO_T}$ac_cv_func_shl_load" >&6 22770if test $ac_cv_func_shl_load = yes; then 22771 lt_cv_dlopen="shl_load" 22772else 22773 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 22774echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 22775if test "${ac_cv_lib_dld_shl_load+set}" = set; then 22776 echo $ECHO_N "(cached) $ECHO_C" >&6 22777else 22778 ac_check_lib_save_LIBS=$LIBS 22779LIBS="-ldld $LIBS" 22780cat >conftest.$ac_ext <<_ACEOF 22781/* confdefs.h. */ 22782_ACEOF 22783cat confdefs.h >>conftest.$ac_ext 22784cat >>conftest.$ac_ext <<_ACEOF 22785/* end confdefs.h. */ 22786 22787/* Override any gcc2 internal prototype to avoid an error. */ 22788#ifdef __cplusplus 22789extern "C" 22790#endif 22791/* We use char because int might match the return type of a gcc2 22792 builtin and then its argument prototype would still apply. */ 22793char shl_load (); 22794int 22795main () 22796{ 22797shl_load (); 22798 ; 22799 return 0; 22800} 22801_ACEOF 22802rm -f conftest.$ac_objext conftest$ac_exeext 22803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22804 (eval $ac_link) 2>conftest.er1 22805 ac_status=$? 22806 grep -v '^ *+' conftest.er1 >conftest.err 22807 rm -f conftest.er1 22808 cat conftest.err >&5 22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22810 (exit $ac_status); } && 22811 { ac_try='test -z "$ac_c_werror_flag" 22812 || test ! -s conftest.err' 22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22814 (eval $ac_try) 2>&5 22815 ac_status=$? 22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22817 (exit $ac_status); }; } && 22818 { ac_try='test -s conftest$ac_exeext' 22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22820 (eval $ac_try) 2>&5 22821 ac_status=$? 22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22823 (exit $ac_status); }; }; then 22824 ac_cv_lib_dld_shl_load=yes 22825else 22826 echo "$as_me: failed program was:" >&5 22827sed 's/^/| /' conftest.$ac_ext >&5 22828 22829ac_cv_lib_dld_shl_load=no 22830fi 22831rm -f conftest.err conftest.$ac_objext \ 22832 conftest$ac_exeext conftest.$ac_ext 22833LIBS=$ac_check_lib_save_LIBS 22834fi 22835echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 22836echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 22837if test $ac_cv_lib_dld_shl_load = yes; then 22838 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 22839else 22840 echo "$as_me:$LINENO: checking for dlopen" >&5 22841echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 22842if test "${ac_cv_func_dlopen+set}" = set; then 22843 echo $ECHO_N "(cached) $ECHO_C" >&6 22844else 22845 cat >conftest.$ac_ext <<_ACEOF 22846/* confdefs.h. */ 22847_ACEOF 22848cat confdefs.h >>conftest.$ac_ext 22849cat >>conftest.$ac_ext <<_ACEOF 22850/* end confdefs.h. */ 22851/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 22852 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22853#define dlopen innocuous_dlopen 22854 22855/* System header to define __stub macros and hopefully few prototypes, 22856 which can conflict with char dlopen (); below. 22857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22858 <limits.h> exists even on freestanding compilers. */ 22859 22860#ifdef __STDC__ 22861# include <limits.h> 22862#else 22863# include <assert.h> 22864#endif 22865 22866#undef dlopen 22867 22868/* Override any gcc2 internal prototype to avoid an error. */ 22869#ifdef __cplusplus 22870extern "C" 22871{ 22872#endif 22873/* We use char because int might match the return type of a gcc2 22874 builtin and then its argument prototype would still apply. */ 22875char dlopen (); 22876/* The GNU C library defines this for functions which it implements 22877 to always fail with ENOSYS. Some functions are actually named 22878 something starting with __ and the normal name is an alias. */ 22879#if defined (__stub_dlopen) || defined (__stub___dlopen) 22880choke me 22881#else 22882char (*f) () = dlopen; 22883#endif 22884#ifdef __cplusplus 22885} 22886#endif 22887 22888int 22889main () 22890{ 22891return f != dlopen; 22892 ; 22893 return 0; 22894} 22895_ACEOF 22896rm -f conftest.$ac_objext conftest$ac_exeext 22897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22898 (eval $ac_link) 2>conftest.er1 22899 ac_status=$? 22900 grep -v '^ *+' conftest.er1 >conftest.err 22901 rm -f conftest.er1 22902 cat conftest.err >&5 22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22904 (exit $ac_status); } && 22905 { ac_try='test -z "$ac_c_werror_flag" 22906 || test ! -s conftest.err' 22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22908 (eval $ac_try) 2>&5 22909 ac_status=$? 22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22911 (exit $ac_status); }; } && 22912 { ac_try='test -s conftest$ac_exeext' 22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22914 (eval $ac_try) 2>&5 22915 ac_status=$? 22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22917 (exit $ac_status); }; }; then 22918 ac_cv_func_dlopen=yes 22919else 22920 echo "$as_me: failed program was:" >&5 22921sed 's/^/| /' conftest.$ac_ext >&5 22922 22923ac_cv_func_dlopen=no 22924fi 22925rm -f conftest.err conftest.$ac_objext \ 22926 conftest$ac_exeext conftest.$ac_ext 22927fi 22928echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 22929echo "${ECHO_T}$ac_cv_func_dlopen" >&6 22930if test $ac_cv_func_dlopen = yes; then 22931 lt_cv_dlopen="dlopen" 22932else 22933 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 22934echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 22935if test "${ac_cv_lib_dl_dlopen+set}" = set; then 22936 echo $ECHO_N "(cached) $ECHO_C" >&6 22937else 22938 ac_check_lib_save_LIBS=$LIBS 22939LIBS="-ldl $LIBS" 22940cat >conftest.$ac_ext <<_ACEOF 22941/* confdefs.h. */ 22942_ACEOF 22943cat confdefs.h >>conftest.$ac_ext 22944cat >>conftest.$ac_ext <<_ACEOF 22945/* end confdefs.h. */ 22946 22947/* Override any gcc2 internal prototype to avoid an error. */ 22948#ifdef __cplusplus 22949extern "C" 22950#endif 22951/* We use char because int might match the return type of a gcc2 22952 builtin and then its argument prototype would still apply. */ 22953char dlopen (); 22954int 22955main () 22956{ 22957dlopen (); 22958 ; 22959 return 0; 22960} 22961_ACEOF 22962rm -f conftest.$ac_objext conftest$ac_exeext 22963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22964 (eval $ac_link) 2>conftest.er1 22965 ac_status=$? 22966 grep -v '^ *+' conftest.er1 >conftest.err 22967 rm -f conftest.er1 22968 cat conftest.err >&5 22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22970 (exit $ac_status); } && 22971 { ac_try='test -z "$ac_c_werror_flag" 22972 || test ! -s conftest.err' 22973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22974 (eval $ac_try) 2>&5 22975 ac_status=$? 22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22977 (exit $ac_status); }; } && 22978 { ac_try='test -s conftest$ac_exeext' 22979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22980 (eval $ac_try) 2>&5 22981 ac_status=$? 22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22983 (exit $ac_status); }; }; then 22984 ac_cv_lib_dl_dlopen=yes 22985else 22986 echo "$as_me: failed program was:" >&5 22987sed 's/^/| /' conftest.$ac_ext >&5 22988 22989ac_cv_lib_dl_dlopen=no 22990fi 22991rm -f conftest.err conftest.$ac_objext \ 22992 conftest$ac_exeext conftest.$ac_ext 22993LIBS=$ac_check_lib_save_LIBS 22994fi 22995echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 22996echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 22997if test $ac_cv_lib_dl_dlopen = yes; then 22998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 22999else 23000 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 23001echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 23002if test "${ac_cv_lib_svld_dlopen+set}" = set; then 23003 echo $ECHO_N "(cached) $ECHO_C" >&6 23004else 23005 ac_check_lib_save_LIBS=$LIBS 23006LIBS="-lsvld $LIBS" 23007cat >conftest.$ac_ext <<_ACEOF 23008/* confdefs.h. */ 23009_ACEOF 23010cat confdefs.h >>conftest.$ac_ext 23011cat >>conftest.$ac_ext <<_ACEOF 23012/* end confdefs.h. */ 23013 23014/* Override any gcc2 internal prototype to avoid an error. */ 23015#ifdef __cplusplus 23016extern "C" 23017#endif 23018/* We use char because int might match the return type of a gcc2 23019 builtin and then its argument prototype would still apply. */ 23020char dlopen (); 23021int 23022main () 23023{ 23024dlopen (); 23025 ; 23026 return 0; 23027} 23028_ACEOF 23029rm -f conftest.$ac_objext conftest$ac_exeext 23030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23031 (eval $ac_link) 2>conftest.er1 23032 ac_status=$? 23033 grep -v '^ *+' conftest.er1 >conftest.err 23034 rm -f conftest.er1 23035 cat conftest.err >&5 23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23037 (exit $ac_status); } && 23038 { ac_try='test -z "$ac_c_werror_flag" 23039 || test ! -s conftest.err' 23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23041 (eval $ac_try) 2>&5 23042 ac_status=$? 23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23044 (exit $ac_status); }; } && 23045 { ac_try='test -s conftest$ac_exeext' 23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23047 (eval $ac_try) 2>&5 23048 ac_status=$? 23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23050 (exit $ac_status); }; }; then 23051 ac_cv_lib_svld_dlopen=yes 23052else 23053 echo "$as_me: failed program was:" >&5 23054sed 's/^/| /' conftest.$ac_ext >&5 23055 23056ac_cv_lib_svld_dlopen=no 23057fi 23058rm -f conftest.err conftest.$ac_objext \ 23059 conftest$ac_exeext conftest.$ac_ext 23060LIBS=$ac_check_lib_save_LIBS 23061fi 23062echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 23063echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 23064if test $ac_cv_lib_svld_dlopen = yes; then 23065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 23066else 23067 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 23068echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 23069if test "${ac_cv_lib_dld_dld_link+set}" = set; then 23070 echo $ECHO_N "(cached) $ECHO_C" >&6 23071else 23072 ac_check_lib_save_LIBS=$LIBS 23073LIBS="-ldld $LIBS" 23074cat >conftest.$ac_ext <<_ACEOF 23075/* confdefs.h. */ 23076_ACEOF 23077cat confdefs.h >>conftest.$ac_ext 23078cat >>conftest.$ac_ext <<_ACEOF 23079/* end confdefs.h. */ 23080 23081/* Override any gcc2 internal prototype to avoid an error. */ 23082#ifdef __cplusplus 23083extern "C" 23084#endif 23085/* We use char because int might match the return type of a gcc2 23086 builtin and then its argument prototype would still apply. */ 23087char dld_link (); 23088int 23089main () 23090{ 23091dld_link (); 23092 ; 23093 return 0; 23094} 23095_ACEOF 23096rm -f conftest.$ac_objext conftest$ac_exeext 23097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23098 (eval $ac_link) 2>conftest.er1 23099 ac_status=$? 23100 grep -v '^ *+' conftest.er1 >conftest.err 23101 rm -f conftest.er1 23102 cat conftest.err >&5 23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23104 (exit $ac_status); } && 23105 { ac_try='test -z "$ac_c_werror_flag" 23106 || test ! -s conftest.err' 23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23108 (eval $ac_try) 2>&5 23109 ac_status=$? 23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23111 (exit $ac_status); }; } && 23112 { ac_try='test -s conftest$ac_exeext' 23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23114 (eval $ac_try) 2>&5 23115 ac_status=$? 23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23117 (exit $ac_status); }; }; then 23118 ac_cv_lib_dld_dld_link=yes 23119else 23120 echo "$as_me: failed program was:" >&5 23121sed 's/^/| /' conftest.$ac_ext >&5 23122 23123ac_cv_lib_dld_dld_link=no 23124fi 23125rm -f conftest.err conftest.$ac_objext \ 23126 conftest$ac_exeext conftest.$ac_ext 23127LIBS=$ac_check_lib_save_LIBS 23128fi 23129echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 23130echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 23131if test $ac_cv_lib_dld_dld_link = yes; then 23132 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 23133fi 23134 23135 23136fi 23137 23138 23139fi 23140 23141 23142fi 23143 23144 23145fi 23146 23147 23148fi 23149 23150 ;; 23151 esac 23152 23153 if test "x$lt_cv_dlopen" != xno; then 23154 enable_dlopen=yes 23155 else 23156 enable_dlopen=no 23157 fi 23158 23159 case $lt_cv_dlopen in 23160 dlopen) 23161 save_CPPFLAGS="$CPPFLAGS" 23162 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 23163 23164 save_LDFLAGS="$LDFLAGS" 23165 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 23166 23167 save_LIBS="$LIBS" 23168 LIBS="$lt_cv_dlopen_libs $LIBS" 23169 23170 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 23171echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 23172if test "${lt_cv_dlopen_self+set}" = set; then 23173 echo $ECHO_N "(cached) $ECHO_C" >&6 23174else 23175 if test "$cross_compiling" = yes; then : 23176 lt_cv_dlopen_self=cross 23177else 23178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 23179 lt_status=$lt_dlunknown 23180 cat > conftest.$ac_ext <<EOF 23181#line 23181 "configure" 23182#include "confdefs.h" 23183 23184#if HAVE_DLFCN_H 23185#include <dlfcn.h> 23186#endif 23187 23188#include <stdio.h> 23189 23190#ifdef RTLD_GLOBAL 23191# define LT_DLGLOBAL RTLD_GLOBAL 23192#else 23193# ifdef DL_GLOBAL 23194# define LT_DLGLOBAL DL_GLOBAL 23195# else 23196# define LT_DLGLOBAL 0 23197# endif 23198#endif 23199 23200/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 23201 find out it does not work in some platform. */ 23202#ifndef LT_DLLAZY_OR_NOW 23203# ifdef RTLD_LAZY 23204# define LT_DLLAZY_OR_NOW RTLD_LAZY 23205# else 23206# ifdef DL_LAZY 23207# define LT_DLLAZY_OR_NOW DL_LAZY 23208# else 23209# ifdef RTLD_NOW 23210# define LT_DLLAZY_OR_NOW RTLD_NOW 23211# else 23212# ifdef DL_NOW 23213# define LT_DLLAZY_OR_NOW DL_NOW 23214# else 23215# define LT_DLLAZY_OR_NOW 0 23216# endif 23217# endif 23218# endif 23219# endif 23220#endif 23221 23222#ifdef __cplusplus 23223extern "C" void exit (int); 23224#endif 23225 23226void fnord() { int i=42;} 23227int main () 23228{ 23229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 23230 int status = $lt_dlunknown; 23231 23232 if (self) 23233 { 23234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 23235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 23236 /* dlclose (self); */ 23237 } 23238 23239 exit (status); 23240} 23241EOF 23242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23243 (eval $ac_link) 2>&5 23244 ac_status=$? 23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23246 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 23247 (./conftest; exit; ) >&5 2>/dev/null 23248 lt_status=$? 23249 case x$lt_status in 23250 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 23251 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 23252 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 23253 esac 23254 else : 23255 # compilation failed 23256 lt_cv_dlopen_self=no 23257 fi 23258fi 23259rm -fr conftest* 23260 23261 23262fi 23263echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 23264echo "${ECHO_T}$lt_cv_dlopen_self" >&6 23265 23266 if test "x$lt_cv_dlopen_self" = xyes; then 23267 LDFLAGS="$LDFLAGS $link_static_flag" 23268 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 23269echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 23270if test "${lt_cv_dlopen_self_static+set}" = set; then 23271 echo $ECHO_N "(cached) $ECHO_C" >&6 23272else 23273 if test "$cross_compiling" = yes; then : 23274 lt_cv_dlopen_self_static=cross 23275else 23276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 23277 lt_status=$lt_dlunknown 23278 cat > conftest.$ac_ext <<EOF 23279#line 23279 "configure" 23280#include "confdefs.h" 23281 23282#if HAVE_DLFCN_H 23283#include <dlfcn.h> 23284#endif 23285 23286#include <stdio.h> 23287 23288#ifdef RTLD_GLOBAL 23289# define LT_DLGLOBAL RTLD_GLOBAL 23290#else 23291# ifdef DL_GLOBAL 23292# define LT_DLGLOBAL DL_GLOBAL 23293# else 23294# define LT_DLGLOBAL 0 23295# endif 23296#endif 23297 23298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 23299 find out it does not work in some platform. */ 23300#ifndef LT_DLLAZY_OR_NOW 23301# ifdef RTLD_LAZY 23302# define LT_DLLAZY_OR_NOW RTLD_LAZY 23303# else 23304# ifdef DL_LAZY 23305# define LT_DLLAZY_OR_NOW DL_LAZY 23306# else 23307# ifdef RTLD_NOW 23308# define LT_DLLAZY_OR_NOW RTLD_NOW 23309# else 23310# ifdef DL_NOW 23311# define LT_DLLAZY_OR_NOW DL_NOW 23312# else 23313# define LT_DLLAZY_OR_NOW 0 23314# endif 23315# endif 23316# endif 23317# endif 23318#endif 23319 23320#ifdef __cplusplus 23321extern "C" void exit (int); 23322#endif 23323 23324void fnord() { int i=42;} 23325int main () 23326{ 23327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 23328 int status = $lt_dlunknown; 23329 23330 if (self) 23331 { 23332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 23333 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 23334 /* dlclose (self); */ 23335 } 23336 23337 exit (status); 23338} 23339EOF 23340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23341 (eval $ac_link) 2>&5 23342 ac_status=$? 23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23344 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 23345 (./conftest; exit; ) >&5 2>/dev/null 23346 lt_status=$? 23347 case x$lt_status in 23348 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 23349 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 23350 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 23351 esac 23352 else : 23353 # compilation failed 23354 lt_cv_dlopen_self_static=no 23355 fi 23356fi 23357rm -fr conftest* 23358 23359 23360fi 23361echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 23362echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 23363 fi 23364 23365 CPPFLAGS="$save_CPPFLAGS" 23366 LDFLAGS="$save_LDFLAGS" 23367 LIBS="$save_LIBS" 23368 ;; 23369 esac 23370 23371 case $lt_cv_dlopen_self in 23372 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 23373 *) enable_dlopen_self=unknown ;; 23374 esac 23375 23376 case $lt_cv_dlopen_self_static in 23377 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 23378 *) enable_dlopen_self_static=unknown ;; 23379 esac 23380fi 23381 23382 23383# The else clause should only fire when bootstrapping the 23384# libtool distribution, otherwise you forgot to ship ltmain.sh 23385# with your package, and you will get complaints that there are 23386# no rules to generate ltmain.sh. 23387if test -f "$ltmain"; then 23388 # See if we are running on zsh, and set the options which allow our commands through 23389 # without removal of \ escapes. 23390 if test -n "${ZSH_VERSION+set}" ; then 23391 setopt NO_GLOB_SUBST 23392 fi 23393 # Now quote all the things that may contain metacharacters while being 23394 # careful not to overquote the AC_SUBSTed values. We take copies of the 23395 # variables and quote the copies for generation of the libtool script. 23396 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 23397 SED SHELL STRIP \ 23398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 23399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 23400 deplibs_check_method reload_flag reload_cmds need_locks \ 23401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 23402 lt_cv_sys_global_symbol_to_c_name_address \ 23403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 23404 old_postinstall_cmds old_postuninstall_cmds \ 23405 compiler_GCJ \ 23406 CC_GCJ \ 23407 LD_GCJ \ 23408 lt_prog_compiler_wl_GCJ \ 23409 lt_prog_compiler_pic_GCJ \ 23410 lt_prog_compiler_static_GCJ \ 23411 lt_prog_compiler_no_builtin_flag_GCJ \ 23412 export_dynamic_flag_spec_GCJ \ 23413 thread_safe_flag_spec_GCJ \ 23414 whole_archive_flag_spec_GCJ \ 23415 enable_shared_with_static_runtimes_GCJ \ 23416 old_archive_cmds_GCJ \ 23417 old_archive_from_new_cmds_GCJ \ 23418 predep_objects_GCJ \ 23419 postdep_objects_GCJ \ 23420 predeps_GCJ \ 23421 postdeps_GCJ \ 23422 compiler_lib_search_path_GCJ \ 23423 archive_cmds_GCJ \ 23424 archive_expsym_cmds_GCJ \ 23425 postinstall_cmds_GCJ \ 23426 postuninstall_cmds_GCJ \ 23427 old_archive_from_expsyms_cmds_GCJ \ 23428 allow_undefined_flag_GCJ \ 23429 no_undefined_flag_GCJ \ 23430 export_symbols_cmds_GCJ \ 23431 hardcode_libdir_flag_spec_GCJ \ 23432 hardcode_libdir_flag_spec_ld_GCJ \ 23433 hardcode_libdir_separator_GCJ \ 23434 hardcode_automatic_GCJ \ 23435 module_cmds_GCJ \ 23436 module_expsym_cmds_GCJ \ 23437 lt_cv_prog_compiler_c_o_GCJ \ 23438 exclude_expsyms_GCJ \ 23439 include_expsyms_GCJ; do 23440 23441 case $var in 23442 old_archive_cmds_GCJ | \ 23443 old_archive_from_new_cmds_GCJ | \ 23444 archive_cmds_GCJ | \ 23445 archive_expsym_cmds_GCJ | \ 23446 module_cmds_GCJ | \ 23447 module_expsym_cmds_GCJ | \ 23448 old_archive_from_expsyms_cmds_GCJ | \ 23449 export_symbols_cmds_GCJ | \ 23450 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 23451 postinstall_cmds | postuninstall_cmds | \ 23452 old_postinstall_cmds | old_postuninstall_cmds | \ 23453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 23454 # Double-quote double-evaled strings. 23455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 23456 ;; 23457 *) 23458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 23459 ;; 23460 esac 23461 done 23462 23463 case $lt_echo in 23464 *'\$0 --fallback-echo"') 23465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 23466 ;; 23467 esac 23468 23469cfgfile="$ofile" 23470 23471 cat <<__EOF__ >> "$cfgfile" 23472# ### BEGIN LIBTOOL TAG CONFIG: $tagname 23473 23474# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23475 23476# Shell to use when invoking shell scripts. 23477SHELL=$lt_SHELL 23478 23479# Whether or not to build shared libraries. 23480build_libtool_libs=$enable_shared 23481 23482# Whether or not to build static libraries. 23483build_old_libs=$enable_static 23484 23485# Whether or not to add -lc for building shared libraries. 23486build_libtool_need_lc=$archive_cmds_need_lc_GCJ 23487 23488# Whether or not to disallow shared libs when runtime libs are static 23489allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 23490 23491# Whether or not to optimize for fast installation. 23492fast_install=$enable_fast_install 23493 23494# The host system. 23495host_alias=$host_alias 23496host=$host 23497host_os=$host_os 23498 23499# The build system. 23500build_alias=$build_alias 23501build=$build 23502build_os=$build_os 23503 23504# An echo program that does not interpret backslashes. 23505echo=$lt_echo 23506 23507# The archiver. 23508AR=$lt_AR 23509AR_FLAGS=$lt_AR_FLAGS 23510 23511# A C compiler. 23512LTCC=$lt_LTCC 23513 23514# A language-specific compiler. 23515CC=$lt_compiler_GCJ 23516 23517# Is the compiler the GNU C compiler? 23518with_gcc=$GCC_GCJ 23519 23520# An ERE matcher. 23521EGREP=$lt_EGREP 23522 23523# The linker used to build libraries. 23524LD=$lt_LD_GCJ 23525 23526# Whether we need hard or soft links. 23527LN_S=$lt_LN_S 23528 23529# A BSD-compatible nm program. 23530NM=$lt_NM 23531 23532# A symbol stripping program 23533STRIP=$lt_STRIP 23534 23535# Used to examine libraries when file_magic_cmd begins "file" 23536MAGIC_CMD=$MAGIC_CMD 23537 23538# Used on cygwin: DLL creation program. 23539DLLTOOL="$DLLTOOL" 23540 23541# Used on cygwin: object dumper. 23542OBJDUMP="$OBJDUMP" 23543 23544# Used on cygwin: assembler. 23545AS="$AS" 23546 23547# The name of the directory that contains temporary libtool files. 23548objdir=$objdir 23549 23550# How to create reloadable object files. 23551reload_flag=$lt_reload_flag 23552reload_cmds=$lt_reload_cmds 23553 23554# How to pass a linker flag through the compiler. 23555wl=$lt_lt_prog_compiler_wl_GCJ 23556 23557# Object file suffix (normally "o"). 23558objext="$ac_objext" 23559 23560# Old archive suffix (normally "a"). 23561libext="$libext" 23562 23563# Shared library suffix (normally ".so"). 23564shrext_cmds='$shrext_cmds' 23565 23566# Executable file suffix (normally ""). 23567exeext="$exeext" 23568 23569# Additional compiler flags for building library objects. 23570pic_flag=$lt_lt_prog_compiler_pic_GCJ 23571pic_mode=$pic_mode 23572 23573# What is the maximum length of a command? 23574max_cmd_len=$lt_cv_sys_max_cmd_len 23575 23576# Does compiler simultaneously support -c and -o options? 23577compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 23578 23579# Must we lock files when doing compilation? 23580need_locks=$lt_need_locks 23581 23582# Do we need the lib prefix for modules? 23583need_lib_prefix=$need_lib_prefix 23584 23585# Do we need a version for libraries? 23586need_version=$need_version 23587 23588# Whether dlopen is supported. 23589dlopen_support=$enable_dlopen 23590 23591# Whether dlopen of programs is supported. 23592dlopen_self=$enable_dlopen_self 23593 23594# Whether dlopen of statically linked programs is supported. 23595dlopen_self_static=$enable_dlopen_self_static 23596 23597# Compiler flag to prevent dynamic linking. 23598link_static_flag=$lt_lt_prog_compiler_static_GCJ 23599 23600# Compiler flag to turn off builtin functions. 23601no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 23602 23603# Compiler flag to allow reflexive dlopens. 23604export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 23605 23606# Compiler flag to generate shared objects directly from archives. 23607whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 23608 23609# Compiler flag to generate thread-safe objects. 23610thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 23611 23612# Library versioning type. 23613version_type=$version_type 23614 23615# Format of library name prefix. 23616libname_spec=$lt_libname_spec 23617 23618# List of archive names. First name is the real one, the rest are links. 23619# The last name is the one that the linker finds with -lNAME. 23620library_names_spec=$lt_library_names_spec 23621 23622# The coded name of the library, if different from the real name. 23623soname_spec=$lt_soname_spec 23624 23625# Commands used to build and install an old-style archive. 23626RANLIB=$lt_RANLIB 23627old_archive_cmds=$lt_old_archive_cmds_GCJ 23628old_postinstall_cmds=$lt_old_postinstall_cmds 23629old_postuninstall_cmds=$lt_old_postuninstall_cmds 23630 23631# Create an old-style archive from a shared archive. 23632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 23633 23634# Create a temporary old-style archive to link instead of a shared archive. 23635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 23636 23637# Commands used to build and install a shared archive. 23638archive_cmds=$lt_archive_cmds_GCJ 23639archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 23640postinstall_cmds=$lt_postinstall_cmds 23641postuninstall_cmds=$lt_postuninstall_cmds 23642 23643# Commands used to build a loadable module (assumed same as above if empty) 23644module_cmds=$lt_module_cmds_GCJ 23645module_expsym_cmds=$lt_module_expsym_cmds_GCJ 23646 23647# Commands to strip libraries. 23648old_striplib=$lt_old_striplib 23649striplib=$lt_striplib 23650 23651# Dependencies to place before the objects being linked to create a 23652# shared library. 23653predep_objects=$lt_predep_objects_GCJ 23654 23655# Dependencies to place after the objects being linked to create a 23656# shared library. 23657postdep_objects=$lt_postdep_objects_GCJ 23658 23659# Dependencies to place before the objects being linked to create a 23660# shared library. 23661predeps=$lt_predeps_GCJ 23662 23663# Dependencies to place after the objects being linked to create a 23664# shared library. 23665postdeps=$lt_postdeps_GCJ 23666 23667# The library search path used internally by the compiler when linking 23668# a shared library. 23669compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 23670 23671# Method to check whether dependent libraries are shared objects. 23672deplibs_check_method=$lt_deplibs_check_method 23673 23674# Command to use when deplibs_check_method == file_magic. 23675file_magic_cmd=$lt_file_magic_cmd 23676 23677# Flag that allows shared libraries with undefined symbols to be built. 23678allow_undefined_flag=$lt_allow_undefined_flag_GCJ 23679 23680# Flag that forces no undefined symbols. 23681no_undefined_flag=$lt_no_undefined_flag_GCJ 23682 23683# Commands used to finish a libtool library installation in a directory. 23684finish_cmds=$lt_finish_cmds 23685 23686# Same as above, but a single script fragment to be evaled but not shown. 23687finish_eval=$lt_finish_eval 23688 23689# Take the output of nm and produce a listing of raw symbols and C names. 23690global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23691 23692# Transform the output of nm in a proper C declaration 23693global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23694 23695# Transform the output of nm in a C name address pair 23696global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23697 23698# This is the shared library runtime path variable. 23699runpath_var=$runpath_var 23700 23701# This is the shared library path variable. 23702shlibpath_var=$shlibpath_var 23703 23704# Is shlibpath searched before the hard-coded library search path? 23705shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23706 23707# How to hardcode a shared library path into an executable. 23708hardcode_action=$hardcode_action_GCJ 23709 23710# Whether we should hardcode library paths into libraries. 23711hardcode_into_libs=$hardcode_into_libs 23712 23713# Flag to hardcode \$libdir into a binary during linking. 23714# This must work even if \$libdir does not exist. 23715hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 23716 23717# If ld is used when linking, flag to hardcode \$libdir into 23718# a binary during linking. This must work even if \$libdir does 23719# not exist. 23720hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 23721 23722# Whether we need a single -rpath flag with a separated argument. 23723hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 23724 23725# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 23726# resulting binary. 23727hardcode_direct=$hardcode_direct_GCJ 23728 23729# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 23730# resulting binary. 23731hardcode_minus_L=$hardcode_minus_L_GCJ 23732 23733# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 23734# the resulting binary. 23735hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 23736 23737# Set to yes if building a shared library automatically hardcodes DIR into the library 23738# and all subsequent libraries and executables linked against it. 23739hardcode_automatic=$hardcode_automatic_GCJ 23740 23741# Variables whose values should be saved in libtool wrapper scripts and 23742# restored at relink time. 23743variables_saved_for_relink="$variables_saved_for_relink" 23744 23745# Whether libtool must link a program against all its dependency libraries. 23746link_all_deplibs=$link_all_deplibs_GCJ 23747 23748# Compile-time system search path for libraries 23749sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23750 23751# Run-time system search path for libraries 23752sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23753 23754# Fix the shell variable \$srcfile for the compiler. 23755fix_srcfile_path="$fix_srcfile_path_GCJ" 23756 23757# Set to yes if exported symbols are required. 23758always_export_symbols=$always_export_symbols_GCJ 23759 23760# The commands to list exported symbols. 23761export_symbols_cmds=$lt_export_symbols_cmds_GCJ 23762 23763# The commands to extract the exported symbol list from a shared archive. 23764extract_expsyms_cmds=$lt_extract_expsyms_cmds 23765 23766# Symbols that should not be listed in the preloaded symbols. 23767exclude_expsyms=$lt_exclude_expsyms_GCJ 23768 23769# Symbols that must always be exported. 23770include_expsyms=$lt_include_expsyms_GCJ 23771 23772# ### END LIBTOOL TAG CONFIG: $tagname 23773 23774__EOF__ 23775 23776 23777else 23778 # If there is no Makefile yet, we rely on a make rule to execute 23779 # `config.status --recheck' to rerun these tests and create the 23780 # libtool script then. 23781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 23782 if test -f "$ltmain_in"; then 23783 test -f Makefile && make "$ltmain" 23784 fi 23785fi 23786 23787 23788ac_ext=c 23789ac_cpp='$CPP $CPPFLAGS' 23790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23792ac_compiler_gnu=$ac_cv_c_compiler_gnu 23793 23794CC="$lt_save_CC" 23795 23796 else 23797 tagname="" 23798 fi 23799 ;; 23800 23801 RC) 23802 23803 23804 23805# Source file extension for RC test sources. 23806ac_ext=rc 23807 23808# Object file extension for compiled RC test sources. 23809objext=o 23810objext_RC=$objext 23811 23812# Code to be used in simple compile tests 23813lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 23814 23815# Code to be used in simple link tests 23816lt_simple_link_test_code="$lt_simple_compile_test_code" 23817 23818# ltmain only uses $CC for tagged configurations so make sure $CC is set. 23819 23820# If no C compiler was specified, use CC. 23821LTCC=${LTCC-"$CC"} 23822 23823# Allow CC to be a program name with arguments. 23824compiler=$CC 23825 23826 23827# save warnings/boilerplate of simple test code 23828ac_outfile=conftest.$ac_objext 23829printf "$lt_simple_compile_test_code" >conftest.$ac_ext 23830eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 23831_lt_compiler_boilerplate=`cat conftest.err` 23832$rm conftest* 23833 23834ac_outfile=conftest.$ac_objext 23835printf "$lt_simple_link_test_code" >conftest.$ac_ext 23836eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 23837_lt_linker_boilerplate=`cat conftest.err` 23838$rm conftest* 23839 23840 23841# Allow CC to be a program name with arguments. 23842lt_save_CC="$CC" 23843CC=${RC-"windres"} 23844compiler=$CC 23845compiler_RC=$CC 23846for cc_temp in $compiler""; do 23847 case $cc_temp in 23848 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23849 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23850 \-*) ;; 23851 *) break;; 23852 esac 23853done 23854cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 23855 23856lt_cv_prog_compiler_c_o_RC=yes 23857 23858# The else clause should only fire when bootstrapping the 23859# libtool distribution, otherwise you forgot to ship ltmain.sh 23860# with your package, and you will get complaints that there are 23861# no rules to generate ltmain.sh. 23862if test -f "$ltmain"; then 23863 # See if we are running on zsh, and set the options which allow our commands through 23864 # without removal of \ escapes. 23865 if test -n "${ZSH_VERSION+set}" ; then 23866 setopt NO_GLOB_SUBST 23867 fi 23868 # Now quote all the things that may contain metacharacters while being 23869 # careful not to overquote the AC_SUBSTed values. We take copies of the 23870 # variables and quote the copies for generation of the libtool script. 23871 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 23872 SED SHELL STRIP \ 23873 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 23874 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 23875 deplibs_check_method reload_flag reload_cmds need_locks \ 23876 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 23877 lt_cv_sys_global_symbol_to_c_name_address \ 23878 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 23879 old_postinstall_cmds old_postuninstall_cmds \ 23880 compiler_RC \ 23881 CC_RC \ 23882 LD_RC \ 23883 lt_prog_compiler_wl_RC \ 23884 lt_prog_compiler_pic_RC \ 23885 lt_prog_compiler_static_RC \ 23886 lt_prog_compiler_no_builtin_flag_RC \ 23887 export_dynamic_flag_spec_RC \ 23888 thread_safe_flag_spec_RC \ 23889 whole_archive_flag_spec_RC \ 23890 enable_shared_with_static_runtimes_RC \ 23891 old_archive_cmds_RC \ 23892 old_archive_from_new_cmds_RC \ 23893 predep_objects_RC \ 23894 postdep_objects_RC \ 23895 predeps_RC \ 23896 postdeps_RC \ 23897 compiler_lib_search_path_RC \ 23898 archive_cmds_RC \ 23899 archive_expsym_cmds_RC \ 23900 postinstall_cmds_RC \ 23901 postuninstall_cmds_RC \ 23902 old_archive_from_expsyms_cmds_RC \ 23903 allow_undefined_flag_RC \ 23904 no_undefined_flag_RC \ 23905 export_symbols_cmds_RC \ 23906 hardcode_libdir_flag_spec_RC \ 23907 hardcode_libdir_flag_spec_ld_RC \ 23908 hardcode_libdir_separator_RC \ 23909 hardcode_automatic_RC \ 23910 module_cmds_RC \ 23911 module_expsym_cmds_RC \ 23912 lt_cv_prog_compiler_c_o_RC \ 23913 exclude_expsyms_RC \ 23914 include_expsyms_RC; do 23915 23916 case $var in 23917 old_archive_cmds_RC | \ 23918 old_archive_from_new_cmds_RC | \ 23919 archive_cmds_RC | \ 23920 archive_expsym_cmds_RC | \ 23921 module_cmds_RC | \ 23922 module_expsym_cmds_RC | \ 23923 old_archive_from_expsyms_cmds_RC | \ 23924 export_symbols_cmds_RC | \ 23925 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 23926 postinstall_cmds | postuninstall_cmds | \ 23927 old_postinstall_cmds | old_postuninstall_cmds | \ 23928 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 23929 # Double-quote double-evaled strings. 23930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 23931 ;; 23932 *) 23933 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 23934 ;; 23935 esac 23936 done 23937 23938 case $lt_echo in 23939 *'\$0 --fallback-echo"') 23940 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 23941 ;; 23942 esac 23943 23944cfgfile="$ofile" 23945 23946 cat <<__EOF__ >> "$cfgfile" 23947# ### BEGIN LIBTOOL TAG CONFIG: $tagname 23948 23949# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23950 23951# Shell to use when invoking shell scripts. 23952SHELL=$lt_SHELL 23953 23954# Whether or not to build shared libraries. 23955build_libtool_libs=$enable_shared 23956 23957# Whether or not to build static libraries. 23958build_old_libs=$enable_static 23959 23960# Whether or not to add -lc for building shared libraries. 23961build_libtool_need_lc=$archive_cmds_need_lc_RC 23962 23963# Whether or not to disallow shared libs when runtime libs are static 23964allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 23965 23966# Whether or not to optimize for fast installation. 23967fast_install=$enable_fast_install 23968 23969# The host system. 23970host_alias=$host_alias 23971host=$host 23972host_os=$host_os 23973 23974# The build system. 23975build_alias=$build_alias 23976build=$build 23977build_os=$build_os 23978 23979# An echo program that does not interpret backslashes. 23980echo=$lt_echo 23981 23982# The archiver. 23983AR=$lt_AR 23984AR_FLAGS=$lt_AR_FLAGS 23985 23986# A C compiler. 23987LTCC=$lt_LTCC 23988 23989# A language-specific compiler. 23990CC=$lt_compiler_RC 23991 23992# Is the compiler the GNU C compiler? 23993with_gcc=$GCC_RC 23994 23995# An ERE matcher. 23996EGREP=$lt_EGREP 23997 23998# The linker used to build libraries. 23999LD=$lt_LD_RC 24000 24001# Whether we need hard or soft links. 24002LN_S=$lt_LN_S 24003 24004# A BSD-compatible nm program. 24005NM=$lt_NM 24006 24007# A symbol stripping program 24008STRIP=$lt_STRIP 24009 24010# Used to examine libraries when file_magic_cmd begins "file" 24011MAGIC_CMD=$MAGIC_CMD 24012 24013# Used on cygwin: DLL creation program. 24014DLLTOOL="$DLLTOOL" 24015 24016# Used on cygwin: object dumper. 24017OBJDUMP="$OBJDUMP" 24018 24019# Used on cygwin: assembler. 24020AS="$AS" 24021 24022# The name of the directory that contains temporary libtool files. 24023objdir=$objdir 24024 24025# How to create reloadable object files. 24026reload_flag=$lt_reload_flag 24027reload_cmds=$lt_reload_cmds 24028 24029# How to pass a linker flag through the compiler. 24030wl=$lt_lt_prog_compiler_wl_RC 24031 24032# Object file suffix (normally "o"). 24033objext="$ac_objext" 24034 24035# Old archive suffix (normally "a"). 24036libext="$libext" 24037 24038# Shared library suffix (normally ".so"). 24039shrext_cmds='$shrext_cmds' 24040 24041# Executable file suffix (normally ""). 24042exeext="$exeext" 24043 24044# Additional compiler flags for building library objects. 24045pic_flag=$lt_lt_prog_compiler_pic_RC 24046pic_mode=$pic_mode 24047 24048# What is the maximum length of a command? 24049max_cmd_len=$lt_cv_sys_max_cmd_len 24050 24051# Does compiler simultaneously support -c and -o options? 24052compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 24053 24054# Must we lock files when doing compilation? 24055need_locks=$lt_need_locks 24056 24057# Do we need the lib prefix for modules? 24058need_lib_prefix=$need_lib_prefix 24059 24060# Do we need a version for libraries? 24061need_version=$need_version 24062 24063# Whether dlopen is supported. 24064dlopen_support=$enable_dlopen 24065 24066# Whether dlopen of programs is supported. 24067dlopen_self=$enable_dlopen_self 24068 24069# Whether dlopen of statically linked programs is supported. 24070dlopen_self_static=$enable_dlopen_self_static 24071 24072# Compiler flag to prevent dynamic linking. 24073link_static_flag=$lt_lt_prog_compiler_static_RC 24074 24075# Compiler flag to turn off builtin functions. 24076no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 24077 24078# Compiler flag to allow reflexive dlopens. 24079export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 24080 24081# Compiler flag to generate shared objects directly from archives. 24082whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 24083 24084# Compiler flag to generate thread-safe objects. 24085thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 24086 24087# Library versioning type. 24088version_type=$version_type 24089 24090# Format of library name prefix. 24091libname_spec=$lt_libname_spec 24092 24093# List of archive names. First name is the real one, the rest are links. 24094# The last name is the one that the linker finds with -lNAME. 24095library_names_spec=$lt_library_names_spec 24096 24097# The coded name of the library, if different from the real name. 24098soname_spec=$lt_soname_spec 24099 24100# Commands used to build and install an old-style archive. 24101RANLIB=$lt_RANLIB 24102old_archive_cmds=$lt_old_archive_cmds_RC 24103old_postinstall_cmds=$lt_old_postinstall_cmds 24104old_postuninstall_cmds=$lt_old_postuninstall_cmds 24105 24106# Create an old-style archive from a shared archive. 24107old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 24108 24109# Create a temporary old-style archive to link instead of a shared archive. 24110old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 24111 24112# Commands used to build and install a shared archive. 24113archive_cmds=$lt_archive_cmds_RC 24114archive_expsym_cmds=$lt_archive_expsym_cmds_RC 24115postinstall_cmds=$lt_postinstall_cmds 24116postuninstall_cmds=$lt_postuninstall_cmds 24117 24118# Commands used to build a loadable module (assumed same as above if empty) 24119module_cmds=$lt_module_cmds_RC 24120module_expsym_cmds=$lt_module_expsym_cmds_RC 24121 24122# Commands to strip libraries. 24123old_striplib=$lt_old_striplib 24124striplib=$lt_striplib 24125 24126# Dependencies to place before the objects being linked to create a 24127# shared library. 24128predep_objects=$lt_predep_objects_RC 24129 24130# Dependencies to place after the objects being linked to create a 24131# shared library. 24132postdep_objects=$lt_postdep_objects_RC 24133 24134# Dependencies to place before the objects being linked to create a 24135# shared library. 24136predeps=$lt_predeps_RC 24137 24138# Dependencies to place after the objects being linked to create a 24139# shared library. 24140postdeps=$lt_postdeps_RC 24141 24142# The library search path used internally by the compiler when linking 24143# a shared library. 24144compiler_lib_search_path=$lt_compiler_lib_search_path_RC 24145 24146# Method to check whether dependent libraries are shared objects. 24147deplibs_check_method=$lt_deplibs_check_method 24148 24149# Command to use when deplibs_check_method == file_magic. 24150file_magic_cmd=$lt_file_magic_cmd 24151 24152# Flag that allows shared libraries with undefined symbols to be built. 24153allow_undefined_flag=$lt_allow_undefined_flag_RC 24154 24155# Flag that forces no undefined symbols. 24156no_undefined_flag=$lt_no_undefined_flag_RC 24157 24158# Commands used to finish a libtool library installation in a directory. 24159finish_cmds=$lt_finish_cmds 24160 24161# Same as above, but a single script fragment to be evaled but not shown. 24162finish_eval=$lt_finish_eval 24163 24164# Take the output of nm and produce a listing of raw symbols and C names. 24165global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24166 24167# Transform the output of nm in a proper C declaration 24168global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24169 24170# Transform the output of nm in a C name address pair 24171global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24172 24173# This is the shared library runtime path variable. 24174runpath_var=$runpath_var 24175 24176# This is the shared library path variable. 24177shlibpath_var=$shlibpath_var 24178 24179# Is shlibpath searched before the hard-coded library search path? 24180shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24181 24182# How to hardcode a shared library path into an executable. 24183hardcode_action=$hardcode_action_RC 24184 24185# Whether we should hardcode library paths into libraries. 24186hardcode_into_libs=$hardcode_into_libs 24187 24188# Flag to hardcode \$libdir into a binary during linking. 24189# This must work even if \$libdir does not exist. 24190hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 24191 24192# If ld is used when linking, flag to hardcode \$libdir into 24193# a binary during linking. This must work even if \$libdir does 24194# not exist. 24195hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 24196 24197# Whether we need a single -rpath flag with a separated argument. 24198hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 24199 24200# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 24201# resulting binary. 24202hardcode_direct=$hardcode_direct_RC 24203 24204# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 24205# resulting binary. 24206hardcode_minus_L=$hardcode_minus_L_RC 24207 24208# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 24209# the resulting binary. 24210hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 24211 24212# Set to yes if building a shared library automatically hardcodes DIR into the library 24213# and all subsequent libraries and executables linked against it. 24214hardcode_automatic=$hardcode_automatic_RC 24215 24216# Variables whose values should be saved in libtool wrapper scripts and 24217# restored at relink time. 24218variables_saved_for_relink="$variables_saved_for_relink" 24219 24220# Whether libtool must link a program against all its dependency libraries. 24221link_all_deplibs=$link_all_deplibs_RC 24222 24223# Compile-time system search path for libraries 24224sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24225 24226# Run-time system search path for libraries 24227sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 24228 24229# Fix the shell variable \$srcfile for the compiler. 24230fix_srcfile_path="$fix_srcfile_path_RC" 24231 24232# Set to yes if exported symbols are required. 24233always_export_symbols=$always_export_symbols_RC 24234 24235# The commands to list exported symbols. 24236export_symbols_cmds=$lt_export_symbols_cmds_RC 24237 24238# The commands to extract the exported symbol list from a shared archive. 24239extract_expsyms_cmds=$lt_extract_expsyms_cmds 24240 24241# Symbols that should not be listed in the preloaded symbols. 24242exclude_expsyms=$lt_exclude_expsyms_RC 24243 24244# Symbols that must always be exported. 24245include_expsyms=$lt_include_expsyms_RC 24246 24247# ### END LIBTOOL TAG CONFIG: $tagname 24248 24249__EOF__ 24250 24251 24252else 24253 # If there is no Makefile yet, we rely on a make rule to execute 24254 # `config.status --recheck' to rerun these tests and create the 24255 # libtool script then. 24256 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 24257 if test -f "$ltmain_in"; then 24258 test -f Makefile && make "$ltmain" 24259 fi 24260fi 24261 24262 24263ac_ext=c 24264ac_cpp='$CPP $CPPFLAGS' 24265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24267ac_compiler_gnu=$ac_cv_c_compiler_gnu 24268 24269CC="$lt_save_CC" 24270 24271 ;; 24272 24273 *) 24274 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 24275echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 24276 { (exit 1); exit 1; }; } 24277 ;; 24278 esac 24279 24280 # Append the new tag name to the list of available tags. 24281 if test -n "$tagname" ; then 24282 available_tags="$available_tags $tagname" 24283 fi 24284 fi 24285 done 24286 IFS="$lt_save_ifs" 24287 24288 # Now substitute the updated list of available tags. 24289 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 24290 mv "${ofile}T" "$ofile" 24291 chmod +x "$ofile" 24292 else 24293 rm -f "${ofile}T" 24294 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 24295echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 24296 { (exit 1); exit 1; }; } 24297 fi 24298fi 24299 24300 24301 24302# This can be used to rebuild libtool when needed 24303LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 24304 24305# Always use our own libtool. 24306LIBTOOL='$(SHELL) $(top_builddir)/libtool' 24307 24308# Prevent multiple expansion 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329# Check whether --enable-xmms or --disable-xmms was given. 24330if test "${enable_xmms+set}" = set; then 24331 enableval="$enable_xmms" 24332 case "$enableval" in 24333 yes) enable_xmms=true ;; 24334 no) enable_xmms=false ;; 24335 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-xmms" >&5 24336echo "$as_me: error: bad value $enableval for --enable-xmms" >&2;} 24337 { (exit 1); exit 1; }; } ;; 24338 esac 24339fi; 24340 24341use_xmms=false 24342if test x$enable_xmms != xfalse; then 24343 if test x$have_xmms = xtrue; then 24344 use_xmms=true 24345 PLUGINS="xmms-rva $PLUGINS" 24346 elif test x$enable_xmms = xtrue; then 24347 { { echo "$as_me:$LINENO: error: --enable-xmms specified, but xmms not found" >&5 24348echo "$as_me: error: --enable-xmms specified, but xmms not found" >&2;} 24349 { (exit 1); exit 1; }; } 24350 fi 24351fi 24352 24353 24354 24355 24356# Check whether --with-audiofile-prefix or --without-audiofile-prefix was given. 24357if test "${with_audiofile_prefix+set}" = set; then 24358 withval="$with_audiofile_prefix" 24359 audiofile_prefix="$withval" 24360else 24361 audiofile_prefix="" 24362fi; 24363 24364# Check whether --with-audiofile-exec-prefix or --without-audiofile-exec-prefix was given. 24365if test "${with_audiofile_exec_prefix+set}" = set; then 24366 withval="$with_audiofile_exec_prefix" 24367 audiofile_exec_prefix="$withval" 24368else 24369 audiofile_exec_prefix="" 24370fi; 24371# Check whether --enable-audiofiletest or --disable-audiofiletest was given. 24372if test "${enable_audiofiletest+set}" = set; then 24373 enableval="$enable_audiofiletest" 24374 24375else 24376 enable_audiofiletest=yes 24377fi; 24378 24379 if test x$audiofile_exec_prefix != x ; then 24380 audiofile_args="$audiofile_args --exec-prefix=$audiofile_exec_prefix" 24381 if test x${AUDIOFILE_CONFIG+set} != xset ; then 24382 AUDIOFILE_CONFIG=$audiofile_exec_prefix/bin/audiofile-config 24383 fi 24384 fi 24385 if test x$audiofile_prefix != x ; then 24386 audiofile_args="$audiofile_args --prefix=$audiofile_prefix" 24387 if test x${AUDIOFILE_CONFIG+set} != xset ; then 24388 AUDIOFILE_CONFIG=$audiofile_prefix/bin/audiofile-config 24389 fi 24390 fi 24391 24392 # Extract the first word of "audiofile-config", so it can be a program name with args. 24393set dummy audiofile-config; ac_word=$2 24394echo "$as_me:$LINENO: checking for $ac_word" >&5 24395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24396if test "${ac_cv_path_AUDIOFILE_CONFIG+set}" = set; then 24397 echo $ECHO_N "(cached) $ECHO_C" >&6 24398else 24399 case $AUDIOFILE_CONFIG in 24400 [\\/]* | ?:[\\/]*) 24401 ac_cv_path_AUDIOFILE_CONFIG="$AUDIOFILE_CONFIG" # Let the user override the test with a path. 24402 ;; 24403 *) 24404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24405for as_dir in $PATH 24406do 24407 IFS=$as_save_IFS 24408 test -z "$as_dir" && as_dir=. 24409 for ac_exec_ext in '' $ac_executable_extensions; do 24410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24411 ac_cv_path_AUDIOFILE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 24413 break 2 24414 fi 24415done 24416done 24417 24418 test -z "$ac_cv_path_AUDIOFILE_CONFIG" && ac_cv_path_AUDIOFILE_CONFIG="no" 24419 ;; 24420esac 24421fi 24422AUDIOFILE_CONFIG=$ac_cv_path_AUDIOFILE_CONFIG 24423 24424if test -n "$AUDIOFILE_CONFIG"; then 24425 echo "$as_me:$LINENO: result: $AUDIOFILE_CONFIG" >&5 24426echo "${ECHO_T}$AUDIOFILE_CONFIG" >&6 24427else 24428 echo "$as_me:$LINENO: result: no" >&5 24429echo "${ECHO_T}no" >&6 24430fi 24431 24432 min_audiofile_version=0.2.2 24433 echo "$as_me:$LINENO: checking for Audio File Library - version >= $min_audiofile_version" >&5 24434echo $ECHO_N "checking for Audio File Library - version >= $min_audiofile_version... $ECHO_C" >&6 24435 no_audiofile="" 24436 if test "$AUDIOFILE_CONFIG" = "no" ; then 24437 no_audiofile=yes 24438 else 24439 AUDIOFILE_LIBS=`$AUDIOFILE_CONFIG $audiofileconf_args --libs` 24440 AUDIOFILE_CFLAGS=`$AUDIOFILE_CONFIG $audiofileconf_args --cflags` 24441 audiofile_major_version=`$AUDIOFILE_CONFIG $audiofile_args --version | \ 24442 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 24443 audiofile_minor_version=`$AUDIOFILE_CONFIG $audiofile_args --version | \ 24444 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 24445 audiofile_micro_version=`$AUDIOFILE_CONFIG $audiofile_config_args --version | \ 24446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 24447 if test "x$enable_audiofiletest" = "xyes" ; then 24448 24449 24450 ac_ext=c 24451ac_cpp='$CPP $CPPFLAGS' 24452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24454ac_compiler_gnu=$ac_cv_c_compiler_gnu 24455 24456 ac_save_CFLAGS="$CFLAGS" 24457 ac_save_LIBS="$LIBS" 24458 CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS" 24459 LIBS="$LIBS $AUDIOFILE_LIBS" 24460 rm -f conf.audiofiletest 24461 if test "$cross_compiling" = yes; then 24462 echo $ac_n "cross compiling; assumed OK... $ac_c" 24463else 24464 cat >conftest.$ac_ext <<_ACEOF 24465/* confdefs.h. */ 24466_ACEOF 24467cat confdefs.h >>conftest.$ac_ext 24468cat >>conftest.$ac_ext <<_ACEOF 24469/* end confdefs.h. */ 24470 24471#include <stdio.h> 24472#include <stdlib.h> 24473#include <string.h> 24474#include <audiofile.h> 24475 24476char* 24477my_strdup (char *str) 24478{ 24479 char *new_str; 24480 24481 if (str) 24482 { 24483 new_str = malloc ((strlen (str) + 1) * sizeof(char)); 24484 strcpy (new_str, str); 24485 } 24486 else 24487 new_str = NULL; 24488 24489 return new_str; 24490} 24491 24492int main () 24493{ 24494 int major, minor, micro; 24495 char *tmp_version; 24496 24497 system ("touch conf.audiofiletest"); 24498 24499 /* HP/UX 9 (%@#!) writes to sscanf strings */ 24500 tmp_version = my_strdup("$min_audiofile_version"); 24501 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 24502 printf("%s, bad version string\n", "$min_audiofile_version"); 24503 exit(1); 24504 } 24505 24506 if (($audiofile_major_version > major) || 24507 (($audiofile_major_version == major) && ($audiofile_minor_version > minor)) || 24508 (($audiofile_major_version == major) && ($audiofile_minor_version == minor) && ($audiofile_micro_version >= micro))) 24509 { 24510 return 0; 24511 } 24512 else 24513 { 24514 printf("\n*** 'audiofile-config --version' returned %d.%d.%d, but the minimum version\n", $audiofile_major_version, $audiofile_minor_version, $audiofile_micro_version); 24515 printf("*** of the Audio File Library required is %d.%d.%d. If audiofile-config is correct, then it is\n", major, minor, micro); 24516 printf("*** best to upgrade to the required version.\n"); 24517 printf("*** If audiofile-config was wrong, set the environment variable AUDIOFILE_CONFIG\n"); 24518 printf("*** to point to the correct copy of audiofile-config, and remove the file\n"); 24519 printf("*** config.cache before re-running configure\n"); 24520 return 1; 24521 } 24522} 24523 24524 24525_ACEOF 24526rm -f conftest$ac_exeext 24527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24528 (eval $ac_link) 2>&5 24529 ac_status=$? 24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24533 (eval $ac_try) 2>&5 24534 ac_status=$? 24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24536 (exit $ac_status); }; }; then 24537 : 24538else 24539 echo "$as_me: program exited with status $ac_status" >&5 24540echo "$as_me: failed program was:" >&5 24541sed 's/^/| /' conftest.$ac_ext >&5 24542 24543( exit $ac_status ) 24544no_audiofile=yes 24545fi 24546rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24547fi 24548 CFLAGS="$ac_save_CFLAGS" 24549 LIBS="$ac_save_LIBS" 24550 ac_ext=c 24551ac_cpp='$CPP $CPPFLAGS' 24552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24554ac_compiler_gnu=$ac_cv_c_compiler_gnu 24555 24556 fi 24557 fi 24558 if test "x$no_audiofile" = x ; then 24559 echo "$as_me:$LINENO: result: yes" >&5 24560echo "${ECHO_T}yes" >&6 24561 have_audiofile=true 24562 else 24563 echo "$as_me:$LINENO: result: no" >&5 24564echo "${ECHO_T}no" >&6 24565 if test "$AUDIOFILE_CONFIG" = "no" ; then 24566 cat <<END 24567*** The audiofile-config script installed by the Audio File Library could 24568*** not be found. If the Audio File Library was installed in PREFIX, make 24569*** sure PREFIX/bin is in your path, or set the AUDIOFILE_CONFIG 24570*** environment variable to the full path to audiofile-config. 24571END 24572 else 24573 if test -f conf.audiofiletest ; then 24574 : 24575 else 24576 echo "*** Could not run Audio File Library test program; checking why..." 24577 24578 24579 ac_ext=c 24580ac_cpp='$CPP $CPPFLAGS' 24581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24583ac_compiler_gnu=$ac_cv_c_compiler_gnu 24584 24585 CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS" 24586 LIBS="$LIBS $AUDIOFILE_LIBS" 24587 cat >conftest.$ac_ext <<_ACEOF 24588/* confdefs.h. */ 24589_ACEOF 24590cat confdefs.h >>conftest.$ac_ext 24591cat >>conftest.$ac_ext <<_ACEOF 24592/* end confdefs.h. */ 24593 24594#include <stdio.h> 24595#include <audiofile.h> 24596 24597int 24598main () 24599{ 24600 return 0; 24601 ; 24602 return 0; 24603} 24604_ACEOF 24605rm -f conftest.$ac_objext conftest$ac_exeext 24606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24607 (eval $ac_link) 2>conftest.er1 24608 ac_status=$? 24609 grep -v '^ *+' conftest.er1 >conftest.err 24610 rm -f conftest.er1 24611 cat conftest.err >&5 24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24613 (exit $ac_status); } && 24614 { ac_try='test -z "$ac_c_werror_flag" 24615 || test ! -s conftest.err' 24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24617 (eval $ac_try) 2>&5 24618 ac_status=$? 24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24620 (exit $ac_status); }; } && 24621 { ac_try='test -s conftest$ac_exeext' 24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24623 (eval $ac_try) 2>&5 24624 ac_status=$? 24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24626 (exit $ac_status); }; }; then 24627 cat <<END 24628*** The test program compiled, but did not run. This usually means that 24629*** the run-time linker is not finding Audio File Library or finding the 24630*** wrong version of Audio File Library. 24631*** 24632*** If it is not finding Audio File Library, you'll need to set your 24633*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point 24634*** to the installed location. Also, make sure you have run ldconfig if 24635*** that is required on your system. 24636*** 24637*** If you have an old version installed, it is best to remove it, although 24638*** you may also be able to get things to work by modifying 24639*** LD_LIBRARY_PATH. 24640END 24641 24642else 24643 echo "$as_me: failed program was:" >&5 24644sed 's/^/| /' conftest.$ac_ext >&5 24645 24646 echo "*** The test program failed to compile or link. See the file config.log" 24647 echo "*** for the exact error that occured. This usually means the Audio File" 24648 echo "*** Library was incorrectly installed or that you have moved the Audio" 24649 echo "*** File Library since it was installed. In the latter case, you may want" 24650 echo "*** to edit the audiofile-config script: $AUDIOFILE_CONFIG" 24651fi 24652rm -f conftest.err conftest.$ac_objext \ 24653 conftest$ac_exeext conftest.$ac_ext 24654 CFLAGS="$ac_save_CFLAGS" 24655 LIBS="$ac_save_LIBS" 24656 ac_ext=c 24657ac_cpp='$CPP $CPPFLAGS' 24658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24660ac_compiler_gnu=$ac_cv_c_compiler_gnu 24661 24662 fi 24663 fi 24664 AUDIOFILE_CFLAGS="" 24665 AUDIOFILE_LIBS="" 24666 : 24667 fi 24668 24669 24670 rm -f conf.audiofiletest 24671 24672 24673 24674 24675# Check whether --with-audiofile or --without-audiofile was given. 24676if test "${with_audiofile+set}" = set; then 24677 withval="$with_audiofile" 24678 case "$withval" in 24679 no) with_audiofile=false ;; 24680 *) with_audiofile=true ;; 24681 esac 24682fi; 24683 24684use_audiofile=false 24685if test x$with_audiofile != xfalse; then 24686 if test x$have_audiofile = xtrue; then 24687 cat >>confdefs.h <<\_ACEOF 24688#define USE_AUDIOFILE 1 24689_ACEOF 24690 24691 use_audiofile=true 24692 elif test x$with_audiofile = xtrue; then 24693 { { echo "$as_me:$LINENO: error: --with-audiofile specified, but audiofile library not found" >&5 24694echo "$as_me: error: --with-audiofile specified, but audiofile library not found" >&2;} 24695 { (exit 1); exit 1; }; } 24696 fi 24697fi 24698test x$use_audiofile = xfalse && AUDIOFILE_LIBS= 24699test x$use_audiofile = xfalse && AUDIOFILE_CFLAGS= 24700 24701 24702if test x$use_audiofile = xtrue; then 24703 AUDIOFILE_TRUE= 24704 AUDIOFILE_FALSE='#' 24705else 24706 AUDIOFILE_TRUE='#' 24707 AUDIOFILE_FALSE= 24708fi 24709 24710 24711 24712 24713 24714 24715# Check whether --with-mad-prefix or --without-mad-prefix was given. 24716if test "${with_mad_prefix+set}" = set; then 24717 withval="$with_mad_prefix" 24718 CPPFLAGS="$CPPFLAGS -I$withval/include" 24719 LDFLAGS="$LDFLAGS -L$withval/lib" 24720 with_mad=true 24721fi; 24722 24723# Check whether --with-mad or --without-mad was given. 24724if test "${with_mad+set}" = set; then 24725 withval="$with_mad" 24726 case "$withval" in 24727 no) with_mad=false ;; 24728 *) with_mad=true ;; 24729 esac 24730fi; 24731echo "$as_me:$LINENO: checking for mad_decoder_init in -lmad" >&5 24732echo $ECHO_N "checking for mad_decoder_init in -lmad... $ECHO_C" >&6 24733if test "${ac_cv_lib_mad_mad_decoder_init+set}" = set; then 24734 echo $ECHO_N "(cached) $ECHO_C" >&6 24735else 24736 ac_check_lib_save_LIBS=$LIBS 24737LIBS="-lmad $LIBS" 24738cat >conftest.$ac_ext <<_ACEOF 24739/* confdefs.h. */ 24740_ACEOF 24741cat confdefs.h >>conftest.$ac_ext 24742cat >>conftest.$ac_ext <<_ACEOF 24743/* end confdefs.h. */ 24744 24745/* Override any gcc2 internal prototype to avoid an error. */ 24746#ifdef __cplusplus 24747extern "C" 24748#endif 24749/* We use char because int might match the return type of a gcc2 24750 builtin and then its argument prototype would still apply. */ 24751char mad_decoder_init (); 24752int 24753main () 24754{ 24755mad_decoder_init (); 24756 ; 24757 return 0; 24758} 24759_ACEOF 24760rm -f conftest.$ac_objext conftest$ac_exeext 24761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24762 (eval $ac_link) 2>conftest.er1 24763 ac_status=$? 24764 grep -v '^ *+' conftest.er1 >conftest.err 24765 rm -f conftest.er1 24766 cat conftest.err >&5 24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24768 (exit $ac_status); } && 24769 { ac_try='test -z "$ac_c_werror_flag" 24770 || test ! -s conftest.err' 24771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24772 (eval $ac_try) 2>&5 24773 ac_status=$? 24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24775 (exit $ac_status); }; } && 24776 { ac_try='test -s conftest$ac_exeext' 24777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24778 (eval $ac_try) 2>&5 24779 ac_status=$? 24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24781 (exit $ac_status); }; }; then 24782 ac_cv_lib_mad_mad_decoder_init=yes 24783else 24784 echo "$as_me: failed program was:" >&5 24785sed 's/^/| /' conftest.$ac_ext >&5 24786 24787ac_cv_lib_mad_mad_decoder_init=no 24788fi 24789rm -f conftest.err conftest.$ac_objext \ 24790 conftest$ac_exeext conftest.$ac_ext 24791LIBS=$ac_check_lib_save_LIBS 24792fi 24793echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_decoder_init" >&5 24794echo "${ECHO_T}$ac_cv_lib_mad_mad_decoder_init" >&6 24795if test $ac_cv_lib_mad_mad_decoder_init = yes; then 24796 have_mad=true 24797fi 24798 24799 24800use_mad=false 24801if test x$with_mad != xfalse; then 24802 if test x$have_mad = xtrue; then 24803 cat >>confdefs.h <<\_ACEOF 24804#define USE_MAD 1 24805_ACEOF 24806 24807 use_mad=true 24808 MADLIBS="-lmad" 24809 elif test x$with_mad = xtrue; then 24810 { { echo "$as_me:$LINENO: error: --with-mad specified, but mad library not found" >&5 24811echo "$as_me: error: --with-mad specified, but mad library not found" >&2;} 24812 { (exit 1); exit 1; }; } 24813 fi 24814fi 24815 24816 24817 24818if test x$use_mad = xtrue; then 24819 MAD_TRUE= 24820 MAD_FALSE='#' 24821else 24822 MAD_TRUE='#' 24823 MAD_FALSE= 24824fi 24825 24826 24827# Check whether --enable-longer-name or --disable-longer-name was given. 24828if test "${enable_longer_name+set}" = set; then 24829 enableval="$enable_longer_name" 24830 case "$enableval" in 24831 yes) NORMALIZE_BIN=normalize-audio ;; 24832 no) NORMALIZE_BIN=normalize ;; 24833 *) { { echo "$as_me:$LINENO: error: bad value $withval for --enable-longer-name" >&5 24834echo "$as_me: error: bad value $withval for --enable-longer-name" >&2;} 24835 { (exit 1); exit 1; }; } ;; 24836 esac 24837else 24838 NORMALIZE_BIN=normalize 24839fi; 24840 24841 24842 24843 24844 MKINSTALLDIRS= 24845 if test -n "$ac_aux_dir"; then 24846 case "$ac_aux_dir" in 24847 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 24848 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 24849 esac 24850 fi 24851 if test -z "$MKINSTALLDIRS"; then 24852 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 24853 fi 24854 24855 24856 24857 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 24858echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 24859 # Check whether --enable-nls or --disable-nls was given. 24860if test "${enable_nls+set}" = set; then 24861 enableval="$enable_nls" 24862 USE_NLS=$enableval 24863else 24864 USE_NLS=yes 24865fi; 24866 echo "$as_me:$LINENO: result: $USE_NLS" >&5 24867echo "${ECHO_T}$USE_NLS" >&6 24868 24869 24870 24871 24872 24873 24874# Prepare PATH_SEPARATOR. 24875# The user is always right. 24876if test "${PATH_SEPARATOR+set}" != set; then 24877 echo "#! /bin/sh" >conf$$.sh 24878 echo "exit 0" >>conf$$.sh 24879 chmod +x conf$$.sh 24880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 24881 PATH_SEPARATOR=';' 24882 else 24883 PATH_SEPARATOR=: 24884 fi 24885 rm -f conf$$.sh 24886fi 24887 24888# Find out how to test for executable files. Don't use a zero-byte file, 24889# as systems may use methods other than mode bits to determine executability. 24890cat >conf$$.file <<_ASEOF 24891#! /bin/sh 24892exit 0 24893_ASEOF 24894chmod +x conf$$.file 24895if test -x conf$$.file >/dev/null 2>&1; then 24896 ac_executable_p="test -x" 24897else 24898 ac_executable_p="test -f" 24899fi 24900rm -f conf$$.file 24901 24902# Extract the first word of "msgfmt", so it can be a program name with args. 24903set dummy msgfmt; ac_word=$2 24904echo "$as_me:$LINENO: checking for $ac_word" >&5 24905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24906if test "${ac_cv_path_MSGFMT+set}" = set; then 24907 echo $ECHO_N "(cached) $ECHO_C" >&6 24908else 24909 case "$MSGFMT" in 24910 [\\/]* | ?:[\\/]*) 24911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 24912 ;; 24913 *) 24914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 24915 for ac_dir in $PATH; do 24916 IFS="$ac_save_IFS" 24917 test -z "$ac_dir" && ac_dir=. 24918 for ac_exec_ext in '' $ac_executable_extensions; do 24919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 24920 echo "$as_me: trying $ac_dir/$ac_word..." >&5 24921 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 24922 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 24923 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 24924 break 2 24925 fi 24926 fi 24927 done 24928 done 24929 IFS="$ac_save_IFS" 24930 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 24931 ;; 24932esac 24933fi 24934MSGFMT="$ac_cv_path_MSGFMT" 24935if test "$MSGFMT" != ":"; then 24936 echo "$as_me:$LINENO: result: $MSGFMT" >&5 24937echo "${ECHO_T}$MSGFMT" >&6 24938else 24939 echo "$as_me:$LINENO: result: no" >&5 24940echo "${ECHO_T}no" >&6 24941fi 24942 24943 # Extract the first word of "gmsgfmt", so it can be a program name with args. 24944set dummy gmsgfmt; ac_word=$2 24945echo "$as_me:$LINENO: checking for $ac_word" >&5 24946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 24947if test "${ac_cv_path_GMSGFMT+set}" = set; then 24948 echo $ECHO_N "(cached) $ECHO_C" >&6 24949else 24950 case $GMSGFMT in 24951 [\\/]* | ?:[\\/]*) 24952 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 24953 ;; 24954 *) 24955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24956for as_dir in $PATH 24957do 24958 IFS=$as_save_IFS 24959 test -z "$as_dir" && as_dir=. 24960 for ac_exec_ext in '' $ac_executable_extensions; do 24961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24962 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 24963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 24964 break 2 24965 fi 24966done 24967done 24968 24969 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 24970 ;; 24971esac 24972fi 24973GMSGFMT=$ac_cv_path_GMSGFMT 24974 24975if test -n "$GMSGFMT"; then 24976 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 24977echo "${ECHO_T}$GMSGFMT" >&6 24978else 24979 echo "$as_me:$LINENO: result: no" >&5 24980echo "${ECHO_T}no" >&6 24981fi 24982 24983 24984 24985# Prepare PATH_SEPARATOR. 24986# The user is always right. 24987if test "${PATH_SEPARATOR+set}" != set; then 24988 echo "#! /bin/sh" >conf$$.sh 24989 echo "exit 0" >>conf$$.sh 24990 chmod +x conf$$.sh 24991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 24992 PATH_SEPARATOR=';' 24993 else 24994 PATH_SEPARATOR=: 24995 fi 24996 rm -f conf$$.sh 24997fi 24998 24999# Find out how to test for executable files. Don't use a zero-byte file, 25000# as systems may use methods other than mode bits to determine executability. 25001cat >conf$$.file <<_ASEOF 25002#! /bin/sh 25003exit 0 25004_ASEOF 25005chmod +x conf$$.file 25006if test -x conf$$.file >/dev/null 2>&1; then 25007 ac_executable_p="test -x" 25008else 25009 ac_executable_p="test -f" 25010fi 25011rm -f conf$$.file 25012 25013# Extract the first word of "xgettext", so it can be a program name with args. 25014set dummy xgettext; ac_word=$2 25015echo "$as_me:$LINENO: checking for $ac_word" >&5 25016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25017if test "${ac_cv_path_XGETTEXT+set}" = set; then 25018 echo $ECHO_N "(cached) $ECHO_C" >&6 25019else 25020 case "$XGETTEXT" in 25021 [\\/]* | ?:[\\/]*) 25022 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 25023 ;; 25024 *) 25025 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 25026 for ac_dir in $PATH; do 25027 IFS="$ac_save_IFS" 25028 test -z "$ac_dir" && ac_dir=. 25029 for ac_exec_ext in '' $ac_executable_extensions; do 25030 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 25031 echo "$as_me: trying $ac_dir/$ac_word..." >&5 25032 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 25033 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 25034 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 25035 break 2 25036 fi 25037 fi 25038 done 25039 done 25040 IFS="$ac_save_IFS" 25041 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 25042 ;; 25043esac 25044fi 25045XGETTEXT="$ac_cv_path_XGETTEXT" 25046if test "$XGETTEXT" != ":"; then 25047 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 25048echo "${ECHO_T}$XGETTEXT" >&6 25049else 25050 echo "$as_me:$LINENO: result: no" >&5 25051echo "${ECHO_T}no" >&6 25052fi 25053 25054 rm -f messages.po 25055 25056 25057# Prepare PATH_SEPARATOR. 25058# The user is always right. 25059if test "${PATH_SEPARATOR+set}" != set; then 25060 echo "#! /bin/sh" >conf$$.sh 25061 echo "exit 0" >>conf$$.sh 25062 chmod +x conf$$.sh 25063 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 25064 PATH_SEPARATOR=';' 25065 else 25066 PATH_SEPARATOR=: 25067 fi 25068 rm -f conf$$.sh 25069fi 25070 25071# Find out how to test for executable files. Don't use a zero-byte file, 25072# as systems may use methods other than mode bits to determine executability. 25073cat >conf$$.file <<_ASEOF 25074#! /bin/sh 25075exit 0 25076_ASEOF 25077chmod +x conf$$.file 25078if test -x conf$$.file >/dev/null 2>&1; then 25079 ac_executable_p="test -x" 25080else 25081 ac_executable_p="test -f" 25082fi 25083rm -f conf$$.file 25084 25085# Extract the first word of "msgmerge", so it can be a program name with args. 25086set dummy msgmerge; ac_word=$2 25087echo "$as_me:$LINENO: checking for $ac_word" >&5 25088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 25089if test "${ac_cv_path_MSGMERGE+set}" = set; then 25090 echo $ECHO_N "(cached) $ECHO_C" >&6 25091else 25092 case "$MSGMERGE" in 25093 [\\/]* | ?:[\\/]*) 25094 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 25095 ;; 25096 *) 25097 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 25098 for ac_dir in $PATH; do 25099 IFS="$ac_save_IFS" 25100 test -z "$ac_dir" && ac_dir=. 25101 for ac_exec_ext in '' $ac_executable_extensions; do 25102 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 25103 echo "$as_me: trying $ac_dir/$ac_word..." >&5 25104 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 25105 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 25106 break 2 25107 fi 25108 fi 25109 done 25110 done 25111 IFS="$ac_save_IFS" 25112 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 25113 ;; 25114esac 25115fi 25116MSGMERGE="$ac_cv_path_MSGMERGE" 25117if test "$MSGMERGE" != ":"; then 25118 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 25119echo "${ECHO_T}$MSGMERGE" >&6 25120else 25121 echo "$as_me:$LINENO: result: no" >&5 25122echo "${ECHO_T}no" >&6 25123fi 25124 25125 25126 if test "$GMSGFMT" != ":"; then 25127 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 25128 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 25129 : ; 25130 else 25131 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 25132 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 25133echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 25134 GMSGFMT=":" 25135 fi 25136 fi 25137 25138 if test "$XGETTEXT" != ":"; then 25139 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 25140 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 25141 : ; 25142 else 25143 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 25144echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 25145 XGETTEXT=":" 25146 fi 25147 rm -f messages.po 25148 fi 25149 25150 ac_config_commands="$ac_config_commands default-1" 25151 25152 25153 25154 if test "X$prefix" = "XNONE"; then 25155 acl_final_prefix="$ac_default_prefix" 25156 else 25157 acl_final_prefix="$prefix" 25158 fi 25159 if test "X$exec_prefix" = "XNONE"; then 25160 acl_final_exec_prefix='${prefix}' 25161 else 25162 acl_final_exec_prefix="$exec_prefix" 25163 fi 25164 acl_save_prefix="$prefix" 25165 prefix="$acl_final_prefix" 25166 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 25167 prefix="$acl_save_prefix" 25168 25169 25170# Check whether --with-gnu-ld or --without-gnu-ld was given. 25171if test "${with_gnu_ld+set}" = set; then 25172 withval="$with_gnu_ld" 25173 test "$withval" = no || with_gnu_ld=yes 25174else 25175 with_gnu_ld=no 25176fi; 25177# Prepare PATH_SEPARATOR. 25178# The user is always right. 25179if test "${PATH_SEPARATOR+set}" != set; then 25180 echo "#! /bin/sh" >conf$$.sh 25181 echo "exit 0" >>conf$$.sh 25182 chmod +x conf$$.sh 25183 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 25184 PATH_SEPARATOR=';' 25185 else 25186 PATH_SEPARATOR=: 25187 fi 25188 rm -f conf$$.sh 25189fi 25190ac_prog=ld 25191if test "$GCC" = yes; then 25192 # Check if gcc -print-prog-name=ld gives a path. 25193 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 25194echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 25195 case $host in 25196 *-*-mingw*) 25197 # gcc leaves a trailing carriage return which upsets mingw 25198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 25199 *) 25200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 25201 esac 25202 case $ac_prog in 25203 # Accept absolute paths. 25204 [\\/]* | [A-Za-z]:[\\/]*) 25205 re_direlt='/[^/][^/]*/\.\./' 25206 # Canonicalize the path of ld 25207 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 25208 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 25209 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 25210 done 25211 test -z "$LD" && LD="$ac_prog" 25212 ;; 25213 "") 25214 # If it fails, then pretend we aren't using GCC. 25215 ac_prog=ld 25216 ;; 25217 *) 25218 # If it is relative, then search for the first ld in PATH. 25219 with_gnu_ld=unknown 25220 ;; 25221 esac 25222elif test "$with_gnu_ld" = yes; then 25223 echo "$as_me:$LINENO: checking for GNU ld" >&5 25224echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 25225else 25226 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 25227echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 25228fi 25229if test "${acl_cv_path_LD+set}" = set; then 25230 echo $ECHO_N "(cached) $ECHO_C" >&6 25231else 25232 if test -z "$LD"; then 25233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 25234 for ac_dir in $PATH; do 25235 test -z "$ac_dir" && ac_dir=. 25236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 25237 acl_cv_path_LD="$ac_dir/$ac_prog" 25238 # Check to see if the program is GNU ld. I'd rather use --version, 25239 # but apparently some GNU ld's only accept -v. 25240 # Break only if it was the GNU/non-GNU ld that we prefer. 25241 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 25242 *GNU* | *'with BFD'*) 25243 test "$with_gnu_ld" != no && break ;; 25244 *) 25245 test "$with_gnu_ld" != yes && break ;; 25246 esac 25247 fi 25248 done 25249 IFS="$ac_save_ifs" 25250else 25251 acl_cv_path_LD="$LD" # Let the user override the test with a path. 25252fi 25253fi 25254 25255LD="$acl_cv_path_LD" 25256if test -n "$LD"; then 25257 echo "$as_me:$LINENO: result: $LD" >&5 25258echo "${ECHO_T}$LD" >&6 25259else 25260 echo "$as_me:$LINENO: result: no" >&5 25261echo "${ECHO_T}no" >&6 25262fi 25263test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 25264echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 25265 { (exit 1); exit 1; }; } 25266echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 25267echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 25268if test "${acl_cv_prog_gnu_ld+set}" = set; then 25269 echo $ECHO_N "(cached) $ECHO_C" >&6 25270else 25271 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 25272case `$LD -v 2>&1 </dev/null` in 25273*GNU* | *'with BFD'*) 25274 acl_cv_prog_gnu_ld=yes ;; 25275*) 25276 acl_cv_prog_gnu_ld=no ;; 25277esac 25278fi 25279echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 25280echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 25281with_gnu_ld=$acl_cv_prog_gnu_ld 25282 25283 25284 25285 25286 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 25287echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 25288if test "${acl_cv_rpath+set}" = set; then 25289 echo $ECHO_N "(cached) $ECHO_C" >&6 25290else 25291 25292 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 25293 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 25294 . ./conftest.sh 25295 rm -f ./conftest.sh 25296 acl_cv_rpath=done 25297 25298fi 25299echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 25300echo "${ECHO_T}$acl_cv_rpath" >&6 25301 wl="$acl_cv_wl" 25302 libext="$acl_cv_libext" 25303 shlibext="$acl_cv_shlibext" 25304 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 25305 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 25306 hardcode_direct="$acl_cv_hardcode_direct" 25307 hardcode_minus_L="$acl_cv_hardcode_minus_L" 25308 # Check whether --enable-rpath or --disable-rpath was given. 25309if test "${enable_rpath+set}" = set; then 25310 enableval="$enable_rpath" 25311 : 25312else 25313 enable_rpath=yes 25314fi; 25315 25316 25317 25318 25319 25320 25321 25322 use_additional=yes 25323 25324 acl_save_prefix="$prefix" 25325 prefix="$acl_final_prefix" 25326 acl_save_exec_prefix="$exec_prefix" 25327 exec_prefix="$acl_final_exec_prefix" 25328 25329 eval additional_includedir=\"$includedir\" 25330 eval additional_libdir=\"$libdir\" 25331 25332 exec_prefix="$acl_save_exec_prefix" 25333 prefix="$acl_save_prefix" 25334 25335 25336# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 25337if test "${with_libiconv_prefix+set}" = set; then 25338 withval="$with_libiconv_prefix" 25339 25340 if test "X$withval" = "Xno"; then 25341 use_additional=no 25342 else 25343 if test "X$withval" = "X"; then 25344 25345 acl_save_prefix="$prefix" 25346 prefix="$acl_final_prefix" 25347 acl_save_exec_prefix="$exec_prefix" 25348 exec_prefix="$acl_final_exec_prefix" 25349 25350 eval additional_includedir=\"$includedir\" 25351 eval additional_libdir=\"$libdir\" 25352 25353 exec_prefix="$acl_save_exec_prefix" 25354 prefix="$acl_save_prefix" 25355 25356 else 25357 additional_includedir="$withval/include" 25358 additional_libdir="$withval/lib" 25359 fi 25360 fi 25361 25362fi; 25363 LIBICONV= 25364 LTLIBICONV= 25365 INCICONV= 25366 rpathdirs= 25367 ltrpathdirs= 25368 names_already_handled= 25369 names_next_round='iconv ' 25370 while test -n "$names_next_round"; do 25371 names_this_round="$names_next_round" 25372 names_next_round= 25373 for name in $names_this_round; do 25374 already_handled= 25375 for n in $names_already_handled; do 25376 if test "$n" = "$name"; then 25377 already_handled=yes 25378 break 25379 fi 25380 done 25381 if test -z "$already_handled"; then 25382 names_already_handled="$names_already_handled $name" 25383 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 25384 eval value=\"\$HAVE_LIB$uppername\" 25385 if test -n "$value"; then 25386 if test "$value" = yes; then 25387 eval value=\"\$LIB$uppername\" 25388 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 25389 eval value=\"\$LTLIB$uppername\" 25390 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 25391 else 25392 : 25393 fi 25394 else 25395 found_dir= 25396 found_la= 25397 found_so= 25398 found_a= 25399 if test $use_additional = yes; then 25400 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 25401 found_dir="$additional_libdir" 25402 found_so="$additional_libdir/lib$name.$shlibext" 25403 if test -f "$additional_libdir/lib$name.la"; then 25404 found_la="$additional_libdir/lib$name.la" 25405 fi 25406 else 25407 if test -f "$additional_libdir/lib$name.$libext"; then 25408 found_dir="$additional_libdir" 25409 found_a="$additional_libdir/lib$name.$libext" 25410 if test -f "$additional_libdir/lib$name.la"; then 25411 found_la="$additional_libdir/lib$name.la" 25412 fi 25413 fi 25414 fi 25415 fi 25416 if test "X$found_dir" = "X"; then 25417 for x in $LDFLAGS $LTLIBICONV; do 25418 25419 acl_save_prefix="$prefix" 25420 prefix="$acl_final_prefix" 25421 acl_save_exec_prefix="$exec_prefix" 25422 exec_prefix="$acl_final_exec_prefix" 25423 eval x=\"$x\" 25424 exec_prefix="$acl_save_exec_prefix" 25425 prefix="$acl_save_prefix" 25426 25427 case "$x" in 25428 -L*) 25429 dir=`echo "X$x" | sed -e 's/^X-L//'` 25430 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 25431 found_dir="$dir" 25432 found_so="$dir/lib$name.$shlibext" 25433 if test -f "$dir/lib$name.la"; then 25434 found_la="$dir/lib$name.la" 25435 fi 25436 else 25437 if test -f "$dir/lib$name.$libext"; then 25438 found_dir="$dir" 25439 found_a="$dir/lib$name.$libext" 25440 if test -f "$dir/lib$name.la"; then 25441 found_la="$dir/lib$name.la" 25442 fi 25443 fi 25444 fi 25445 ;; 25446 esac 25447 if test "X$found_dir" != "X"; then 25448 break 25449 fi 25450 done 25451 fi 25452 if test "X$found_dir" != "X"; then 25453 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 25454 if test "X$found_so" != "X"; then 25455 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 25456 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 25457 else 25458 haveit= 25459 for x in $ltrpathdirs; do 25460 if test "X$x" = "X$found_dir"; then 25461 haveit=yes 25462 break 25463 fi 25464 done 25465 if test -z "$haveit"; then 25466 ltrpathdirs="$ltrpathdirs $found_dir" 25467 fi 25468 if test "$hardcode_direct" = yes; then 25469 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 25470 else 25471 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 25472 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 25473 haveit= 25474 for x in $rpathdirs; do 25475 if test "X$x" = "X$found_dir"; then 25476 haveit=yes 25477 break 25478 fi 25479 done 25480 if test -z "$haveit"; then 25481 rpathdirs="$rpathdirs $found_dir" 25482 fi 25483 else 25484 haveit= 25485 for x in $LDFLAGS $LIBICONV; do 25486 25487 acl_save_prefix="$prefix" 25488 prefix="$acl_final_prefix" 25489 acl_save_exec_prefix="$exec_prefix" 25490 exec_prefix="$acl_final_exec_prefix" 25491 eval x=\"$x\" 25492 exec_prefix="$acl_save_exec_prefix" 25493 prefix="$acl_save_prefix" 25494 25495 if test "X$x" = "X-L$found_dir"; then 25496 haveit=yes 25497 break 25498 fi 25499 done 25500 if test -z "$haveit"; then 25501 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 25502 fi 25503 if test "$hardcode_minus_L" != no; then 25504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 25505 else 25506 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 25507 fi 25508 fi 25509 fi 25510 fi 25511 else 25512 if test "X$found_a" != "X"; then 25513 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 25514 else 25515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 25516 fi 25517 fi 25518 additional_includedir= 25519 case "$found_dir" in 25520 */lib | */lib/) 25521 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 25522 additional_includedir="$basedir/include" 25523 ;; 25524 esac 25525 if test "X$additional_includedir" != "X"; then 25526 if test "X$additional_includedir" != "X/usr/include"; then 25527 haveit= 25528 if test "X$additional_includedir" = "X/usr/local/include"; then 25529 if test -n "$GCC"; then 25530 case $host_os in 25531 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 25532 esac 25533 fi 25534 fi 25535 if test -z "$haveit"; then 25536 for x in $CPPFLAGS $INCICONV; do 25537 25538 acl_save_prefix="$prefix" 25539 prefix="$acl_final_prefix" 25540 acl_save_exec_prefix="$exec_prefix" 25541 exec_prefix="$acl_final_exec_prefix" 25542 eval x=\"$x\" 25543 exec_prefix="$acl_save_exec_prefix" 25544 prefix="$acl_save_prefix" 25545 25546 if test "X$x" = "X-I$additional_includedir"; then 25547 haveit=yes 25548 break 25549 fi 25550 done 25551 if test -z "$haveit"; then 25552 if test -d "$additional_includedir"; then 25553 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 25554 fi 25555 fi 25556 fi 25557 fi 25558 fi 25559 if test -n "$found_la"; then 25560 save_libdir="$libdir" 25561 case "$found_la" in 25562 */* | *\\*) . "$found_la" ;; 25563 *) . "./$found_la" ;; 25564 esac 25565 libdir="$save_libdir" 25566 for dep in $dependency_libs; do 25567 case "$dep" in 25568 -L*) 25569 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 25570 if test "X$additional_libdir" != "X/usr/lib"; then 25571 haveit= 25572 if test "X$additional_libdir" = "X/usr/local/lib"; then 25573 if test -n "$GCC"; then 25574 case $host_os in 25575 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 25576 esac 25577 fi 25578 fi 25579 if test -z "$haveit"; then 25580 haveit= 25581 for x in $LDFLAGS $LIBICONV; do 25582 25583 acl_save_prefix="$prefix" 25584 prefix="$acl_final_prefix" 25585 acl_save_exec_prefix="$exec_prefix" 25586 exec_prefix="$acl_final_exec_prefix" 25587 eval x=\"$x\" 25588 exec_prefix="$acl_save_exec_prefix" 25589 prefix="$acl_save_prefix" 25590 25591 if test "X$x" = "X-L$additional_libdir"; then 25592 haveit=yes 25593 break 25594 fi 25595 done 25596 if test -z "$haveit"; then 25597 if test -d "$additional_libdir"; then 25598 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 25599 fi 25600 fi 25601 haveit= 25602 for x in $LDFLAGS $LTLIBICONV; do 25603 25604 acl_save_prefix="$prefix" 25605 prefix="$acl_final_prefix" 25606 acl_save_exec_prefix="$exec_prefix" 25607 exec_prefix="$acl_final_exec_prefix" 25608 eval x=\"$x\" 25609 exec_prefix="$acl_save_exec_prefix" 25610 prefix="$acl_save_prefix" 25611 25612 if test "X$x" = "X-L$additional_libdir"; then 25613 haveit=yes 25614 break 25615 fi 25616 done 25617 if test -z "$haveit"; then 25618 if test -d "$additional_libdir"; then 25619 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 25620 fi 25621 fi 25622 fi 25623 fi 25624 ;; 25625 -R*) 25626 dir=`echo "X$dep" | sed -e 's/^X-R//'` 25627 if test "$enable_rpath" != no; then 25628 haveit= 25629 for x in $rpathdirs; do 25630 if test "X$x" = "X$dir"; then 25631 haveit=yes 25632 break 25633 fi 25634 done 25635 if test -z "$haveit"; then 25636 rpathdirs="$rpathdirs $dir" 25637 fi 25638 haveit= 25639 for x in $ltrpathdirs; do 25640 if test "X$x" = "X$dir"; then 25641 haveit=yes 25642 break 25643 fi 25644 done 25645 if test -z "$haveit"; then 25646 ltrpathdirs="$ltrpathdirs $dir" 25647 fi 25648 fi 25649 ;; 25650 -l*) 25651 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 25652 ;; 25653 *.la) 25654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 25655 ;; 25656 *) 25657 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 25658 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 25659 ;; 25660 esac 25661 done 25662 fi 25663 else 25664 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 25665 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 25666 fi 25667 fi 25668 fi 25669 done 25670 done 25671 if test "X$rpathdirs" != "X"; then 25672 if test -n "$hardcode_libdir_separator"; then 25673 alldirs= 25674 for found_dir in $rpathdirs; do 25675 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 25676 done 25677 acl_save_libdir="$libdir" 25678 libdir="$alldirs" 25679 eval flag=\"$hardcode_libdir_flag_spec\" 25680 libdir="$acl_save_libdir" 25681 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 25682 else 25683 for found_dir in $rpathdirs; do 25684 acl_save_libdir="$libdir" 25685 libdir="$found_dir" 25686 eval flag=\"$hardcode_libdir_flag_spec\" 25687 libdir="$acl_save_libdir" 25688 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 25689 done 25690 fi 25691 fi 25692 if test "X$ltrpathdirs" != "X"; then 25693 for found_dir in $ltrpathdirs; do 25694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 25695 done 25696 fi 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 25709 25710 25711 25712 25713 25714 25715 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 25716echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6 25717if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then 25718 echo $ECHO_N "(cached) $ECHO_C" >&6 25719else 25720 gt_save_CPPFLAGS="$CPPFLAGS" 25721 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 25722 gt_save_LIBS="$LIBS" 25723 LIBS="$LIBS -framework CoreFoundation" 25724 cat >conftest.$ac_ext <<_ACEOF 25725/* confdefs.h. */ 25726_ACEOF 25727cat confdefs.h >>conftest.$ac_ext 25728cat >>conftest.$ac_ext <<_ACEOF 25729/* end confdefs.h. */ 25730#include <CFPreferences.h> 25731int 25732main () 25733{ 25734CFPreferencesCopyAppValue(NULL, NULL) 25735 ; 25736 return 0; 25737} 25738_ACEOF 25739rm -f conftest.$ac_objext conftest$ac_exeext 25740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25741 (eval $ac_link) 2>conftest.er1 25742 ac_status=$? 25743 grep -v '^ *+' conftest.er1 >conftest.err 25744 rm -f conftest.er1 25745 cat conftest.err >&5 25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25747 (exit $ac_status); } && 25748 { ac_try='test -z "$ac_c_werror_flag" 25749 || test ! -s conftest.err' 25750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25751 (eval $ac_try) 2>&5 25752 ac_status=$? 25753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25754 (exit $ac_status); }; } && 25755 { ac_try='test -s conftest$ac_exeext' 25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25757 (eval $ac_try) 2>&5 25758 ac_status=$? 25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25760 (exit $ac_status); }; }; then 25761 gt_cv_func_CFPreferencesCopyAppValue=yes 25762else 25763 echo "$as_me: failed program was:" >&5 25764sed 's/^/| /' conftest.$ac_ext >&5 25765 25766gt_cv_func_CFPreferencesCopyAppValue=no 25767fi 25768rm -f conftest.err conftest.$ac_objext \ 25769 conftest$ac_exeext conftest.$ac_ext 25770 CPPFLAGS="$gt_save_CPPFLAGS" 25771 LIBS="$gt_save_LIBS" 25772fi 25773echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 25774echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6 25775 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 25776 25777cat >>confdefs.h <<\_ACEOF 25778#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 25779_ACEOF 25780 25781 fi 25782 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 25783echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6 25784if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then 25785 echo $ECHO_N "(cached) $ECHO_C" >&6 25786else 25787 gt_save_CPPFLAGS="$CPPFLAGS" 25788 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 25789 gt_save_LIBS="$LIBS" 25790 LIBS="$LIBS -framework CoreFoundation" 25791 cat >conftest.$ac_ext <<_ACEOF 25792/* confdefs.h. */ 25793_ACEOF 25794cat confdefs.h >>conftest.$ac_ext 25795cat >>conftest.$ac_ext <<_ACEOF 25796/* end confdefs.h. */ 25797#include <CFLocale.h> 25798int 25799main () 25800{ 25801CFLocaleCopyCurrent(); 25802 ; 25803 return 0; 25804} 25805_ACEOF 25806rm -f conftest.$ac_objext conftest$ac_exeext 25807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25808 (eval $ac_link) 2>conftest.er1 25809 ac_status=$? 25810 grep -v '^ *+' conftest.er1 >conftest.err 25811 rm -f conftest.er1 25812 cat conftest.err >&5 25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25814 (exit $ac_status); } && 25815 { ac_try='test -z "$ac_c_werror_flag" 25816 || test ! -s conftest.err' 25817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25818 (eval $ac_try) 2>&5 25819 ac_status=$? 25820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25821 (exit $ac_status); }; } && 25822 { ac_try='test -s conftest$ac_exeext' 25823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25824 (eval $ac_try) 2>&5 25825 ac_status=$? 25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25827 (exit $ac_status); }; }; then 25828 gt_cv_func_CFLocaleCopyCurrent=yes 25829else 25830 echo "$as_me: failed program was:" >&5 25831sed 's/^/| /' conftest.$ac_ext >&5 25832 25833gt_cv_func_CFLocaleCopyCurrent=no 25834fi 25835rm -f conftest.err conftest.$ac_objext \ 25836 conftest$ac_exeext conftest.$ac_ext 25837 CPPFLAGS="$gt_save_CPPFLAGS" 25838 LIBS="$gt_save_LIBS" 25839fi 25840echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 25841echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6 25842 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 25843 25844cat >>confdefs.h <<\_ACEOF 25845#define HAVE_CFLOCALECOPYCURRENT 1 25846_ACEOF 25847 25848 fi 25849 INTL_MACOSX_LIBS= 25850 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 25851 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 25852 fi 25853 25854 25855 25856 25857 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 25858echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 25859 # Check whether --enable-nls or --disable-nls was given. 25860if test "${enable_nls+set}" = set; then 25861 enableval="$enable_nls" 25862 USE_NLS=$enableval 25863else 25864 USE_NLS=yes 25865fi; 25866 echo "$as_me:$LINENO: result: $USE_NLS" >&5 25867echo "${ECHO_T}$USE_NLS" >&6 25868 25869 25870 25871 25872 LIBINTL= 25873 LTLIBINTL= 25874 POSUB= 25875 25876 if test "$USE_NLS" = "yes"; then 25877 gt_use_preinstalled_gnugettext=no 25878 25879 25880 25881 25882 25883 25884 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 25885echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 25886if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 25887 echo $ECHO_N "(cached) $ECHO_C" >&6 25888else 25889 cat >conftest.$ac_ext <<_ACEOF 25890/* confdefs.h. */ 25891_ACEOF 25892cat confdefs.h >>conftest.$ac_ext 25893cat >>conftest.$ac_ext <<_ACEOF 25894/* end confdefs.h. */ 25895#include <libintl.h> 25896extern int _nl_msg_cat_cntr; 25897extern int *_nl_domain_bindings; 25898int 25899main () 25900{ 25901bindtextdomain ("", ""); 25902return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 25903 ; 25904 return 0; 25905} 25906_ACEOF 25907rm -f conftest.$ac_objext conftest$ac_exeext 25908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25909 (eval $ac_link) 2>conftest.er1 25910 ac_status=$? 25911 grep -v '^ *+' conftest.er1 >conftest.err 25912 rm -f conftest.er1 25913 cat conftest.err >&5 25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25915 (exit $ac_status); } && 25916 { ac_try='test -z "$ac_c_werror_flag" 25917 || test ! -s conftest.err' 25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25919 (eval $ac_try) 2>&5 25920 ac_status=$? 25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25922 (exit $ac_status); }; } && 25923 { ac_try='test -s conftest$ac_exeext' 25924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25925 (eval $ac_try) 2>&5 25926 ac_status=$? 25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25928 (exit $ac_status); }; }; then 25929 gt_cv_func_gnugettext1_libc=yes 25930else 25931 echo "$as_me: failed program was:" >&5 25932sed 's/^/| /' conftest.$ac_ext >&5 25933 25934gt_cv_func_gnugettext1_libc=no 25935fi 25936rm -f conftest.err conftest.$ac_objext \ 25937 conftest$ac_exeext conftest.$ac_ext 25938fi 25939echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 25940echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 25941 25942 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 25943 25944 25945 25946 25947 25948 am_save_CPPFLAGS="$CPPFLAGS" 25949 25950 for element in $INCICONV; do 25951 haveit= 25952 for x in $CPPFLAGS; do 25953 25954 acl_save_prefix="$prefix" 25955 prefix="$acl_final_prefix" 25956 acl_save_exec_prefix="$exec_prefix" 25957 exec_prefix="$acl_final_exec_prefix" 25958 eval x=\"$x\" 25959 exec_prefix="$acl_save_exec_prefix" 25960 prefix="$acl_save_prefix" 25961 25962 if test "X$x" = "X$element"; then 25963 haveit=yes 25964 break 25965 fi 25966 done 25967 if test -z "$haveit"; then 25968 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 25969 fi 25970 done 25971 25972 25973 echo "$as_me:$LINENO: checking for iconv" >&5 25974echo $ECHO_N "checking for iconv... $ECHO_C" >&6 25975if test "${am_cv_func_iconv+set}" = set; then 25976 echo $ECHO_N "(cached) $ECHO_C" >&6 25977else 25978 25979 am_cv_func_iconv="no, consider installing GNU libiconv" 25980 am_cv_lib_iconv=no 25981 cat >conftest.$ac_ext <<_ACEOF 25982/* confdefs.h. */ 25983_ACEOF 25984cat confdefs.h >>conftest.$ac_ext 25985cat >>conftest.$ac_ext <<_ACEOF 25986/* end confdefs.h. */ 25987#include <stdlib.h> 25988#include <iconv.h> 25989int 25990main () 25991{ 25992iconv_t cd = iconv_open("",""); 25993 iconv(cd,NULL,NULL,NULL,NULL); 25994 iconv_close(cd); 25995 ; 25996 return 0; 25997} 25998_ACEOF 25999rm -f conftest.$ac_objext conftest$ac_exeext 26000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26001 (eval $ac_link) 2>conftest.er1 26002 ac_status=$? 26003 grep -v '^ *+' conftest.er1 >conftest.err 26004 rm -f conftest.er1 26005 cat conftest.err >&5 26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26007 (exit $ac_status); } && 26008 { ac_try='test -z "$ac_c_werror_flag" 26009 || test ! -s conftest.err' 26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26011 (eval $ac_try) 2>&5 26012 ac_status=$? 26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26014 (exit $ac_status); }; } && 26015 { ac_try='test -s conftest$ac_exeext' 26016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26017 (eval $ac_try) 2>&5 26018 ac_status=$? 26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26020 (exit $ac_status); }; }; then 26021 am_cv_func_iconv=yes 26022else 26023 echo "$as_me: failed program was:" >&5 26024sed 's/^/| /' conftest.$ac_ext >&5 26025 26026fi 26027rm -f conftest.err conftest.$ac_objext \ 26028 conftest$ac_exeext conftest.$ac_ext 26029 if test "$am_cv_func_iconv" != yes; then 26030 am_save_LIBS="$LIBS" 26031 LIBS="$LIBS $LIBICONV" 26032 cat >conftest.$ac_ext <<_ACEOF 26033/* confdefs.h. */ 26034_ACEOF 26035cat confdefs.h >>conftest.$ac_ext 26036cat >>conftest.$ac_ext <<_ACEOF 26037/* end confdefs.h. */ 26038#include <stdlib.h> 26039#include <iconv.h> 26040int 26041main () 26042{ 26043iconv_t cd = iconv_open("",""); 26044 iconv(cd,NULL,NULL,NULL,NULL); 26045 iconv_close(cd); 26046 ; 26047 return 0; 26048} 26049_ACEOF 26050rm -f conftest.$ac_objext conftest$ac_exeext 26051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26052 (eval $ac_link) 2>conftest.er1 26053 ac_status=$? 26054 grep -v '^ *+' conftest.er1 >conftest.err 26055 rm -f conftest.er1 26056 cat conftest.err >&5 26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26058 (exit $ac_status); } && 26059 { ac_try='test -z "$ac_c_werror_flag" 26060 || test ! -s conftest.err' 26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26062 (eval $ac_try) 2>&5 26063 ac_status=$? 26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26065 (exit $ac_status); }; } && 26066 { ac_try='test -s conftest$ac_exeext' 26067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26068 (eval $ac_try) 2>&5 26069 ac_status=$? 26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26071 (exit $ac_status); }; }; then 26072 am_cv_lib_iconv=yes 26073 am_cv_func_iconv=yes 26074else 26075 echo "$as_me: failed program was:" >&5 26076sed 's/^/| /' conftest.$ac_ext >&5 26077 26078fi 26079rm -f conftest.err conftest.$ac_objext \ 26080 conftest$ac_exeext conftest.$ac_ext 26081 LIBS="$am_save_LIBS" 26082 fi 26083 26084fi 26085echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 26086echo "${ECHO_T}$am_cv_func_iconv" >&6 26087 if test "$am_cv_func_iconv" = yes; then 26088 26089cat >>confdefs.h <<\_ACEOF 26090#define HAVE_ICONV 1 26091_ACEOF 26092 26093 fi 26094 if test "$am_cv_lib_iconv" = yes; then 26095 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 26096echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 26097 echo "$as_me:$LINENO: result: $LIBICONV" >&5 26098echo "${ECHO_T}$LIBICONV" >&6 26099 else 26100 CPPFLAGS="$am_save_CPPFLAGS" 26101 LIBICONV= 26102 LTLIBICONV= 26103 fi 26104 26105 26106 26107 26108 26109 26110 use_additional=yes 26111 26112 acl_save_prefix="$prefix" 26113 prefix="$acl_final_prefix" 26114 acl_save_exec_prefix="$exec_prefix" 26115 exec_prefix="$acl_final_exec_prefix" 26116 26117 eval additional_includedir=\"$includedir\" 26118 eval additional_libdir=\"$libdir\" 26119 26120 exec_prefix="$acl_save_exec_prefix" 26121 prefix="$acl_save_prefix" 26122 26123 26124# Check whether --with-libintl-prefix or --without-libintl-prefix was given. 26125if test "${with_libintl_prefix+set}" = set; then 26126 withval="$with_libintl_prefix" 26127 26128 if test "X$withval" = "Xno"; then 26129 use_additional=no 26130 else 26131 if test "X$withval" = "X"; then 26132 26133 acl_save_prefix="$prefix" 26134 prefix="$acl_final_prefix" 26135 acl_save_exec_prefix="$exec_prefix" 26136 exec_prefix="$acl_final_exec_prefix" 26137 26138 eval additional_includedir=\"$includedir\" 26139 eval additional_libdir=\"$libdir\" 26140 26141 exec_prefix="$acl_save_exec_prefix" 26142 prefix="$acl_save_prefix" 26143 26144 else 26145 additional_includedir="$withval/include" 26146 additional_libdir="$withval/lib" 26147 fi 26148 fi 26149 26150fi; 26151 LIBINTL= 26152 LTLIBINTL= 26153 INCINTL= 26154 rpathdirs= 26155 ltrpathdirs= 26156 names_already_handled= 26157 names_next_round='intl ' 26158 while test -n "$names_next_round"; do 26159 names_this_round="$names_next_round" 26160 names_next_round= 26161 for name in $names_this_round; do 26162 already_handled= 26163 for n in $names_already_handled; do 26164 if test "$n" = "$name"; then 26165 already_handled=yes 26166 break 26167 fi 26168 done 26169 if test -z "$already_handled"; then 26170 names_already_handled="$names_already_handled $name" 26171 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 26172 eval value=\"\$HAVE_LIB$uppername\" 26173 if test -n "$value"; then 26174 if test "$value" = yes; then 26175 eval value=\"\$LIB$uppername\" 26176 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 26177 eval value=\"\$LTLIB$uppername\" 26178 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 26179 else 26180 : 26181 fi 26182 else 26183 found_dir= 26184 found_la= 26185 found_so= 26186 found_a= 26187 if test $use_additional = yes; then 26188 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 26189 found_dir="$additional_libdir" 26190 found_so="$additional_libdir/lib$name.$shlibext" 26191 if test -f "$additional_libdir/lib$name.la"; then 26192 found_la="$additional_libdir/lib$name.la" 26193 fi 26194 else 26195 if test -f "$additional_libdir/lib$name.$libext"; then 26196 found_dir="$additional_libdir" 26197 found_a="$additional_libdir/lib$name.$libext" 26198 if test -f "$additional_libdir/lib$name.la"; then 26199 found_la="$additional_libdir/lib$name.la" 26200 fi 26201 fi 26202 fi 26203 fi 26204 if test "X$found_dir" = "X"; then 26205 for x in $LDFLAGS $LTLIBINTL; do 26206 26207 acl_save_prefix="$prefix" 26208 prefix="$acl_final_prefix" 26209 acl_save_exec_prefix="$exec_prefix" 26210 exec_prefix="$acl_final_exec_prefix" 26211 eval x=\"$x\" 26212 exec_prefix="$acl_save_exec_prefix" 26213 prefix="$acl_save_prefix" 26214 26215 case "$x" in 26216 -L*) 26217 dir=`echo "X$x" | sed -e 's/^X-L//'` 26218 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 26219 found_dir="$dir" 26220 found_so="$dir/lib$name.$shlibext" 26221 if test -f "$dir/lib$name.la"; then 26222 found_la="$dir/lib$name.la" 26223 fi 26224 else 26225 if test -f "$dir/lib$name.$libext"; then 26226 found_dir="$dir" 26227 found_a="$dir/lib$name.$libext" 26228 if test -f "$dir/lib$name.la"; then 26229 found_la="$dir/lib$name.la" 26230 fi 26231 fi 26232 fi 26233 ;; 26234 esac 26235 if test "X$found_dir" != "X"; then 26236 break 26237 fi 26238 done 26239 fi 26240 if test "X$found_dir" != "X"; then 26241 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 26242 if test "X$found_so" != "X"; then 26243 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 26244 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 26245 else 26246 haveit= 26247 for x in $ltrpathdirs; do 26248 if test "X$x" = "X$found_dir"; then 26249 haveit=yes 26250 break 26251 fi 26252 done 26253 if test -z "$haveit"; then 26254 ltrpathdirs="$ltrpathdirs $found_dir" 26255 fi 26256 if test "$hardcode_direct" = yes; then 26257 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 26258 else 26259 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 26260 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 26261 haveit= 26262 for x in $rpathdirs; do 26263 if test "X$x" = "X$found_dir"; then 26264 haveit=yes 26265 break 26266 fi 26267 done 26268 if test -z "$haveit"; then 26269 rpathdirs="$rpathdirs $found_dir" 26270 fi 26271 else 26272 haveit= 26273 for x in $LDFLAGS $LIBINTL; do 26274 26275 acl_save_prefix="$prefix" 26276 prefix="$acl_final_prefix" 26277 acl_save_exec_prefix="$exec_prefix" 26278 exec_prefix="$acl_final_exec_prefix" 26279 eval x=\"$x\" 26280 exec_prefix="$acl_save_exec_prefix" 26281 prefix="$acl_save_prefix" 26282 26283 if test "X$x" = "X-L$found_dir"; then 26284 haveit=yes 26285 break 26286 fi 26287 done 26288 if test -z "$haveit"; then 26289 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 26290 fi 26291 if test "$hardcode_minus_L" != no; then 26292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 26293 else 26294 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 26295 fi 26296 fi 26297 fi 26298 fi 26299 else 26300 if test "X$found_a" != "X"; then 26301 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 26302 else 26303 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 26304 fi 26305 fi 26306 additional_includedir= 26307 case "$found_dir" in 26308 */lib | */lib/) 26309 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 26310 additional_includedir="$basedir/include" 26311 ;; 26312 esac 26313 if test "X$additional_includedir" != "X"; then 26314 if test "X$additional_includedir" != "X/usr/include"; then 26315 haveit= 26316 if test "X$additional_includedir" = "X/usr/local/include"; then 26317 if test -n "$GCC"; then 26318 case $host_os in 26319 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 26320 esac 26321 fi 26322 fi 26323 if test -z "$haveit"; then 26324 for x in $CPPFLAGS $INCINTL; do 26325 26326 acl_save_prefix="$prefix" 26327 prefix="$acl_final_prefix" 26328 acl_save_exec_prefix="$exec_prefix" 26329 exec_prefix="$acl_final_exec_prefix" 26330 eval x=\"$x\" 26331 exec_prefix="$acl_save_exec_prefix" 26332 prefix="$acl_save_prefix" 26333 26334 if test "X$x" = "X-I$additional_includedir"; then 26335 haveit=yes 26336 break 26337 fi 26338 done 26339 if test -z "$haveit"; then 26340 if test -d "$additional_includedir"; then 26341 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 26342 fi 26343 fi 26344 fi 26345 fi 26346 fi 26347 if test -n "$found_la"; then 26348 save_libdir="$libdir" 26349 case "$found_la" in 26350 */* | *\\*) . "$found_la" ;; 26351 *) . "./$found_la" ;; 26352 esac 26353 libdir="$save_libdir" 26354 for dep in $dependency_libs; do 26355 case "$dep" in 26356 -L*) 26357 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 26358 if test "X$additional_libdir" != "X/usr/lib"; then 26359 haveit= 26360 if test "X$additional_libdir" = "X/usr/local/lib"; then 26361 if test -n "$GCC"; then 26362 case $host_os in 26363 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 26364 esac 26365 fi 26366 fi 26367 if test -z "$haveit"; then 26368 haveit= 26369 for x in $LDFLAGS $LIBINTL; do 26370 26371 acl_save_prefix="$prefix" 26372 prefix="$acl_final_prefix" 26373 acl_save_exec_prefix="$exec_prefix" 26374 exec_prefix="$acl_final_exec_prefix" 26375 eval x=\"$x\" 26376 exec_prefix="$acl_save_exec_prefix" 26377 prefix="$acl_save_prefix" 26378 26379 if test "X$x" = "X-L$additional_libdir"; then 26380 haveit=yes 26381 break 26382 fi 26383 done 26384 if test -z "$haveit"; then 26385 if test -d "$additional_libdir"; then 26386 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 26387 fi 26388 fi 26389 haveit= 26390 for x in $LDFLAGS $LTLIBINTL; do 26391 26392 acl_save_prefix="$prefix" 26393 prefix="$acl_final_prefix" 26394 acl_save_exec_prefix="$exec_prefix" 26395 exec_prefix="$acl_final_exec_prefix" 26396 eval x=\"$x\" 26397 exec_prefix="$acl_save_exec_prefix" 26398 prefix="$acl_save_prefix" 26399 26400 if test "X$x" = "X-L$additional_libdir"; then 26401 haveit=yes 26402 break 26403 fi 26404 done 26405 if test -z "$haveit"; then 26406 if test -d "$additional_libdir"; then 26407 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 26408 fi 26409 fi 26410 fi 26411 fi 26412 ;; 26413 -R*) 26414 dir=`echo "X$dep" | sed -e 's/^X-R//'` 26415 if test "$enable_rpath" != no; then 26416 haveit= 26417 for x in $rpathdirs; do 26418 if test "X$x" = "X$dir"; then 26419 haveit=yes 26420 break 26421 fi 26422 done 26423 if test -z "$haveit"; then 26424 rpathdirs="$rpathdirs $dir" 26425 fi 26426 haveit= 26427 for x in $ltrpathdirs; do 26428 if test "X$x" = "X$dir"; then 26429 haveit=yes 26430 break 26431 fi 26432 done 26433 if test -z "$haveit"; then 26434 ltrpathdirs="$ltrpathdirs $dir" 26435 fi 26436 fi 26437 ;; 26438 -l*) 26439 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 26440 ;; 26441 *.la) 26442 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 26443 ;; 26444 *) 26445 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 26446 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 26447 ;; 26448 esac 26449 done 26450 fi 26451 else 26452 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 26453 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 26454 fi 26455 fi 26456 fi 26457 done 26458 done 26459 if test "X$rpathdirs" != "X"; then 26460 if test -n "$hardcode_libdir_separator"; then 26461 alldirs= 26462 for found_dir in $rpathdirs; do 26463 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 26464 done 26465 acl_save_libdir="$libdir" 26466 libdir="$alldirs" 26467 eval flag=\"$hardcode_libdir_flag_spec\" 26468 libdir="$acl_save_libdir" 26469 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 26470 else 26471 for found_dir in $rpathdirs; do 26472 acl_save_libdir="$libdir" 26473 libdir="$found_dir" 26474 eval flag=\"$hardcode_libdir_flag_spec\" 26475 libdir="$acl_save_libdir" 26476 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 26477 done 26478 fi 26479 fi 26480 if test "X$ltrpathdirs" != "X"; then 26481 for found_dir in $ltrpathdirs; do 26482 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 26483 done 26484 fi 26485 26486 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 26487echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 26488if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 26489 echo $ECHO_N "(cached) $ECHO_C" >&6 26490else 26491 gt_save_CPPFLAGS="$CPPFLAGS" 26492 CPPFLAGS="$CPPFLAGS $INCINTL" 26493 gt_save_LIBS="$LIBS" 26494 LIBS="$LIBS $LIBINTL" 26495 cat >conftest.$ac_ext <<_ACEOF 26496/* confdefs.h. */ 26497_ACEOF 26498cat confdefs.h >>conftest.$ac_ext 26499cat >>conftest.$ac_ext <<_ACEOF 26500/* end confdefs.h. */ 26501#include <libintl.h> 26502extern int _nl_msg_cat_cntr; 26503extern 26504#ifdef __cplusplus 26505"C" 26506#endif 26507const char *_nl_expand_alias (const char *); 26508int 26509main () 26510{ 26511bindtextdomain ("", ""); 26512return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 26513 ; 26514 return 0; 26515} 26516_ACEOF 26517rm -f conftest.$ac_objext conftest$ac_exeext 26518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26519 (eval $ac_link) 2>conftest.er1 26520 ac_status=$? 26521 grep -v '^ *+' conftest.er1 >conftest.err 26522 rm -f conftest.er1 26523 cat conftest.err >&5 26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26525 (exit $ac_status); } && 26526 { ac_try='test -z "$ac_c_werror_flag" 26527 || test ! -s conftest.err' 26528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26529 (eval $ac_try) 2>&5 26530 ac_status=$? 26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26532 (exit $ac_status); }; } && 26533 { ac_try='test -s conftest$ac_exeext' 26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26535 (eval $ac_try) 2>&5 26536 ac_status=$? 26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26538 (exit $ac_status); }; }; then 26539 gt_cv_func_gnugettext1_libintl=yes 26540else 26541 echo "$as_me: failed program was:" >&5 26542sed 's/^/| /' conftest.$ac_ext >&5 26543 26544gt_cv_func_gnugettext1_libintl=no 26545fi 26546rm -f conftest.err conftest.$ac_objext \ 26547 conftest$ac_exeext conftest.$ac_ext 26548 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 26549 LIBS="$LIBS $LIBICONV" 26550 cat >conftest.$ac_ext <<_ACEOF 26551/* confdefs.h. */ 26552_ACEOF 26553cat confdefs.h >>conftest.$ac_ext 26554cat >>conftest.$ac_ext <<_ACEOF 26555/* end confdefs.h. */ 26556#include <libintl.h> 26557extern int _nl_msg_cat_cntr; 26558extern 26559#ifdef __cplusplus 26560"C" 26561#endif 26562const char *_nl_expand_alias (const char *); 26563int 26564main () 26565{ 26566bindtextdomain ("", ""); 26567return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 26568 ; 26569 return 0; 26570} 26571_ACEOF 26572rm -f conftest.$ac_objext conftest$ac_exeext 26573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26574 (eval $ac_link) 2>conftest.er1 26575 ac_status=$? 26576 grep -v '^ *+' conftest.er1 >conftest.err 26577 rm -f conftest.er1 26578 cat conftest.err >&5 26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26580 (exit $ac_status); } && 26581 { ac_try='test -z "$ac_c_werror_flag" 26582 || test ! -s conftest.err' 26583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26584 (eval $ac_try) 2>&5 26585 ac_status=$? 26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26587 (exit $ac_status); }; } && 26588 { ac_try='test -s conftest$ac_exeext' 26589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26590 (eval $ac_try) 2>&5 26591 ac_status=$? 26592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26593 (exit $ac_status); }; }; then 26594 LIBINTL="$LIBINTL $LIBICONV" 26595 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 26596 gt_cv_func_gnugettext1_libintl=yes 26597 26598else 26599 echo "$as_me: failed program was:" >&5 26600sed 's/^/| /' conftest.$ac_ext >&5 26601 26602fi 26603rm -f conftest.err conftest.$ac_objext \ 26604 conftest$ac_exeext conftest.$ac_ext 26605 fi 26606 CPPFLAGS="$gt_save_CPPFLAGS" 26607 LIBS="$gt_save_LIBS" 26608fi 26609echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 26610echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 26611 fi 26612 26613 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 26614 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 26615 && test "$PACKAGE" != gettext-runtime \ 26616 && test "$PACKAGE" != gettext-tools; }; then 26617 gt_use_preinstalled_gnugettext=yes 26618 else 26619 LIBINTL= 26620 LTLIBINTL= 26621 INCINTL= 26622 fi 26623 26624 26625 26626 if test -n "$INTL_MACOSX_LIBS"; then 26627 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 26628 || test "$nls_cv_use_gnu_gettext" = "yes"; then 26629 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 26630 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 26631 fi 26632 fi 26633 26634 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 26635 || test "$nls_cv_use_gnu_gettext" = "yes"; then 26636 26637cat >>confdefs.h <<\_ACEOF 26638#define ENABLE_NLS 1 26639_ACEOF 26640 26641 else 26642 USE_NLS=no 26643 fi 26644 fi 26645 26646 echo "$as_me:$LINENO: checking whether to use NLS" >&5 26647echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 26648 echo "$as_me:$LINENO: result: $USE_NLS" >&5 26649echo "${ECHO_T}$USE_NLS" >&6 26650 if test "$USE_NLS" = "yes"; then 26651 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 26652echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 26653 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 26654 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 26655 gt_source="external libintl" 26656 else 26657 gt_source="libc" 26658 fi 26659 else 26660 gt_source="included intl directory" 26661 fi 26662 echo "$as_me:$LINENO: result: $gt_source" >&5 26663echo "${ECHO_T}$gt_source" >&6 26664 fi 26665 26666 if test "$USE_NLS" = "yes"; then 26667 26668 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 26669 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 26670 echo "$as_me:$LINENO: checking how to link with libintl" >&5 26671echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 26672 echo "$as_me:$LINENO: result: $LIBINTL" >&5 26673echo "${ECHO_T}$LIBINTL" >&6 26674 26675 for element in $INCINTL; do 26676 haveit= 26677 for x in $CPPFLAGS; do 26678 26679 acl_save_prefix="$prefix" 26680 prefix="$acl_final_prefix" 26681 acl_save_exec_prefix="$exec_prefix" 26682 exec_prefix="$acl_final_exec_prefix" 26683 eval x=\"$x\" 26684 exec_prefix="$acl_save_exec_prefix" 26685 prefix="$acl_save_prefix" 26686 26687 if test "X$x" = "X$element"; then 26688 haveit=yes 26689 break 26690 fi 26691 done 26692 if test -z "$haveit"; then 26693 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 26694 fi 26695 done 26696 26697 fi 26698 26699 26700cat >>confdefs.h <<\_ACEOF 26701#define HAVE_GETTEXT 1 26702_ACEOF 26703 26704 26705cat >>confdefs.h <<\_ACEOF 26706#define HAVE_DCGETTEXT 1 26707_ACEOF 26708 26709 fi 26710 26711 POSUB=po 26712 fi 26713 26714 26715 26716 INTLLIBS="$LIBINTL" 26717 26718 26719 26720 26721 26722 26723 26724 ac_config_files="$ac_config_files src/normalize-mp3" 26725 26726 ac_config_files="$ac_config_files Makefile doc/Makefile doc/fr/Makefile po/Makefile.in src/Makefile nid3lib/Makefile xmms-rva/Makefile test/Makefile" 26727 26728cat >confcache <<\_ACEOF 26729# This file is a shell script that caches the results of configure 26730# tests run on this system so they can be shared between configure 26731# scripts and configure runs, see configure's option --config-cache. 26732# It is not useful on other systems. If it contains results you don't 26733# want to keep, you may remove or edit it. 26734# 26735# config.status only pays attention to the cache file if you give it 26736# the --recheck option to rerun configure. 26737# 26738# `ac_cv_env_foo' variables (set or unset) will be overridden when 26739# loading this file, other *unset* `ac_cv_foo' will be assigned the 26740# following values. 26741 26742_ACEOF 26743 26744# The following way of writing the cache mishandles newlines in values, 26745# but we know of no workaround that is simple, portable, and efficient. 26746# So, don't put newlines in cache variables' values. 26747# Ultrix sh set writes to stderr and can't be redirected directly, 26748# and sets the high bit in the cache file unless we assign to the vars. 26749{ 26750 (set) 2>&1 | 26751 case `(ac_space=' '; set | grep ac_space) 2>&1` in 26752 *ac_space=\ *) 26753 # `set' does not quote correctly, so add quotes (double-quote 26754 # substitution turns \\\\ into \\, and sed turns \\ into \). 26755 sed -n \ 26756 "s/'/'\\\\''/g; 26757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26758 ;; 26759 *) 26760 # `set' quotes correctly as required by POSIX, so do not add quotes. 26761 sed -n \ 26762 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 26763 ;; 26764 esac; 26765} | 26766 sed ' 26767 t clear 26768 : clear 26769 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 26770 t end 26771 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26772 : end' >>confcache 26773if diff $cache_file confcache >/dev/null 2>&1; then :; else 26774 if test -w $cache_file; then 26775 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 26776 cat confcache >$cache_file 26777 else 26778 echo "not updating unwritable cache $cache_file" 26779 fi 26780fi 26781rm -f confcache 26782 26783test "x$prefix" = xNONE && prefix=$ac_default_prefix 26784# Let make expand exec_prefix. 26785test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 26786 26787# VPATH may cause trouble with some makes, so we remove $(srcdir), 26788# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 26789# trailing colons and then remove the whole line if VPATH becomes empty 26790# (actually we leave an empty line to preserve line numbers). 26791if test "x$srcdir" = x.; then 26792 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 26793s/:*\$(srcdir):*/:/; 26794s/:*\${srcdir}:*/:/; 26795s/:*@srcdir@:*/:/; 26796s/^\([^=]*=[ ]*\):*/\1/; 26797s/:*$//; 26798s/^[^=]*=[ ]*$//; 26799}' 26800fi 26801 26802DEFS=-DHAVE_CONFIG_H 26803 26804ac_libobjs= 26805ac_ltlibobjs= 26806for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 26807 # 1. Remove the extension, and $U if already installed. 26808 ac_i=`echo "$ac_i" | 26809 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 26810 # 2. Add them. 26811 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 26812 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 26813done 26814LIBOBJS=$ac_libobjs 26815 26816LTLIBOBJS=$ac_ltlibobjs 26817 26818 26819if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 26820 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 26821Usually this means the macro was only invoked conditionally." >&5 26822echo "$as_me: error: conditional \"AMDEP\" was never defined. 26823Usually this means the macro was only invoked conditionally." >&2;} 26824 { (exit 1); exit 1; }; } 26825fi 26826if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 26827 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 26828Usually this means the macro was only invoked conditionally." >&5 26829echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 26830Usually this means the macro was only invoked conditionally." >&2;} 26831 { (exit 1); exit 1; }; } 26832fi 26833if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 26834 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 26835Usually this means the macro was only invoked conditionally." >&5 26836echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 26837Usually this means the macro was only invoked conditionally." >&2;} 26838 { (exit 1); exit 1; }; } 26839fi 26840if test -z "${AUDIOFILE_TRUE}" && test -z "${AUDIOFILE_FALSE}"; then 26841 { { echo "$as_me:$LINENO: error: conditional \"AUDIOFILE\" was never defined. 26842Usually this means the macro was only invoked conditionally." >&5 26843echo "$as_me: error: conditional \"AUDIOFILE\" was never defined. 26844Usually this means the macro was only invoked conditionally." >&2;} 26845 { (exit 1); exit 1; }; } 26846fi 26847if test -z "${MAD_TRUE}" && test -z "${MAD_FALSE}"; then 26848 { { echo "$as_me:$LINENO: error: conditional \"MAD\" was never defined. 26849Usually this means the macro was only invoked conditionally." >&5 26850echo "$as_me: error: conditional \"MAD\" was never defined. 26851Usually this means the macro was only invoked conditionally." >&2;} 26852 { (exit 1); exit 1; }; } 26853fi 26854 26855: ${CONFIG_STATUS=./config.status} 26856ac_clean_files_save=$ac_clean_files 26857ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26858{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 26859echo "$as_me: creating $CONFIG_STATUS" >&6;} 26860cat >$CONFIG_STATUS <<_ACEOF 26861#! $SHELL 26862# Generated by $as_me. 26863# Run this file to recreate the current configuration. 26864# Compiler output produced by configure, useful for debugging 26865# configure, is in config.log if it exists. 26866 26867debug=false 26868ac_cs_recheck=false 26869ac_cs_silent=false 26870SHELL=\${CONFIG_SHELL-$SHELL} 26871_ACEOF 26872 26873cat >>$CONFIG_STATUS <<\_ACEOF 26874## --------------------- ## 26875## M4sh Initialization. ## 26876## --------------------- ## 26877 26878# Be Bourne compatible 26879if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 26880 emulate sh 26881 NULLCMD=: 26882 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 26883 # is contrary to our usage. Disable this feature. 26884 alias -g '${1+"$@"}'='"$@"' 26885elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 26886 set -o posix 26887fi 26888DUALCASE=1; export DUALCASE # for MKS sh 26889 26890# Support unset when possible. 26891if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26892 as_unset=unset 26893else 26894 as_unset=false 26895fi 26896 26897 26898# Work around bugs in pre-3.0 UWIN ksh. 26899$as_unset ENV MAIL MAILPATH 26900PS1='$ ' 26901PS2='> ' 26902PS4='+ ' 26903 26904# NLS nuisances. 26905for as_var in \ 26906 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 26907 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 26908 LC_TELEPHONE LC_TIME 26909do 26910 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 26911 eval $as_var=C; export $as_var 26912 else 26913 $as_unset $as_var 26914 fi 26915done 26916 26917# Required to use basename. 26918if expr a : '\(a\)' >/dev/null 2>&1; then 26919 as_expr=expr 26920else 26921 as_expr=false 26922fi 26923 26924if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 26925 as_basename=basename 26926else 26927 as_basename=false 26928fi 26929 26930 26931# Name of the executable. 26932as_me=`$as_basename "$0" || 26933$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26934 X"$0" : 'X\(//\)$' \| \ 26935 X"$0" : 'X\(/\)$' \| \ 26936 . : '\(.\)' 2>/dev/null || 26937echo X/"$0" | 26938 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 26939 /^X\/\(\/\/\)$/{ s//\1/; q; } 26940 /^X\/\(\/\).*/{ s//\1/; q; } 26941 s/.*/./; q'` 26942 26943 26944# PATH needs CR, and LINENO needs CR and PATH. 26945# Avoid depending upon Character Ranges. 26946as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26947as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26948as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26949as_cr_digits='0123456789' 26950as_cr_alnum=$as_cr_Letters$as_cr_digits 26951 26952# The user is always right. 26953if test "${PATH_SEPARATOR+set}" != set; then 26954 echo "#! /bin/sh" >conf$$.sh 26955 echo "exit 0" >>conf$$.sh 26956 chmod +x conf$$.sh 26957 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 26958 PATH_SEPARATOR=';' 26959 else 26960 PATH_SEPARATOR=: 26961 fi 26962 rm -f conf$$.sh 26963fi 26964 26965 26966 as_lineno_1=$LINENO 26967 as_lineno_2=$LINENO 26968 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 26969 test "x$as_lineno_1" != "x$as_lineno_2" && 26970 test "x$as_lineno_3" = "x$as_lineno_2" || { 26971 # Find who we are. Look in the path if we contain no path at all 26972 # relative or not. 26973 case $0 in 26974 *[\\/]* ) as_myself=$0 ;; 26975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26976for as_dir in $PATH 26977do 26978 IFS=$as_save_IFS 26979 test -z "$as_dir" && as_dir=. 26980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26981done 26982 26983 ;; 26984 esac 26985 # We did not find ourselves, most probably we were run as `sh COMMAND' 26986 # in which case we are not to be found in the path. 26987 if test "x$as_myself" = x; then 26988 as_myself=$0 26989 fi 26990 if test ! -f "$as_myself"; then 26991 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 26992echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 26993 { (exit 1); exit 1; }; } 26994 fi 26995 case $CONFIG_SHELL in 26996 '') 26997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26998for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 26999do 27000 IFS=$as_save_IFS 27001 test -z "$as_dir" && as_dir=. 27002 for as_base in sh bash ksh sh5; do 27003 case $as_dir in 27004 /*) 27005 if ("$as_dir/$as_base" -c ' 27006 as_lineno_1=$LINENO 27007 as_lineno_2=$LINENO 27008 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 27009 test "x$as_lineno_1" != "x$as_lineno_2" && 27010 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 27011 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 27012 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 27013 CONFIG_SHELL=$as_dir/$as_base 27014 export CONFIG_SHELL 27015 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 27016 fi;; 27017 esac 27018 done 27019done 27020;; 27021 esac 27022 27023 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 27024 # uniformly replaced by the line number. The first 'sed' inserts a 27025 # line-number line before each line; the second 'sed' does the real 27026 # work. The second script uses 'N' to pair each line-number line 27027 # with the numbered line, and appends trailing '-' during 27028 # substitution so that $LINENO is not a special case at line end. 27029 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 27030 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 27031 sed '=' <$as_myself | 27032 sed ' 27033 N 27034 s,$,-, 27035 : loop 27036 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 27037 t loop 27038 s,-$,, 27039 s,^['$as_cr_digits']*\n,, 27040 ' >$as_me.lineno && 27041 chmod +x $as_me.lineno || 27042 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 27043echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 27044 { (exit 1); exit 1; }; } 27045 27046 # Don't try to exec as it changes $[0], causing all sort of problems 27047 # (the dirname of $[0] is not the place where we might find the 27048 # original and so on. Autoconf is especially sensible to this). 27049 . ./$as_me.lineno 27050 # Exit status is that of the last command. 27051 exit 27052} 27053 27054 27055case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 27056 *c*,-n*) ECHO_N= ECHO_C=' 27057' ECHO_T=' ' ;; 27058 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 27059 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 27060esac 27061 27062if expr a : '\(a\)' >/dev/null 2>&1; then 27063 as_expr=expr 27064else 27065 as_expr=false 27066fi 27067 27068rm -f conf$$ conf$$.exe conf$$.file 27069echo >conf$$.file 27070if ln -s conf$$.file conf$$ 2>/dev/null; then 27071 # We could just check for DJGPP; but this test a) works b) is more generic 27072 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 27073 if test -f conf$$.exe; then 27074 # Don't use ln at all; we don't have any links 27075 as_ln_s='cp -p' 27076 else 27077 as_ln_s='ln -s' 27078 fi 27079elif ln conf$$.file conf$$ 2>/dev/null; then 27080 as_ln_s=ln 27081else 27082 as_ln_s='cp -p' 27083fi 27084rm -f conf$$ conf$$.exe conf$$.file 27085 27086if mkdir -p . 2>/dev/null; then 27087 as_mkdir_p=: 27088else 27089 test -d ./-p && rmdir ./-p 27090 as_mkdir_p=false 27091fi 27092 27093as_executable_p="test -f" 27094 27095# Sed expression to map a string onto a valid CPP name. 27096as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27097 27098# Sed expression to map a string onto a valid variable name. 27099as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27100 27101 27102# IFS 27103# We need space, tab and new line, in precisely that order. 27104as_nl=' 27105' 27106IFS=" $as_nl" 27107 27108# CDPATH. 27109$as_unset CDPATH 27110 27111exec 6>&1 27112 27113# Open the log real soon, to keep \$[0] and so on meaningful, and to 27114# report actual input values of CONFIG_FILES etc. instead of their 27115# values after options handling. Logging --version etc. is OK. 27116exec 5>>config.log 27117{ 27118 echo 27119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27120## Running $as_me. ## 27121_ASBOX 27122} >&5 27123cat >&5 <<_CSEOF 27124 27125This file was extended by normalize $as_me 0.7.7, which was 27126generated by GNU Autoconf 2.59. Invocation command line was 27127 27128 CONFIG_FILES = $CONFIG_FILES 27129 CONFIG_HEADERS = $CONFIG_HEADERS 27130 CONFIG_LINKS = $CONFIG_LINKS 27131 CONFIG_COMMANDS = $CONFIG_COMMANDS 27132 $ $0 $@ 27133 27134_CSEOF 27135echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 27136echo >&5 27137_ACEOF 27138 27139# Files that config.status was made for. 27140if test -n "$ac_config_files"; then 27141 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 27142fi 27143 27144if test -n "$ac_config_headers"; then 27145 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 27146fi 27147 27148if test -n "$ac_config_links"; then 27149 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 27150fi 27151 27152if test -n "$ac_config_commands"; then 27153 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 27154fi 27155 27156cat >>$CONFIG_STATUS <<\_ACEOF 27157 27158ac_cs_usage="\ 27159\`$as_me' instantiates files from templates according to the 27160current configuration. 27161 27162Usage: $0 [OPTIONS] [FILE]... 27163 27164 -h, --help print this help, then exit 27165 -V, --version print version number, then exit 27166 -q, --quiet do not print progress messages 27167 -d, --debug don't remove temporary files 27168 --recheck update $as_me by reconfiguring in the same conditions 27169 --file=FILE[:TEMPLATE] 27170 instantiate the configuration file FILE 27171 --header=FILE[:TEMPLATE] 27172 instantiate the configuration header FILE 27173 27174Configuration files: 27175$config_files 27176 27177Configuration headers: 27178$config_headers 27179 27180Configuration commands: 27181$config_commands 27182 27183Report bugs to <bug-autoconf@gnu.org>." 27184_ACEOF 27185 27186cat >>$CONFIG_STATUS <<_ACEOF 27187ac_cs_version="\\ 27188normalize config.status 0.7.7 27189configured by $0, generated by GNU Autoconf 2.59, 27190 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 27191 27192Copyright (C) 2003 Free Software Foundation, Inc. 27193This config.status script is free software; the Free Software Foundation 27194gives unlimited permission to copy, distribute and modify it." 27195srcdir=$srcdir 27196INSTALL="$INSTALL" 27197_ACEOF 27198 27199cat >>$CONFIG_STATUS <<\_ACEOF 27200# If no file are specified by the user, then we need to provide default 27201# value. By we need to know if files were specified by the user. 27202ac_need_defaults=: 27203while test $# != 0 27204do 27205 case $1 in 27206 --*=*) 27207 ac_option=`expr "x$1" : 'x\([^=]*\)='` 27208 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 27209 ac_shift=: 27210 ;; 27211 -*) 27212 ac_option=$1 27213 ac_optarg=$2 27214 ac_shift=shift 27215 ;; 27216 *) # This is not an option, so the user has probably given explicit 27217 # arguments. 27218 ac_option=$1 27219 ac_need_defaults=false;; 27220 esac 27221 27222 case $ac_option in 27223 # Handling of the options. 27224_ACEOF 27225cat >>$CONFIG_STATUS <<\_ACEOF 27226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27227 ac_cs_recheck=: ;; 27228 --version | --vers* | -V ) 27229 echo "$ac_cs_version"; exit 0 ;; 27230 --he | --h) 27231 # Conflict between --help and --header 27232 { { echo "$as_me:$LINENO: error: ambiguous option: $1 27233Try \`$0 --help' for more information." >&5 27234echo "$as_me: error: ambiguous option: $1 27235Try \`$0 --help' for more information." >&2;} 27236 { (exit 1); exit 1; }; };; 27237 --help | --hel | -h ) 27238 echo "$ac_cs_usage"; exit 0 ;; 27239 --debug | --d* | -d ) 27240 debug=: ;; 27241 --file | --fil | --fi | --f ) 27242 $ac_shift 27243 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 27244 ac_need_defaults=false;; 27245 --header | --heade | --head | --hea ) 27246 $ac_shift 27247 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 27248 ac_need_defaults=false;; 27249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27250 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27251 ac_cs_silent=: ;; 27252 27253 # This is an error. 27254 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 27255Try \`$0 --help' for more information." >&5 27256echo "$as_me: error: unrecognized option: $1 27257Try \`$0 --help' for more information." >&2;} 27258 { (exit 1); exit 1; }; } ;; 27259 27260 *) ac_config_targets="$ac_config_targets $1" ;; 27261 27262 esac 27263 shift 27264done 27265 27266ac_configure_extra_args= 27267 27268if $ac_cs_silent; then 27269 exec 6>/dev/null 27270 ac_configure_extra_args="$ac_configure_extra_args --silent" 27271fi 27272 27273_ACEOF 27274cat >>$CONFIG_STATUS <<_ACEOF 27275if \$ac_cs_recheck; then 27276 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 27277 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27278fi 27279 27280_ACEOF 27281 27282cat >>$CONFIG_STATUS <<_ACEOF 27283# 27284# INIT-COMMANDS section. 27285# 27286 27287AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 27288# Capture the value of obsolete ALL_LINGUAS because we need it to compute 27289 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 27290 # from automake. 27291 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 27292 # Capture the value of LINGUAS because we need it to compute CATALOGS. 27293 LINGUAS="${LINGUAS-%UNSET%}" 27294 27295 27296_ACEOF 27297 27298 27299 27300cat >>$CONFIG_STATUS <<\_ACEOF 27301for ac_config_target in $ac_config_targets 27302do 27303 case "$ac_config_target" in 27304 # Handling of arguments. 27305 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 27306 "src/normalize-mp3" ) CONFIG_FILES="$CONFIG_FILES src/normalize-mp3" ;; 27307 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 27308 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 27309 "doc/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/fr/Makefile" ;; 27310 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 27311 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 27312 "nid3lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nid3lib/Makefile" ;; 27313 "xmms-rva/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmms-rva/Makefile" ;; 27314 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 27315 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 27316 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 27317 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 27318 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 27319echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 27320 { (exit 1); exit 1; }; };; 27321 esac 27322done 27323 27324# If the user did not use the arguments to specify the items to instantiate, 27325# then the envvar interface is used. Set only those that are not. 27326# We use the long form for the default assignment because of an extremely 27327# bizarre bug on SunOS 4.1.3. 27328if $ac_need_defaults; then 27329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 27330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 27331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 27332fi 27333 27334# Have a temporary directory for convenience. Make it in the build tree 27335# simply because there is no reason to put it here, and in addition, 27336# creating and moving files from /tmp can sometimes cause problems. 27337# Create a temporary directory, and hook for its removal unless debugging. 27338$debug || 27339{ 27340 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 27341 trap '{ (exit 1); exit 1; }' 1 2 13 15 27342} 27343 27344# Create a (secure) tmp directory for tmp files. 27345 27346{ 27347 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 27348 test -n "$tmp" && test -d "$tmp" 27349} || 27350{ 27351 tmp=./confstat$$-$RANDOM 27352 (umask 077 && mkdir $tmp) 27353} || 27354{ 27355 echo "$me: cannot create a temporary directory in ." >&2 27356 { (exit 1); exit 1; } 27357} 27358 27359_ACEOF 27360 27361cat >>$CONFIG_STATUS <<_ACEOF 27362 27363# 27364# CONFIG_FILES section. 27365# 27366 27367# No need to generate the scripts if there are no CONFIG_FILES. 27368# This happens for instance when ./config.status config.h 27369if test -n "\$CONFIG_FILES"; then 27370 # Protect against being on the right side of a sed subst in config.status. 27371 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 27372 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 27373s,@SHELL@,$SHELL,;t t 27374s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 27375s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 27376s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 27377s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 27378s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 27379s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 27380s,@exec_prefix@,$exec_prefix,;t t 27381s,@prefix@,$prefix,;t t 27382s,@program_transform_name@,$program_transform_name,;t t 27383s,@bindir@,$bindir,;t t 27384s,@sbindir@,$sbindir,;t t 27385s,@libexecdir@,$libexecdir,;t t 27386s,@datadir@,$datadir,;t t 27387s,@sysconfdir@,$sysconfdir,;t t 27388s,@sharedstatedir@,$sharedstatedir,;t t 27389s,@localstatedir@,$localstatedir,;t t 27390s,@libdir@,$libdir,;t t 27391s,@includedir@,$includedir,;t t 27392s,@oldincludedir@,$oldincludedir,;t t 27393s,@infodir@,$infodir,;t t 27394s,@mandir@,$mandir,;t t 27395s,@build_alias@,$build_alias,;t t 27396s,@host_alias@,$host_alias,;t t 27397s,@target_alias@,$target_alias,;t t 27398s,@DEFS@,$DEFS,;t t 27399s,@ECHO_C@,$ECHO_C,;t t 27400s,@ECHO_N@,$ECHO_N,;t t 27401s,@ECHO_T@,$ECHO_T,;t t 27402s,@LIBS@,$LIBS,;t t 27403s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 27404s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 27405s,@INSTALL_DATA@,$INSTALL_DATA,;t t 27406s,@CYGPATH_W@,$CYGPATH_W,;t t 27407s,@PACKAGE@,$PACKAGE,;t t 27408s,@VERSION@,$VERSION,;t t 27409s,@ACLOCAL@,$ACLOCAL,;t t 27410s,@AUTOCONF@,$AUTOCONF,;t t 27411s,@AUTOMAKE@,$AUTOMAKE,;t t 27412s,@AUTOHEADER@,$AUTOHEADER,;t t 27413s,@MAKEINFO@,$MAKEINFO,;t t 27414s,@install_sh@,$install_sh,;t t 27415s,@STRIP@,$STRIP,;t t 27416s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 27417s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 27418s,@mkdir_p@,$mkdir_p,;t t 27419s,@AWK@,$AWK,;t t 27420s,@SET_MAKE@,$SET_MAKE,;t t 27421s,@am__leading_dot@,$am__leading_dot,;t t 27422s,@AMTAR@,$AMTAR,;t t 27423s,@am__tar@,$am__tar,;t t 27424s,@am__untar@,$am__untar,;t t 27425s,@build@,$build,;t t 27426s,@build_cpu@,$build_cpu,;t t 27427s,@build_vendor@,$build_vendor,;t t 27428s,@build_os@,$build_os,;t t 27429s,@host@,$host,;t t 27430s,@host_cpu@,$host_cpu,;t t 27431s,@host_vendor@,$host_vendor,;t t 27432s,@host_os@,$host_os,;t t 27433s,@CC@,$CC,;t t 27434s,@CFLAGS@,$CFLAGS,;t t 27435s,@LDFLAGS@,$LDFLAGS,;t t 27436s,@CPPFLAGS@,$CPPFLAGS,;t t 27437s,@ac_ct_CC@,$ac_ct_CC,;t t 27438s,@EXEEXT@,$EXEEXT,;t t 27439s,@OBJEXT@,$OBJEXT,;t t 27440s,@DEPDIR@,$DEPDIR,;t t 27441s,@am__include@,$am__include,;t t 27442s,@am__quote@,$am__quote,;t t 27443s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 27444s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 27445s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 27446s,@CCDEPMODE@,$CCDEPMODE,;t t 27447s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 27448s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 27449s,@LN_S@,$LN_S,;t t 27450s,@CPP@,$CPP,;t t 27451s,@EGREP@,$EGREP,;t t 27452s,@PERL@,$PERL,;t t 27453s,@MP3DECODE@,$MP3DECODE,;t t 27454s,@MP3ENCODE@,$MP3ENCODE,;t t 27455s,@OGGDECODE@,$OGGDECODE,;t t 27456s,@OGGENCODE@,$OGGENCODE,;t t 27457s,@VORBISCOMMENT@,$VORBISCOMMENT,;t t 27458s,@FLACDECODE@,$FLACDECODE,;t t 27459s,@FLACENCODE@,$FLACENCODE,;t t 27460s,@METAFLAC@,$METAFLAC,;t t 27461s,@GLIB_CONFIG@,$GLIB_CONFIG,;t t 27462s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t 27463s,@GLIB_LIBS@,$GLIB_LIBS,;t t 27464s,@GTK_CONFIG@,$GTK_CONFIG,;t t 27465s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 27466s,@GTK_LIBS@,$GTK_LIBS,;t t 27467s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t 27468s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t 27469s,@XMMS_LIBS@,$XMMS_LIBS,;t t 27470s,@XMMS_VERSION@,$XMMS_VERSION,;t t 27471s,@XMMS_DATA_DIR@,$XMMS_DATA_DIR,;t t 27472s,@XMMS_PLUGIN_DIR@,$XMMS_PLUGIN_DIR,;t t 27473s,@XMMS_VISUALIZATION_PLUGIN_DIR@,$XMMS_VISUALIZATION_PLUGIN_DIR,;t t 27474s,@XMMS_INPUT_PLUGIN_DIR@,$XMMS_INPUT_PLUGIN_DIR,;t t 27475s,@XMMS_OUTPUT_PLUGIN_DIR@,$XMMS_OUTPUT_PLUGIN_DIR,;t t 27476s,@XMMS_GENERAL_PLUGIN_DIR@,$XMMS_GENERAL_PLUGIN_DIR,;t t 27477s,@XMMS_EFFECT_PLUGIN_DIR@,$XMMS_EFFECT_PLUGIN_DIR,;t t 27478s,@ECHO@,$ECHO,;t t 27479s,@AR@,$AR,;t t 27480s,@ac_ct_AR@,$ac_ct_AR,;t t 27481s,@RANLIB@,$RANLIB,;t t 27482s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 27483s,@CXX@,$CXX,;t t 27484s,@CXXFLAGS@,$CXXFLAGS,;t t 27485s,@ac_ct_CXX@,$ac_ct_CXX,;t t 27486s,@CXXDEPMODE@,$CXXDEPMODE,;t t 27487s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 27488s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 27489s,@CXXCPP@,$CXXCPP,;t t 27490s,@F77@,$F77,;t t 27491s,@FFLAGS@,$FFLAGS,;t t 27492s,@ac_ct_F77@,$ac_ct_F77,;t t 27493s,@LIBTOOL@,$LIBTOOL,;t t 27494s,@PLUGINS@,$PLUGINS,;t t 27495s,@AUDIOFILE_CONFIG@,$AUDIOFILE_CONFIG,;t t 27496s,@AUDIOFILE_CFLAGS@,$AUDIOFILE_CFLAGS,;t t 27497s,@AUDIOFILE_LIBS@,$AUDIOFILE_LIBS,;t t 27498s,@AUDIOFILE_TRUE@,$AUDIOFILE_TRUE,;t t 27499s,@AUDIOFILE_FALSE@,$AUDIOFILE_FALSE,;t t 27500s,@MADLIBS@,$MADLIBS,;t t 27501s,@MAD_TRUE@,$MAD_TRUE,;t t 27502s,@MAD_FALSE@,$MAD_FALSE,;t t 27503s,@NORMALIZE_BIN@,$NORMALIZE_BIN,;t t 27504s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 27505s,@USE_NLS@,$USE_NLS,;t t 27506s,@MSGFMT@,$MSGFMT,;t t 27507s,@GMSGFMT@,$GMSGFMT,;t t 27508s,@XGETTEXT@,$XGETTEXT,;t t 27509s,@MSGMERGE@,$MSGMERGE,;t t 27510s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t 27511s,@LIBICONV@,$LIBICONV,;t t 27512s,@LTLIBICONV@,$LTLIBICONV,;t t 27513s,@INTLLIBS@,$INTLLIBS,;t t 27514s,@LIBINTL@,$LIBINTL,;t t 27515s,@LTLIBINTL@,$LTLIBINTL,;t t 27516s,@POSUB@,$POSUB,;t t 27517s,@LIBOBJS@,$LIBOBJS,;t t 27518s,@LTLIBOBJS@,$LTLIBOBJS,;t t 27519CEOF 27520 27521_ACEOF 27522 27523 cat >>$CONFIG_STATUS <<\_ACEOF 27524 # Split the substitutions into bite-sized pieces for seds with 27525 # small command number limits, like on Digital OSF/1 and HP-UX. 27526 ac_max_sed_lines=48 27527 ac_sed_frag=1 # Number of current file. 27528 ac_beg=1 # First line for current file. 27529 ac_end=$ac_max_sed_lines # Line after last line for current file. 27530 ac_more_lines=: 27531 ac_sed_cmds= 27532 while $ac_more_lines; do 27533 if test $ac_beg -gt 1; then 27534 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 27535 else 27536 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 27537 fi 27538 if test ! -s $tmp/subs.frag; then 27539 ac_more_lines=false 27540 else 27541 # The purpose of the label and of the branching condition is to 27542 # speed up the sed processing (if there are no `@' at all, there 27543 # is no need to browse any of the substitutions). 27544 # These are the two extra sed commands mentioned above. 27545 (echo ':t 27546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 27547 if test -z "$ac_sed_cmds"; then 27548 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 27549 else 27550 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 27551 fi 27552 ac_sed_frag=`expr $ac_sed_frag + 1` 27553 ac_beg=$ac_end 27554 ac_end=`expr $ac_end + $ac_max_sed_lines` 27555 fi 27556 done 27557 if test -z "$ac_sed_cmds"; then 27558 ac_sed_cmds=cat 27559 fi 27560fi # test -n "$CONFIG_FILES" 27561 27562_ACEOF 27563cat >>$CONFIG_STATUS <<\_ACEOF 27564for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 27565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 27566 case $ac_file in 27567 - | *:- | *:-:* ) # input from stdin 27568 cat >$tmp/stdin 27569 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 27570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 27571 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 27572 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 27573 * ) ac_file_in=$ac_file.in ;; 27574 esac 27575 27576 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 27577 ac_dir=`(dirname "$ac_file") 2>/dev/null || 27578$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27579 X"$ac_file" : 'X\(//\)[^/]' \| \ 27580 X"$ac_file" : 'X\(//\)$' \| \ 27581 X"$ac_file" : 'X\(/\)' \| \ 27582 . : '\(.\)' 2>/dev/null || 27583echo X"$ac_file" | 27584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27585 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27586 /^X\(\/\/\)$/{ s//\1/; q; } 27587 /^X\(\/\).*/{ s//\1/; q; } 27588 s/.*/./; q'` 27589 { if $as_mkdir_p; then 27590 mkdir -p "$ac_dir" 27591 else 27592 as_dir="$ac_dir" 27593 as_dirs= 27594 while test ! -d "$as_dir"; do 27595 as_dirs="$as_dir $as_dirs" 27596 as_dir=`(dirname "$as_dir") 2>/dev/null || 27597$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27598 X"$as_dir" : 'X\(//\)[^/]' \| \ 27599 X"$as_dir" : 'X\(//\)$' \| \ 27600 X"$as_dir" : 'X\(/\)' \| \ 27601 . : '\(.\)' 2>/dev/null || 27602echo X"$as_dir" | 27603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27604 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27605 /^X\(\/\/\)$/{ s//\1/; q; } 27606 /^X\(\/\).*/{ s//\1/; q; } 27607 s/.*/./; q'` 27608 done 27609 test ! -n "$as_dirs" || mkdir $as_dirs 27610 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 27611echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 27612 { (exit 1); exit 1; }; }; } 27613 27614 ac_builddir=. 27615 27616if test "$ac_dir" != .; then 27617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 27618 # A "../" for each directory in $ac_dir_suffix. 27619 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 27620else 27621 ac_dir_suffix= ac_top_builddir= 27622fi 27623 27624case $srcdir in 27625 .) # No --srcdir option. We are building in place. 27626 ac_srcdir=. 27627 if test -z "$ac_top_builddir"; then 27628 ac_top_srcdir=. 27629 else 27630 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 27631 fi ;; 27632 [\\/]* | ?:[\\/]* ) # Absolute path. 27633 ac_srcdir=$srcdir$ac_dir_suffix; 27634 ac_top_srcdir=$srcdir ;; 27635 *) # Relative path. 27636 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 27637 ac_top_srcdir=$ac_top_builddir$srcdir ;; 27638esac 27639 27640# Do not use `cd foo && pwd` to compute absolute paths, because 27641# the directories may not exist. 27642case `pwd` in 27643.) ac_abs_builddir="$ac_dir";; 27644*) 27645 case "$ac_dir" in 27646 .) ac_abs_builddir=`pwd`;; 27647 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 27648 *) ac_abs_builddir=`pwd`/"$ac_dir";; 27649 esac;; 27650esac 27651case $ac_abs_builddir in 27652.) ac_abs_top_builddir=${ac_top_builddir}.;; 27653*) 27654 case ${ac_top_builddir}. in 27655 .) ac_abs_top_builddir=$ac_abs_builddir;; 27656 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 27657 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 27658 esac;; 27659esac 27660case $ac_abs_builddir in 27661.) ac_abs_srcdir=$ac_srcdir;; 27662*) 27663 case $ac_srcdir in 27664 .) ac_abs_srcdir=$ac_abs_builddir;; 27665 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 27666 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 27667 esac;; 27668esac 27669case $ac_abs_builddir in 27670.) ac_abs_top_srcdir=$ac_top_srcdir;; 27671*) 27672 case $ac_top_srcdir in 27673 .) ac_abs_top_srcdir=$ac_abs_builddir;; 27674 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 27675 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 27676 esac;; 27677esac 27678 27679 27680 case $INSTALL in 27681 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 27682 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 27683 esac 27684 27685 if test x"$ac_file" != x-; then 27686 { echo "$as_me:$LINENO: creating $ac_file" >&5 27687echo "$as_me: creating $ac_file" >&6;} 27688 rm -f "$ac_file" 27689 fi 27690 # Let's still pretend it is `configure' which instantiates (i.e., don't 27691 # use $as_me), people would be surprised to read: 27692 # /* config.h. Generated by config.status. */ 27693 if test x"$ac_file" = x-; then 27694 configure_input= 27695 else 27696 configure_input="$ac_file. " 27697 fi 27698 configure_input=$configure_input"Generated from `echo $ac_file_in | 27699 sed 's,.*/,,'` by configure." 27700 27701 # First look for the input files in the build tree, otherwise in the 27702 # src tree. 27703 ac_file_inputs=`IFS=: 27704 for f in $ac_file_in; do 27705 case $f in 27706 -) echo $tmp/stdin ;; 27707 [\\/$]*) 27708 # Absolute (can't be DOS-style, as IFS=:) 27709 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 27710echo "$as_me: error: cannot find input file: $f" >&2;} 27711 { (exit 1); exit 1; }; } 27712 echo "$f";; 27713 *) # Relative 27714 if test -f "$f"; then 27715 # Build tree 27716 echo "$f" 27717 elif test -f "$srcdir/$f"; then 27718 # Source tree 27719 echo "$srcdir/$f" 27720 else 27721 # /dev/null tree 27722 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 27723echo "$as_me: error: cannot find input file: $f" >&2;} 27724 { (exit 1); exit 1; }; } 27725 fi;; 27726 esac 27727 done` || { (exit 1); exit 1; } 27728_ACEOF 27729cat >>$CONFIG_STATUS <<_ACEOF 27730 sed "$ac_vpsub 27731$extrasub 27732_ACEOF 27733cat >>$CONFIG_STATUS <<\_ACEOF 27734:t 27735/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27736s,@configure_input@,$configure_input,;t t 27737s,@srcdir@,$ac_srcdir,;t t 27738s,@abs_srcdir@,$ac_abs_srcdir,;t t 27739s,@top_srcdir@,$ac_top_srcdir,;t t 27740s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 27741s,@builddir@,$ac_builddir,;t t 27742s,@abs_builddir@,$ac_abs_builddir,;t t 27743s,@top_builddir@,$ac_top_builddir,;t t 27744s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 27745s,@INSTALL@,$ac_INSTALL,;t t 27746" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 27747 rm -f $tmp/stdin 27748 if test x"$ac_file" != x-; then 27749 mv $tmp/out $ac_file 27750 else 27751 cat $tmp/out 27752 rm -f $tmp/out 27753 fi 27754 27755 # Run the commands associated with the file. 27756 case $ac_file in 27757 src/normalize-mp3 ) chmod +x src/normalize-mp3 ;; 27758 esac 27759done 27760_ACEOF 27761cat >>$CONFIG_STATUS <<\_ACEOF 27762 27763# 27764# CONFIG_HEADER section. 27765# 27766 27767# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 27768# NAME is the cpp macro being defined and VALUE is the value it is being given. 27769# 27770# ac_d sets the value in "#define NAME VALUE" lines. 27771ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 27772ac_dB='[ ].*$,\1#\2' 27773ac_dC=' ' 27774ac_dD=',;t' 27775# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 27776ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 27777ac_uB='$,\1#\2define\3' 27778ac_uC=' ' 27779ac_uD=',;t' 27780 27781for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 27782 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 27783 case $ac_file in 27784 - | *:- | *:-:* ) # input from stdin 27785 cat >$tmp/stdin 27786 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 27787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 27788 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 27789 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 27790 * ) ac_file_in=$ac_file.in ;; 27791 esac 27792 27793 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 27794echo "$as_me: creating $ac_file" >&6;} 27795 27796 # First look for the input files in the build tree, otherwise in the 27797 # src tree. 27798 ac_file_inputs=`IFS=: 27799 for f in $ac_file_in; do 27800 case $f in 27801 -) echo $tmp/stdin ;; 27802 [\\/$]*) 27803 # Absolute (can't be DOS-style, as IFS=:) 27804 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 27805echo "$as_me: error: cannot find input file: $f" >&2;} 27806 { (exit 1); exit 1; }; } 27807 # Do quote $f, to prevent DOS paths from being IFS'd. 27808 echo "$f";; 27809 *) # Relative 27810 if test -f "$f"; then 27811 # Build tree 27812 echo "$f" 27813 elif test -f "$srcdir/$f"; then 27814 # Source tree 27815 echo "$srcdir/$f" 27816 else 27817 # /dev/null tree 27818 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 27819echo "$as_me: error: cannot find input file: $f" >&2;} 27820 { (exit 1); exit 1; }; } 27821 fi;; 27822 esac 27823 done` || { (exit 1); exit 1; } 27824 # Remove the trailing spaces. 27825 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 27826 27827_ACEOF 27828 27829# Transform confdefs.h into two sed scripts, `conftest.defines' and 27830# `conftest.undefs', that substitutes the proper values into 27831# config.h.in to produce config.h. The first handles `#define' 27832# templates, and the second `#undef' templates. 27833# And first: Protect against being on the right side of a sed subst in 27834# config.status. Protect against being in an unquoted here document 27835# in config.status. 27836rm -f conftest.defines conftest.undefs 27837# Using a here document instead of a string reduces the quoting nightmare. 27838# Putting comments in sed scripts is not portable. 27839# 27840# `end' is used to avoid that the second main sed command (meant for 27841# 0-ary CPP macros) applies to n-ary macro definitions. 27842# See the Autoconf documentation for `clear'. 27843cat >confdef2sed.sed <<\_ACEOF 27844s/[\\&,]/\\&/g 27845s,[\\$`],\\&,g 27846t clear 27847: clear 27848s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 27849t end 27850s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 27851: end 27852_ACEOF 27853# If some macros were called several times there might be several times 27854# the same #defines, which is useless. Nevertheless, we may not want to 27855# sort them, since we want the *last* AC-DEFINE to be honored. 27856uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 27857sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 27858rm -f confdef2sed.sed 27859 27860# This sed command replaces #undef with comments. This is necessary, for 27861# example, in the case of _POSIX_SOURCE, which is predefined and required 27862# on some systems where configure will not decide to define it. 27863cat >>conftest.undefs <<\_ACEOF 27864s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 27865_ACEOF 27866 27867# Break up conftest.defines because some shells have a limit on the size 27868# of here documents, and old seds have small limits too (100 cmds). 27869echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 27870echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 27871echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 27872echo ' :' >>$CONFIG_STATUS 27873rm -f conftest.tail 27874while grep . conftest.defines >/dev/null 27875do 27876 # Write a limited-size here document to $tmp/defines.sed. 27877 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 27878 # Speed up: don't consider the non `#define' lines. 27879 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 27880 # Work around the forget-to-reset-the-flag bug. 27881 echo 't clr' >>$CONFIG_STATUS 27882 echo ': clr' >>$CONFIG_STATUS 27883 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 27884 echo 'CEOF 27885 sed -f $tmp/defines.sed $tmp/in >$tmp/out 27886 rm -f $tmp/in 27887 mv $tmp/out $tmp/in 27888' >>$CONFIG_STATUS 27889 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 27890 rm -f conftest.defines 27891 mv conftest.tail conftest.defines 27892done 27893rm -f conftest.defines 27894echo ' fi # grep' >>$CONFIG_STATUS 27895echo >>$CONFIG_STATUS 27896 27897# Break up conftest.undefs because some shells have a limit on the size 27898# of here documents, and old seds have small limits too (100 cmds). 27899echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 27900rm -f conftest.tail 27901while grep . conftest.undefs >/dev/null 27902do 27903 # Write a limited-size here document to $tmp/undefs.sed. 27904 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 27905 # Speed up: don't consider the non `#undef' 27906 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 27907 # Work around the forget-to-reset-the-flag bug. 27908 echo 't clr' >>$CONFIG_STATUS 27909 echo ': clr' >>$CONFIG_STATUS 27910 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 27911 echo 'CEOF 27912 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 27913 rm -f $tmp/in 27914 mv $tmp/out $tmp/in 27915' >>$CONFIG_STATUS 27916 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 27917 rm -f conftest.undefs 27918 mv conftest.tail conftest.undefs 27919done 27920rm -f conftest.undefs 27921 27922cat >>$CONFIG_STATUS <<\_ACEOF 27923 # Let's still pretend it is `configure' which instantiates (i.e., don't 27924 # use $as_me), people would be surprised to read: 27925 # /* config.h. Generated by config.status. */ 27926 if test x"$ac_file" = x-; then 27927 echo "/* Generated by configure. */" >$tmp/config.h 27928 else 27929 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 27930 fi 27931 cat $tmp/in >>$tmp/config.h 27932 rm -f $tmp/in 27933 if test x"$ac_file" != x-; then 27934 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 27935 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 27936echo "$as_me: $ac_file is unchanged" >&6;} 27937 else 27938 ac_dir=`(dirname "$ac_file") 2>/dev/null || 27939$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27940 X"$ac_file" : 'X\(//\)[^/]' \| \ 27941 X"$ac_file" : 'X\(//\)$' \| \ 27942 X"$ac_file" : 'X\(/\)' \| \ 27943 . : '\(.\)' 2>/dev/null || 27944echo X"$ac_file" | 27945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27946 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27947 /^X\(\/\/\)$/{ s//\1/; q; } 27948 /^X\(\/\).*/{ s//\1/; q; } 27949 s/.*/./; q'` 27950 { if $as_mkdir_p; then 27951 mkdir -p "$ac_dir" 27952 else 27953 as_dir="$ac_dir" 27954 as_dirs= 27955 while test ! -d "$as_dir"; do 27956 as_dirs="$as_dir $as_dirs" 27957 as_dir=`(dirname "$as_dir") 2>/dev/null || 27958$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27959 X"$as_dir" : 'X\(//\)[^/]' \| \ 27960 X"$as_dir" : 'X\(//\)$' \| \ 27961 X"$as_dir" : 'X\(/\)' \| \ 27962 . : '\(.\)' 2>/dev/null || 27963echo X"$as_dir" | 27964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 27965 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 27966 /^X\(\/\/\)$/{ s//\1/; q; } 27967 /^X\(\/\).*/{ s//\1/; q; } 27968 s/.*/./; q'` 27969 done 27970 test ! -n "$as_dirs" || mkdir $as_dirs 27971 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 27972echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 27973 { (exit 1); exit 1; }; }; } 27974 27975 rm -f $ac_file 27976 mv $tmp/config.h $ac_file 27977 fi 27978 else 27979 cat $tmp/config.h 27980 rm -f $tmp/config.h 27981 fi 27982# Compute $ac_file's index in $config_headers. 27983_am_stamp_count=1 27984for _am_header in $config_headers :; do 27985 case $_am_header in 27986 $ac_file | $ac_file:* ) 27987 break ;; 27988 * ) 27989 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 27990 esac 27991done 27992echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 27993$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27994 X$ac_file : 'X\(//\)[^/]' \| \ 27995 X$ac_file : 'X\(//\)$' \| \ 27996 X$ac_file : 'X\(/\)' \| \ 27997 . : '\(.\)' 2>/dev/null || 27998echo X$ac_file | 27999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28000 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28001 /^X\(\/\/\)$/{ s//\1/; q; } 28002 /^X\(\/\).*/{ s//\1/; q; } 28003 s/.*/./; q'`/stamp-h$_am_stamp_count 28004done 28005_ACEOF 28006cat >>$CONFIG_STATUS <<\_ACEOF 28007 28008# 28009# CONFIG_COMMANDS section. 28010# 28011for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 28012 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 28013 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 28014 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 28015$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28016 X"$ac_dest" : 'X\(//\)[^/]' \| \ 28017 X"$ac_dest" : 'X\(//\)$' \| \ 28018 X"$ac_dest" : 'X\(/\)' \| \ 28019 . : '\(.\)' 2>/dev/null || 28020echo X"$ac_dest" | 28021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28022 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28023 /^X\(\/\/\)$/{ s//\1/; q; } 28024 /^X\(\/\).*/{ s//\1/; q; } 28025 s/.*/./; q'` 28026 { if $as_mkdir_p; then 28027 mkdir -p "$ac_dir" 28028 else 28029 as_dir="$ac_dir" 28030 as_dirs= 28031 while test ! -d "$as_dir"; do 28032 as_dirs="$as_dir $as_dirs" 28033 as_dir=`(dirname "$as_dir") 2>/dev/null || 28034$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28035 X"$as_dir" : 'X\(//\)[^/]' \| \ 28036 X"$as_dir" : 'X\(//\)$' \| \ 28037 X"$as_dir" : 'X\(/\)' \| \ 28038 . : '\(.\)' 2>/dev/null || 28039echo X"$as_dir" | 28040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28041 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28042 /^X\(\/\/\)$/{ s//\1/; q; } 28043 /^X\(\/\).*/{ s//\1/; q; } 28044 s/.*/./; q'` 28045 done 28046 test ! -n "$as_dirs" || mkdir $as_dirs 28047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 28048echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 28049 { (exit 1); exit 1; }; }; } 28050 28051 ac_builddir=. 28052 28053if test "$ac_dir" != .; then 28054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 28055 # A "../" for each directory in $ac_dir_suffix. 28056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 28057else 28058 ac_dir_suffix= ac_top_builddir= 28059fi 28060 28061case $srcdir in 28062 .) # No --srcdir option. We are building in place. 28063 ac_srcdir=. 28064 if test -z "$ac_top_builddir"; then 28065 ac_top_srcdir=. 28066 else 28067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 28068 fi ;; 28069 [\\/]* | ?:[\\/]* ) # Absolute path. 28070 ac_srcdir=$srcdir$ac_dir_suffix; 28071 ac_top_srcdir=$srcdir ;; 28072 *) # Relative path. 28073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 28074 ac_top_srcdir=$ac_top_builddir$srcdir ;; 28075esac 28076 28077# Do not use `cd foo && pwd` to compute absolute paths, because 28078# the directories may not exist. 28079case `pwd` in 28080.) ac_abs_builddir="$ac_dir";; 28081*) 28082 case "$ac_dir" in 28083 .) ac_abs_builddir=`pwd`;; 28084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 28085 *) ac_abs_builddir=`pwd`/"$ac_dir";; 28086 esac;; 28087esac 28088case $ac_abs_builddir in 28089.) ac_abs_top_builddir=${ac_top_builddir}.;; 28090*) 28091 case ${ac_top_builddir}. in 28092 .) ac_abs_top_builddir=$ac_abs_builddir;; 28093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 28094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 28095 esac;; 28096esac 28097case $ac_abs_builddir in 28098.) ac_abs_srcdir=$ac_srcdir;; 28099*) 28100 case $ac_srcdir in 28101 .) ac_abs_srcdir=$ac_abs_builddir;; 28102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 28103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 28104 esac;; 28105esac 28106case $ac_abs_builddir in 28107.) ac_abs_top_srcdir=$ac_top_srcdir;; 28108*) 28109 case $ac_top_srcdir in 28110 .) ac_abs_top_srcdir=$ac_abs_builddir;; 28111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 28112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 28113 esac;; 28114esac 28115 28116 28117 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 28118echo "$as_me: executing $ac_dest commands" >&6;} 28119 case $ac_dest in 28120 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28121 # Strip MF so we end up with the name of the file. 28122 mf=`echo "$mf" | sed -e 's/:.*$//'` 28123 # Check whether this is an Automake generated Makefile or not. 28124 # We used to match only the files named `Makefile.in', but 28125 # some people rename them; so instead we look at the file content. 28126 # Grep'ing the first line is not enough: some people post-process 28127 # each Makefile.in and add a new line on top of each file to say so. 28128 # So let's grep whole file. 28129 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 28130 dirpart=`(dirname "$mf") 2>/dev/null || 28131$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28132 X"$mf" : 'X\(//\)[^/]' \| \ 28133 X"$mf" : 'X\(//\)$' \| \ 28134 X"$mf" : 'X\(/\)' \| \ 28135 . : '\(.\)' 2>/dev/null || 28136echo X"$mf" | 28137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28138 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28139 /^X\(\/\/\)$/{ s//\1/; q; } 28140 /^X\(\/\).*/{ s//\1/; q; } 28141 s/.*/./; q'` 28142 else 28143 continue 28144 fi 28145 # Extract the definition of DEPDIR, am__include, and am__quote 28146 # from the Makefile without running `make'. 28147 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28148 test -z "$DEPDIR" && continue 28149 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28150 test -z "am__include" && continue 28151 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28152 # When using ansi2knr, U may be empty or an underscore; expand it 28153 U=`sed -n 's/^U = //p' < "$mf"` 28154 # Find all dependency output files, they are included files with 28155 # $(DEPDIR) in their names. We invoke sed twice because it is the 28156 # simplest approach to changing $(DEPDIR) to its actual value in the 28157 # expansion. 28158 for file in `sed -n " 28159 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28160 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28161 # Make sure the directory exists. 28162 test -f "$dirpart/$file" && continue 28163 fdir=`(dirname "$file") 2>/dev/null || 28164$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28165 X"$file" : 'X\(//\)[^/]' \| \ 28166 X"$file" : 'X\(//\)$' \| \ 28167 X"$file" : 'X\(/\)' \| \ 28168 . : '\(.\)' 2>/dev/null || 28169echo X"$file" | 28170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28171 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28172 /^X\(\/\/\)$/{ s//\1/; q; } 28173 /^X\(\/\).*/{ s//\1/; q; } 28174 s/.*/./; q'` 28175 { if $as_mkdir_p; then 28176 mkdir -p $dirpart/$fdir 28177 else 28178 as_dir=$dirpart/$fdir 28179 as_dirs= 28180 while test ! -d "$as_dir"; do 28181 as_dirs="$as_dir $as_dirs" 28182 as_dir=`(dirname "$as_dir") 2>/dev/null || 28183$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28184 X"$as_dir" : 'X\(//\)[^/]' \| \ 28185 X"$as_dir" : 'X\(//\)$' \| \ 28186 X"$as_dir" : 'X\(/\)' \| \ 28187 . : '\(.\)' 2>/dev/null || 28188echo X"$as_dir" | 28189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 28190 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 28191 /^X\(\/\/\)$/{ s//\1/; q; } 28192 /^X\(\/\).*/{ s//\1/; q; } 28193 s/.*/./; q'` 28194 done 28195 test ! -n "$as_dirs" || mkdir $as_dirs 28196 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 28197echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 28198 { (exit 1); exit 1; }; }; } 28199 28200 # echo "creating $dirpart/$file" 28201 echo '# dummy' > "$dirpart/$file" 28202 done 28203done 28204 ;; 28205 default-1 ) 28206 for ac_file in $CONFIG_FILES; do 28207 # Support "outfile[:infile[:infile...]]" 28208 case "$ac_file" in 28209 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 28210 esac 28211 # PO directories have a Makefile.in generated from Makefile.in.in. 28212 case "$ac_file" in */Makefile.in) 28213 # Adjust a relative srcdir. 28214 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 28215 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 28216 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 28217 # In autoconf-2.13 it is called $ac_given_srcdir. 28218 # In autoconf-2.50 it is called $srcdir. 28219 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 28220 case "$ac_given_srcdir" in 28221 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 28222 /*) top_srcdir="$ac_given_srcdir" ;; 28223 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 28224 esac 28225 # Treat a directory as a PO directory if and only if it has a 28226 # POTFILES.in file. This allows packages to have multiple PO 28227 # directories under different names or in different locations. 28228 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 28229 rm -f "$ac_dir/POTFILES" 28230 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 28231 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 28232 POMAKEFILEDEPS="POTFILES.in" 28233 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 28234 # on $ac_dir but don't depend on user-specified configuration 28235 # parameters. 28236 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 28237 # The LINGUAS file contains the set of available languages. 28238 if test -n "$OBSOLETE_ALL_LINGUAS"; then 28239 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 28240 fi 28241 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 28242 # Hide the ALL_LINGUAS assigment from automake. 28243 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 28244 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 28245 else 28246 # The set of available languages was given in configure.in. 28247 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 28248 fi 28249 # Compute POFILES 28250 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 28251 # Compute UPDATEPOFILES 28252 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 28253 # Compute DUMMYPOFILES 28254 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 28255 # Compute GMOFILES 28256 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 28257 case "$ac_given_srcdir" in 28258 .) srcdirpre= ;; 28259 *) srcdirpre='$(srcdir)/' ;; 28260 esac 28261 POFILES= 28262 UPDATEPOFILES= 28263 DUMMYPOFILES= 28264 GMOFILES= 28265 for lang in $ALL_LINGUAS; do 28266 POFILES="$POFILES $srcdirpre$lang.po" 28267 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 28268 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 28269 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 28270 done 28271 # CATALOGS depends on both $ac_dir and the user's LINGUAS 28272 # environment variable. 28273 INST_LINGUAS= 28274 if test -n "$ALL_LINGUAS"; then 28275 for presentlang in $ALL_LINGUAS; do 28276 useit=no 28277 if test "%UNSET%" != "$LINGUAS"; then 28278 desiredlanguages="$LINGUAS" 28279 else 28280 desiredlanguages="$ALL_LINGUAS" 28281 fi 28282 for desiredlang in $desiredlanguages; do 28283 # Use the presentlang catalog if desiredlang is 28284 # a. equal to presentlang, or 28285 # b. a variant of presentlang (because in this case, 28286 # presentlang can be used as a fallback for messages 28287 # which are not translated in the desiredlang catalog). 28288 case "$desiredlang" in 28289 "$presentlang"*) useit=yes;; 28290 esac 28291 done 28292 if test $useit = yes; then 28293 INST_LINGUAS="$INST_LINGUAS $presentlang" 28294 fi 28295 done 28296 fi 28297 CATALOGS= 28298 if test -n "$INST_LINGUAS"; then 28299 for lang in $INST_LINGUAS; do 28300 CATALOGS="$CATALOGS $lang.gmo" 28301 done 28302 fi 28303 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 28304 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 28305 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 28306 if test -f "$f"; then 28307 case "$f" in 28308 *.orig | *.bak | *~) ;; 28309 *) cat "$f" >> "$ac_dir/Makefile" ;; 28310 esac 28311 fi 28312 done 28313 fi 28314 ;; 28315 esac 28316 done ;; 28317 esac 28318done 28319_ACEOF 28320 28321cat >>$CONFIG_STATUS <<\_ACEOF 28322 28323{ (exit 0); exit 0; } 28324_ACEOF 28325chmod +x $CONFIG_STATUS 28326ac_clean_files=$ac_clean_files_save 28327 28328 28329# configure is writing to config.log, and then calls config.status. 28330# config.status does its own redirection, appending to config.log. 28331# Unfortunately, on DOS this fails, as config.log is still kept open 28332# by configure, so config.status won't be able to write to it; its 28333# output is simply discarded. So we exec the FD to /dev/null, 28334# effectively closing config.log, so it can be properly (re)opened and 28335# appended to by config.status. When coming back to configure, we 28336# need to make the FD available again. 28337if test "$no_create" != yes; then 28338 ac_cs_success=: 28339 ac_config_status_args= 28340 test "$silent" = yes && 28341 ac_config_status_args="$ac_config_status_args --quiet" 28342 exec 5>/dev/null 28343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 28344 exec 5>>config.log 28345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 28346 # would make configure fail if this is the last instruction. 28347 $ac_cs_success || { (exit 1); exit 1; } 28348fi 28349 28350 28351echo 28352echo "Configuration:" 28353echo " audiofile library: $use_audiofile" 28354echo " mpeg audio support: $use_mad" 28355echo " xmms volume adjust plugin: $use_xmms" 28356echo 28357